crt0.o issue with i686 --> x86_64

Ewan Oughton
Mon Oct 16 13:01:00 GMT 2006


 	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

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:

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?



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

For unsubscribe information see

More information about the crossgcc mailing list