Hi, I met a problem when I execute command 'make mrproper' in chapter 6.7, the issue like that: root: /sources/linux-4.2# make mrproper make: gcc: Command not found ./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 ./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 CLEAN include/generated root: /sources/linux-4.2#
and I find someone also met this issue before in this mail list: http://thread.gmane.org/gmane.linux.lfs.support/26083 after I read this mail discussion, I notice that this problem caused by /tools/bin/gcc has been compiled to use the dynamic linker at /lib/ld-linux.so.2 when it should have been compiled to use the one in /tools, as Dan Nicholson point out. Then, I followed the advise to make a symlink from /lib/ld-linux.so.2 to /tools/lib/ld-linux.so.2 in the chroot, but after I did that I still got some error when I execute command 'make INSTALL_HDR_PATH=dest headers_install', like that: root: /sources/linux-4.2# make INSTALL_HDR_PATH=dest headers_install CHK include/generated/uapi/linux/version.h UPD include/generated/uapi/linux/version.h HOSTCC scripts/basic/fixdep /tools/lib/gcc/x86_64-unknown-linux-gnu/5.2.0/../../../../x86_64-unknown- linux-gnu/bin/as: error while loading shared libraries: libz.so.1: cannot open shared object file: No such file or directory scripts/Makefile.host:91: recipe for target 'scripts/basic/fixdep' failed make[1]: *** [scripts/basic/fixdep] Error 1 Makefile:439: recipe for target 'scripts_basic' failed make: *** [scripts_basic] Error 2 root: /sources/linux-4.2# So, I want to know if I want to re-compile the gcc with the correct dynamic linker, how I can do it? thank you in advance. -- 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