Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 73020

Summary: crossdev-0.4-r1 cannot build for MIPS target
Product: Gentoo Linux Reporter: Stuart Shelton <srcshelton>
Component: [OLD] GCC PortingAssignee: Joshua Kinard <kumba>
Status: RESOLVED WONTFIX    
Severity: normal    
Priority: High    
Version: 2004.3   
Hardware: x86   
OS: All   
Whiteboard:
Package list:
Runtime testing required: ---

Description Stuart Shelton 2004-12-01 05:15:01 UTC
I'm using the crossdev script to build a MIPS environment.  I have to use the "unstable" option, because without this crossdev reports that there is no suitable version of binutils (is this a bug in itself?)

With the unstable option, it wants to build the following:

        sys-kernel/mips-headers-2.6.8.1
        sys-devel/binutils-2.15.91.0.2
        sys-devel/gcc-3.4.3
        sys-libs/glibc-2.3.4.20041102

... however, no matter what Host CFLAGS or Target options I choose, I always hit the following error whilst building gcc:

/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  -fexceptions -c ../../gcc/unwind-dw2-fde-glibc.c -o libgcc/./unwind-dw2-fde-glibc.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 `/usr/tmp/portage/crossdevbuild/gcc-3.4.3/buildboothere-mips/gcc'
make[1]: *** [libgcc.a] Error 2
rm gcc.pod
make[1]: Leaving directory `/usr/tmp/portage/crossdevbuild/gcc-3.4.3/buildboothere-mips/gcc'
make: *** [all-gcc] Error 2

 * InstallGccBootstrap(): Failed to compile!

Any thoughts?  Would forcing different toolchain versions help - and if so, which are the best choices?

    Stuart
Comment 1 SpanKY gentoo-dev 2005-03-03 17:36:45 UTC
<=crossdev-0.4 is no longer supported ... please upgrade to crossdev-0.9 and if
you're still having problems, re-open the bug and re-assign to toolchain@gentoo.org