account arrowhead-down arrowhead-up 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.

Compile time error

One time poster
Message 1 of 3
758 Views
Message 1 of 3

Compile time error

hi guys!

i want to compile downloaded AOSP for XZ Premium(G4182) but these errors was happened:

Spoiler
build/make/core/combo/TARGET_linux-arm.mk:43: warning: kryo is armv8-a.
build/make/core/combo/TARGET_linux-arm.mk:45: warning: TARGET_2ND_ARCH_VARIANT, armv7-a-neon, ignored! Use armv8-a instead.
============================================
PLATFORM_VERSION_CODENAME=P
PLATFORM_VERSION=P
TARGET_PRODUCT=aosp_g8142
TARGET_BUILD_VARIANT=eng
TARGET_BUILD_TYPE=release
TARGET_ARCH=arm64
TARGET_ARCH_VARIANT=armv8-a
TARGET_CPU_VARIANT=kryo
TARGET_2ND_ARCH=arm
TARGET_2ND_ARCH_VARIANT=armv8-a
TARGET_2ND_CPU_VARIANT=kryo
HOST_ARCH=x86_64
HOST_2ND_ARCH=x86
HOST_OS=linux
HOST_OS_EXTRA=Linux-4.4.0-43-Microsoft-x86_64-Ubuntu-16.04.3-LTS
HOST_CROSS_OS=windows
HOST_CROSS_ARCH=x86
HOST_CROSS_2ND_ARCH=x86_64
HOST_BUILD_TYPE=release
BUILD_ID=OC-MR1
OUT_DIR=out
============================================
[1/1] out/soong/.minibootstrap/minibp out/soong/.bootstrap/build.ninja
[1/1] out/soong/.bootstrap/bin/soong_build out/soong/build.ninja
Environment variable TARGET_BUILD_VARIANT was modified (userdebug => eng), regenerating...
build/make/core/combo/TARGET_linux-arm.mk:43: warning: kryo is armv8-a.
build/make/core/combo/TARGET_linux-arm.mk:45: warning: TARGET_2ND_ARCH_VARIANT, armv7-a-neon, ignored! Use armv8-a instead.
out/soong/Android-aosp_g8142.mk was modified, regenerating...
build/make/core/combo/TARGET_linux-arm.mk:43: warning: kryo is armv8-a.
build/make/core/combo/TARGET_linux-arm.mk:45: warning: TARGET_2ND_ARCH_VARIANT, armv7-a-neon, ignored! Use armv8-a instead.
[124/860] including device/sony/common/Android.mk ...
ln: failed to create symbolic link 'egl': File exists
ln: failed to create symbolic link 'libllvm-glnext.so': File exists
ln: failed to create symbolic link 'libllvm-qgl.so': File exists
ln: failed to create symbolic link 'libc2d30_bltlib.so': File exists
ln: failed to create symbolic link 'libc2d30-a3xx.so': File exists
ln: failed to create symbolic link 'libc2d30-a4xx.so': File exists
ln: failed to create symbolic link 'libc2d30-a5xx.so': File exists
ln: failed to create symbolic link 'libmm-qdcm.so': File exists
ln: failed to create symbolic link 'librs_adreno.so': File exists
ln: failed to create symbolic link 'libadreno_utils.so': File exists
ln: failed to create symbolic link 'libCB.so': File exists
ln: failed to create symbolic link 'libgsl.so': File exists
ln: failed to create symbolic link 'libC2D2.so': File exists
ln: failed to create symbolic link 'libRSDriver_adreno.so': File exists
ln: failed to create symbolic link 'libOpenCL.so': File exists
ln: failed to create symbolic link 'libllvm-qcom.so': File exists
ln: failed to create symbolic link 'librs_adreno_sha1.so': File exists
ln: failed to create symbolic link 'vulkan.msm8998.so': File exists
ln: failed to create symbolic link 'egl': File exists
ln: failed to create symbolic link 'libllvm-glnext.so': File exists
ln: failed to create symbolic link 'libllvm-qgl.so': File exists
ln: failed to create symbolic link 'libc2d30_bltlib.so': File exists
ln: failed to create symbolic link 'libc2d30-a3xx.so': File exists
ln: failed to create symbolic link 'libc2d30-a4xx.so': File exists
ln: failed to create symbolic link 'libc2d30-a5xx.so': File exists
ln: failed to create symbolic link 'libmm-qdcm.so': File exists
ln: failed to create symbolic link 'librs_adreno.so': File exists
ln: failed to create symbolic link 'libadreno_utils.so': File exists
ln: failed to create symbolic link 'libCB.so': File exists
ln: failed to create symbolic link 'libgsl.so': File exists
ln: failed to create symbolic link 'libC2D2.so': File exists
ln: failed to create symbolic link 'libRSDriver_adreno.so': File exists
ln: failed to create symbolic link 'libOpenCL.so': File exists
ln: failed to create symbolic link 'libllvm-qcom.so': File exists
ln: failed to create symbolic link 'librs_adreno_sha1.so': File exists
ln: failed to create symbolic link 'vulkan.msm8998.so': File exists
ln: failed to create symbolic link 'firmware/wlan/qca_cld/wlan_mac.bin': File exists
hardware/qcom/media/msm8998/mm-video-v4l2/vidc/venc/Android.mk:60: warning: "venc: PQ compiled out"
ln: failed to create symbolic link 'rfs/msm/mpss/ramdumps': File exists
ln: failed to create symbolic link 'rfs/msm/mpss/readwrite': File exists
ln: failed to create symbolic link 'rfs/msm/mpss/shared': File exists
ln: failed to create symbolic link 'rfs/msm/mpss/hlos': File exists
ln: failed to create symbolic link 'rfs/msm/mpss/readonly/firmware': File exists
ln: failed to create symbolic link 'rfs/msm/mpss/readonly/vendor/firmware': File exists
ln: failed to create symbolic link 'rfs/msm/adsp/ramdumps': File exists
ln: failed to create symbolic link 'rfs/msm/adsp/readwrite': File exists
ln: failed to create symbolic link 'rfs/msm/adsp/shared': File exists
ln: failed to create symbolic link 'rfs/msm/adsp/hlos': File exists
ln: failed to create symbolic link 'rfs/msm/adsp/readonly/firmware': File exists
ln: failed to create symbolic link 'rfs/msm/adsp/readonly/vendor/firmware': File exists
ln: failed to create symbolic link 'rfs/msm/slpi/ramdumps': File exists
ln: failed to create symbolic link 'rfs/msm/slpi/readwrite': File exists
ln: failed to create symbolic link 'rfs/msm/slpi/shared': File exists
ln: failed to create symbolic link 'rfs/msm/slpi/hlos': File exists
ln: failed to create symbolic link 'rfs/msm/slpi/readonly/firmware': File exists
ln: failed to create symbolic link 'rfs/msm/slpi/readonly/vendor/firmware': File exists
/bin/bash: line 0: pushd: out/target/product/maple/odm/: No such file or directory
/bin/bash: line 0: pushd: out/target/product/maple/odm/: No such file or directory
/bin/bash: line 0: pushd: out/target/product/maple/odm/: No such file or directory
/bin/bash: line 0: pushd: out/target/product/maple/odm/: No such file or directory
[558/860] including system/sepolicy/Android.mk ...
system/sepolicy/Android.mk:87: warning: BOARD_SEPOLICY_VERS not specified, assuming current platform version
[860/860] including vendor/qcom/opensource/wlan/wcnss-service/Android.mk ...
platform_testing/build/tasks/tests/instrumentation_metric_test_list.mk: warning: continuous_instrumentation_metric_tests: Unknown installed file for module perf-setup.sh
platform_testing/build/tasks/tests/instrumentation_test_list.mk: warning: continuous_instrumentation_tests: Unknown installed file for module SettingsFunctionalTests
platform_testing/build/tasks/tests/instrumentation_test_list.mk: warning: continuous_instrumentation_tests: Unknown installed file for module LauncherFunctionalTests
platform_testing/build/tasks/tests/instrumentation_test_list.mk: warning: continuous_instrumentation_tests: Unknown installed file for module EmergencyInfoTests
platform_testing/build/tasks/tests/native_metric_test_list.mk: warning: continuous_native_metric_tests: Unknown installed file for module perf-setup.sh
build/make/core/base_rules.mk:617: warning: overriding commands for target `out/host/linux-x86/vts/android-vts/testcases/memunreachable_binder_test'
build/make/core/base_rules.mk:617: warning: ignoring old commands for target `out/host/linux-x86/vts/android-vts/testcases/memunreachable_binder_test'
build/make/core/Makefile:26: warning: overriding commands for target `out/target/product/maple/system/vendor/etc/gps.conf'
build/make/core/base_rules.mk:412: warning: ignoring old commands for target `out/target/product/maple/system/vendor/etc/gps.conf'
19:20:53 Build configuration changed: "aosp_g8142-userdebug" -> "aosp_g8142-eng", forcing installclean
[ 85% 6/7] glob frameworks/base/core/java/**/*.java
ninja: error: unknown target '4', did you mean 'r'?
19:22:07 ninja failed with: exit status 1

#### failed to build some targets (25:04 (mm:ss)) ####

please help me

how solve this problem?

 

2 REPLIES 2
Developer World
Message 2 of 3
736 Views
Message 2 of 3

Re: Compile time error

Hi,

please follow the build guide https://developer.sony.com/develop/open-devices/

 

From the output it looks like you missed a step or you used a deprecated guide

 

Regards

Alin

 

 

 

Learner
Message 3 of 3
618 Views
Message 3 of 3

Re: Compile time error

as I can see, you are trying to build Android P Developer Preview, which is not yet ready for our devices and can not be used right now. Please follow the official instructions.

 

Regards, Pavel.