crt1.o not found in mipsel-linux

pati (sent by
Thu Dec 8 20:36:00 GMT 2005


I am using mipsel-linux sde 6.02 version to compile and link a simpel hello world program. But, when I use gcc to link the object files, it says

/usr/lib/gcc/mipsel-linux/3.4.4/../../../../mipsel-linux/bin/ld: crt1.o: No such file: No such file or directory
collect2: ld returned 1 exit status

I find the crt1.o in the directory usr/lib , but when I try to include the path using  -L option, now it crashes with the following error...

[root@localhost hello]# mipsel-linux-gcc  -o main.elf main.o crt1.o            
/usr/lib/gcc/mipsel-linux/3.4.4/../../../../mipsel-linux/bin/ld: crt1.o: Relocations in generic ELF (EM: 3)
crt1.o: could not read symbols: File in wrong format
collect2: ld returned 1 exit status

I guess, crt1.o in /usr/lib is in big endian format. but, I dont find anyother such file in any of the paths..

When I run the print-search-dirs command, this is what I get ....

install: /usr/lib/gcc/mipsel-linux/3.4.4/
programs: =/usr/libexec/gcc/mipsel-linux/3.4.4/:/usr/libexec/gcc/mipsel-linux/3.4.4/:/usr/libexec/gcc/mipsel-linux/:/usr/lib/gcc/mipsel-linux/3.4.4/:/usr/lib/gcc/mipsel-linux/:/usr/libexec/gcc/mipsel-linux/3.4.4/:/usr/libexec/gcc/mipsel-linux/:/usr/lib/gcc/mipsel-linux/3.4.4/:/usr/lib/gcc/mipsel-linux/:/usr/lib/gcc/mipsel-linux/3.4.4/../../../../mipsel-linux/bin/mipsel-linux/3.4.4/:/usr/lib/gcc/mipsel-linux/3.4.4/../../../../mipsel-linux/bin/
libraries: =/usr/lib/gcc/mipsel-linux/3.4.4/:/usr/lib/gcc/mipsel-linux/3.4.4/:/usr/lib/gcc/mipsel-linux/3.4.4/../../../../mipsel-linux/lib/mipsel-linux/3.4.4/:/usr/lib/gcc/mipsel-linux/3.4.4/../../../../mipsel-linux/lib/

I tried to search for crt1.o in the above paths, but I couldnot find any...Does that mean , the toolchain didnot install properly.....Any help would be appreciated...

Thanks in advance  - Pati
Sent from the Sourceware - crossgcc list forum at

Want more information?  See the CrossGCC FAQ,
Want to unsubscribe? Send a note to

More information about the crossgcc mailing list