[Top] [All Lists]

Re: Cross tool chain based on gcc-3.4.x

To: TheNop <>
Subject: Re: Cross tool chain based on gcc-3.4.x
From: "Stephen P. Becker" <>
Date: Mon, 29 Nov 2004 18:01:35 -0500
In-reply-to: <>
Original-recipient: rfc822;
References: <> <> <> <> <>
User-agent: Mozilla Thunderbird 0.9 (X11/20041125)
Hi Steve,

I also want to build a root file system for the target.
I tried to build the tool chain you described above.
I used crossdev on gentoo: "crossdev --arch=mips --vbinutils= --vheaders=2.4.25 --vgcc=3.4.3 --vglibc="
But it fails.

mips/mips-unknown-linux-gnu/sys-include -O2 -DIN_GCC -DCROSS_COMPILE -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -isystem ./include -fPIC -DHAVE_SYSLOG -g -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED -D_LIBC_PROVIDES_SSP_ -I. -I. -I../../gcc -I../../gcc/. -I../../gcc/../include -DL_eprintf -c ../../gcc/libgcc2.c -o libgcc/./_eprintf.o /var/tmp/portage/crossdevbuild/gcc-3.4.3/buildboothere-mips/gcc/xgcc -B/var/tmp/portage/crossdevbuild/gcc-3.4.3/buildboothere-mips/gcc/ -B/home/crossdev/mips/mips-unknown-linux-gnu/bin/ -B/home/crossdev/mips/mips-unknown-linux-gnu/lib/ -isystem /home/crossdev/mips/mips-unknown-linux-gnu/include -isystem /home/crossdev/mips/mips-unknown-linux-gnu/sys-include -O2 -DIN_GCC -DCROSS_COMPILE -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -isystem ./include -fPIC -DHAVE_SYSLOG -g -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED -D_LIBC_PROVIDES_SSP_ -I. -I. -I../../gcc -I../../gcc/. -I../../gcc/../include -DL__gcc_bcmp -c ../../gcc/libgcc2.c -o libgcc/./__gcc_bcmp.o
../../gcc/unwind-dw2.c: In function `uw_frame_state_for':
../../gcc/unwind-dw2.c:1027: error: structure has no member named `sc_regs'
../../gcc/unwind-dw2.c:1027: error: structure has no member named `sc_pc'
make[2]: *** [libgcc/./unwind-dw2.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: Leaving directory `/var/tmp/portage/crossdevbuild/gcc-3.4.3/buildboothere-mips/gcc'
make[1]: *** [libgcc.a] Error 2
make[1]: Leaving directory `/var/tmp/portage/crossdevbuild/gcc-3.4.3/buildboothere-mips/gcc'
make: *** [all-gcc] Error 2

How did you build the tool chain?
What kernel headers did you use?
If I use kernel headers (I realy need 2.6 heraders!) the installation of the headers fails!

It would be great If you can tell me which paramerter I have to use with crossdev to get a working tool chain.

Best regards

Well, this really is more of a question for the gentoo-mips mailing list. But anyway, 2.4 headers newer than our 2.4.22-r1 ebuild are broken (I can't remember exactly how at the moment), and we *really* don't support 2.6 headers at all. In fact, building against them breaks glibc on o32 userland. The only reason we have them in portage at all right now is for our n32 userland (which is broken in other ways because of the headers). Eventually we'll have a sanitized 2.6 headers package that should work, but it may not be anytime soon.

Anyway to answer your question, I used crossdev to build a bootstrap C compiler (crossdev -k), then I did the rest by hand. You might also need to get kumba's latest version of the crossdev script from gentoo's viewcvs under gentoo/users/kumba/crossdev/ just to get past the first part.

Why do you *need* 2.6 headers anyhow? You can still run a 2.6 kernel with a userland compiled with 2.4 headers.


<Prev in Thread] Current Thread [Next in Thread>