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.

Xperia XA2

Rookie
Message 1 of 5
1,438 Views
Message 1 of 5

Xperia XA2

Today my new Xperia XA2 arrived and I tried to build the current AOSP. Unfortunately, the build seems to be broken and I could not manage to get it fix. Maybe some got an idea what is going wrong here.

I did follow the instructions https://developer.sony.com/develop/open-devices/guides/aosp-build-instructions/build-aosp-nougat-8-1... step by step.

Any help would be appreciated.

 

 make -j 64
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=8.1.0
TARGET_PRODUCT=aosp_h4113
TARGET_BUILD_VARIANT=userdebug
TARGET_BUILD_TYPE=release
TARGET_ARCH=arm64
TARGET_ARCH_VARIANT=armv8-a
TARGET_CPU_VARIANT=generic
TARGET_2ND_ARCH=arm
TARGET_2ND_ARCH_VARIANT=armv7-a-neon
TARGET_2ND_CPU_VARIANT=cortex-a53
HOST_ARCH=x86_64
HOST_2ND_ARCH=x86
HOST_OS=linux
HOST_OS_EXTRA=Linux-4.13.0-36-generic-x86_64-with-Ubuntu-17.10-artful
HOST_CROSS_OS=windows
HOST_CROSS_ARCH=x86
HOST_CROSS_2ND_ARCH=x86_64
HOST_BUILD_TYPE=release
BUILD_ID=OPM1.171019.016
OUT_DIR=out
============================================
[44/44] bootstrap out/soong/.minibootstrap/build.ninja.in
[4/4] out/soong/.bootstrap/bin/minibp out/soong/.bootstrap/build.ninja
[859/860] glob vendor/*/*/Android.bp
[54/54] out/soong/.bootstrap/bin/soong_build out/soong/build.ninja
out/build-aosp_h4113.ninja is missing, regenerating...
[136/999] including ./device/sony/common/Android.mk ...
/bin/bash: line 0: pushd: out/target/product/pioneer/odm/: No such file or directory
/bin/bash: line 0: pushd: out/target/product/pioneer/odm/: No such file or directory
/bin/bash: line 0: pushd: out/target/product/pioneer/odm/: No such file or directory
/bin/bash: line 0: pushd: out/target/product/pioneer/odm/: No such file or directory
[672/999] including ./system/sepolicy/Android.mk ...
./system/sepolicy/Android.mk:111: warning: BOARD_SEPOLICY_VERS not specified, assuming current platform version
[678/999] including ./system/update_engine/Android.mk ...
./system/update_engine/Android.mk:504: warning: No PRODUCT_STATIC_BOOT_CONTROL_HAL configured but AB_OTA_UPDATER is true, no update sideload support.
[999/999] including ./vendor/qcom/opensource/wlan/wcnss-service/Android.mk ...
hardware/qcom/media/msm8998/mm-video-v4l2/vidc/vdec/Android.mk: error: libOmxVdec (SHARED_LIBRARIES android-arm64) missing libqdMetaData (SHARED_LIBRARIES android-arm64)
You can set ALLOW_MISSING_DEPENDENCIES=true in your environment if this is intentional, but that may defer real problems until later in the build.
hardware/qcom/media/msm8998/mm-video-v4l2/vidc/vdec/Android.mk: error: libOmxVdec (SHARED_LIBRARIES android-arm) missing libqdMetaData (SHARED_LIBRARIES android-arm)
You can set ALLOW_MISSING_DEPENDENCIES=true in your environment if this is intentional, but that may defer real problems until later in the build.
hardware/qcom/media/msm8998/mm-video-v4l2/vidc/venc/Android.mk: error: libOmxVenc (SHARED_LIBRARIES android-arm64) missing libqdMetaData (SHARED_LIBRARIES android-arm64)
You can set ALLOW_MISSING_DEPENDENCIES=true in your environment if this is intentional, but that may defer real problems until later in the build.
hardware/qcom/media/msm8998/mm-video-v4l2/vidc/venc/Android.mk: error: libOmxVenc (SHARED_LIBRARIES android-arm) missing libqdMetaData (SHARED_LIBRARIES android-arm)
You can set ALLOW_MISSING_DEPENDENCIES=true in your environment if this is intentional, but that may defer real problems until later in the build.
hardware/qcom/camera/QCamera2/Android.mk: error: camera.sdm660 (SHARED_LIBRARIES android-arm) missing libqdMetaData (SHARED_LIBRARIES android-arm)
You can set ALLOW_MISSING_DEPENDENCIES=true in your environment if this is intentional, but that may defer real problems until later in the build.
hardware/qcom/camera/QCamera2/Android.mk: error: camera.sdm660 (SHARED_LIBRARIES android-arm) missing libqservice (SHARED_LIBRARIES android-arm)
You can set ALLOW_MISSING_DEPENDENCIES=true in your environment if this is intentional, but that may defer real problems until later in the build.
build/core/main.mk:728: error: exiting from previous errors.
13:56:46 ckati failed with: exit status 1

