[Fire HD 8 and HD 10 Original Android Development] billyrich:
I tried to compile the rom, but I get up to 2% then I get the following error:

FAILED: out/target/product/karnak/obj/KERNEL_OBJ/.config
/bin/bash -c "(PATH=/srv/tmp/merged/out/host/linux-x86/bin:\$PATH PATH=/srv/tmp/merged/prebuilts/gcc/linux-x86/aarch64/aarch64-linux-android-4.9/bin:\$PATH PERL5LIB=/srv/tmp/merged/prebuilts/tools-lineage/common/perl-base PATH=/srv/tmp/merged/prebuilts/tools-lineage/linux-x86/bin:/srv/tmp/merged/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.9/bin:\$PATH BISON_PKGDATADIR=/srv/tmp/merged/prebuilts/build-tools/common/bison /srv/tmp/merged/prebuilts/build-tools/linux-x86/bin/make -j4 CFLAGS_MODULE=\"-fno-pic\" CPATH=\"/usr/include:/usr/include/x86_64-linux-gnu\" HOSTLDFLAGS=\"-L/usr/lib/x86_64-linux-gnu -L/usr/lib64 -fuse-ld=lld\" HOSTCC=/srv/tmp/merged/prebuilts/clang/host/linux-x86/clang-r450784d/bin/clang HOSTCXX=/srv/tmp/merged/prebuilts/clang/host/linux-x86/clang-r450784d/bin/clang++ LEX=/srv/tmp/merged/prebuilts/build-tools/linux-x86/bin/flex YACC=/srv/tmp/merged/prebuilts/build-tools/linux-x86/bin/bison M4=/srv/tmp/merged/prebuilts/build-tools/linux-x86/bin/m4 -C kernel/amazon/karnak O=/srv/tmp/merged/out/target/product/karnak/obj/KERNEL_OBJ ARCH=arm64 CROSS_COMPILE=\"/usr/bin/ccache /srv/tmp/merged/prebuilts/linaro/linux-x86/aarch64/aarch64-linux-gnu/bin/aarch64-linux-gnu-\" CROSS_COMPILE_ARM32=\"/srv/tmp/merged/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.9/bin/arm-linux-androidkernel-\" CROSS_COMPILE_COMPAT=\"/srv/tmp/merged/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.9/bin/arm-linux-androidkernel-\" VARIANT_DEFCONFIG=lineageos_karnak_defconfig SELINUX_DEFCONFIG= lineageos_karnak_defconfig ) && (if [ \"\" = \"none\" ]; then kernel/amazon/karnak/scripts/config --file out/target/product/karnak/obj/KERNEL_OBJ/.config -d LTO_CLANG -e LTO_NONE -d LTO_CLANG_THIN -d LTO_CLANG_FULL -d THINLTO; PATH=/srv/tmp/merged/out/host/linux-x86/bin:\$PATH PATH=/srv/tmp/merged/prebuilts/gcc/linux-x86/aarch64/aarch64-linux-android-4.9/bin:\$PATH PERL5LIB=/srv/tmp/merged/prebuilts/tools-lineage/common/perl-base PATH=/srv/tmp/merged/prebuilts/tools-lineage/linux-x86/bin:/srv/tmp/merged/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.9/bin:\$PATH BISON_PKGDATADIR=/srv/tmp/merged/prebuilts/build-tools/common/bison /srv/tmp/merged/prebuilts/build-tools/linux-x86/bin/make -j4 CFLAGS_MODULE=\"-fno-pic\" CPATH=\"/usr/include:/usr/include/x86_64-linux-gnu\" HOSTLDFLAGS=\"-L/usr/lib/x86_64-linux-gnu -L/usr/lib64 -fuse-ld=lld\" HOSTCC=/srv/tmp/merged/prebuilts/clang/host/linux-x86/clang-r450784d/bin/clang HOSTCXX=/srv/tmp/merged/prebuilts/clang/host/linux-x86/clang-r450784d/bin/clang++ LEX=/srv/tmp/merged/prebuilts/build-tools/linux-x86/bin/flex YACC=/srv/tmp/merged/prebuilts/build-tools/linux-x86/bin/bison M4=/srv/tmp/merged/prebuilts/build-tools/linux-x86/bin/m4 -C kernel/amazon/karnak O=/srv/tmp/merged/out/target/product/karnak/obj/KERNEL_OBJ ARCH=arm64 CROSS_COMPILE=\"/usr/bin/ccache /srv/tmp/merged/prebuilts/linaro/linux-x86/aarch64/aarch64-linux-gnu/bin/aarch64-linux-gnu-\" CROSS_COMPILE_ARM32=\"/srv/tmp/merged/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.9/bin/arm-linux-androidkernel-\" CROSS_COMPILE_COMPAT=\"/srv/tmp/merged/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.9/bin/arm-linux-androidkernel-\" olddefconfig; elif [ \"\" = \"thin\" ]; then kernel/amazon/karnak/scripts/config --file out/target/product/karnak/obj/KERNEL_OBJ/.config -e LTO_CLANG -d LTO_NONE -e LTO_CLANG_THIN -d LTO_CLANG_FULL -e THINLTO; PATH=/srv/tmp/merged/out/host/linux-x86/bin:\$PATH PATH=/srv/tmp/merged/prebuilts/gcc/linux-x86/aarch64/aarch64-linux-android-4.9/bin:\$PATH PERL5LIB=/srv/tmp/merged/prebuilts/tools-lineage/common/perl-base PATH=/srv/tmp/merged/prebuilts/tools-lineage/linux-x86/bin:/srv/tmp/merged/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.9/bin:\$PATH BISON_PKGDATADIR=/srv/tmp/merged/prebuilts/build-tools/common/bison /srv/tmp/merged/prebuilts/build-tools/linux-x86/bin/make -j4 CFLAGS_MODULE=\"-fno-pic\" CPATH=\"/usr/include:/usr/include/x86_64-linux-gnu\" HOSTLDFLAGS=\"-L/usr/lib/x86_64-linux-gnu -L/usr/lib64 -fuse-ld=lld\" HOSTCC=/srv/tmp/merged/prebuilts/clang/host/linux-x86/clang-r450784d/bin/clang HOSTCXX=/srv/tmp/merged/prebuilts/clang/host/linux-x86/clang-r450784d/bin/clang++ LEX=/srv/tmp/merged/prebuilts/build-tools/linux-x86/bin/flex YACC=/srv/tmp/merged/prebuilts/build-tools/linux-x86/bin/bison M4=/srv/tmp/merged/prebuilts/build-tools/linux-x86/bin/m4 -C kernel/amazon/karnak O=/srv/tmp/merged/out/target/product/karnak/obj/KERNEL_OBJ ARCH=arm64 CROSS_COMPILE=\"/usr/bin/ccache /srv/tmp/merged/prebuilts/linaro/linux-x86/aarch64/aarch64-linux-gnu/bin/aarch64-linux-gnu-\" CROSS_COMPILE_ARM32=\"/srv/tmp/merged/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.9/bin/arm-linux-androidkernel-\" CROSS_COMPILE_COMPAT=\"/srv/tmp/merged/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.9/bin/arm-linux-androidkernel-\" olddefconfig; elif [ \"\" = \"full\" ]; then kernel/amazon/karnak/scripts/config --file out/target/product/karnak/obj/KERNEL_OBJ/.config -e LTO_CLANG -d LTO_NONE -d LTO_CLANG_THIN -e LTO_CLANG_FULL -d THINLTO; PATH=/srv/tmp/merged/out/host/linux-x86/bin:\$PATH PATH=/srv/tmp/merged/prebuilts/gcc/linux-x86/aarch64/aarch64-linux-android-4.9/bin:\$PATH PERL5LIB=/srv/tmp/merged/prebuilts/tools-lineage/common/perl-base PATH=/srv/tmp/merged/prebuilts/tools-lineage/linux-x86/bin:/srv/tmp/merged/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.9/bin:\$PATH BISON_PKGDATADIR=/srv/tmp/merged/prebuilts/build-tools/common/bison /srv/tmp/merged/prebuilts/build-tools/linux-x86/bin/make -j4 CFLAGS_MODULE=\"-fno-pic\" CPATH=\"/usr/include:/usr/include/x86_64-linux-gnu\" HOSTLDFLAGS=\"-L/usr/lib/x86_64-linux-gnu -L/usr/lib64 -fuse-ld=lld\" HOSTCC=/srv/tmp/merged/prebuilts/clang/host/linux-x86/clang-r450784d/bin/clang HOSTCXX=/srv/tmp/merged/prebuilts/clang/host/linux-x86/clang-r450784d/bin/clang++ LEX=/srv/tmp/merged/prebuilts/build-tools/linux-x86/bin/flex YACC=/srv/tmp/merged/prebuilts/build-tools/linux-x86/bin/bison M4=/srv/tmp/merged/prebuilts/build-tools/linux-x86/bin/m4 -C kernel/amazon/karnak O=/srv/tmp/merged/out/target/product/karnak/obj/KERNEL_OBJ ARCH=arm64 CROSS_COMPILE=\"/usr/bin/ccache /srv/tmp/merged/prebuilts/linaro/linux-x86/aarch64/aarch64-linux-gnu/bin/aarch64-linux-gnu-\" CROSS_COMPILE_ARM32=\"/srv/tmp/merged/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.9/bin/arm-linux-androidkernel-\" CROSS_COMPILE_COMPAT=\"/srv/tmp/merged/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.9/bin/arm-linux-androidkernel-\" olddefconfig; fi ) && (if [ ! -z \"\" ]; then echo \"Overriding kernel config with ''\"; echo >> out/target/product/karnak/obj/KERNEL_OBJ/.config; PATH=/srv/tmp/merged/out/host/linux-x86/bin:\$PATH PATH=/srv/tmp/merged/prebuilts/gcc/linux-x86/aarch64/aarch64-linux-android-4.9/bin:\$PATH PERL5LIB=/srv/tmp/merged/prebuilts/tools-lineage/common/perl-base PATH=/srv/tmp/merged/prebuilts/tools-lineage/linux-x86/bin:/srv/tmp/merged/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.9/bin:\$PATH BISON_PKGDATADIR=/srv/tmp/merged/prebuilts/build-tools/common/bison /srv/tmp/merged/prebuilts/build-tools/linux-x86/bin/make -j4 CFLAGS_MODULE=\"-fno-pic\" CPATH=\"/usr/include:/usr/include/x86_64-linux-gnu\" HOSTLDFLAGS=\"-L/usr/lib/x86_64-linux-gnu -L/usr/lib64 -fuse-ld=lld\" HOSTCC=/srv/tmp/merged/prebuilts/clang/host/linux-x86/clang-r450784d/bin/clang HOSTCXX=/srv/tmp/merged/prebuilts/clang/host/linux-x86/clang-r450784d/bin/clang++ LEX=/srv/tmp/merged/prebuilts/build-tools/linux-x86/bin/flex YACC=/srv/tmp/merged/prebuilts/build-tools/linux-x86/bin/bison M4=/srv/tmp/merged/prebuilts/build-tools/linux-x86/bin/m4 -C kernel/amazon/karnak O=/srv/tmp/merged/out/target/product/karnak/obj/KERNEL_OBJ ARCH=arm64 CROSS_COMPILE=\"/usr/bin/ccache /srv/tmp/merged/prebuilts/linaro/linux-x86/aarch64/aarch64-linux-gnu/bin/aarch64-linux-gnu-\" CROSS_COMPILE_ARM32=\"/srv/tmp/merged/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.9/bin/arm-linux-androidkernel-\" CROSS_COMPILE_COMPAT=\"/srv/tmp/merged/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.9/bin/arm-linux-androidkernel-\" oldconfig; fi )"
make: Entering directory '/srv/tmp/merged/kernel/amazon/karnak'
make[1]: Entering directory '/srv/tmp/merged/out/target/product/karnak/obj/KERNEL_OBJ'
HOSTCC scripts/basic/fixdep
GEN ./Makefile
clang-14: error: unable to execute command: Executable "ld" doesn't exist!
clang-14: error: linker command failed with exit code 1 (use -v to see invocation)

I use ubuntu 22.04.

Do you have any ideas on how to solve it?