LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch
User Name
Password
Linux From Scratch This Forum is for the discussion of LFS.
LFS is a project that provides you with the steps necessary to build your own custom Linux system.

Notices


Reply
  Search this Thread
Old 12-27-2010, 03:12 PM   #1
computerfreak97
Member
 
Registered: Dec 2010
Posts: 45

Rep: Reputation: 0
gcc ld cannon find -lc


Well, I got all the way to ch 5.7 in the version 6.3 book without any errors, and now I am getting the error:
/mnt/lfs/tools/bin/../lib/gcc/i686-pc-linux-gnu/4.1.2/../../../../i686-pc-linux-gnu/bin/ld: cannot find -lc. THis happens when i try to run gcc dummy.c.
 
Old 12-27-2010, 03:25 PM   #2
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405
Hi,

Shouldn't that be: cc dummy.c?

From the 6.3 book:
Quote:
echo 'main(){}' > dummy.c
cc dummy.c
readelf -l a.out | grep ': /tools'
gcc dummy.c should only be tried if the cc command fails (as described in the Caution part).

Hope this helps.
 
Old 12-27-2010, 03:26 PM   #3
computerfreak97
Member
 
Registered: Dec 2010
Posts: 45

Original Poster
Rep: Reputation: 0
it is, i tried both.
 
Old 12-27-2010, 03:37 PM   #4
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405
Hi,

How about the other tips given in the Caution box? Tried any of those?

Are you 100% sure all the commands where copy/pasted (typed???) correctly and none where forgotten?

Please give more information, its a bit hard to guess what you have tried already.
 
Old 12-27-2010, 03:43 PM   #5
computerfreak97
Member
 
Registered: Dec 2010
Posts: 45

Original Poster
Rep: Reputation: 0
everything appears to be right, except that path is /tools/bin:/bin/usr/bin, as it says to set it to in ch 4.4.
 
Old 12-27-2010, 03:44 PM   #6
computerfreak97
Member
 
Registered: Dec 2010
Posts: 45

Original Poster
Rep: Reputation: 0
i cant copy and paste the commands, but i double checked, and they were typed right
 
Old 12-27-2010, 03:57 PM   #7
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405
Hi,
Quote:
Originally Posted by computerfreak97 View Post
everything appears to be right, except that path is /tools/bin:/bin/usr/bin, as it says to set it to in ch 4.4.
The PATH is incorrect and not as shown in chapter 4.4. It should be: /tools/bin:/bin:/usr/bin
 
Old 12-27-2010, 03:57 PM   #8
computerfreak97
Member
 
Registered: Dec 2010
Posts: 45

Original Poster
Rep: Reputation: 0
srry, mistype on my end, thats what it is
 
Old 12-27-2010, 03:59 PM   #9
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405
Hi,
Quote:
Originally Posted by computerfreak97 View Post
i cant copy and paste the commands, but i double checked, and they were typed right
That's a bummer. Triple check the commands in chapter 5.7, a typo is made very easy (as acknowledged by the LFS team in that same chapter).
 
  


Reply


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
cant find gcc ryedunn Mandriva 3 09-14-2005 12:32 AM
Can't find GCC on Mandrake 9.1 lordshipmayhem Mandriva 46 04-03-2004 01:56 AM
mandrake 9.1 cant find gcc ziegen Linux - Software 11 09-20-2003 05:36 AM
Still cant find and use gcc linuxlah Linux - Software 3 06-06-2002 12:14 AM
Cant find GCC manzoor Programming 3 10-12-2001 01:46 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch

All times are GMT -5. The time now is 10:07 AM.

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