MisterZtr / PixelOS_gsi

Script and patches for building PHH-Treble based PixelOS GSI
85 stars 10 forks source link

error: hardware/lineage/compat/Android.bp:455:1: module "prebuilt_libprotobuf-cpp-full-vendorcompat" already defined #69

Closed User8395 closed 3 weeks ago

User8395 commented 3 weeks ago

This error happens after lunching treble_a64_bfs-ap1a-userdebug

 ✘ user8395@server8395  /disk/PixelOS_gsi   14  lunch treble_a64_bfS-ap1a-userdebug
In file included from build/make/core/config.mk:389:
In file included from build/make/core/envsetup.mk:350:
In file included from build/make/core/product_config.mk:234:
device/phh/treble/treble_a64_bfS.mk:5: error:  vendor/foss/foss.mk does not exist..
19:14:30 dumpvars failed with: exit status 1
In file included from build/make/core/config.mk:389:
In file included from build/make/core/envsetup.mk:350:
In file included from build/make/core/product_config.mk:234:
device/phh/treble/treble_a64_bfS.mk:5: error:  vendor/foss/foss.mk does not exist..
19:14:31 dumpvars failed with: exit status 1
 ✘ user8395@server8395  /disk/PixelOS_gsi   14  make systemimage -j$(nproc --all)

device/phh/treble/tdgsi_a64_ab/BoardConfig.mk:10: warning: TARGET_USES_64_BIT_BINDER has been deprecated. All devices use 64-bit binder by default now. Uses of TARGET_USES_64_BIT_BINDER should be removed..
date: bad date 2024-06-11 23:14 UTC
device/phh/treble/tdgsi_a64_ab/BoardConfig.mk:10: warning: TARGET_USES_64_BIT_BINDER has been deprecated. All devices use 64-bit binder by default now. Uses of TARGET_USES_64_BIT_BINDER should be removed..
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=14
CUSTOM_VERSION=PixelOS_treble_a64_boS-14.0-20240611-2314
PRODUCT_INCLUDE_TAGS=com.android.mainline mainline_module_prebuilt_nightly
TARGET_PRODUCT=treble_a64_boS
TARGET_BUILD_VARIANT=userdebug
TARGET_ARCH=arm
TARGET_ARCH_VARIANT=armv7-a-neon
TARGET_CPU_VARIANT=generic
HOST_OS=linux
HOST_OS_EXTRA=Linux-6.9.3-arch1-1-x86_64-EndeavourOS
HOST_CROSS_OS=windows
BUILD_ID=AP1A.240505.005.B1
OUT_DIR=out
PRODUCT_SOONG_NAMESPACES=vendor/gms/common
============================================
[100% 1/1] analyzing Android.bp files and generating ninja file at out/soong/build.treble_a64_boS.ninja
FAILED: out/soong/build.treble_a64_boS.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.treble_a64_boS.variables -o out/soong/build.treble_a64_boS.ninja --globListDir treble_a64_boS --globFile out/soong/globs-treble_a64_boS.ninja -l out/.module_paths/Android.bp.list --available_env out/soong/soong.environment.available --used_env out/soong/soong.environment.used.treble_a64_boS.build Android.bp
error: hardware/lineage/compat/Android.bp:455:1: module "prebuilt_libprotobuf-cpp-full-vendorcompat" already defined
       prebuilts/vndk/v28/Android.bp:165:1 <-- previous definition here
error: hardware/lineage/compat/Android.bp:474:1: module "prebuilt_libprotobuf-cpp-lite-vendorcompat" already defined
       prebuilts/vndk/v28/Android.bp:133:1 <-- previous definition here
fatal errors encountered
19:14:48 soong bootstrap failed with: exit status 1

#### failed to build some targets (7 seconds) ####
MisterZtr commented 3 weeks ago

https://github.com/naz664/prebuilts_vndk_v28/commit/507526a5b27a170aea338ff747c7d6ecc9bb91bb

User8395 commented 3 weeks ago

https://github.com/naz664/prebuilts_vndk_v28/commit/507526a5b27a170aea338ff747c7d6ecc9bb91bb

Is this already a patch added to this repo?

User8395 commented 3 weeks ago

fixed