crt0.o issue with i686 --> x86_64

Ewan Oughton ewan@skynet.ie
Mon Oct 16 13:01:00 GMT 2006


Hi,


 	I compiled gcc-3.2.3 with the following configure call:

./configure --target=x86_64-pc-elf --prefix=/usr/cross --disable-nls 
--enable-languages=c,c++ --enable-shared --disable-multilib
--with-headers=/usr/local/x86_64-pc-elf/include/


and then do a make all-gcc && make install-gcc

I have installed the relevant binutils.

The contents of /usr/local/x86_64-pc-elf/include/ were copied over from a 
target machine.


I've also tried --with[out]-newlib, --disable-newlib to the same effect.


When I try and compile any C code, I get the following error:

/usr/cross/lib/gcc-lib/x86_64-pc-elf/3.2.3/../../../../x86_64-pc-elf/bin/ld: 
cannot open crt0.o: No such file or directory


>From googling, crt0.o appears to be a startup file; other crt*.o files are 
present(crt1.o, crtbegin.o etc), but no crt0.o... there is also no crt0.o 
present on the target machine. Am I passing the wrong configure flags? Any ideas?



Thanks


Ewan


Ewan Oughton B.Sc. Comp Sys
DB / AnonFTP / Orac Root Admin SkyNet


--
For unsubscribe information see http://sourceware.org/lists.html#faq



More information about the crossgcc mailing list