【petalinux 2024.01】petalinux-build时module ‘plnx_vars‘ has no attribute ‘CopyDir‘错误

简介: 【petalinux 2024.01】petalinux-build时module ‘plnx_vars‘ has no attribute ‘CopyDir‘错误

petalinux 2024.01使用过程中问题记录

一、问题描述

在编译的末尾提示错误,具体过程如下。


(pyenv) test@u220402:~/xilinx-qemu-first-run-loc$ petalinux-build


[INFO] Building project


[INFO] Getting Platform info from HW file


[INFO] Silentconfig project


[INFO] Silentconfig rootfs


[INFO] Generating configuration files


[INFO] Generating workspace directory


NOTE: Starting bitbake server…


NOTE: Started PRServer with DBfile: /home/test/work/test/petaLinux/xilinx-qemu-first-run-loc/build/cache/prserv.sqlite3, Address: 127.0.0.1:41915, PID: 96 2206


INFO: Specified workspace already set up, leaving as-is


[INFO] bitbake petalinux-image-minimal


NOTE: Started PRServer with DBfile: /home/test/work/test/petaLinux/xilinx-qemu-first-run-loc/build/cache/prserv.sqlite3, Address: 127.0.0.1:40241, PID: 96 2412


Loading cache: 100% | | ETA: --:–:–


Loaded 0 entries from dependency cache.


Parsing recipes: 87% |##################################################################################################### Parsing recipes: 88% |###################################################################################################### Parsing recipes: 89% |###################################################################################################### Parsing recipes: 90% |###################################################################################################### Parsing recipes: 100% |#######################################################################################| Time: 0:01:50


Parsing of 4468 .bb files complete (0 cached, 4468 parsed). 6417 targets, 379 skipped, 2 masked, 0 errors.


NOTE: Resolving any missing task queue dependencies


NOTE: Fetching uninative binary shim file:///home/test/work/test/petaLinux/xilinx-qemu-first-run-loc/components/yocto/downloa ds/uninative/1c35f09a75c4096749bbe1e009df4e3968cde151424062cf4aa3ed89db22b030/x86_64-nativesdk-libc-4.3.tar.xz;sha256sum=1c35 f09a75c4096749bbe1e009df4e3968cde151424062cf4aa3ed89db22b030 (will check PREMIRRORS first)


WARNING: XSCT has been deprecated. It will still be available for several releases. In the future, it’s recommended to start new projects with SDT workflow.


Initialising tasks: 100% |####################################################################################| Time: 0:00:11


Checking sstate mirror object availability: 100% |############################################################| Time: 0:42:36


Sstate summary: Wanted 1678 Local 0 Mirrors 1509 Missed 169 Current 0 (89% match, 0% complete)


NOTE: Executing Tasks


NOTE: Tasks Summary: Attempted 4563 tasks of which 3848 didn’t need to be rerun and all succeeded.



Summary: There was 1 WARNING message.


[ERROR] module ‘plnx_vars’ has no attribute ‘CopyDir’

二、问题分析

通过分析发现改错误出现在系统编译后,这说明编译本身没有问题。从log看,在编译后,petalinux-build将镜像复制到tftp目录,可以推测错误出现在这个过程。


随后关闭复制弄个,再次编译。

可以正常编译。

相关文章
|
4月前
|
Linux iOS开发 MacOS
pnpm全局安装报错:Run “pnpm setup“ to create it automatically, or set the global-bin-dir setting, or the PN
pnpm全局安装报错:Run “pnpm setup“ to create it automatically, or set the global-bin-dir setting, or the PN
1553 0
|
Ubuntu Python
pip3 执行错误 No module named 'distutils.cmd'
pip3 执行错误 No module named 'distutils.cmd'
1675 0
|
4月前
|
JavaScript 前端开发 编译器
Cmake 中 compiler_depend.ts 文件:解析和使用 C/C++ 预编译头文件
Cmake 中 compiler_depend.ts 文件:解析和使用 C/C++ 预编译头文件
130 1
|
4月前
解决运行qmake:Project ERROR: Cannot run compiler ‘cl‘. Output:
解决运行qmake:Project ERROR: Cannot run compiler ‘cl‘. Output:
491 0
关于 CMake编译出出现错误“Could not find compiler set in environment variable RC:” 的解决方法
关于 CMake编译出出现错误“Could not find compiler set in environment variable RC:” 的解决方法
关于 CMake编译出出现错误“Could not find compiler set in environment variable RC:” 的解决方法
|
C++ iOS开发
报错解决:Could not build wheels for soxr, which is required to install pyproject.toml-based projects(可用)
链接如下:【金山文档】 1-Microsoft Visual C++ Build Tools。找了好久,才找到正确的解决方案,网上一大堆升级setuptools的方法只对少数人管用。注意,虽然我的这个报错内容有点长,但是我感觉和其它的。如果网页提示登录,可以不用登录,直接下载即可。然后打开镜像ios文件(双击即可)错误是一样的解决方案。文件,打开后安装即可。
2558 1
报错解决:Could not build wheels for soxr, which is required to install pyproject.toml-based projects(可用)
下载node-gyp依赖包报错:gyp ERR! find VS msvs_version not set from command line or npm config
就是有一点需要注意,我这里安装vs的时候,可用里面没有vs社区版2017,只有2022,只能安装了2022
VS2022编译GDAL库报错: fatal error U1050: PROJ_INCLUDE should be defined. PROJ >= 6 is a required depende
VS2022编译GDAL库报错: fatal error U1050: PROJ_INCLUDE should be defined. PROJ >= 6 is a required depende
178 0
|
开发工具 git
编译pluma:configure.ac:229: error: required file ‘pluma/mate-submodules/Makefile.in‘ not found
编译pluma:configure.ac:229: error: required file ‘pluma/mate-submodules/Makefile.in‘ not found
118 0