[Android] thenotonly:
What setup did you have?

Thanks, using brunch resolved the issue.

Now I'm getting:

[ 92% 106/115] Target vendor fs image: /home/darren/android/lineage/out/target/product/judyln/vendor.img
FAILED: /home/darren/android/lineage/out/target/product/judyln/vendor.img
/bin/bash -c "(mkdir -p /home/darren/android/lineage/out/target/product/judyln/vendor ) && (mkdir -p /home/darren/android/lineage/out/target/product/judyln/obj/PACKAGING/vendor_intermediates && rm -rf /home/darren/android/lineage/out/target/product/judyln/obj/PACKAGING/vendor_intermediates/vendor_image_info.txt ) && (echo \"ext_mkuserimg=mkuserimg_mke2fs.sh\" >> /home/darren/android/lineage/out/target/product/judyln/obj/PACKAGING/vendor_intermediates/vendor_image_info.txt ) && (echo \"fs_type=ext4\" >> /home/darren/android/lineage/out/target/product/judyln/obj/PACKAGING/vendor_intermediates/vendor_image_info.txt ) && (echo \"vendor_fs_type=ext4\" >> /home/darren/android/lineage/out/target/product/judyln/obj/PACKAGING/vendor_intermediates/vendor_image_info.txt ) && (echo \"extfs_sparse_flag=-s\" >> /home/darren/android/lineage/out/target/product/judyln/obj/PACKAGING/vendor_intermediates/vendor_image_info.txt ) && (echo \"squashfs_sparse_flag=-s\" >> /home/darren/android/lineage/out/target/product/judyln/obj/PACKAGING/vendor_intermediates/vendor_image_info.txt ) && (echo \"selinux_fc=/home/darren/android/lineage/out/target/product/judyln/obj/ETC/file_contexts.bin_intermediates/file_contexts.bin\" >> /home/darren/android/lineage/out/target/product/judyln/obj/PACKAGING/vendor_intermediates/vendor_image_info.txt ) && (echo \"avb_avbtool=avbtool\" >> /home/darren/android/lineage/out/target/product/judyln/obj/PACKAGING/vendor_intermediates/vendor_image_info.txt ) && (echo \"avb_system_hashtree_enable=true\" >> /home/darren/android/lineage/out/target/product/judyln/obj/PACKAGING/vendor_intermediates/vendor_image_info.txt ) && (echo \"avb_system_add_hashtree_footer_args=--prop com.android.build.system.security_patch:2020-01-05 --setup_as_rootfs_from_kernel\" >> /home/darren/android/lineage/out/target/product/judyln/obj/PACKAGING/vendor_intermediates/vendor_image_info.txt ) && (echo \"avb_vendor_hashtree_enable=true\" >> /home/darren/android/lineage/out/target/product/judyln/obj/PACKAGING/vendor_intermediates/vendor_image_info.txt ) && (echo \"avb_vendor_add_hashtree_footer_args=\" >> /home/darren/android/lineage/out/target/product/judyln/obj/PACKAGING/vendor_intermediates/vendor_image_info.txt ) && (echo \"avb_product_hashtree_enable=true\" >> /home/darren/android/lineage/out/target/product/judyln/obj/PACKAGING/vendor_intermediates/vendor_image_info.txt ) && (echo \"avb_product_add_hashtree_footer_args=--prop com.android.build.product.security_patch:2020-01-05\" >> /home/darren/android/lineage/out/target/product/judyln/obj/PACKAGING/vendor_intermediates/vendor_image_info.txt ) && (echo \"recovery_as_boot=true\" >> /home/darren/android/lineage/out/target/product/judyln/obj/PACKAGING/vendor_intermediates/vendor_image_info.txt ) && (echo \"system_root_image=true\" >> /home/darren/android/lineage/out/target/product/judyln/obj/PACKAGING/vendor_intermediates/vendor_image_info.txt ) && (echo \"root_dir=/home/darren/android/lineage/out/target/product/judyln/root\" >> /home/darren/android/lineage/out/target/product/judyln/obj/PACKAGING/vendor_intermediates/vendor_image_info.txt ) && (echo \"skip_fsck=true\" >> /home/darren/android/lineage/out/target/product/judyln/obj/PACKAGING/vendor_intermediates/vendor_image_info.txt ) && (PATH=/home/darren/android/lineage/out/host/linux-x86/bin/:\$PATH build/make/tools/releasetools/build_image.py /home/darren/android/lineage/out/target/product/judyln/vendor /home/darren/android/lineage/out/target/product/judyln/obj/PACKAGING/vendor_intermediates/vendor_image_info.txt /home/darren/android/lineage/out/target/product/judyln/vendor.img /home/darren/android/lineage/out/target/product/judyln/system /home/darren/android/lineage/out/target/product/judyln/obj/PACKAGING/vendor_intermediates/generated_vendor_image_info.txt ) && (size=\$(for i in /home/darren/android/lineage/out/target/product/judyln/vendor.img; do stat --format \"%s\" \"\$i\" | tr -d '\\n'; echo +; done; echo 0); total=\$(( \$( echo \"\$size\" ) )); printname=\$(echo -n \"/home/darren/android/lineage/out/target/product/judyln/vendor.img\" | tr \" \" +); maxsize=\$(( \$(grep 'vendor_size=' /home/darren/android/lineage/out/target/product/judyln/obj/PACKAGING/vendor_intermediates/generated_vendor_image_info.txt | cut -f2- -d'='))); if [ \"\$total\" -gt \"\$maxsize\" ]; then echo \"error: \$printname too large (\$total > \$maxsize)\"; false; elif [ \"\$total\" -gt \$((maxsize - 32768)) ]; then echo \"WARNING: \$printname approaching size limit (\$total now; limit \$maxsize)\"; fi )"
Traceback (most recent call last):
File "build/make/tools/releasetools/build_image.py", line 1075, in <module>
main(sys.argv[1:])
File "build/make/tools/releasetools/build_image.py", line 1064, in main
if not BuildImage(in_dir, image_properties, out_file, target_out):
File "build/make/tools/releasetools/build_image.py", line 645, in BuildImage
prop_dict["image_size"] = prop_dict["partition_size"]
KeyError: 'partition_size'
[ 94% 109/115] Target boot image from recovery: /home/darren/android/lineage/out/target/product/judyln/boot.img
cp: cannot stat '/home/darren/android/lineage/out/target/product/judyln/root/init.recovery.*.rc': No such file or directory
ninja: build stopped: subcommand failed.
09:32:13 ninja failed with: exit status 1

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

I have tried the vendor.img recommended by the source maintainer and also vendor.img dumped from my phone.