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# cat >
version-check.sh << "EOF"*
*> #!/bin/bash*
*> # Simple script to list version numbers of critical development tools*
*> *
*> export LC_ALL=C*
*> bash --version | head -n1 | cut -d" " -f2-4*
*> echo "/bin/sh -> `readlink -f /bin/sh`"*
*> echo -n "Binutils: "; ld --version | head -n1 | cut -d" " -f3-*
*> bison --version | head -n1*
*> if [ -e /usr/bin/yacc ];*
*>   then echo "/usr/bin/yacc -> `readlink -f /usr/bin/yacc`"; *
*>   else echo "yacc not found"; fi*
*> *
*> bzip2 --version 2>&1 < /dev/null | head -n1 | cut -d" " -f1,6-*
*> echo -n "Coreutils: "; chown --version | head -n1 | cut -d")" -f2*
*> diff --version | head -n1*
*> find --version | head -n1*
*> gawk --version | head -n1*
*> if [ -e /usr/bin/awk ];*
*>   then echo "/usr/bin/awk -> `readlink -f /usr/bin/awk`"; *
*>   else echo "awk not found"; fi*
*> *
*> gcc --version | head -n1*
*> ldd --version | head -n1 | cut -d" " -f2-  # glibc version*
*> grep --version | head -n1*
*> gzip --version | head -n1*
*> cat /proc/version*
*> m4 --version | head -n1*
*> make --version | head -n1*
*> patch --version | head -n1*
*> echo Perl `perl -V:version`*
*> sed --version | head -n1*
*> tar --version | head -n1*
*> echo "Texinfo: `makeinfo --version | head -n1`"*
*> xz --version | head -n1*
*> *
*> echo 'main(){}' > dummy.c && gcc -o dummy dummy.c*
*> if [ -x dummy ] *
*>   then echo "gcc compilation OK";*
*>   else echo "gcc compilation failed"; fi*
*> rm -f dummy.c dummy*
*> EOF*
*root@peijia-GA-870A-UD3:/mnt/lfs/sources/glibc-build# *
*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*
*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* ?


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?
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

*
*
*

Cheers
Pei


On Sun, Dec 16, 2012 at 6:50 AM, Michael E. Maher <mich...@maheronline.co.uk
> wrote:

> On Sun, 2012-12-16 at 04:47 -0800, JIA Pei wrote:
> >
> > Hi, all:
> >
> >
> > After successfully built
> > binutils
> > gcc
> > linux-kernel
> >
> >
> > now, I'm
> > following
> http://www.linuxfromscratch.org/lfs/view/stable/chapter05/glibc.html
> > to build glibc. make brings me the following errors:
> >
> >
> > 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
> >
> >
> > Did anybody meet the same problem? And how to solve it?
> >
> >
> >
> >
> > Cheers
> >
> >
> > --
> >
> >
> > Pei JIA
> >
> >
> > Email: jp4w...@gmail.com
> > cell:    +1 604-362-5816
> >
> >
> > Welcome to Vision Open
> > http://www.visionopen.com
>
>
> Hi Pei,
>
> First from your other mails it seems you may be using a mix of versions
> and patches, can we confirm that you are only using those stated in the
> stable book?
>
> Second does your system meet the 'Host System Requirements' in section
> vii of the preface[1] and can we confirm with the output of the script.
>
> Third we would need to see exactly what is failing, you have only
> provided a small part of the build log.
>
>
> Thanks,
> Michael
>
> [1]http://www.linuxfromscratch.org/lfs/view/stable/prologue/hostreqs.html
>
>


-- 

Pei JIA

Email: jp4w...@gmail.com
cell:    +1 604-362-5816

Welcome to Vision Open
http://www.visionopen.com
-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page

Reply via email to