Status on Android 14

82 views
Skip to first unread message

Chang Rebecca Swee Fun

unread,
Oct 10, 2023, 1:41:32 AM10/10/23
to android-risc-v
Hi Peter, 
I am trying to build on top of latest aosp main branch, but saw some issues in soong bootstrap. Did you notice the same issue? Or should I use the Android 14 release branch?

~/aosp-main  $ make ramdisk systemimage vendorimage
============================================
PLATFORM_VERSION_CODENAME=VanillaIceCream
PLATFORM_VERSION=VanillaIceCream
PRODUCT_INCLUDE_TAGS=com.android.mainline mainline_module_prebuilt_nightly
TARGET_PRODUCT=jh7110
TARGET_BUILD_VARIANT=eng
TARGET_ARCH=riscv64
TARGET_ARCH_VARIANT=riscv64
TARGET_CPU_VARIANT=generic
HOST_OS=linux
HOST_OS_EXTRA=Linux-5.15.0-86-generic-x86_64-Ubuntu-22.04.3-LTS
HOST_CROSS_OS=windows
BUILD_ID=MAIN
OUT_DIR=out
============================================
[ 99% 445/446] analyzing Android.bp files and generating ninja file at out/soong/build.jh7110.ninja
FAILED: out/soong/build.jh7110.ninja
cd "$(dirname "out/host/linux-x86/bin/soong_build")" && BUILDER="$PWD/$(basename "out/host/linux-x86/bin/soong_build")" && cd / && env -i  "$BUILDER"     --top "$TOP"     --soong_out "out/soong"     --out "out"     --soong_variables out/soong/soong.jh7110.variables -o out/soong/build.jh7110.ninja --bazel-mode --globListDir jh7110 --globFile out/soong/globs-jh7110.ninja -t -l out/.module_paths/Android.bp.list --available_env out/soong/soong.environment.available --used_env out/soong/soong.environment.used.jh7110.build Android.bp
error: hardware/arv/graphics/composer/aidl/Android.bp:1:1: module "android.hardware.graphics.composer-service.arv" variant "android_vendor.VanillaIceCream_riscv64": depends on multiple versions of the same aidl_interface: android.hardware.graphics.composer3-V1-ndk-source, android.hardware.graphics.composer3-V2-ndk-source
error: hardware/arv/graphics/composer/aidl/Android.bp:1:1: module "android.hardware.graphics.composer-service.arv" variant "android_vendor.VanillaIceCream_riscv64": Dependency path:
           via tag cc.libraryDependencyTag: { Kind:headerLibraryDependency Order:normalLibraryDependency wholeStatic:false reexportFlags:false explicitlyVersioned:false dataLib:false ndk:false staticUnwinder:false makeSuffix: skipApexAllowedDependenciesCheck:false excludeInApex:false unexportedSymbols:false}
    -> android.hardware.graphics.composer3-command-buffer{os:android,image:vendor.VanillaIceCream,arch:riscv64,sdk:}
           via tag cc.libraryDependencyTag: { Kind:sharedLibraryDependency Order:normalLibraryDependency wholeStatic:false reexportFlags:false explicitlyVersioned:false dataLib:false ndk:false staticUnwinder:false makeSuffix: skipApexAllowedDependenciesCheck:false excludeInApex:false unexportedSymbols:false}
    -> android.hardware.graphics.composer3-V2-ndk{os:android,image:vendor.VanillaIceCream,arch:riscv64,sdk:,link:shared,version:}
           via tag cc.dependencyTag: { name:reuse objects}
    -> android.hardware.graphics.composer3-V2-ndk{os:android,image:vendor.VanillaIceCream,arch:riscv64,sdk:,link:static}
           via tag cc.dependencyTag: { name:gen source}
    -> android.hardware.graphics.composer3-V2-ndk-source{}
error: hardware/arv/graphics/composer/aidl/Android.bp:1:1: module "android.hardware.graphics.composer-service.arv" variant "android_vendor.VanillaIceCream_riscv64": Dependency path:
           via tag cc.libraryDependencyTag: { Kind:headerLibraryDependency Order:normalLibraryDependency wholeStatic:false reexportFlags:false explicitlyVersioned:false dataLib:false ndk:false staticUnwinder:false makeSuffix: skipApexAllowedDependenciesCheck:false excludeInApex:false unexportedSymbols:false}
    -> android.hardware.graphics.composer3-command-buffer{os:android,image:vendor.VanillaIceCream,arch:riscv64,sdk:}
           via tag cc.libraryDependencyTag: { Kind:sharedLibraryDependency Order:normalLibraryDependency wholeStatic:false reexportFlags:false explicitlyVersioned:false dataLib:false ndk:false staticUnwinder:false makeSuffix: skipApexAllowedDependenciesCheck:false excludeInApex:false unexportedSymbols:false}
    -> android.hardware.graphics.composer3-V2-ndk{os:android,image:vendor.VanillaIceCream,arch:riscv64,sdk:,link:shared,version:}
           via tag cc.dependencyTag: { name:reuse objects}
    -> android.hardware.graphics.composer3-V2-ndk{os:android,image:vendor.VanillaIceCream,arch:riscv64,sdk:,link:static}
           via tag cc.dependencyTag: { name:gen header export}
    -> android.hardware.graphics.composer3-V2-ndk-source{}
