Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 234239 - sys-devel/crossdev-0.9.18-r9 with portage 2.2_rc6 does nothing on gcc stage2
Summary: sys-devel/crossdev-0.9.18-r9 with portage 2.2_rc6 does nothing on gcc stage2
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Toolchain Maintainers
URL:
Whiteboard:
Keywords:
: 231665 237425 242832 244823 (view as bug list)
Depends on:
Blocks:
 
Reported: 2008-08-08 10:13 UTC by Alexis Ballier
Modified: 2008-11-02 09:26 UTC (History)
7 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alexis Ballier gentoo-dev 2008-08-08 10:13:45 UTC
I tried to build a cross toolchain for fbsd 7 with crossdev but the gcc stage2 does nothing thus I don't have g++. It seems to be due to the fact that crossdev doesn't use --newuse for this stage:

# emerge -pvu cross-i686-gentoo-freebsd7.0/gcc

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

Calculating dependencies... done!

Total: 0 packages, Size of downloads: 0 kB

# emerge -pvNu cross-i686-gentoo-freebsd7.0/gcc

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

Calculating dependencies... done!
[ebuild   R   ] cross-i686-gentoo-freebsd7.0/gcc-4.2.4  USE="doc fortran* (multilib) nls test (-altivec) -bootstrap -build -gcj -gtk -hardened -ip28 -ip32r10k -libffi -mudflap -multislot (-n32) (-n64) -nocxx* -objc -objc++ -objc-gc -openmp -vanilla" 0 kB [1]

It seems that  set_eopts_on_pkg_status ${GPKG} crosscompile_opts_bootstrap
always sets EOPTS=${EOPTS_UP} because crosscompile_opts_bootstrap isn't in /var/db/pkg/cross-${CTARGET}/${pkg}-*/USE. Perhaps because it's in USE_EXPAND_HIDDEN ? I don't know.

My workaround for now is to make it set EOPTS to EOPTS_DEF, though it seems far from optimal.
Comment 1 cyrillic 2008-08-10 15:57:12 UTC
I experienced the same problem, and used the same workaround you did.

IMO, the crossdev script should not add "-u" to the emerge options.
Comment 2 Al 2008-09-04 21:14:20 UTC
Had the same experience with
# crossdev -t x86

on 2 x86_64 machines, in both cases the g++ and c++ and fortran compilers were not built.

I tried a (purely a guess!)
#crossdev --ex-gcc -t x86

this produced the missing bits on both machines. I am now cross compiling for my new acer one on my 2 x86_64 desktops.
Comment 3 SpanKY gentoo-dev 2008-09-17 09:13:34 UTC
*** Bug 237425 has been marked as a duplicate of this bug. ***
Comment 4 SpanKY gentoo-dev 2008-10-21 20:45:58 UTC
*** Bug 242832 has been marked as a duplicate of this bug. ***
Comment 5 Alexis Ballier gentoo-dev 2008-10-22 03:22:52 UTC
After poking Zac about this, it seems adding crosscompile_opts_bootstrap to gcc IUSE should fix this. I have not tried it yet.
Comment 6 SpanKY gentoo-dev 2008-10-27 04:57:51 UTC
*** Bug 231665 has been marked as a duplicate of this bug. ***
Comment 7 SpanKY gentoo-dev 2008-10-27 05:56:58 UTC
hmm, i thought i was using --newuse already, but i guess for only post-stage4

should be fixed in crossdev-0.9.18-r10 now

http://sources.gentoo.org/sys-devel/crossdev/files/crossdev?r1=1.107&r2=1.108
Comment 8 SpanKY gentoo-dev 2008-11-02 09:26:54 UTC
*** Bug 244823 has been marked as a duplicate of this bug. ***