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

Bug 192394

Summary: gnustep-make-2.0.1 needs gcc-4.x because of the --enable-native-objc-exceptions configure param
Product: Gentoo Linux Reporter: Cedric Godin <cedric.godin>
Component: New packagesAssignee: The Gentoo Linux Hardened Team <hardened>
Status: RESOLVED FIXED    
Severity: normal CC: gnustep
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Cedric Godin 2007-09-13 08:21:00 UTC
when trying to emerge gnustep-make-2.0.1, we faced a problem with gcc-3.4.6

3.4.6 : NOK
cedric@honey /tmp/gnustep-make-2.0.1 $ gcc-3.4.6 -x objective-c -I. -fgnu-runtime -fexceptions -fobjc-exceptions -Wl,-z,now conftest.m -lobjc -lpthread -shared-libgcc -fexceptions
conftest.m: In function `main':
conftest.m:8: error: storage size of '_stackExceptionData' isn't known
conftest.m:8: confused by earlier errors, bailing out

4.1.2 : OK
cedric@honey /tmp/gnustep-make-2.0.1 $ gcc-4.1.2 -x objective-c -I. -fgnu-runtime -fexceptions -fobjc-exceptions -Wl,-z,now conftest.m -lobjc -lpthread -shared-libgcc -fexceptions
cedric@honey /tmp/gnustep-make-2.0.1 $

the contest.m is the one in the configure script.

There is nothing in the ebuild and eclass that asks for >gcc-3.4.6

Reproducible: Always

Steps to Reproduce:
1. gcc-config i686-pc-linux-gnu-3.4.6
2. emerge gnustep-base/gnustep-make
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2007-09-13 08:24:32 UTC
This kind of dependency doesn't work at all. Having gcc-4.x installed doesn't mean you are actually using it. See http://www.gentoo.org/doc/en/gcc-upgrading.xml 

hardened folks, if you want to mask this on your profiles, all yours.
Comment 2 Bernard Cafarelli gentoo-dev 2009-01-28 13:07:17 UTC
To fix bug #255630, I've added a USE flag for native exceptions in gnustep-make, which solves the problem here too in the same commit :) Don't enable "native-exceptions" if your compiler does not support them