Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Crossdev for amd64 on i686 fails at gcc-stage2
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
Shinjisan
n00b
n00b


Joined: 08 Sep 2006
Posts: 4
Location: Germany

PostPosted: Tue Sep 12, 2006 12:37 am    Post subject: Crossdev for amd64 on i686 fails at gcc-stage2 Reply with quote

I'm trying to install Crossdev -t x86_64-pc-linux-gnu on an i686 System.
It all went pretty smoothly when it failed at gcc-stage2:

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

!!! ERROR: cross-x86_64-pc-linux-gnu/gcc-4.1.1-r1 failed.
Call stack:
  ebuild.sh, line 1546:   Called dyn_compile
  ebuild.sh, line 937:   Called src_compile
  ebuild.sh, line 1255:   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-x86_64-pc-linux-gnu/glibc' 'crosscompile_opts_headers-only'
  eutils.eclass, line 1605:   Called die

!!! cross-x86_64-pc-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'                         ... done!


Hm, why is the ~amd64 keyword in package.keywords for the cross-stuff?
Code:
cross-x86_64-pc-linux-gnu/binutils amd64 ~amd64
cross-x86_64-pc-linux-gnu/gcc amd64 ~amd64
cross-x86_64-pc-linux-gnu/linux-headers amd64 ~amd64
cross-x86_64-pc-linux-gnu/glibc amd64 ~amd64
cross-x86_64-pc-linux-gnu/gdb amd64 ~amd64
Back to top
View user's profile Send private message
alexbuell
Guru
Guru


Joined: 18 Jul 2002
Posts: 490
Location: "Hemp"shire, UK

PostPosted: Tue Sep 12, 2006 11:07 am    Post subject: Aha... Reply with quote

I'm seeing the exact same problem, but I'm compiling for a i586-pc-linux-gnu target. Did you ever find a solution?

Thanks
(it's not fun watching an old Pentium MMX compile its world...)
_________________
Cheers,
Alex.

Linux - the best text adventure game ever.
Back to top
View user's profile Send private message
Devport
Guru
Guru


Joined: 15 Dec 2004
Posts: 361

PostPosted: Thu Sep 14, 2006 4:18 am    Post subject: Reply with quote

Same problem here. My hack was to edit /usr/portage/eclass/toolchain.eclass :

Took the lines

Code:
         if ! has_version ${CATEGORY}/${needed_libc} ; then
            confgcc="${confgcc} --disable-shared --disable-threads --without-headers"
         elif built_with_use ${CATEGORY}/${needed_libc} crosscompile_opts_headers-only ; then
            confgcc="${confgcc} --disable-shared --with-sysroot=${PREFIX}/${CTARGET}"
         else
            confgcc="${confgcc} --with-sysroot=${PREFIX}/${CTARGET}"
         fi


and removed the "offending" ones

Code:
         if ! has_version ${CATEGORY}/${needed_libc} ; then
            confgcc="${confgcc} --disable-shared --disable-threads --without-headers"
         else
            confgcc="${confgcc} --with-sysroot=${PREFIX}/${CTARGET}"
         fi


Commenting them out should work as well. Its only a hack - but if someone wants to get that thing merged...
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum