2 lxl6125 lxl6125 于 2017.09.16 21:32 提问

编译lineage-15源码报错,求大神支招

FAILED: /home/lxl/lineage/out/target/product/ham/cache.img
/bin/bash -c "(mkdir -p /home/lxl/lineage/out/target/product/ham/cache ) && (mkdir -p /home/lxl/lineage/out/target/product/ham/obj/PACKAGING/cache_intermediates && rm -rf /home/lxl/lineage/out/target/product/ham/obj/PACKAGING/cache_intermediates/cache_image_info.txt ) && (echo \"ext_mkuserimg=mkuserimg.sh\" >> /home/lxl/lineage/out/target/product/ham/obj/PACKAGING/cache_intermediates/cache_image_info.txt ) && (echo \"fs_type=ext4\" >> /home/lxl/lineage/out/target/product/ham/obj/PACKAGING/cache_intermediates/cache_image_info.txt ) && (echo \"system_size=2147483648\" >> /home/lxl/lineage/out/target/product/ham/obj/PACKAGING/cache_intermediates/cache_image_info.txt ) && (echo \"userdata_size=12815659008\" >> /home/lxl/lineage/out/target/product/ham/obj/PACKAGING/cache_intermediates/cache_image_info.txt ) && (echo \"cache_fs_type=ext4\" >> /home/lxl/lineage/out/target/product/ham/obj/PACKAGING/cache_intermediates/cache_image_info.txt ) && (echo \"cache_size=134217728\" >> /home/lxl/lineage/out/target/product/ham/obj/PACKAGING/cache_intermediates/cache_image_info.txt ) && (echo \"oem_size=133169152\" >> /home/lxl/lineage/out/target/product/ham/obj/PACKAGING/cache_intermediates/cache_image_info.txt ) && (echo \"extfs_sparse_flag=-s\" >> /home/lxl/lineage/out/target/product/ham/obj/PACKAGING/cache_intermediates/cache_image_info.txt ) && (echo \"squashfs_sparse_flag=-s\" >> /home/lxl/lineage/out/target/product/ham/obj/PACKAGING/cache_intermediates/cache_image_info.txt ) && (echo \"selinux_fc=/home/lxl/lineage/out/target/product/ham/obj/ETC/file_contexts.bin_intermediates/file_contexts.bin\" >> /home/lxl/lineage/out/target/product/ham/obj/PACKAGING/cache_intermediates/cache_image_info.txt ) && (echo \"skip_fsck=true\" >> /home/lxl/lineage/out/target/product/ham/obj/PACKAGING/cache_intermediates/cache_image_info.txt ) && (PATH=/home/lxl/lineage/out/host/linux-x86/bin/:\$PATH ./build/tools/releasetools/build_image.py /home/lxl/lineage/out/target/product/ham/cache /home/lxl/lineage/out/target/product/ham/obj/PACKAGING/cache_intermediates/cache_image_info.txt /home/lxl/lineage/out/target/product/ham/cache.img /home/lxl/lineage/out/target/product/ham/system ) && (size=\$(for i in /home/lxl/lineage/out/target/product/ham/cache.img; do stat --format \"%s\" \"\$i\" | tr -d '\n'; echo +; done; echo 0); total=\$(( \$( echo \"\$size\" ) )); printname=\$(echo -n \"/home/lxl/lineage/out/target/product/ham/cache.img\" | tr \" \" +); img_blocksize=135168; twoblocks=\$((img_blocksize * 2)); onepct=\$(((((138412032 / 100) - 1) / img_blocksize + 1) * img_blocksize)); reserve=\$((twoblocks > onepct ? twoblocks : onepct)); maxsize=\$((138412032 - reserve)); echo \"\$printname maxsize=\$maxsize blocksize=\$img_blocksize total=\$total reserve=\$reserve\"; if [ \"\$total\" -gt \"\$maxsize\" ]; then echo \"error: \$printname too large (\$total > [138412032 - \$reserve])\"; false; elif [ \"\$total\" -gt \$((maxsize - 32768)) ]; then echo \"WARNING: \$printname approaching size limit (\$total now; limit \$maxsize)\"; fi )"
error: failed to build /home/lxl/lineage/out/target/product/ham/cache.img from /home/lxl/lineage/out/target/product/ham/cache
Running: mkuserimg.sh -s /home/lxl/lineage/out/target/product/ham/cache /home/lxl/lineage/out/target/product/ham/cache.img ext4 cache 134217728 -D /home/lxl/lineage/out/target/product/ham/system -L cache /home/lxl/lineage/out/target/product/ham/obj/ETC/file_contexts.bin_intermediates/file_contexts.bin
make_ext4fs -s -T -1 -S /home/lxl/lineage/out/target/product/ham/obj/ETC/file_contexts.bin_intermediates/file_contexts.bin -L cache -l 134217728 -a cache /home/lxl/lineage/out/target/product/ham/cache.img /home/lxl/lineage/out/target/product/ham/cache /home/lxl/lineage/out/target/product/ham/system
critical error: ext4_create_fs_aux_info: filesystem size too small
Creating filesystem with parameters:
Size: 134217728
Block size: 4096
Blocks per group: 32768
Inodes per group: 8192
Inode size: 256
Journal blocks: 1024
Label: cache
[ 90% 56971/62667] cc /home/lxl/lineage/out/soong/.intermediates/frameworks/compil...g/llvm-rs-cc/linux_x86_64/obj/frameworks/compile/slang/slang_rs_foreach_lowering.o
ninja: build stopped: subcommand failed.
03:29:13 ninja failed with: exit status 1
build/core/main.mk:21: recipe for target 'run_soong_ui' failed
make: *** [run_soong_ui] Error 1
make: Leaving directory '/home/lxl/lineage'

2个回答

simon_xupt
simon_xupt   2017.11.02 19:06

你好,我现在编译lineage-15.0的源码,编译到67%的时候出错了,错误为“error:failed parsing overlays”,你现在编译成功了吗?

wenrou2554
wenrou2554   2017.11.08 23:01

filesystem size too small

Csdn user default icon
上传中...
上传图片
插入图片