prob in ajdusting the toolchain section 5.9
hi all
currently i'm at section 5.9(adjusting the toolchain) of lfs v6.0.i'm not able to understand where to run the script
SPECFILE=`gcc --print-file specs` &&
sed 's@ /lib/ld-linux.so.2@ /tools/lib/ld-linux.so.2@g' \
$SPECFILE > tempspecfile &&
mv -f tempspecfile $SPECFILE &&
unset SPECFILE
in section 5.8 i was in the directory glibc-build.at the start of sec 5.9 it asks to b in binutils-build n run some command n then to delete the source directory of same.so in which directory this script should run.after running this script it asks u to run the dummy prog
echo 'main(){}' > dummy.c
cc dummy.c
readelf -l a.out | grep ': /tools'
afterrunning the script in lfs directory i tried the above commands but didnt get any output.but the desired output was
"[Requesting program interpreter:
/tools/lib/ld-linux.so.2]
"
the books says
First, perform the sanity check again, using gcc instead of cc. If this works, then the /tools/bin/cc symlink is missing.Next, ensure that the PATH is correct. This can be checked by running echo $PATH and verifying that /tools/bin is at the head of the list. If the PATH is wrong it could mean that you are not logged in as user lfs or that something went wrong back in Section 4.4, “Setting Up the Environment.” Another option is that something may have gone wrong with the specs file amendment above. In this case, redo the specs file amendment, being careful to copy-and-paste the commands.
"
i've tried everything.gcc doesnt work n path is also correct.so please help me!
|