account arrowhead-down arrowhead-up cart mobile-menu search sm-bold-x x-skinny-rounded x-skinny arrowhead-right social-facebook social-googleplus social-instagram social-linkedin social-pinterest social-qzone social-renren social-tencent social-twitter social-vkontakt social-weibo social-youku social-youtube

Please help us improve our website

Take our customer survey to evaluate your visit.

It should only take a few minutes to answer five quick questions. Just click the Launch survey button at the end of your visit to begin.

cancel
Showing results for 
Search instead for 
Did you mean: 
Welcome to the Open Devices community!

This is where we discuss open source and development related questions on our Open Devices initiative.

clang++: error: unable to execute command: Killed

SOLVED
Highlighted
Regular
Message 1 of 5
6,791 Views
Message 1 of 5

clang++: error: unable to execute command: Killed

 

Hello,

 

After my first Problem has been solved i am now stuck at the next error.

 

However, while trying to build if with the c6903_userdebug option i now do have another error:

 

host C: imgdiff <= bootable/recovery/applypatch/imgdiff.c
host C: imgdiff <= bootable/recovery/applypatch/utils.c
host C: imgdiff <= bootable/recovery/applypatch/bsdiff.c
bootable/recovery/applypatch/bsdiff.c: In function 'bsdiff':
bootable/recovery/applypatch/bsdiff.c:224:5: warning: 'pos' may be used uninitialized in this function [-Wmaybe-uninitialized]
host StaticLib: libbz_32 (out/host/linux-x86/obj32/STATIC_LIBRARIES/libbz_intermediates/libbz.a)
target thumb C++: arch_test <= art/runtime/arch/arch_test.cc
target thumb C++: libart-gtest <= art/runtime/common_runtime_test.cc
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-ab04bc.cpp
clang++: note: diagnostic msg: /tmp/android_system_OsConstants-ab04bc.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....

#### make failed to build some targets (10:59:52 (hh:mm:ss)) ####

Does someone know the cause of this error?

Thanks

1 ACCEPTED SOLUTION

Accepted Solutions
Developer World
Message 2 of 5
11,985 Views
Message 2 of 5

Re: clang++: error: unable to execute command: Killed

Hi

 

Most probbaly your build environment has issues

try reinstalling android and follow the build guide

 

br

Alin

 

4 REPLIES 4
Developer World
Message 2 of 5
11,986 Views
Message 2 of 5

Re: clang++: error: unable to execute command: Killed

Hi

 

Most probbaly your build environment has issues

try reinstalling android and follow the build guide

 

br

Alin

 

Regular
Message 3 of 5
6,739 Views
Message 3 of 5

Re: clang++: error: unable to execute command: Killed

Hello devjerpelea,

 

Thanks for your response.

 

I have already set up the whole enviroment 3 times and everytime there has been another error after syncing all the source code again.

I think i will stay with a custom rom from the XDA community, it would have been great to have the latest AOSP rom for my device built from myself but as it does not seem to work after several times i will try it again in a year or maybe not.

 

Thanks for your help.

Apprentice
Message 4 of 5
6,713 Views
Message 4 of 5

Re: clang++: error: unable to execute command: Killed

you are sure you are following the guide by the letter?

I have setup following the guide on fresh ubuntu 4 times now, did not experience one error so far

One time poster
Message 5 of 5
6,332 Views
Message 5 of 5

Re: clang++: error: unable to execute command: Killed

This issue is due to the insufficient SWAP size. Please increase the swap size.

Workaround to Increase the partition:


sudo -l fallocate 4G /swapfile
sudo chmod 600 /swapfile
sudo mkswap /swapfile
sudo swapon /swapfile
boot automatically mount swap:
Use vi or nano in /etc /fstab file to add the bottom the following:
/swapfile none swap sw 0 0

 

 

 

Source: https://groups.google.com/forum/embed/#!topic/android-building/2n2TAi3QUSA

               http://m.blog.csdn.net/blog/honour2sword/43916505