LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux From Scratch (https://www.linuxquestions.org/questions/linux-from-scratch-13/)
-   -   LFS step 5.7 (https://www.linuxquestions.org/questions/linux-from-scratch-13/lfs-step-5-7-a-515136/)

Shadows91 12-31-2006 09:16 AM

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

gilead 01-01-2007 06:46 PM

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

kevkim55 01-01-2007 10:12 PM

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.


All times are GMT -5. The time now is 09:45 PM.