Using crossdev, can't emerge GCC


6 posts
by trs79 » Fri May 25, 2012 10:15 pm
Hello all,

From reading other posts it sounds like others have gotten crossdev to work, however when I try:

Code: Select all
sudo crossdev --target armv6j-hardfloat-linux-gnuabi


Everything is working up until the point of

Code: Select all
Emerging cross-gcc-stage1


When I check the build log, the error is

Code: Select all
cannot compute suffix of object files


It seems that this can be caused by a lot of issues, anyone run into this error? Thanks!
Posts: 9
Joined: Fri May 25, 2012 10:10 pm
by trs79 » Fri May 25, 2012 10:39 pm
Hmm, it seems if I specify gcc-4.4.6-r1 it works just fine. Out of curiosity, for others who use crossdev what versions of the toolchain do you use? Thanks
Posts: 9
Joined: Fri May 25, 2012 10:10 pm
by coRpTitan » Sun May 27, 2012 3:46 pm
On my distcc machine, that is helping RaspberryPi with compiling packages I have: cross-armv6zk-hardfloat-linux-gnueabi/gcc-4.5.3-r2::x-portage . Works fine.
Posts: 3
Joined: Mon May 21, 2012 12:49 am
by whitelabrat » Sat Jun 02, 2012 12:17 pm
I have the same problem regardless of using armv6zk or armv6j where the gcc compile fails. I've opened a bug report.
Posts: 5
Joined: Thu May 31, 2012 3:15 pm
by whitelabrat » Wed Jun 13, 2012 6:05 pm
@coRpTitan or anyone: I don't suppose you could share more detail about your distcc machine? What is the CHOST and CFLAGS used? We know the gcc version, but how about the crossdev version, binutils, kernel, and libc?

It seems putting this together can be tricky so if anyone has a good recipe please share! :mrgreen:
Posts: 5
Joined: Thu May 31, 2012 3:15 pm
by whitelabrat » Tue Jun 19, 2012 10:44 pm
crossdev -S -t cross-armv6zk-hardfloat-linux-gnueabi worked! I was missing a few things. I needed to run "emerge mpfr mpc gmp" and then env-update.

Crossdev version is 20120305
Binutils: binutils-2.21.1-r1
headers: gentoo-headers-3.1-2
gcc: gcc-4.5.3-r2
libc: glibc-2.14.1-r3

I would think crossdev would want to pull in mpfr mpc and gmp in as dependancies? Guess not. Now the fun begins!
Posts: 5
Joined: Thu May 31, 2012 3:15 pm