您尚未登录。

楼主 # 2021-09-25 19:19:31

tigger
会员
注册时间: 2021-06-18
已发帖子: 118
积分: 62

编译uboot出现 ModuleNotFoundError: No module named 'distutils.core'

  HOSTCC  scripts/basic/fixdep
  HOSTCC  scripts/kconfig/conf.o
  HOSTCC  scripts/kconfig/zconf.tab.o
  HOSTLD  scripts/kconfig/conf
scripts/kconfig/conf  --syncconfig Kconfig
  CHK     include/config.h
  UPD     include/config.h
  CFG     u-boot.cfg
  GEN     include/autoconf.mk.dep
  CFG     spl/u-boot.cfg
  GEN     include/autoconf.mk
  GEN     spl/include/autoconf.mk
  CHK     include/config/uboot.release
  CHK     include/generated/timestamp_autogenerated.h
  CHK     include/generated/defaultenv_autogenerated.h
  UPD     include/generated/timestamp_autogenerated.h
  UPD     include/generated/defaultenv_autogenerated.h
  UPD     include/config/uboot.release
  CHK     include/generated/version_autogenerated.h
  UPD     include/generated/version_autogenerated.h
  HOSTCC  scripts/dtc/dtc.o
  HOSTCC  scripts/dtc/fstree.o
  HOSTCC  scripts/dtc/livetree.o
  HOSTCC  scripts/dtc/treesource.o
  HOSTCC  scripts/dtc/data.o
  HOSTCC  scripts/dtc/flattree.o
  HOSTCC  scripts/dtc/srcpos.o
  SHIPPED scripts/dtc/pylibfdt/libfdt.i
  PYMOD   scripts/dtc/pylibfdt/_libfdt.so
  CC      lib/asm-offsets.s
  HOSTCC  scripts/dtc/checks.o
  HOSTCC  scripts/dtc/util.o
  YACC    scripts/dtc/dtc-parser.tab.h
  LEX     scripts/dtc/dtc-lexer.lex.c
  CC      arch/arm/lib/asm-offsets.s
  YACC    scripts/dtc/dtc-parser.tab.c
  CHK     include/generated/generic-asm-offsets.h
  UPD     include/generated/generic-asm-offsets.h
  CHK     include/generated/asm-offsets.h
  UPD     include/generated/asm-offsets.h
Traceback (most recent call last):
  File "scripts/dtc/pylibfdt/setup.py", line 21, in <module>
    from distutils.core import setup, Extension
ModuleNotFoundError: No module named 'distutils.core'
scripts/dtc/pylibfdt/Makefile:27: recipe for target 'scripts/dtc/pylibfdt/_libfdt.so' failed
make[5]: *** [scripts/dtc/pylibfdt/_libfdt.so] Error 1
scripts/Makefile.build:432: recipe for target 'scripts/dtc/pylibfdt' failed
make[4]: *** [scripts/dtc/pylibfdt] Error 2
make[4]: *** Waiting for unfinished jobs....
  LDS     u-boot.lds
scripts/Makefile.build:432: recipe for target 'scripts/dtc' failed
make[3]: *** [scripts/dtc] Error 2
Makefile:551: recipe for target 'scripts' failed
make[2]: *** [scripts] Error 2
package/pkg-generic.mk:247: recipe for target '/opt/x3/buildroot_vgabox2/output/build/uboot-2020.01/.stamp_built' failed
make[1]: *** [/opt/x3/buildroot_vgabox2/output/build/uboot-2020.01/.stamp_built] Error 2
Makefile:84: recipe for target '_all' failed
make: *** [_all] Error 2

离线

楼主 #1 2021-09-25 19:20:13

tigger
会员
注册时间: 2021-06-18
已发帖子: 118
积分: 62

Re: 编译uboot出现 ModuleNotFoundError: No module named 'distutils.core'

晕,终于找到问题,python缺模块: sudo apt-get install python3-distutils

离线

页脚

工信部备案:粤ICP备20025096号 Powered by FluxBB

感谢为中文互联网持续输出优质内容的各位老铁们。 QQ: 516333132, 微信(wechat): whycan_cn (哇酷网/挖坑网/填坑网) service@whycan.cn