[Android Q&A, Help & Troubleshooting] 2003_Frost:
For the past weeks I've been trying to compile lineage 14.1 (cm-14.1 branch) for my phone and I'm getting this error:

https://pastebin.com/ChEsxc8n

[ 98% 857/872] Target boot image: /home/fr...d/Lineage/out/target/product/Z01M/boot.img
/home/frost/Android/Lineage/out/target/product/Z01M/boot.img maxsize=68395008 blocksize=135168 total=24012800 reserve=811008
[ 98% 858/872] ----- Making recovery ramdisk ------
Copying baseline ramdisk...
Modifying ramdisk contents...
cp: cannot stat '/home/frost/Android/Lineage/out/target/product/Z01M/root/init.recovery.*.rc': No such file or directory
----- Making uncompressed recovery ramdisk ------
[ 98% 860/872] ----- Making recovery image ------
+/home/frost/Android/Lineage/out/target/product/Z01M/recovery.img maxsize=68395008 blocksize=135168 total=30031872 reserve=811008
----- Made recovery image: /home/frost/Android/Lineage/out/target/product/Z01M/recovery.img --------
[ 99% 864/872] build /home/frost/Android/L...ge/out/target/product/Z01M/obj/NOTICE.html
Combining NOTICE files into HTML
Combining NOTICE files into text
[ 99% 867/872] Construct recovery from boot
failed to reconstruct target deflate chunk 1 [(null)]; treating as normal
chunk 0: type 0 start 0 len 22478858
chunk 1: type 2 start 22478858 len 3942144
chunk 2: type 0 start 24012269 len 531
Construct patches for 3 chunks...
patch 0 is 215 bytes (of 22478858)
patch 1 is 5215187 bytes (of 1533411)
patch 2 is 181 bytes (of 531)
chunk 0: normal ( 0, 22478858) 215
chunk 1: deflate ( 22478858, 7552091) 5215187 (null)
chunk 2: normal ( 30030949, 923) 181
[ 99% 868/872] Target system fs image: /ho...AGING/systemimage_intermediates/system.img
BuildImage: in_dir = /home/frost/Android/Lineage/out/target/product/Z01M/system, out_file = /home/frost/Android/Lineage/out/target/product/Z01M/obj/PACKAGING/systemimage_intermediates/system.img
fs type is not ext4
Running: mkuserimg.sh -s /home/frost/Android/Lineage/out/target/product/Z01M/system /home/frost/Android/Lineage/out/target/product/Z01M/obj/PACKAGING/systemimage_intermediates/system.img ext4 system 4831838208 -D /home/frost/Android/Lineage/out/target/product/Z01M/system -L system /home/frost/Android/Lineage/out/target/product/Z01M/root/file_contexts.bin
make_ext4fs -s -T -1 -S /home/frost/Android/Lineage/out/target/product/Z01M/root/file_contexts.bin -L system -l 4831838208 -a system /home/frost/Android/Lineage/out/target/product/Z01M/obj/PACKAGING/systemimage_intermediates/system.img /home/frost/Android/Lineage/out/target/product/Z01M/system /home/frost/Android/Lineage/out/target/product/Z01M/system
Creating filesystem with parameters:
Size: 4831838208
Block size: 4096
Blocks per group: 32768
Inodes per group: 8192
Inode size: 256
Journal blocks: 18432
Label: system
Blocks: 1179648
Block groups: 36
Reserved block group size: 287
Created filesystem with 5340/294912 inodes and 362434/1179648 blocks
Running ['mkuserimg.sh', '-s', '/home/frost/Android/Lineage/out/target/product/Z01M/system', '/home/frost/Android/Lineage/out/target/product/Z01M/obj/PACKAGING/systemimage_intermediates/system.img', 'ext4', 'system', '4831838208', '-D', '/home/frost/Android/Lineage/out/target/product/Z01M/system', '-L', 'system', '/home/frost/Android/Lineage/out/target/product/Z01M/root/file_contexts.bin'] command, exit code = 0
[ 99% 869/872] Install system fs image: /h...Lineage/out/target/product/Z01M/system.img
/home/frost/Android/Lineage/out/target/product/Z01M/system.img+/home/frost/Android/Lineage/out/target/product/Z01M/obj/PACKAGING/recovery_patch_intermediates/recovery_from_boot.p maxsize=4932956160 blocksize=135168 total=1408239079 reserve=49876992
[ 99% 870/872] Package target files: /home...iates/aosp_Z01M-target_files-eng.frost.zip
FAILED: /bin/bash -c "(rm -rf /home/frost/Android/Lineage/out/target/product/Z01M/obj/PACKAGING/target_files_intermediates/aosp_Z01M-target_files-eng.frost.zip /home/frost/Android/Lineage/out/target/product/Z01M/obj/PACKAGING/target_files_intermediates/aosp_Z01M-target_files-eng.frost ) && (mkdir -p /home/frost/Android/Lineage/out/target/product/Z01M/obj/PACKAGING/target_files_intermediates/ /home/frost/Android/Lineage/out/target/product/Z01M/obj/PACKAGING/target_files_intermediates/aosp_Z01M-target_files-eng.frost ) && (mkdir -p /home/frost/Android/Lineage/out/target/product/Z01M/obj/PACKAGING/target_files_intermediates/aosp_Z01M-target_files-eng.frost/RECOVERY ) && (if [ -d \"/home/frost/Android/Lineage/out/target/product/Z01M/recovery/root\" -a \"\$(ls -A /home/frost/Android/Lineage/out/target/product/Z01M/recovery/root)\" ]; then mkdir -p /home/frost/Android/Lineage/out/target/product/Z01M/obj/PACKAGING/target_files_intermediates/aosp_Z01M-target_files-eng.frost/RECOVERY/RAMDISK && /home/frost/Android/Lineage/out/host/linux-x86/bin/acp -rd /home/frost/Android/Lineage/out/target/product/Z01M/recovery/root/* /home/frost/Android/Lineage/out/target/product/Z01M/obj/PACKAGING/target_files_intermediates/aosp_Z01M-target_files-eng.frost/RECOVERY/RAMDISK; fi ) && (if [ -d \"/home/frost/Android/Lineage/out/target/product/Z01M/install\" -a \"\$(ls -A /home/frost/Android/Lineage/out/target/product/Z01M/install)\" ]; then mkdir -p /home/frost/Android/Lineage/out/target/product/Z01M/obj/PACKAGING/target_files_intermediates/aosp_Z01M-target_files-eng.frost/INSTALL && /home/frost/Android/Lineage/out/host/linux-x86/bin/acp -rd /home/frost/Android/Lineage/out/target/product/Z01M/install/* /home/frost/Android/Lineage/out/target/product/Z01M/obj/PACKAGING/target_files_intermediates/aosp_Z01M-target_files-eng.frost/INSTALL; fi ) && (/home/frost/Android/Lineage/out/host/linux-x86/bin/acp /home/frost/Android/Lineage/out/target/product/Z01M/kernel /home/frost/Android/Lineage/out/target/product/Z01M/obj/PACKAGING/target_files_intermediates/aosp_Z01M-target_files-eng.frost/RECOVERY/kernel ) && (echo \"0x00000100\" > /home/frost/Android/Lineage/out/target/product/Z01M/obj/PACKAGING/target_files_intermediates/aosp_Z01M-target_files-eng.frost/RECOVERY/tags_offset ) && (echo \"cmd_line='console=ttyHSL0,115200,n8 androidboot.console=ttyHSL0 androidboot.hardware=qcom msm_rtb.filter=0x237 ehci-hcd.park=3 lpm_levels.sleep_disabled=1 androidboot.bootdevice=7824900.sdhci earlycon=msm_hsl_uart,0x78af000 androidboot.selinux=permissive buildvariant=eng\" > /home/frost/Android/Lineage/out/target/product/Z01M/obj/PACKAGING/target_files_intermediates/aosp_Z01M-target_files-eng.frost/RECOVERY/cmdline ) && (echo \"0x80000000\" > /home/frost/Android/Lineage/out/target/product/Z01M/obj/PACKAGING/target_files_intermediates/aosp_Z01M-target_files-eng.frost/RECOVERY/base ) && (echo \"2048\" > /home/frost/Android/Lineage/out/target/product/Z01M/obj/PACKAGING/target_files_intermediates/aosp_Z01M-target_files-eng.frost/RECOVERY/pagesize ) && (echo \"0x01000000\" > /home/frost/Android/Lineage/out/target/product/Z01M/obj/PACKAGING/target_files_intermediates/aosp_Z01M-target_files-eng.frost/RECOVERY/ramdisk_offset ) && (mkdir -p /home/frost/Android/Lineage/out/target/product/Z01M/obj/PACKAGING/target_files_intermediates/aosp_Z01M-target_files-eng.frost/BOOT ) && (if [ -d \"/home/frost/Android/Lineage/out/target/product/Z01M/root\" -a \"\$(ls -A /home/frost/Android/Lineage/out/target/product/Z01M/root)\" ]; then mkdir -p /home/frost/Android/Lineage/out/target/product/Z01M/obj/PACKAGING/target_files_intermediates/aosp_Z01M-target_files-eng.frost/BOOT/RAMDISK && /home/frost/Android/Lineage/out/host/linux-x86/bin/acp -rd /home/frost/Android/Lineage/out/target/product/Z01M/root/* /home/frost/Android/Lineage/out/target/product/Z01M/obj/PACKAGING/target_files_intermediates/aosp_Z01M-target_files-eng.frost/BOOT/RAMDISK; fi ) && (/home/frost/Android/Lineage/out/host/linux-x86/bin/acp /home/frost/Android/Lineage/out/target/product/Z01M/kernel /home/frost/Android/Lineage/out/target/product/Z01M/obj/PACKAGING/target_files_intermediates/aosp_Z01M-target_files-eng.frost/BOOT/kernel ) && (echo \"0x00000100\" > /home/frost/Android/Lineage/out/target/product/Z01M/obj/PACKAGING/target_files_intermediates/aosp_Z01M-target_files-eng.frost/BOOT/tags_offset ) && (echo \"cmd_line='console=ttyHSL0,115200,n8 androidboot.console=ttyHSL0 androidboot.hardware=qcom msm_rtb.filter=0x237 ehci-hcd.park=3 lpm_levels.sleep_disabled=1 androidboot.bootdevice=7824900.sdhci earlycon=msm_hsl_uart,0x78af000 androidboot.selinux=permissive buildvariant=eng\" > /home/frost/Android/Lineage/out/target/product/Z01M/obj/PACKAGING/target_files_intermediates/aosp_Z01M-target_files-eng.frost/BOOT/cmdline ) && (echo \"0x80000000\" > /home/frost/Android/Lineage/out/target/product/Z01M/obj/PACKAGING/target_files_intermediates/aosp_Z01M-target_files-eng.frost/BOOT/base ) && (echo \"2048\" > /home/frost/Android/Lineage/out/target/product/Z01M/obj/PACKAGING/target_files_intermediates/aosp_Z01M-target_files-eng.frost/BOOT/pagesize ) && (echo \"0x01000000\" > /home/frost/Android/Lineage/out/target/product/Z01M/obj/PACKAGING/target_files_intermediates/aosp_Z01M-target_files-eng.frost/BOOT/ramdisk_offset ) && (if [ -d \"/home/frost/Android/Lineage/out/target/product/Z01M/system\" -a \"\$(ls -A /home/frost/Android/Lineage/out/target/product/Z01M/system)\" ]; then mkdir -p /home/frost/Android/Lineage/out/target/product/Z01M/obj/PACKAGING/target_files_intermediates/aosp_Z01M-target_files-eng.frost/SYSTEM && /home/frost/Android/Lineage/out/host/linux-x86/bin/acp -rd /home/frost/Android/Lineage/out/target/product/Z01M/system/* /home/frost/Android/Lineage/out/target/product/Z01M/obj/PACKAGING/target_files_intermediates/aosp_Z01M-target_files-eng.frost/SYSTEM; fi ) && (if [ -d \"/home/frost/Android/Lineage/out/target/product/Z01M/data\" -a \"\$(ls -A /home/frost/Android/Lineage/out/target/product/Z01M/data)\" ]; then mkdir -p /home/frost/Android/Lineage/out/target/product/Z01M/obj/PACKAGING/target_files_intermediates/aosp_Z01M-target_files-eng.frost/DATA && /home/frost/Android/Lineage/out/host/linux-x86/bin/acp -rd /home/frost/Android/Lineage/out/target/product/Z01M/data/* /home/frost/Android/Lineage/out/target/product/Z01M/obj/PACKAGING/target_files_intermediates/aosp_Z01M-target_files-eng.frost/DATA; fi ) && (mkdir -p /home/frost/Android/Lineage/out/target/product/Z01M/obj/PACKAGING/target_files_intermediates/aosp_Z01M-target_files-eng.frost/BOOTABLE_IMAGES ) && (/home/frost/Android/Lineage/out/host/linux-x86/bin/acp /home/frost/Android/Lineage/out/target/product/Z01M/boot.img /home/frost/Android/Lineage/out/target/product/Z01M/obj/PACKAGING/target_files_intermediates/aosp_Z01M-target_files-eng.frost/BOOTABLE_IMAGES/ ) && (/home/frost/Android/Lineage/out/host/linux-x86/bin/acp /home/frost/Android/Lineage/out/target/product/Z01M/recovery.img /home/frost/Android/Lineage/out/target/product/Z01M/obj/PACKAGING/target_files_intermediates/aosp_Z01M-target_files-eng.frost/BOOTABLE_IMAGES/ ) && (mkdir -p /home/frost/Android/Lineage/out/target/product/Z01M/obj/PACKAGING/target_files_intermediates/aosp_Z01M-target_files-eng.frost/OTA ) && (/home/frost/Android/Lineage/out/host/linux-x86/bin/acp /home/frost/Android/Lineage/out/target/product/Z01M/android-info.txt /home/frost/Android/Lineage/out/target/product/Z01M/obj/PACKAGING/target_files_intermediates/aosp_Z01M-target_files-eng.frost/OTA/ ) && (mkdir -p /home/frost/Android/Lineage/out/target/product/Z01M/obj/PACKAGING/target_files_intermediates/aosp_Z01M-target_files-eng.frost/OTA/bin ) && (/home/frost/Android/Lineage/out/host/linux-x86/bin/acp /home/frost/Android/Lineage/out/target/product/Z01M/obj/EXECUTABLES/updater_intermediates/updater /home/frost/Android/Lineage/out/target/product/Z01M/obj/PACKAGING/target_files_intermediates/aosp_Z01M-target_files-eng.frost/OTA/bin/ ) && (mkdir -p /home/frost/Android/Lineage/out/target/product/Z01M/obj/PACKAGING/target_files_intermediates/aosp_Z01M-target_files-eng.frost/META ) && (/home/frost/Android/Lineage/out/host/linux-x86/bin/acp /home/frost/Android/Lineage/out/target/product/Z01M/obj/PACKAGING/apkcerts_intermediates/aosp_Z01M-apkcerts-eng.frost.txt /home/frost/Android/Lineage/out/target/product/Z01M/obj/PACKAGING/target_files_intermediates/aosp_Z01M-target_files-eng.frost/META/apkcerts.txt ) && (if test -e device/asus/Z01M/../common/releasetools.py; then /home/frost/Android/Lineage/out/host/linux-x86/bin/acp device/asus/Z01M/../common/releasetools.py /home/frost/Android/Lineage/out/target/product/Z01M/obj/PACKAGING/target_files_intermediates/aosp_Z01M-target_files-eng.frost/META/; fi ) && (echo \"\" > /home/frost/Android/Lineage/out/target/product/Z01M/obj/PACKAGING/target_files_intermediates/aosp_Z01M-target_files-eng.frost/META/otakeys.txt ) && (/home/frost/Android/Lineage/out/host/linux-x86/bin/acp /home/frost/Android/Lineage/out/target/product/Z01M/root/file_contexts.bin /home/frost/Android/Lineage/out/target/product/Z01M/obj/PACKAGING/target_files_intermediates/aosp_Z01M-target_files-eng.frost/META/file_contexts.bin ) && (echo \"recovery_api_version=3\" > /home/frost/Android/Lineage/out/target/product/Z01M/obj/PACKAGING/target_files_intermediates/aosp_Z01M-target_files-eng.frost/META/misc_info.txt ) && (echo \"fstab_version=2\" >> /home/frost/Android/Lineage/out/target/product/Z01M/obj/PACKAGING/target_files_intermediates/aosp_Z01M-target_files-eng.frost/META/misc_info.txt ) && (echo \"blocksize=131072\" >> /home/frost/Android/Lineage/out/target/product/Z01M/obj/PACKAGING/target_files_intermediates/aosp_Z01M-target_files-eng.frost/META/misc_info.txt ) && (echo \"boot_size=67108864 \" >> /home/frost/Android/Lineage/out/target/product/Z01M/obj/PACKAGING/target_files_intermediates/aosp_Z01M-target_files-eng.frost/META/misc_info.txt ) && (echo \"recovery_as_boot=\" >> /home/frost/Android/Lineage/out/target/product/Z01M/obj/PACKAGING/target_files_intermediates/aosp_Z01M-target_files-eng.frost/META/misc_info.txt ) && (echo \"recovery_size=67108864 \" >> /home/frost/Android/Lineage/out/target/product/Z01M/obj/PACKAGING/target_files_intermediates/aosp_Z01M-target_files-eng.frost/META/misc_info.txt ) && (echo \"recovery_mount_options=ext4=max_batch_time=0,commit=1,data=ordered,barrier=1,errors=panic,nodelalloc\" >> /home/frost/Android/Lineage/out/target/product/Z01M/obj/PACKAGING/target_files_intermediates/aosp_Z01M-target_files-eng.frost/META/misc_info.txt ) && (echo \"tool_extensions=device/asus/Z01M/../common\" >> /home/frost/Android/Lineage/out/target/product/Z01M/obj/PACKAGING/target_files_intermediates/aosp_Z01M-target_files-eng.frost/META/misc_info.txt ) && (echo \"default_system_dev_certificate=build/target/product/security/testkey\" >> /home/frost/Android/Lineage/out/target/product/Z01M/obj/PACKAGING/target_files_intermediates/aosp_Z01M-target_files-eng.frost/META/misc_info.txt ) && (echo \"extra_recovery_keys=vendor/cm/build/target/product/security/lineage\" >> /home/frost/Android/Lineage/out/target/product/Z01M/obj/PACKAGING/target_files_intermediates/aosp_Z01M-target_files-eng.frost/META/misc_info.txt ) && (echo 'mkbootimg_args=' >> /home/frost/Android/Lineage/out/target/product/Z01M/obj/PACKAGING/target_files_intermediates/aosp_Z01M-target_files-eng.frost/META/misc_info.txt ) && (echo 'mkbootimg_version_args=--os_version 7.1.2 --os_patch_level 2020-08-05' >> /home/frost/Android/Lineage/out/target/product/Z01M/obj/PACKAGING/target_files_intermediates/aosp_Z01M-target_files-eng.frost/META/misc_info.txt ) && (echo \"use_set_metadata=1\" >> /home/frost/Android/Lineage/out/target/product/Z01M/obj/PACKAGING/target_files_intermediates/aosp_Z01M-target_files-eng.frost/META/misc_info.txt ) && (echo \"multistage_support=1\" >> /home/frost/Android/Lineage/out/target/product/Z01M/obj/PACKAGING/target_files_intermediates/aosp_Z01M-target_files-eng.frost/META/misc_info.txt ) && (echo \"update_rename_support=1\" >> /home/frost/Android/Lineage/out/target/product/Z01M/obj/PACKAGING/target_files_intermediates/aosp_Z01M-target_files-eng.frost/META/misc_info.txt ) && (echo \"blockimgdiff_versions=1,2,3,4\" >> /home/frost/Android/Lineage/out/target/product/Z01M/obj/PACKAGING/target_files_intermediates/aosp_Z01M-target_files-eng.frost/META/misc_info.txt ) && (echo \"fs_type=ext4\" >> /home/frost/Android/Lineage/out/target/product/Z01M/obj/PACKAGING/target_files_intermediates/aosp_Z01M-target_files-eng.frost/META/misc_info.txt ) && (echo \"system_size=4831838208 \" >> /home/frost/Android/Lineage/out/target/product/Z01M/obj/PACKAGING/target_files_intermediates/aosp_Z01M-target_files-eng.frost/META/misc_info.txt ) && (echo \"userdata_size=56614698496 \" >> /home/frost/Android/Lineage/out/target/product/Z01M/obj/PACKAGING/target_files_intermediates/aosp_Z01M-target_files-eng.frost/META/misc_info.txt ) && (echo \"cache_fs_type=ext4\" >> /home/frost/Android/Lineage/out/target/product/Z01M/obj/PACKAGING/target_files_intermediates/aosp_Z01M-target_files-eng.frost/META/misc_info.txt ) && (echo \"cache_size=134217728 \" >> /home/frost/Android/Lineage/out/target/product/Z01M/obj/PACKAGING/target_files_intermediates/aosp_Z01M-target_files-eng.frost/META/misc_info.txt ) && (echo \"extfs_sparse_flag=-s\" >> /home/frost/Android/Lineage/out/target/product/Z01M/obj/PACKAGING/target_files_intermediates/aosp_Z01M-target_files-eng.frost/META/misc_info.txt ) && (echo \"squashfs_sparse_flag=-s\" >> /home/frost/Android/Lineage/out/target/product/Z01M/obj/PACKAGING/target_files_intermediates/aosp_Z01M-target_files-eng.frost/META/misc_info.txt ) && (echo \"selinux_fc=/home/frost/Android/Lineage/out/target/product/Z01M/root/file_contexts.bin\" >> /home/frost/Android/Lineage/out/target/product/Z01M/obj/PACKAGING/target_files_intermediates/aosp_Z01M-target_files-eng.frost/META/misc_info.txt ) && (PATH=/home/frost/Android/Lineage/out/host/linux-x86/bin/:\$PATH MKBOOTIMG=/home/frost/Android/Lineage/out/host/linux-x86/bin/mkbootimg ./build/tools/releasetools/make_recovery_patch /home/frost/Android/Lineage/out/target/product/Z01M/obj/PACKAGING/target_files_intermediates/aosp_Z01M-target_files-eng.frost /home/frost/Android/Lineage/out/target/product/Z01M/obj/PACKAGING/target_files_intermediates/aosp_Z01M-target_files-eng.frost ) && (vendor/cm/build/tools/getb64key.py build/target/product/security/testkey.x509.pem > /home/frost/Android/Lineage/out/target/product/Z01M/obj/PACKAGING/target_files_intermediates/aosp_Z01M-target_files-eng.frost/META/releasekey.txt ) && (echo \"ota_override_device=Z01M,ASUS_Z01M,Z01MD,ASUS_Z01MD,ZD552KL\" >> /home/frost/Android/Lineage/out/target/product/Z01M/obj/PACKAGING/target_files_intermediates/aosp_Z01M-target_files-eng.frost/META/misc_info.txt ) && ((cd /home/frost/Android/Lineage/out/target/product/Z01M/obj/PACKAGING/target_files_intermediates/aosp_Z01M-target_files-eng.frost && zip -qryX ../aosp_Z01M-target_files-eng.frost.zip ./META && zip -qryXu ../aosp_Z01M-target_files-eng.frost.zip .) ) && (zipinfo -1 /home/frost/Android/Lineage/out/target/product/Z01M/obj/PACKAGING/target_files_intermediates/aosp_Z01M-target_files-eng.frost.zip | awk 'BEGIN { FS=\"SYSTEM/\" } /^SYSTEM\\// {print \"system/\" \$2}' | /home/frost/Android/Lineage/out/host/linux-x86/bin/fs_config -C -D /home/frost/Android/Lineage/out/target/product/Z01M/system -S /home/frost/Android/Lineage/out/target/product/Z01M/root/file_contexts.bin > /home/frost/Android/Lineage/out/target/product/Z01M/obj/PACKAGING/target_files_intermediates/aosp_Z01M-target_files-eng.frost/META/filesystem_config.txt ) && (zipinfo -1 /home/frost/Android/Lineage/out/target/product/Z01M/obj/PACKAGING/target_files_intermediates/aosp_Z01M-target_files-eng.frost.zip | awk 'BEGIN { FS=\"VENDOR/\" } /^VENDOR\\// {print \"vendor/\" \$2}' | /home/frost/Android/Lineage/out/host/linux-x86/bin/fs_config -C -D /home/frost/Android/Lineage/out/target/product/Z01M/system -S /home/frost/Android/Lineage/out/target/product/Z01M/root/file_contexts.bin > /home/frost/Android/Lineage/out/target/product/Z01M/obj/PACKAGING/target_files_intermediates/aosp_Z01M-target_files-eng.frost/META/vendor_filesystem_config.txt ) && (zipinfo -1 /home/frost/Android/Lineage/out/target/product/Z01M/obj/PACKAGING/target_files_intermediates/aosp_Z01M-target_files-eng.frost.zip | awk 'BEGIN { FS=\"BOOT/RAMDISK/\" } /^BOOT\\/RAMDISK\\// {print \$2}' | /home/frost/Android/Lineage/out/host/linux-x86/bin/fs_config -C -D /home/frost/Android/Lineage/out/target/product/Z01M/system -S /home/frost/Android/Lineage/out/target/product/Z01M/root/file_contexts.bin > /home/frost/Android/Lineage/out/target/product/Z01M/obj/PACKAGING/target_files_intermediates/aosp_Z01M-target_files-eng.frost/META/boot_filesystem_config.txt ) && (zipinfo -1 /home/frost/Android/Lineage/out/target/product/Z01M/obj/PACKAGING/target_files_intermediates/aosp_Z01M-target_files-eng.frost.zip | awk 'BEGIN { FS=\"RECOVERY/RAMDISK/\" } /^RECOVERY\\/RAMDISK\\// {print \$2}' | /home/frost/Android/Lineage/out/host/linux-x86/bin/fs_config -C -D /home/frost/Android/Lineage/out/target/product/Z01M/system -S /home/frost/Android/Lineage/out/target/product/Z01M/root/file_contexts.bin > /home/frost/Android/Lineage/out/target/product/Z01M/obj/PACKAGING/target_files_intermediates/aosp_Z01M-target_files-eng.frost/META/recovery_filesystem_config.txt ) && ((cd /home/frost/Android/Lineage/out/target/product/Z01M/obj/PACKAGING/target_files_intermediates/aosp_Z01M-target_files-eng.frost && zip -qX ../aosp_Z01M-target_files-eng.frost.zip META/*filesystem_config.txt) ) && (PATH=/home/frost/Android/Lineage/out/host/linux-x86/bin/:\$PATH MKBOOTIMG=/home/frost/Android/Lineage/out/host/linux-x86/bin/mkbootimg ./build/tools/releasetools/add_img_to_target_files -a -v -p /home/frost/Android/Lineage/out/host/linux-x86 /home/frost/Android/Lineage/out/target/product/Z01M/obj/PACKAGING/target_files_intermediates/aosp_Z01M-target_files-eng.frost.zip )"
using prebuilt recovery.img from BOOTABLE_IMAGES...
using prebuilt boot.img from BOOTABLE_IMAGES...
running: unzip -o -q /home/frost/Android/Lineage/out/target/product/Z01M/obj/PACKAGING/target_files_intermediates/aosp_Z01M-target_files-eng.frost.zip -d /tmp/targetfiles-ajXmds

