LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux From Scratch (http://www.linuxquestions.org/questions/linux-from-scratch-13/)
-   -   Glibc make error on Linux From Scratch 7.0 (http://www.linuxquestions.org/questions/linux-from-scratch-13/glibc-make-error-on-linux-from-scratch-7-0-a-917818/)

ubuntudude12 12-08-2011 07:59 PM

Glibc make error on Linux From Scratch 7.0
 
Hello,

I am suing Linux From Scratch 7.0 I am currently trying to build Glibc-2.14.1. When I run the make command, here is what happens:

Code:

make -r PARALLELMFLAGS="" CVSOPTS="" -C ../glibc-2.14.1 objdir=`pwd` all
make[1]: Entering directory `/mnt/lfs/sources/glibc-2.14.1'
{ echo '#include "posix/bits/posix1_lim.h"';                \
          echo '#define _LIBC 1';                                        \
          echo '#include "misc/sys/uio.h"'; } |                        \
        gcc -E -dM -MD -MP -MF /mnt/lfs/sources/glibc-build/bits/stdio_lim.dT -MT '/mnt/lfs/sources/glibc-build/bits/stdio_lim.h /mnt/lfs/sources/glibc-build/bits/stdio_lim.d' \
              -Iinclude  -I/mnt/lfs/sources/glibc-build -Isysdeps/i386/elf -Inptl/sysdeps/unix/sysv/linux/i386/i686 -Isysdeps/unix/sysv/linux/i386/i686 -Inptl/sysdeps/unix/sysv/linux/i386 -Isysdeps/unix/sysv/linux/i386 -Inptl/sysdeps/unix/sysv/linux -Inptl/sysdeps/pthread -Isysdeps/pthread -Isysdeps/unix/sysv/linux -Isysdeps/gnu -Isysdeps/unix/common -Isysdeps/unix/mman -Isysdeps/unix/inet -Isysdeps/unix/sysv/i386 -Inptl/sysdeps/unix/sysv -Isysdeps/unix/sysv -Isysdeps/unix/i386 -Inptl/sysdeps/unix -Isysdeps/unix -Isysdeps/posix -Isysdeps/i386/i686/fpu -Isysdeps/i386/i686/multiarch -Inptl/sysdeps/i386/i686 -Isysdeps/i386/i686 -Isysdeps/i386/i486 -Inptl/sysdeps/i386/i486 -Isysdeps/i386/fpu -Inptl/sysdeps/i386 -Isysdeps/i386 -Isysdeps/wordsize-32 -Isysdeps/ieee754/ldbl-96 -Isysdeps/ieee754/dbl-64 -Isysdeps/ieee754/flt-32 -Isysdeps/ieee754 -Isysdeps/generic/elf -Isysdeps/generic -Inptl  -Ilibio -I. -nostdinc -isystem /usr/lib/gcc/i686-linux-gnu/4.6.1/include -isystem /usr/lib/gcc/i686-linux-gnu/4.6.1/include-fixed -isystem /tools/include -xc - -o /mnt/lfs/sources/glibc-build/bits/stdio_lim.hT
nptl/sysdeps/unix/sysv/linux/bits/local_lim.h:39:26: fatal error: linux/limits.h: No such file or directory
compilation terminated.
make  subdir=csu -C csu ..=../ subdir_lib
make[2]: Entering directory `/mnt/lfs/sources/glibc-2.14.1/csu'
{ echo '#include "../posix/bits/posix1_lim.h"';                \
          echo '#define _LIBC 1';                                        \
          echo '#include "../misc/sys/uio.h"'; } |                        \
        gcc -E -dM -MD -MP -MF /mnt/lfs/sources/glibc-build/bits/stdio_lim.dT -MT '/mnt/lfs/sources/glibc-build/bits/stdio_lim.h /mnt/lfs/sources/glibc-build/bits/stdio_lim.d' \
              -I../include -I/mnt/lfs/sources/glibc-build/csu -I/mnt/lfs/sources/glibc-build -I../sysdeps/i386/elf -I../nptl/sysdeps/unix/sysv/linux/i386/i686 -I../sysdeps/unix/sysv/linux/i386/i686 -I../nptl/sysdeps/unix/sysv/linux/i386 -I../sysdeps/unix/sysv/linux/i386 -I../nptl/sysdeps/unix/sysv/linux -I../nptl/sysdeps/pthread -I../sysdeps/pthread -I../sysdeps/unix/sysv/linux -I../sysdeps/gnu -I../sysdeps/unix/common -I../sysdeps/unix/mman -I../sysdeps/unix/inet -I../sysdeps/unix/sysv/i386 -I../nptl/sysdeps/unix/sysv -I../sysdeps/unix/sysv -I../sysdeps/unix/i386 -I../nptl/sysdeps/unix -I../sysdeps/unix -I../sysdeps/posix -I../sysdeps/i386/i686/fpu -I../sysdeps/i386/i686/multiarch -I../nptl/sysdeps/i386/i686 -I../sysdeps/i386/i686 -I../sysdeps/i386/i486 -I../nptl/sysdeps/i386/i486 -I../sysdeps/i386/fpu -I../nptl/sysdeps/i386 -I../sysdeps/i386 -I../sysdeps/wordsize-32 -I../sysdeps/ieee754/ldbl-96 -I../sysdeps/ieee754/dbl-64 -I../sysdeps/ieee754/flt-32 -I../sysdeps/ieee754 -I../sysdeps/generic/elf -I../sysdeps/generic -I../nptl  -I.. -I../libio -I. -nostdinc -isystem /usr/lib/gcc/i686-linux-gnu/4.6.1/include -isystem /usr/lib/gcc/i686-linux-gnu/4.6.1/include-fixed -isystem /tools/include -xc - -o /mnt/lfs/sources/glibc-build/bits/stdio_lim.hT
../nptl/sysdeps/unix/sysv/linux/bits/local_lim.h:39:26: fatal error: linux/limits.h: No such file or directory
compilation terminated.
make[2]: Leaving directory `/mnt/lfs/sources/glibc-2.14.1/csu'
make[1]: *** [csu/subdir_lib] Error 2
make[1]: Leaving directory `/mnt/lfs/sources/glibc-2.14.1'
make: *** [all] Error 2


spiky0011 12-09-2011 02:46 AM

hi did make sure you that your distro was combatable with the version script

Andrew Benton 12-13-2011 06:37 AM

Quote:

Originally Posted by ubuntudude12 (Post 4545579)
Code:

fatal error: linux/limits.h: No such file or directory
compilation terminated.


It looks like you need to install the kernel headers on your host system

fetux 01-18-2012 04:33 PM

same problem
 
I have the same error when trying to build Glibc-2.14.1
I installed the kernel headers on my host system (Trisquel 5)
Still have the problem.
Does anybody know which packages are needed?

Thanks!

spiky0011 01-19-2012 11:49 AM

Hi

When you say which packages are needed what do you mean, for doing what?


All times are GMT -5. The time now is 01:33 PM.