Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 943883 - =sci-mathematics/glpk-5.0-r3 fails with c23/gcc-15.0.0_pre20241117-r2: ./minisat/minisat.h:37:13: error: two or more data types in declaration specifiers
Summary: =sci-mathematics/glpk-5.0-r3 fails with c23/gcc-15.0.0_pre20241117-r2: ./mini...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Robin Johnson
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: c23-porting
  Show dependency tree
 
Reported: 2024-11-19 07:11 UTC by tdr
Modified: 2024-11-20 04:16 UTC (History)
6 users (show)

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


Attachments
emerge --info (tdr-emerge--info.txt,6.30 KB, text/plain)
2024-11-19 07:12 UTC, tdr
Details
build failure log (glpk-5.0-r3.build.log,46.94 KB, text/plain)
2024-11-19 07:13 UTC, tdr
Details

Note You need to log in before you can comment on or make changes to this bug.
Description tdr 2024-11-19 07:11:51 UTC
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
Comment 1 tdr 2024-11-19 07:12:25 UTC
Created attachment 909690 [details]
emerge --info
Comment 2 tdr 2024-11-19 07:13:00 UTC
Created attachment 909691 [details]
build failure log
Comment 3 Larry the Git Cow gentoo-dev 2024-11-20 04:16:20 UTC
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(+)