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