Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 12-08-2005, 03:53 PM   #1
LQ Newbie
Registered: Dec 2005
Posts: 1

Rep: Reputation: 0
crt1.o not found using mipsel-linux

Hello everybody,

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 - uday


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
can link with crt1.o error. wolver Linux From Scratch 0 01-16-2005 09:02 AM
Where do I find 'crt1.o' and 'crtn.o' for gcc 3.4.1 ? Qwirt Linux - Software 1 07-28-2004 06:08 PM
ld: cannot open crt1.o: No such file or directory PeterRanson *BSD 4 10-31-2003 11:31 AM
Slackware 8.1 is completely missing crt1.o fern Slackware 11 08-31-2003 06:33 AM
crt1.o / glibc-devel chris17 Slackware 3 07-26-2003 02:28 PM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 07:59 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration