LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 917|回复: 3

第五章完成工具鏈裏gcc 4.1.1出毛病

[复制链接]
发表于 2007-1-30 22:09:43 | 显示全部楼层 |阅读模式
各位好:

LFS第五章完成 chroot進取以後, 用gcc編譯bintuils可是configure說gcc not works. 於是我用gcc編譯dummy.c測試, 結果卻是以下:

/tools/bin/../lib/gcc/i686-pc-linux-gnu/4.1.1/../../../crt1.o(.text+0xc): In function `_start':
init.c: undefined reference to `__libc_csu_fini'
/tools/bin/../lib/gcc/i686-pc-linux-gnu/4.1.1/../../../crt1.o(.text+0x11):init.c: undefined reference to `__libc_csu_init'
collect2: ld returned 1 exit status

我用的是suse 10.1(gcc 4.1.0 glibc-2.4)宿主編譯的工具鏈. 工具鏈裏面的程序是gcc 4.1.1 glibc-2.4

萬分感謝!
发表于 2007-1-31 13:08:09 | 显示全部楼层
现在做到哪一章节?哪个版的 LFS?
LFS第五章完成 chroot進取以後, 用gcc編譯bintuils可是configure說gcc not works.
请把错误信息贴出看看
回复 支持 反对

使用道具 举报

 楼主| 发表于 2007-1-31 19:05:32 | 显示全部楼层
/tools/bin/../lib/gcc/i686-pc-linux-gnu/4.1.1/../../../crt1.o(.text+0xc): In function `_start':
init.c: undefined reference to `__libc_csu_fini'
/tools/bin/../lib/gcc/i686-pc-linux-gnu/4.1.1/../../../crt1.o(.text+0x11):init.c: undefined reference to `__libc_csu_init'
collect2: ld returned 1 exit status

這個就是錯誤信息啊....
我用lfs 6.2
回复 支持 反对

使用道具 举报

发表于 2007-1-31 20:07:34 | 显示全部楼层
我是指
用gcc編譯bintuils可是configure說gcc not works.
这个时候的错误信息
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表