URL: <https://savannah.gnu.org/bugs/?68302>
Summary: Make does not build with GCC 15 with some non-GNU
libcs
Group: make
Submitter: None
Submitted: Sun 03 May 2026 02:43:02 AM UTC
Severity: 3 - Normal
Priority: 5 - Normal
Item Group: Build/Install
Status: None
Privacy: Public
Assigned to: None
Open/Closed: Open
Discussion Lock: Unlocked
Component Version: 4.4.1
Operating System: POSIX-Based
Fixed Release: None
Triage Status: None
_______________________________________________________
Follow-up Comments:
-------------------------------------------------------
Date: Sun 03 May 2026 02:43:02 AM UTC By: Anonymous
The default C standard version in GCC 15 is now C23, and this can cause a
problem with some builds. What I ran into in particular is that with musl
libc, for some reason
[https://cgit.git.savannah.gnu.org/cgit/make.git/tree/gl/lib/fnmatch.c?id=d66a65ad5a0e31b287f53930b0f09e31801f1613#n124
line 124 of gl/lib/fnmatch.c] is compiled (I haven't tracked down why the
`_LIBC` macro isn't defined in this case), giving the declaration `extern char
*getenv ();`. In C23, that is equivalent to `extern char *getenv (void);`,
which is not a proper declaration for `getenv`. I don't know if there are
other C23 issues I haven't run into, but it seems that `make` still builds
with GCC 15 and glibc so there probably aren't many.
Either this line (and other no-longer-correct function prototypes) should be
fixed, or Make should pass in a supported `-std` flag to the compiler.
Further environment details in case this fails to reproduce: I am building in
[https://buildroot.org/download.html Buildroot 2026.02]. My defconfig file
is
BR2_TOOLCHAIN_BUILDROOT_MUSL=y
BR2_GCC_VERSION_15_X=y
BR2_PACKAGE_MAKE=y
which, if you don't speak Buildroot, just means that I'm building Make with
musl libc and GCC 15, and no other changes from the default.
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?68302>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/
signature.asc
Description: PGP signature
