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

Bug 950346

Summary: gnustep-base/gnustep-base-1.30.0: doesn't respect CFLAGS due to using flags from gnustep-base/gnustep-make
Product: Gentoo Linux Reporter: Alfred Wingate <parona>
Component: Current packagesAssignee: Gentoo Gnustep project <gnustep>
Status: CONFIRMED ---    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: gnustep-base/gnustep-base-1.30.0 build.log (xz compressed) CFLAGS appended with -std=gnu17 in user env
emerge --info

Description Alfred Wingate 2025-02-27 15:30:59 UTC
Created attachment 920021 [details]
gnustep-base/gnustep-base-1.30.0 build.log (xz compressed) CFLAGS appended with -std=gnu17 in user env

https://github.com/gnustep/libs-base/blob/master/configure.ac#L128

This is similar issue to what qmake suffers from. The flags that are configured when building gnustep-make will be used for gnustep-base.

I was affected by this when I tried to take a shortcut with a C23 issue (GCC-15 changed the default to it) by setting an older C standard via CFLAGS.
Comment 1 Alfred Wingate 2025-02-27 15:31:31 UTC
Created attachment 920022 [details]
emerge --info
Comment 2 Alfred Wingate 2025-02-27 23:58:10 UTC
Now I hit another problem where adding or removing flags would help, but due to this I have to build both packages with these workarounds.

In this case an ICE from lld on the llvm profile when built against libobjc2.
https://github.com/llvm/llvm-project/issues/60137