其他分享
首页 > 其他分享> > uboot编译报错解决

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
在这里插入图片描述

执行如下命令即可 : 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…

在这里插入图片描述
遇到如上图报错信息,执行如下命令即可 :apt-get install swig

标签:uboot,offsets,dtc,make,Error,Makefile,编译,报错,scripts
来源: https://blog.csdn.net/qq_41795122/article/details/121149752