[lfs-support] chrooting to LFS env.

Ray McCaffity summitflier at yahoo.com
Tue Aug 2 14:17:51 PDT 2016

OK.  Everything works great, until step 6.7.1
root:/source/linux-4.4.2# make mrpropermake: gcc: Command not foundmake: gcc: Command not found
root:/source/linux-4.7# whereis gccgcc: /tools/bin/gcc
 echo $PATH/bin:/usr/bin:/sbin:/usr/sbin:/tools/bin
Every non-compiler command works.  For example /tools/bin/ls, make, cat, ipcs.
But when I try to use cc, gcc g++ I get...
root:/source/linux-4.7# cd /tools/binroot:/tools/bin# ./gcc -vbash: ./gcc: No such file or directoryroot:/tools/bin# ls -l gcc-rwxr-xr-x 3 root root 866464 Aug  2 19:24 gcc
 file /tools/bin/gcc/tools/bin/gcc: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked, interpreter /lib64/ld-linux-x86-64.so.2, for GNU/Linux 2.6.32, BuildID[sha1]=b1d44ad02e31e83ce9afbe23a8d374f14857424b, stripped
Also, if I leave the chrooted environment, and go back to (main host) root.  I notice, the gcc and c++commands in $LFS/tools/bin  work fine.
If I run...
and compile something, everything seems to work.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linuxfromscratch.org/pipermail/lfs-support/attachments/20160802/e4a15bea/attachment.html>

More information about the lfs-support mailing list