[Treble-Enabled Device Development A/AB ROMS] RubenGreg:
SOLVED: Yes it is due to ZFS. Put the OUT directory onto ext4 filesystem

export OUT_DIR_COMMON_BASE=/mnt/whatever_mount_point

compile help please. At the last stage it fails. (is this because I am using ZFS as my /home/ filesystem? or is it some other error

lunch treble_arm_avS-userdebug
make systemimage

Acutally I am trying to compile the AOSP 10.0

[ 99% 11349/11350] Target system fs image: out/target/product/phhgsi_arm_a/obj/PACKAGING/systemimage_intermediates/system.img
FAILED: out/target/product/phhgsi_arm_a/obj/PACKAGING/systemimage_intermediates/system.img
/bin/bash -c "(if [ -d out/target/product/phhgsi_arm_a/system/vendor ] && [ ! -h out/target/product/phhgsi_arm_a/system/vendor ]; then echo 'Non-symlink out/target/product/phhgsi_arm_a/system/vendor detected!' 1>&2; echo 'You cannot install fi
les to out/target/product/phhgsi_arm_a/system/vendor while building a separate vendor.img!' 1>&2; exit 1; fi ) && (ln -sf /vendor out/target/product/phhgsi_arm_a/system/vendor ) && (( cd out/target/product/phhgsi_arm_a/system && findres=\$(fin
d lib* -path \"lib/bootstrap\" -prune -o -path \"lib64/bootstrap\" -prune -o -path \"lib/arm\" -prune -o -path \"lib/arm64\" -prune -o -path \"lib/vndk-*\" -prune -o -path \"lib64/vndk-*\" -prune -o -type f \\( -false -o -name libadbconnection
.so -o -name libadbconnectiond.so -o -name libandroidicu.so -o -name libandroidio.so -o -name libart-compiler.so -o -name libart-dexlayout.so -o -name libart-disassembler.so -o -name libart.so -o -name libartbase.so -o -name libartbased.so -o
-name libartd-compiler.so -o -name libartd-dexlayout.so -o -name libartd.so -o -name libartpalette.so -o -name libc.so -o -name libdexfile.so -o -name libdexfile_external.so -o -name libdexfiled.so -o -name libdexfiled_external.so -o -name lib
dl.so -o -name libdt_fd_forward.so -o -name libdt_socket.so -o -name libicui18n.so -o -name libicuuc.so -o -name libjavacore.so -o -name libjdwp.so -o -name libm.so -o -name libnativebridge.so -o -name libnativehelper.so -o -name libnativeload
er.so -o -name libnpt.so -o -name libopenjdk.so -o -name libopenjdkjvm.so -o -name libopenjdkjvmd.so -o -name libopenjdkjvmti.so -o -name libopenjdkjvmtid.so -o -name libpac.so -o -name libprofile.so -o -name libprofiled.so -o -name libsigchai
n.so -o -name libjavacrypto.so \\) -print) && if [ -n \"\$findres\" ]; then echo \"APEX libraries found in system image (see comment for check-apex-libs-absence\" 1>&2; echo \"in build/make/core/main.mk for details):\" 1>&2; echo \"\$findres\"
| sort 1>&2; false; fi; ) ) && (mkdir -p out/target/product/phhgsi_arm_a/obj/PACKAGING/systemimage_intermediates/ out/target/product/phhgsi_arm_a/obj/PACKAGING/systemimage_intermediates && rm -rf out/target/product/phhgsi_arm_a/obj/PACKAGING/systemimage_intermediates/system_image_info.txt ) && (echo \"system_as_system=true\" >> out/target/product/phhgsi_arm_a/obj/PACKAGING/systemimage_intermediates/system_image_info.txt ) && (echo \"system_reserved_size=67108864\" >> out/target/product/phhgsi_arm_a/obj/PACKAGING/systemimage_intermediates/system_image_info.txt ) && (echo \"ext_mkuserimg=mkuserimg_mke2fs\" >> out/target/product/phhgsi_arm_a/obj/PACKAGING/systemimage_intermediates/system_image_info.txt ) && (echo \"fs_type=ext4\" >> out/target/product/phhgsi_arm_a/obj/PACKAGING/systemimage_intermediates/system_image_info.txt ) && (echo \"extfs_sparse_flag=-s\" >> out/target/product/phhgsi_arm_a/obj/PACKAGING/systemimage_intermediates/system_image_info.txt ) && (echo \"squashfs_sparse_flag=-s\" >> out/target/product/phhgsi_arm_a/obj/PACKAGING/systemimage_intermediates/system_image_info.txt ) && (echo \"selinux_fc=out/target/product/phhgsi_arm_a/obj/ETC/file_contexts.bin_intermediates/file_contexts.bin\" >> out/target/product/phhgsi_arm_a/obj/PACKAGING/systemimage_intermediates/system_image_info.txt ) && (echo \"avb_avbtool=avbtool\" >> out/target/product/phhgsi_arm_a/obj/PACKAGING/systemimage_intermediates/system_image_info.txt ) && (echo \"avb_system_hashtree_enable=true\" >> out/target/product/phhgsi_arm_a/obj/PACKAGING/systemimage_intermediates/system_image_info.txt ) && (echo \"avb_system_add_hashtree_footer_args=--prop com.android.build.system.os_version:10 --prop com.android.build.system.security_patch:2020-01-01 --rollback_index 1577836800\" >> out/target/product/phhgsi_arm_a/obj/PACKAGING/systemimage_intermediates/system_image_info.txt ) && (echo \"avb_system_key_path=external/avb/test/data/testkey_rsa2048.pem\" >> out/target/product/phhgsi_arm_a/obj/PACKAGING/systemimage_intermediates/system_image_info.txt ) && (echo \"avb_system_algorithm=SHA256_RSA2048\" >> out/target/product/phhgsi_arm_a/obj/PACKAGING/systemimage_intermediates/system_image_info.txt ) && (echo \"avb_system_rollback_index_location=1\" >> out/target/product/phhgsi_arm_a/obj/PACKAGING/systemimage_intermediates/system_image_info.txt ) && (echo \"avb_system_other_hashtree_enable=true\" >> out/target/product/phhgsi_arm_a/obj/PACKAGING/systemimage_intermediates/system_image_info.txt ) && (echo \"avb_system_other_add_hashtree_footer_args=\" >> out/target/product/phhgsi_arm_a/obj/PACKAGING/systemimage_intermediates/system_image_info.txt ) && (echo \"avb_vendor_hashtree_enable=true\" >> out/target/product/phhgsi_arm_a/obj/PACKAGING/systemimage_intermediates/system_image_info.txt ) && (echo \"avb_vendor_add_hashtree_footer_args=--prop com.android.build.vendor.os_version:10\" >> out/target/product/phhgsi_arm_a/obj/PACKAGING/systemimage_intermediates/system_image_info.txt ) && (echo \"avb_product_hashtree_enable=true\" >> out/target/product/phhgsi_arm_a/obj/PACKAGING/systemimage_intermediates/system_image_info.txt ) && (echo \"avb_product_add_hashtree_footer_args=--prop com.android.build.product.os_version:10 --prop com.android.build.product.security_patch:2020-01-01\" >> out/target/product/phhgsi_arm_a/obj/PACKAGING/systemimage_intermediates/system_image_info.txt ) && (echo \"avb_product_services_hashtree_enable=true\" >> out/target/product/phhgsi_arm_a/obj/PACKAGING/systemimage_intermediates/system_image_info.txt ) && (echo \"avb_product_services_add_hashtree_footer_args=--prop com.android.build.product_services.os_version:10 --prop com.android.build.product_services.security_patch:2020-01-01\" >> out/target/product/phhgsi_arm_a/obj/PACKAGING/systemimage_intermediates/system_image_info.txt ) && (echo \"avb_odm_hashtree_enable=true\" >> out/target/product/phhgsi_arm_a/obj/PACKAGING/systemimage_intermediates/system_image_info.txt ) && (echo \"avb_odm_add_hashtree_footer_args=--prop com.android.build.odm.os_version:10\" >> out/target/product/phhgsi_arm_a/obj/PACKAGING/systemimage_intermediates/system_image_info.txt ) && (echo \"root_dir=out/target/product/phhgsi_arm_a/root\" >> out/target/product/phhgsi_arm_a/obj/PACKAGING/systemimage_intermediates/system_image_info.txt ) && (echo \"use_dynamic_partition_size=true\" >> out/target/product/phhgsi_arm_a/obj/PACKAGING/systemimage_intermediates/system_image_info.txt ) && (echo \"skip_fsck=true\" >> out/target/product/phhgsi_arm_a/obj/PACKAGING/systemimage_intermediates/system_image_info.txt ) && (PATH=out/host/linux-x86/bin/:\$PATH build/make/tools/releasetools/build_image.py out/target/product/phhgsi_arm_a/system out/target/product/phhgsi_arm_a/obj/PACKAGING/systemimage_intermediates/system_image_info.txt out/target/product/phhgsi_arm_a/obj/PACKAGING/systemimage_intermediates/system.img out/target/product/phhgsi_arm_a/system || ( mkdir -p \${DIST_DIR}; cp out/target/product/phhgsi_arm_a/installed-files.txt \${DIST_DIR}/installed-files-rescued.txt; exit 1 ) )"
2020-01-22 11:23:09 - build_image.py - ERROR : Failed to build out/target/product/phhgsi_arm_a/obj/PACKAGING/systemimage_intermediates/system.img from out/target/product/phhgsi_arm_a/system
Out of space? Out of inodes? The tree size of out/target/product/phhgsi_arm_a/system is 514326528 bytes (490 MB), with reserved space of 67108864 bytes (64 MB).
The max image size for filesystem files is 581435392 bytes (554 MB), out of a total partition size of 581435392 bytes (554 MB).
Traceback (most recent call last):
File "build/make/tools/releasetools/build_image.py", line 793, in <module>
main(sys.argv[1:])
File "build/make/tools/releasetools/build_image.py", line 785, in main
BuildImage(in_dir, image_properties, out_file, target_out)
File "build/make/tools/releasetools/build_image.py", line 425, in BuildImage
BuildImageMkfs(in_dir, prop_dict, out_file, target_out, fs_config)
File "build/make/tools/releasetools/build_image.py", line 336, in BuildImageMkfs
mkfs_output = common.RunAndCheckOutput(build_command)
File "/home/ubuntu/gsi/treble_experimentations-209/build/make/tools/releasetools/common.py", line 252, in RunAndCheckOutput
args, proc.returncode, output))
common.ExternalError: Failed to run command '['mkuserimg_mke2fs', '-s', 'out/target/product/phhgsi_arm_a/system', 'out/target/product/phhgsi_arm_a/obj/PACKAGING/systemimage_intermediates/system.img', 'ext4', 'system', '581435392', '-j', '0', '-D', 'out/target/product/phhgsi_arm_a/system', '-L', 'system', '-i', '4462', '-M', '0', '--inode_size', '256', 'out/target/product/phhgsi_arm_a/obj/ETC/file_contexts.bin_intermediates/file_contexts.bin']' (exit code 4):
11:23:04 mkuserimg_mke2fs.py INFO: Env: {'MKE2FS_CONFIG': './system/extras/ext4_utils/mke2fs.conf'}
11:23:04 mkuserimg_mke2fs.py INFO: Running: mke2fs -O ^has_journal -L system -N 4462 -I 256 -M /system -m 0 -E android_sparse -t ext4 -b 4096 out/target/product/phhgsi_arm_a/obj/PACKAGING/systemimage_intermediates/system.img 141952
11:23:04 mkuserimg_mke2fs.py INFO: Env: {}
11:23:04 mkuserimg_mke2fs.py INFO: Running: e2fsdroid -p out/target/product/phhgsi_arm_a/system -S out/target/product/phhgsi_arm_a/obj/ETC/file_contexts.bin_intermediates/file_contexts.bin -f out/target/product/phhgsi_arm_a/system -a /system out/target/product/phhgsi_arm_a/obj/PACKAGING/systemimage_intermediates/system.img
11:23:09 mkuserimg_mke2fs.py ERROR: Failed to run e2fsdroid_cmd: __populate_fs: Could not allocate block in ext2 filesystem while writing file "libskia.so"
e2fsdroid: Could not allocate block in ext2 filesystem while populating file system

mke2fs 1.44.4 (18-Aug-2018)
Creating filesystem with 141952 4k blocks and 4480 inodes
Filesystem UUID: 5030c35b-3835-4902-a625-94fe927ee48f
Superblock backups stored on blocks:
32768, 98304

Allocating group tables: done
Writing inode tables: done
Writing superblocks and filesystem accounting information: done

__populate_fs: Could not allocate block in ext2 filesystem while writing file "libskia.so"
e2fsdroid: Could not allocate block in ext2 filesystem while populating file system

11:23:09 ninja failed with: exit status 1