On Tue, Feb 21, 2017 at 5:51 PM, Devin Duren <[email protected]> wrote: >> I am using LFS version 7.10. >> In Section 6.7 after chrooting I attempt to run make for the linux >> headers, but receive the following error output from make: >> make: gcc: Command not found >> >> and another, more specific error: >> ./scripts/gcc-version.sh: line 25: /tools/bin/gcc: No such file or >> directory >> ./scripts/gcc-version.sh: line 26: /tools/bin/gcc: No such file or >> directory
>Sounds as if /tools/bin/gcc is linked against a library on the host >system. In chroot, ldd /tools/bin/gcc might help. Also running >that outside chroot. This seems to be the case. Running "ldd /bin/tools/gcc" inside chroot: /tools/bin/ldd: line 117: /tools/bin/gcc: No such file or directory Running outside the chroot: linux-vdso.so.1 => (0x00007ffd203c8000) libm.so.6 => /lib64/libm.so.6 (0x00007f9489f2f000) libc.so.6 => /lib64/libc.so.6 (0x00007f9489b6e000) /lib64/ld-linux-x86-64.so.2 (0x00007f948a24d000) Given that 4th line of output from ldd outside the chroot, I interpret as meaning your suggestion is correct. I feel this means I need to restart Chapter 5 from the beginning to get gcc properly linked again? Is it possible to re-install just gcc without needing to also re-install the other packages in chapter 5? Thanks for your help so far. -Devin -- 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
