求救! 第一次編譯glibc-2.3.6 時有 Error
时间:2006-05-22
来源:互联网
小人用Fedora Core 5 裝LFS development version
(因為之前裝LFS 6.1.1 不成功)
在make glibc-2.3.6 第一次時有以下Error
敬請各位求救
/home/lfs/glibc-build/csu/crtn.o
/usr/lib/gcc/i386-redhat-linux/4.1.0/libgcc_eh.a(unwind-dw2.o):
In function `.L124':
: undefined reference to `__stack_chk_fail_local'
/usr/lib/gcc/i386-redhat-linux/4.1.0/libgcc_eh.a(unwind-dw2.o):
In function `__frame_state_for':
: undefined reference to `__stack_chk_fail_local'
/usr/lib/gcc/i386-redhat-linux/4.1.0/libgcc_eh.a(unwind-dw2.o):
In function `.L401':
: undefined reference to `__stack_chk_fail_local'
/usr/lib/gcc/i386-redhat-linux/4.1.0/libgcc_eh.a(unwind-dw2.o):
In function `_Unwind_Backtrace':
: undefined reference to `__stack_chk_fail_local'
/usr/lib/gcc/i386-redhat-linux/4.1.0/libgcc_eh.a(unwind-dw2.o):
In function `_Unwind_RaiseException':
: undefined reference to `__stack_chk_fail_local'
/usr/lib/gcc/i386-redhat-linux/4.1.0/libgcc_eh.a(unwind-dw2.o)::
more undefined references to `__stack_chk_fail_local'
follow
collect2: ld returned 1 exit status
make[2]: *** [/home/lfs/glibc-build/elf/sln] Error 1
make[2]: Leaving directory `/home/lfs/glibc-2.3.6/elf'
make[1]: *** [elf/others] Error 2
make[1]: Leaving directory `/home/lfs/glibc-2.3.6'
make: *** [all] Error 2
[root@localhost glibc-build]#
(因為之前裝LFS 6.1.1 不成功)
在make glibc-2.3.6 第一次時有以下Error
敬請各位求救
/home/lfs/glibc-build/csu/crtn.o
/usr/lib/gcc/i386-redhat-linux/4.1.0/libgcc_eh.a(unwind-dw2.o):
In function `.L124':
: undefined reference to `__stack_chk_fail_local'
/usr/lib/gcc/i386-redhat-linux/4.1.0/libgcc_eh.a(unwind-dw2.o):
In function `__frame_state_for':
: undefined reference to `__stack_chk_fail_local'
/usr/lib/gcc/i386-redhat-linux/4.1.0/libgcc_eh.a(unwind-dw2.o):
In function `.L401':
: undefined reference to `__stack_chk_fail_local'
/usr/lib/gcc/i386-redhat-linux/4.1.0/libgcc_eh.a(unwind-dw2.o):
In function `_Unwind_Backtrace':
: undefined reference to `__stack_chk_fail_local'
/usr/lib/gcc/i386-redhat-linux/4.1.0/libgcc_eh.a(unwind-dw2.o):
In function `_Unwind_RaiseException':
: undefined reference to `__stack_chk_fail_local'
/usr/lib/gcc/i386-redhat-linux/4.1.0/libgcc_eh.a(unwind-dw2.o)::
more undefined references to `__stack_chk_fail_local'
follow
collect2: ld returned 1 exit status
make[2]: *** [/home/lfs/glibc-build/elf/sln] Error 1
make[2]: Leaving directory `/home/lfs/glibc-2.3.6/elf'
make[1]: *** [elf/others] Error 2
make[1]: Leaving directory `/home/lfs/glibc-2.3.6'
make: *** [all] Error 2
[root@localhost glibc-build]#
作者: sd123hkhk 发布时间: 2006-05-22
用 gcc-4.1 来编译 glibc-2.3.6 要先打 patch,要增加成功率,最好还是用 LFS 的 LiveCD 作 host
作者: d00m3d 发布时间: 2006-05-23
gcc --version的结果是什么?
我记得已经是新的gcc了,而不是宿主系统的了。
我记得已经是新的gcc了,而不是宿主系统的了。
作者: hohoxu_hao115 发布时间: 2006-05-23
gcc version 是 4.0.3
作者: sd123hkhk 发布时间: 2006-05-23
宿主系统的一些软件版本太新了,比如glibc为2.4.楼主换用其他的宿主系统试试.最好的,自然是lfs-livecd了.
不过看起来还是调用宿主系统gcc-4.1.0的库文件.有点混乱.
不过看起来还是调用宿主系统gcc-4.1.0的库文件.有点混乱.
作者: hohoxu_hao115 发布时间: 2006-05-23
add -fno-stack-protector to CFLAGS
作者: force_eagle 发布时间: 2009-06-26
相关阅读 更多
热门阅读
-
office 2019专业增强版最新2021版激活秘钥/序列号/激活码推荐 附激活工具
阅读:74
-
如何安装mysql8.0
阅读:31
-
Word快速设置标题样式步骤详解
阅读:28
-
20+道必知必会的Vue面试题(附答案解析)
阅读:37
-
HTML如何制作表单
阅读:22
-
百词斩可以改天数吗?当然可以,4个步骤轻松修改天数!
阅读:31
-
ET文件格式和XLS格式文件之间如何转化?
阅读:24
-
react和vue的区别及优缺点是什么
阅读:121
-
支付宝人脸识别如何关闭?
阅读:21
-
腾讯微云怎么修改照片或视频备份路径?
阅读:28