Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 895842 - dev-util/premake-5.0.0_beta2 fails to compile (MUSL-CLANG-SYSTEM): mkstemp.c:76:8: error: call to undeclared function getpid; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
Summary: dev-util/premake-5.0.0_beta2 fails to compile (MUSL-CLANG-SYSTEM): mkstemp.c:...
Status: CONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Aaron W. Swenson
URL:
Whiteboard: patch
Keywords: PATCH
: 938083 940246 (view as bug list)
Depends on:
Blocks: c99-porting gcc-14-stable
  Show dependency tree
 
Reported: 2023-02-22 08:32 UTC by Agostino Sarubbo
Modified: 2024-10-22 16:17 UTC (History)
6 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
build.log (build.log,50.77 KB, text/plain)
2023-02-22 08:32 UTC, Agostino Sarubbo
Details
#include <unistd.h> in contrib/libzip/mkstemp.c (premake-5.0.0-getpid-unistd.patch,444 bytes, patch)
2024-05-17 14:20 UTC, Jon Daniel
Details | Diff
add getpid-unistd.patch (premake-5.0.0_beta2-r1.ebuild,740 bytes, application/vnd.gentoo.ebuild)
2024-05-17 14:22 UTC, Jon Daniel
Details
add HAVE_UNISTD_H #include <unistd.h> and #include "zipint.h" (premake-5.0.0-getpid-unistd.patch,1.11 KB, patch)
2024-05-17 14:43 UTC, Jon Daniel
Details | Diff
unistd.h patch (premake-5.0.0-getpid-unistd.patch,1.65 KB, patch)
2024-05-17 14:52 UTC, Jon Daniel
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Agostino Sarubbo gentoo-dev 2023-02-22 08:32:12 UTC
https://blogs.gentoo.org/ago/2020/07/04/gentoo-tinderbox/

Issue: dev-util/premake-5.0.0_alpha16 fails to compile (MUSL-CLANG-SYSTEM).
Discovered on: amd64 (internal ref: tinderbox_musl)

NOTE:
(MUSL-CLANG-SYSTEM) in the summary means that bug was found on a machine that runs MUSL libc + clang16 but this bug MAY or MAY NOT BE related to musl/clang16.
Comment 1 Agostino Sarubbo gentoo-dev 2023-02-22 08:32:14 UTC
Created attachment 853838 [details]
build.log

build log and emerge --info
Comment 2 Agostino Sarubbo gentoo-dev 2023-12-30 09:42:52 UTC
gcc14_tinderbox has reproduced this issue with version 5.0.0_beta2 - Updating summary.
Comment 3 Jon Daniel 2024-05-17 14:20:42 UTC
Created attachment 893152 [details, diff]
#include <unistd.h> in contrib/libzip/mkstemp.c
Comment 4 Jon Daniel 2024-05-17 14:22:55 UTC
Created attachment 893153 [details]
add getpid-unistd.patch
Comment 5 Jon Daniel 2024-05-17 14:43:45 UTC
Created attachment 893154 [details, diff]
add HAVE_UNISTD_H #include <unistd.h> and #include "zipint.h"
Comment 6 Jon Daniel 2024-05-17 14:52:21 UTC
Created attachment 893155 [details, diff]
unistd.h patch
Comment 7 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2024-09-25 16:15:00 UTC
*** Bug 938083 has been marked as a duplicate of this bug. ***
Comment 8 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2024-09-25 16:15:09 UTC
*** Bug 940246 has been marked as a duplicate of this bug. ***
Comment 9 CaptainBlood 2024-10-21 09:09:17 UTC
Same on sys-devel/gcc-14.2.1_p20240921
Builds fine on sys-devel/gcc-13.3.1_p20240920
Comment 10 CaptainBlood 2024-10-21 13:25:12 UTC
(In reply to CaptainBlood from comment #9)
> Same on sys-devel/gcc-14.2.1_p20240921
> Builds fine on sys-devel/gcc-13.3.1_p20240920
patch builds fine here.

Isn't it more of an upstream concern?
Comment 11 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2024-10-21 13:30:22 UTC
(In reply to CaptainBlood from comment #10)

I don't know what you mean. It obviously affects us as it doesn't build in Gentoo. Anyway, no more comments are needed, the problem is clear. Thanks.