[其他ST产品] 在ubuntu中编译stm32mp157的uboot失败问题

[复制链接]
560|2
 楼主| flycamelaaa 发表于 2022-9-6 16:34 | 显示全部楼层 |阅读模式
home/ygrong/stm32mp15/u-boot-stm32mp-v2021.10-stm32mp1-r1-r0/u-boot-stm32mp-v2021.10-stm32mp1-r1/scripts/dtc/pylibfdt/setup.py:21: DeprecationWarning: The distutils package is deprecated and slated for removal in Python 3.12. Use setuptools or check PEP 632 for potential alternatives
  from distutils.core import setup, Extension
cc: error: unrecognized command line option ‘-fmacro-prefix-map=/nativesdk-python3/3.10.4-r0=/usr/src/debug/nativesdk-python3/3.10.4-r0’
cc: error: unrecognized command line option ‘-fmacro-prefix-map=/nativesdk-python3/3.10.4-r0=/usr/src/debug/nativesdk-python3/3.10.4-r0’
error: command '/usr/bin/cc' failed with exit code 1
scripts/dtc/pylibfdt/Makefile:27: recipe for target 'rebuild' failed
make[2]: *** [rebuild] Error 1
scripts/Makefile.build:394: recipe for target 'scripts/dtc/pylibfdt' failed
make[1]: *** [scripts/dtc/pylibfdt] Error 2
Makefile:1986: recipe for target 'scripts_dtc' failed
make: *** [scripts_dtc] Error 2
AIsignel 发表于 2022-9-14 17:17 | 显示全部楼层
python版本不对?
AIsignel 发表于 2022-9-14 17:18 | 显示全部楼层
建议使用厂商提供的系统镜像或者开发环境,这样开发过程遇到的问题也会比较少!
您需要登录后才可以回帖 登录 | 注册

本版积分规则

837

主题

4432

帖子

1

粉丝
快速回复 在线客服 返回列表 返回顶部