LinuxSir.cn,穿越时空的Linuxsir!

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

help glibc-nptl-cvs

[复制链接]
发表于 2004-2-17 16:28:06 | 显示全部楼层 |阅读模式
make  -C sunrpc others
make[2]: Entering directory `/mnt/hda2/sources/glibc-2.3.3-20040217/sunrpc'
CPP='gcc -B/tools/bin/ -E -x c-header'  /mnt/hda2/sources/glibc-build/elf/ld-linux.so.2 --library-path /mnt/hda2/sources/glibc-build:/mnt/hda2/sources/glibc-build/math:/mnt/hda2/sources/glibc-build/elf:/mnt/hda2/sources/glibc-build/dlfcn:/mnt/hda2/sources/glibc-build/nss:/mnt/hda2/sources/glibc-build/nis:/mnt/hda2/sources/glibc-build/rt:/mnt/hda2/sources/glibc-build/resolv:/mnt/hda2/sources/glibc-build/crypt:/mnt/hda2/sources/glibc-build/nptl /mnt/hda2/sources/glibc-build/sunrpc/rpcgen -Y ../scripts -c rpcsvc/bootparam_prot.x -o /mnt/hda2/sources/glibc-build/sunrpc/xbootparam_prot.T
cannot set up thread-local storage: set_thread_area failed when setting up thread-local storage

make[2]: *** [/mnt/hda2/sources/glibc-build/sunrpc/xbootparam_prot.stmp] Error 127
make[2]: Leaving directory `/mnt/hda2/sources/glibc-2.3.3-20040217/sunrpc'
make[1]: *** [sunrpc/others] Error 2
make[1]: Leaving directory `/mnt/hda2/sources/glibc-2.3.3-20040217'
make: *** [all] Error 2

install glibc in chapt5 ,use gcc3.4 and binutils-2.14.90.0.8

do i need some patch?
help....
 楼主| 发表于 2004-2-17 17:48:59 | 显示全部楼层

after serveral patches ......

gcc -B/tools/bin/ -nostdlib -nostartfiles -o /mnt/hda2/sources/glibc-build/sunrpc/rpcinfo  -Wl,-dynamic-linker=/tools/lib/ld-linux.so.2   -Wl,-z,combreloc  /mnt/hda2/sources/glibc-build/csu/crt1.o /mnt/hda2/sources/glibc-build/csu/crti.o `gcc -B/tools/bin/ --print-file-name=crtbegin.o` /mnt/hda2/sources/glibc-build/sunrpc/rpcinfo.o  -Wl,-rpath-link=/mnt/hda2/sources/glibc-build:/mnt/hda2/sources/glibc-build/math:/mnt/hda2/sources/glibc-build/elf:/mnt/hda2/sources/glibc-build/dlfcn:/mnt/hda2/sources/glibc-build/nss:/mnt/hda2/sources/glibc-build/nis:/mnt/hda2/sources/glibc-build/rt:/mnt/hda2/sources/glibc-build/resolv:/mnt/hda2/sources/glibc-build/crypt:/mnt/hda2/sources/glibc-build/nptl /mnt/hda2/sources/glibc-build/libc.so.6 /mnt/hda2/sources/glibc-build/libc_nonshared.a -lgcc -lgcc_eh `gcc -B/tools/bin/ --print-file-name=crtend.o` /mnt/hda2/sources/glibc-build/csu/crtn.o
CPP='gcc -B/tools/bin/ -E -x c-header'  /mnt/hda2/sources/glibc-build/elf/ld-linux.so.2 --library-path /mnt/hda2/sources/glibc-build:/mnt/hda2/sources/glibc-build/math:/mnt/hda2/sources/glibc-build/elf:/mnt/hda2/sources/glibc-build/dlfcn:/mnt/hda2/sources/glibc-build/nss:/mnt/hda2/sources/glibc-build/nis:/mnt/hda2/sources/glibc-build/rt:/mnt/hda2/sources/glibc-build/resolv:/mnt/hda2/sources/glibc-build/crypt:/mnt/hda2/sources/glibc-build/nptl /mnt/hda2/sources/glibc-build/sunrpc/rpcgen -Y ../scripts -c rpcsvc/bootparam_prot.x -o /mnt/hda2/sources/glibc-build/sunrpc/xbootparam_prot.T
cannot set up thread-local storage: set_thread_area failed when setting up thread-local storage

make[2]: *** [/mnt/hda2/sources/glibc-build/sunrpc/xbootparam_prot.stmp] Error 127
make[2]: Leaving directory `/mnt/hda2/sources/glibc-2.3.3-20040207/sunrpc'
make[1]: *** [sunrpc/others] Error 2
make[1]: Leaving directory `/mnt/hda2/sources/glibc-2.3.3-20040207'
make: *** [all] Error 2
 楼主| 发表于 2004-2-17 17:56:51 | 显示全部楼层
还有一点,我在下载glibc-cvs的时候有这样一个提示:

cvs export: warning: failed to open /root/.cvspass for reading: No such file or directory

这个应该对下载没有什么影响吧,不过觉得怪怪的,所以想问问
发表于 2004-2-17 18:01:06 | 显示全部楼层

回复: after serveral patches ......

最初由 X10er 发表
gcc -B/tools/bin/ -nostdlib -nostartfiles -o /mnt/hda2/sources/glibc-build/sunrpc/rpcinfo  -Wl,-dynamic-linker=/tools/lib/ld-linux.so.2   -Wl,-z,combreloc  /mnt/hda2/sources/glibc-build/csu/crt1.o /mnt/hda2/sources/glibc-build/csu/crti.o `gcc -B/tools/bin/ --print-file-name=crtbegin.o` /mnt/hda2/sources/glibc-build/sunrpc/rpcinfo.o  -Wl,-rpath-link=/mnt/hda2/sources/glibc-build:/mnt/hda2/sources/glibc-build/math:/mnt/hda2/sources/glibc-build/elf:/mnt/hda2/sources/glibc-build/dlfcn:/mnt/hda2/sources/glibc-build/nss:/mnt/hda2/sources/glibc-build/nis:/mnt/hda2/sources/glibc-build/rt:/mnt/hda2/sources/glibc-build/resolv:/mnt/hda2/sources/glibc-build/crypt:/mnt/hda2/sources/glibc-build/nptl /mnt/hda2/sources/glibc-build/libc.so.6 /mnt/hda2/sources/glibc-build/libc_nonshared.a -lgcc -lgcc_eh `gcc -B/tools/bin/ --print-file-name=crtend.o` /mnt/hda2/sources/glibc-build/csu/crtn.o
CPP='gcc -B/tools/bin/ -E -x c-header'  /mnt/hda2/sources/glibc-build/elf/ld-linux.so.2 --library-path /mnt/hda2/sources/glibc-build:/mnt/hda2/sources/glibc-build/math:/mnt/hda2/sources/glibc-build/elf:/mnt/hda2/sources/glibc-build/dlfcn:/mnt/hda2/sources/glibc-build/nss:/mnt/hda2/sources/glibc-build/nis:/mnt/hda2/sources/glibc-build/rt:/mnt/hda2/sources/glibc-build/resolv:/mnt/hda2/sources/glibc-build/crypt:/mnt/hda2/sources/glibc-build/nptl /mnt/hda2/sources/glibc-build/sunrpc/rpcgen -Y ../scripts -c rpcsvc/bootparam_prot.x -o /mnt/hda2/sources/glibc-build/sunrpc/xbootparam_prot.T
cannot set up thread-local storage: set_thread_area failed when setting up thread-local storage

make[2]: *** [/mnt/hda2/sources/glibc-build/sunrpc/xbootparam_prot.stmp] Error 127
make[2]: Leaving directory `/mnt/hda2/sources/glibc-2.3.3-20040207/sunrpc'
make[1]: *** [sunrpc/others] Error 2
make[1]: Leaving directory `/mnt/hda2/sources/glibc-2.3.3-20040207'
make: *** [all] Error 2


兄弟的宿主系统运行的是内核2.6.x吗?
内核2.6.x支持thread-local,也就是说支持nptl,而内核2.4则不行.我写的安装记录里有提及到这回事.
另外,glibc-cvs无须打补丁,即使要也只是修正posix的命令兼容性问题.
 楼主| 发表于 2004-2-17 18:17:29 | 显示全部楼层
没有想到第一个帮忙的就是个高手……
你的那篇文章我看了,而且就是按着上边的步骤进行的,不过我打了些补丁,用的内河是2.6.2的,而且打了2.6.3-rc4的patch
(喜欢追求新东西,呵呵),现在我试试glibc不打补丁,看看怎么样。
 楼主| 发表于 2004-2-17 20:07:42 | 显示全部楼层
我试过了,不打补丁,但是还是不行,状况还是一样的,谁能帮个忙解决一下:
make  -C sunrpc others
make[2]: Entering directory `/mnt/hda2/sources/glibc-2.3.3-20040217/sunrpc'
gcc -B/tools/bin/ -nostdlib -nostartfiles -o /mnt/hda2/sources/glibc-build/sunrpc/rpcgen  -Wl,-dynamic-linker=/tools/lib/ld-linux.so.2   -Wl,-z,combreloc  /mnt/hda2/sources/glibc-build/csu/crt1.o /mnt/hda2/sources/glibc-build/csu/crti.o `gcc -B/tools/bin/ --print-file-name=crtbegin.o` /mnt/hda2/sources/glibc-build/sunrpc/rpc_main.o /mnt/hda2/sources/glibc-build/sunrpc/rpc_hout.o /mnt/hda2/sources/glibc-build/sunrpc/rpc_cout.o /mnt/hda2/sources/glibc-build/sunrpc/rpc_parse.o /mnt/hda2/sources/glibc-build/sunrpc/rpc_scan.o /mnt/hda2/sources/glibc-build/sunrpc/rpc_util.o /mnt/hda2/sources/glibc-build/sunrpc/rpc_svcout.o /mnt/hda2/sources/glibc-build/sunrpc/rpc_clntout.o /mnt/hda2/sources/glibc-build/sunrpc/rpc_tblout.o /mnt/hda2/sources/glibc-build/sunrpc/rpc_sample.o  -Wl,-rpath-link=/mnt/hda2/sources/glibc-build:/mnt/hda2/sources/glibc-build/math:/mnt/hda2/sources/glibc-build/elf:/mnt/hda2/sources/glibc-build/dlfcn:/mnt/hda2/sources/glibc-build/nss:/mnt/hda2/sources/glibc-build/nis:/mnt/hda2/sources/glibc-build/rt:/mnt/hda2/sources/glibc-build/resolv:/mnt/hda2/sources/glibc-build/crypt:/mnt/hda2/sources/glibc-build/nptl /mnt/hda2/sources/glibc-build/libc.so.6 /mnt/hda2/sources/glibc-build/libc_nonshared.a -lgcc -lgcc_eh `gcc -B/tools/bin/ --print-file-name=crtend.o` /mnt/hda2/sources/glibc-build/csu/crtn.o
gcc -B/tools/bin/ -nostdlib -nostartfiles -o /mnt/hda2/sources/glibc-build/sunrpc/rpcinfo  -Wl,-dynamic-linker=/tools/lib/ld-linux.so.2   -Wl,-z,combreloc  /mnt/hda2/sources/glibc-build/csu/crt1.o /mnt/hda2/sources/glibc-build/csu/crti.o `gcc -B/tools/bin/ --print-file-name=crtbegin.o` /mnt/hda2/sources/glibc-build/sunrpc/rpcinfo.o  -Wl,-rpath-link=/mnt/hda2/sources/glibc-build:/mnt/hda2/sources/glibc-build/math:/mnt/hda2/sources/glibc-build/elf:/mnt/hda2/sources/glibc-build/dlfcn:/mnt/hda2/sources/glibc-build/nss:/mnt/hda2/sources/glibc-build/nis:/mnt/hda2/sources/glibc-build/rt:/mnt/hda2/sources/glibc-build/resolv:/mnt/hda2/sources/glibc-build/crypt:/mnt/hda2/sources/glibc-build/nptl /mnt/hda2/sources/glibc-build/libc.so.6 /mnt/hda2/sources/glibc-build/libc_nonshared.a -lgcc -lgcc_eh `gcc -B/tools/bin/ --print-file-name=crtend.o` /mnt/hda2/sources/glibc-build/csu/crtn.o
CPP='gcc -B/tools/bin/ -E -x c-header'  /mnt/hda2/sources/glibc-build/elf/ld-linux.so.2 --library-path /mnt/hda2/sources/glibc-build:/mnt/hda2/sources/glibc-build/math:/mnt/hda2/sources/glibc-build/elf:/mnt/hda2/sources/glibc-build/dlfcn:/mnt/hda2/sources/glibc-build/nss:/mnt/hda2/sources/glibc-build/nis:/mnt/hda2/sources/glibc-build/rt:/mnt/hda2/sources/glibc-build/resolv:/mnt/hda2/sources/glibc-build/crypt:/mnt/hda2/sources/glibc-build/nptl /mnt/hda2/sources/glibc-build/sunrpc/rpcgen -Y ../scripts -c rpcsvc/bootparam_prot.x -o /mnt/hda2/sources/glibc-build/sunrpc/xbootparam_prot.T
cannot set up thread-local storage: set_thread_area failed when setting up thread-local storage

