imx-automotive-10.0.0_2.2.0编译报错问题

yhm2046 中级 2021-07-30 15:36:42

第一次编译源码,按照文档操作,系统是ubuntu16.04,关键报错信息如下,请指点谢谢

FAILED: out/target/product/mek_8q/partition-table-default.img
/bin/bash -c "(out/host/linux-x86/bin/bpttool make_table --output_gpt out/target/product/mek_8q/partition-table-default.img --output_json out/target/product/mek_8q/partition-table-default.bpt --input device/fsl/common/partition/device-partitions-13GB-ab-dual-bootloader.bpt ) && (for addition_partition in partition-table-28GB:device/fsl/common/partition/device-partitions-28GB-ab-dual-bootloader.bpt; do PARTITION_OUT_IMAGE=\`echo \$addition_partition | cut -d\":\" -f1\`; PARTITION_INPUT_BPT=\`echo \$addition_partition | cut -d\":\" -f2\`; out/host/linux-x86/bin/bpttool make_table --output_gpt out/target/product/mek_8q/\$PARTITION_OUT_IMAGE.img --output_json out/target/product/mek_8q/\$PARTITION_OUT_IMAGE.bpt --input \$PARTITION_INPUT_BPT ; done )"
File "out/host/linux-x86/bin/bpttool", line 1065
print '{}.{}'.format(BPT_VERSION_MAJOR, BPT_VERSION_MINOR)
^
SyntaxError: invalid syntax
[ 12% 12843/104342] Target partition table image: out/target/product/mek_8q/partition-table.img
FAILED: out/target/product/mek_8q/partition-table.img
/bin/bash -c "out/host/linux-x86/bin/bpttool make_table --output_gpt out/target/product/mek_8q/partition-table.img --output_json out/target/product/mek_8q/partition-table.bpt --input device/fsl/common/partition/device-partitions-13GB-ab-dual-bootloader.bpt"
File "out/host/linux-x86/bin/bpttool", line 1065
print '{}.{}'.format(BPT_VERSION_MAJOR, BPT_VERSION_MINOR)
^
SyntaxError: invalid syntax

 

...全文
1171 6 打赏 收藏 转发到动态 举报
写回复
用AI写文章
6 条回复
切换为时间正序
请发表友善的回复…
发表回复
学无止境123456 2023-08-03
  • 打赏
  • 举报
回复

File "./bpttool", line 1786
print '{}.{}'.format(BPT_VERSION_MAJOR, BPT_VERSION_MINOR)
^
SyntaxError: invalid syntax
我也碰到一样的问题。

lwz 2021-08-03
  • 打赏
  • 举报
回复

空间不足,源码不完整

yhm2046 中级 2021-08-04
  • 举报
回复
@lwz 请问我看了空间应该没问题,我1T的硬盘目前只用了27%,不过你说的源码不完整我昨天重新下载再重编试下
yhm2046 中级 2021-08-02
  • 打赏
  • 举报
回复

请问有人知道怎么解决吗?

yhm2046 中级 2021-08-01
  • 打赏
  • 举报
回复

现在是这个报错

make[2]: Leaving directory '/home/evan/automotive10/android_build/out/target/product/mek_8q/obj/UBOOT_OBJ'
make[1]: Leaving directory '/home/evan/automotive10/android_build/vendor/nxp-opensource/uboot-imx'
cc1: fatal error: opening output file spl/u-boot-spl.cfgout: No such file or directory
compilation terminated.
cc1: fatal error: /home/evan/automotive10/android_build/vendor/nxp-opensource/uboot-imx/: No such file or directory
compilation terminated.
/home/evan/automotive10/android_build/vendor/nxp-opensource/uboot-imx/drivers/fastboot/fb_fsl/fb_fsl_boot.c: In function 'do_boota':
/home/evan/automotive10/android_build/vendor/nxp-opensource/uboot-imx/drivers/fastboot/fb_fsl/fb_fsl_boot.c:791:10: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
   memcpy((void *)fdt_addr, (void *)((ulong)dt_img +
          ^
In file included from /home/evan/automotive10/android_build/vendor/nxp-opensource/uboot-imx/include/linux/byteorder/little_endian.h:107,

yhm2046 中级 2021-07-30
  • 打赏
  • 举报
回复

完整log:http://gofile.me/4ZJ1m/kJbeIz4yL 密码123456

80,491

社区成员

发帖
与我相关
我的任务
社区描述
移动平台 Android
androidandroid-studioandroidx 技术论坛(原bbs)
社区管理员
  • Android
  • yechaoa
  • 失落夏天
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