uboot编译报错解决

File “scripts/dtc/pylibfdt/setup.py”, line 21, in
from distutils.core import setup, Extension
ModuleNotFoundError: No module named ‘distutils.core’
HOSTCC scripts/dtc/checks.o
make[3]: *** [scripts/dtc/pylibfdt/Makefile:30: rebuild] Error 1
make[2]: *** [scripts/Makefile.build:419: scripts/dtc/pylibfdt] Error 2
make[2]: *** Waiting for unfinished jobs…
CC lib/asm-offsets.s
CC arch/arm/lib/asm-offsets.s
uboot编译报错解决

执行如下命令即可 : apt-get install python-dev python3-dev

nable to execute ‘swig’: No such file or directory
error: command ‘swig’ failed with exit status 1
make[3]: *** [scripts/dtc/pylibfdt/Makefile:30: rebuild] Error 1
make[2]: *** [scripts/Makefile.build:419: scripts/dtc/pylibfdt] Error 2
make[2]: *** Waiting for unfinished jobs…
CC lib/asm-offsets.s
CC arch/arm/lib/asm-offsets.s
make[1]: *** [scripts/Makefile.build:419: scripts/dtc] Error 2
UPD include/generated/asm-offsets.h
UPD include/generated/generic-asm-offsets.h
make: *** [Makefile:576: scripts] Error 2
make: *** Waiting for unfinished jobs…

uboot编译报错解决
遇到如上图报错信息,执行如下命令即可 :apt-get install swig

上一篇:centos7如何修改IP地址永久有效


下一篇:Go语言基础之信道(channel)