[Galaxy Note 10.1 (2014 Edition) Original Android D] supergrobi94:
Thanks for the link. Just checked Python and Java version, they are correct. Ninja is off and Jack configuration changed to 8 GB instead 4 GB.

After repo sync and start brunch i get this error:

make: *** No rule to make target '/home/lineage/android/system/out/target/common/obj/APPS/BasicDreams_intermediates/with-local/classes.dex', needed by '/home/lineage/android/system/out/target/common/obj/APPS/BasicDreams_intermediates/classes.dex'. Stop.

Solved this error with rm -rf packages/screensavers/Basic like here: https://xdaforums.com/t/build-error-porting-nougat-to-kenzo.3454046/#post-68553513

But like in the xiaomi kenzo thread after that i get that Bluetooth_intermediates error. Here is the log:

lineage@ubuntu:~/android/system$ rm -rf packages/screensavers/Basic
lineage@ubuntu:~/android/system$ brunch n1awifi
including vendor/cm/vendorsetup.sh
Looking for dependencies in device/samsung/n1awifi
Looking for dependencies in device/samsung/exynos5420-common

============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=7.1.2
LINEAGE_VERSION=14.1-20210516-UNOFFICIAL-n1awifi
TARGET_PRODUCT=lineage_n1awifi
TARGET_BUILD_VARIANT=userdebug
TARGET_BUILD_TYPE=release
TARGET_BUILD_APPS=
TARGET_ARCH=arm
TARGET_ARCH_VARIANT=armv7-a-neon
TARGET_CPU_VARIANT=cortex-a15
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.8.0-53-generic-x86_64-with-Ubuntu-20.04-focal
HOST_CROSS_OS=windows
HOST_CROSS_ARCH=x86
HOST_CROSS_2ND_ARCH=x86_64
HOST_BUILD_TYPE=release
BUILD_ID=NJH47F
OUT_DIR=/home/lineage/android/system/out
============================================
make: Entering directory '/home/lineage/android/system'
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=7.1.2
LINEAGE_VERSION=14.1-20210516-UNOFFICIAL-n1awifi
TARGET_PRODUCT=lineage_n1awifi
TARGET_BUILD_VARIANT=userdebug
TARGET_BUILD_TYPE=release
TARGET_BUILD_APPS=
TARGET_ARCH=arm
TARGET_ARCH_VARIANT=armv7-a-neon
TARGET_CPU_VARIANT=cortex-a15
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.8.0-53-generic-x86_64-with-Ubuntu-20.04-focal
HOST_CROSS_OS=windows
HOST_CROSS_ARCH=x86
HOST_CROSS_2ND_ARCH=x86_64
HOST_BUILD_TYPE=release
BUILD_ID=NJH47F
OUT_DIR=/home/lineage/android/system/out
============================================
find: 'src/android': No such file or directory
find: 'src': No such file or directory
find: '../commonutil/src': No such file or directory
/bin/bash: line 0: cd: cts/tests/libcore/ojluni/resources: No such file or directory
find: '../../libs/commonutil/src': No such file or directory
find: '../../provider/java': No such file or directory
frameworks/av/camera/cameraserver/Android.mk:18: Target has integrated cameraserver into mediaserver. This is weakening security measures introduced in 7.0
find: 'src/android/bluetooth/client/pbap': No such file or directory
find: '/home/lineage/android/system/out/target/common/obj/SHARED_LIBRARIES/libwifi-hal-mock_intermediates': No such file or directory
find: 'dummy': No such file or directory
find: 'dummy': No such file or directory
find: 'dummy': No such file or directory
find: 'dummy': No such file or directory
build/core/binary.mk:37: libgdmcprov uses kernel headers, but does not depend on them!
build/core/binary.mk:37: provisioningagent uses kernel headers, but does not depend on them!
build/core/binary.mk:37: libcommonpawrapper uses kernel headers, but does not depend on them!
find: 'InCallUI/src-N': No such file or directory
find: '../ContactsCommon/src-N': No such file or directory
find: '../PhoneCommon/src-N': No such file or directory
find: 'InCallUI/src-N': No such file or directory
find: '../ContactsCommon/src-N': No such file or directory
find: '../PhoneCommon/src-N': No such file or directory
find: 'dummy': No such file or directory
find: 'dummy': No such file or directory
build/core/Makefile:34: warning: overriding recipe for target '/home/lineage/android/system/out/target/product/n1awifi/system/etc/media_codecs_ffmpeg.xml'
build/core/base_rules.mk:320: warning: ignoring old recipe for target '/home/lineage/android/system/out/target/product/n1awifi/system/etc/media_codecs_ffmpeg.xml'
build/core/Makefile:34: warning: overriding recipe for target '/home/lineage/android/system/out/target/product/n1awifi/system/etc/wifi/wpa_supplicant.conf'
build/core/base_rules.mk:320: warning: ignoring old recipe for target '/home/lineage/android/system/out/target/product/n1awifi/system/etc/wifi/wpa_supplicant.conf'
build/core/Makefile:34: warning: overriding recipe for target '/home/lineage/android/system/out/target/product/n1awifi/system/lib/libexynoscamera.so'
build/core/base_rules.mk:320: warning: ignoring old recipe for target '/home/lineage/android/system/out/target/product/n1awifi/system/lib/libexynoscamera.so'
build/core/Makefile:34: warning: overriding recipe for target '/home/lineage/android/system/out/target/product/n1awifi/system/lib/omx/libOMX.Exynos.AVC.Encoder.so'
build/core/base_rules.mk:320: warning: ignoring old recipe for target '/home/lineage/android/system/out/target/product/n1awifi/system/lib/omx/libOMX.Exynos.AVC.Encoder.so'
Generate Toybox links: acpi arp base64 basename blkid blockdev bzcat cal cat chattr chcon chgrp chmod chown chroot chrt cksum clear cmp comm cp cpio cut date dd df diff dirname dmesg dos2unix du echo egrep env expand expr fallocate false fdisk fgrep file find flock free freeramdisk fsfreeze fstype ftpget ftpput getenforce getfattr getprop grep groups head help host hostname hwclock id ifconfig inotifyd insmod install ionice iorenice iotop kill killall ln load_policy log logname losetup ls lsattr lsmod lsof lspci lsusb makedevs md5sum mkdir mkfifo mknod mkswap mktemp modinfo more mount mountpoint mv nbd-client nc netcat netstat nice nl nohup nproc od partprobe paste patch pgrep pidof pivot_root pkill pmap printenv printf ps pwd pwdx readahead readlink realpath renice reset resize restorecon rev rfkill rm rmdir rmmod route runcon sed sendevent seq setenforce setfattr setprop setsid sha1sum sha224sum sha256sum sha384sum sha512sum sleep sort split start stat stop strings swapoff swapon sync sysctl tac tail tar taskset tee telnet test time timeout top touch tr traceroute traceroute6 true truncate tty tunctl ulimit umount uname uniq unix2dos uptime usleep vconfig vmstat watch wc which whoami xargs xxd xzcat yes
make: *** No rule to make target '/home/lineage/android/system/out/target/common/obj/APPS/Bluetooth_intermediates/with-local/classes.dex', needed by '/home/lineage/android/system/out/target/common/obj/APPS/Bluetooth_intermediates/classes.dex'. Stop.
make: *** Waiting for unfinished jobs....
make: Leaving directory '/home/lineage/android/system'

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