Firefly开源社区

标题: Android编译报错mkuserimg_mke2fs.py.srcszip: zip: not a valid zip file [打印本页]

作者: tianxialongfei    时间: 2022-11-30 11:58
标题: Android编译报错mkuserimg_mke2fs.py.srcszip: zip: not a valid zip file
RT.  编译主机 Ubuntu 18.04.5 LTS,32G-DDR3;环境确认过。
SDK版本:
commit a4116da2323c5b661801925e0b4049f14fbb2b56 (HEAD -> firefly)
Author: Firefly <service@t-firefly.com>
Date:   Thu Sep 29 09:34:39 2022 +0800

    support ROC-RK3568-PC SE and FireflyApi2 Demo


进行第一次公版编译,采用的MIPI屏编译指令:
./FFTools/make.sh -d rk3566-roc-pc-mipi101_M101014_BE45_A1 -j8 -l rk3566_roc_pc_mipi-userdebug
./FFTools/mkupdate/mkupdate.sh -l rk3566_roc_pc_mipi-userdebug


在编译Android11的过程中报如下错误, 请问怎么解决呢?

[ 20% 10844/52645] //system/extras/ext4_utils:mkuserimg_mke2fs embedded python archive [linux_glibc]
FAILED: out/soong/.intermediates/system/extras/ext4_utils/mkuserimg_mke2fs/linux_glibc_x86_64_PY2/mkuserimg_mke2fs
rm -f out/soong/.intermediates/system/extras/ext4_utils/mkuserimg_mke2fs/linux_glibc_x86_64_PY2/mkuserimg_mke2fs.main && sed 's/ENTRY_POINT/mkuserimg_mke2fs/' build/soong/python/scripts/main.py >out/soong/.intermediates/system/extras/ext4_utils/mkuserimg_mke2fs/linux_glibc_x86_64_PY2/mkuserimg_mke2fs.main &&out/soong/host/linux-x86/bin/merge_zips -p -pm out/soong/.intermediates/system/extras/ext4_utils/mkuserimg_mke2fs/linux_glibc_x86_64_PY2/mkuserimg_mke2fs.main --prefix out/soong/.intermediates/external/python/cpython2/py2-launcher-autorun/linux_glibc_x86_64/py2-launcher-autorun64 out/soong/.intermediates/system/extras/ext4_utils/mkuserimg_mke2fs/linux_glibc_x86_64_PY2/mkuserimg_mke2fs out/soong/.intermediates/system/extras/ext4_utils/mkuserimg_mke2fs/linux_glibc_x86_64_PY2/mkuserimg_mke2fs.py.srcszip out/soong/.intermediates/external/python/cpython2/Lib/py2-stdlib/linux_glibc_x86_64_PY2/py2-stdlib.py.srcszip && chmod +x out/soong/.intermediates/system/extras/ext4_utils/mkuserimg_mke2fs/linux_glibc_x86_64_PY2/mkuserimg_mke2fs && rm -rf out/soong/.intermediates/system/extras/ext4_utils/mkuserimg_mke2fs/linux_glibc_x86_64_PY2/mkuserimg_mke2fs.main
merge_zips.go:752: out/soong/.intermediates/system/extras/ext4_utils/mkuserimg_mke2fs/linux_glibc_x86_64_PY2/mkuserimg_mke2fs.py.srcszip: zip: not a valid zip file
11:31:25 ninja failed with: exit status 1



tchip_askquestions

Build.zip

666 Bytes, 下载次数: 0, 下载积分: 灯泡 -1 , 经验 -1


作者: jpchen    时间: 2022-11-30 14:43
编译的环境问题,参考wiki 环境搭建
作者: tianxialongfei    时间: 2022-12-1 10:27
本帖最后由 tianxialongfei 于 2022-12-1 15:40 编辑

已解决,编译Android过程中中断过,之后重新编译出的这个错。删除out目录重新编译就可以了!




欢迎光临 Firefly开源社区 (https://dev.t-firefly.com/) Powered by Discuz! X3.1