新手入门
- 积分
- 18
- 金钱
- 18
- 注册时间
- 2024-1-2
- 在线时间
- 2 小时
|
1金钱
在下在ubuntu18.04下面安装的petalinux2018.2,在运行petalinux-build的时候报如下错误,烦请给位大佬指点一下。谢谢!
[INFO] building project
[INFO] sourcing bitbake
INFO: bitbake petalinux-user-image
WARNING: Host distribution "ubuntu-18.04" has not been validated with this version of the build system; you may possibly experience unexpected failures. It is recommended that you use a tested distribution.
Loading cache: 100% |####################################################################################| Time: 0:00:00
Loaded 3423 entries from dependency cache.
Parsing recipes: 100% |##################################################################################| Time: 0:00:02
Parsing of 2552 .bb files complete (2517 cached, 35 parsed). 3425 targets, 148 skipped, 0 masked, 0 errors.
NOTE: Resolving any missing task queue dependencies
Build Configuration:
BB_VERSION = "1.36.0"
BUILD_SYS = "x86_64-linux"
NATIVELSBSTRING = "universal"
TARGET_SYS = "arm-xilinx-linux-gnueabi"
MACHINE = "plnx-zynq7"
DISTRO = "petalinux"
DISTRO_VERSION = "2018.2"
TUNE_FEATURES = "arm armv7a vfp thumb neon callconvention-hard cortexa9"
TARGET_FPU = "hard"
meta
meta-poky
meta-perl
meta-python
meta-filesystems
meta-gnome
meta-multimedia
meta-networking
meta-webserver
meta-xfce
meta-initramfs
meta-oe
meta-browser
meta-qt5
meta-xilinx-bsp
meta-xilinx-contrib
meta-xilinx-tools
meta-petalinux
meta-virtualization
meta-openamp
meta-user
meta-plnx-generated = "<unknown>:<unknown>"
Initialising tasks: 100% |###############################################################################| Time: 0:00:04
Checking sstate mirror object availability: 100% |#######################################################| Time: 0:00:06
NOTE: Executing SetScene Tasks
NOTE: Executing RunQueue Tasks
ERROR: petalinux-user-image-1.0-r0 do_rootfs: Could not invoke dnf. Command '/home/fhf/works/test1/my2/build/tmp/work/plnx_zynq7-xilinx-linux-gnueabi/petalinux-user-image/1.0-r0/recipe-sysroot-native/usr/bin/dnf -y -c /home/fhf/works/test1/my2/build/tmp/work/plnx_zynq7-xilinx-linux-gnueabi/petalinux-user-image/1.0-r0/rootfs/etc/dnf/dnf.conf --setopt=reposdir=/home/fhf/works/test1/my2/build/tmp/work/plnx_zynq7-xilinx-linux-gnueabi/petalinux-user-image/1.0-r0/rootfs/etc/yum.repos.d --repofrompath=oe-repo,/home/fhf/works/test1/my2/build/tmp/work/plnx_zynq7-xilinx-linux-gnueabi/petalinux-user-image/1.0-r0/oe-rootfs-repo --installroot=/home/fhf/works/test1/my2/build/tmp/work/plnx_zynq7-xilinx-linux-gnueabi/petalinux-user-image/1.0-r0/rootfs --setopt=logdir=/home/fhf/works/test1/my2/build/tmp/work/plnx_zynq7-xilinx-linux-gnueabi/petalinux-user-image/1.0-r0/temp makecache' returned 1:
Traceback (most recent call last):
File "/home/fhf/works/test1/my2/build/tmp/work/plnx_zynq7-xilinx-linux-gnueabi/petalinux-user-image/1.0-r0/recipe-sysroot-native/usr/bin/dnf.real", line 57, in <module>
from dnf.cli import main
File "/home/fhf/works/test1/my2/build/tmp/work/plnx_zynq7-xilinx-linux-gnueabi/petalinux-user-image/1.0-r0/recipe-sysroot-native/usr/lib/python3.5/site-packages/dnf/__init__.py", line 23, in <module>
import dnf.exceptions
File "/home/fhf/works/test1/my2/build/tmp/work/plnx_zynq7-xilinx-linux-gnueabi/petalinux-user-image/1.0-r0/recipe-sysroot-native/usr/lib/python3.5/site-packages/dnf/exceptions.py", line 21, in <module>
from dnf.i18n import ucd
File "/home/fhf/works/test1/my2/build/tmp/work/plnx_zynq7-xilinx-linux-gnueabi/petalinux-user-image/1.0-r0/recipe-sysroot-native/usr/lib/python3.5/site-packages/dnf/i18n.py", line 22, in <module>
from dnf.pycomp import unicode
File "/home/fhf/works/test1/my2/build/tmp/work/plnx_zynq7-xilinx-linux-gnueabi/petalinux-user-image/1.0-r0/recipe-sysroot-native/usr/lib/python3.5/site-packages/dnf/pycomp.py", line 21, in <module>
from gettext import NullTranslations
File "/home/fhf/works/test1/my2/build/tmp/work/plnx_zynq7-xilinx-linux-gnueabi/petalinux-user-image/1.0-r0/recipe-sysroot-native/usr/lib/python3.5/gettext.py", line 49, in <module>
import locale, copy, io, os, re, struct, sys
File "/home/fhf/works/test1/my2/build/tmp/work/plnx_zynq7-xilinx-linux-gnueabi/petalinux-user-image/1.0-r0/recipe-sysroot-native/usr/lib/python3.5/locale.py", line 595
return _setlocale(category, locale)
^
TabError: inconsistent use of tabs and spaces in indentation
ERROR: petalinux-user-image-1.0-r0 do_rootfs: Function failed: do_rootfs
ERROR: Logfile of failure stored in: /home/fhf/works/test1/my2/build/tmp/work/plnx_zynq7-xilinx-linux-gnueabi/petalinux-user-image/1.0-r0/temp/log.do_rootfs.10562
ERROR: Task (/home/fhf/works/test1/my2/project-spec/meta-plnx-generated/recipes-core/images/petalinux-user-image.bb:do_rootfs) failed with exit code '1'
NOTE: Tasks Summary: Attempted 2611 tasks of which 2582 didn't need to be rerun and 1 failed.
NOTE: Writing buildhistory
Summary: 1 task failed:
/home/fhf/works/test1/my2/project-spec/meta-plnx-generated/recipes-core/images/petalinux-user-image.bb:do_rootfs
Summary: There was 1 WARNING message shown.
Summary: There were 2 ERROR messages shown, returning a non-zero exit code.
ERROR: Failed to build project
|
最佳答案
查看完整内容[请看2#楼]
你这个应该是Ubuntu版本和Petalinux版本不对应,要使用和你的Ubuntu系统版本对应的Petalinux版本
|