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

Bug 394665

Summary: stabilize =sys-devel/crossdev-20111118 to meet changed cxx/nocxx toolchain.eclass behavior
Product: Gentoo Linux Reporter: Andrey <ahipp0>
Component: [OLD] Keywording and StabilizationAssignee: Embedded Gentoo Team <embedded>
Status: RESOLVED FIXED    
Severity: normal Keywords: STABLEREQ
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Andrey 2011-12-14 10:34:29 UTC
Please, stabilize =sys-devel/crossdev-20111118 to allow building cross-toolchains.

Running =sys-devel/crossdev-20110819 like
USE="-* nptl" crossdev -v -t powerpc-unknown-linux-gnu
gives
USE='cxx nocxx' and USE='-cxx -nocxx' make no sense

Reproducible: Always

Steps to Reproduce:
USE="-* nptl" crossdev -v -t powerpc-unknown-linux-gnu
Actual Results:  
Compilation of cross-gcc fails with

 * 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: cross-powerpc-unknown-linux-gnu/gcc-4.5.3-r1 failed (compile phase):
 *   USE='cxx nocxx' and USE='-cxx -nocxx' make no sense
 * 
 * Call stack:
 *     ebuild.sh, line   56:  Called src_compile
 *   environment, line 4298:  Called toolchain_src_compile
 *   environment, line 4992:  Called gcc_do_configure
 *   environment, line 2354:  Called die
 * The specific snippet of code:
 *               die "USE='cxx nocxx' and USE='-cxx -nocxx' make no sense";

Expected Results:  
Crossdev successfully builds toolchain.
Comment 1 Andrey 2011-12-14 10:43:58 UTC
Well, running `USE="-* cxx nptl" crossdev -v -t powerpc-unknown-linux-gnu` (with USE=cxx added) works with old crossdev too.

Then, crossdev should explicitly add USE=cxx while building stage4 toolchain.
Comment 2 Andrey 2011-12-16 14:41:51 UTC
(In reply to comment #1)
> Well, running `USE="-* cxx nptl" crossdev -v -t powerpc-unknown-linux-gnu`
> (with USE=cxx added) works with old crossdev too.
> 
> Then, crossdev should explicitly add USE=cxx while building stage4 toolchain.

More specifically, with old crossdev version:
1) crossdev -t powerpc-unknown-linux-gnu
2) die at gcc-stage2
3) USE="cxx" crossdev -t powerpc-unknown-linux-gnu
4) toolchain is ready
Comment 3 SpanKY gentoo-dev 2011-12-21 21:04:36 UTC
all marked stable now
Comment 4 Andrey 2011-12-21 22:03:03 UTC
(In reply to comment #3)
> all marked stable now
Thank you!