LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
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-31-2006, 09:16 AM   #1
Shadows91
LQ Newbie
 
Registered: Dec 2006
Posts: 1

Rep: Reputation: 0
LFS step 5.7


Hi,

I've been trying to build a LFS system, using the livecd as host, but keep getting an error on step 5.7. After adjusting the toolchain I follow the tip trying to execute the following commands:

echo "main(){}" > dummy.c
cc dummy.c
readelf -l a.out | grep ': /tools'

But the compiler throws this error at me:

/mn/lfs/tools/bin/../lib/gcc/i686-pc-linux-gnu/4.0.3/../../../../i686-pc-linux-gnu/bin/ld: warning: ld-linux.so.2, needed by /tools/lib/libc.so.6, not found (try using -rpath or -rpath-link)

I've checked that /tools/lib/ld-linux.so.2 exists and that the specsfile is correctly edited.

Anyone got an idea of what might be wrong ?

Happy New Year

Last edited by Shadows91; 12-31-2006 at 09:33 AM.
 
Old 01-01-2007, 06:46 PM   #2
gilead
Senior Member
 
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,141

Rep: Reputation: 168Reputation: 168
I haven't had that particular problem, so this is only a guess. Did you create the symlink at the end of chapter 5.4? The cc being used in the step you're up to should be a symlink to the gcc you created in that chapter:
Code:
ln -vs gcc /tools/bin/cc
 
Old 01-01-2007, 10:12 PM   #3
kevkim55
Member
 
Registered: Dec 2005
Location: Edmonton
Distribution: BLFS, Gentoo
Posts: 353

Rep: Reputation: 32
Do what gilead suggested. Also, make sure that you have set the PATH variable so that /tools/bin is at the head of the list. If that doesn't help, you'll have to retrace your steps and make sure you followed the steps correctly.
 
  


Reply



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
cannot configure gcc. LFS step 5.4. tech9ic Linux From Scratch 1 08-02-2006 01:01 PM
Step by Step guied for Installation pent@net Dvb card under linux mobassir Linux - Networking 4 06-07-2006 07:31 PM
LFS Book Chapter 6 - 1st step (chroot to /mnt/lfs) doens't work bauld Linux From Scratch 11 03-15-2006 12:31 AM
LFS 6.1 step 5.7: "ld: no input file" when compiling dummy.c zonk Linux From Scratch 6 09-05-2005 01:51 AM
Step 4.4 of LFS 6.0: Setting up the Environment dimaash Linux From Scratch 2 07-17-2005 11:18 PM

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

All times are GMT -5. The time now is 09:52 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