Am 28.12.2012 12:42, schrieb Sven Bartscher: > Am 27.12.2012 15:29, schrieb Thomas de Roo: >> 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 >> > Are you sure i don't have to do the make command? I i don't there is > no ld directory in the binutils-build directory, or should i get the d > file from the binutils2.22/ld directory? oh i forgot to write this: here my new version-check.sh output: sven@Sven-Ubuntu:~$ sh version-check.sh bash, version 4.2.37(1)-release /bin/sh -> /bin/bash 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:~$
i unpacked the binutils2.22.tar.bz2 then i the binutils-buil directory and run the configure script, but then there was no ld directory. so i run make and then there was the ld directory. I copied it to the required directorys and continued the book in chapter 6.10. Then i run this test: root:/# echo 'main(){}' > dummy.c root:/# cc dummy.c -v -W1,--verbose &> dummy.log root:/# readelf -l a.out | grep ': /lib' readelf: Error: 'a.out': No such file root:/# like it happened before i deleted the ld-files by a mistake. Do anyone know what i can do now? PS: Sorry for bad English, i'm from germany and don't speak English so good. -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page