1 问题:
clang++: error: unable to execute command: Killed
clang++: error: assembler 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-a5eb11.cpp
clang++: note: diagnostic msg: /tmp/android_system_OsConstants-a5eb11.sh
clang++: note: diagnostic msg:


********************

make: *** [out/host/Linux-x86/obj32/SHARED_LIBRARIES/libjavacore_intermediates/luni/src/main/native/android_system_OsConstants.o] Error 254

原因:

      这是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

目前我是配置是:vxbox+ubunut14.04 2G ram,swap=6GB
编译了十几个小时。 

GitHub 加速计划 / li / linux-dash
10.39 K
1.2 K
下载
A beautiful web dashboard for Linux
最近提交(Master分支:2 个月前 )
186a802e added ecosystem file for PM2 4 年前
5def40a3 Add host customization support for the NodeJS version 4 年前
Logo

旨在为数千万中国开发者提供一个无缝且高效的云端环境,以支持学习、使用和贡献开源项目。

更多推荐