GNU libc installation to setup cross compiler env - kernel header file TOO OLD !!
HI, I am trying to setup my cross compiler environment and have reached the last step of installing GNU libc.
The following files are used:
glibc-2.0.6.tar.gz
glibc-crypt-2.0.6.tar.gz
glibc-localedata-2.0.6.tar.gz
glibc-linuxthreada-2.0.6.tar.gz
glibc-2.0.6-mips.patch
Installation procedure as follows:
gzip -cd glibc-2.0.6.tar.gz | tar xf -
cd glibc-2.0.6
gzip -cd glibc-crypt-2.0.6.tar.gz | tar xf -
gzip -cd glibc-localedata-2.0.6.tar.gz | tar xf -
gzip -cd glibc-linuxthreads-2.0.6.tar.gz | tar xf -
patch -p1 < ../glibc-2.0.6-mips.patch
mkdir build
cd build
Single line Command run:
CC=mipsel-linux-gcc BUILD_CC=gcc AR=mipsel-linux-ar RANLIB=mipsel-linux-ranlib
../configure --prefix=/usr --host=mipsel
--enable-add-ons=crypt,linuxthreads,localedata
--enable-profile
At this point, the following error message was shown:
checking installed Linux Kernel header files.. TOO OLD!
configure:error:GNU Libc requires kernel header files from Linux2.0.10 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 Linux2.0.10 or later. This check uses <linux/version.h>, so make sure that file was built correctly when installing the kernel header files.
What's the causes of this error to occur since my kernel version is 2.2 using kernelversion command? Or is there a bug? What other method can I use to install glibc which is to compile an application for TX39 target board.
Thanks !!
|