Chapter 6.7, LFS 6.3

Dan Nicholson dbn.lists at gmail.com
Fri Oct 5 10:24:48 PDT 2007


On 10/5/07, Elias Zoby <ezoby at click21.com.br> wrote:
>
> root:/sources/linux-2.6.22.5# sed -i '/scsi/d' include/Kbuild
> root:/sources/linux-2.6.22.5# make mrproper
> /sources/linux-2.6.22.5/scripts/gcc-version.sh: line 11: /tools/bin/gcc: No such file or directory
<snip>
> But I have gcc on $LFS/tools/bin.

Are the permissions on /tools/bin/gcc OK?

I believe what probably happened is that the Ch. 5 toolchain
adjustment didn't go correctly and /tools/bin/gcc is looking for the
host's dynamic linker at /lib/ld-linux.so.2. That doesn't exist inside
the chroot yet. Check gcc's intepreter:

$ readelf -l /tools/bin/gcc | grep interpreter
      [Requesting program interpreter: /tools/lib/ld-linux.so.2]

--
Dan



More information about the lfs-support mailing list