(this chroot is on glibc master, 10 days before glibc-2.34 release) x86_64-pc-linux-gnu-gcc -I. -march=native -O2 -pipe -ggdb -frecord-gcc-switches -flto -c -o c-stack.o c-stack.c x86_64-pc-linux-gnu-gcc -I. -march=native -O2 -pipe -ggdb -frecord-gcc-switches -flto -c -o c-strcasecmp.o c-strcasecmp.c x86_64-pc-linux-gnu-gcc -I. -march=native -O2 -pipe -ggdb -frecord-gcc-switches -flto -c -o c-strncasecmp.o c-strncasecmp.c x86_64-pc-linux-gnu-gcc -I. -march=native -O2 -pipe -ggdb -frecord-gcc-switches -flto -c -o careadlinkat.o careadlinkat.c x86_64-pc-linux-gnu-gcc -I. -march=native -O2 -pipe -ggdb -frecord-gcc-switches -flto -c -o cloexec.o cloexec.c x86_64-pc-linux-gnu-gcc -I. -march=native -O2 -pipe -ggdb -frecord-gcc-switches -flto -c -o dirname.o dirname.c x86_64-pc-linux-gnu-gcc -I. -march=native -O2 -pipe -ggdb -frecord-gcc-switches -flto -c -o basename.o basename.c x86_64-pc-linux-gnu-gcc -I. -march=native -O2 -pipe -ggdb -frecord-gcc-switches -flto -c -o dirname-lgpl.o dirname-lgpl.c x86_64-pc-linux-gnu-gcc -I. -march=native -O2 -pipe -ggdb -frecord-gcc-switches -flto -c -o basename-lgpl.o basename-lgpl.c x86_64-pc-linux-gnu-gcc -I. -march=native -O2 -pipe -ggdb -frecord-gcc-switches -flto -c -o stripslash.o stripslash.c x86_64-pc-linux-gnu-gcc -I. -march=native -O2 -pipe -ggdb -frecord-gcc-switches -flto -c -o exclude.o exclude.c x86_64-pc-linux-gnu-gcc -I. -march=native -O2 -pipe -ggdb -frecord-gcc-switches -flto -c -o exitfail.o exitfail.c x86_64-pc-linux-gnu-gcc -I. -march=native -O2 -pipe -ggdb -frecord-gcc-switches -flto -c -o fd-hook.o fd-hook.c In file included from /usr/include/signal.h:328, from ./signal.h:52, from c-stack.c:49: c-stack.c:55:26: error: missing binary operator before token "(" 55 | #elif HAVE_LIBSIGSEGV && SIGSTKSZ < 16384 | ^~~~~~~~ x86_64-pc-linux-gnu-gcc -I. -march=native -O2 -pipe -ggdb -frecord-gcc-switches -flto -c -o file-type.o file-type.c x86_64-pc-linux-gnu-gcc -I. -march=native -O2 -pipe -ggdb -frecord-gcc-switches -flto -c -o filenamecat.o filenamecat.c x86_64-pc-linux-gnu-gcc -I. -march=native -O2 -pipe -ggdb -frecord-gcc-switches -flto -c -o filenamecat-lgpl.o filenamecat-lgpl.c make[2]: *** [Makefile:1929: c-stack.o] Error 1 make[2]: *** Waiting for unfinished jobs.... make[2]: Leaving directory '/var/tmp/portage/sys-apps/diffutils-3.7-r1/work/diffutils-3.7/lib' make[1]: *** [Makefile:1678: all] Error 2 make[1]: Leaving directory '/var/tmp/portage/sys-apps/diffutils-3.7-r1/work/diffutils-3.7/lib' make: *** [Makefile:1361: all-recursive] Error 1 * ERROR: sys-apps/diffutils-3.7-r1::gentoo failed (compile phase): * emake failed
Created attachment 726139 [details] emerge --info
Created attachment 726142 [details] build log
<@sam_> dilfridge: I think that bug you filed is in.. gnulib <sam_> let me poke <@sam_> https://git.savannah.gnu.org/cgit/gnulib.git/commit/?id=8e99f24c0931a38880c6ee9b8287c7da80b0036b <@sam_> this will fix it in upstream HEAD: https://git.savannah.gnu.org/cgit/diffutils.git/commit/?id=747551b880b5e7ea773feac20b5db261c75e4daa <@sam_> (c-stack is from gnulib) There's likely to be more of this in various other packages too, while the gnulib fixes filter down into repositories and eventually into releases...
This should be fixed in diffutils-3.8 which is now in tree. https://lists.gnu.org/archive/html/platform-testers/2021-07/msg00001.html https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1ef6bd6c58494558d6fbd82f960b6c0fe5cba7c4