On Sun, 2012-12-16 at 13:19 -0800, JIA Pei wrote: > > Hi, Michael: > > > Thank you very much for your detailed reply, so clear !! > My Host System Requirements gives me the following result: > ... > > root@peijia-GA-870A-UD3:/mnt/lfs/sources/glibc-build# bash > version-check.sh > bash, version 4.2.24(1)-release > /bin/sh -> /bin/dash
As per the host system requirements: Bash-3.2 (/bin/sh should be a symbolic or hard link to bash) '/bin/sh' being a link to dash is bad news/ for LFS. > Binutils: (GNU Binutils for Ubuntu) 2.22 > bison (GNU Bison) 2.5 > /usr/bin/yacc -> /usr/bin/bison.yacc > bzip2, Version 1.0.6, 6-Sept-2010. > Coreutils: 8.13 > diff (GNU diffutils) 3.2 > find (GNU findutils) 4.4.2 > GNU Awk 3.1.8 > /usr/bin/awk -> /usr/bin/gawk > gcc (Ubuntu/Linaro 4.6.3-1ubuntu5) 4.6.3 > (Ubuntu EGLIBC 2.15-0ubuntu10.3) 2.15 > grep (GNU grep) 2.10 > gzip 1.4 > Linux version 3.2.0-34-generic-pae (buildd@roseapple) (gcc version > 4.6.3 (Ubuntu/Linaro 4.6.3-1ubuntu5) ) #53-Ubuntu SMP Thu Nov 15 > 11:11:12 UTC 2012 > m4 (GNU M4) 1.4.16 > GNU Make 3.81 > patch 2.6.1 > Perl version='5.14.2'; > GNU sed version 4.2.1 > tar (GNU tar) 1.26 > Texinfo: makeinfo (GNU texinfo) 4.13 > xz (XZ Utils) 5.1.0alpha > gcc compilation OK > > > > > Now, I tried the Glibc Configuration command again: > > > ../glibc-2.16.0/configure \ > --prefix=/tools \ > --host=$LFS_TGT \ > --build=$(../glibc-2.16.0/scripts/config.guess) \ > --disable-profile \ > --enable-add-ons \ > --enable-kernel=2.6.15 \ > --with-headers=/tools/include \ > libc_cv_forced_unwind=yes \ > libc_cv_ctors_header=yes \ > libc_cv_c_cleanup=yes > > > gives me the following answers: > > > > ../nptl/sysdeps/unix/sysv/linux/bits/local_lim.h:38:26: fatal error: > linux/limits.h: No such file or directory > compilation terminated. > make[2]: Leaving directory `/mnt/lfs/sources/glibc-2.16.0/csu' > make[1]: *** [csu/subdir_lib] Error 2 > make[1]: Leaving directory `/mnt/lfs/sources/glibc-2.16.0' > make: *** [all] Error 2 > > > > > What I'm expecting is: > Since I've successfully built Linux-Kernel 3.6.10 before building > glibc 2.16.0, I'm just wondering if I'm able to use my own built > linux-kernel under /tools, instead of using the linux-kernel on my > Host System Ubuntu 12.04 Linux 3.2.0-34-generic-pae ? You're not building a kernel at this stage, just headers. > > So, questions: > 1) Is there a way to use my own built linux kernel 3.6.10, instead of > the Linux kernel on Host System Ubuntu 12.04? If so, how to do that? At this stage of the build you're not really wanting to build the kernel, just install the headers to '/tools/include'. The switch '--with-headers=/tools/include' above ensures you are using those headers. > 2) No matter which linux kernel I'm going to use, how to deal with the > following error message when compiling Glibc? > > > ../nptl/sysdeps/unix/sysv/linux/bits/local_lim.h:38:26: fatal error: > linux/limits.h: No such file or directory > > Fix the '/bin/sh' path, and ensure that you are install the Linux headers correctly. Read the book very carefully, it is all too easy to miss important points. You really can't go too slowly building at this point. And remember use the package versions exactly described in the stable book. Thanks, Michael -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