#### failed to build some targets (49 seconds) ####
4 REPLIES 4
Inhabitant
Message 2 of 5
1,433 Views
Message 2 of 5

Re: Xperia XA2

maybe post all the steps (commands) that you did? I did compilation with checking out clean project yesterday and everything worked well.

otherwise, you can try to use this as a bash script (REPLACE aosp_f5321-userdebug for the "lunch" command by YOUR XPERIA VERSION):

rm -rf out vendor .repo/local_manifests
branch='android-8.1.0_r10'
repo init -u https://android.googlesource.com/platform/manifest -b $branch
cd .repo
git clone https://github.com/sonyxperiadev/local_manifests
cd local_manifests
git checkout $branch
cd ../..
repo sync
./repo_update.sh
source build/envsetup.sh
#!!!replace aosp_f5321-userdebug by your version
lunch <<EOF
aosp_f5321-userdebug
EOF
#specify cache dir and its size for C compiler if you want to speed up the next build
#export USE_CCACHE=1
#export CCACHE_DIR=
#./prebuilts/misc/linux-x86/ccache/ccache -M 80G
make -j 64 &> make_8.1.log
Rookie
Message 3 of 5
1,427 Views
Message 3 of 5

Re: Xperia XA2

Thanks for the quick reply stanos4. I just removed everything again and did a new try from scratch:

 

java -version
	openjdk version "1.8.0_151"
	OpenJDK Runtime Environment (build 1.8.0_151-8u151-b12-0ubuntu0.17.10.2-b12)
	OpenJDK 64-Bit Server VM (build 25.151-b12, mixed mode)

repo init -u https://android.googlesource.com/platform/manifest -b android-8.1.0_r10
	.....
	repo has been initialized in /home/ubuntu/sony/h4113

cd .repo
git clone https://github.com/sonyxperiadev/local_manifests
	Cloning into 'local_manifests'...
	remote: Counting objects: 408, done.
	remote: Compressing objects: 100% (12/12), done.
	remote: Total 408 (delta 6), reused 8 (delta 3), pack-reused 393
	Receiving objects: 100% (408/408), 61.87 KiB | 2.58 MiB/s, done.
	Resolving deltas: 100% (249/249), done.
cd local_manifests
git checkout android-8.1.0_r10
	Branch android-8.1.0_r10 set up to track remote branch android-8.1.0_r10 from origin.
	Switched to a new branch 'android-8.1.0_r10'
cd ../..

repo sync -j 10
	... coffee break ...
	Syncing work tree: 100% (573/573), done.

./repo_update.sh
	done after some time

source build/envsetup.sh
lunch
	Which would you like? [aosp_arm-eng] aosp_h4113-userdebug

	============================================
	PLATFORM_VERSION_CODENAME=REL
	PLATFORM_VERSION=8.1.0
	TARGET_PRODUCT=aosp_h4113
	TARGET_BUILD_VARIANT=userdebug
	TARGET_BUILD_TYPE=release
	TARGET_PLATFORM_VERSION=OPM1
	TARGET_BUILD_APPS=
	TARGET_ARCH=arm64
	TARGET_ARCH_VARIANT=armv8-a
	TARGET_CPU_VARIANT=generic
	TARGET_2ND_ARCH=arm
	TARGET_2ND_ARCH_VARIANT=armv7-a-neon
	TARGET_2ND_CPU_VARIANT=cortex-a53
	HOST_ARCH=x86_64
	HOST_2ND_ARCH=x86
	HOST_OS=linux
	HOST_OS_EXTRA=Linux-4.13.0-36-generic-x86_64-with-Ubuntu-17.10-artful
	HOST_CROSS_OS=windows
	HOST_CROSS_ARCH=x86
	HOST_CROSS_2ND_ARCH=x86_64
	HOST_BUILD_TYPE=release
	BUILD_ID=OPM1.171019.016
	OUT_DIR=out
	AUX_OS_VARIANT_LIST=
	============================================

