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

Bug 160595

Summary: -Dname causes `USE="gcj" emerge gcc` failure
Product: Gentoo Linux Reporter: Arfrever Frehtes Taifersar Arahesis (RETIRED) <arfrever>
Component: New packagesAssignee: Gentoo Toolchain Maintainers <toolchain>
Status: RESOLVED WONTFIX    
Severity: enhancement    
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: emerge log

Description Arfrever Frehtes Taifersar Arahesis (RETIRED) gentoo-dev 2007-01-06 23:52:40 UTC
If user has any -D flags (e.g. -DG_DISABLE_ASSERT -DNDEBUG) in CFLAGS, emerging gcc with gcj USE flag will fail. I guess that this bug was created by resolving bug #159402.

$ emerge -ptv gcc

These are the packages that would be merged, in reverse order:

Calculating dependencies... done!
[ebuild   R   ] sys-devel/gcc-4.1.1-r3  USE="fortran gcj gtk mudflap nls (-altivec) -bootstrap -build -doc (-hardened) -ip28 -ip32r10k (-multilib) -multislot (-n32) (-n64) -nocxx -objc -objc++ -objc-gc -test -vanilla" 0 kB

Total: 1 package (1 reinstall), Size of downloads: 0 kB
$

I suggest filtering -D flags in some parts of building gcc.
Comment 1 Arfrever Frehtes Taifersar Arahesis (RETIRED) gentoo-dev 2007-01-06 23:53:31 UTC
Created attachment 105735 [details]
emerge log
Comment 2 Jakub Moc (RETIRED) gentoo-dev 2007-01-06 23:57:55 UTC
So don't use -Dblah if you don't know what you are doing, sticking it into make.conf is completely unsupported... :P


Comment 3 SpanKY gentoo-dev 2007-01-07 01:26:36 UTC
-D is a CPPFLAG, not a CFLAG