LinuxSir.cn,穿越时空的Linuxsir!

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

第六单元glibc check错误还可以继续吗,附错误。

[复制链接]
发表于 2006-3-6 12:39:17 | 显示全部楼层 |阅读模式
gcc -nostdlib -nostartfiles -o /sources/glibc-build/nptl/tst-mutex8  -Wl,-dynamic-linker=/lib/ld-linux.so.2   -Wl,-z,combreloc -Wl,-z,relro /sources/glibc-build/csu/crt1.o /sources/glibc-build/csu/crti.o `gcc --print-file-name=crtbegin.o` /sources/glibc-build/nptl/tst-mutex8.o /sources/glibc-build/nptl/libpthread.so /sources/glibc-build/nptl/libpthread_nonshared.a  -Wl,-rpath-link=/sources/glibc-build:/sources/glibc-build/math:/sources/glibc-build/elf:/sources/glibc-build/dlfcn:/sources/glibc-build/nss:/sources/glibc-build/nis:/sources/glibc-build/rt:/sources/glibc-build/resolv:/sources/glibc-build/crypt:/sources/glibc-build/nptl /sources/glibc-build/libc.so.6 /sources/glibc-build/libc_nonshared.a -lgcc -Wl,--as-needed -lgcc_s  -Wl,--no-as-needed `gcc --print-file-name=crtend.o` /sources/glibc-build/csu/crtn.o
GCONV_PATH=/sources/glibc-build/iconvdata LC_ALL=C   /sources/glibc-build/elf/ld-linux.so.2 --library-path /sources/glibc-build:/sources/glibc-build/math:/sources/glibc-build/elf:/sources/glibc-build/dlfcn:/sources/glibc-build/nss:/sources/glibc-build/nis:/sources/glibc-build/rt:/sources/glibc-build/resolv:/sources/glibc-build/crypt:/sources/glibc-build/nptl /sources/glibc-build/nptl/tst-mutex8  > /sources/glibc-build/nptl/tst-mutex8.out
libgcc_s.so.1 must be installed for pthread_cancel to work
Didn't expect signal from child: got `Aborted'
make[2]: *** [/sources/glibc-build/nptl/tst-mutex8.out] Error 1
make[2]: Leaving directory `/sources/glibc-2.3.4/nptl'
make[1]: *** [nptl/tests] Error 2
make[1]: Leaving directory `/sources/glibc-2.3.4'
make: *** [check] Error 2

还可以继续吗,母系统FC2
发表于 2006-3-6 12:54:33 | 显示全部楼层
可以
继续吧,出了问题再说:)
回复 支持 反对

使用道具 举报

发表于 2006-3-6 14:13:39 | 显示全部楼层
LFS 版本是?。gcc装好了?。。

你一会儿编译gcc的时候也许会出现一个错误,找不到 libgcc_s 的。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-3-6 14:21:20 | 显示全部楼层
LFS6.1
嗯,就是,检查工具链就出了这个问题了:
root:/sources/binutils-build# cc dummy.c
/tools/lib/gcc/i686-pc-linux-gnu/3.4.3/../../../../i686-pc-linux-gnu/bin/ld: cannot find -lgcc_s
collect2: ld returned 1 exit status
不知怎么解决。
回复 支持 反对

使用道具 举报

发表于 2006-3-6 14:23:45 | 显示全部楼层
我见过这个问题,但是我还没找到解决方案。因为我没碰到过。。

回去第五章,重新编译gcc 2nd pass。再试试。
回复 支持 反对

使用道具 举报

发表于 2006-3-6 14:27:56 | 显示全部楼层
都是nptl&pthread惹的祸,为什么不能使用一种线程库呢?
回复 支持 反对

使用道具 举报

发表于 2006-3-6 14:31:15 | 显示全部楼层
这个不是  nptl 的问题吧。。虽然是停在了 nptl 的测试上。。。

我最新编译的是用 LT 的,还觉得可以。。呵呵。。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-3-6 14:42:35 | 显示全部楼层
想回去重编过都不大可能了,因为会出现那个问题
回复 支持 反对

使用道具 举报

发表于 2006-3-6 14:52:22 | 显示全部楼层
用lfs用户 在主系统编译一个gcc,--prefix 是 /tools 。这个应该没问题的。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-3-7 17:29:19 | 显示全部楼层
重来了一次,又出了这个错误:
g++: /dev/fd/63: No such file or directory
g++: warning: `-x c++' after last input file has no effect
g++: no input files
g++: /dev/fd/63: No such file or directory
g++: warning: `-x c++' after last input file has no effect
g++: no input files
g++: /dev/fd/63: No such file or directory
g++: warning: `-x c++' after last input file has no effect
g++: no input files
g++: /dev/fd/63: No such file or directory
g++: warning: `-x c++' after last input file has no effect
g++: no input files
g++: /dev/fd/63: No such file or directory
g++: warning: `-x c++' after last input file has no effect
g++: no input files
g++: /dev/fd/63: No such file or directory
g++: warning: `-x c++' after last input file has no effect
g++: no input files
g++: /dev/fd/63: No such file or directory
g++: warning: `-x c++' after last input file has no effect
g++: no input files
g++: /dev/fd/63: No such file or directory
g++: warning: `-x c++' after last input file has no effect
g++: no input files
g++: /dev/fd/63: No such file or directory
g++: warning: `-x c++' after last input file has no effect
g++: no input files
g++: /dev/fd/63: No such file or directory
g++: warning: `-x c++' after last input file has no effect
g++: no input files
make[1]: *** [/sources/glibc-build/c++-types-check.out] Error 1
make[1]: Leaving directory `/sources/glibc-2.3.4'
make: *** [check] Error 2
回复 支持 反对

使用道具 举报

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

本版积分规则

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