安卓编译的问题:clang++ error

plottowan_1977 2014-09-25 02:59:18
我是在Ubuntu 14.04 LTS上面编译,最新的Android master分支的代码,编译的是HOST-ENG版本
然后出现了这么一个错误

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-110ffe.cpp
clang++: note: diagnostic msg: /tmp/android_system_OsConstants-110ffe.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
make: *** Waiting for unfinished jobs....
...全文
2302 4 打赏 收藏 转发到动态 举报
AI 作业
写回复
用AI写文章
4 条回复
切换为时间正序
请发表友善的回复…
发表回复
Jet_小马过河 2015-02-23
  • 打赏
  • 举报
回复
这是swap区不够大的原因。导致clang++ kernel opps 解决方法: 请加大分区: sudo fallocate -l 4G /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 编译了十几个小时。
wenitstar2005 2015-01-28
  • 打赏
  • 举报
回复
我也出现了这个问题,请问楼主这个问题解决了吗?怎么解决的呢?
木子月月 2014-11-29
  • 打赏
  • 举报
回复
我也遇到这个问题,,楼主有解决吗,,
十三邵 2014-09-26
  • 打赏
  • 举报
回复
引用 楼主 plottowan_1977 的回复:
我是在Ubuntu 14.04 LTS上面编译,最新的Android master分支的代码,编译的是HOST-ENG版本 然后出现了这么一个错误 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-110ffe.cpp clang++: note: diagnostic msg: /tmp/android_system_OsConstants-110ffe.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 make: *** Waiting for unfinished jobs....
我也不知道,帮你顶一下吧。。。

80,472

社区成员

发帖
与我相关
我的任务
社区描述
移动平台 Android
androidandroid-studioandroidx 技术论坛(原bbs)
社区管理员
  • Android
  • yechaoa
  • 失落夏天
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