On 17/01/2019 16:44, jonetsu wrote: > On Thu, 17 Jan 2019 10:36:33 -0500 > jonetsu <[email protected]> wrote: > >> make: gcc: Command not found > > I should add that ldd (as chroot) gives: > > lfs chroot) root:/tools/bin# ldd gcc > linux-vdso.so.1 (0x00007ffeed749000) > > libc.so.6 => /tools/lib/libc.so.6 (0x00007f75b5b98000) > > /lib64/ld-linux-x86-64.so.2 > => /tools/lib64/ld-linux-x86-64.so.2 (0x000055fcadf76000) > > Also, when the ch5 lfs user (not the ch6 chroot) tries to directly run > gcc from /tools/bin/, it works. > > It looks as if the '/lib64' portion of '/lib64/ld-linux-x86-64.so.2' is > not right and still implies the host. Not sure, though. >
So, IIUC gcc *is* in /tools/bin (and is executable) (what is the ouput of ls -l /tools/bin/*gcc*). Then, what is the output of: gcc -v cd /tools/bin; ./gcc -v (try both) ? You could also try gcc -print-search-dirs, and check that all the dirs begin with /tools. Also "gcc -print-prog-name=cc1" or start with ./gcc from the /tools/bin dir. All of this should be done from chroot, with virtual file systems mounted. HTH Pierre -- http://lists.linuxfromscratch.org/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/blfs/faq.html Unsubscribe: See the above information page Do not top post on this list. A: Because it messes up the order in which people normally read text. Q: Why is top-posting such a bad thing? A: Top-posting. Q: What is the most annoying thing in e-mail? http://en.wikipedia.org/wiki/Posting_style