error: hardware/arv/graphics/composer/aidl/Android.bp:1:1: module "android.hardware.graphics.composer-service.arv" variant "android_vendor.VanillaIceCream_riscv64": Dependency path:
           via tag cc.libraryDependencyTag: { Kind:headerLibraryDependency Order:normalLibraryDependency wholeStatic:false reexportFlags:false explicitlyVersioned:false dataLib:false ndk:false staticUnwinder:false makeSuffix: skipApexAllowedDependenciesCheck:false excludeInApex:false unexportedSymbols:false}
    -> android.hardware.graphics.composer3-command-buffer{os:android,image:vendor.VanillaIceCream,arch:riscv64,sdk:}
           via tag cc.libraryDependencyTag: { Kind:sharedLibraryDependency Order:normalLibraryDependency wholeStatic:false reexportFlags:false explicitlyVersioned:false dataLib:false ndk:false staticUnwinder:false makeSuffix: skipApexAllowedDependenciesCheck:false excludeInApex:false unexportedSymbols:false}
    -> android.hardware.graphics.composer3-V2-ndk{os:android,image:vendor.VanillaIceCream,arch:riscv64,sdk:,link:shared,version:}
           via tag cc.dependencyTag: { name:gen header export}
    -> android.hardware.graphics.composer3-V2-ndk-source{}
error: hardware/arv/graphics/composer/aidl/Android.bp:1:1: module "android.hardware.graphics.composer-service.arv" variant "android_vendor.VanillaIceCream_riscv64": Dependency path:
           via tag cc.libraryDependencyTag: { Kind:sharedLibraryDependency Order:normalLibraryDependency wholeStatic:false reexportFlags:false explicitlyVersioned:false dataLib:false ndk:false staticUnwinder:false makeSuffix: skipApexAllowedDependenciesCheck:false excludeInApex:false unexportedSymbols:false}
    -> android.hardware.graphics.composer3-V1-ndk{os:android,image:vendor.VanillaIceCream,arch:riscv64,sdk:,link:shared,version:}
           via tag cc.dependencyTag: { name:reuse objects}
    -> android.hardware.graphics.composer3-V1-ndk{os:android,image:vendor.VanillaIceCream,arch:riscv64,sdk:,link:static,lto:lto-none}
           via tag cc.dependencyTag: { name:gen source}
    -> android.hardware.graphics.composer3-V1-ndk-source{}
error: hardware/arv/graphics/composer/aidl/Android.bp:1:1: module "android.hardware.graphics.composer-service.arv" variant "android_vendor.VanillaIceCream_riscv64": Dependency path:
           via tag cc.libraryDependencyTag: { Kind:sharedLibraryDependency Order:normalLibraryDependency wholeStatic:false reexportFlags:false explicitlyVersioned:false dataLib:false ndk:false staticUnwinder:false makeSuffix: skipApexAllowedDependenciesCheck:false excludeInApex:false unexportedSymbols:false}
    -> android.hardware.graphics.composer3-V1-ndk{os:android,image:vendor.VanillaIceCream,arch:riscv64,sdk:,link:shared,version:}
           via tag cc.dependencyTag: { name:reuse objects}
    -> android.hardware.graphics.composer3-V1-ndk{os:android,image:vendor.VanillaIceCream,arch:riscv64,sdk:,link:static,lto:lto-none}
           via tag cc.dependencyTag: { name:gen header export}
    -> android.hardware.graphics.composer3-V1-ndk-source{}
error: hardware/arv/graphics/composer/aidl/Android.bp:1:1: module "android.hardware.graphics.composer-service.arv" variant "android_vendor.VanillaIceCream_riscv64": Dependency path:
           via tag cc.libraryDependencyTag: { Kind:sharedLibraryDependency Order:normalLibraryDependency wholeStatic:false reexportFlags:false explicitlyVersioned:false dataLib:false ndk:false staticUnwinder:false makeSuffix: skipApexAllowedDependenciesCheck:false excludeInApex:false unexportedSymbols:false}
    -> android.hardware.graphics.composer3-V1-ndk{os:android,image:vendor.VanillaIceCream,arch:riscv64,sdk:,link:shared,version:}
           via tag cc.dependencyTag: { name:gen header export}
    -> android.hardware.graphics.composer3-V1-ndk-source{}
fatal errors encountered
05:34:59 soong bootstrap failed with: exit status 1

#### failed to build some targets (02:28 (mm:ss)) ####

Peter Yoon

unread,
Oct 10, 2023, 2:52:16 AM10/10/23
to android-risc-v
Try re-sync hardware/arv folder which is updated after this posting.

Peter Yoon

unread,
Oct 13, 2023, 1:06:59 AM10/13/23
to android-risc-v
Regarding Android 14,   arv-14 branch is WIP :
https://github.com/android-risc-v/device_arv_jh7110/tree/arv-14

But it could not reach up to home screen.  (console_logcat_231013.txt in following folder)

Chang Rebecca Swee Fun

unread,
Oct 31, 2023, 4:21:25 AM10/31/23
to android-risc-v
Did upstream changed the lunch target policy settings?
I got this error from recent build:
~/aosp  $ lunch jh7110-eng

Invalid lunch combo: jh7110-eng
Valid combos must be of the form <product>-<release>-<variant>

Peter Yoon

unread,
Oct 31, 2023, 6:18:51 AM10/31/23
to android-risc-v
Applied following change on Rebecca's message.
https://github.com/android-risc-v/device_arv_jh7110/commit/528c55aa94280c43cd1fd11d5483ae1b62a8dd98

But RISC-V target of AOSP ART has gone so far for V extension, 
Then not sure current build coud reach Home UI.

Peter Yoon

unread,
Nov 1, 2023, 3:25:41 AM11/1/23
to android-risc-v
Updated  wiki page to revert vector extension changes:

We can build images with AOSP main, But zygote stucked during bootup.


For non-vector chipset, I think it's better trying to resolve Android-14 zygote errors. (WIP source below)

Reply all
Reply to author
Forward
0 new messages