|
|
我在建立交叉编译环境的时候,按照教程,一步一步的 编译glibc
[root@localhost glibc-2.3.5-headers]# ../glibc-2.3.5/configure --host=$TARGET --prefix="/usr" --enable-add-ons --with-headers=${TARGET_PREFIX}/include
却发生错误
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.
大概是说要我指定--with-headers选项
内核头文件已经在 ${TARGET_PREFIX}/include目录了阿。已经验证
为什么还会出错呢?
我gcc版本是 gcc version 3.4.3 |
|