LinuxSir.cn,穿越时空的Linuxsir!

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

额,LFS6.5 编译glibc-----cannot find -lgcc_eh

[复制链接]
发表于 2009-10-5 15:48:56 | 显示全部楼层 |阅读模式
mv -f /mnt/lfs/sources/glibc-build/libc.so.6.new /mnt/lfs/sources/glibc-build/libc.so.6

gcc -nostdlib -nostartfiles -o /mnt/lfs/sources/glibc-build/iconv/iconvconfig  -Wl,-dynamic-linker=/tools/lib/ld-linux.so.2   -Wl,

-z,combreloc -Wl,-z,relro -Wl,--hash-style=both /mnt/lfs/sources/glibc-build/csu/crt1.o /mnt/lfs/sources/glibc-build/csu/crti.o

`gcc --print-file-name=crtbegin.o` /mnt/lfs/sources/glibc-build/iconv/iconvconfig.o /mnt/lfs/sources/glibc-build/iconv/strtab.o

/mnt/lfs/sources/glibc-build/iconv/xmalloc.o /mnt/lfs/sources/glibc-build/iconv/hash-string.o  -Wl,-rpath-

link=/mnt/lfs/sources/glibc-build:/mnt/lfs/sources/glibc-build/math:/mnt/lfs/sources/glibc-build/elf:/mnt/lfs/sources/glibc-

build/dlfcn:/mnt/lfs/sources/glibc-build/nss:/mnt/lfs/sources/glibc-build/nis:/mnt/lfs/sources/glibc-

build/rt:/mnt/lfs/sources/glibc-build/resolv:/mnt/lfs/sources/glibc-build/crypt:/mnt/lfs/sources/glibc-build/nptl

/mnt/lfs/sources/glibc-build/libc.so.6 /mnt/lfs/sources/glibc-build/libc_nonshared.a -lgcc -lgcc_eh  `gcc --print-file-

name=crtend.o` /mnt/lfs/sources/glibc-build/csu/crtn.o

/mnt/lfs/tools/bin/../lib/gcc/i686-pc-linux-gnu/4.4.1/../../../../i686-pc-linux-gnu/bin/ld: cannot find -lgcc_eh

collect2: ld

returned 1 exit status

make[2]: *** [/mnt/lfs/sources/glibc-build/iconv/iconvconfig] Error 1

make[2]: Leaving directory `/mnt/lfs/sources/glibc-2.10.1/iconv'

make[1]: *** [iconv/others] Error 2

make[1]: Leaving directory `/mnt/lfs/sources/glibc-2.10.1'

make: *** [all] Error 2

-------
网上查了下,说把makeconfig中的这个-lgcc_eh删掉,ok吗?
另:-lgcc_eh是什么?
发表于 2009-10-6 11:11:13 | 显示全部楼层
在LFS6.5中没有遇到这个问题啊?上次编译(看签名中的笔记本现在LFS系统)确实遇到这个问题,后来打补丁解决了。

现在正用LFS6.5更新系统,没有这个问题了。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2009-10-6 13:24:00 | 显示全部楼层
喔,上帝啊,请原谅我
原来是前面编译gcc4.4.1的时候没把LFS_TGT给设置好,导致了后来的错误
我用的系统是红旗7,以为是因为gcc,binutils,的版本太高了,而texinfo的版本有点低,所以昨天晚上把他需要的版本都给编译安装好,今天早上再次编译还是那个错误,于是我把前面做的东西全部删除从新做,哈哈都好了
---
这个lgcc_eh在装gcc时手册上给出了一个连接到lib/gcc/4.4.1下的一个文件的,就因为那个LFS_TGT没设好,所以路径错了
-------------------------------------
第一次做LFS呵呵,多多包涵哈哈
回复 支持 反对

使用道具 举报

发表于 2010-3-11 20:48:26 | 显示全部楼层
Post by xgbchdk;2033590
喔,上帝啊,请原谅我
原来是前面编译gcc4.4.1的时候没把LFS_TGT给设置好,导致了后来的错误
我用的系统是红旗7,以为是因为gcc,binutils,的版本太高了,而texinfo的版本有点低,所以昨天晚上把他需要的版本都给编译安装好,今天早上再次编译还是那个错误,于是我把前面做的东西全部删除从新做,哈哈都好了
---
这个lgcc_eh在装gcc时手册上给出了一个连接到lib/gcc/4.4.1下的一个文件的,就因为那个LFS_TGT没设好,所以路径错了
-------------------------------------
第一次做LFS呵呵,多多包涵哈哈


用上了,谢谢!
回复 支持 反对

使用道具 举报

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

本版积分规则

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