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.

Can't make AOSP 9.0 ROM for Xperia X F5121

Highlighted
Rookie
Message 1 of 3
80 Views
Message 1 of 3

Can't make AOSP 9.0 ROM for Xperia X F5121

Hello,

 

i tried to build a AOSP 9.0 ROM for Xperia X F5121 but get failed every time. I get the following content on my command line:

 

============================================
root@Android:~/android# make -j 8
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=9
TARGET_PRODUCT=aosp_f5121
TARGET_BUILD_VARIANT=userdebug
TARGET_BUILD_TYPE=release
TARGET_ARCH=arm64
TARGET_ARCH_VARIANT=armv8-a
TARGET_CPU_VARIANT=cortex-a53
TARGET_2ND_ARCH=arm
TARGET_2ND_ARCH_VARIANT=armv8-a
TARGET_2ND_CPU_VARIANT=cortex-a53.a57
HOST_ARCH=x86_64
HOST_2ND_ARCH=x86
HOST_OS=linux
HOST_OS_EXTRA=Linux-4.15.0-42-generic-x86_64-Ubuntu-18.04.1-LTS
HOST_CROSS_OS=windows
HOST_CROSS_ARCH=x86
HOST_CROSS_2ND_ARCH=x86_64
HOST_BUILD_TYPE=release
BUILD_ID=PQ1A.181105.017.A1
OUT_DIR=out
============================================
ninja: no work to do.
ninja: no work to do.
wildcard(out/target/product/suzu/clean_steps.mk) was changed, regenerating...
out/build-aosp_f5121.ninja is missing, regenerating...
[25/977] including development/build/Android.mk ...
development/build/build_android_stubs.mk:43: warning: android_stubs_current
development/build/build_android_stubs.mk:43: warning: metalava_android_stubs_current metalava_android_stubs_current
development/build/build_android_stubs.mk:43: warning: android_system_stubs_current
development/build/build_android_stubs.mk:43: warning: android_test_stubs_current
development/build/build_android_stubs.mk:43: warning: metalava_android_system_stubs_current metalava_android_system_stubs_current
development/build/build_android_stubs.mk:43: warning: metalava_android_test_stubs_current metalava_android_test_stubs_current
[120/977] including device/sony/common/Android.mk ...
/bin/bash: line 0: pushd: out/target/product/suzu/odm/: No such file or directory
[375/977] including hardware/qcom/gps/Android.mk ...
build/make/core/base_rules.mk:260: error: hardware/qcom/gps/core: MODULE.TARGET.SHARED_LIBRARIES.libloc_core already defined by hardware/qcom/gps/sdm845/core.
21:22:13 ckati failed with: exit status 1

#### failed to build some targets (49 seconds) ####

 

I also performed repo_update two times and synced the repo but this hadn't fixed the issue.

 

Any information how to fix this problem and get a working build?

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

Re: Can't make AOSP 9.0 ROM for Xperia X F5121

hi,

 

the error indicates that the repo_update did not run corectly

build/make/core/base_rules.mk:260: error: hardware/qcom/gps/core: MODULE.TARGET.SHARED_LIBRARIES.libloc_core already defined by hardware/qcom/gps/sdm845/core.

 

Please remove your android folder and start step 1 from the build guide

 

regards

Alin

 

 

 

Rookie
Message 3 of 3
46 Views
Message 3 of 3

Re: Can't make AOSP 9.0 ROM for Xperia X F5121

I wiped my Linux installation completely and began from step 1 again, but this hadn't solved my issue.