编译buildroot遇到g++: internal compiler error: Killed (program cc1plus) 解决办法

g++: internal compiler error: Killed (program cc1plus)

Please submit a full bug report

问题原因是因为内存不足 使用交换分区来解决:

 

sudo dd if=/dev/zero of=/swapfile bs=64M count=16
#count的大小就是增加的swap空间的大小,64M是块大小,所以空间大小是bs*count=1024MB
sudo mkswap /swapfile
#把刚才空间格式化成swap格式
sudo swapon /swapfile
#使用刚才创建的swap空间

posted @ 2020-05-26 22:41  蒲城小农  阅读(1926)  评论(0)    收藏  举报