error - re-adjusting the toolchain chapter 6

reeve.r at reeve.r at
Mon Oct 1 15:45:47 PDT 2007


received the this error after re-adjusting the toolchain in chapter 6 
and running sanity check.

root:~# mv -v /tools/bin/{ld,ld-old}
`/tools/bin/ld' -> `/tools/bin/ld-old'
root:~# mv -v /tools/$(gcc -dumpmachine)/bin/{ld,ld-old}
`/tools/i686-pc-linux-gnu/bin/ld' -> `/tools/i686-pc-linux-gnu/bin/ld-
root:~# mv -v /tools/bin/{ld-new,ld}
mv: cannot stat `/tools/bin/ld-new': No such file or directory
root:~# ln -sv /tools/bin/ld /tools/$(gcc -dumpmachine)/bin/ld
create symbolic link `/tools/i686-pc-linux-gnu/bin/ld' to 
root:~# gcc -dumpspecs | \
> perl -p -e 's@/tools/lib/ at g;' \
>     -e 's@\*startfile_prefix_spec:\n@$_/usr/lib/ @g;' > \
>     `dirname $(gcc --print-libgcc-file-name)`/specs
root:~# echo 'main(){}' > dummy.c
root:~# cc dummy.c -Wl,--verbose &> dummy.log
root:~# readelf -l a.out | grep ': /lib'
readelf: Error: 'a.out': No such file

The problem line from above appears to be - mv: cannot stat 
`/tools/bin/ld-new': No such file or directory

Is this a problem with the binutils installation?

If so will I need to rebuild the toolchain of is there a fix which can 
be applied?

many thanks


Tiscali Broadband only £7.99 a month for your first 3 months!

More information about the lfs-support mailing list