++++ boot ++++

using prebuilt boot.img from BOOTABLE_IMAGES...

++++ recovery ++++

using prebuilt recovery.img from BOOTABLE_IMAGES...

++++ recovery (two-step image) ++++

building image from target_files RECOVERY...
running: mkbootfs -f /tmp/targetfiles-ajXmds/META/recovery_filesystem_config.txt /tmp/targetfiles-ajXmds/RECOVERY/RAMDISK
running: minigzip
running: /home/frost/Android/Lineage/out/host/linux-x86/bin/mkbootimg --kernel /tmp/targetfiles-ajXmds/RECOVERY/kernel --cmdline cmd_line='console=ttyHSL0,115200,n8 androidboot.console=ttyHSL0 androidboot.hardware=qcom msm_rtb.filter=0x237 ehci-hcd.park=3 lpm_levels.sleep_disabled=1 androidboot.bootdevice=7824900.sdhci earlycon=msm_hsl_uart,0x78af000 androidboot.selinux=permissive buildvariant=eng --base 0x80000000 --tags_offset 0x00000100 --ramdisk_offset 0x01000000 --pagesize 2048 --os_version 7.1.2 --os_patch_level 2020-08-05 --ramdisk /tmp/tmpzITR1e --output /tmp/tmpeIubBx

