I've gotten to 5.7 for adjusting the toolchain. After running the initial mv and ln commands, I issue:
gcc -dumpspecs | sed 's@^/lib/ld-linux.so.2@/tools&@g' `dirname $(gcc -print-libgcc-file-name)`/specs
I get the error:
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:
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.