SFU3.5下GCC编译dump,请高人看看是什么原因。

stareyess 2008-09-01 04:58:04
在XP下安装SFU3.5,SDK组件完全安装。用户映射和telnet服务皆正常。
编译时出现如下错误:
% gcc -o test test.c
gcc: Internal error: Segmentation fault (program cc1)
Please submit a full bug report.
See <URL:http://gcc.gnu.org/bugs.html> 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 <stdio.h>

int main(){
printf("Welcome world!");
sleep(1000);
return 0;
}
试过编译空的C文件仍然出现同样错误。

重新安装了几遍SFU,现象依旧,然后不知道怎么办好了,
请高手们指点迷津,谢谢。
...全文
50 回复 打赏 收藏 转发到动态 举报
写回复
用AI写文章
回复
切换为时间正序
请发表友善的回复…
发表回复

69,371

社区成员

发帖
与我相关
我的任务
社区描述
C语言相关问题讨论
社区管理员
  • C语言
  • 花神庙码农
  • 架构师李肯
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