cmii 发表于 2023-12-21 12:49:56

编译buildroot出错

本帖最后由 cmii 于 2023-12-21 13:09 编辑

我解压了原厂的sdk没做任何修改!编译buildroot时,出现如下的错误,麻烦帮忙看看怎么解决!options :
INFO: build buildroot ...
make: Entering directory '/home/forlinx/work/OKA40i-linux-sdk/buildroot/buildroot-202205'
>>> host-python3 3.10.4 Building
PATH="/home/forlinx/work/OKA40i-linux-sdk/out/a40i_h/OKA40i-C/buildroot/buildroot/host/bin:/home/forlinx/work/OKA40i-linux-sdk/out/a40i_h/OKA40i-C/buildroot/buildroot/host/sbin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/usr/local/arm-gdb/bin:/opt/host/bin" PKG_CONFIG="/home/forlinx/work/OKA40i-linux-sdk/out/a40i_h/OKA40i-C/buildroot/buildroot/host/bin/pkg-config" PKG_CONFIG_SYSROOT_DIR="/" PKG_CONFIG_ALLOW_SYSTEM_CFLAGS=1 PKG_CONFIG_ALLOW_SYSTEM_LIBS=1 PKG_CONFIG_LIBDIR="/home/forlinx/work/OKA40i-linux-sdk/out/a40i_h/OKA40i-C/buildroot/buildroot/host/lib/pkgconfig:/home/forlinx/work/OKA40i-linux-sdk/out/a40i_h/OKA40i-C/buildroot/buildroot/host/share/pkgconfig" ac_cv_have_long_long_format=yes ac_cv_file__dev_ptmx=yes ac_cv_file__dev_ptc=yes ac_cv_working_tzset=yes ac_cv_prog_HAS_HG=/bin/false ac_cv_little_endian_double=yes /usr/bin/make -j5 PATH="/home/forlinx/work/OKA40i-linux-sdk/out/a40i_h/OKA40i-C/buildroot/buildroot/host/bin:/home/forlinx/work/OKA40i-linux-sdk/out/a40i_h/OKA40i-C/buildroot/buildroot/host/sbin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/usr/local/arm-gdb/bin:/opt/host/bin" PKG_CONFIG="/home/forlinx/work/OKA40i-linux-sdk/out/a40i_h/OKA40i-C/buildroot/buildroot/host/bin/pkg-config" PKG_CONFIG_SYSROOT_DIR="/" PKG_CONFIG_ALLOW_SYSTEM_CFLAGS=1 PKG_CONFIG_ALLOW_SYSTEM_LIBS=1 PKG_CONFIG_LIBDIR="/home/forlinx/work/OKA40i-linux-sdk/out/a40i_h/OKA40i-C/buildroot/buildroot/host/lib/pkgconfig:/home/forlinx/work/OKA40i-linux-sdk/out/a40i_h/OKA40i-C/buildroot/buildroot/host/share/pkgconfig" AR="/usr/bin/ar" AS="/usr/bin/as" LD="/usr/bin/ld" NM="/usr/bin/nm" CC="/usr/bin/gcc" GCC="/usr/bin/gcc" CXX="/usr/bin/g++" CPP="/usr/bin/cpp" OBJCOPY="/usr/bin/objcopy" RANLIB="/usr/bin/ranlib" CPPFLAGS="-I/home/forlinx/work/OKA40i-linux-sdk/out/a40i_h/OKA40i-C/buildroot/buildroot/host/include" CFLAGS="-O2 -I/home/forlinx/work/OKA40i-linux-sdk/out/a40i_h/OKA40i-C/buildroot/buildroot/host/include" CXXFLAGS="-O2 -I/home/forlinx/work/OKA40i-linux-sdk/out/a40i_h/OKA40i-C/buildroot/buildroot/host/include" LDFLAGS="-L/home/forlinx/work/OKA40i-linux-sdk/out/a40i_h/OKA40i-C/buildroot/buildroot/host/lib -Wl,-rpath,/home/forlinx/work/OKA40i-linux-sdk/out/a40i_h/OKA40i-C/buildroot/buildroot/host/lib" INTLTOOL_PERL=/usr/bin/perl -C /home/forlinx/work/OKA40i-linux-sdk/out/a40i_h/OKA40i-C/buildroot/buildroot/build/host-python3-3.10.4 regen-importlib
make: Entering directory '/home/forlinx/work/OKA40i-linux-sdk/out/a40i_h/OKA40i-C/buildroot/buildroot/build/host-python3-3.10.4'
# Regenerate Python/importlib_external.h
# from Lib/importlib/_bootstrap_external.py using _freeze_importlib
./Programs/_freeze_importlib importlib._bootstrap_external \
    ./Lib/importlib/_bootstrap_external.py \
    ./Python/importlib_external.h.new
python3.10 ./Tools/scripts/update_file.py ./Python/importlib_external.h ./Python/importlib_external.h.new
python3.10: error while loading shared libraries: libpython3.10.so.1.0: cannot open shared object file: No such file or directory
Makefile:751: recipe for target 'regen-importlib' failed
make: *** Error 127
make: Leaving directory '/home/forlinx/work/OKA40i-linux-sdk/out/a40i_h/OKA40i-C/buildroot/buildroot/build/host-python3-3.10.4'
package/pkg-generic.mk:291: recipe for target '/home/forlinx/work/OKA40i-linux-sdk/out/a40i_h/OKA40i-C/buildroot/buildroot/build/host-python3-3.10.4/.stamp_built' failed
make: *** Error 2
make: Leaving directory '/home/forlinx/work/OKA40i-linux-sdk/buildroot/buildroot-202205'
ERROR: build buildroot Failed

Gao_JX 发表于 2023-12-26 10:13:48

删掉/home/forlinx/work/OKA40i-linux-sdk/out/a40i_h/OKA40i-C/buildroot/buildroot/build/host-python3-3.10.4/.stamp_built这个标志位重新编译就可以
页: [1]
查看完整版本: 编译buildroot出错