On 12/27/12 15:06, Sven Bartscher wrote:
> Hey guys!
> I worked trough th chapter 6 of LFS and come to the point 6.10
> "Adjusting the toolchain" then i got an error "a.out no such file or
> directory" after the command "readelf -l a.out | grep ': /lib'" then i
> tried to fix it myself and did an epic fail! i done the following steps
> again:
> mv -v /tools/bin/{ld,ld-old}
> mv -v /tools/$(gcc -dumpmachine)/bin/{ld,ld-old}
> mv -v /tools/bin/{ld-new,ld}
> ln -sv /tools/bin/ld /tools/$(gcc -dumpmachine)/bin/ld
>
> as "mv -v /tools/bin/{ld-new,ld} failed with an error
> ("/tools/bin/ld-new no such file or directory") i noticed that i
> overwrote the backups of ld! and now i don't know how to get them back.
> Can anyone help me?
>
> my LFS version: 7.2
> My host distribution: Ubuntu 12.10 64bit
> my version-check.sh output:
>
> sven@Sven-Ubuntu:~$ bash version-check.sh
> bash, version 4.2.37(1)-release
> /bin/sh -> /bin/dash
> Binutils: (GNU Binutils for Ubuntu) 2.22.90.20120924
> bison (GNU Bison) 2.5
> /usr/bin/yacc -> /usr/bin/bison.yacc
> bzip2,  Version 1.0.6, 6-Sept-2010.
> Coreutils:  8.13
> diff (GNU diffutils) 3.2
> find (GNU findutils) 4.4.2
> GNU Awk 4.0.1
> /usr/bin/awk -> /usr/bin/gawk
> gcc (Ubuntu/Linaro 4.7.2-2ubuntu1) 4.7.2
> (Ubuntu EGLIBC 2.15-0ubuntu20) 2.15
> grep (GNU grep) 2.12
> gzip 1.5
> Linux version 3.5.0-21-generic (buildd@allspice) (gcc version 4.7.2
> (Ubuntu/Linaro 4.7.2-2ubuntu1) ) #32-Ubuntu SMP Tue Dec 11 18:51:59 UTC 2012
> m4 (GNU M4) 1.4.16
> GNU Make 3.81
> patch 2.6.1
> Perl version='5.14.2';
> GNU sed version 4.2.1
> tar (GNU tar) 1.26
> Texinfo: makeinfo (GNU texinfo) 4.13
> xz (XZ Utils) 5.1.0alpha
> gcc compilation OK
> sven@Sven-Ubuntu:~$
/bin/sh -> /bin/dash: That is wrong. /bin/sh should be a link to 
/bin/bash. I'm not sure if that is the cause of your problem though.

I suggest you leave the chroot, su to the lfs-user, and redo chapter 
5.8, without the make and make install.

Groet,
Thomas
-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page

Reply via email to