make -j 64
	============================================
	PLATFORM_VERSION_CODENAME=REL
	PLATFORM_VERSION=8.1.0
	TARGET_PRODUCT=aosp_h4113
	TARGET_BUILD_VARIANT=userdebug
	TARGET_BUILD_TYPE=release
	TARGET_ARCH=arm64
	TARGET_ARCH_VARIANT=armv8-a
	TARGET_CPU_VARIANT=generic
	TARGET_2ND_ARCH=arm
	TARGET_2ND_ARCH_VARIANT=armv7-a-neon
	TARGET_2ND_CPU_VARIANT=cortex-a53
	HOST_ARCH=x86_64
	HOST_2ND_ARCH=x86
	HOST_OS=linux
	HOST_OS_EXTRA=Linux-4.13.0-36-generic-x86_64-with-Ubuntu-17.10-artful
	HOST_CROSS_OS=windows
	HOST_CROSS_ARCH=x86
	HOST_CROSS_2ND_ARCH=x86_64
	HOST_BUILD_TYPE=release
	BUILD_ID=OPM1.171019.016
	OUT_DIR=out
	============================================
	[44/44] bootstrap out/soong/.minibootstrap/build.ninja.in
	[4/4] out/soong/.bootstrap/bin/minibp out/soong/.bootstrap/build.ninja
	[859/860] glob test/vts/runners/target/vts_hal_hidl_target/Android.bp
	[54/54] out/soong/.bootstrap/bin/soong_build out/soong/build.ninja
	out/build-aosp_h4113.ninja is missing, regenerating...
	[136/999] including ./device/sony/common/Android.mk ...
	/bin/bash: line 0: pushd: out/target/product/pioneer/odm/: No such file or directory
	/bin/bash: line 0: pushd: out/target/product/pioneer/odm/: No such file or directory
	/bin/bash: line 0: pushd: out/target/product/pioneer/odm/: No such file or directory
	/bin/bash: line 0: pushd: out/target/product/pioneer/odm/: No such file or directory
	[672/999] including ./system/sepolicy/Android.mk ...
	./system/sepolicy/Android.mk:111: warning: BOARD_SEPOLICY_VERS not specified, assuming current platform version
	[678/999] including ./system/update_engine/Android.mk ...
	./system/update_engine/Android.mk:504: warning: No PRODUCT_STATIC_BOOT_CONTROL_HAL configured but AB_OTA_UPDATER is true, no update sideload support.
	[999/999] including ./vendor/qcom/opensource/wlan/wcnss-service/Android.mk ...
	hardware/qcom/media/msm8998/mm-video-v4l2/vidc/vdec/Android.mk: error: libOmxVdec (SHARED_LIBRARIES android-arm64) missing libqdMetaData (SHARED_LIBRARIES android-arm64)
	You can set ALLOW_MISSING_DEPENDENCIES=true in your environment if this is intentional, but that may defer real problems until later in the build.
	hardware/qcom/media/msm8998/mm-video-v4l2/vidc/vdec/Android.mk: error: libOmxVdec (SHARED_LIBRARIES android-arm) missing libqdMetaData (SHARED_LIBRARIES android-arm)
	You can set ALLOW_MISSING_DEPENDENCIES=true in your environment if this is intentional, but that may defer real problems until later in the build.
	hardware/qcom/media/msm8998/mm-video-v4l2/vidc/venc/Android.mk: error: libOmxVenc (SHARED_LIBRARIES android-arm64) missing libqdMetaData (SHARED_LIBRARIES android-arm64)
	You can set ALLOW_MISSING_DEPENDENCIES=true in your environment if this is intentional, but that may defer real problems until later in the build.
	hardware/qcom/media/msm8998/mm-video-v4l2/vidc/venc/Android.mk: error: libOmxVenc (SHARED_LIBRARIES android-arm) missing libqdMetaData (SHARED_LIBRARIES android-arm)
	You can set ALLOW_MISSING_DEPENDENCIES=true in your environment if this is intentional, but that may defer real problems until later in the build.
	hardware/qcom/camera/QCamera2/Android.mk: error: camera.sdm660 (SHARED_LIBRARIES android-arm) missing libqdMetaData (SHARED_LIBRARIES android-arm)
	You can set ALLOW_MISSING_DEPENDENCIES=true in your environment if this is intentional, but that may defer real problems until later in the build.
	hardware/qcom/camera/QCamera2/Android.mk: error: camera.sdm660 (SHARED_LIBRARIES android-arm) missing libqservice (SHARED_LIBRARIES android-arm)
	You can set ALLOW_MISSING_DEPENDENCIES=true in your environment if this is intentional, but that may defer real problems until later in the build.
	build/core/main.mk:728: error: exiting from previous errors.
	20:21:04 ckati failed with: exit status 1

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

After the same error as before I did try out your script but all ended in the same error. Please see the full log here: http://paste.ubuntu.com/p/prH74Sgy3x/

 

In the meantime, I did manage to build android for the pixel 2 and XZ1 on the same system so I guess the overall install should be fine.

 

Highlighted
Inhabitant
Message 4 of 5
1,418 Views
Message 4 of 5

Re: Xperia XA2

sorry then, can not help, seems like you have to wait for things to be patched up for your phone.

Developer World
Message 5 of 5
1,369 Views
Message 5 of 5

Re: Xperia XA2

Hi,

please hold on

I am pushing the fix soon

Regards

Alin