|
发表于 2022-8-29 17:31:03
只看该作者
9#
因为之前编译鸿蒙更改过 python 的链接,使其链接到 python3.8,但是更改回 python2 后尝试编译还是出现错误,源于编译 buildroot 时的 host-libglib2 2.68.4 Configuring,其中 import get_env_var 出错,get_env_var 这个模块网上搜不到相关信息,log如下:
2022-08-29T17:13:16 >>> host-libglib2 2.68.4 Configuring
2022-08-29T17:13:16 rm -rf /home/working/pro/ROC-RK3568-PC/Linux-SDK/rk356x_linux_release_20211019/buildroot/output/rockchip_rk3568/build/host-libglib2-2.68.4//build
2022-08-29T17:13:16 mkdir -p /home/working/pro/ROC-RK3568-PC/Linux-SDK/rk356x_linux_release_20211019/buildroot/output/rockchip_rk3568/build/host-libglib2-2.68.4//build
2022-08-29T17:13:16 PATH="/home/working/pro/ROC-RK3568-PC/Linux-SDK/rk356x_linux_release_20211019/buildroot/output/rockchip_rk3568/host/bin:/home/working/pro/ROC-RK3568-PC/Linux-SDK/rk356x_linux_release_20211019/buildroot/output/rockchip_rk3568/host/sbin:/home/youchengzi/tools/gcc-linaro-6.3.1-2017.05-x86_64_aarch64-linux-gnu/bin:/home/youchengzi/.nvm/versions/node/v16.15.1/bin:/home/youchengzi/tools/openharmony/gcc_riscv32/bin:/home/youchengzi/.local/bin:/home/youchengzi/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin" PKG_CONFIG="/home/working/pro/ROC-RK3568-PC/Linux-SDK/rk356x_linux_release_20211019/buildroot/output/rockchip_rk3568/host/bin/pkg-config" PKG_CONFIG_SYSROOT_DIR="/" PKG_CONFIG_ALLOW_SYSTEM_CFLAGS=1 PKG_CONFIG_ALLOW_SYSTEM_LIBS=1 PKG_CONFIG_LIBDIR="/home/working/pro/ROC-RK3568-PC/Linux-SDK/rk356x_linux_release_20211019/buildroot/output/rockchip_rk3568/host/lib/pkgconfig:/home/working/pro/ROC-RK3568-PC/Linux-SDK/rk356x_linux_release_20211019/buildroot/output/rockchip_rk3568/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/working/pro/ROC-RK3568-PC/Linux-SDK/rk356x_linux_release_20211019/buildroot/output/rockchip_rk3568/host/include" CFLAGS="-O2 -I/home/working/pro/ROC-RK3568-PC/Linux-SDK/rk356x_linux_release_20211019/buildroot/output/rockchip_rk3568/host/include" CXXFLAGS="-O2 -I/home/working/pro/ROC-RK3568-PC/Linux-SDK/rk356x_linux_release_20211019/buildroot/output/rockchip_rk3568/host/include" LDFLAGS="-L/home/working/pro/ROC-RK3568-PC/Linux-SDK/rk356x_linux_release_20211019/buildroot/output/rockchip_rk3568/host/lib -Wl,-rpath,/home/working/pro/ROC-RK3568-PC/Linux-SDK/rk356x_linux_release_20211019/buildroot/output/rockchip_rk3568/host/lib" INTLTOOL_PERL=/usr/bin/perl PYTHONNOUSERSITE=y /home/working/pro/ROC-RK3568-PC/Linux-SDK/rk356x_linux_release_20211019/buildroot/output/rockchip_rk3568/host/bin/meson --prefix=/home/working/pro/ROC-RK3568-PC/Linux-SDK/rk356x_linux_release_20211019/buildroot/output/rockchip_rk3568/host --libdir=lib --sysconfdir=/home/working/pro/ROC-RK3568-PC/Linux-SDK/rk356x_linux_release_20211019/buildroot/output/rockchip_rk3568/host/etc --localstatedir=/home/working/pro/ROC-RK3568-PC/Linux-SDK/rk356x_linux_release_20211019/buildroot/output/rockchip_rk3568/host/var --default-library=shared --buildtype=release -Dstrip=true -Ddtrace=false -Dfam=false -Dglib_debug=disabled -Dlibelf=disabled -Dselinux=disabled -Dsystemtap=false -Dxattr=false -Dinternal_pcre=false -Dtests=false -Doss_fuzz=disabled /home/working/pro/ROC-RK3568-PC/Linux-SDK/rk356x_linux_release_20211019/buildroot/output/rockchip_rk3568/build/host-libglib2-2.68.4/ /home/working/pro/ROC-RK3568-PC/Linux-SDK/rk356x_linux_release_20211019/buildroot/output/rockchip_rk3568/build/host-libglib2-2.68.4//build
2022-08-29T17:13:16 Traceback (most recent call last):
2022-08-29T17:13:16 File "/home/working/pro/ROC-RK3568-PC/Linux-SDK/rk356x_linux_release_20211019/buildroot/output/rockchip_rk3568/host/bin/meson", line 11, in <module>
2022-08-29T17:13:16 load_entry_point('meson==0.60.3', 'console_scripts', 'meson')()
2022-08-29T17:13:16 File "/home/working/pro/ROC-RK3568-PC/Linux-SDK/rk356x_linux_release_20211019/buildroot/output/rockchip_rk3568/host/lib/python3.8/site-packages/pkg_resources/__init__.py", line 489, in load_entry_point
2022-08-29T17:13:16 return get_distribution(dist).load_entry_point(group, name)
2022-08-29T17:13:16 File "/home/working/pro/ROC-RK3568-PC/Linux-SDK/rk356x_linux_release_20211019/buildroot/output/rockchip_rk3568/host/lib/python3.8/site-packages/pkg_resources/__init__.py", line 2852, in load_entry_point
2022-08-29T17:13:16 return ep.load()
2022-08-29T17:13:16 File "/home/working/pro/ROC-RK3568-PC/Linux-SDK/rk356x_linux_release_20211019/buildroot/output/rockchip_rk3568/host/lib/python3.8/site-packages/pkg_resources/__init__.py", line 2443, in load
2022-08-29T17:13:16 return self.resolve()
2022-08-29T17:13:16 File "/home/working/pro/ROC-RK3568-PC/Linux-SDK/rk356x_linux_release_20211019/buildroot/output/rockchip_rk3568/host/lib/python3.8/site-packages/pkg_resources/__init__.py", line 2449, in resolve
2022-08-29T17:13:16 module = __import__(self.module_name, fromlist=['__name__'], level=0)
2022-08-29T17:13:16 File "/home/working/pro/ROC-RK3568-PC/Linux-SDK/rk356x_linux_release_20211019/buildroot/output/rockchip_rk3568/host/lib/python3.8/site-packages/mesonbuild/mesonmain.py", line 29, in <module>
2022-08-29T17:13:16 from . import mconf, mdist, minit, minstall, mintro, msetup, mtest, rewriter, msubprojects, munstable_coredata, mcompile, mdevenv
2022-08-29T17:13:16 File "/home/working/pro/ROC-RK3568-PC/Linux-SDK/rk356x_linux_release_20211019/buildroot/output/rockchip_rk3568/host/lib/python3.8/site-packages/mesonbuild/mconf.py", line 22, in <module>
2022-08-29T17:13:16 from . import build
2022-08-29T17:13:16 File "/home/working/pro/ROC-RK3568-PC/Linux-SDK/rk356x_linux_release_20211019/buildroot/output/rockchip_rk3568/host/lib/python3.8/site-packages/mesonbuild/build.py", line 27, in <module>
2022-08-29T17:13:16 from . import dependencies
2022-08-29T17:13:16 File "/home/working/pro/ROC-RK3568-PC/Linux-SDK/rk356x_linux_release_20211019/buildroot/output/rockchip_rk3568/host/lib/python3.8/site-packages/mesonbuild/dependencies/__init__.py", line 15, in <module>
2022-08-29T17:13:16 from .boost import BoostDependency
2022-08-29T17:13:16 File "/home/working/pro/ROC-RK3568-PC/Linux-SDK/rk356x_linux_release_20211019/buildroot/output/rockchip_rk3568/host/lib/python3.8/site-packages/mesonbuild/dependencies/boost.py", line 24, in <module>
2022-08-29T17:13:16 from .base import DependencyException, SystemDependency
2022-08-29T17:13:16 File "/home/working/pro/ROC-RK3568-PC/Linux-SDK/rk356x_linux_release_20211019/buildroot/output/rockchip_rk3568/host/lib/python3.8/site-packages/mesonbuild/dependencies/base.py", line 34, in <module>
2022-08-29T17:13:16 from ..envconfig import get_env_var
2022-08-29T17:13:16 ImportError: cannot import name 'get_env_var' from 'mesonbuild.envconfig' (/home/working/pro/ROC-RK3568-PC/Linux-SDK/rk356x_linux_release_20211019/buildroot/output/rockchip_rk3568/host/lib/python3.8/site-packages/mesonbuild/envconfig.py)
2022-08-29T17:13:16 make[1]: *** [package/pkg-generic.mk:221: /home/working/pro/ROC-RK3568-PC/Linux-SDK/rk356x_linux_release_20211019/buildroot/output/rockchip_rk3568/build/host-libglib2-2.68.4/.stamp_configured] Error 1
2022-08-29T17:13:16 make: *** [/home/working/pro/ROC-RK3568-PC/Linux-SDK/rk356x_linux_release_20211019/buildroot/output/rockchip_rk3568/Makefile:16: _all] Error 2
Command exited with non-zero status 1
you take 0:04.22 to build builroot
ERROR: Running build_buildroot failed!
ERROR: exit code 1 from line 888: |
|