Closed petefoth closed 2 months ago
vim
`build/make/core/main.mk:1376: warning: device/google/sunfish/lineage_sunfish.mk includes non-existent modules in PRODUCT_PACKAGES
Offending entries:
vim
The problem:
vendor/lineage/config/BoardConfigReservedSize.mk
, if 'WITH_GMSis
true, variable
BOARD_SYSTEM_EXTIMAGE_PARTITION_RESERVED_SIZEis set to
8388609`system_ext
partition is enough to take the image size over the limitBOARD_SYSTEM_EXTIMAGE_PARTITION_RESERVED_SIZE
to 0
in the build script. (The file uses the ?=
make operator to set the variable only if it is not already set - see here for more information)I built successfully with by removing the line. I'll try 2 and see if it works (actually I'll set it to 1 - I tried 0 earlier and it didn't work). Nope it failed with
Out of space? Out of inodes? The tree size of out/target/product/sunfish/system_ext is 408568832 bytes (389 MB), with reserved space of 1 bytes (0 MB).
The max image size for filesystem files is 408571904 bytes (389 MB), out of a total partition size of 408571904 bytes (389 MB).
The value of 8MB reserved size for builds with WITH_GMS=true
was set in this commit: https://github.com/LineageOS/android_vendor_lineage/commit/3940fb424045c829ab2f40a3759e9710c04ca5a5 . It was reverted a few hours ago in this commit: https://github.com/LineageOS/android_vendor_lineage/commit/a27417bb8126bdb461e1778619441b155ba4962e
I have tried building without the workaround and the build succeeded.
Closing this issue
Building with
WITH_GMS=true
fails to buildsystem_ext.img
The max image size for filesystem files is 408571904 bytes (389 MB), out of a total partition size of 408571904 bytes (389 MB)
du -h out/target/product/sunfish/system_ext/
gives399M
Error building `lemonadep`
``` [ 98% 181644/184025] Target system_ext fs image: out/target/product/lemonadep/system_ext.img (priority: 8) FAILED: out/target/product/lemonadep/system_ext.img /bin/bash -c "(mkdir -p out/target/product/lemonadep/system_ext ) && (mkdir -p out/target/product/lemonadep/obj/PACKAGING/system_ext_intermediates && rm -rf out/target/product/lemonadep/obj/PACKAGING/system_ext_intermediates/system_ext_image_info.txt ) && (echo \"system_ext_fs_type=ext4\" >> out/target/product/lemonadep/obj/PACKAGING/system_ext_intermediates/system_ext_image_info.txt ) && (echo \"system_ext_reserved_size=8388609\" >> out/target/product/lemonadep/obj/PACKAGING/system_ext_intermediates/system_ext_image_info.txt ) && (echo \"system_ext_disable_sparse=true\" >> out/target/product/lemonadep/obj/PACKAGING/system_ext_intermediates/system_ext_image_info.txt ) && (echo \"system_ext_selinux_fc=out/target/product/lemonadep/obj/ETC/file_contexts.bin_intermediates/file_contexts.bin\" >> out/target/product/lemonadep/obj/PACKAGING/system_ext_intermediates/system_ext_image_info.txt ) && (echo \"building_system_ext_image=true\" >> out/target/product/lemonadep/obj/PACKAGING/system_ext_intermediates/system_ext_image_info.txt ) && (echo \"ext_mkuserimg=mkuserimg_mke2fs\" >> out/target/product/lemonadep/obj/PACKAGING/system_ext_intermediates/system_ext_image_info.txt ) && (echo \"fs_type=ext4\" >> out/target/product/lemonadep/obj/PACKAGING/system_ext_intermediates/system_ext_image_info.txt ) && (echo \"extfs_sparse_flag=-s\" >> out/target/product/lemonadep/obj/PACKAGING/system_ext_intermediates/system_ext_image_info.txt ) && (echo \"erofs_sparse_flag=-s\" >> out/target/product/lemonadep/obj/PACKAGING/system_ext_intermediates/system_ext_image_info.txt ) && (echo \"squashfs_sparse_flag=-s\" >> out/target/product/lemonadep/obj/PACKAGING/system_ext_intermediates/system_ext_image_info.txt ) && (echo \"f2fs_sparse_flag=-S\" >> out/target/product/lemonadep/obj/PACKAGING/system_ext_intermediates/system_ext_image_info.txt ) && (echo \"erofs_default_compressor=\"lz4hc,9\"\" >> out/target/product/lemonadep/obj/PACKAGING/system_ext_intermediates/system_ext_image_info.txt ) && (echo \"avb_avbtool=avbtool\" >> out/target/product/lemonadep/obj/PACKAGING/system_ext_intermediates/system_ext_image_info.txt ) && (echo \"avb_system_ext_hashtree_enable=true\" >> out/target/product/lemonadep/obj/PACKAGING/system_ext_intermediates/system_ext_image_info.txt ) && (echo \"avb_system_ext_add_hashtree_footer_args=--prop com.android.build.system_ext.os_version:14 --prop com.android.build.system_ext.fingerprint:\$(cat out/target/product/lemonadep/build_fingerprint.txt) --prop com.android.build.system_ext.security_patch:2024-04-05\" >> out/target/product/lemonadep/obj/PACKAGING/system_ext_intermediates/system_ext_image_info.txt ) && (echo \"root_dir=out/target/product/lemonadep/root\" >> out/target/product/lemonadep/obj/PACKAGING/system_ext_intermediates/system_ext_image_info.txt ) && (echo \"use_dynamic_partition_size=true\" >> out/target/product/lemonadep/obj/PACKAGING/system_ext_intermediates/system_ext_image_info.txt ) && (echo \"skip_fsck=true\" >> out/target/product/lemonadep/obj/PACKAGING/system_ext_intermediates/system_ext_image_info.txt ) && (sort -o out/target/product/lemonadep/obj/PACKAGING/system_ext_intermediates/system_ext_image_info.txt out/target/product/lemonadep/obj/PACKAGING/system_ext_intermediates/system_ext_image_info.txt ) && (PATH=out/host/linux-x86/bin/:system/extras/ext4_utils/:\$PATH out/host/linux-x86/bin/build_image out/target/product/lemonadep/system_ext out/target/product/lemonadep/obj/PACKAGING/system_ext_intermediates/system_ext_image_info.txt out/target/product/lemonadep/system_ext.img out/target/product/lemonadep/system ) && (true )" 2024-04-24 23:25:07 - build_image.py - ERROR : Failed to build out/target/product/lemonadep/system_ext.img from out/target/product/lemonadep/system_ext Traceback (most recent call last): File "Same error occurs building
sunfish
. I tried changing value ofBOARD_SYSTEM_EXTIMAGE_PARTITION_RESERVED_SIZE
from8388609
to4194305
in filevendor/lineage/config/BoardConfigReservedSize.mk
, but still failedError building `sunfish`
``` [ 79% 319/401] Target system_ext fs image: out/target/product/sunfish/system_ext.img FAILED: out/target/product/sunfish/system_ext.img /bin/bash -c "(mkdir -p out/target/product/sunfish/system_ext ) && (mkdir -p out/target/product/sunfish/obj/PACKAGING/system_ext_intermediates && rm -rf out/target/product/sunfish/obj/PACKAGING/system_ext_intermediates/system_ext_image_info.txt ) && (echo \"system_ext_fs_type=ext4\" >> out/target/product/sunfish/obj/PACKAGING/system_ext_intermediates/system_ext_image_info.txt ) && (echo \"system_ext_reserved_size=4194305\" >> out/target/product/sunfish/obj/PACKAGING/system_ext_intermediates/system_ext_image_info.txt ) && (echo \"system_ext_disable_sparse=true\" >> out/target/product/sunfish/obj/PACKAGING/system_ext_intermediates/system_ext_image_info.txt ) && (echo \"system_ext_selinux_fc=out/target/product/sunfish/obj/ETC/file_contexts.bin_intermediates/file_contexts.bin\" >> out/target/product/sunfish/obj/PACKAGING/system_ext_intermediates/system_ext_image_info.txt ) && (echo \"building_system_ext_image=true\" >> out/target/product/sunfish/obj/PACKAGING/system_ext_intermediates/system_ext_image_info.txt ) && (echo \"ext_mkuserimg=mkuserimg_mke2fs\" >> out/target/product/sunfish/obj/PACKAGING/system_ext_intermediates/system_ext_image_info.txt ) && (echo \"fs_type=ext4\" >> out/target/product/sunfish/obj/PACKAGING/system_ext_intermediates/system_ext_image_info.txt ) && (echo \"extfs_sparse_flag=-s\" >> out/target/product/sunfish/obj/PACKAGING/system_ext_intermediates/system_ext_image_info.txt ) && (echo \"erofs_sparse_flag=-s\" >> out/target/product/sunfish/obj/PACKAGING/system_ext_intermediates/system_ext_image_info.txt ) && (echo \"squashfs_sparse_flag=-s\" >> out/target/product/sunfish/obj/PACKAGING/system_ext_intermediates/system_ext_image_info.txt ) && (echo \"f2fs_sparse_flag=-S\" >> out/target/product/sunfish/obj/PACKAGING/system_ext_intermediates/system_ext_image_info.txt ) && (echo \"avb_avbtool=avbtool\" >> out/target/product/sunfish/obj/PACKAGING/system_ext_intermediates/system_ext_image_info.txt ) && (echo \"avb_system_ext_hashtree_enable=true\" >> out/target/product/sunfish/obj/PACKAGING/system_ext_intermediates/system_ext_image_info.txt ) && (echo \"avb_system_ext_add_hashtree_footer_args=--hash_algorithm sha256 --prop com.android.build.system_ext.os_version:14 --prop com.android.build.system_ext.fingerprint:\$(cat out/target/product/sunfish/build_fingerprint.txt) --prop com.android.build.system_ext.security_patch:2024-04-05\" >> out/target/product/sunfish/obj/PACKAGING/system_ext_intermediates/system_ext_image_info.txt ) && (echo \"recovery_as_boot=true\" >> out/target/product/sunfish/obj/PACKAGING/system_ext_intermediates/system_ext_image_info.txt ) && (echo \"root_dir=out/target/product/sunfish/root\" >> out/target/product/sunfish/obj/PACKAGING/system_ext_intermediates/system_ext_image_info.txt ) && (echo \"use_dynamic_partition_size=true\" >> out/target/product/sunfish/obj/PACKAGING/system_ext_intermediates/system_ext_image_info.txt ) && (echo \"skip_fsck=true\" >> out/target/product/sunfish/obj/PACKAGING/system_ext_intermediates/system_ext_image_info.txt ) && (sort -o out/target/product/sunfish/obj/PACKAGING/system_ext_intermediates/system_ext_image_info.txt out/target/product/sunfish/obj/PACKAGING/system_ext_intermediates/system_ext_image_info.txt ) && (PATH=out/host/linux-x86/bin/:system/extras/ext4_utils/:\$PATH out/host/linux-x86/bin/build_image out/target/product/sunfish/system_ext out/target/product/sunfish/obj/PACKAGING/system_ext_intermediates/system_ext_image_info.txt out/target/product/sunfish/system_ext.img out/target/product/sunfish/system ) && (true )" 2024-04-25 19:18:47 - build_image.py - ERROR : Failed to build out/target/product/sunfish/system_ext.img from out/target/product/sunfish/system_ext Traceback (most recent call last): File "Originally posted by @gwstorm in https://github.com/lineageos4microg/docker-lineage-cicd/issues/615#issuecomment-2076478803