【T527 SDK编译报错】
-
T527 SDK编译buildroot时报错:
Use init ramdisk file: '/home/alinx/08_T527/02-MYIR-SDK/LT527/kernel/linux-5.15/bsp/ramfs/rootfs_arm64.cpio.gz'. Copy modules to target ... 15985 blocks 37062 blocks bootimg_build Copy boot.img to output directory ... sun55iw3p1 compile all(Kernel+modules+boot.img) successful INFO: build dts ... INFO: Prepare toolchain ... Setup BSP files '/home/alinx/08_T527/02-MYIR-SDK/LT527/out/t527/kernel/staging/sunxi.dtb' -> '/home/alinx/08_T527/02-MYIR-SDK/LT527/out/t527/myd-lt527-full/buildroot/sunxi.dtb' INFO: build rootfs ... INFO: build buildroot ... make: Entering directory '/home/alinx/08_T527/02-MYIR-SDK/LT527/buildroot/buildroot-202205' >>> host-libglib2 2.70.4 Installing to host directory PATH="/home/alinx/08_T527/02-MYIR-SDK/LT527/out/t527/myd-lt527-full/buildroot/buildroot/host/bin:/home/alinx/08_T527/02-MYIR-SDK/LT527/out/t527/myd-lt527-full/buildroot/buildroot/host/sbin:/home/alinx/08_T527/02-MYIR-SDK/LT527/prebuilt/hostbuilt/linux-x86/bin:/home/alinx/08_T527/02-MYIR-SDK/LT527/prebuilt/hostbuilt/linux-x86/bin:/home/alinx/anaconda3/bin:/home/alinx/anaconda3/condabin:/home/alinx/01_TQT113/06_SorceCode/t113-s3_linux-sdk-v1.1/out/gcc-linaro-5.3-2016.02-x86_64_arm-linux-gnueabihf/bin:/home/alinx/01_TQT113/06_SorceCode/t113-s3_linux-sdk-v1.1/out/gcc-linaro-5.3-2016.02-x86_64_arm-linux-gnueabihf/bin:/home/alinx/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/opt/gcc-arm-10.3-2021.07-x86_64-aarch64-none-linux-gnu/bin:/home/alinx/08_T527/02-MYIR-SDK/LT527/build/bin:/home/alinx/08_T527/02-MYIR-SDK/LT527/build/bin" PKG_CONFIG="/home/alinx/08_T527/02-MYIR-SDK/LT527/out/t527/myd-lt527-full/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/alinx/08_T527/02-MYIR-SDK/LT527/out/t527/myd-lt527-full/buildroot/buildroot/host/lib/pkgconfig:/home/alinx/08_T527/02-MYIR-SDK/LT527/out/t527/myd-lt527-full/buildroot/buildroot/host/share/pkgconfig" PYTHONNOUSERSITE=y /home/alinx/08_T527/02-MYIR-SDK/LT527/out/t527/myd-lt527-full/buildroot/buildroot/host/bin/ninja -C /home/alinx/08_T527/02-MYIR-SDK/LT527/out/t527/myd-lt527-full/buildroot/buildroot/build/host-libglib2-2.70.4//build install ninja: Entering directory `/home/alinx/08_T527/02-MYIR-SDK/LT527/out/t527/myd-lt527-full/buildroot/buildroot/build/host-libglib2-2.70.4//build' [0/1] Installing files. Installing glib/libglib-2.0.so.0.7000.4 to /home/alinx/08_T527/02-MYIR-SDK/LT527/out/t527/myd-lt527-full/buildroot/buildroot/host/lib Stripping target 'glib/libglib-2.0.so.0.7000.4'. Traceback (most recent call last): File "/home/alinx/08_T527/02-MYIR-SDK/LT527/out/t527/myd-lt527-full/buildroot/buildroot/host/lib/python3.10/site-packages/mesonbuild/mesonmain.py", line 153, in run return options.run_func(options) File "/home/alinx/08_T527/02-MYIR-SDK/LT527/out/t527/myd-lt527-full/buildroot/buildroot/host/lib/python3.10/site-packages/mesonbuild/minstall.py", line 771, in run installer.do_install(datafilename) File "/home/alinx/08_T527/02-MYIR-SDK/LT527/out/t527/myd-lt527-full/buildroot/buildroot/host/lib/python3.10/site-packages/mesonbuild/minstall.py", line 550, in do_install self.install_targets(d, dm, destdir, fullprefix) File "/home/alinx/08_T527/02-MYIR-SDK/LT527/out/t527/myd-lt527-full/buildroot/buildroot/host/lib/python3.10/site-packages/mesonbuild/minstall.py", line 706, in install_targets self.do_strip(d.strip_bin, fname, outname) File "/home/alinx/08_T527/02-MYIR-SDK/LT527/out/t527/myd-lt527-full/buildroot/buildroot/host/lib/python3.10/site-packages/mesonbuild/minstall.py", line 574, in do_strip returncode, stdo, stde = self.Popen_safe(strip_bin + [outname]) File "/home/alinx/08_T527/02-MYIR-SDK/LT527/out/t527/myd-lt527-full/buildroot/buildroot/host/lib/python3.10/site-packages/mesonbuild/minstall.py", line 365, in Popen_safe p, o, e = Popen_safe(*args, **kwargs) File "/home/alinx/08_T527/02-MYIR-SDK/LT527/out/t527/myd-lt527-full/buildroot/buildroot/host/lib/python3.10/site-packages/mesonbuild/mesonlib/universal.py", line 1408, in Popen_safe p = subprocess.Popen(args, universal_newlines=True, close_fds=False, File "/home/alinx/08_T527/02-MYIR-SDK/LT527/out/t527/myd-lt527-full/buildroot/buildroot/host/lib/python3.10/subprocess.py", line 966, in __init__ self._execute_child(args, executable, preexec_fn, close_fds, File "/home/alinx/08_T527/02-MYIR-SDK/LT527/out/t527/myd-lt527-full/buildroot/buildroot/host/lib/python3.10/subprocess.py", line 1842, in _execute_child raise child_exception_type(errno_num, err_msg, err_filename) FileNotFoundError: [Errno 2] No such file or directory: 'export' ERROR: Unhandled python exception This is a Meson bug and should be reported! FAILED: meson-install /home/alinx/08_T527/02-MYIR-SDK/LT527/out/t527/myd-lt527-full/buildroot/buildroot/host/bin/meson install --no-rebuild ninja: build stopped: subcommand failed. package/pkg-generic.mk:300: recipe for target '/home/alinx/08_T527/02-MYIR-SDK/LT527/out/t527/myd-lt527-full/buildroot/buildroot/build/host-libglib2-2.70.4/.stamp_host_installed' failed make[1]: *** [/home/alinx/08_T527/02-MYIR-SDK/LT527/out/t527/myd-lt527-full/buildroot/buildroot/build/host-libglib2-2.70.4/.stamp_host_installed] Error 1 Makefile:96: recipe for target '_all' failed make: *** [_all] Error 2 make: Leaving directory '/home/alinx/08_T527/02-MYIR-SDK/LT527/buildroot/buildroot-202205' ERROR: build buildroot Failed INFO: build_buildroot_rootfs failed
meson更新到1.4,python尝试了3.8和3.10.14,都是报相同的错误。请专家帮忙看看,谢谢!
-
我用Docker 裝 ubuntu 20.04
安裝下面 package 可以正常build core and full 版本
RUN dpkg --add-architecture i386 && \ apt-get update && \ apt-get install -y locales && \ localedef -i en_US -c -f UTF-8 -A /usr/share/locale/locale.alias en_US.UTF-8 ENV LANG en_US.UTF-8 RUN apt-get install --no-install-recommends --no-install-suggests --yes \ build-essential ca-certificates gcc gcc-multilib clang curl \ git git-lfs gnupg gperf build-essential zip libc6-dev python \ x11proto-core-dev libgl1-mesa-dev g++-multilib tofrodos zlib1g-dev \ libncurses5-dev:i386 libx11-dev:i386 libreadline6-dev:i386 \ libgl1-mesa-glx:i386 zlib1g-dev:i386 linux-libc-dev:i386 gawk \ libncurses5-dev bc bison flex gettext libssl-dev autoconf libtool \ wget patch dos2unix tree u-boot-tools libelf-dev libncurses5 \ libxml2-utils xsltproc markdown texinfo gettext busybox \ fakeroot cpio unzip rsync ccache xxd vim liblzo2-2 && \ apt-get clean && \ rm -rf /var/lib/apt/* /var/cache/apt/* /tmp/* /var/tmp/*
後面是完整的 Dockerfile 還有怎樣build docker image 跟進入docker環境用的shell script
進 container 後
直接 ./build.sh config && ./build.sh 即可
文件講的環境變數
只需要
export ARCH=arm64
export CROSS_COMPILE=aarch64-none-linux-gnu-
用我的Dockerfile 已經寫在裡面了
加上其他會產生類似你的錯誤
entrycontainer
build-container
Dockerfile
Copyright © 2024 深圳全志在线有限公司 粤ICP备2021084185号 粤公网安备44030502007680号