|
我用的软件包如下:
binutils-2.16.tar.gz
gcc-3.4.4.tar.bz2
glibc-2.3.5.tar.gz
glibc-linuxthreads-2.3.5.tar.gz
linux-2.6.14.1.tar.gz
补丁:
ioperm.c.diff
flow.c.diff
t-linux.diff
想编译交叉工具链,用的编译指令是这样的:
[root@localhost build-glibc-headers]#../glibc-2.3.5/configure --host=${TARGET} --prefix=/usr \
>--enable-add-ons=linuxthreads --with-headers=${TARGET_PREFIX}/include
之前编译的内核头文件放在${TARGET_PREFIX}/include下
在进行到编译glibc头文件时出错,出错信息如下:
checking installed Linux kernel header files... TOO OLD!
configure: error: GNU libc requires kernel header files from
Linux 2.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
Linux 2.0.10 or later. This check uses <linux/version.h>, 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.
大虾们帮帮忙,谢谢了 |
|