gcc-15.0.0_pre20241117 defaults to using -std=gnu23 (which is stricter) fails with error: two or more data types in declaration specifiers Reproducible: Always Steps to Reproduce: emerge =gcc-15.0.0_pre20241117-r2 emerge =sci-mathematics/glpk-5.0-r3 Actual Results: In file included from api/minisat1.c:23: ./minisat/minisat.h:37:13: error: two or more data types in declaration specifiers 37 | typedef int bool; | ^~~~ ./minisat/minisat.h:37:1: warning: useless type name in empty declaration 37 | typedef int bool; | ^~~~~~~ /bin/sh ../libtool --tag=CC --mode=compile x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I.. -I. -I./api -I./bflib -I./draft -I./env -I./intopt -I./minisat -I./misc -I./mpl -I./npp -I./proxy -I./simplex -march=native -O3 -flto=56 -mprefer-vector-width=512 -fno-vect-cost-model -pipe -c -o libglpk_la-fhv.lo `test -f 'bflib/fhv.c' || echo './'`bflib/fhv.c make[2]: *** [Makefile:1117: libglpk_la-minisat1.lo] Error 1 Expected Results: gcc-15.0.0_pre20241117 works with CFLAGS="${CFLAGS} -std=gnu17" also works with =gcc-15.0.0_pre20241110
Created attachment 909690 [details] emerge --info
Created attachment 909691 [details] build failure log
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0042df2bf59960f3de3422dd7f2d2efa605b0bb6 commit 0042df2bf59960f3de3422dd7f2d2efa605b0bb6 Author: Michael Orlitzky <mjo@gentoo.org> AuthorDate: 2024-11-20 04:07:55 +0000 Commit: Michael Orlitzky <mjo@gentoo.org> CommitDate: 2024-11-20 04:08:43 +0000 sci-mathematics/glpk: fix the build with gcc-15 Closes: https://bugs.gentoo.org/943883 Signed-off-by: Michael Orlitzky <mjo@gentoo.org> sci-mathematics/glpk/glpk-5.0-r3.ebuild | 4 ++++ 1 file changed, 4 insertions(+)