Compile Android Source Code ERROR

Hi All,

I use Qualcomm BSP: linux_android_board_support_package_vla.br_.1.2.4-01810-8x16.0-3 to get android source, and run:
source build/envsetup.sh
lunch msm8916_64-userdebug
make -j4 | tee log.txt
I got the following error, Is there anyone who can help?(I’ve set Make bash the default shell.)

====================================>>>>>>>>>>
host StaticLib: libfdlibm (/android_out/APQ8016_410C_LA.BR.1.2.4-01810-8x16.0_5.1.1_Lollipop_P2/host/linux-x86/obj/STATIC_LIBRARIES/libfdlibm_intermediates/libfdlibm.a)
/bin/bash: line 1: @: command not found
/bin/sh: line 0: cd: …//android_out/APQ8016_410C_LA.BR.1.2.4-01810-8x16.0_5.1.1_Lollipop_P2/target/product/msm8916_64/obj/KERNEL_OBJ: No such file or directory
Makefile:121: *** make[1]: Entering directory /Dragonboard/Droid/APQ8016_410C_LA.BR.1.2.4-01810-8x16.0_5.1.1_Lollipop_P2/kernel' output directory "..//android_out/APQ8016_410C_LA.BR.1.2.4-01810-8x16.0_5.1.1_Lollipop_P2/target/product/msm8916_64/obj/KERNEL_OBJ" does not exist. Stop. make[1]: Leaving directory /Dragonboard/Droid/APQ8016_410C_LA.BR.1.2.4-01810-8x16.0_5.1.1_Lollipop_P2/kernel’
target C++: libc <= bionic/libc/bionic/malloc_debug_common.cpp
/bin/sh: line 0: cd: …//android_out/APQ8016_410C_LA.BR.1.2.4-01810-8x16.0_5.1.1_Lollipop_P2/target/product/msm8916_64/obj/KERNEL_OBJ: No such file or directory
make[1]: Entering directory /Dragonboard/Droid/APQ8016_410C_LA.BR.1.2.4-01810-8x16.0_5.1.1_Lollipop_P2/kernel' Makefile:121: *** output directory "..//android_out/APQ8016_410C_LA.BR.1.2.4-01810-8x16.0_5.1.1_Lollipop_P2/target/product/msm8916_64/obj/KERNEL_OBJ" does not exist. Stop. make[1]: Leaving directory /Dragonboard/Droid/APQ8016_410C_LA.BR.1.2.4-01810-8x16.0_5.1.1_Lollipop_P2/kernel’
make: *** [/android_out/APQ8016_410C_LA.BR.1.2.4-01810-8x16.0_5.1.1_Lollipop_P2/target/product/msm8916_64/obj/KERNEL_OBJ/usr] Error 2
make: *** Waiting for unfinished jobs…
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-d43eb8.cpp
clang++: note: diagnostic msg: /tmp/android_system_OsConstants-d43eb8.sh
clang++: note: diagnostic msg:


make: *** [/android_out/APQ8016_410C_LA.BR.1.2.4-01810-8x16.0_5.1.1_Lollipop_P2/host/linux-x86/obj32/SHARED_LIBRARIES/libjavacore_intermediates/luni/src/main/native/android_system_OsConstants.o] Error 254

make failed to build some targets (08:43 (mm:ss))

Hi Dick

I downloaded linux_android_board_support_package_vla.br_.1.2.4-01810-8×16.0-3 and pointed my normal Android build machine at DB410c_build.sh . It built cleanly for me.

There’s nothing particularly special about my machine. Its running ubuntu 14.04 and I had already installed all the build prerequisites for Android so I skipped the prerequisites bit in install guide: https://developer.qualcomm.com/download/db410c/linux-android-software-build-and-installation-guide.pdf

So… what system are you using the do the build? Have you ever done any other Android building with it?

Hi danielt,

Thank you for your reply.
I’ve fixed the error already, because of I am running in ubuntu 14.04 VMware virtual machine, there is not enough system memory and swap space, to fix the problem I increased system memory and swap space, everything is ok.

Great to hear this is sorted. Thanks.