Environment
Ubuntu 20.04.6 LTS
I prepared for the build by following How to build a GSI?. Then I started the script by following the method in https://github.com/ponces/treble_aosp/tree/android-13.0. The build stopped midway. I have excerpted a part of the log. Please tell me the cause and solution.
--> Building treble_arm64_bgN
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=13
TARGET_PRODUCT=treble_arm64_bgN
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=armv8-a
TARGET_2ND_CPU_VARIANT=generic
HOST_ARCH=x86_64
HOST_2ND_ARCH=x86
HOST_OS=linux
HOST_OS_EXTRA=Linux-5.15.0-107-generic-x86_64-Ubuntu-20.04.6-LTS
HOST_CROSS_OS=windows
HOST_CROSS_ARCH=x86
HOST_CROSS_2ND_ARCH=x86_64
HOST_BUILD_TYPE=release
BUILD_ID=TQ3C.230901.001.B1
OUT_DIR=out
PRODUCT_SOONG_NAMESPACES=vendor/gapps/common
============================================
[ 89% 140851/157155] //system/libziparchive:ziptool link ziptool
[ 89% 140852/157155] Install out/target/product/tdgsi_arm64_ab/apex/com.android.vndk.v33/etc/llndk.libraries.33.txt
[ 89% 140853/157155] target Prebuilt: [email protected] (out/target/product/tdgsi_arm64_ab/obj/SHARED_LIBRARIES/[email protected]_intermediates/[email protected])
[ 89% 140854/157155] //vendor/gapps/common:AndroidAutoStubPrebuilt Uncompress embedded JIN libs [common]
[ 89% 140855/157155] Copy symbols with mapping: out/target/product/tdgsi_arm64_ab/symbols/system/bin/ziptool
[ 89% 140856/157155] Install out/target/product/tdgsi_arm64_ab/system/lib64/[email protected]
[ 89% 140857/157155] //vendor/gapps/common:AndroidAutoStubPrebuilt align [common]
[ 89% 140858/157155] //vendor/gapps/common:CalendarGooglePrebuilt Uncompress embedded JIN libs [common]
[ 89% 140859/157155] //vendor/gapps/common:CalculatorGooglePrebuilt Uncompress embedded JIN libs [common]
[ 89% 140860/157155] //vendor/gapps/common:CalendarGooglePrebuilt align [common]
FAILED: out/soong/.intermediates/vendor/gapps/common/CalendarGooglePrebuilt/android_common/zip-aligned/CalendarGooglePrebuilt.apk
if ! out/host/linux-x86/bin/zipalign -c -p 4 out/soong/.intermediates/vendor/gapps/common/CalendarGooglePrebuilt/android_common/jnis-uncompressed/CalendarGooglePrebuilt.apk > /dev/null; then out/host/linux-x86/bin/zipalign -f -p 4 out/soong/.intermediates/vendor/gapps/common/CalendarGooglePrebuilt/android_common/jnis-uncompressed/CalendarGooglePrebuilt.apk out/soong/.intermediates/vendor/gapps/common/CalendarGooglePrebuilt/android_common/zip-aligned/CalendarGooglePrebuilt.apk; else cp -f out/soong/.intermediates/vendor/gapps/common/CalendarGooglePrebuilt/android_common/jnis-uncompressed/CalendarGooglePrebuilt.apk out/soong/.intermediates/vendor/gapps/common/CalendarGooglePrebuilt/android_common/zip-aligned/CalendarGooglePrebuilt.apk; fi
Unable to open 'out/soong/.intermediates/vendor/gapps/common/CalendarGooglePrebuilt/android_common/jnis-uncompressed/CalendarGooglePrebuilt.apk' for verification
Unable to open 'out/soong/.intermediates/vendor/gapps/common/CalendarGooglePrebuilt/android_common/jnis-uncompressed/CalendarGooglePrebuilt.apk' as zip archive
[ 89% 140861/157155] //vendor/gapps/common:Chrome Uncompress embedded JIN libs [common]
[ 89% 140862/157155] //vendor/gapps/common:CalculatorGooglePrebuilt align [common]
[ 89% 140863/157155] //vendor/gapps/common:CarrierServices Uncompress embedded JIN libs [common]
[ 89% 140864/157155] //vendor/gapps/common:AndroidPlatformServices Uncompress embedded JIN libs [common]
[ 89% 140865/157155] //system/security/keystore2:libkeystore2 rustc src/lib.rs
[ 89% 140866/157155] //frameworks/av/media/libaudioclient:libaudioclient link libaudioclient.so [arm]
[ 89% 140867/157155] target Dex: AndroidAutoStubPrebuilt
Warning: An API level of 1000 is not supported by this compiler. Please use an API level of 33 or earlier
[ 89% 140868/157155] //frameworks/av/services/audiopolicy/managerdefault:libaudiopolicymanagerdefault link libaudiopolicymanagerdefault.so
[ 89% 140869/157155] //frameworks/native/services/surfaceflinger:surfaceflinger link surfaceflinger
[ 89% 140870/157155] build out/target/product/tdgsi_arm64_ab/obj/NOTICE.xml.gz
[ 89% 140871/157155] target Dex: AndroidAutoStubPrebuilt
Warning: An API level of 1000 is not supported by this compiler. Please use an API level of 33 or earlier
[ 89% 140872/157155] //packages/modules/NeuralNetworks/runtime:libneuralnetworks.ndk abidw out/soong/.intermediates/packages/modules/NeuralNetworks/runtime/libneuralnetworks/android_arm_armv8-a_shared/unstripped/libneuralnetworks.so [arm]
[ 89% 140873/157155] //packages/modules/NeuralNetworks/runtime:libneuralnetworks.ndk abidw out/soong/.intermediates/packages/modules/NeuralNetworks/runtime/libneuralnetworks/android_arm_armv8-a_shared/unstripped/libneuralnetworks.so [arm]
[ 89% 140874/157155] //packages/modules/NeuralNetworks/runtime:libneuralnetworks.ndk abidw out/soong/.intermediates/packages/modules/NeuralNetworks/runtime/libneuralnetworks/android_arm_armv8-a_shared/unstripped/libneuralnetworks.so [arm]
[ 89% 140875/157155] //packages/modules/NeuralNetworks/runtime:libneuralnetworks.ndk abidw out/soong/.intermediates/packages/modules/NeuralNetworks/runtime/libneuralnetworks/android_arm_armv8-a_shared/unstripped/libneuralnetworks.so [arm]
ninja: build stopped: subcommand failed.
New contributor
7yj02 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.