当前位置: 技术问答>linux和unix
SFU3.5下GCC编译dump的问题。
来源: 互联网 发布时间:2016-04-10
本文导语: 在XP下安装SFU3.5,SDK组件完全安装。用户映射和telnet服务皆正常。 编译时出现如下错误: % gcc -o test test.c gcc: Internal error: Segmentation fault (program cc1) Please submit a full bug report. See for instructions. 用GD...
在XP下安装SFU3.5,SDK组件完全安装。用户映射和telnet服务皆正常。
编译时出现如下错误:
% gcc -o test test.c
gcc: Internal error: Segmentation fault (program cc1)
Please submit a full bug report.
See for instructions.
用GDB解析core结果如下:
% gdb gcc core
GNU gdb 2002-11-11-cvs
Copyright 2002 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for details.
This GDB was configured as "i586-pc-interix3"...(no debugging symbols found)...
Core was generated by `gcc -o test test.c'.
Reading symbols from /usr/lib/libc.so.3.5...done.
Loaded symbols for /usr/lib/libc.so.3.5
#0 0x00410805 in ?? ()
Segmentation fault (core dumped)
看起来似乎是在调用libc.so.3.5时出现了段错误。
test.c内容如下:
#include
int main(){
printf("Welcome world!");
sleep(1000);
return 0;
}
试过编译空的C文件仍然出现同样错误。
重新安装了几遍SFU,现象依旧,然后不知道怎么办好了,
请高手们指点迷津,谢谢。
编译时出现如下错误:
% gcc -o test test.c
gcc: Internal error: Segmentation fault (program cc1)
Please submit a full bug report.
See for instructions.
用GDB解析core结果如下:
% gdb gcc core
GNU gdb 2002-11-11-cvs
Copyright 2002 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for details.
This GDB was configured as "i586-pc-interix3"...(no debugging symbols found)...
Core was generated by `gcc -o test test.c'.
Reading symbols from /usr/lib/libc.so.3.5...done.
Loaded symbols for /usr/lib/libc.so.3.5
#0 0x00410805 in ?? ()
Segmentation fault (core dumped)
看起来似乎是在调用libc.so.3.5时出现了段错误。
test.c内容如下:
#include
int main(){
printf("Welcome world!");
sleep(1000);
return 0;
}
试过编译空的C文件仍然出现同样错误。
重新安装了几遍SFU,现象依旧,然后不知道怎么办好了,
请高手们指点迷津,谢谢。
|
感觉是gcc和libc不兼容所致
换换其他版本的gcc和glibc试试
(可能的话,还可以调节一下编译选项,可能有帮助)
再不成,就自己做个交叉编译器
这个工具可以生成交叉编译器,应该可以解决兼容问题
http://www.kegel.com/crosstool/
good luck
换换其他版本的gcc和glibc试试
(可能的话,还可以调节一下编译选项,可能有帮助)
再不成,就自己做个交叉编译器
这个工具可以生成交叉编译器,应该可以解决兼容问题
http://www.kegel.com/crosstool/
good luck
您可能感兴趣的文章:
本站(WWW.)旨在分享和传播互联网科技相关的资讯和技术,将尽最大努力为读者提供更好的信息聚合和浏览方式。
本站(WWW.)站内文章除注明原创外,均为转载、整理或搜集自网络。欢迎任何形式的转载,转载请注明出处。
本站(WWW.)站内文章除注明原创外,均为转载、整理或搜集自网络。欢迎任何形式的转载,转载请注明出处。