Trouble building a cross compiler x86->sparc (gcc 3.1/binutils 2.12.1)

Philip Willoughby PWILLOUG@uk.ibm.com
Fri Jul 5 09:41:00 GMT 2002


Hi all,

I'm having a fair bit of trouble getting cross-compilation to work
correctly.  Depending on whether I build binutils within gcc or separately
I can get assembler or linker errors, so not a great deal of choice
there...  In both cases it's before the bootstrap stage is complete.  The
linker error is further down the line, it cannot find crt.o when linking
libgcc2.so.

I've opened a ticket in gnats for the assembler error (it's
bootstrap/7217).

Can any of you tell me how to coerce gcc into building properly?  My
current configure line is:

 ./configure --target=sparc-linux --enable-shared --with-languages=c
--with-cross-host=i686-pc-linux-gnu --host=i686-pc-linux-gnu
--build=i686-pc-linux-gnu

my configuration is:

linux kernel 2.4.4 (security patched ;-))
gcc 2.95.3
binutils 2.10.91

The error persists under the following configuration:

linux kernel 2.4.4 (security patched ;-))
gcc 3.1
binutils 2.12.1

I'm all out of ideas, so any hope would be welcome.

Please reply to this address and my alter ego (pgw99@doc.ic.ac.uk)...

Thanks in advance,

Regards,

Philip Willoughby



More information about the Gcc-bugs mailing list