++++ system ++++

creating system.img...
BuildImage: in_dir = /tmp/targetfiles-ajXmds/system, out_file = /tmp/system-jMQMgY.img
fs type is not ext4
Running: mkuserimg.sh -s /tmp/targetfiles-ajXmds/system /tmp/system-jMQMgY.img ext4 system 4831838208 -T 1230778800 -C /tmp/targetfiles-ajXmds/META/filesystem_config.txt -B /tmp/system-blocklist-rMJHYe.map -L system /tmp/targetfiles-ajXmds/META/file_contexts.bin
make_ext4fs -s -T 1230778800 -S /tmp/targetfiles-ajXmds/META/file_contexts.bin -C /tmp/targetfiles-ajXmds/META/filesystem_config.txt -B /tmp/system-blocklist-rMJHYe.map -L system -l 4831838208 -a system /tmp/system-jMQMgY.img /tmp/targetfiles-ajXmds/system
loaded 5331 fs_config entries
Creating filesystem with parameters:
Size: 4831838208
Block size: 4096
Blocks per group: 32768
Inodes per group: 8192
Inode size: 256
Journal blocks: 18432
Label: system
Blocks: 1179648
Block groups: 36
Reserved block group size: 287
Created filesystem with 5341/294912 inodes and 362846/1179648 blocks
Running ['mkuserimg.sh', '-s', '/tmp/targetfiles-ajXmds/system', '/tmp/system-jMQMgY.img', 'ext4', 'system', '4831838208', '-T', '1230778800', '-C', '/tmp/targetfiles-ajXmds/META/filesystem_config.txt', '-B', '/tmp/system-blocklist-rMJHYe.map', '-L', 'system', '/tmp/targetfiles-ajXmds/META/file_contexts.bin'] command, exit code = 0

