Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 402747 - toolchain.eclass: drop USE=nocxx
Summary: toolchain.eclass: drop USE=nocxx
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Eclasses (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Toolchain Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-02-08 18:48 UTC by Steve Warren
Modified: 2012-02-09 17:12 UTC (History)
0 users

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


Attachments
build log (build.log,4.59 KB, text/plain)
2012-02-09 13:37 UTC, Steve Warren
Details
environment (environment,164.02 KB, text/plain)
2012-02-09 13:39 UTC, Steve Warren
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Steve Warren 2012-02-08 18:48:11 UTC
Currently this is in eclass/toolchain.eclass

#---->> SLOT+IUSE logic <<----
IUSE="build multislot nls nptl test vanilla"

if [[ ${PN} != "kgcc64" && ${PN} != gcc-* ]] ; then
IUSE+=" altivec cxx fortran nocxx"

This is the corrected version:

#---->> SLOT+IUSE logic <<----
IUSE="build multislot nls nptl test vanilla"

if [[ ${PN} != "kgcc64" && ${PN} != gcc-* ]] ; then
IUSE+=" altivec cxx fortran"

The current version breaks gcc builds.

Reproducible: Always
Comment 1 SpanKY gentoo-dev 2012-02-09 04:20:05 UTC
no info on what is actually failing for you ...
Comment 2 Steve Warren 2012-02-09 13:35:42 UTC
Here is the failure of gcc with nocxx in eclass/toolchain.eclass

 * CFLAGS="-march=amdfam10 -O2 -pipe -O2"
 * CXXFLAGS="-O2 -pipe"
 * Configuring gcc ...
 * We are migrating USE=nocxx to USE=cxx, but your USE settings do not make
 * sense.  Please make sure these two flags line up logically in your setup.
 * ERROR: sys-devel/gcc-4.5.3-r2 failed (compile phase):
 *   USE='cxx nocxx' and USE='-cxx -nocxx' make no sense
 * 
 * Call stack:
 *     ebuild.sh, line   85:  Called src_compile
 *   environment, line 4071:  Called toolchain_src_compile
 *   environment, line 4722:  Called gcc_do_configure
 *   environment, line 2174:  Called die
 * The specific snippet of code:
 *               die "USE='cxx nocxx' and USE='-cxx -nocxx' make no sense";
Comment 3 Steve Warren 2012-02-09 13:37:16 UTC
Created attachment 301383 [details]
build log

Added build.log
Comment 4 Steve Warren 2012-02-09 13:39:05 UTC
Created attachment 301385 [details]
environment

added environment
Comment 5 SpanKY gentoo-dev 2012-02-09 16:28:07 UTC
sounds like you didn't read the error message
Comment 6 Steve Warren 2012-02-09 16:49:46 UTC
I have not had the nocxx flag in my make.conf for over 2 years now, So I did my part.  Both the cxx and nocxx comes from toolchain.eclass:

IUSE+=" altivec cxx fortran nocxx"

I had to go looking for where this flag was being inserted and that is where I found it.
Comment 7 Steve Warren 2012-02-09 16:52:50 UTC
Another note that might help. This happened while building a stage1 with Metro, however I would expect this to effect Catalyst as well.
Comment 8 SpanKY gentoo-dev 2012-02-09 17:12:36 UTC
if you don't want C++ support, add USE=nocxx to your make.conf.  if you want C++ support, add USE=cxx to your make.conf.

the profiles already have USE=cxx by default, so if your system lacks that, it's because you removed it.