Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 160595 - -Dname causes `USE="gcj" emerge gcc` failure
Summary: -Dname causes `USE="gcj" emerge gcc` failure
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High enhancement
Assignee: Gentoo Toolchain Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-01-06 23:52 UTC by Arfrever Frehtes Taifersar Arahesis (RETIRED)
Modified: 2007-01-07 01:26 UTC (History)
0 users

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


Attachments
emerge log (gcc_gcj2,7.16 KB, text/plain)
2007-01-06 23:53 UTC, Arfrever Frehtes Taifersar Arahesis (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
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