This is the mail archive of the crossgcc@sourceware.org mailing list for the crossgcc project.
See the CrossGCC FAQ for lots more information.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Other format: | [Raw text] |
Hi, 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 Nabble.com: http://www.nabble.com/crt1.o-not-found-in-mipsel-linux-t705223.html#a1858244 ------ Want more information? See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/ Want to unsubscribe? Send a note to crossgcc-unsubscribe@sources.redhat.com
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |