编译glibc 出错,你何高建?

aeolus_boy 2011-03-31 05:01:51
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?
...全文
301 10 打赏 收藏 转发到动态 举报
写回复
用AI写文章
10 条回复
切换为时间正序
请发表友善的回复…
发表回复
无知者无谓 2011-04-02
  • 打赏
  • 举报
回复
[Quote=引用 4 楼 aeolus_boy 的回复:]

引用 3 楼 wzzww 的回复:

在作系统的时候是需要先从linux内核代码中拷贝一份内核头文件的,为什么会出这个错误也没弄清楚,只要建立了linux内核头文件后一般就不会出——至少我没碰到过。

头文件这样建立的:(对吗?)
make mrproper
make headers_check
make INSTALL_HDR_PATH=dest headers_install
……
[/Quote]
不是现在有一个单独项目作kernel header的它只针对这个改动比较少,版本可以不会跟kernel一致
aeolus_boy 2011-04-01
  • 打赏
  • 举报
回复
搞定了,是头文件问题!
aeolus_boy 2011-04-01
  • 打赏
  • 举报
回复
依然是kernel too old
wuyu1998 2011-04-01
  • 打赏
  • 举报
回复
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以及以后的版本。
叶子 2011-03-31
  • 打赏
  • 举报
回复
可见楼主的英文很厉害,羡慕...
aeolus_boy 2011-03-31
  • 打赏
  • 举报
回复
[Quote=引用 3 楼 wzzww 的回复:]

在作系统的时候是需要先从linux内核代码中拷贝一份内核头文件的,为什么会出这个错误也没弄清楚,只要建立了linux内核头文件后一般就不会出——至少我没碰到过。
[/Quote]
头文件这样建立的:(对吗?)
make mrproper
make headers_check
make INSTALL_HDR_PATH=dest headers_install
至从2.6以后都这么干了。这样你问题?我直接在kernel目录下的include下复制反而缺少很多也?
你现在做系统是直接copy的吗?我在试试你的方法
无知者无谓 2011-03-31
  • 打赏
  • 举报
回复
在作系统的时候是需要先从linux内核代码中拷贝一份内核头文件的,为什么会出这个错误也没弄清楚,只要建立了linux内核头文件后一般就不会出——至少我没碰到过。
李迟 2011-03-31
  • 打赏
  • 举报
回复
FATAL: kernel too old
内核太旧,glibc太新??
aeolus_boy 2011-03-31
  • 打赏
  • 举报
回复
给我点idea 啊,,,各位

19,613

社区成员

发帖
与我相关
我的任务
社区描述
系统使用、管理、维护问题。可以是Ubuntu, Fedora, Unix等等
社区管理员
  • 系统维护与使用区社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