码迷,mamicode.com
首页 > 编程语言 > 详细

cpp项目编译时报错: c++: internal compiler error: Killed

时间:2018-06-20 18:54:11      阅读:351      评论:0      收藏:0      [点我收藏+]

标签:pre   mit   instr   lease   swap   root   roc   core   TE   

c++: internal compiler error: Killed (program cc1plus) Please submit a full bug report, with preprocessed source if appropriate. See <http://bugzilla.redhat.com/bugzilla> for instructions. gmake[2]: *** [CMakeFiles/tdcore.dir/td/telegram/MessagesManager.cpp.o] Error 4 gmake[1]: *** [CMakeFiles/tdcore.dir/all] Error 2 gmake: *** [all] Error 2

原因是内存不够,并且没swap,增加swap

[root@iZrj931hn8rgs8397tuz5mZ build]# dd if=/dev/zero of=/var/swap.img bs=1024k count=1000
1000+0 records in
1000+0 records out
1048576000 bytes (1.0 GB) copied, 2.34565 s, 447 MB/s
[root@iZrj931hn8rgs8397tuz5mZ build]# free -m
              total        used        free      shared  buff/cache   available
Mem:           3790         101        2546           0        1142        3454
Swap:             0           0           0
[root@iZrj931hn8rgs8397tuz5mZ build]# mkswap /var/swap.img
Setting up swapspace version 1, size = 1023996 KiB
no label, UUID=99a90e95-ee16-45f7-801d-71378b1a7551
[root@iZrj931hn8rgs8397tuz5mZ build]# swapon /var/swap.img

cpp项目编译时报错: c++: internal compiler error: Killed

标签:pre   mit   instr   lease   swap   root   roc   core   TE   

原文地址:http://blog.51cto.com/zhangxiaohe/2130996

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!