Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 147160 - crossdev -t arm failed at gcc stage
Summary: crossdev -t arm failed at gcc stage
Status: RESOLVED TEST-REQUEST
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-09-11 03:19 UTC by Francisco González
Modified: 2006-09-14 21:44 UTC (History)
0 users

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


Attachments
info log (cross-arm-unknown-linux-gnu-info.log,4.60 KB, text/x-log)
2006-09-11 03:20 UTC, Francisco González
Details
gcc-stage2.log (cross-arm-unknown-linux-gnu-gcc-stage2.log,7.99 KB, text/x-log)
2006-09-11 03:20 UTC, Francisco González
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Francisco González 2006-09-11 03:19:01 UTC
I'm trying to create a crosscompiler toolchain for arm-unknown-linux-gnu but it failed at gcc stage with this error:

>>> Compiling source in /var/tmp/cross/arm-unknown-linux-gnu/portage/gcc-4.1.1/work/gcc-4.1.1 ...
 * CFLAGS="-O2 -pipe"
 * CXXFLAGS=""
 * Configuring gcc ...
 * running gcc-compiler-configure
 * configuring for GCC_LANG: c,c++

!!! ERROR: cross-arm-unknown-linux-gnu/gcc-4.1.1 failed.
Call stack:
  ebuild.sh, line 1539:   Called dyn_compile
  ebuild.sh, line 939:   Called src_compile
  ebuild.sh, line 1248:   Called toolchain_src_compile
  toolchain.eclass, line 24:   Called gcc_src_compile
  toolchain.eclass, line 1520:   Called gcc_do_configure
  toolchain.eclass, line 1269:   Called built_with_use 'cross-arm-unknown-linux-gnu/glibc' 'crosscompile_opts_headers-only'
  eutils.eclass, line 1605:   Called die

!!! cross-arm-unknown-linux-gnu/glibc-2.4-r3 does not actually support the crosscompile_opts_headers-only USE flag!
!!! If you need support, post the topmost build error, and the call stack if relevant.

!!! This ebuild is from an overlay: '/usr/local/portage'

 * gcc failed :(
Comment 1 Francisco González 2006-09-11 03:20:00 UTC
Created attachment 96682 [details]
info log

Attached info file
Comment 2 Francisco González 2006-09-11 03:20:41 UTC
Created attachment 96683 [details]
gcc-stage2.log
Comment 3 Jakub Moc (RETIRED) gentoo-dev 2006-09-11 03:30:49 UTC
!!! cross-arm-unknown-linux-gnu/glibc-2.4-r3 does not actually support the
crosscompile_opts_headers-only USE flag!

Anything unclear about the message? Why don't you remove the flag and try again?
Comment 4 Francisco González 2006-09-11 03:39:21 UTC
I don't have set this USE flag. Not even it is on use.desc/use.local.desc

It's forced by crossdev

I tried to compile with USE=-crosscompile_opts_headers-only but again the same error...
Comment 5 Carl Hudkins 2006-09-14 21:44:07 UTC
Same results here, attempting to build x86 -> PPC.

Adding this flag to glibc IUSE has no effect; discussion on forums suggested editing toolchain.eclass to comment out the line that produces said error.

See http://forums.gentoo.org/viewtopic-t-497447.html