LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux From Scratch (https://www.linuxquestions.org/questions/linux-from-scratch-13/)
-   -   5.7 Adjusting the Toolchain Problem (https://www.linuxquestions.org/questions/linux-from-scratch-13/5-7-adjusting-the-toolchain-problem-582899/)

g3neration 09-07-2007 06:36 AM

5.7 Adjusting the Toolchain Problem
 
I've gotten to 5.7 for adjusting the toolchain. After running the initial mv and ln commands, I issue:

Code:

gcc -dumpspecs | sed 's@^/lib/ld-linux.so.2@/tools&@g' `dirname $(gcc -print-libgcc-file-name)`/specs
I get the error:

Code:

sed: can't read /mnt/lfs/tools/bin/../lib/gcc/i686-pc-lnux-gnu/4.2.1/specs: No such file or directory
At first I thought maybe I typed something wrong but after starting from the beginning 3 times already, I'm having some doubts. I've tried rechecking all the commands I've typed but everytime I get up to this point I get the same error. I'm pretty new to Linux so I'm not sure if I ran this command correctly:

Code:

readelf -l /tools/bin/cc | grep interpreter
The output states that the program intereter is: /lib/ld-linux.so.2

I dont believe that's normal since the LFS book states it should be in /tools/lib/ld-linux.so.2 or am I wrong? I'm not sure if this is part of the problem. Just throwing it out there. Thanks for any info.

druuna 09-08-2007 05:14 AM

Hi,

This: gcc -dumpspecs | sed 's@^/lib/ld-linux.so.2@/tools&@g' `dirname $(gcc -print-libgcc-file-name)`/specs is not correct, it should be:

gcc -dumpspecs | sed 's@^/lib/ld-linux.so.2@/tools&@g' > `dirname $(gcc -print-libgcc-file-name)`/specs

Hope this helps.

g3neration 09-08-2007 10:41 AM

Thanks a bunch. Now I feel silly. I couldnt really copy and paste since I'm using VMWare. I thought the > was just from the prompt. Thanks again.


All times are GMT -5. The time now is 03:57 PM.