You'd get a better response if you asked in their Telegram groupGuys i'm trying to build AOSPA for the OnePlus 9, and i got this error. Here's the full log:
Code:[email protected]:~/WORKSPACE$ ./rom-build.sh oneplus9 Setting up the environment including vendor/qcom/opensource/core-utils/vendorsetup.sh including vendor/qcom/sdclang/config/vendorsetup.sh Building AOSPA sapphire 1 for oneplus9 Start time: Tue Jul 19 12:21:52 PM CEST 2022 Lunching oneplus9 (Including dependencies sync) vendor/qcom/opensource/audio-hal/primary-hal/configs/lahaina/lahaina.mk:420: warning: "Enabling codec2.0 SW only for non-generic odm build variant" hardware/qcom/media/product.mk:17: warning: "Default Codec2.0 Enabled" vendor/qcom/opensource/audio-hal/primary-hal/configs/lahaina/lahaina.mk:420: warning: "Enabling codec2.0 SW only for non-generic odm build variant" hardware/qcom/media/product.mk:17: warning: "Default Codec2.0 Enabled" ============================================ PLATFORM_VERSION_CODENAME=REL PLATFORM_VERSION=12 AOSPA_VERSION=sapphire-1-oneplus9-unofficial-20220719 TARGET_PRODUCT=aospa_oneplus9 TARGET_BUILD_VARIANT=userdebug TARGET_BUILD_TYPE=release TARGET_ARCH=arm64 TARGET_ARCH_VARIANT=armv8-2a-dotprod TARGET_CPU_VARIANT=cortex-a76 TARGET_2ND_ARCH=arm TARGET_2ND_ARCH_VARIANT=armv8-2a TARGET_2ND_CPU_VARIANT=cortex-a76 HOST_ARCH=x86_64 HOST_2ND_ARCH=x86 HOST_OS=linux HOST_OS_EXTRA=Linux-5.10.102.1-microsoft-standard-WSL2-x86_64-Ubuntu-22.04-LTS HOST_CROSS_OS=windows HOST_CROSS_ARCH=x86 HOST_CROSS_2ND_ARCH=x86_64 HOST_BUILD_TYPE=release BUILD_ID=SKQ1.220702.001 OUT_DIR=out PRODUCT_SOONG_NAMESPACES=device/oneplus/oneplus9 vendor/oneplus/oneplus9 vendor/qcom/common/system/av vendor/qcom/opensource/commonsys/packages/apps/Bluetooth vendor/qcom/opensource/commonsys/system/bt/conf vendor/qcom/opensource/commonsys/system/bt/main vendor/qcom/common/system/bt device/qcom/common/system/gps vendor/qcom/common/system/gps device/qcom/common/vendor/init device/qcom/common/system/overlay vendor/qcom/common/system/perf device/qcom/common/vendor/perf vendor/qcom/common/vendor/perf vendor/qcom/common/system/telephony device/qcom/common/vendor/telephony device/qcom/common/vendor/usb vendor/qcom/common/vendor/media vendor/qcom/common/vendor/adreno vendor/qcom/common/system/audio hardware/qcom/display hardware/qcom/display/gralloc hardware/qcom/display/init hardware/qcom/display/libdebug vendor/qcom/common/system/display vendor/qcom/common/vendor/nq-nfc vendor/qcom/common/system/wfd vendor/qcom/common/system/wlan device/qcom/common/vendor/wlan vendor/qcom/common/vendor/wlan vendor/google/gms vendor/google/pixel ============================================ vendor/qcom/opensource/audio-hal/primary-hal/configs/lahaina/lahaina.mk:420: warning: "Enabling codec2.0 SW only for non-generic odm build variant" hardware/qcom/media/product.mk:17: warning: "Default Codec2.0 Enabled" Starting compilation Restriction Checker not present, skipping.. 12:22:05 ************************************************************ 12:22:05 You are building on a machine with 15.6GB of RAM 12:22:05 12:22:05 The minimum required amount of free memory is around 16GB, 12:22:05 and even with that, some configurations may not work. 12:22:05 12:22:05 If you run into segfaults or other errors, try reducing your 12:22:05 -j value. 12:22:05 ************************************************************ vendor/qcom/opensource/audio-hal/primary-hal/configs/lahaina/lahaina.mk:420: warning: "Enabling codec2.0 SW only for non-generic odm build variant" hardware/qcom/media/product.mk:17: warning: "Default Codec2.0 Enabled" build/make/core/soong_config.mk:213: warning: BOARD_PLAT_PUBLIC_SEPOLICY_DIR has been deprecated. Use SYSTEM_EXT_PUBLIC_SEPOLICY_DIRS instead. build/make/core/soong_config.mk:214: warning: BOARD_PLAT_PRIVATE_SEPOLICY_DIR has been deprecated. Use SYSTEM_EXT_PRIVATE_SEPOLICY_DIRS instead. ============================================ PLATFORM_VERSION_CODENAME=REL PLATFORM_VERSION=12 AOSPA_VERSION=sapphire-1-oneplus9-unofficial-20220719 TARGET_PRODUCT=aospa_oneplus9 TARGET_BUILD_VARIANT=userdebug TARGET_BUILD_TYPE=release TARGET_ARCH=arm64 TARGET_ARCH_VARIANT=armv8-2a-dotprod TARGET_CPU_VARIANT=cortex-a76 TARGET_2ND_ARCH=arm TARGET_2ND_ARCH_VARIANT=armv8-2a TARGET_2ND_CPU_VARIANT=cortex-a76 HOST_ARCH=x86_64 HOST_2ND_ARCH=x86 HOST_OS=linux HOST_OS_EXTRA=Linux-5.10.102.1-microsoft-standard-WSL2-x86_64-Ubuntu-22.04-LTS HOST_CROSS_OS=windows HOST_CROSS_ARCH=x86 HOST_CROSS_2ND_ARCH=x86_64 HOST_BUILD_TYPE=release BUILD_ID=SKQ1.220702.001 OUT_DIR=out PRODUCT_SOONG_NAMESPACES=device/oneplus/oneplus9 vendor/oneplus/oneplus9 vendor/qcom/common/system/av vendor/qcom/opensource/commonsys/packages/apps/Bluetooth vendor/qcom/opensource/commonsys/system/bt/conf vendor/qcom/opensource/commonsys/system/bt/main vendor/qcom/common/system/bt device/qcom/common/system/gps vendor/qcom/common/system/gps device/qcom/common/vendor/init device/qcom/common/system/overlay vendor/qcom/common/system/perf device/qcom/common/vendor/perf vendor/qcom/common/vendor/perf vendor/qcom/common/system/telephony device/qcom/common/vendor/telephony device/qcom/common/vendor/usb vendor/qcom/common/vendor/media vendor/qcom/common/vendor/adreno vendor/qcom/common/system/audio hardware/qcom/display hardware/qcom/display/gralloc hardware/qcom/display/init hardware/qcom/display/libdebug vendor/qcom/common/system/display vendor/qcom/common/vendor/nq-nfc vendor/qcom/common/system/wfd vendor/qcom/common/system/wlan device/qcom/common/vendor/wlan vendor/qcom/common/vendor/wlan vendor/google/gms vendor/google/pixel ============================================ [100% 16/16] out/soong/.bootstrap/bin/soong_build out/soong/build.ninja Clang SA is not enabled build/make/core/build_id.mk was modified, regenerating... vendor/qcom/opensource/audio-hal/primary-hal/configs/lahaina/lahaina.mk:420: warning: "Enabling codec2.0 SW only for non-generic odm build variant" hardware/qcom/media/product.mk:17: warning: "Default Codec2.0 Enabled" build/make/core/build_id.mk was modified, regenerating... [100% 17/17] initializing build system ... vendor/qcom/opensource/audio-hal/primary-hal/configs/lahaina/lahaina.mk:420: warning: "Enabling codec2.0 SW only for non-generic odm build variant" hardware/qcom/media/product.mk:17: warning: "Default Codec2.0 Enabled" build/make/core/main.mk:478: warning: "Compile using modified AOSP tree supporting full vendor value-adds" [ 30% 75/243] including device/qcom/common/Android.mk ... device/qcom/common/vendor/media-legacy/Android.mk:8: warning: BUILD_COPY_HEADERS has been deprecated. See https://android.googlesource.com/platform/build/+/master/Changes.md#copy_headers. [ 34% 83/243] including disregard/Android.mk ... Skipping Android.mk under disregard [ 58% 141/243] including kernel/Android.mk ... Skipping Android.mk under kernel [ 75% 183/243] including system/sepolicy/Android.mk ... system/sepolicy/Android.mk:57: warning: BOARD_PLAT_PUBLIC_SEPOLICY_DIR has been deprecated. Use SYSTEM_EXT_PUBLIC_SEPOLICY_DIRS instead. system/sepolicy/Android.mk:62: warning: BOARD_PLAT_PRIVATE_SEPOLICY_DIR has been deprecated. Use SYSTEM_EXT_PRIVATE_SEPOLICY_DIRS instead. [ 92% 224/243] including vendor/qcom/opensource/audio-hal/primary-hal/Android.mk ... vendor/qcom/opensource/audio-hal/primary-hal/hal/Android.mk: warning: audio.primary.lahaina: LOCAL_COPY_HEADERS is deprecated. See https://android.googlesource.com/platform/build/+/master/Changes.md#copy_headers [ 95% 233/243] including vendor/qcom/opensource/dataservices/rmnetctl/Android.mk ... vendor/qcom/opensource/dataservices/rmnetctl/src/Android.mk:9: warning: BUILD_COPY_HEADERS has been deprecated. See https://android.googlesource.com/platform/build/+/master/Changes.md#copy_headers. [ 97% 238/243] including vendor/qcom/opensource/time-services/Android.mk ... vendor/qcom/opensource/time-services/Android.mk:14: warning: BUILD_COPY_HEADERS has been deprecated. See https://android.googlesource.com/platform/build/+/master/Changes.md#copy_headers. [ 98% 240/243] including vendor/qcom/opensource/wlan/utils/sigma-dut/Android.mk ... fatal: No names found, cannot describe anything. [ 99% 242/243] finishing build rules ... Using DTB Image vendor/qcom/build/tasks/kernel_definitions.mk:111: warning: Device is using custom LLVM toolchain for the kernel vendor/qcom/build/tasks/kernel_definitions.mk:234: warning: VENDOR_RAMDISK_KERNEL_MODLUES = [100% 243/243] writing build rules ... build/make/core/base_rules.mk:552: warning: overriding commands for target `out/target/product/oneplus9/vendor/etc/init/[email protected]' build/make/core/base_rules.mk:552: warning: ignoring old commands for target `out/target/product/oneplus9/vendor/etc/init/[email protected]' build/make/core/base_rules.mk:588: warning: overriding commands for target `out/target/product/oneplus9/vendor/etc/vintf/manifest/[email protected]' build/make/core/base_rules.mk:588: warning: ignoring old commands for target `out/target/product/oneplus9/vendor/etc/vintf/manifest/[email protected]' build/make/core/base_rules.mk:525: warning: overriding commands for target `out/target/product/oneplus9/system/etc/libnfc-nci.conf' build/make/core/base_rules.mk:525: warning: ignoring old commands for target `out/target/product/oneplus9/system/etc/libnfc-nci.conf' build/make/core/Makefile:61: warning: overriding commands for target `out/target/product/oneplus9/vendor/bin/hw/vendor.qti.hardware.display.composer-service' build/make/core/base_rules.mk:525: warning: ignoring old commands for target `out/target/product/oneplus9/vendor/bin/hw/vendor.qti.hardware.display.composer-service' build/make/core/Makefile:61: warning: overriding commands for target `out/target/product/oneplus9/vendor/lib64/libdisplayconfig.qti.so' build/make/core/base_rules.mk:525: warning: ignoring old commands for target `out/target/product/oneplus9/vendor/lib64/libdisplayconfig.qti.so' build/make/core/Makefile:61: warning: overriding commands for target `out/target/product/oneplus9/vendor/lib64/liboemaids_vendor.so' build/make/core/base_rules.mk:525: warning: ignoring old commands for target `out/target/product/oneplus9/vendor/lib64/liboemaids_vendor.so' build/make/core/Makefile:61: warning: overriding commands for target `out/target/product/oneplus9/vendor/lib64/libsdedrm.so' build/make/core/base_rules.mk:525: warning: ignoring old commands for target `out/target/product/oneplus9/vendor/lib64/libsdedrm.so' build/make/core/Makefile:61: warning: overriding commands for target `out/target/product/oneplus9/vendor/lib64/libsdmcore.so' build/make/core/base_rules.mk:525: warning: ignoring old commands for target `out/target/product/oneplus9/vendor/lib64/libsdmcore.so' build/make/core/Makefile:61: warning: overriding commands for target `out/target/product/oneplus9/vendor/lib64/libsdmutils.so' build/make/core/base_rules.mk:525: warning: ignoring old commands for target `out/target/product/oneplus9/vendor/lib64/libsdmutils.so' build/make/core/Makefile:61: warning: overriding commands for target `out/target/product/oneplus9/vendor/lib64/[email protected]' build/make/core/base_rules.mk:525: warning: ignoring old commands for target `out/target/product/oneplus9/vendor/lib64/[email protected]' build/make/core/Makefile:61: warning: overriding commands for target `out/target/product/oneplus9/vendor/lib/libwfdaac_vendor.so' build/make/core/base_rules.mk:525: warning: ignoring old commands for target `out/target/product/oneplus9/vendor/lib/libwfdaac_vendor.so' build/make/core/Makefile:61: warning: overriding commands for target `out/target/product/oneplus9/vendor/lib/[email protected]' build/make/core/base_rules.mk:525: warning: ignoring old commands for target `out/target/product/oneplus9/vendor/lib/[email protected]' [ 0% 250/59219] target C: sigma_dut <= vendor/qcom/opensource/wlan/utils/sigma-dut/dev.c vendor/qcom/opensource/wlan/utils/sigma-dut/dev.c:538:6: warning: unused variable 'res' [-Wunused-variable] int res; ^ vendor/qcom/opensource/wlan/utils/sigma-dut/dev.c:535:7: warning: unused variable 'buf' [-Wunused-variable] char buf[250]; ^ 2 warnings generated. [ 0% 256/59219] build out/target/product/oneplus9/obj/ETC/sepolicy.recovery_intermediates/sepolicy FAILED: out/target/product/oneplus9/obj/ETC/sepolicy.recovery_intermediates/sepolicy /bin/bash -c "(ASAN_OPTIONS=detect_leaks=0 out/host/linux-x86/bin/checkpolicy -M -c 30 -o out/target/product/oneplus9/obj/ETC/sepolicy.recovery_intermediates/sepolicy.tmp out/target/product/oneplus9/obj/ETC/sepolicy.recovery_intermediates/sepolicy.recovery.conf ) && (out/host/linux-x86/bin/sepolicy-analyze out/target/product/oneplus9/obj/ETC/sepolicy.recovery_intermediates/sepolicy.tmp permissive > out/target/product/oneplus9/obj/ETC/sepolicy.recovery_intermediates/sepolicy.permissivedomains ) && (if [ \"userdebug\" = \"user\" -a -s out/target/product/oneplus9/obj/ETC/sepolicy.recovery_intermediates/sepolicy.permissivedomains ]; then echo \"==========\" 1>&2; echo \"ERROR: permissive domains not allowed in user builds\" 1>&2; echo \"List of invalid domains:\" 1>&2; cat out/target/product/oneplus9/obj/ETC/sepolicy.recovery_intermediates/sepolicy.permissivedomains 1>&2; exit 1; fi ) && (mv out/target/product/oneplus9/obj/ETC/sepolicy.recovery_intermediates/sepolicy.tmp out/target/product/oneplus9/obj/ETC/sepolicy.recovery_intermediates/sepolicy )" device/oneplus/oneplus9/sepolicy/vendor/vendor_fod_aospa.te:3:ERROR 'unknown type vendor_fod' at token ';' on line 83994: # Allow FOD to find the OnePlus display HAL hwservice. allow vendor_fod hal_display_hwservice:hwservice_manager find; checkpolicy: error(s) encountered while parsing configuration [ 0% 258/59219] build out/target/product/oneplus9/obj/FAKE/sepolicy_neverallows_intermediates/sepolicy_neverallows FAILED: out/target/product/oneplus9/obj/FAKE/sepolicy_neverallows_intermediates/sepolicy_neverallows /bin/bash -c "(ASAN_OPTIONS=detect_leaks=0 out/host/linux-x86/bin/checkpolicy -M -c 30 -o out/target/product/oneplus9/obj/FAKE/sepolicy_neverallows_intermediates/sepolicy_neverallows.tmp out/target/product/oneplus9/obj/FAKE/sepolicy_neverallows_intermediates/policy.conf ) && (out/host/linux-x86/bin/sepolicy-analyze out/target/product/oneplus9/obj/FAKE/sepolicy_neverallows_intermediates/sepolicy_neverallows.tmp neverallow -w -f out/target/product/oneplus9/obj/FAKE/sepolicy_neverallows_intermediates/policy_2.conf || ( echo \"\" 1>&2; echo \"sepolicy-analyze failed. This is most likely due to the use\" 1>&2; echo \"of an expanded attribute in a neverallow assertion. Please fix\" 1>&2; echo \"the policy.\" 1>&2; exit 1 ) ) && (touch out/target/product/oneplus9/obj/FAKE/sepolicy_neverallows_intermediates/sepolicy_neverallows.tmp ) && (mv out/target/product/oneplus9/obj/FAKE/sepolicy_neverallows_intermediates/sepolicy_neverallows.tmp out/target/product/oneplus9/obj/FAKE/sepolicy_neverallows_intermediates/sepolicy_neverallows )" device/oneplus/oneplus9/sepolicy/vendor/vendor_fod_aospa.te:3:ERROR 'unknown type vendor_fod' at token ';' on line 78573: allow vendor_fod hal_display_hwservice:hwservice_manager find; # Allow FOD to find the OnePlus display HAL hwservice. checkpolicy: error(s) encountered while parsing configuration 12:26:14 ninja failed with: exit status 1 #### failed to build some targets (04:09 (mm:ss)) #### Build failed!
Can someone help me with this? :/
EDIT: Tried to change the vendor_fod_aospa.te file in device/oneplus/oneplus9/sepolicy/vendor but it's still not working![]()