gcc: Internal error: File size limit exceeded (program as)

luvi88 2009-07-30 03:53:02
[root@localhost aa]# gcc -g -Wall -DMYDEBUG -DNOBUFFER -I./ gubaidu.c libgeturl.c -o gubaidudealsig
gcc: Internal error: File size limit exceeded (program as)
Please submit a full bug report.
See <URL:http://bugzilla.redhat.com/bugzilla> for instructions.


今天第一次遇这种错误,找不着解决思路,故求大虾们广伸援助之手,谢谢
...全文
388 10 打赏 收藏 转发到动态 举报
写回复
用AI写文章
10 条回复
切换为时间正序
请发表友善的回复…
发表回复
二两就醉 2011-06-21
  • 打赏
  • 举报
回复
这个帖子不得不回,也帮我解决令人问题!

谢谢。
luvi88 2009-07-30
  • 打赏
  • 举报
回复
问题已经解决,是我粗心,在/etc/profile 中把“ulimit -c 1024” 给漏写成“ulimit 1024”了。导致文件大小限制。在SHELL下执行"ulimit -f unlimited" ,问题得到解决了。
谢谢大家的热心帮助。
luvi88 2009-07-30
  • 打赏
  • 举报
回复
单个编译的结果:
[root@localhost aa]# gcc libgeturl.c
gcc: Internal error: File size limit exceeded (program as)
Please submit a full bug report.
See <URL:http://bugzilla.redhat.com/bugzilla> for instructions.

预处理:
[root@localhost aa]# gcc libgeturl.c -E -o libgeturl.i
[root@localhost aa]# wc libgeturl.i
6166 13326 119825 libgeturl.i
[root@localhost aa]# ll libgeturl.i
-rw-r--r-- 1 root root 119825 Jul 30 17:34 libgeturl.i

编译:
[root@localhost aa]# gcc libgeturl.i -c -o libgeturl.o
gcc: Internal error: File size limit exceeded (program as)
Please submit a full bug report.
See <URL:http://bugzilla.redhat.com/bugzilla> for instructions.
plottowan_1977 2009-07-30
  • 打赏
  • 举报
回复
能否先单个文件编译,最后链接,看看是否出错?
luvi88 2009-07-30
  • 打赏
  • 举报
回复
看来不是内存少的原因,重启了,还如此:
[root@localhost aa]# gcc -g -Wall -DMYDEBUG -DNOBUFFER -I./ gubaidu.c libgeturl.c -o gubaidudealsignal
gcc: Internal error: File size limit exceeded (program as)
Please submit a full bug report.
See <URL:http://bugzilla.redhat.com/bugzilla> for instructions.
[root@localhost aa]# free
total used free shared buffers cached
Mem: 1002408 175460 826948 0 11284 122988
-/+ buffers/cache: 41188 961220
Swap: 1052216 0 1052216
[root@localhost aa]#
luvi88 2009-07-30
  • 打赏
  • 举报
回复
是否系统内存消耗太重了?
[root@localhost aa]# free
total used free shared buffers cached
Mem: 1002408 924224 78184 0 164648 655192
-/+ buffers/cache: 104384 898024
Swap: 1052216 0 1052216
luvi88 2009-07-30
  • 打赏
  • 举报
回复
合起来也不超过30K,包含了十来个标准头文件
ForestDB 2009-07-30
  • 打赏
  • 举报
回复
你的gubaidu.c libgeturl.c有多大?
yxq281426250 2009-07-30
  • 打赏
  • 举报
回复
程序文件没操作限制的大小吧,报的是这个错误
luvi88 2009-07-30
  • 打赏
  • 举报
回复
没人回答,先自己顶一个吧。支持一下了。。。。/beishang

69,382

社区成员

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

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