Have chrooted before doing that .
Find Here:
--------------------------------------------------
Linux From Scratch - Version 6.0
Chapter 5. Constructing a Temporary System
5.7. Linux-2.6.8.1 Headers
--------------------------------------------------
Prepare for the header installation with:
--------------------------
make mrproper----
------------------------
This ensures that the kernel tree is absolutely clean. It is recommended that this command be issued prior to each kernel compilation. Do not assume that the source tree is automatically clean after un-tarring.
Create the include/linux/version.h file:
--------------------------------------------
make include/linux/version.h----
------------------------------------------
Create the platform-specific include/asm symlink:
------------------------------
make include/asm----
----------------------------
Install the platform-specific header files:
---------------------------------------------------------------------------
mkdir /tools/glibc-kernheaders----------------------------------
cp -HR include/asm /tools/glibc-kernheaders--------------
cp -R include/asm-generic /tools/glibc-kernheaders------?????????????#asm-generic!=glibc-kernheaders#
---------------------------------------------------------------------------
Finally, install the cross-platform kernel header files:
------------------------------------------------------------------
cp -R include/linux /tools/glibc-kernheaders--------
----------------------------------------------------------------