Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 943883

Summary: =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
Product: Gentoo Linux Reporter: tdr <ted.d.rodgers>
Component: Current packagesAssignee: Robin Johnson <robbat2>
Status: RESOLVED FIXED    
Severity: normal CC: frp.bissey, immoloism, mjo, proxy-maint, sci-mathematics, ted.d.rodgers
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 880545    
Attachments: emerge --info
build failure log

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(+)