tiny4412 Android 5.0编译出现:clang++: error: unable to execute command: Killed

clang++: error: unable to execute command: Killed
clang++: error: clang frontend command failed due to signal (use -v to see invocation)
clang version 3.5 
Target: i386--linux-gnu
Thread model: posix
clang++: note: diagnostic msg: PLEASE submit a bug report to http://llvm.org/bugs/ and include the crash backtrace, preprocessed source, and associated run script.
clang++: note: diagnostic msg: 
********************


PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT:
Preprocessed source(s) and associated run script(s) are located at:
clang++: note: diagnostic msg: /tmp/android_system_OsConstants-6e651d.cpp
clang++: note: diagnostic msg: /tmp/android_system_OsConstants-6e651d.sh
clang++: note: diagnostic msg: 


********************
host C: libbacktrace_libc++ <= system/core/libbacktrace/thread_utils.c
make: *** [out/host/linux-x86/obj32/SHARED_LIBRARIES/libjavacore_intermediates/luni/src/main/native/android_system_OsConstants.o] 错误 254
make: *** 正在等待未完成的任务....


#### make failed to build some targets (26:09 (mm:ss)) ####


经过百度得知:

原因:

这是swap区不够大的原因。导致clang++ kernel opps

解决方法:
请加大分区:
sudo fallocate -l 6G /swapfile
sudo chmod 600 /swapfile
sudo mkswap /swapfile
sudo swapon /swapfile
开机自动挂载swap:
使用 vi 或 nano 在 /etc/fstab 文件底部添加如下内容:
/swapfile none swap sw 0 0

原文链接:http://blog.csdn.net/hktkfly6/article/details/52753320

你可能感兴趣的:(tiny4412 Android 5.0编译出现:clang++: error: unable to execute command: Killed)