arm开发板make编译时遇到 make[2]:*** [s-attrtab] 已杀死 问题的解决方案

时间:2019-12-12
本文章向大家介绍arm开发板make编译时遇到 make[2]:*** [s-attrtab] 已杀死 问题的解决方案,主要包括arm开发板make编译时遇到 make[2]:*** [s-attrtab] 已杀死 问题的解决方案使用实例、应用技巧、基本知识点总结和需要注意事项,具有一定的参考价值,需要的朋友可以参考一下。

未验证

出现“make[2]: *** [s-attrtab] 已杀死”log 是由于内存不足

解决方案

增加swapfile

步骤如下:

1. 查看当前swapfile状态

root@ubuntu:home# swapon -s

Filename    Type            Size    Used    Priority

2. 创建swapfile大小512M

root@ubuntu:home# dd if=/dev/zero of=/swapfile bs=1024 count=512k
524288+0 records in
524288+0 records out
536870912 bytes (537 MB) copied, 8.54637 s, 62.8 MB/s

3. 创建swapfile大小512M

root@ubuntu:/# vim /etc/fstab

在/etc/fstab最下方加入:

/swapfile       none     swap    default       0              0 

4. 验证

root@ubuntu:home# swapon -s
Filename      Type    Size    Used    Priority
/swapfile     file  524284  8468    -1   

5. free

root@ubuntu:/# free
             total       used       free     shared    buffers     cached
Mem:        506756     499228       7528       1104       2548     395148
-/+ buffers/cache:     101532     405224
Swap:       524284          0     524284

6.重新make

原文地址:https://www.cnblogs.com/idyllcheung/p/12030280.html