Search Members Help

» Welcome Guest
[ Log In :: Register ]

Mini-ITX Boards Sale, Fanless BareBones Mini-ITX, Bootable 1G DSL USBs, 533MHz Fanless PC <-- SALE $200 each!
Get The Official Damn Small Linux Book. DSL Market , Great VPS hosting provided by Tektonic
Pages: (2) </ [1] 2 >/

[ Track this topic :: Email this topic :: Print this topic ]

reply to topic new topic new poll
Topic: gcc can't find /usr/bin/ld, gcc error and how can I fix it?< Next Oldest | Next Newest >
taiko Offline





Group: Members
Posts: 15
Joined: Mar. 2007
Posted: April 25 2007,00:24 QUOTE

Whenever I attempt to run gcc on some file (gcc was installed via the DSL extension that contains libraries) it gives me an error like the following:

Code Sample
/usr/bin/ld: crt1.o: No such file: No such file or directory
collect2: ld returned 1 exit status


Has anyone else run into this problem and found a solution/workaround?  thanks!


--------------
-- Gravity: it's not just a good idea, it's the LAW!
Back to top
Profile PM WEB 
^thehatsrule^ Offline





Group: Members
Posts: 3275
Joined: July 2006
Posted: April 25 2007,04:42 QUOTE

Your problem is not a missing /usr/bin/ld, but that that ld cannot find crt1.o

Make sure you have that somewhere in /usr like /usr/lib
Or you could specify the -B flag to gcc.

However, I must warn you that packages from mydsl are specifically made to work only for DSL, and not DSL-N.  Also, a search would've revealed that using the debian packages (i.e. via apt-get) is generally used.
Back to top
Profile PM 
taiko Offline





Group: Members
Posts: 15
Joined: Mar. 2007
Posted: April 25 2007,14:56 QUOTE

Quote (^thehatsrule^ @ April 24 2007,21:42)
Your problem is not a missing /usr/bin/ld, but that that ld cannot find crt1.o

Make sure you have that somewhere in /usr like /usr/lib
Or you could specify the -B flag to gcc.

However, I must warn you that packages from mydsl are specifically made to work only for DSL, and not DSL-N.  Also, a search would've revealed that using the debian packages (i.e. via apt-get) is generally used.

I realized after I posted that I was missing part of the error message and so I edited my post and simply forgot to edit the title so that's why it (incorrectly) said missing /usr/bin/ld instead of the real problem.  

As for the suggestion for apt-get I know about that, I've done LOTS of searching on this issue prior to deciding on the gcc route and would prefer to have gcc work because I would like to be able to not only compile existing apps, but create my own (currently not even a "Hello World" app will compile).

Any other suggestions?


--------------
-- Gravity: it's not just a good idea, it's the LAW!
Back to top
Profile PM WEB 
Juanito Offline





Group: Members
Posts: 1601
Joined: Sep. 2005
Posted: April 25 2007,18:08 QUOTE

I've managed to compile in DSL-N by loading a bunch of *.deb files - I can post the details here if that would be useful.
Back to top
Profile PM 
taiko Offline





Group: Members
Posts: 15
Joined: Mar. 2007
Posted: April 25 2007,18:30 QUOTE

Quote (Juanito @ April 25 2007,11:08)
I've managed to compile in DSL-N by loading a bunch of *.deb files - I can post the details here if that would be useful.

Please post more info.  I'm definitely interested!

--------------
-- Gravity: it's not just a good idea, it's the LAW!
Back to top
Profile PM WEB 
6 replies since April 25 2007,00:24 < Next Oldest | Next Newest >

[ Track this topic :: Email this topic :: Print this topic ]

Pages: (2) </ [1] 2 >/
reply to topic new topic new poll
Quick Reply: gcc can't find /usr/bin/ld

Do you wish to enable your signature for this post?
Do you wish to enable emoticons for this post?
Track this topic
View All Emoticons
View iB Code