nvidia-tegra tx2 gcc: internal compiler error: Killed (program cc1plus)

一般为 out of memory

tail -f 100 /var/log/syslog

找对应时间点是否有 out of memory 错误

建立临时缓冲去来解决

sudo dd if=/dev/zero of=/swapfile bs=64M count=16
sudo mkswap /swapfile
chmod 0600 /swapfile 
sudo chmod 0600 /swapfile 
sudo swapon /swapfile

删除缓冲区

sudo swapoff -a
sudo rm -rf /swapfile
vim /etc/fstab
# comment swapfile line

 

posted @ 2019-10-14 11:49  llllIIIIllll  阅读(163)  评论(0)    收藏  举报