Building Spark OS with manjaro and can't properly build kernel coral/flame - Google Pixel 4 XL Questions & Answers

I'm seeming to have a problem where it doesn't seem to build the dtbo.img. I assume it's because of a symlink problem, but I'm not sure how to solve it...
Here is the full log
Trying dependencies-only mode on a non-existing device tree?
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=11
SPARK_VERSION=Spark-vIgnite-flame-Unofficial-vanilla-20220228
TARGET_PRODUCT=spark_flame
TARGET_BUILD_VARIANT=userdebug
TARGET_BUILD_TYPE=release
TARGET_ARCH=arm64
TARGET_ARCH_VARIANT=armv8-2a
TARGET_CPU_VARIANT=cortex-a76
TARGET_2ND_ARCH=arm
TARGET_2ND_ARCH_VARIANT=armv8-a
TARGET_2ND_CPU_VARIANT=cortex-a76
HOST_ARCH=x86_64
HOST_2ND_ARCH=x86
HOST_OS=linux
HOST_OS_EXTRA=Linux-5.16.9-xanmod0-rog-1-x86_64-Manjaro-Linux
HOST_CROSS_OS=windows
HOST_CROSS_ARCH=x86
HOST_CROSS_2ND_ARCH=x86_64
HOST_BUILD_TYPE=release
BUILD_ID=RQ3A.210905.001
OUT_DIR=/home/tech180/android/spark/out
PRODUCT_SOONG_NAMESPACES=hardware/google/av hardware/google/camera hardware/google/interfaces hardware/google/pixel device/google/coral hardware/qcom/sm8150/display hardware/qcom/sm8150/data/ipacfg-mgr hardware/qcom/sm8150/gps vendor/google/airbrush/floral vendor/google/biometrics/face vendor/google/camera vendor/google/darwinn vendor/qcom/sm8150 vendor/qcom/sm8150/proprietary/commonsys/telephony-apps/DataStatusNotification vendor/qcom/sm8150/proprietary/gps vendor/qcom/sm8150/codeaurora/location vendor/google/interfaces vendor/qcom/sensors vendor/google/tools/sensors vendor/qcom/sm7250/codeaurora/commonsys/telephony/ims/ims-ext-common vendor/qcom/sm7250/codeaurora/dataservices/rmnetctl vendor/qcom/sm7250/proprietary/commonsys/qcrilOemHook vendor/qcom/sm7250/proprietary/commonsys/telephony-apps/ims vendor/qcom/sm7250/proprietary/commonsys/telephony-apps/QtiTelephonyService vendor/qcom/sm7250/proprietary/commonsys/telephony-apps/xdivert vendor/qcom/sm7250/proprietary/qcril-data-hal vendor/qcom/sm7250/proprietary/qcril-hal vendor/qcom/sm7250/proprietary/data vendor/qcom/opensource/commonsys-intf/display vendor/google/flame packages/apps/Bluetooth frameworks/av/camera/cameraserver frameworks/av/services/camera/libcameraservice
============================================
[1mvendor/spark/config/common.mk:140: [35mwarning: [0m[1m"TARGET_BOOT_ANIMATION_RES is undefined, assuming 1080p"[0m
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=11
SPARK_VERSION=Spark-vIgnite-flame-Unofficial-vanilla-20220228
TARGET_PRODUCT=spark_flame
TARGET_BUILD_VARIANT=userdebug
TARGET_BUILD_TYPE=release
TARGET_ARCH=arm64
TARGET_ARCH_VARIANT=armv8-2a
TARGET_CPU_VARIANT=cortex-a76
TARGET_2ND_ARCH=arm
TARGET_2ND_ARCH_VARIANT=armv8-a
TARGET_2ND_CPU_VARIANT=cortex-a76
HOST_ARCH=x86_64
HOST_2ND_ARCH=x86
HOST_OS=linux
HOST_OS_EXTRA=Linux-5.16.9-xanmod0-rog-1-x86_64-Manjaro-Linux
HOST_CROSS_OS=windows
HOST_CROSS_ARCH=x86
HOST_CROSS_2ND_ARCH=x86_64
HOST_BUILD_TYPE=release
BUILD_ID=RQ3A.210905.001
OUT_DIR=/home/tech180/android/spark/out
PRODUCT_SOONG_NAMESPACES=hardware/google/av hardware/google/camera hardware/google/interfaces hardware/google/pixel device/google/coral hardware/qcom/sm8150/display hardware/qcom/sm8150/data/ipacfg-mgr hardware/qcom/sm8150/gps vendor/google/airbrush/floral vendor/google/biometrics/face vendor/google/camera vendor/google/darwinn vendor/qcom/sm8150 vendor/qcom/sm8150/proprietary/commonsys/telephony-apps/DataStatusNotification vendor/qcom/sm8150/proprietary/gps vendor/qcom/sm8150/codeaurora/location vendor/google/interfaces vendor/qcom/sensors vendor/google/tools/sensors vendor/qcom/sm7250/codeaurora/commonsys/telephony/ims/ims-ext-common vendor/qcom/sm7250/codeaurora/dataservices/rmnetctl vendor/qcom/sm7250/proprietary/commonsys/qcrilOemHook vendor/qcom/sm7250/proprietary/commonsys/telephony-apps/ims vendor/qcom/sm7250/proprietary/commonsys/telephony-apps/QtiTelephonyService vendor/qcom/sm7250/proprietary/commonsys/telephony-apps/xdivert vendor/qcom/sm7250/proprietary/qcril-data-hal vendor/qcom/sm7250/proprietary/qcril-hal vendor/qcom/sm7250/proprietary/data vendor/qcom/opensource/commonsys-intf/display vendor/google/flame packages/apps/Bluetooth frameworks/av/camera/cameraserver frameworks/av/services/camera/libcameraservice
============================================
...
[ 3% 3908/102649] //bionic/libc:libc.llndk versioner preprocess include
warning: attempted to generate guard with empty availability: obsoleted = 21
warning: attempted to generate guard with empty availability: obsoleted = 23
[ 3% 3909/102649] //system/core/base:libbase clang++ logging.cpp
[ 3% 3910/102649] //external/libcxx:libc++_static clang++ src/condition_variable.cpp
[ 3% 3911/102649] //bionic/libc:crtbegin_dynamic1 clang arch-common/bionic/crtbegin.c [apex29]
[ 3% 3912/102649] //bionic/libc:crtbegin_so1 clang arch-common/bionic/crtbegin_so.c [apex29]
[ 3% 3913/102649] //bionic/libc:crtend_so clang arch-common/bionic/crtend_so.S [apex29]
[ 3% 3914/102649] //bionic/libc:crtbrand clang arch-common/bionic/crtbrand.S [apex29]
[ 3% 3915/102649] //bionic/libc:crtend_android clang arch-common/bionic/crtend.S [apex29]
[ 3% 3916/102649] //bionic/libc:crtbegin_dynamic link crtbegin_dynamic.o [apex29]
[ 3% 3917/102649] //external/libcxx:libc++_static clang++ src/hash.cpp
[ 3% 3918/102649] //bionic/libc:crtbegin_so link crtbegin_so.o [apex29]
[ 3% 3919/102649] //bionic/libc:libc.llndk versioner preprocess include [arm]
warning: attempted to generate guard with empty availability: obsoleted = 21
warning: attempted to generate guard with empty availability: obsoleted = 23
[ 3% 3920/102649] //external/flac/libFLAC:libFLAC clang bitmath.c [apex29]
[ 3% 3921/102649] //bionic/libc:libc.llndk versioner preprocess include [arm]
warning: attempted to generate guard with empty availability: obsoleted = 21
warning: attempted to generate guard with empty availability: obsoleted = 23
[ 3% 3922/102649] target thumb C: libtunnel_32 <= hardware/knowles/athletico/sound_trigger_hal/tunnel.c
FAILED: /home/tech180/android/spark/out/target/product/flame/obj_arm/SHARED_LIBRARIES/libtunnel_intermediates/tunnel.o
/bin/bash -c "PWD=/proc/self/cwd prebuilts/clang/host/linux-x86/clang-r383902b1/bin/clang -I hardware/knowles/athletico/sound_trigger_hal -I /home/tech180/android/spark/out/target/product/flame/obj_arm/SHARED_LIBRARIES/libtunnel_intermediates -I /home/tech180/android/spark/out/target/product/flame/gen/SHARED_LIBRARIES/libtunnel_intermediates -Isystem/core/liblog/include_vndk -Isystem/core/libcutils/include_vndk -Isystem/core/libprocessgroup/include -Isystem/core/libcutils/include -Iexternal/libcxx/include -Iexternal/libcxxabi/include -isystem /home/tech180/android/spark/out/soong/.intermediates/bionic/libc/libc.llndk/android_vendor.30_arm_armv8-a_cortex-a76_shared/gen/include -isystem bionic/libc/kernel/android/scsi -isystem bionic/libc/kernel/android/uapi -isystem bionic/libc/kernel/uapi -isystem bionic/libc/kernel/uapi/asm-arm -Iexternal/libcxxabi/include -isystem /home/tech180/android/spark/out/target/product/flame/obj/include -c -fomit-frame-pointer -DANDROID -fmessage-length=0 -W -Wall -Wno-unused -Winit-self -Wpointer-arith -no-canonical-prefixes -DNDEBUG -UDEBUG -fno-exceptions -Wno-multichar -O2 -g -fno-strict-aliasing -Werror=date-time -Werror=pragma-pack -Werror=pragma-pack-suspicious-include -fdebug-prefix-map=/proc/self/cwd= -D__compiler_offsetof=__builtin_offsetof -faddrsig -Werror=int-conversion -fexperimental-new-pass-manager -Wno-reserved-id-macro -Wno-unused-command-line-argument -fcolor-diagnostics -Wno-sign-compare -Wno-defaulted-function-deleted -Wno-inconsistent-missing-override -Wno-c99-designator -ftrivial-auto-var-init=zero -enable-trivial-auto-var-init-zero-knowing-it-will-be-removed-from-clang -ffunction-sections -fdata-sections -fno-short-enums -funwind-tables -fstack-protector-strong -Wa,--noexecstack -D_FORTIFY_SOURCE=2 -Wstrict-aliasing=2 -Werror=return-type -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -Werror=format-security -nostdlibinc -msoft-float -march=armv8-a -mfloat-abi=softfp -mfpu=neon-fp-armv8 -mcpu=cortex-a55 -mfpu=neon-fp-armv8 -D__ARM_FEATURE_LPAE=1 -Bprebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.9/arm-linux-androideabi/bin -std=gnu99 -mthumb -Os -Wall -Werror -DDO_NOT_CHECK_MANUAL_BINDER_INTERFACES -D__ANDROID_VNDK__ -fPIC -DANDROID_STRICT -target armv7a-linux-androideabi30 -Werror=int-to-pointer-cast -Werror=pointer-to-int-cast -Werror=fortify-source -Werror=address-of-temporary -Werror=return-type -Wno-tautological-constant-compare -Wno-tautological-type-limit-compare -Wno-reorder-init-list -Wno-implicit-int-float-conversion -Wno-int-in-bool-context -Wno-sizeof-array-div -Wno-tautological-overlap-compare -Wno-deprecated-copy -Wno-range-loop-construct -Wno-misleading-indentation -Wno-zero-as-null-pointer-constant -Wno-deprecated-anon-enum-enum-conversion -Wno-deprecated-enum-enum-conversion -Wno-string-compare -Wno-enum-enum-conversion -Wno-enum-float-conversion -Wno-pessimizing-move -MD -MF /home/tech180/android/spark/out/target/product/flame/obj_arm/SHARED_LIBRARIES/libtunnel_intermediates/tunnel.d -o /home/tech180/android/spark/out/target/product/flame/obj_arm/SHARED_LIBRARIES/libtunnel_intermediates/tunnel.o hardware/knowles/athletico/sound_trigger_hal/tunnel.c"
hardware/knowles/athletico/sound_trigger_hal/tunnel.c:28:10: fatal error: 'linux/mfd/adnc/iaxxx-tunnel-intf.h' file not found
#include <linux/mfd/adnc/iaxxx-tunnel-intf.h>
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.
[ 3% 3923/102649] target thumb C: adnc_strm.primary.default_32 <= hardware/knowles/athletico/sound_trigger_hal/adnc_strm.c
FAILED: /home/tech180/android/spark/out/target/product/flame/obj_arm/SHARED_LIBRARIES/adnc_strm.primary.default_intermediates/adnc_strm.o
/bin/bash -c "PWD=/proc/self/cwd prebuilts/clang/host/linux-x86/clang-r383902b1/bin/clang -I hardware/knowles/athletico/sound_trigger_hal -I /home/tech180/android/spark/out/target/product/flame/obj_arm/SHARED_LIBRARIES/adnc_strm.primary.default_intermediates -I /home/tech180/android/spark/out/target/product/flame/gen/SHARED_LIBRARIES/adnc_strm.primary.default_intermediates -Isystem/core/liblog/include_vndk -Isystem/core/libcutils/include_vndk -Isystem/core/libprocessgroup/include -Isystem/core/libcutils/include -Iexternal/tinyalsa/include -Iexternal/tinyalsa/include -Iexternal/libcxx/include -Iexternal/libcxxabi/include -isystem /home/tech180/android/spark/out/soong/.intermediates/bionic/libc/libc.llndk/android_vendor.30_arm_armv8-a_cortex-a76_shared/gen/include -isystem bionic/libc/kernel/android/scsi -isystem bionic/libc/kernel/android/uapi -isystem bionic/libc/kernel/uapi -isystem bionic/libc/kernel/uapi/asm-arm -Iexternal/libcxxabi/include -isystem /home/tech180/android/spark/out/target/product/flame/obj/include -c -fomit-frame-pointer -DANDROID -fmessage-length=0 -W -Wall -Wno-unused -Winit-self -Wpointer-arith -no-canonical-prefixes -DNDEBUG -UDEBUG -fno-exceptions -Wno-multichar -O2 -g -fno-strict-aliasing -Werror=date-time -Werror=pragma-pack -Werror=pragma-pack-suspicious-include -fdebug-prefix-map=/proc/self/cwd= -D__compiler_offsetof=__builtin_offsetof -faddrsig -Werror=int-conversion -fexperimental-new-pass-manager -Wno-reserved-id-macro -Wno-unused-command-line-argument -fcolor-diagnostics -Wno-sign-compare -Wno-defaulted-function-deleted -Wno-inconsistent-missing-override -Wno-c99-designator -ftrivial-auto-var-init=zero -enable-trivial-auto-var-init-zero-knowing-it-will-be-removed-from-clang -ffunction-sections -fdata-sections -fno-short-enums -funwind-tables -fstack-protector-strong -Wa,--noexecstack -D_FORTIFY_SOURCE=2 -Wstrict-aliasing=2 -Werror=return-type -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -Werror=format-security -nostdlibinc -msoft-float -march=armv8-a -mfloat-abi=softfp -mfpu=neon-fp-armv8 -mcpu=cortex-a55 -mfpu=neon-fp-armv8 -D__ARM_FEATURE_LPAE=1 -Bprebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.9/arm-linux-androideabi/bin -std=gnu99 -mthumb -Os -Wall -Werror -DDO_NOT_CHECK_MANUAL_BINDER_INTERFACES -D__ANDROID_VNDK__ -fPIC -DANDROID_STRICT -target armv7a-linux-androideabi30 -Werror=int-to-pointer-cast -Werror=pointer-to-int-cast -Werror=fortify-source -Werror=address-of-temporary -Werror=return-type -Wno-tautological-constant-compare -Wno-tautological-type-limit-compare -Wno-reorder-init-list -Wno-implicit-int-float-conversion -Wno-int-in-bool-context -Wno-sizeof-array-div -Wno-tautological-overlap-compare -Wno-deprecated-copy -Wno-range-loop-construct -Wno-misleading-indentation -Wno-zero-as-null-pointer-constant -Wno-deprecated-anon-enum-enum-conversion -Wno-deprecated-enum-enum-conversion -Wno-string-compare -Wno-enum-enum-conversion -Wno-enum-float-conversion -Wno-pessimizing-move -MD -MF /home/tech180/android/spark/out/target/product/flame/obj_arm/SHARED_LIBRARIES/adnc_strm.primary.default_intermediates/adnc_strm.d -o /home/tech180/android/spark/out/target/product/flame/obj_arm/SHARED_LIBRARIES/adnc_strm.primary.default_intermediates/adnc_strm.o hardware/knowles/athletico/sound_trigger_hal/adnc_strm.c"
hardware/knowles/athletico/sound_trigger_hal/adnc_strm.c:30:10: fatal error: 'linux/mfd/adnc/iaxxx-system-identifiers.h' file not found
#include <linux/mfd/adnc/iaxxx-system-identifiers.h>
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.
[ 3% 3924/102649] //system/core/base:libbase clang++ strings.cpp
[ 3% 3925/102649] //external/flac/libFLAC:libFLAC clang bitwriter.c [apex29]
[ 3% 3926/102649] //external/libcxx:libc++_static clang++ src/future.cpp
[ 3% 3927/102649] //external/flac/libFLAC:libFLAC clang bitreader.c [apex29]
[ 3% 3928/102649] target thumb C++: gralloc.default_32 <= hardware/libhardware/modules/gralloc/gralloc.cpp
[ 3% 3929/102649] //bionic/libc:libc.llndk versioner preprocess include
warning: attempted to generate guard with empty availability: obsoleted = 21
warning: attempted to generate guard with empty availability: obsoleted = 23
[ 3% 3930/102649] build /home/tech180/android/spark/out/target/product/flame/dtb.img
FAILED: /home/tech180/android/spark/out/target/product/flame/dtb.img
/bin/bash -c "(echo -e \"\\033[32m\"\"Building DTBs\"\"\\033[0m\" ) && (PATH=/home/tech180/android/spark/prebuilts/jdk/jdk11/linux-x86/bin:/home/tech180/android/spark/prebuilts/jdk/jdk11/linux-x86/bin:/home/tech180/android/spark/out/soong/host/linux-x86/bin:/home/tech180/android/spark/out/host/linux-x86/bin:/home/tech180/android/spark/prebuilts/gcc/linux-x86/aarch64/aarch64-linux-android-4.9/bin:/home/tech180/android/spark/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.9/bin:/home/tech180/android/spark/development/scripts:/home/tech180/android/spark/prebuilts/devtools/tools:/home/tech180/android/spark/external/selinux/prebuilts/bin:/home/tech180/android/spark/prebuilts/misc/linux-x86/dtc:/home/tech180/android/spark/prebuilts/misc/linux-x86/libufdt:/home/tech180/android/spark/prebuilts/clang/host/linux-x86/llvm-binutils-stable:/home/tech180/android/spark/prebuilts/android-emulator/linux-x86_64:/home/tech180/android/spark/prebuilts/asuite/acloud/linux-x86:/home/tech180/android/spark/prebuilts/asuite/aidegen/linux-x86:/home/tech180/android/spark/prebuilts/asuite/atest/linux-x86:/home/tech180/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/bin:/home/tech180/.dotnet/tools:/usr/lib/jvm/default/bin:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl:/var/lib/snapd/snap/bin:\$PATH PATH=/home/tech180/android/spark/prebuilts/clang/host/linux-x86/clang-r383902b1/bin:\$PATH LD_LIBRARY_PATH=/home/tech180/android/spark/prebuilts/clang/host/linux-x86/clang-r383902b1/lib64:\$LD_LIBRARY_PATH PATH=//bin:\$PATH prebuilts/build-tools/linux-x86/bin/make -j16 CFLAGS_MODULE=\"-fno-pic\" DTC=/home/tech180/android/spark/prebuilts/tools-lineage/linux-x86/dtc/dtc MKDTIMG=/home/tech180/android/spark/prebuilts/misc/linux-x86/libufdt/mkdtimg -C kernel/google/coral O=/home/tech180/android/spark/out/target/product/flame/dtbs ARCH=arm64 CROSS_COMPILE=\"aarch64-linux-android-\" CROSS_COMPILE_ARM32=\"arm-linux-androideabi-\" CLANG_TRIPLE=aarch64-linux-gnu- CC=\" /home/tech180/android/spark/prebuilts/clang/host/linux-x86/clang-r383902b1/bin/clang\" KERNEL_THINLTO_CACHE_PATH=\"/home/tech180/android/spark//home/tech180/android/spark/out/target/product/flame/obj/KERNEL_THINLTO-CACHE\" floral_defconfig ) && (PATH=/home/tech180/android/spark/prebuilts/jdk/jdk11/linux-x86/bin:/home/tech180/android/spark/prebuilts/jdk/jdk11/linux-x86/bin:/home/tech180/android/spark/out/soong/host/linux-x86/bin:/home/tech180/android/spark/out/host/linux-x86/bin:/home/tech180/android/spark/prebuilts/gcc/linux-x86/aarch64/aarch64-linux-android-4.9/bin:/home/tech180/android/spark/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.9/bin:/home/tech180/android/spark/development/scripts:/home/tech180/android/spark/prebuilts/devtools/tools:/home/tech180/android/spark/external/selinux/prebuilts/bin:/home/tech180/android/spark/prebuilts/misc/linux-x86/dtc:/home/tech180/android/spark/prebuilts/misc/linux-x86/libufdt:/home/tech180/android/spark/prebuilts/clang/host/linux-x86/llvm-binutils-stable:/home/tech180/android/spark/prebuilts/android-emulator/linux-x86_64:/home/tech180/android/spark/prebuilts/asuite/acloud/linux-x86:/home/tech180/android/spark/prebuilts/asuite/aidegen/linux-x86:/home/tech180/android/spark/prebuilts/asuite/atest/linux-x86:/home/tech180/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/bin:/home/tech180/.dotnet/tools:/usr/lib/jvm/default/bin:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl:/var/lib/snapd/snap/bin:\$PATH PATH=/home/tech180/android/spark/prebuilts/clang/host/linux-x86/clang-r383902b1/bin:\$PATH LD_LIBRARY_PATH=/home/tech180/android/spark/prebuilts/clang/host/linux-x86/clang-r383902b1/lib64:\$LD_LIBRARY_PATH PATH=//bin:\$PATH prebuilts/build-tools/linux-x86/bin/make -j16 CFLAGS_MODULE=\"-fno-pic\" DTC=/home/tech180/android/spark/prebuilts/tools-lineage/linux-x86/dtc/dtc MKDTIMG=/home/tech180/android/spark/prebuilts/misc/linux-x86/libufdt/mkdtimg -C kernel/google/coral O=/home/tech180/android/spark/out/target/product/flame/dtbs ARCH=arm64 CROSS_COMPILE=\"aarch64-linux-android-\" CROSS_COMPILE_ARM32=\"arm-linux-androideabi-\" CLANG_TRIPLE=aarch64-linux-gnu- CC=\" /home/tech180/android/spark/prebuilts/clang/host/linux-x86/clang-r383902b1/bin/clang\" KERNEL_THINLTO_CACHE_PATH=\"/home/tech180/android/spark//home/tech180/android/spark/out/target/product/flame/obj/KERNEL_THINLTO-CACHE\" dtbs ) && (cat \$(find /home/tech180/android/spark/out/target/product/flame/dtbs/arch/arm64/boot/dts/** -type f -name \"*.dtb\" | sort) > /home/tech180/android/spark/out/target/product/flame/dtb.img )"
Building DTBs
make: Entering directory '/home/tech180/android/spark/kernel/google/coral'
make[1]: Entering directory '/home/tech180/android/spark/out/target/product/flame/dtbs'
GEN ./Makefile
#
# configuration written to .config
#
make[1]: Leaving directory '/home/tech180/android/spark/out/target/product/flame/dtbs'
make: Leaving directory '/home/tech180/android/spark/kernel/google/coral'
make: Entering directory '/home/tech180/android/spark/kernel/google/coral'
make[1]: Entering directory '/home/tech180/android/spark/out/target/product/flame/dtbs'
GEN ./Makefile
scripts/kconfig/conf --silentoldconfig Kconfig
CHK include/config/kernel.release
GEN ./Makefile
CHK include/generated/uapi/linux/version.h
CHK scripts/mod/devicetable-offsets.h
Using /home/tech180/android/spark/kernel/google/coral as source for kernel
CHK include/generated/utsrelease.h
CHK include/generated/timeconst.h
CHK include/generated/bounds.h
CHK include/generated/asm-offsets.h
CALL /home/tech180/android/spark/kernel/google/coral/scripts/checksyscalls.sh
DTC arch/arm64/boot/dts/google/qcom-base/sm8150-v2.dtb
DTC arch/arm64/boot/dts/google/qcom-base/sm8150.dtb
/bin/sh: line 1: /home/tech180/android/spark/prebuilts/tools-lineage/linux-x86/dtc/dtc: No such file or directory
/bin/sh: line 1: /home/tech180/android/spark/prebuilts/tools-lineage/linux-x86/dtc/dtc: No such file or directory
make[3]: *** [scripts/Makefile.lib:325: arch/arm64/boot/dts/google/qcom-base/sm8150-v2.dtb] Error 127
make[3]: *** Waiting for unfinished jobs....
make[3]: *** [scripts/Makefile.lib:325: arch/arm64/boot/dts/google/qcom-base/sm8150.dtb] Error 127
make[2]: *** [/home/tech180/android/spark/kernel/google/coral/scripts/Makefile.build:678: arch/arm64/boot/dts/google] Error 2
make[1]: *** [arch/arm64/Makefile:236: dtbs] Error 2
make[1]: Leaving directory '/home/tech180/android/spark/out/target/product/flame/dtbs'
make: *** [Makefile:146: sub-make] Error 2
make: Leaving directory '/home/tech180/android/spark/kernel/google/coral'
[ 3% 3931/102649] //external/libcxx:libc++_static clang++ src/iostream.cpp
[ 3% 3932/102649] build /home/tech180/android/spark/out/target/product/flame/dtbo/arch/arm64/boot/dtbo.img
FAILED: /home/tech180/android/spark/out/target/product/flame/dtbo/arch/arm64/boot/dtbo.img
/bin/bash -c "(echo -e \"\\033[32m\"\"Building DTBO.img\"\"\\033[0m\" ) && (PATH=/home/tech180/android/spark/prebuilts/jdk/jdk11/linux-x86/bin:/home/tech180/android/spark/prebuilts/jdk/jdk11/linux-x86/bin:/home/tech180/android/spark/out/soong/host/linux-x86/bin:/home/tech180/android/spark/out/host/linux-x86/bin:/home/tech180/android/spark/prebuilts/gcc/linux-x86/aarch64/aarch64-linux-android-4.9/bin:/home/tech180/android/spark/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.9/bin:/home/tech180/android/spark/development/scripts:/home/tech180/android/spark/prebuilts/devtools/tools:/home/tech180/android/spark/external/selinux/prebuilts/bin:/home/tech180/android/spark/prebuilts/misc/linux-x86/dtc:/home/tech180/android/spark/prebuilts/misc/linux-x86/libufdt:/home/tech180/android/spark/prebuilts/clang/host/linux-x86/llvm-binutils-stable:/home/tech180/android/spark/prebuilts/android-emulator/linux-x86_64:/home/tech180/android/spark/prebuilts/asuite/acloud/linux-x86:/home/tech180/android/spark/prebuilts/asuite/aidegen/linux-x86:/home/tech180/android/spark/prebuilts/asuite/atest/linux-x86:/home/tech180/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/bin:/home/tech180/.dotnet/tools:/usr/lib/jvm/default/bin:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl:/var/lib/snapd/snap/bin:\$PATH PATH=/home/tech180/android/spark/prebuilts/clang/host/linux-x86/clang-r383902b1/bin:\$PATH LD_LIBRARY_PATH=/home/tech180/android/spark/prebuilts/clang/host/linux-x86/clang-r383902b1/lib64:\$LD_LIBRARY_PATH PATH=//bin:\$PATH prebuilts/build-tools/linux-x86/bin/make -j16 CFLAGS_MODULE=\"-fno-pic\" DTC=/home/tech180/android/spark/prebuilts/tools-lineage/linux-x86/dtc/dtc MKDTIMG=/home/tech180/android/spark/prebuilts/misc/linux-x86/libufdt/mkdtimg -C kernel/google/coral O=/home/tech180/android/spark/out/target/product/flame/dtbo ARCH=arm64 CROSS_COMPILE=\"aarch64-linux-android-\" CROSS_COMPILE_ARM32=\"arm-linux-androideabi-\" CLANG_TRIPLE=aarch64-linux-gnu- CC=\" /home/tech180/android/spark/prebuilts/clang/host/linux-x86/clang-r383902b1/bin/clang\" KERNEL_THINLTO_CACHE_PATH=\"/home/tech180/android/spark//home/tech180/android/spark/out/target/product/flame/obj/KERNEL_THINLTO-CACHE\" floral_defconfig ) && (PATH=/home/tech180/android/spark/prebuilts/jdk/jdk11/linux-x86/bin:/home/tech180/android/spark/prebuilts/jdk/jdk11/linux-x86/bin:/home/tech180/android/spark/out/soong/host/linux-x86/bin:/home/tech180/android/spark/out/host/linux-x86/bin:/home/tech180/android/spark/prebuilts/gcc/linux-x86/aarch64/aarch64-linux-android-4.9/bin:/home/tech180/android/spark/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.9/bin:/home/tech180/android/spark/development/scripts:/home/tech180/android/spark/prebuilts/devtools/tools:/home/tech180/android/spark/external/selinux/prebuilts/bin:/home/tech180/android/spark/prebuilts/misc/linux-x86/dtc:/home/tech180/android/spark/prebuilts/misc/linux-x86/libufdt:/home/tech180/android/spark/prebuilts/clang/host/linux-x86/llvm-binutils-stable:/home/tech180/android/spark/prebuilts/android-emulator/linux-x86_64:/home/tech180/android/spark/prebuilts/asuite/acloud/linux-x86:/home/tech180/android/spark/prebuilts/asuite/aidegen/linux-x86:/home/tech180/android/spark/prebuilts/asuite/atest/linux-x86:/home/tech180/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/bin:/home/tech180/.dotnet/tools:/usr/lib/jvm/default/bin:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl:/var/lib/snapd/snap/bin:\$PATH PATH=/home/tech180/android/spark/prebuilts/clang/host/linux-x86/clang-r383902b1/bin:\$PATH LD_LIBRARY_PATH=/home/tech180/android/spark/prebuilts/clang/host/linux-x86/clang-r383902b1/lib64:\$LD_LIBRARY_PATH PATH=//bin:\$PATH prebuilts/build-tools/linux-x86/bin/make -j16 CFLAGS_MODULE=\"-fno-pic\" DTC=/home/tech180/android/spark/prebuilts/tools-lineage/linux-x86/dtc/dtc MKDTIMG=/home/tech180/android/spark/prebuilts/misc/linux-x86/libufdt/mkdtimg -C kernel/google/coral O=/home/tech180/android/spark/out/target/product/flame/dtbo ARCH=arm64 CROSS_COMPILE=\"aarch64-linux-android-\" CROSS_COMPILE_ARM32=\"arm-linux-androideabi-\" CLANG_TRIPLE=aarch64-linux-gnu- CC=\" /home/tech180/android/spark/prebuilts/clang/host/linux-x86/clang-r383902b1/bin/clang\" KERNEL_THINLTO_CACHE_PATH=\"/home/tech180/android/spark//home/tech180/android/spark/out/target/product/flame/obj/KERNEL_THINLTO-CACHE\" dtbo.img )"
Building DTBO.img
make: Entering directory '/home/tech180/android/spark/kernel/google/coral'
make[1]: Entering directory '/home/tech180/android/spark/out/target/product/flame/dtbo'
GEN ./Makefile
#
# configuration written to .config
#
make[1]: Leaving directory '/home/tech180/android/spark/out/target/product/flame/dtbo'
make: Leaving directory '/home/tech180/android/spark/kernel/google/coral'
make: Entering directory '/home/tech180/android/spark/kernel/google/coral'
make[1]: Entering directory '/home/tech180/android/spark/out/target/product/flame/dtbo'
GEN ./Makefile
scripts/kconfig/conf --silentoldconfig Kconfig
CHK include/config/kernel.release
GEN ./Makefile
CHK include/generated/uapi/linux/version.h
CHK scripts/mod/devicetable-offsets.h
Using /home/tech180/android/spark/kernel/google/coral as source for kernel
CHK include/generated/utsrelease.h
CHK include/generated/timeconst.h
CHK include/generated/bounds.h
CHK include/generated/asm-offsets.h
CALL /home/tech180/android/spark/kernel/google/coral/scripts/checksyscalls.sh
DTC arch/arm64/boot/dts/google/qcom-base/sm8150-v2.dtb
DTC arch/arm64/boot/dts/google/qcom-base/sm8150.dtb
/bin/sh: line 1: /home/tech180/android/spark/prebuilts/tools-lineage/linux-x86/dtc/dtc: No such file or directory
make[3]: *** [scripts/Makefile.lib:325: arch/arm64/boot/dts/google/qcom-base/sm8150.dtb] Error 127
make[3]: *** Waiting for unfinished jobs....
/bin/sh: line 1: /home/tech180/android/spark/prebuilts/tools-lineage/linux-x86/dtc/dtc: No such file or directory
make[3]: *** [scripts/Makefile.lib:325: arch/arm64/boot/dts/google/qcom-base/sm8150-v2.dtb] Error 127
make[2]: *** [/home/tech180/android/spark/kernel/google/coral/scripts/Makefile.build:678: arch/arm64/boot/dts/google] Error 2
make[1]: *** [arch/arm64/Makefile:236: dtbs] Error 2
make[1]: Leaving directory '/home/tech180/android/spark/out/target/product/flame/dtbo'
make: *** [Makefile:146: sub-make] Error 2
make: Leaving directory '/home/tech180/android/spark/kernel/google/coral'
[ 3% 3933/102649] //external/libcxx:libc++_static clang++ src/debug.cpp
[ 3% 3934/102649] //system/memory/libmeminfo/libdmabufinfo/tools:dmabuf_dump clang++ dmabuf_dump.cpp
[ 3% 3935/102649] //external/libcxx:libc++_static clang++ src/algorithm.cpp
[ 3% 3936/102649] //external/libcxx:libc++_static clang++ src/ios.cpp
[ 3% 3937/102649] //external/libcxx:libc++_static clang++ src/locale.cpp
[ 3% 3938/102649] //external/fmtlib:fmtlib clang++ src/format.cc
[ 3% 3939/102649] //external/fmtlib:fmtlib clang++ src/format.cc [apex29]
00:40:48 ninja failed with: exit status 1
ninja: build stopped: subcommand failed.
[0;31m#### failed to build some targets (04:23 (mm:ss)) ####[00m
Any help would be greatly appreciated!

Hey did you get an answer? to this?
I am having the same error

Related

Issues building Lineage 15.0

Soooo, this is what happens when I try to build Lineage 15.0. It fails to build the kernel, can someone please help.
[email protected]:~/android/lineage15$ mka
make: Entering directory '/home/flagers/android/lineage15'
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=8.0.0
TARGET_PRODUCT=lineage_owens
TARGET_BUILD_VARIANT=userdebug
TARGET_BUILD_TYPE=release
TARGET_ARCH=arm
TARGET_ARCH_VARIANT=armv7-a-neon
TARGET_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=OPR3.170623.013
OUT_DIR=/home/flagers/android/lineage15/out
============================================
ninja: no work to do.
ninja: no work to do.
Environment variable BUILD_NUMBER was modified (b391b210c6 => eb6491827b), regenerating...
[9/1046] including ./cts/Android.mk ...
cts/apps/CtsVerifier/Android.mk:72: warning: FindEmulator: find: `cts/apps/CtsVerifier/src/com/android/cts/verifier/backup': No such file or directory
build/core/java_common.mk:88: warning: FindEmulator: cd: cts/hostsidetests/appsecurity/test-apps/WriteExternalStorageApp/cts/hostsidetests/appsecurity/test-apps/WriteExternalStorageApp/res: No such file or directory
build/core/java_common.mk:88: warning: FindEmulator: cd: cts/hostsidetests/backup/assets: No such file or directory
cts/hostsidetests/os/test-apps/StaticSharedNativeLibProvider/Android.mk:23: warning: FindEmulator: find: `cts/hostsidetests/os/test-apps/StaticSharedNativeLibProvider/src': No such file or directory
cts/hostsidetests/os/test-apps/StaticSharedNativeLibProvider1/Android.mk:23: warning: FindEmulator: find: `cts/hostsidetests/os/test-apps/StaticSharedNativeLibProvider1/src': No such file or directory
cts/tests/tests/contactsproviderwipe/Android.mk:33: warning: FindEmulator: find: `cts/tests/tests/contactsproviderwipe/common/src': No such file or directory
cts/tests/tests/telecom3/Android.mk:37: warning: FindEmulator: find: `cts/tests/tests/telecom/src/android/telecom/cts/MockDialerActivity.java': No such file or directory
[338/1046] including ./external/toybox/Android.mk ...
awk: line 1: syntax error at or near ,
[370/1046] including ./frameworks/av/media/libaaudio/Android.mk ...
frameworks/av/media/libaaudio/examples/input_monitor/static/Android.mk: warning: input_monitor: unusual tags examples
frameworks/av/media/libaaudio/examples/write_sine/static/Android.mk: warning: write_sine: unusual tags examples
[404/1046] including ./frameworks/base/Android.mk ...
./frameworks/base/Android.mk:866: warning: FindEmulator: find: `frameworks/opt/telephony/src/java/android/provider': No such file or directory
./frameworks/base/Android.mk:875: warning: FindEmulator: find: `frameworks/opt/telephony/src/java/android/provider': No such file or directory
./frameworks/base/Android.mk:880: warning: FindEmulator: find: `frameworks/opt/telephony/src/java/android/provider': No such file or directory
./frameworks/base/Android.mk:885: warning: FindEmulator: find: `frameworks/opt/telephony/src/java/android/provider': No such file or directory
[442/1046] including ./frameworks/opt/hardware/Android.mk ...
./frameworks/opt/hardware/Android.mk:21: warning: FindEmulator: find: `hardware/cyanogen/cmhw': No such file or directory
[576/1046] including ./hardware/qcom/wlan-caf/Android.mk ...
build/core/binary.mk:39: warning: libwifi-hal-qcom uses kernel headers, but does not depend on them!
build/core/binary.mk:39: warning: libwifi-hal-qcom uses kernel headers, but does not depend on them!
[581/1046] including ./lineage-sdk/Android.mk ...
./lineage-sdk/Android.mk:152: warning: FindEmulator: find: `lineage-sdk/dummy': No such file or directory
build/core/droiddoc.mk:132: warning: FindEmulator: find: `build/tools/droiddoc/templates-sdk': No such file or directory
[752/1046] including ./system/sepolicy/Android.mk ...
./system/sepolicy/Android.mk:95: warning: BOARD_SEPOLICY_VERS not specified, assuming current platform version
[1046/1046] including ./vendor/qcom/opensource/dataservices/Android.mk ...
build/core/Makefile:54: warning: Duplicate header copy: /home/flagers/android/lineage15/out/target/product/owens/obj/include/cld80211-lib/cld80211_lib.h
build/core/Makefile:54: warning: Defined in: hardware/qcom/wlan-caf/cld80211-lib/Android.mk hardware/qcom/wlan-caf/cld80211-lib/Android.mk
No private recovery resources for TARGET_DEVICE owens
platform_testing/build/tasks/tests/instrumentation_metric_test_list.mk: warning: continuous_instrumentation_metric_tests: Unknown installed file for module perf-setup.sh
platform_testing/build/tasks/tests/instrumentation_test_list.mk: warning: continuous_instrumentation_tests: Unknown installed file for module RecyclerViewTests
platform_testing/build/tasks/tests/instrumentation_test_list.mk: warning: continuous_instrumentation_tests: Unknown installed file for module SettingsFunctionalTests
platform_testing/build/tasks/tests/instrumentation_test_list.mk: warning: continuous_instrumentation_tests: Unknown installed file for module LauncherFunctionalTests
platform_testing/build/tasks/tests/native_metric_test_list.mk: warning: continuous_native_metric_tests: Unknown installed file for module perf-setup.sh
test/vts/tools/build/tasks/vts_package.mk:216: warning: FindEmulator: cd: vendor/google_vts/testcases: No such file or directory
test/vts/tools/build/tasks/vts_package.mk:216: warning: FindEmulator: cd: vendor/google_vts/testcases: No such file or directory
test/vts/tools/build/tasks/vts_package.mk:216: warning: FindEmulator: cd: vendor/google_vts/testcases: No such file or directory
./test/vts/utils/python/archive/Android.mk:28: warning: overriding commands for target `default'
./test/vts/runners/host/tcp_server/Android.mk:19: warning: ignoring old commands for target `default'
./test/vts/utils/python/coverage/Android.mk:28: warning: overriding commands for target `default'
./test/vts/utils/python/archive/Android.mk:28: warning: ignoring old commands for target `default'
[ 0% 16/64099] target thumb C: libtar <= external/libtar/lib/handle.c
external/libtar/lib/handle.c:35:19: warning: unused parameter 'mode' [-Wunused-parameter]
int oflags, int mode, int options)
^
1 warning generated.
[ 0% 29/64099] target thumb C++: libi...motorola/qcom318-32/init/init_moto.cpp
FAILED: /home/flagers/android/lineage15/out/target/product/owens/obj/STATIC_LIBRARIES/libinit_moto_intermediates/init_moto.o
/bin/bash -c "PWD=/proc/self/cwd prebuilts/clang/host/linux-x86/clang-3859424/bin/clang++ -I device/motorola/qcom318-32/include -I system/core/init -I device/motorola/qcom318-32/init -I /home/flagers/android/lineage15/out/target/product/owens/obj/STATIC_LIBRARIES/libinit_moto_intermediates -I /home/flagers/android/lineage15/out/target/product/owens/gen/STATIC_LIBRARIES/libinit_moto_intermediates -I libnativehelper/include/nativehelper \$(cat /home/flagers/android/lineage15/out/target/product/owens/obj/STATIC_LIBRARIES/libinit_moto_intermediates/import_includes) -I system/core/include -I system/media/audio/include -I hardware/libhardware/include -I hardware/libhardware_legacy/include -I hardware/ril/include -I libnativehelper/include -I frameworks/native/include -I frameworks/native/opengl/include -isystem frameworks/av/include -isystem /home/flagers/android/lineage15/out/target/product/owens/obj/include -isystem bionic/libc/arch-arm/include -isystem bionic/libc/include -isystem bionic/libc/kernel/uapi -isystem bionic/libc/kernel/uapi/asm-arm -isystem bionic/libc/kernel/android/uapi -c -fno-exceptions -Wno-multichar -ffunction-sections -fdata-sections -funwind-tables -fstack-protector-strong -Wa,--noexecstack -Werror=format-security -D_FORTIFY_SOURCE=2 -fno-short-enums -no-canonical-prefixes -DNDEBUG -g -Wstrict-aliasing=2 -DANDROID -fmessage-length=0 -W -Wall -Wno-unused -Winit-self -Wpointer-arith -DNDEBUG -UDEBUG -fdebug-prefix-map=/proc/self/cwd= -D__compiler_offsetof=__builtin_offsetof -Werror=int-conversion -Wno-reserved-id-macro -Wno-format-pedantic -Wno-unused-command-line-argument -fcolor-diagnostics -Wno-expansion-to-defined -fdebug-prefix-map=\$PWD/= -Werror=return-type -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -Werror=date-time -nostdlibinc -msoft-float -mfloat-abi=softfp -mfpu=neon -mcpu=cortex-a7 -D__ARM_FEATURE_LPAE=1 -target arm-linux-androideabi -Bprebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.9/arm-linux-androideabi/bin -Wsign-promo -Wno-inconsistent-missing-override -Wno-null-dereference -fvisibility-inlines-hidden -std=gnu++14 -mthumb -Os -fomit-frame-pointer -fno-strict-aliasing -fno-rtti -fPIC -D_USING_LIBCXX -DANDROID_STRICT -Wall -DANDROID_TARGET="msm8937" -Werror=int-to-pointer-cast -Werror=pointer-to-int-cast -Werror=address-of-temporary -Werror=return-type -MD -MF /home/flagers/android/lineage15/out/target/product/owens/obj/STATIC_LIBRARIES/libinit_moto_intermediates/init_moto.d -o /home/flagers/android/lineage15/out/target/product/owens/obj/STATIC_LIBRARIES/libinit_moto_intermediates/init_moto.o device/motorola/qcom318-32/init/init_moto.cpp"
In file included from device/motorola/qcom318-32/init/init_moto.cpp:34:
system/core/init/log.h:20:10: fatal error: 'android-base/logging.h' file not found
#include <android-base/logging.h>
^~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.
[ 0% 34/64099] Building Kernel Config
make: Entering directory '/home/flagers/android/lineage15/kernel/motorola/msm8937'
make[1]: Entering directory '/home/flagers/android/lineage15/out/target/product/owens/obj/KERNEL_OBJ'
GEN ./Makefile
#
# configuration written to .config
#
make[1]: Leaving directory '/home/flagers/android/lineage15/out/target/product/owens/obj/KERNEL_OBJ'
make: Leaving directory '/home/flagers/android/lineage15/kernel/motorola/msm8937'
make: Entering directory '/home/flagers/android/lineage15/kernel/motorola/msm8937'
make[1]: Entering directory '/home/flagers/android/lineage15/out/target/product/owens/obj/KERNEL_OBJ'
GEN ./Makefile
scripts/kconfig/conf --savedefconfig=defconfig Kconfig
make[1]: Leaving directory '/home/flagers/android/lineage15/out/target/product/owens/obj/KERNEL_OBJ'
make: Leaving directory '/home/flagers/android/lineage15/kernel/motorola/msm8937'
ninja: build stopped: subcommand failed.
20:26:02 ninja failed with: exit status 1
build/core/main.mk:21: recipe for target 'run_soong_ui' failed
make: *** [run_soong_ui] Error 1
make: Leaving directory '/home/flagers/android/lineage15'
#### make failed to build some targets (08:34 (mm:ss)) ####
FlagersXDA said:
Soooo, this is what happens when I try to build Lineage 15.0. It fails to build the kernel, can someone please help.
[ 0% 29/64099] target thumb C++: libi...motorola/qcom318-32/init/init_moto.cpp
FAILED: /home/flagers/android/lineage15/out/target/product/owens/obj/STATIC_LIBRARIES/libinit_moto_intermediates/init_moto.o
/bin/bash -c "PWD=/proc/self/cwd prebuilts/clang/host/linux-x86/clang-3859424/bin/clang++ -I device/motorola/qcom318-32/include -I system/core/init -I device/motorola/qcom318-32/init -I /home/flagers/android/lineage15/out/target/product/owens/obj/STATIC_LIBRARIES/libinit_moto_intermediates -I /home/flagers/android/lineage15/out/target/product/owens/gen/STATIC_LIBRARIES/libinit_moto_intermediates -I libnativehelper/include/nativehelper \$(cat /home/flagers/android/lineage15/out/target/product/owens/obj/STATIC_LIBRARIES/libinit_moto_intermediates/import_includes) -I system/core/include -I system/media/audio/include -I hardware/libhardware/include -I hardware/libhardware_legacy/include -I hardware/ril/include -I libnativehelper/include -I frameworks/native/include -I frameworks/native/opengl/include -isystem frameworks/av/include -isystem /home/flagers/android/lineage15/out/target/product/owens/obj/include -isystem bionic/libc/arch-arm/include -isystem bionic/libc/include -isystem bionic/libc/kernel/uapi -isystem bionic/libc/kernel/uapi/asm-arm -isystem bionic/libc/kernel/android/uapi -c -fno-exceptions -Wno-multichar -ffunction-sections -fdata-sections -funwind-tables -fstack-protector-strong -Wa,--noexecstack -Werror=format-security -D_FORTIFY_SOURCE=2 -fno-short-enums -no-canonical-prefixes -DNDEBUG -g -Wstrict-aliasing=2 -DANDROID -fmessage-length=0 -W -Wall -Wno-unused -Winit-self -Wpointer-arith -DNDEBUG -UDEBUG -fdebug-prefix-map=/proc/self/cwd= -D__compiler_offsetof=__builtin_offsetof -Werror=int-conversion -Wno-reserved-id-macro -Wno-format-pedantic -Wno-unused-command-line-argument -fcolor-diagnostics -Wno-expansion-to-defined -fdebug-prefix-map=\$PWD/= -Werror=return-type -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -Werror=date-time -nostdlibinc -msoft-float -mfloat-abi=softfp -mfpu=neon -mcpu=cortex-a7 -D__ARM_FEATURE_LPAE=1 -target arm-linux-androideabi -Bprebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.9/arm-linux-androideabi/bin -Wsign-promo -Wno-inconsistent-missing-override -Wno-null-dereference -fvisibility-inlines-hidden -std=gnu++14 -mthumb -Os -fomit-frame-pointer -fno-strict-aliasing -fno-rtti -fPIC -D_USING_LIBCXX -DANDROID_STRICT -Wall -DANDROID_TARGET="msm8937" -Werror=int-to-pointer-cast -Werror=pointer-to-int-cast -Werror=address-of-temporary -Werror=return-type -MD -MF /home/flagers/android/lineage15/out/target/product/owens/obj/STATIC_LIBRARIES/libinit_moto_intermediates/init_moto.d -o /home/flagers/android/lineage15/out/target/product/owens/obj/STATIC_LIBRARIES/libinit_moto_intermediates/init_moto.o device/motorola/qcom318-32/init/init_moto.cpp"
In file included from device/motorola/qcom318-32/init/init_moto.cpp:34:
system/core/init/log.h:20:10: fatal error: 'android-base/logging.h' file not found
#include <android-base/logging.h>
^~~~~~~~~~~~~~~~~~~~~~~~
Click to expand...
Click to collapse
the only reason it says failed to build the kernel is because another error stopped the build and the kernel was being built on another thread and also failed as a result of the error. I quoted the part with the actual error (click on it to see it). It is from the init.moto.cpp looking for a file android-base/logging.h that is not there. Probably due to the changes from N to O.
Code:
#include "log.h"
#include "util.h"
Remove these lines from init_moto.cpp
Also.. this was a simple ass issue to fix. I don't mean to be rude, but please take the time to take a closer look at the logs when it fails. It should have "FAILED" where the problem really is most of the time. Then you can take a look at one of the lineage 15 repositories from another phone and see what the differences are to help you fix it if it isn't obvious. (And in this case, this one was obvious)
Even if you can get it to build that doesn't mean things are going to work 100% either (It probably won't even boot without the required changes being made). I'm sure there are a lot of changes that need to be made, like compiling a lot of the drivers from caf source and stuff like that; like those that were mentioned elsewhere.
Next time I'll read the logs more thoroughly rather then skimming them.
FlagersXDA said:
Next time I'll read the logs more thoroughly rather then skimming them.
Click to expand...
Click to collapse
All good. The beginning of wisdom is knowing what you don't know. And thanks for your efforts.
FlagersXDA said:
Next time I'll read the logs more thoroughly rather then skimming them.
Click to expand...
Click to collapse
Please stop posting about building this in another ROM thread that it has nothing to do with. It is against the rules, and rude to the OP of the thread. You have a thread here now for your topic, please keep your questions for this topic here. You might want to actually read the XDA rules. One last thing. You cannot build Nougat or Oreo with 4gb of ram. It's damn near impossible without at least 8gb and at least the same size swap space. Make sure you crank up the swappiness. There are a few tricks you can do to help, just Google your problem and you'll find some tips on that.
Edit: read this: http://www.2net.co.uk/blog/jack-server.html
Sent from my Moto E (4) Plus using XDA Labs
Goose03 said:
Please stop posting about building this in another ROM thread that it has nothing to do with. It is against the rules, and rude to the OP of the thread. You have a thread here now for your topic, please keep your questions for this topic here. You might want to actually read the XDA rules. One last thing. You cannot build Nougat or Oreo with 4gb of ram. It's damn near impossible without at least 8gb and at least the same size swap space. Make sure you crank up the swappiness. There are a few tricks you can do to help, just Google your problem and you'll find some tips on that.
Edit: read this: http://www.2net.co.uk/blog/jack-server.html
Sent from my Moto E (4) Plus using XDA Labs
Click to expand...
Click to collapse
lmao this didn't age well

Building AOSP Extended

I'm trying to build AOSP Extended for Sanders but I'm facing problem during compiling stuff. I used:
Device repo: https://github.com/AospExtended-Devices/android_device_motorola_sanders
Kernel source: https://github.com/Jorg3Lucas/android_kernel_motorola_msm8953
Vendor repo: https://github.com/AospExtended-Devices/android_vendor_motorola_sanders
Problem:
Code:
[ 36% 29755/82171] build /home/qkiz/android/out/target/product/sanders/obj/ETC/sepolicy.recovery_intermediates/sepolicy
FAILED: /home/qkiz/android/out/target/product/sanders/obj/ETC/sepolicy.recovery_intermediates/sepolicy
/bin/bash -c "(ASAN_OPTIONS=detect_leaks=0 /home/qkiz/android/out/host/linux-x86/bin/checkpolicy -M -c 30 -o /home/qkiz/android/out/target/product/sanders/obj/ETC/sepolicy.recovery_intermediates/sepolicy.tmp /home/qkiz/android/out/target/product/sanders/obj/ETC/sepolicy.recovery_intermediates/sepolicy.recovery.conf ) && (/home/qkiz/android/out/host/linux-x86/bin/sepolicy-analyze /home/qkiz/android/out/target/product/sanders/obj/ETC/sepolicy.recovery_intermediates/sepolicy.tmp permissive > /home/qkiz/android/out/target/product/sanders/obj/ETC/sepolicy.recovery_intermediates/sepolicy.permissivedomains ) && (if [ \"userdebug\" = \"user\" -a -s /home/qkiz/android/out/target/product/sanders/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 /home/qkiz/android/out/target/product/sanders/obj/ETC/sepolicy.recovery_intermediates/sepolicy.permissivedomains 1>&2; exit 1; fi ) && (mv /home/qkiz/android/out/target/product/sanders/obj/ETC/sepolicy.recovery_intermediates/sepolicy.tmp /home/qkiz/android/out/target/product/sanders/obj/ETC/sepolicy.recovery_intermediates/sepolicy )"
device/motorola/sanders/sepolicy/vendor/file.te:36:ERROR 'Duplicate declaration of type' at token ';' on line 78529:
# sysfs
type sysfs_adsp, fs_type, sysfs_type;
checkpolicy: error(s) encountered while parsing configuration
36% 29757/82171] build /home/qkiz/android/out/target/product/sanders/obj/ETC/sepolicy_neverallows_intermediates/plat_pub_policy.cil /home/qkiz/android/out/host/linux-x86/bin/checkpolicy: loading policy configuration from /home/qkiz/android/out/target/product/sanders/obj/ETC/sepolicy_neverallows_intermediates/plat_pub_policy.conf /home/qkiz/android/out/host/linux-x86/bin/checkpolicy: policy configuration loaded /home/qkiz/android/out/host/linux-x86/bin/checkpolicy: writing CIL to /home/qkiz/android/out/target/product/sanders/obj/ETC/sepolicy_neverallows_intermediates/plat_pub_policy.cil.tmp [ 36% 29758/82171] //frameworks/base/libs/services:libservices clang++ aidl/frameworks/base/core/java/com/android/internal/os/IDropBoxManagerService.cpp [ 36% 29759/82171] //frameworks/base/libs/services:libservices clang++ src/os/StatsLogEventWrapper.cpp [ 36% 29760/82171] //frameworks/base/libs/services:libservices clang++ src/os/StatsDimensionsValue.cpp [ 36% 29761/82171] //frameworks/base/libs/services:libservices clang++ src/os/DropBoxManager.cpp [ 36% 29762/82171] //frameworks/native/services/utils:libserviceutils clang++ PriorityDumper.cpp ninja: build stopped: subcommand failed. build/make/core/main.mk:21: recipe for target 'run_soong_ui' failed [0;31m#### failed to build some targets (44:39 (mm:ss)) ####[00m
Anyone facing similar problem. Or maybe I used wrong repos to build image.
I fixed three errors and successfully build AOSP Extended with April security patch.
Sent from my Motorola Moto G (5S) Plus using XDA Labs
QkiZMR said:
I fixed three errors and successfully build AOSP Extended with April security patch.
Sent from my Motorola Moto G (5S) Plus using XDA Labs
Click to expand...
Click to collapse
How did you fixed it?
What did you do?
I commented out mentioned in error lines in policy file.

syberia project rom compiling error

who can help me iam building syberia project iget this error
Syncing work tree: 47% (307/653)error: in `sync -l`: revision refs/heads/9.0 in platform_external_skqp not found[/
any solution or what is the problemme ?
AmirHRC said:
who can help me iam building syberia project iget this error
Syncing work tree: 47% (307/653)error: in `sync -l`: revision refs/heads/9.0 in platform_external_skqp not found[/
any solution or what is the problemme ?
Click to expand...
Click to collapse
Just re sync again. It stops when that flag comes up. It will pick up sync again and finish. A lot of Pie source manifests are like that. I have run into that a few times.
Rondeau79 said:
Just re sync again. It stops when that flag comes up. It will pick up sync again and finish. A lot of Pie source manifests are like that. I have run into that a few times.
Click to expand...
Click to collapse
now can you help me with this sir iam building posp rom
iget this while building
AmirHRC said:
now can you help me with this sir iam building posp rom
iget this while building
Click to expand...
Click to collapse
Not quite sure what you are trying to do with that. Looks like the compiler is having trouble compiling an apk. Try make or brunch command again and see if it comes up with the same flag. It looks like the build was just ended without a failed flag. Typically you would see an error flag and the build fails while compiling.
Rondeau79 said:
Not quite sure what you are trying to do with that. Looks like the compiler is having trouble compiling an apk. Try make or brunch command again and see if it comes up with the same flag. It looks like the build was just ended without a failed flag. Typically you would see an error flag and the build fails while compiling.
Click to expand...
Click to collapse
I tried to make brunch command again but the same error
what i can do i read that maybe i need to make changes to the build.gardle file but the same idid som changes without success
Try deleting the file that is causing the issue and make/brunch again. It's a hack move but I don't know what's going on with your compiler. What device and kernel source are you using?
Rondeau79 said:
Try deleting the file that is causing the issue and make/brunch again. It's a hack move but I don't know what's going on with your compiler. What device and kernel source are you using?
Click to expand...
Click to collapse
iam using lineage os kernel source
and dirtyunicorns device source
Google is your friend now. Just do some research. Are you compiling Syberia still?
Rondeau79 said:
Google is your friend now. Just do some research. Are you compiling Syberia still?
Click to expand...
Click to collapse
no sir iam compiling posp rom
potato open source project
Rondeau79 said:
Google is your friend now. Just do some research. Are you compiling Syberia still?
Click to expand...
Click to collapse
I will delete some file maybe it will success i did a lot of research but still nothing
Rondeau79 said:
Google is your friend now. Just do some research. Are you compiling Syberia still?
Click to expand...
Click to collapse
i finished the build successful but when iflashed the rom the phone stay at google logo what ishould do
Rondeau79 said:
Google is your friend now. Just do some research. Are you compiling Syberia still?
Click to expand...
Click to collapse
look at this text file the build was succeed but the phone stay at google logo
AmirHRC said:
look at this text file the build was succeed but the phone stay at google logo
Click to expand...
Click to collapse
You can not mix and match ROM, device repo, kernel and vendor blobs to you liking.
There are a lot of dependencies between them which need to match.
You need to look at the log on you device on your device to find out whats wrong.
But honestly I guess that task is a bit to big for you.
Elektroschmock said:
You can not mix and match ROM, device repo, kernel and vendor blobs to you liking.
There are a lot of dependencies between them which need to match.
You need to look at the log on you device on your device to find out whats wrong.
But honestly I guess that task is a bit to big for you.
Click to expand...
Click to collapse
why you can't help me
iam new with this and this is my firs try and belive me iwill build it very soon
AmirHRC said:
why you can't help me
iam new with this and this is my firs try and belive me iwill build it very soon
Click to expand...
Click to collapse
Because it takes time I don't have and I have zero interest in bringing up another ROM for shamu.
I did it for LineageOS and everybody could copy from that. Which of cause needs some understanding of the code.
Also I don't have enough disc space to sync another project.
If you were asking specific questions I might help, but up till now you asked stuff which you could google yourself or where the error message literally pointed you to the error.
--
Elektroschmock said:
Because it takes time I don't have and I have zero interest in bringing up another ROM for shamu.
I did it for LineageOS and everybody could copy from that. Which of cause needs some understanding of the code.
Also I don't have enough disc space to sync another project.
If you were asking specific questions I might help, but up till now you asked stuff which you could google yourself or where the error message literally pointed you to the error.
Click to expand...
Click to collapse
i asked why the build didn't boot up its stuck at google logo
AmirHRC said:
i asked why the build didn't boot up its stuck at google logo
Click to expand...
Click to collapse
Your question is way too vague without any logs. Also like it was said you need firmware specific device, kernel, and vendor repos which you haven't linked to which would be somewhat helpful to pinpoint some of these issues you experienced.
camcory said:
Your question is way too vague without any logs. Also like it was said you need firmware specific device, kernel, and vendor repos which you haven't linked to which would be somewhat helpful to pinpoint some of these issues you experienced.
Click to expand...
Click to collapse
iam using dirty unicirons device and kernel and vendor trees the build finshed successfully but after flashing the build the phone stay at the logo
isee also some warning while building : can not read VENDOR build.prop
@camcory
[25/967] including development/build/Android.mk ...
development/build/build_android_stubs.mk:43: warning: android_stubs_current
development/build/build_android_stubs.mk:43: warning: metalava_android_stubs_current metalava_android_stubs_current
development/build/build_android_stubs.mk:43: warning: android_system_stubs_current
development/build/build_android_stubs.mk:43: warning: android_test_stubs_current
development/build/build_android_stubs.mk:43: warning: metalava_android_system_stubs_current metalava_android_system_stubs_current
development/build/build_android_stubs.mk:43: warning: metalava_android_test_stubs_current metalava_android_test_stubs_current
[552/967] including system/sepolicy/Android.mk ...
system/sepolicy/Android.mk:79: warning: BOARD_SEPOLICY_VERS not specified, assuming current platform version
system/sepolicy/Android.mk:89: warning: Be careful when using the SELINUX_IGNORE_NEVERALLOWS flag. It does not work in user builds and using it will not stop you from failing CTS.
[967/967] including vendor/qcom/opensource/dataservices/Android.mk ...
[ 31% 9/29] Building Kernel Config
make: Entering directory '/home/killer/posp/kernel/moto/shamu'
GEN /home/killer/posp/out/target/product/shamu/obj/KERNEL_OBJ/Makefile
#
# configuration written to .config
#
make: Leaving directory '/home/killer/posp/kernel/moto/shamu'
make: Entering directory '/home/killer/posp/kernel/moto/shamu'
GEN /home/killer/posp/out/target/product/shamu/obj/KERNEL_OBJ/Makefile
scripts/kconfig/conf --savedefconfig=defconfig Kconfig
make: Leaving directory '/home/killer/posp/kernel/moto/shamu'
[ 55% 16/29] Building Kernel
make: Entering directory '/home/killer/posp/kernel/moto/shamu'
GEN /home/killer/posp/out/target/product/shamu/obj/KERNEL_OBJ/Makefile
scripts/kconfig/conf --silentoldconfig Kconfig
GEN /home/killer/posp/out/target/product/shamu/obj/KERNEL_OBJ/Makefile
CHK include/generated/uapi/linux/version.h
CHK include/generated/utsrelease.h
Using /home/killer/posp/kernel/moto/shamu as source for kernel
CC scripts/mod/devicetable-offsets.s
GEN scripts/mod/devicetable-offsets.h
HOSTCC scripts/mod/file2alias.o
HOSTLD scripts/mod/modpost
make[2]: Nothing to be done for 'dtbs'.
make[2]: 'include/generated/mach-types.h' is up to date.
CALL /home/killer/posp/kernel/moto/shamu/scripts/checksyscalls.sh
CHK include/generated/compile.h
Kernel: arch/arm/boot/Image is ready
DTC arch/arm/boot/dts/apq8084-shamu-p2.dtb
LD arch/arm/boot/compressed/vmlinux
OBJCOPY arch/arm/boot/zImage
Kernel: arch/arm/boot/zImage is ready
CAT arch/arm/boot/zImage-dtb
Kernel: arch/arm/boot/zImage-dtb is ready
make: Leaving directory '/home/killer/posp/kernel/moto/shamu'
Building DTBs
make: Entering directory '/home/killer/posp/kernel/moto/shamu'
CC scripts/mod/devicetable-offsets.s
GEN scripts/mod/devicetable-offsets.h
HOSTCC scripts/mod/file2alias.o
HOSTLD scripts/mod/modpost
DTC arch/arm/boot/dts/apq8084-shamu-p2.dtb
make[2]: Nothing to be done for 'dtbs'.
make: Leaving directory '/home/killer/posp/kernel/moto/shamu'
[ 68% 20/29] ----- Making uncompressed recovery ramdisk ------
cp: cannot stat '/home/killer/posp/out/target/product/shamu/root/init.recovery.*.rc': No such file or directory
[ 93% 27/29] Package target files: /home/killer/posp/out/target/product/shamu/obj/PACKAGING/target_files_intermediates/potato_shamu-target_files-e0ce7ecd6f.zip
Warning: could not read VENDOR/build.prop
building image from target_files RECOVERY...
building image from target_files BOOT...
putting script in bin/install-recovery.sh
Warning: could not read VENDOR/build.prop
++++ boot ++++
building image from target_files BOOT...
running: mkbootfs -f /home/killer/posp/out/target/product/shamu/obj/PACKAGING/target_files_intermediates/potato_shamu-target_files-e0ce7ecd6f/META/boot_filesystem_config.txt /home/killer/posp/out/target/product/shamu/obj/PACKAGING/target_files_intermediates/potato_shamu-target_files-e0ce7ecd6f/BOOT/RAMDISK
running: minigzip
running: /home/killer/posp/out/host/linux-x86/bin/mkbootimg --kernel /home/killer/posp/out/target/product/shamu/obj/PACKAGING/target_files_intermediates/potato_shamu-target_files-e0ce7ecd6f/BOOT/kernel --cmdline console=ttyHSL0,115200,n8 androidboot.console=ttyHSL0 androidboot.hardware=shamu msm_rtb.filter=0x37 ehci-hcd.park=3 utags.blkdev=/dev/block/platform/msm_sdcc.1/by-name/utags utags.backup=/dev/block/platform/msm_sdcc.1/by-name/utagsBackup coherent_pool=8M vmalloc=300M buildvariant=userdebug --base 0x00000000 --pagesize 2048 --ramdisk_offset 0x02000000 --ramdisk_offset 0x02000000 --tags_offset 0x01E00000 --os_version 9 --os_patch_level 2019-06-05 --ramdisk /tmp/tmp88EAjT --output /tmp/tmp3TvZno
++++ recovery ++++
building image from target_files RECOVERY...
running: mkbootfs -f /home/killer/posp/out/target/product/shamu/obj/PACKAGING/target_files_intermediates/potato_shamu-target_files-e0ce7ecd6f/META/recovery_filesystem_config.txt /home/killer/posp/out/target/product/shamu/obj/PACKAGING/target_files_intermediates/potato_shamu-target_files-e0ce7ecd6f/RECOVERY/RAMDISK
running: minigzip
running: /home/killer/posp/out/host/linux-x86/bin/mkbootimg --kernel /home/killer/posp/out/target/product/shamu/obj/PACKAGING/target_files_intermediates/potato_shamu-target_files-e0ce7ecd6f/RECOVERY/kernel --cmdline console=ttyHSL0,115200,n8 androidboot.console=ttyHSL0 androidboot.hardware=shamu msm_rtb.filter=0x37 ehci-hcd.park=3 utags.blkdev=/dev/block/platform/msm_sdcc.1/by-name/utags utags.backup=/dev/block/platform/msm_sdcc.1/by-name/utagsBackup coherent_pool=8M vmalloc=300M buildvariant=userdebug --base 0x00000000 --pagesize 2048 --ramdisk_offset 0x02000000 --ramdisk_offset 0x02000000 --tags_offset 0x01E00000 --os_version 9 --os_patch_level 2019-06-05 --ramdisk /tmp/tmpcptT7k --output /tmp/tmpZL3Oem
++++ recovery (two-step image) ++++
building image from target_files RECOVERY...
running: mkbootfs -f /home/killer/posp/out/target/product/shamu/obj/PACKAGING/target_files_intermediates/potato_shamu-target_files-e0ce7ecd6f/META/recovery_filesystem_config.txt /home/killer/posp/out/target/product/shamu/obj/PACKAGING/target_files_intermediates/potato_shamu-target_files-e0ce7ecd6f/RECOVERY/RAMDISK
running: minigzip
running: /home/killer/posp/out/host/linux-x86/bin/mkbootimg --kernel /home/killer/posp/out/target/product/shamu/obj/PACKAGING/target_files_intermediates/potato_shamu-target_files-e0ce7ecd6f/RECOVERY/kernel --cmdline console=ttyHSL0,115200,n8 androidboot.console=ttyHSL0 androidboot.hardware=shamu msm_rtb.filter=0x37 ehci-hcd.park=3 utags.blkdev=/dev/block/platform/msm_sdcc.1/by-name/utags utags.backup=/dev/block/platform/msm_sdcc.1/by-name/utagsBackup coherent_pool=8M vmalloc=300M buildvariant=userdebug --base 0x00000000 --pagesize 2048 --ramdisk_offset 0x02000000 --ramdisk_offset 0x02000000 --tags_offset 0x01E00000 --os_version 9 --os_patch_level 2019-06-05 --ramdisk /tmp/tmplDYeyC --output /tmp/tmp1JXmIF
++++ system ++++
creating system.img...
Running: mkuserimg_mke2fs.sh -s /home/killer/posp/out/target/product/shamu/obj/PACKAGING/target_files_intermediates/potato_shamu-target_files-e0ce7ecd6f/SYSTEM /home/killer/posp/out/target/product/shamu/obj/PACKAGING/target_files_intermediates/potato_shamu-target_files-e0ce7ecd6f/IMAGES/system.img ext4 system 2147483648 -j 0 -T 1230786000 -C /home/killer/posp/out/target/product/shamu/obj/PACKAGING/target_files_intermediates/potato_shamu-target_files-e0ce7ecd6f/META/filesystem_config.txt -B /home/killer/posp/out/target/product/shamu/obj/PACKAGING/target_files_intermediates/potato_shamu-target_files-e0ce7ecd6f/IMAGES/system.map -L system -M 0 -U cf43832b-1856-587f-b004-d30d4e72b078 -S cbe3726f-5987-557e-84c3-889b1db2841c /home/killer/posp/out/target/product/shamu/obj/PACKAGING/target_files_intermediates/potato_shamu-target_files-e0ce7ecd6f/META/file_contexts.bin
MKE2FS_CONFIG=./system/extras/ext4_utils/mke2fs.conf E2FSPROGS_FAKE_TIME=1230786000 mke2fs -O ^has_journal -L system -m 0 -U cf43832b-1856-587f-b004-d30d4e72b078 -E android_sparse,hash_seed=cbe3726f-5987-557e-84c3-889b1db2841c -t ext4 -b 4096 /home/killer/posp/out/target/product/shamu/obj/PACKAGING/target_files_intermediates/potato_shamu-target_files-e0ce7ecd6f/IMAGES/system.img 524288
mke2fs 1.43.3 (04-Sep-2016)
Creating filesystem with 524288 4k blocks and 131072 inodes
Filesystem UUID: cf43832b-1856-587f-b004-d30d4e72b078
Superblock backups stored on blocks:
32768, 98304, 163840, 229376, 294912
Allocating group tables: done
Writing inode tables: done
Writing superblocks and filesystem accounting information: done
E2FSPROGS_FAKE_TIME=1230786000 e2fsdroid -T 1230786000 -C /home/killer/posp/out/target/product/shamu/obj/PACKAGING/target_files_intermediates/potato_shamu-target_files-e0ce7ecd6f/META/filesystem_config.txt -B /home/killer/posp/out/target/product/shamu/obj/PACKAGING/target_files_intermediates/potato_shamu-target_files-e0ce7ecd6f/IMAGES/system.map -S /home/killer/posp/out/target/product/shamu/obj/PACKAGING/target_files_intermediates/potato_shamu-target_files-e0ce7ecd6f/META/file_contexts.bin -f /home/killer/posp/out/target/product/shamu/obj/PACKAGING/target_files_intermediates/potato_shamu-target_files-e0ce7ecd6f/SYSTEM -a /system /home/killer/posp/out/target/product/shamu/obj/PACKAGING/target_files_intermediates/potato_shamu-target_files-e0ce7ecd6f/IMAGES/system.img
loaded 2718 fs_config entries
Created filesystem with 2728/131072 inodes and 251673/524288 blocks
Running: simg2img /home/killer/posp/out/target/product/shamu/obj/PACKAGING/target_files_intermediates/potato_shamu-target_files-e0ce7ecd6f/IMAGES/system.img /home/killer/posp/out/target/product/shamu/obj/PACKAGING/target_files_intermediates/potato_shamu-target_files-e0ce7ecd6f/IMAGES/unsparse_system.img
Running: e2fsck -f -n /home/killer/posp/out/target/product/shamu/obj/PACKAGING/target_files_intermediates/potato_shamu-target_files-e0ce7ecd6f/IMAGES/unsparse_system.img
e2fsck 1.43.3 (04-Sep-2016)
Pass 1: Checking inodes, blocks, and sizes
Pass 2: Checking directory structure
Pass 3: Checking directory connectivity
Pass 4: Checking reference counts
Pass 5: Checking group summary information
system: 2728/131072 files (0.4% non-contiguous), 251673/524288 blocks
++++ userdata ++++
creating userdata.img...
Running: mkuserimg_mke2fs.sh -s /tmp/tmp0TEhDi /home/killer/posp/out/target/product/shamu/obj/PACKAGING/target_files_intermediates/potato_shamu-target_files-e0ce7ecd6f/IMAGES/userdata.img ext4 data 25253773312 -T 1230786000 -L data /home/killer/posp/out/target/product/shamu/obj/PACKAGING/target_files_intermediates/potato_shamu-target_files-e0ce7ecd6f/META/file_contexts.bin
MKE2FS_CONFIG=./system/extras/ext4_utils/mke2fs.conf E2FSPROGS_FAKE_TIME=1230786000 mke2fs -L data -E android_sparse -t ext4 -b 4096 /home/killer/posp/out/target/product/shamu/obj/PACKAGING/target_files_intermediates/potato_shamu-target_files-e0ce7ecd6f/IMAGES/userdata.img 6165472
mke2fs 1.43.3 (04-Sep-2016)
Creating filesystem with 6165472 4k blocks and 1542240 inodes
Filesystem UUID: c61fd27d-0ffd-4429-96d3-7d7ed4175922
Superblock backups stored on blocks:
32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208,
4096000
Allocating group tables: done
Writing inode tables: done
Creating journal (32768 blocks): done
Writing superblocks and filesystem accounting information: done
E2FSPROGS_FAKE_TIME=1230786000 e2fsdroid -T 1230786000 -S /home/killer/posp/out/target/product/shamu/obj/PACKAGING/target_files_intermediates/potato_shamu-target_files-e0ce7ecd6f/META/file_contexts.bin -f /tmp/tmp0TEhDi -a /data /home/killer/posp/out/target/product/shamu/obj/PACKAGING/target_files_intermediates/potato_shamu-target_files-e0ce7ecd6f/IMAGES/userdata.img
Created filesystem with 11/1542240 inodes and 140817/6165472 blocks
Running: simg2img /home/killer/posp/out/target/product/shamu/obj/PACKAGING/target_files_intermediates/potato_shamu-target_files-e0ce7ecd6f/IMAGES/userdata.img /home/killer/posp/out/target/product/shamu/obj/PACKAGING/target_files_intermediates/potato_shamu-target_files-e0ce7ecd6f/IMAGES/unsparse_userdata.img
Running: e2fsck -f -n /home/killer/posp/out/target/product/shamu/obj/PACKAGING/target_files_intermediates/potato_shamu-target_files-e0ce7ecd6f/IMAGES/unsparse_userdata.img
e2fsck 1.43.3 (04-Sep-2016)
Pass 1: Checking inodes, blocks, and sizes
Pass 2: Checking directory structure
Pass 3: Checking directory connectivity
Pass 4: Checking reference counts
Pass 5: Checking group summary information
data: 11/1542240 files (0.0% non-contiguous), 140817/6165472 blocks
userdata size (140) is 0.00% of limit (25253773312)
++++ cache ++++
creating cache.img...
Running: mkuserimg_mke2fs.sh -s /tmp/tmpoYdggf /home/killer/posp/out/target/product/shamu/obj/PACKAGING/target_files_intermediates/potato_shamu-target_files-e0ce7ecd6f/IMAGES/cache.img ext4 cache 268435456 -T 1230786000 -L cache /home/killer/posp/out/target/product/shamu/obj/PACKAGING/target_files_intermediates/potato_shamu-target_files-e0ce7ecd6f/META/file_contexts.bin
MKE2FS_CONFIG=./system/extras/ext4_utils/mke2fs.conf E2FSPROGS_FAKE_TIME=1230786000 mke2fs -L cache -E android_sparse -t ext4 -b 4096 /home/killer/posp/out/target/product/shamu/obj/PACKAGING/target_files_intermediates/potato_shamu-target_files-e0ce7ecd6f/IMAGES/cache.img 65536
mke2fs 1.43.3 (04-Sep-2016)
Creating filesystem with 65536 4k blocks and 65536 inodes
Filesystem UUID: ff91904e-91e0-4445-8557-b6348cf026de
Superblock backups stored on blocks:
32768
Allocating group tables: done
Writing inode tables: done
Creating journal (4096 blocks): done
Writing superblocks and filesystem accounting information: done
E2FSPROGS_FAKE_TIME=1230786000 e2fsdroid -T 1230786000 -S /home/killer/posp/out/target/product/shamu/obj/PACKAGING/target_files_intermediates/potato_shamu-target_files-e0ce7ecd6f/META/file_contexts.bin -f /tmp/tmpoYdggf -a /cache /home/killer/posp/out/target/product/shamu/obj/PACKAGING/target_files_intermediates/potato_shamu-target_files-e0ce7ecd6f/IMAGES/cache.img
Created filesystem with 11/65536 inodes and 6190/65536 blocks
Running: simg2img /home/killer/posp/out/target/product/shamu/obj/PACKAGING/target_files_intermediates/potato_shamu-target_files-e0ce7ecd6f/IMAGES/cache.img /home/killer/posp/out/target/product/shamu/obj/PACKAGING/target_files_intermediates/potato_shamu-target_files-e0ce7ecd6f/IMAGES/unsparse_cache.img
Running: e2fsck -f -n /home/killer/posp/out/target/product/shamu/obj/PACKAGING/target_files_intermediates/potato_shamu-target_files-e0ce7ecd6f/IMAGES/unsparse_cache.img
e2fsck 1.43.3 (04-Sep-2016)
Pass 1: Checking inodes, blocks, and sizes
Pass 2: Checking directory structure
Pass 3: Checking directory connectivity
Pass 4: Checking reference counts
Pass 5: Checking group summary information
cache: 11/65536 files (0.0% non-contiguous), 6190/65536 blocks
cache size (137) is 0.00% of limit (268435456)
++++ radio ++++
done.
[ 96% 28/29] Package OTA: /home/killer/posp/out/target/product/shamu/potato_shamu-ota-e0ce7ecd6f.zip
Warning: could not read VENDOR/build.prop
--- target info ---
blockimgdiff_versions = (str) 3,4
blocksize = (int) 131072
boot_size = (int) 16777216
build.prop = (dict) {'persist.audio.fluence.speaker': 'false', 'ro.setupwizard.enterprise_mode': '1', 'camera.disable_zsl_mode': '0', 'dalvik.vm.isa.arm.variant': 'krait', 'ro.product.cpu.abilist': 'armeabi-v7a,armeabi', 'ro.url.legal': 'http://www.google.com/intl/%s/mobile/android/basic/phone-legal.html', 'dalvik.vm.isa.arm.features': 'default', 'ro.build.product': 'shamu', 'persist.data.iwlan.enable': 'true', 'persist.radio.ignore_ims_wlan': '1', 'ro.facelock.est_max_time': '600', 'ro.build.id': 'PQ3B.190605.006', 'ro.com.android.dateformat': 'MM-dd-yyyy', 'ro.product.cpu.abilist32': 'armeabi-v7a,armeabi', 'ro.qc.sdk.audio.fluencetype': 'fluence', 'ro.facelock.black_timeout': '400', 'persist.sys.disable_rescue': 'true', 'ro.treble.enabled': 'false', 'ro.boot.vendor.overlay.theme': 'com.potato.overlay.accent.purple;com.potato.overlay.base.stockfixed;com.potato.overlay.lawnconf', 'ro.frp.pst': '/dev/block/platform/msm_sdcc.1/by-name/frp', 'af.fast_track_multiplier': '1', 'dalvik.vm.heapmaxfree': '8m', 'persist.ims.disableADBLogs': '2', 'ro.build.fingerprint': 'google/shamu/shamu:7.1.1/N6F27M/4299435:user/release-keys', 'ro.product.manufacturer': 'motorola', 'persist.radio.no_wait_for_card': '1', 'ro.bionic.ld.warning': '1', 'ro.facelock.det_timeout': '1500', 'ro.build.description': 'shamu-user 7.1.1 N6F27M 4299435 release-keys', 'dalvik.vm.heapstartsize': '8m', 'ro.product.brand': 'google', 'ro.potato.device': 'shamu', 'ro.product.model': 'Nexus 6', 'persist.camera.sensor.debug': '0', 'debug.hwui.use_buffer_age': 'false', 'dalvik.vm.heapsize': '512m', 'persist.audio.fluence.voicecall': 'true', 'persist.qcril_uim_vcc_feature': '1', 'ro.facelock.rec_timeout': '2500', 'persist.camera.mct.debug.mask': '1', 'dalvik.vm.heaptargetutilization': '0.75', 'ro.build.host': 'RinGoo-PC', 'ro.com.android.dataroaming': 'false', 'ro.build.version.security_patch': '2019-06-05', 'telephony.lteOnCdmaDevice': '1', 'ro.opa.eligible_device': 'true', 'persist.debug.wfd.enable': '1', 'ro.product.locale': 'en-US', 'ro.config.bt_sco_vol_steps': '30', 'persist.audio.fluence.voicerec': 'false', 'dalvik.vm.heapminfree': '512k', 'persist.radio.data_no_toggle': '1', 'persist.sys.dalvik.vm.lib.2': 'libart.so', 'ro.telephony.get_imsi_from_sim': 'true', 'bluetooth.enable_timeout_ms': '12000', 'ro.build.version.min_supported_target_sdk': '17', 'persist.sys.usb.config': 'mtp,adb', 'ro.audio.flinger_standbytime_ms': '300', 'ro.product.cpu.abilist64': '', 'persist.radio.mcfg_enabled': '1', 'ro.expect.recovery_id': '0xfae8e07b5b8c752dbf52645be76ce3692da8214a000000000000000000000000', 'drm.service.enabled': 'true', 'wifi.direct.non-concurrent': 'true', 'persist.radio.data_con_rprt': '1', 'rild.libpath': '/system/vendor/lib/libril-qc-qmi-1.so', 'ro.build.flavor': 'potato_shamu-userdebug', 'persist.camera.ISP.debug.mask': '0', 'net.tethering.noprovisioning': 'true', 'persist.ims.disableIMSLogs': '1', 'ro.build.version.release': '9', 'ro.build.version.codename': 'REL', 'dalvik.vm.stack-trace-dir': '/data/anr', 'net.bt.name': 'Android', 'ro.build.type': 'userdebug', 'ro.config.alarm_alert': 'Flow.ogg', 'ro.opengles.version': '196610', 'ro.build.display.id': 'potato_shamu-userdebug 9 PQ3B.190605.006 1f8e1a7fd0 test-keys', 'ro.facelock.use_intro_anim': 'false', 'ro.config.ringtone': 'Zen.ogg', 'ro.potato.version': '2.3', 'dalvik.vm.debug.alloc': '0', 'ro.carrier': 'unknown', 'ro.art.hiddenapi.warning': '1', 'ro.dalvik.vm.native.bridge': '0', 'ro.build.version.preview_sdk': '0', 'persist.ims.disableDebugLogs': '0', 'ro.com.google.clientidbase': 'android-google', 'persist.radio.alt_mbn_name': 'tmo_alt.mbn', 'ro.build.date': 'Mon Jun 17 08:25:38 EDT 2019', 'persist.camera.hal.debug.mask': '7', 'persist.radio.sib16_support': '1', 'vidc.debug.level': '1', 'ro.build.date.utc': '1560774338', 'keyguard.no_require_sim': 'true', 'persist.audio.dualmic.config': 'endfire', 'persist.radio.oem_socket': 'false', 'persist.radio.fsg_reload_on': '1', 'ro.build.version.all_codenames': 'REL', 'persist.camera.imglib.logs': '1', 'dalvik.vm.lockprof.threshold': '500', 'ro.oem_unlock_supported': '1', 'persist.camera.ois.disable': '0', 'ro.build.selinux': '1', 'persist.sys.wfd.virtual': '0', 'persist.camera.pproc.debug.mask': '7', 'ro.product.cpu.abi': 'armeabi-v7a', 'debug.sf.disable_hwcomposer': '1', 'ro.url.legal.android_privacy': 'http://www.google.com/intl/%s/mobile/android/basic/privacy.html', 'ro.product.name': 'shamu', 'ro.build.version.base_os': '', 'persist.data.qmi.adb_logmask': '0', 'ro.vendor.extension_library': '/vendor/lib/libqc-opt.so', 'persist.rcs.supported': '0', 'ro.wifi.channels': '', 'persist.camera.HAL3.enabled': '1', 'ro.com.android.prov_mobiledata': 'false', 'ro.build.characteristics': 'nosdcard', 'persist.ims.disableQXDMLogs': '0', 'ro.build.project': 'potato', 'ro.error.receiver.system.apps': 'com.google.android.gms', 'ro.telephony.default_network': '10', 'dalvik.vm.heapgrowthlimit': '192m', 'ro.build.version.incremental': '1f8e1a7fd0', 'ro.build.tags': 'test-keys', 'ro.sf.lcd_density': '560', 'ro.build.version.sdk': '28', 'ro.potato.dish': 'Baked', 'ro.product.cpu.abi2': 'armeabi', 'ro.build.user': 'killer', 'sys.use_fifo_ui': '1', 'ro.product.device': 'shamu', 'ro.facelock.lively_timeout': '2500', 'persist.camera.stats.debug.mask': '0', 'persist.audio.fluence.voicecomm': 'false', 'audio_hal.period_size': '192', 'ro.atrace.core.services': 'com.google.android.gms,com.google.android.gms.ui,com.google.android.gms.persistent', 'ro.telephony.default_cdma_sub': '0', 'persist.radio.apm_sim_not_pwdn': '1', 'persist.hwc.mdpcomp.enable': 'true', 'ro.config.vc_call_vol_steps': '6', 'ro.audio.monitorRotation': 'true', 'ro.config.notification_sound': 'Chime.ogg', 'ro.config.media_vol_steps': '30', 'media.aac_51_output_enabled': 'true'}
cache_fs_type = (str) ext4
cache_size = (int) 268435456
default_system_dev_certificate = (str) build/target/product/security/testkey
ext_mkuserimg = (str) mkuserimg_mke2fs.sh
extfs_sparse_flag = (str) -s
fs_type = (str) ext4
fstab = (dict) {'none': <common.Partition object at 0x7f2412dc23d0>, '/logo': <common.Partition object at 0x7f2412dc2350>, '/versions': <common.Partition object at 0x7f2412dc2310>, '/modem': <common.Partition object at 0x7f2412dc20d0>, '/cache': <common.Partition object at 0x7f2412db1d90>, '/data': <common.Partition object at 0x7f2412db1d10>, '/system': <common.Partition object at 0x7f2412db1cd0>, '/tz': <common.Partition object at 0x7f2412dc2210>, '/rpm': <common.Partition object at 0x7f2412dc2250>, '/persistent': <common.Partition object at 0x7f2412dc2390>, '/mdm1m9kefs3': <common.Partition object at 0x7f2412dc2190>, '/persist': <common.Partition object at 0x7f2412db1e10>, '/mdm1m9kefs1': <common.Partition object at 0x7f2412dc2110>, '/recovery': <common.Partition object at 0x7f2412db1e50>, '/firmware': <common.Partition object at 0x7f2412db1d50>, '/mdm1m9kefs2': <common.Partition object at 0x7f2412dc2150>, '/sdi': <common.Partition object at 0x7f2412dc2290>, '/sbl1': <common.Partition object at 0x7f2412dc21d0>, '/aboot': <common.Partition object at 0x7f2412dc22d0>, '/boot': <common.Partition object at 0x7f2412db1dd0>, '/misc': <common.Partition object at 0x7f2412dc2090>}
fstab_version = (int) 2
mkbootimg_args = (str) --ramdisk_offset 0x02000000 --tags_offset 0x01E00000
mkbootimg_version_args = (str) --os_version 9 --os_patch_level 2019-06-05
multistage_support = (str) 1
no_gzip_recovery_ramdisk = (str) true
oem_size = (str) 67108864
ota_override_device = (str) auto
recovery_api_version = (int) 3
recovery_mount_options = (str) ext4=max_batch_time=0,commit=1,data=ordered,barrier=1,errors=panic,nodelalloc
recovery_size = (int) 16793600
selinux_fc = (str) /home/killer/posp/out/target/product/shamu/obj/ETC/file_contexts.bin_intermediates/file_contexts.bin
squashfs_sparse_flag = (str) -s
system_size = (int) 2147483648
tool_extensions = (str) device/moto/shamu/../common
use_set_metadata = (str) 1
userdata_size = (int) 25253773312
vendor.build.prop = (dict) {}
running: openssl pkcs8 -in build/target/product/security/testkey.pk8 -inform DER -nocrypt
unable to load device-specific module; assuming none
using prebuilt recovery.img from IMAGES...
Total of 524288 4096-byte output blocks in 18 input chunks.
Finding transfers...
Generating digraph...
Finding vertex sequence...
Reversing backward edges...
0/0 dependencies (0.00%) were violated; 0 source blocks stashed.
Improving vertex order...
Revising stash size...
Total 0 blocks (0 bytes) are packed as new blocks due to insufficient cache size.
Reticulating splines...
995307520 995307520 (100.00%) new __DATA 0-136 144-145 161-331 8353-32769 32897-98305 98433-163841 163969-229377 229505-251543 294912-294913
max stashed blocks: 0 (0 bytes), limit: 214748364 bytes (0.00%)
Imgdiff Stats Report
========================
Compressing system.new.dat with brotli
running: brotli --quality=6 --output=/tmp/tmpo5QQBB/system.new.dat.br /tmp/tmpo5QQBB/system.new.dat
using prebuilt boot.img from IMAGES...
boot size (10405888) is 62.02% of limit (16777216)
running: java -Xmx2048m -Djava.library.path=/home/killer/posp/out/host/linux-x86/lib64 -jar /home/killer/posp/out/host/linux-x86/framework/signapk.jar -w build/target/product/security/testkey.x509.pem build/target/product/security/testkey.pk8 /tmp/tmp5zapcm.zip /tmp/tmpn70kMO.zip
running: zip -d /tmp/tmpn70kMO.zip META-INF/com/android/metadata
running: java -Xmx2048m -Djava.library.path=/home/killer/posp/out/host/linux-x86/lib64 -jar /home/killer/posp/out/host/linux-x86/framework/signapk.jar -w build/target/product/security/testkey.x509.pem build/target/product/security/testkey.pk8 /tmp/tmpn70kMO.zip /home/killer/posp/out/target/product/shamu/potato_shamu-ota-e0ce7ecd6f.zip
done.
[100% 29/29] build potato
Package Complete: /home/killer/posp/out/target/product/shamu/potato_shamu-9-20190617.CHIPS-v2.3.COMMUNITY.zip
/####### /###### /###### /#######
| ##__ ## /##__ ## /##__ ##| ##__ ##
| ## \ ##| ## \ ##| ## \__/| ## \ ##
| #######/| ## | ##| ###### | #######/
| ##____/ | ## | ## \____ ##| ##____/
| ## | ## | ## /## \ ##| ##
| ## | ######/| ######/| ##
|__/ \______/ \______/ |__/
#### build completed successfully (08:00 (mm:ss)) ####
[email protected]:~/posp$

Trouble compiling for my device (D410)

So, after a lot of effort (documentation on ROM building won't make it any easier), I managed to reach the last stage (the building process itself with "brunch w7") on LineageOS 14.1. But this happens: (OBS: cut some text before this part, just a bunch of text commands)
Code:
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=7.1.2
LINEAGE_VERSION=14.1-20190908-UNOFFICIAL-w7
TARGET_PRODUCT=lineage_w7
TARGET_BUILD_VARIANT=userdebug
TARGET_BUILD_TYPE=release
TARGET_BUILD_APPS=
TARGET_ARCH=arm
TARGET_ARCH_VARIANT=armv7-a-neon
TARGET_CPU_VARIANT=krait
TARGET_2ND_ARCH=
TARGET_2ND_ARCH_VARIANT=
TARGET_2ND_CPU_VARIANT=
HOST_ARCH=x86_64
HOST_2ND_ARCH=x86
HOST_OS=linux
HOST_OS_EXTRA=Linux-5.0.0-27-generic-x86_64-with-LinuxMint-19.2-tina
HOST_CROSS_OS=windows
HOST_CROSS_ARCH=x86
HOST_CROSS_2ND_ARCH=x86_64
HOST_BUILD_TYPE=release
BUILD_ID=NJH47F
OUT_DIR=/home/android/android/lineage14/out
============================================
Checking build tools versions...
frameworks/av/camera/cameraserver/Android.mk:18: Target has integrated cameraserver into mediaserver. This is weakening security measures introduced in 7.0
find: ‘/home/android/android/lineage14/out/target/common/obj/SHARED_LIBRARIES/libwifi-hal-mock_intermediates’: Arquivo ou diretório inexistente
build/core/dex_preopt.mk:74: warning: overriding commands for target `/home/android/android/lineage14/out/target/product/w7/dex_bootjars/system/framework/telephony-ext_nodex.jar'
build/core/dex_preopt.mk:74: warning: ignoring old commands for target `/home/android/android/lineage14/out/target/product/w7/dex_bootjars/system/framework/telephony-ext_nodex.jar'
Starting build with ninja
ninja: Entering directory `.'
[ 0% 328/34549] host Java: tagsouplib (/home/android/android/lineage14/out/host/common/obj/JAVA_LIBRARIES/tagsouplib_intermediates/classes)
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
[ 1% 469/34549] host Java: antlr-runtime (/home/android/android/lineage14/out/host/common/obj/JAVA_LIBRARIES/antlr-runtime_intermediates/classes)
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
[ 1% 487/34549] host Java: guavalib (/home/android/android/lineage14/out/host/common/obj/JAVA_LIBRARIES/guavalib_intermediates/classes)
warning: [options] bootstrap class path not set in conjunction with -source 1.7
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
1 warning
[ 1% 611/34549] host Java: jsilver (/home/android/android/lineage14/out/host/common/obj/JAVA_LIBRARIES/jsilver_intermediates/classes)
Note: external/jsilver/src/org/clearsilver/FactoryLoader.java uses unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
[ 1% 683/34549] host Java: doclava (/home/android/android/lineage14/out/host/common/obj/JAVA_LIBRARIES/doclava_intermediates/classes)
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
[ 2% 693/34549] Lex: aidl <= system/tools/aidl/aidl_language_l.ll
FAILED: /bin/bash -c "prebuilts/misc/linux-x86/flex/flex-2.5.39 -o/home/android/android/lineage14/out/host/linux-x86/obj/STATIC_LIBRARIES/libaidl-common_intermediates/aidl_language_l.cpp system/tools/aidl/aidl_language_l.ll"
flex-2.5.39: loadlocale.c:130: _nl_intern_locale_data: Assertiva "cnt < (sizeof (_nl_value_type_LC_TIME) / sizeof (_nl_value_type_LC_TIME[0]))" falhou.
Aborted (core dumped)
[ 2% 693/34549] target Java: core-all (/home/android/android/lineage14/out/target/common/obj/JAVA_LIBRARIES/core-all_intermediates/classes)
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
ninja: build stopped: subcommand failed.
make: *** [build/core/ninja.mk:152: ninja_wrapper] Error 1
make: Leaving directory '/home/android/android/lineage14'
#### make failed to build some targets (03:36 (mm:ss)) ####
[email protected]:~/android/lineage14
and I don't know what to do now. Can someone help if I'm doing something wrong?

Question How can I fix this erorr on my corvus os build

[email protected]:~/corvus$ m
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=11
CORVUS_VERSION=Corvus_v17.0-Vanguard-sweet-30112021-Unofficial-0901
TARGET_PRODUCT=corvus_sweet
TARGET_BUILD_VARIANT=eng
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
BUILD_ID=RD2A.211001.002
OUT_DIR=/home/rares/corvus/out
PRODUCT_SOONG_NAMESPACES=vendor/xiaomi/sm6150-common device/xiaomi/sm6150-common hardware/xiaomi device/xiaomi/sweet vendor/xiaomi/sweet hardware/qcom-caf/sm8
150 vendor/qcom/opensource/commonsys-intf/display vendor/qcom/opensource/data-ipa-cfg-mgr vendor/qcom/opensource/dataservices vendor/qcom/opensource/commonsys
/packages/apps/Bluetooth vendor/qcom/opensource/commonsys/system/bt/conf frameworks/av/camera/cameraserver frameworks/av/services/camera/libcameraservice hard
ware/qcom-caf/common/fwk-detect
============================================
[100% 2/2] /home/rares/corvus/out/soong/.bootstrap/bin/soong_build /home/rares/corvus/out/soong/build.ninja
FAILED: /home/rares/corvus/out/soong/build.ninja
/home/rares/corvus/out/soong/.bootstrap/bin/soong_build -t -l /home/rares/corvus/out/.module_paths/Android.bp.list -b /home/rares/corvus/out/soong -n /home/ra
res/corvus/out -d /home/rares/corvus/out/soong/build.ninja.d -globFile /home/rares/corvus/out/soong/.bootstrap/build-globs.ninja -o /home/rares/corvus/out/soo
ng/build.ninja Android.bp
error: device/xiaomi/sweet/libinit/Android.bp:7:1: "init_xiaomi_sweet" depends on undefined module "//device/xiaomi/sm6150-common:libinit_xiaomi_sm6150"
error: device/xiaomi/sm6150-common/power-libperfmgr/Android.bp:16:1: "[email protected]" depends on undefined module "libpe
rfmgr"
Module "[email protected]" is defined in namespace "device/xiaomi/sm6150-common" which can read these 3 namespaces: ["devic
e/xiaomi/sm6150-common" "hardware/xiaomi" "."]
Module "libperfmgr" can be found in these namespaces: ["hardware/google/pixel"]
11:01:29 soong bootstrap failed with: exit status 1
#### failed to build some targets (18 seconds) ####
[email protected]:~/corvus$
NEW ERORR!!
[email protected]:~/corvus$ m
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=11
CORVUS_VERSION=Corvus_v17.0-Vanguard-sweet-11122021-Unofficial-1140
TARGET_PRODUCT=corvus_sweet
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
BUILD_ID=RD2A.211001.002
OUT_DIR=/home/rares/corvus/out
PRODUCT_SOONG_NAMESPACES=vendor/xiaomi/sweet device/xiaomi/sweet packages/apps/Bluetooth hardware/qcom-caf/sm8150 vendor/qcom/opensource/commonsys-intf/display vendor/qcom/opensource/data-ipa-cfg-mgr vendor/qcom/opensource/dataservices fr
ameworks/av/camera/cameraserver frameworks/av/services/camera/libcameraservice hardware/qcom-caf/common/fwk-detect
============================================
[100% 2/2] /home/rares/corvus/out/soong/.bootstrap/bin/soong_build /home/rares/corvus/out/soong/build.ninja
FAILED: /home/rares/corvus/out/soong/build.ninja
/home/rares/corvus/out/soong/.bootstrap/bin/soong_build -t -l /home/rares/corvus/out/.module_paths/Android.bp.list -b /home/rares/corvus/out/soong -n /home/rares/corvus/out -d /home/rares/corvus/out/soong/build.ninja.d -globFile /home/rar
es/corvus/out/soong/.bootstrap/build-globs.ninja -o /home/rares/corvus/out/soong/build.ninja Android.bp
error: hardware/google/pixel/vibrator/drv2624/apex/Android.bp:11:23: unrecognized property "use_vndk_as_stable"
13:40:20 soong bootstrap failed with: exit status 1
#### failed to build some targets (4 seconds) ####
[email protected]:~/corvus$
NEW ERORR!!!
[email protected]:~/corvus$ m
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=11
CORVUS_VERSION=Corvus_v17.0-Vanguard-sweet-21122021-Unofficial-0844
TARGET_PRODUCT=corvus_sweet
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
BUILD_ID=RD2A.211001.002
OUT_DIR=/home/rares/corvus/out
PRODUCT_SOONG_NAMESPACES=vendor/xiaomi/sweet device/xiaomi/sweet packages/apps/Bluetooth hardware/qcom-caf/sm8150 vendor/qcom/opensource/commonsys-intf/displa
y vendor/qcom/opensource/data-ipa-cfg-mgr vendor/qcom/opensource/dataservices frameworks/av/camera/cameraserver frameworks/av/services/camera/libcameraservice
hardware/qcom-caf/common/fwk-detect
============================================
wildcard(/home/rares/corvus/out/target/product/sweet/clean_steps.mk) was changed, regenerating...
$(shell date -u +%H%M) was changed, regenerating...
[ 99% 24412/24643] including art/Android.mk ...
Disabling ART_BUILD_TARGET_DEBUG
Disabling ART_BUILD_HOST_DEBUG
[ 20% 24903/120949] build /home/rares/corvus/out/target/common/obj/all-event-log-tags.txt
frameworks/base/services/core/java/com/android/server/wm/EventLogTags.logtags:39: warning: tag "wm_on_paused_called" (30021) duplicated in frameworks/base/cor
e/java/android/app/EventLogTags.logtags:9
frameworks/base/services/core/java/com/android/server/wm/EventLogTags.logtags:41: warning: tag "wm_on_resume_called" (30022) duplicated in frameworks/base/cor
e/java/android/app/EventLogTags.logtags:11
frameworks/base/services/core/java/com/android/server/wm/EventLogTags.logtags:50: warning: tag "wm_stop_activity" (30048) duplicated in frameworks/base/core/j
ava/android/app/EventLogTags.logtags:14
frameworks/base/services/core/java/com/android/server/wm/EventLogTags.logtags:56: warning: tag "wm_add_to_stopping" (30066) duplicated in frameworks/base/core
/java/android/app/EventLogTags.logtags:35
packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/EventLogTags.logtags:6: warning: tag "lock_screen_type" (90200) duplicate
d in packages/apps/Settings/src/com/android/settings/EventLogTags.logtags:6
packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/EventLogTags.logtags:9: warning: tag "exp_det_device_admin_activated_by_u
ser" (90201) duplicated in packages/apps/Settings/src/com/android/settings/EventLogTags.logtags:9
packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/EventLogTags.logtags:12: warning: tag "exp_det_device_admin_declined_by_u
ser" (90202) duplicated in packages/apps/Settings/src/com/android/settings/EventLogTags.logtags:12
packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/EventLogTags.logtags:15: warning: tag "exp_det_device_admin_uninstalled_b
y_user" (90203) duplicated in packages/apps/Settings/src/com/android/settings/EventLogTags.logtags:15
packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/EventLogTags.logtags:18: warning: tag "settings_latency" (90204) duplicat
ed in packages/apps/Settings/src/com/android/settings/EventLogTags.logtags:18
vendor/qcom/opensource/commonsys/system/bt/EventLogTags.logtags:36: warning: tag "bt_hci_timeout" (1010000) duplicated in system/bt/EventLogTags.logtags:36
vendor/qcom/opensource/commonsys/system/bt/EventLogTags.logtags:37: warning: tag "bt_config_source" (1010001) duplicated in system/bt/EventLogTags.logtags:37
vendor/qcom/opensource/commonsys/system/bt/EventLogTags.logtags:38: warning: tag "bt_hci_unknown_type" (1010002) duplicated in system/bt/EventLogTags.logtags:
38
[ 22% 26783/120949] build /home/rares/corvus/out/target/product/sweet/system/etc/event-log-tags
frameworks/base/services/core/java/com/android/server/wm/EventLogTags.logtags:39: warning: tag "wm_on_paused_called" (30021) duplicated in frameworks/base/cor
e/java/android/app/EventLogTags.logtags:9
frameworks/base/services/core/java/com/android/server/wm/EventLogTags.logtags:41: warning: tag "wm_on_resume_called" (30022) duplicated in frameworks/base/cor
e/java/android/app/EventLogTags.logtags:11
frameworks/base/services/core/java/com/android/server/wm/EventLogTags.logtags:50: warning: tag "wm_stop_activity" (30048) duplicated in frameworks/base/core/j
ava/android/app/EventLogTags.logtags:14
frameworks/base/services/core/java/com/android/server/wm/EventLogTags.logtags:56: warning: tag "wm_add_to_stopping" (30066) duplicated in frameworks/base/core
/java/android/app/EventLogTags.logtags:35
packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/EventLogTags.logtags:6: warning: tag "lock_screen_type" (90200) duplicate
d in packages/apps/Settings/src/com/android/settings/EventLogTags.logtags:6
packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/EventLogTags.logtags:9: warning: tag "exp_det_device_admin_activated_by_u
ser" (90201) duplicated in packages/apps/Settings/src/com/android/settings/EventLogTags.logtags:9
packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/EventLogTags.logtags:12: warning: tag "exp_det_device_admin_declined_by_u
ser" (90202) duplicated in packages/apps/Settings/src/com/android/settings/EventLogTags.logtags:12
packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/EventLogTags.logtags:15: warning: tag "exp_det_device_admin_uninstalled_b
y_user" (90203) duplicated in packages/apps/Settings/src/com/android/settings/EventLogTags.logtags:15
packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/EventLogTags.logtags:18: warning: tag "settings_latency" (90204) duplicat
ed in packages/apps/Settings/src/com/android/settings/EventLogTags.logtags:18
[ 23% 27861/120949] Building Kernel Config
make: Entering directory '/home/rares/corvus/kernel/xiaomi/sweet'
make[1]: Entering directory '/home/rares/corvus/out/target/product/sweet/obj/KERNEL_OBJ'
GEN ./Makefile
HOSTCC scripts/basic/fixdep
HOSTCC scripts/kconfig/conf.o
SHIPPED scripts/kconfig/zconf.tab.c
SHIPPED scripts/kconfig/zconf.lex.c
clang-11: warning: argument unused during compilation: '-fuse-ld=lld' [-Wunused-command-line-argument]
HOSTCC scripts/kconfig/zconf.tab.o
clang-11: warning: argument unused during compilation: '-fuse-ld=lld' [-Wunused-command-line-argument]
HOSTLD scripts/kconfig/conf
drivers/misc/Kconfig:624:warning: config symbol defined without type
#
# configuration written to .config
#
make[1]: Leaving directory '/home/rares/corvus/out/target/product/sweet/obj/KERNEL_OBJ'
make: Leaving directory '/home/rares/corvus/kernel/xiaomi/sweet'
make: Entering directory '/home/rares/corvus/kernel/xiaomi/sweet'
make[1]: Entering directory '/home/rares/corvus/out/target/product/sweet/obj/KERNEL_OBJ'
GEN ./Makefile
scripts/kconfig/conf --savedefconfig=defconfig Kconfig
drivers/misc/Kconfig:624:warning: config symbol defined without type
make[1]: Leaving directory '/home/rares/corvus/out/target/product/sweet/obj/KERNEL_OBJ'
make: Leaving directory '/home/rares/corvus/kernel/xiaomi/sweet'
[ 23% 29022/120949] //bionic/libc:common_libc versioner preprocess include
warning: attempted to generate guard with empty availability: obsoleted = 21
warning: attempted to generate guard with empty availability: obsoleted = 23
[ 27% 33520/120949] //bionic/libc:libc_bionic clang arch-arm/generic/bionic/memcmp.S [arm]
bionic/libc/arch-arm/generic/bionic/memcmp.S:99:9: warning: applying IT instruction to more than one subsequent instruction is deprecated
ittt eq
^
[ 27% 33546/120949] //bionic/libc:libc_bionic clang arch-arm/cortex-a15/bionic/strlen.S [arm]
bionic/libc/arch-arm/cortex-a15/bionic/strlen.S:120:5: warning: applying IT instruction to more than one subsequent instruction is deprecated
itt eq
^
bionic/libc/arch-arm/cortex-a15/bionic/strlen.S:140:5: warning: applying IT instruction to more than one subsequent instruction is deprecated
itt ne
^
bionic/libc/arch-arm/cortex-a15/bionic/strlen.S:141:5: warning: deprecated instruction in IT block
ornne r3, r3, r5
^
[ 27% 33569/120949] //bionic/libc:libc_bionic clang arch-arm/generic/bionic/memcmp.S [arm apex10000]
bionic/libc/arch-arm/generic/bionic/memcmp.S:99:9: warning: applying IT instruction to more than one subsequent instruction is deprecated
ittt eq
^
[ 27% 33596/120949] //bionic/libc:libc_bionic clang arch-arm/cortex-a15/bionic/strlen.S [arm apex10000]
bionic/libc/arch-arm/cortex-a15/bionic/strlen.S:120:5: warning: applying IT instruction to more than one subsequent instruction is deprecated
itt eq
^
bionic/libc/arch-arm/cortex-a15/bionic/strlen.S:140:5: warning: applying IT instruction to more than one subsequent instruction is deprecated
itt ne
^
bionic/libc/arch-arm/cortex-a15/bionic/strlen.S:141:5: warning: deprecated instruction in IT block
ornne r3, r3, r5
^
[ 28% 34387/120949] //bionic/libc:libc.llndk versioner preprocess include
warning: attempted to generate guard with empty availability: obsoleted = 21
warning: attempted to generate guard with empty availability: obsoleted = 23
[ 28% 34394/120949] //bionic/libc:libc.llndk versioner preprocess include
warning: attempted to generate guard with empty availability: obsoleted = 21
warning: attempted to generate guard with empty availability: obsoleted = 23
[ 28% 34396/120949] //bionic/libc:libc.llndk versioner preprocess include [arm]
warning: attempted to generate guard with empty availability: obsoleted = 21
warning: attempted to generate guard with empty availability: obsoleted = 23
[ 28% 34397/120949] //bionic/libc:libc.llndk versioner preprocess include
warning: attempted to generate guard with empty availability: obsoleted = 21
warning: attempted to generate guard with empty availability: obsoleted = 23
[ 31% 37764/120949] //external/compiler-rt:libcompiler_rt clang lib/builtins/arm/comparesf2.S [arm]
external/compiler-rt/lib/builtins/arm/comparesf2.S:99:5: warning: applying IT instruction to more than one subsequent instruction is deprecated
ite ls
^
external/compiler-rt/lib/builtins/arm/comparesf2.S:128:5: warning: applying IT instruction to more than one subsequent instruction is deprecated
ite ls
^
external/compiler-rt/lib/builtins/arm/comparesf2.S:142:5: warning: applying IT instruction to more than one subsequent instruction is deprecated
ite ls
^
[ 31% 38103/120949] //external/compiler-rt:libcompiler_rt clang lib/builtins/arm/comparesf2.S [arm]
external/compiler-rt/lib/builtins/arm/comparesf2.S:99:5: warning: applying IT instruction to more than one subsequent instruction is deprecated
ite ls
^
external/compiler-rt/lib/builtins/arm/comparesf2.S:128:5: warning: applying IT instruction to more than one subsequent instruction is deprecated
ite ls
^
external/compiler-rt/lib/builtins/arm/comparesf2.S:142:5: warning: applying IT instruction to more than one subsequent instruction is deprecated
ite ls
^
[ 52% 63435/120949] //external/dtc:dtc gen yacc [linux_glibc]
external/dtc/dtc-parser.y: warning: 3 shift/reduce conflicts [-Wconflicts-sr]
[ 52% 63445/120949] build /home/rares/corvus/out/target/product/sweet/obj/FAKE/sepolicy_neverallows_intermediates/sepolicy_neverallows
FAILED: /home/rares/corvus/out/target/product/sweet/obj/FAKE/sepolicy_neverallows_intermediates/sepolicy_neverallows
/bin/bash -c "(ASAN_OPTIONS=detect_leaks=0 /home/rares/corvus/out/host/linux-x86/bin/checkpolicy -M -c 30 -o /home/rares/corvus/out/target/product/sw
eet/obj/FAKE/sepolicy_neverallows_intermediates/sepolicy_neverallows.tmp /home/rares/corvus/out/target/product/sweet/obj/FAKE/sepolicy_neverallows_intermediat
es/policy.conf ) && (/home/rares/corvus/out/host/linux-x86/bin/sepolicy-analyze /home/rares/corvus/out/target/product/sweet/obj/FAKE/sepolicy_neverallows_inte
rmediates/sepolicy_neverallows.tmp neverallow -w -f /home/rares/corvus/out/target/product/sweet/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 as
sertion. Please fix\" 1>&2; echo \"the policy.\" 1>&2; exit 1 ) ) && (touch /home/rares/corvus/out/target/product/sweet/obj/FAKE/sepolicy_neveral
lows_intermediates/sepolicy_neverallows.tmp ) && (mv /home/rares/corvus/out/target/product/sweet/obj/FAKE/sepolicy_neverallows_intermediates/sepolicy_neverall
ows.tmp /home/rares/corvus/out/target/product/sweet/obj/FAKE/sepolicy_neverallows_intermediates/sepolicy_neverallows )"
device/xiaomi/sweet/sepolicy/private/hal_livedisplay_default.te:2:ERROR 'attribute hal_lineage_livedisplay_server is not declared' at token ';' on line 65473:
#line 2
typeattribute shal_livedisplay_default hal_lineage_livedisplay_server;
checkpolicy: error(s) encountered while parsing configuration
12:15:03 ninja failed with: exit status 1
#### failed to build some targets (01:31:03 (hh:mm:ss)) ####
I guess there is some sepolicy error

Categories

Resources