我是Android开发的新手。最近我只是尝试通过它的指令构建AOSP。
我在下面列出的命令:
$lunch full-eng
$make -j16
然后它开始编译。但是发生了一些奇怪的事情,如下所示:
host C++: tblgen <= external/llvm/utils/TableGen/DAGISelMatcherOpt.cpp
host C++: tblgen <= external/llvm/utils/TableGen/DAGISelMatcher.cpp
host C++: tblgen <= external/llvm/utils/TableGen/DFAPacketizerEmitter.cpp
host C++: tblgen <= external/llvm/utils/TableGen/DisassemblerEmitter.cpp
host C++: tblgen <= external/llvm/utils/TableGen/EDEmitter.cpp
make: *** [out/host/linux-x86/obj/EXECUTABLES/aapt_intermediates/ResourceTable.o] Killed
make: *** Waiting for unfinished jobs....
make: *** [out/host/linux-x86/obj/EXECUTABLES/aapt_intermediates/Resource.o] Killed
make: *** [out/host/linux-x86/obj/EXECUTABLES/tblgen_intermediates/AsmMatcherEmitter.o] Killed
make: *** [out/host/linux-x86/obj/EXECUTABLES/tblgen_intermediates/AsmWriterEmitter.o] Killed
make: *** [out/host/linux-x86/obj/EXECUTABLES/tblgen_intermediates/CodeGenDAGPatterns.o] Killed
make: *** [out/host/linux-x86/obj/EXECUTABLES/tblgen_intermediates/CodeGenInstruction.o] Killed
make: *** [out/host/linux-x86/obj/EXECUTABLES/tblgen_intermediates/CodeGenRegisters.o] Killed
make: *** [out/host/linux-x86/obj/EXECUTABLES/tblgen_intermediates/CodeGenTarget.o] Killed
Killed
然后编译过程停止。这是为什么?怎么解决? 是否有关于如何构建自定义ROM或如何使用AOSP的推荐说明?
AOSP网站上的说明对我来说真的不清楚。 (或者我读错了指令??)
谢谢!
答案 0 :(得分:3)
这是因为编译器内存不足。尝试将RAM增加到2GB或更多,并为交换分区增加至少10-12GB