【发布时间】:2014-03-11 11:26:47
【问题描述】:
我想通过使用以下文档来构建 android 源代码: https://source.android.com/source/building-running.html
最后一步是:'make -j16'
一段时间后,编译中止并显示以下错误消息:
host C++: libart <= art/runtime/catch_block_stack_visitor.cc
host C++: libart <= art/runtime/catch_finder.cc
art/compiler/elf_stripper.cc:122:16: error: use of undeclared identifier 'ftruncate'
int result = ftruncate(file->Fd(), offset);
^
1 error generated.
make: *** [out/host/linux-x86/obj/SHARED_LIBRARIES/libart-compiler_intermediates/elf_stripper.o] Fehler 1
make: *** Warte auf noch nicht beendete Prozesse...
我不知道。 谷歌没有帮助,我真的不喜欢这个话题,只是想对 android 代码做一点改变(我还没有改变任何东西)。
我的系统是:
ubuntu 13.10
java 1.6.0_4
current android master branch
【问题讨论】:
-
我遇到了同样的问题。到目前为止,您找到任何解决方案了吗?
标签: android compilation compiler-errors makefile android-source