robherring / generic_device

A generic android device repository
62 stars 29 forks source link

Build fails linaro_x86_64-userdebug Out of space? #11

Open montvid opened 6 years ago

montvid commented 6 years ago

Hi, what might be the problem? Impossible to build. :(

source build/envsetup.sh lunch linaro_x86_64-userdebug make [ 99% 63188/63189] Target system fs im...G/systemimage_intermediates/system.img FAILED: out/target/product/linaro_x86_64/obj/PACKAGING/systemimage_intermediates/system.img /bin/bash -c "(mkdir -p out/target/product/linaro_x86_64/obj/PACKAGING/systemimage_intermediates/ out/target/product/linaro_x86_64/obj/PACKAGING/systemimage_intermediates && rm -rf out/target/product/linaro_x86_64/obj/PACKAGING/systemimage_intermediates/system_image_info.txt ) && (echo \"ext_mkuserimg=mkuserimg.sh\" >> out/target/product/linaro_x86_64/obj/PACKAGING/systemimage_intermediates/system_image_info.txt ) && (echo \"fs_type=ext4\" >> out/target/product/linaro_x86_64/obj/PACKAGING/systemimage_intermediates/system_image_info.txt ) && (echo \"system_size=800000000\" >> out/target/product/linaro_x86_64/obj/PACKAGING/systemimage_intermediates/system_image_info.txt ) && (echo \"system_fs_type=ext4\" >> out/target/product/linaro_x86_64/obj/PACKAGING/systemimage_intermediates/system_image_info.txt ) && (echo \"userdata_size=576716800\" >> out/target/product/linaro_x86_64/obj/PACKAGING/systemimage_intermediates/system_image_info.txt ) && (echo \"cache_fs_type=ext4\" >> out/target/product/linaro_x86_64/obj/PACKAGING/systemimage_intermediates/system_image_info.txt ) && (echo \"cache_size=69206016\" >> out/target/product/linaro_x86_64/obj/PACKAGING/systemimage_intermediates/system_image_info.txt ) && (echo \"extfs_sparse_flag=-s\" >> out/target/product/linaro_x86_64/obj/PACKAGING/systemimage_intermediates/system_image_info.txt ) && (echo \"squashfs_sparse_flag=-s\" >> out/target/product/linaro_x86_64/obj/PACKAGING/systemimage_intermediates/system_image_info.txt ) && (echo \"selinux_fc=out/target/product/linaro_x86_64/obj/ETC/file_contexts.bin_intermediates/file_contexts.bin\" >> out/target/product/linaro_x86_64/obj/PACKAGING/systemimage_intermediates/system_image_info.txt ) && (echo \"skip_fsck=true\" >> out/target/product/linaro_x86_64/obj/PACKAGING/systemimage_intermediates/system_image_info.txt ) && (PATH=out/host/linux-x86/bin/:\$PATH ./build/tools/releasetools/build_image.py out/target/product/linaro_x86_64/system out/target/product/linaro_x86_64/obj/PACKAGING/systemimage_intermediates/system_image_info.txt out/target/product/linaro_x86_64/obj/PACKAGING/systemimage_intermediates/system.img out/target/product/linaro_x86_64/system || ( echo \"Out of space? the tree size of out/target/product/linaro_x86_64/system is (MB): \" 1>&2 ; du -sm out/target/product/linaro_x86_64/system 1>&2; if [ \"ext4\" == \"ext4\" ]; then maxsize=800000000; if [ \"\" == \"true\" ]; then maxsize=\$((maxsize - 4096 * 4096)); fi; echo \"The max is \$(( maxsize / 1048576 )) MB.\" 1>&2 ; else echo \"The max is \$(( 800000000 / 1048576 )) MB.\" 1>&2 ; fi; mkdir -p out/dist; cp out/target/product/linaro_x86_64/installed-files.txt out/dist/installed-files-rescued.txt; exit 1 ) )" error: failed to build out/target/product/linaro_x86_64/obj/PACKAGING/systemimage_intermediates/system.img from out/target/product/linaro_x86_64/system Running: mkuserimg.sh -s out/target/product/linaro_x86_64/system out/target/product/linaro_x86_64/obj/PACKAGING/systemimage_intermediates/system.img ext4 system 800000000 -D out/target/product/linaro_x86_64/system -L system out/target/product/linaro_x86_64/obj/ETC/file_contexts.bin_intermediates/file_contexts.bin make_ext4fs -s -T -1 -S out/target/product/linaro_x86_64/obj/ETC/file_contexts.bin_intermediates/file_contexts.bin -L system -l 800000000 -a system out/target/product/linaro_x86_64/obj/PACKAGING/systemimage_intermediates/system.img out/target/product/linaro_x86_64/system out/target/product/linaro_x86_64/system error: ext4_allocate_best_fit_partial: failed to allocate 2578 blocks, out of space? Creating filesystem with parameters: Size: 799997952 Block size: 4096 Blocks per group: 32768 Inodes per group: 8144 Inode size: 256 Journal blocks: 3051 Label: system Blocks: 195312 Block groups: 6 Reserved block group size: 47 Out of space? the tree size of out/target/product/linaro_x86_64/system is (MB): 855 out/target/product/linaro_x86_64/system The max is 762 MB. ninja: build stopped: subcommand failed. 11:52:33 ninja failed with: exit status 1

montvid commented 6 years ago

Fixed by changing linaro_x86_64_defconfig from BOARD_SYSTEMIMAGE_PARTITION_SIZE=800000000 to BOARD_SYSTEMIMAGE_PARTITION_SIZE=1000000000

montvid commented 6 years ago

Sent a patch #12