++++ userdata ++++

creating userdata.img...
BuildImage: in_dir = /tmp/tmpsrG8BS/data, out_file = /tmp/tmpoSlGmd
fs type is not ext4
Running: mkuserimg.sh -s /tmp/tmpsrG8BS/data /tmp/tmpoSlGmd ext4 data 56614698496 -T 1230778800 -L data /tmp/targetfiles-ajXmds/META/file_contexts.bin
make_ext4fs -s -T 1230778800 -S /tmp/targetfiles-ajXmds/META/file_contexts.bin -L data -l 56614698496 -a data /tmp/tmpoSlGmd /tmp/tmpsrG8BS/data
Creating filesystem with parameters:
Size: 56614694912
Block size: 4096
Blocks per group: 32768
Inodes per group: 8192
Inode size: 256
Journal blocks: 32768
Label: data
Blocks: 13821947
Block groups: 422
Reserved block group size: 1024
Created filesystem with 11/3457024 inodes and 263056/13821947 blocks
Running ['mkuserimg.sh', '-s', '/tmp/tmpsrG8BS/data', '/tmp/tmpoSlGmd', 'ext4', 'data', '56614698496', '-T', '1230778800', '-L', 'data', '/tmp/targetfiles-ajXmds/META/file_contexts.bin'] command, exit code = 0
userdata size (14) is 0.00% of limit (56614698496)

++++ extrauserdata ++++

++++ cache ++++

creating cache.img...
Traceback (most recent call last):
File "./build/tools/releasetools/add_img_to_target_files", line 554, in <module>
main(sys.argv[1:])
File "./build/tools/releasetools/add_img_to_target_files", line 548, in main
AddImagesToTargetFiles(args[0])
File "./build/tools/releasetools/add_img_to_target_files", line 476, in AddImagesToTargetFiles
AddCache(output_zip)
File "./build/tools/releasetools/add_img_to_target_files", line 375, in AddCache
image_props["fs_type"] = fstab["/cache"].fs_type
KeyError: '/cache'
ninja: build stopped: subcommand failed.
make: *** [build/core/ninja.mk:152: ninja_wrapper] Error 1
make: Leaving directory '/home/frost/Android/Lineage'

#### make failed to build some targets (17:07 (mm:ss)) ####

Device Tree: https://github.com/2003Frost/android_device_asus_Z01M/tree/cm-14.1

Vendor: https://github.com/2003Frost/proprietary_vendor_asus_Z01M

Kernel: https://github.com/2003Frost/android_kernel_asus_Z01M

I've been stuck on this for a while now, so any help is appreciated.