编译buildroot出错,这个怎么解决呢,感谢

g++: internal compiler error: 已杀死 (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:1086: recipe for target ‘insn-emit.o’ failed
make[3]: *** [insn-emit.o] Error 4
make[3]: *** 正在等待未完成的任务…
/bin/bash ../../gcc/../move-if-change tmp-attrtab.c insn-attrtab.c
/bin/bash ../../gcc/../move-if-change tmp-dfatab.c insn-dfatab.c
/bin/bash ../../gcc/../move-if-change tmp-latencytab.c insn-latencytab.c
echo timestamp > s-attrtab
rm gcc.pod
Makefile:4113: recipe for target ‘all-gcc’ failed
make[2]: *** [all-gcc] Error 2
package/pkg-generic.mk:247: recipe for target ‘/home/ZZ/buildroot/output/firefly_rk3308_release/build/host-gcc-initial-6.4.0/.stamp_built’ failed
make[1]: *** [/home/ZZ/buildroot/output/firefly_rk3308_release/build/host-gcc-initial-6.4.0/.stamp_built] Error 2
/home/ZZ/buildroot/output/firefly_rk3308_release/Makefile:16: recipe for target ‘_all’ failed
make: *** [_all] Error 2

固件编译推荐使用docker,参考http://wiki.t-firefly.com/ROC-RK3308-CC/buildroot-builder.html

是不是用虚拟机编译的。我也遇到过,重装了虚拟机,把内存改成4g就好了,原来是2g.一直报这个错误。

可以增加虚拟机的swap虚拟内存解决,swap大小建议3Gb。

新建立这个文件/home/ZZ/buildroot/output/firefly_rk3308_release/build/host-gcc-initial-6.4.0/.stamp_built

不要盯住这里看, 要看之前出现的红色字体错误!