当前位置: 技术问答>linux和unix
编译glibc 出错,你何高建?
来源: 互联网 发布时间:2016-11-18
本文导语: these days i want to build a own linux system. according to the linux from scratch manual i am trying to build the glibc(glibc-2.13). prompt the error message: kernel too old..... i use following configure optiongs pcgen -Y ../scripts -c rpcsvc/boo...
these days i want to build a own linux system.
according to the linux from scratch manual i am trying to build the glibc(glibc-2.13).
prompt the error message:
kernel too old.....
i use following configure optiongs
pcgen -Y ../scripts -c rpcsvc/bootparam_prot.x -o /home/jiale/Build/glibc-build/sunrpc/xbootparam_prot.T
FATAL: kernel too old
make[2]: *** [/home/jiale/Build/glibc-build/sunrpc/xbootparam_prot.stmp] Error 1
this is my configure options:
../glibc-2.13/configure --prefix=/lfs-tools --disable-profile --enable-add-ons --enable-kernel=2.6.32.10 --with-headers=/lfs-tools/include libc_cv_forced
_unwind=yes libc_cv_c_cleanup=yes
and the kernel release is :
2.6.38(the last version)
help me ,what should i to do?
This is really a question for the LFS.
just ,i deleted the kernel header-files be used by glibc from the include directory and copy the header-file to the directory from other place.
i build it again it ok unexpected.
why? why the inner header-file of kernel is bad?
according to the linux from scratch manual i am trying to build the glibc(glibc-2.13).
prompt the error message:
kernel too old.....
i use following configure optiongs
pcgen -Y ../scripts -c rpcsvc/bootparam_prot.x -o /home/jiale/Build/glibc-build/sunrpc/xbootparam_prot.T
FATAL: kernel too old
make[2]: *** [/home/jiale/Build/glibc-build/sunrpc/xbootparam_prot.stmp] Error 1
this is my configure options:
../glibc-2.13/configure --prefix=/lfs-tools --disable-profile --enable-add-ons --enable-kernel=2.6.32.10 --with-headers=/lfs-tools/include libc_cv_forced
_unwind=yes libc_cv_c_cleanup=yes
and the kernel release is :
2.6.38(the last version)
help me ,what should i to do?
This is really a question for the LFS.
just ,i deleted the kernel header-files be used by glibc from the include directory and copy the header-file to the directory from other place.
i build it again it ok unexpected.
why? why the inner header-file of kernel is bad?
|
FATAL: kernel too old
内核太旧,glibc太新??
内核太旧,glibc太新??
|
在作系统的时候是需要先从linux内核代码中拷贝一份内核头文件的,为什么会出这个错误也没弄清楚,只要建立了linux内核头文件后一般就不会出——至少我没碰到过。
|
可见楼主的英文很厉害,羡慕...
|
this is my configure options:
../glibc-2.13/configure --prefix=/lfs-tools --disable-profile --enable-add-ons --enable-kernel=2.6.32.10 --with-headers=/lfs-tools/include libc_cv_forced
_unwind=yes libc_cv_c_cleanup=yes
and the kernel release is :
2.6.38(the last version)
----------------------------------------
glibc需要内核v2.6.38以及以后的版本,而你的内核v2.6.32.10。
建议升级内核到v2.6.38以及以后的版本。
../glibc-2.13/configure --prefix=/lfs-tools --disable-profile --enable-add-ons --enable-kernel=2.6.32.10 --with-headers=/lfs-tools/include libc_cv_forced
_unwind=yes libc_cv_c_cleanup=yes
and the kernel release is :
2.6.38(the last version)
----------------------------------------
glibc需要内核v2.6.38以及以后的版本,而你的内核v2.6.32.10。
建议升级内核到v2.6.38以及以后的版本。