Chapter 6.7, LFS 6.3

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

On 10/5/07, Elias Zoby <ezoby at> wrote:
> root:/sources/linux- sed -i '/scsi/d' include/Kbuild
> root:/sources/linux- make mrproper
> /sources/linux- line 11: /tools/bin/gcc: No such file or directory
> 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/ That doesn't exist inside
the chroot yet. Check gcc's intepreter:

$ readelf -l /tools/bin/gcc | grep interpreter
      [Requesting program interpreter: /tools/lib/]


More information about the lfs-support mailing list