When configuring Glibc prior to compiling it I recieve an error concerning kernel headers telling me to use "--with-headers"
1
vote
1
answer
1511
views
I am using the latest stable Linux from Scratch book version. In [Step 5.5.1](https://www.linuxfromscratch.org/lfs/view/stable/chapter05/glibc.html) , when configuring Glibc I run the provided script, and receive an error telling me to use the --with-headers configure option, however I am already using it.
The book states to configure using:
../configure \ --prefix=/usr \ --host=$LFS_TGT \ --build=$(../scripts/config.guess) \ --enable-kernel=3.2 \ --with-headers=$LFS/usr/include \ libc_cv_slibdir=/lib
When doing so I receive the following error:
checking installed Linux kernel header files... missing or too old!
configure: error: GNU libc requires kernel header files from
Linux 3.2.0 or later to be installed before configuring.
The kernel header files are found usually in /usr/include/asm and
/usr/include/linux; make sure these directories use files from
Linux 3.2.0 or later. This check uses , so
make sure that file was built correctly when installing the kernel header
files. To use kernel headers not from /usr/include/linux, use the
configure option --with-headers.
Any advise on how to proceed would be much appreciated.
Asked by Lukas
(77 rep)
Jul 8, 2021, 02:35 AM
Last activity: Jun 21, 2025, 10:49 AM
Last activity: Jun 21, 2025, 10:49 AM