Thomas Trepl wrote:
Hi all,after a long time of abstinence I'll restart playing with LFS. So for so good as I come to chap6 until trying to install the headers. It segfaults at "make install_headers" with <pre> CHK include/generated/uapi/linux/version.h UPD include/generated/uapi/linux/version.h HOSTCC scripts/basic/fixdep /bin/sh: line 1: 20146 Segmentation fault scripts/basic/fixdep scripts/basic/.fixdep.d scripts/basic/fixdep 'gcc -Wp,- MD,scripts/basic/.fixdep.d -Wall -Wmissing-prototypes -Wstrict- prototypes -O2 -fomit-frame-pointer -std=gnu89 -o scripts/basic/fixdep scripts/basic/fixdep.c ' > scripts/basic/.fixdep.tmp make[1]: *** [scripts/Makefile.host:91: scripts/basic/fixdep] Error 139 make: *** [Makefile:440: scripts_basic] Error 2 </pre> I million-checked that the kernel file systems are mounted well. Than i tried to simply compile <pre> #include <stdio.h> int main(int argc, char *argv[]) { printf("Hallo!\n"); return 0; } </pre> using "gcc dummy.c -o dummy" in the chroot environment. It compiles/links well, but when i try to execute it, dummy segfaults too. <pre> (CH5) root:~# ./dummy Segmentation fault </pre> So it seems that the installation isn't able to build valid programs in chroot environment which explains why the header installation fails (fixdep may also be not executable). Doing a ldd shows <pre> (CH5) root:~# ldd dummy linux-gate.so.1 (0xb7759000) libc.so.6 => /tools/lib/libc.so.6 (0xb75a5000) /tools/lib/ld-linux.so.2 (0xb775a000) </pre> Where to start to search for the fault?
About the only candidates are binutils, gcc, or glibc. Did the sanity checks in 5.7 - glibc and 5.10 - gcc-pass-2 work properly?
Usually I tell my students at this point to start Chapter 5 over. They often do not build Chapter 5 as user lfs. I know you are more experienced then that, but if I ran into that problem, I would start over too.
-- Bruce -- 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