make[2]: *** [/mnt/hda2/sources/glibc-build/sunrpc/xbootparam_prot.stmp] Error 127
make[2]: Leaving directory `/mnt/hda2/sources/glibc-2.3.3-20040217/sunrpc'
make[1]: *** [sunrpc/others] Error 2
make[1]: Leaving directory `/mnt/hda2/sources/glibc-2.3.3-20040217'
make: *** [all] Error 2
发表于 2004-2-17 20:15:44 | 显示全部楼层
最初由 X10er 发表
我试过了,不打补丁,但是还是不行,状况还是一样的,谁能帮个忙解决一下:
make  -C sunrpc others
make[2]: Entering directory `/mnt/hda2/sources/glibc-2.3.3-20040217/sunrpc'
gcc -B/tools/bin/ -nostdlib -nostartfiles -o /mnt/hda2/sources/glibc-build/sunrpc/rpcgen  -Wl,-dynamic-linker=/tools/lib/ld-linux.so.2   -Wl,-z,combreloc  /mnt/hda2/sources/glibc-build/csu/crt1.o /mnt/hda2/sources/glibc-build/csu/crti.o `gcc -B/tools/bin/ --print-file-name=crtbegin.o` /mnt/hda2/sources/glibc-build/sunrpc/rpc_main.o /mnt/hda2/sources/glibc-build/sunrpc/rpc_hout.o /mnt/hda2/sources/glibc-build/sunrpc/rpc_cout.o /mnt/hda2/sources/glibc-build/sunrpc/rpc_parse.o /mnt/hda2/sources/glibc-build/sunrpc/rpc_scan.o /mnt/hda2/sources/glibc-build/sunrpc/rpc_util.o /mnt/hda2/sources/glibc-build/sunrpc/rpc_svcout.o /mnt/hda2/sources/glibc-build/sunrpc/rpc_clntout.o /mnt/hda2/sources/glibc-build/sunrpc/rpc_tblout.o /mnt/hda2/sources/glibc-build/sunrpc/rpc_sample.o  -Wl,-rpath-link=/mnt/hda2/sources/glibc-build:/mnt/hda2/sources/glibc-build/math:/mnt/hda2/sources/glibc-build/elf:/mnt/hda2/sources/glibc-build/dlfcn:/mnt/hda2/sources/glibc-build/nss:/mnt/hda2/sources/glibc-build/nis:/mnt/hda2/sources/glibc-build/rt:/mnt/hda2/sources/glibc-build/resolv:/mnt/hda2/sources/glibc-build/crypt:/mnt/hda2/sources/glibc-build/nptl /mnt/hda2/sources/glibc-build/libc.so.6 /mnt/hda2/sources/glibc-build/libc_nonshared.a -lgcc -lgcc_eh `gcc -B/tools/bin/ --print-file-name=crtend.o` /mnt/hda2/sources/glibc-build/csu/crtn.o
gcc -B/tools/bin/ -nostdlib -nostartfiles -o /mnt/hda2/sources/glibc-build/sunrpc/rpcinfo  -Wl,-dynamic-linker=/tools/lib/ld-linux.so.2   -Wl,-z,combreloc  /mnt/hda2/sources/glibc-build/csu/crt1.o /mnt/hda2/sources/glibc-build/csu/crti.o `gcc -B/tools/bin/ --print-file-name=crtbegin.o` /mnt/hda2/sources/glibc-build/sunrpc/rpcinfo.o  -Wl,-rpath-link=/mnt/hda2/sources/glibc-build:/mnt/hda2/sources/glibc-build/math:/mnt/hda2/sources/glibc-build/elf:/mnt/hda2/sources/glibc-build/dlfcn:/mnt/hda2/sources/glibc-build/nss:/mnt/hda2/sources/glibc-build/nis:/mnt/hda2/sources/glibc-build/rt:/mnt/hda2/sources/glibc-build/resolv:/mnt/hda2/sources/glibc-build/crypt:/mnt/hda2/sources/glibc-build/nptl /mnt/hda2/sources/glibc-build/libc.so.6 /mnt/hda2/sources/glibc-build/libc_nonshared.a -lgcc -lgcc_eh `gcc -B/tools/bin/ --print-file-name=crtend.o` /mnt/hda2/sources/glibc-build/csu/crtn.o
CPP='gcc -B/tools/bin/ -E -x c-header'  /mnt/hda2/sources/glibc-build/elf/ld-linux.so.2 --library-path /mnt/hda2/sources/glibc-build:/mnt/hda2/sources/glibc-build/math:/mnt/hda2/sources/glibc-build/elf:/mnt/hda2/sources/glibc-build/dlfcn:/mnt/hda2/sources/glibc-build/nss:/mnt/hda2/sources/glibc-build/nis:/mnt/hda2/sources/glibc-build/rt:/mnt/hda2/sources/glibc-build/resolv:/mnt/hda2/sources/glibc-build/crypt:/mnt/hda2/sources/glibc-build/nptl /mnt/hda2/sources/glibc-build/sunrpc/rpcgen -Y ../scripts -c rpcsvc/bootparam_prot.x -o /mnt/hda2/sources/glibc-build/sunrpc/xbootparam_prot.T
cannot set up thread-local storage: set_thread_area failed when setting up thread-local storage

make[2]: *** [/mnt/hda2/sources/glibc-build/sunrpc/xbootparam_prot.stmp] Error 127
make[2]: Leaving directory `/mnt/hda2/sources/glibc-2.3.3-20040217/sunrpc'
make[1]: *** [sunrpc/others] Error 2
make[1]: Leaving directory `/mnt/hda2/sources/glibc-2.3.3-20040217'
make: *** [all] Error 2

兄弟打的是什么补丁?你用的是glibc-2.3.3-20040217,以前的POSIX补丁可能要修正一下才能成功打上去。你打补丁成功了吗?
 楼主| 发表于 2004-2-17 20:40:50 | 显示全部楼层
gcc-3.4_branch_20040122-unwind-1.patch
binutils-2.14.90.0.8-pt_pax-1.patch

glibc-2.3.3-pax-dl_execstack-1.patch
glibc-2.3.3-pax-iconvconfig-1.patch
glibc-2.3.3-propolice-guard-functions-1.patch
glibc-2.3.3-pt_pax-1.patch
glibc-2.3.3-ssp-functions-1.patch

all comes from :http://www.hu.linuxfromscratch.org/patches/downloads/
except last , all patched ok , the last says has been patched
发表于 2004-2-17 21:30:47 | 显示全部楼层
good,看来不错哦.好.
我现在慢慢习惯了,又有人顶出来了.不错.不错.兄弟加油,我支持你使用全新的东西.
发表于 2004-2-17 21:33:56 | 显示全部楼层
并不一定要打所有的补丁吧?
我一般都是遇到问题过不去了,才去打补丁,当然如果文档有提到当然是要打的.如果文档没有提到的,只有在遇到问题的时候才去找补丁.
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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