Ubuntu16.04 编译出错c++: internal compiler error: Killed (program cc1plus)

在尝试编译github上的模拟器时遇到'c++: internal compiler error: Killed (program cc1plus)'问题。解决方法是增加Ubuntu系统的swap空间,包括检查当前swap配置、创建2G的swap文件并设置权限。参照相关教程,成功执行qmake与make命令后,编译完成。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

最近在使用github上的一个模拟器,需要自己对其中文件进行make编译。但是中间遇到了不知道多少个错误,吐血。想了想还是记录一下,

错误
compiling moc/moc_qwt_plot_panner.cpp
compiling moc/moc_qwt_plot_picker.cpp
compiling moc/moc_qwt_plot_zoomer.cpp
compiling moc/moc_qwt_slider.cpp
compiling moc/moc_qwt_scale_widget.cpp
{standard input}: Assembler messages:
{standard input}:4145: Warning: end of file in string; '"' inserted
g++: internal compiler error: Killed (program cc1plus)
Please submit a full bug report,
with preprocessed source if appropriate.
See <file:///usr/share/doc/gcc-5/README.Bugs> for instructions.
Makefile:139809: recipe for target 'obj/qrc_qgcresources.o' failed
make[1]: *** [obj/qrc_qgcresources.o] Error 4
make[1]: *** Waiting for unfinished jobs....
make[1]: Leaving directory '/home/emma/ub-anc/build-emulator/qgc_gui'
Makefile:43: recipe for target 'sub-qgc_gui-make_first-ordered' failed
make: *** [sub-qgc_gui-make_fir
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值