> > > My stab in the dark is that this could have something to do with yacc. My first attempt on this host system, the bash build broke because I didn't have a yacc binary in my PATH. I installed the Fedora 16 byacc package and that gave me a yacc binary. Someone else said that installing bison fixed this problem for them, but I installed that first and it didn't help. On Fedora 16, installing bison gives me some yacc-related header files, but no yacc binary, hence why I had to install byacc. >
Thank you for this hint. I am using LFS 7.0 on an Xubuntu Lucid 32bit on an old Pentium 4 -> x686. I followed the instructions of the book exactly. But the build of bash in chapter 5 failed because there was no yacc. So I installed byacc from ubuntu packages. After that Bash built and as recommended I skipped the test suite. I had no problems until I tried to build glibc in chapter 6. The first error occured in the chroot environment when I performed DL=$(readelf -l /bin/sh | sed -n 's@.*interpret.*/tools\(.*\)]$@\1@p') syntax error near unexpected token `)' I worked this around, but the build of glibc failed with the same error message! The bash on the host system had of course no problem to perform the "DL=$(....)" command. So it seems to be a problem with bash's parser. I solved this problem by removing byacc on the host system, installing bison and re-building bash. I didn't finish LFS, yet, but it seems to work. At least I was able to build glibc! Perhaps there could be a section in the next release of LFS to ensure the right yacc binary?? -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
