Click here to Skip to main content
15,879,535 members
Please Sign up or sign in to vote.
4.00/5 (1 vote)
See more:
I have been trying to build the android lollipop source code which I downloaded from the given url i.e www.source.android.com
I followed all the procedures required to build the source code on my machine. But I faced with some errors on the terminal which are as follows:

clang++: error: unable to execute command: Killed
clang++: error: clang frontend command failed due to signal (use -v to see invocation)
clang version 3.6
Target: arm--linux-androideabi
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/ARMDisassembler-d8183f.cpp
clang++: note: diagnostic msg: /tmp/ARMDisassembler-d8183f.sh
clang++: note: diagnostic msg:

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

make: *** [out/target/product/generic/obj/STATIC_LIBRARIES/libLLVMARMDisassembler_intermediates/ARMDisassembler.o] Error 254
make: *** Waiting for unfinished jobs....


help will be appreciated. Thanks in advance
Posted
Updated 27-Jan-15 21:29pm
v2
Comments
Richard MacCutchan 28-Jan-15 3:30am    
The messages tell you exactly what to do and where to send the report, so why have you posted it here?
Vinod Kulkarni 28-Jan-15 6:41am    
Sorry you are right. Solved the problem by using the command Make -j2 instead of Make -j4. But I am getting a new problem. My PC gets hanged after two and a half hours. My PC's configuration is Ubuntu 14.04 LTS 64 bit , 4 GB RAM, 1TB HDD without swap partition.
What could be the reason? any idea?
Richard MacCutchan 28-Jan-15 6:53am    
Like I said, go to the website in the error message, and get support from the people who provide this package.
Vinod Kulkarni 29-Jan-15 0:47am    
ok thanks.
Vinod Kulkarni 29-Jan-15 6:11am    
I tried again the following command :
make -j4
This time I am getting a new error. The log on the terminal is shown as follows:
OpenJDK 64-Bit Server VM warning: INFO: os::commit_memory(0x00000007a4c00000, 131596288, 0) failed; error='Cannot allocate memory' (errno=12)
#
# There is insufficient memory for the Java Runtime Environment to continue.
# Native memory allocation (malloc) failed to allocate 131596288 bytes for committing reserved memory.
# An error report file with more information is saved as:
# /home/et-23/WORKDIR/hs_err_pid29668.log
make: *** [out/target/common/obj/JAVA_LIBRARIES/framework_intermediates/with-local/classes.dex] Error 1
make: *** Waiting for unfinished jobs....

Does this mean that I am running out of memory and should use a swap partition? will it help?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900