2 jingxudong jingxudong 于 2016.09.13 16:49 提问

mac编译android6.0源码报错,求大牛帮解答? 2C

Creating filesystem with parameters:
Size: 1610612736
Block size: 4096
Blocks per group: 32768
Inodes per group: 8192
Inode size: 256
Journal blocks: 6144
Label: system
Blocks: 393216
Block groups: 12
Reserved block group size: 95
Traceback (most recent call last):
File "./build/tools/releasetools/add_img_to_target_files", line 355, in
main(sys.argv[1:])
File "./build/tools/releasetools/add_img_to_target_files", line 349, in main
AddImagesToTargetFiles(args[0])
File "./build/tools/releasetools/add_img_to_target_files", line 309, in AddImagesToTargetFiles
AddSystem(output_zip, recovery_img=recovery_image, boot_img=boot_image)
File "./build/tools/releasetools/add_img_to_target_files", line 69, in AddSystem
block_list=block_list)
File "./build/tools/releasetools/add_img_to_target_files", line 77, in BuildSystem
return CreateImage(input_dir, info_dict, "system", block_list=block_list)
File "./build/tools/releasetools/add_img_to_target_files", line 160, in CreateImage
assert succ, "build " + what + ".img image failed"
AssertionError: build system.img image failed
make: *** [out/target/product/hammerhead/obj/PACKAGING/target_files_intermediates/aosp_hammerhead-target_files-eng.peak.zip] Error 1
make: *** Deleting file `out/target/product/hammerhead/obj/PACKAGING/target_files_intermediates/aosp_hammerhead-target_files-eng.peak.zip'

\e[0;31m#### make failed to build some targets (01:44 (mm:ss)) ####\e[00m

2个回答

jingxudong
jingxudong   2016.09.14 10:20

clean之后再编译,问题解决

u013496707
u013496707   2017.07.14 21:00

我也遇到这个问题了,应该是编译的时候电脑的swap分区内存不够用了。其实走到这一步,其相应的依赖包应该是都编译好了的,此时,只需要在根目录下执行:make snod -j8就可以直接生成最终的system.img包了。像其他的boot.img包应该是已经编译好了的。

Csdn user default icon
上传中...
上传图片
插入图片
准确详细的回答,更有利于被提问者采纳,从而获得C币。复制、灌水、广告等回答会被删除,是时候展现真正的技术了!