linux - 构建 SDK 时出现冲突请求错误

标签 linux sdk embedded-linux yocto

我在构建 SDK 时遇到以下请求冲突错误

我正在使用 sumo branch 和通用的 core-intel-i7-64 机器配置。

运行以下命令:bitbake -c populate_sdk core-image-minimal

在最后一步失败并出现以下错误。

ERROR: core-image-minimal-1.0-r0 do_populate_sdk: Could not invoke dnf. Command '/home/jamal/repotest1/yocto_intel_build/tmp/work/intel_corei7_64-poky-linux/core-image-minimal/1.0-r0/recipe-sysroot-native/usr/bin/dnf -y -c /home/jamal/repotest1/yocto_intel_build/tmp/work/intel_corei7_64-poky-linux/core-image-minimal/1.0-r0/sdk/image/opt/poky/2.5/sysroots/corei7-64-poky-linux/etc/dnf/dnf.conf --setopt=reposdir=/home/jamal/repotest1/yocto_intel_build/tmp/work/intel_corei7_64-poky-linux/core-image-minimal/1.0-r0/sdk/image/opt/poky/2.5/sysroots/corei7-64-poky-linux/etc/yum.repos.d --repofrompath=oe-repo,/home/jamal/repotest1/yocto_intel_build/tmp/work/intel_corei7_64-poky-linux/core-image-minimal/1.0-r0/oe-sdk-repo --installroot=/home/jamal/repotest1/yocto_intel_build/tmp/work/intel_corei7_64-poky-linux/core-image-minimal/1.0-r0/sdk/image/opt/poky/2.5/sysroots/corei7-64-poky-linux --setopt=logdir=/home/jamal/repotest1/yocto_intel_build/tmp/work/intel_corei7_64-poky-linux/core-image-minimal/1.0-r0/temp --nogpgcheck install lib32-dpkg lib32-libstdc++6 lib32-packagegroup-core-standalone-sdk-target lib32-libx11-6 lib32-ncurses lib32-libgcc1 lib32-libgnutls30 lib32-libfreetype6 lib32-libc6 run-postinsts libgnutls30 dpkg kernel-devsrc packagegroup-core-standalone-sdk-target packagegroup-core-boot target-sdk-provides-dummy' returned 1:
Added oe-repo repo from /home/jamal/repotest1/yocto_intel_build/tmp/work/intel_corei7_64-poky-linux/core-image-minimal/1.0-r0/oe-sdk-repo
Last metadata expiration check: 0:00:02 ago on Thu 18 Oct 2018 01:12:30 PM UTC.
Error: 
 Problem: conflicting requests
  - nothing provides /usr/bin/python needed by kernel-devsrc-1.0-r0.intel_corei7_64

ERROR: core-image-minimal-1.0-r0 do_populate_sdk: Function failed: do_populate_sdk
ERROR: Logfile of failure stored in: /home/jamal/repotest1/yocto_intel_build/tmp/work/intel_corei7_64-poky-linux/core-image-minimal/1.0-r0/temp/log.do_populate_sdk.11307
ERROR: Task (/home/jamal/repotest1/sources/poky/meta/recipes-core/images/core-image-minimal.bb:do_populate_sdk) failed with exit code '1' 

我在 yocto 邮件列表中发现了类似的错误,但无法理解..你能帮我解决这个问题吗..谢谢你的时间

https://lists.yoctoproject.org/pipermail/yocto/2018-February/039941.html

我的系统里有/usr/bin/python

最佳答案

将 RDEPENDS 添加到您的 kernel-devsrc.bb

RDEPENDS_${PN} = "bc python flex bison ${TCLIBC}-utils"
RDEPENDS_${PN} += "openssl-dev util-linux"
RDEPENDS_${PN} += "${@bb.utils.contains('ARCH', 'x86', 'elfutils', '', d)}"

https://lists.yoctoproject.org/pipermail/yocto/2018-October/042908.html

关于linux - 构建 SDK 时出现冲突请求错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/52877506/

相关文章:

c - 为什么在没有使用 malloc 时出现堆部分

kotlin - 适用于 Android 11 的自适应横幅(SDK 版本 30) - Kotlin - 已弃用

java - Liferay 6.2 第一个应用程序构建失败 - 在 build-common-ivy.xml :81: HTTP Authorization failure

linux - 在嵌入式 Linux 上运行可执行文件时没有这样的文件或目录

bash - 如何: Simulating keystroke inputs in shell to an app running in an embedded target

linux - 如何为 imx6 处理器构建 Qt 应用程序?

linux - 将 X11 窗口保持在另一个窗口之上

linux - 不使用 tee 命令打印到 shell 的正确方法

c - 具有多个参数的 shellexecuteEx

c++ - std::regex_replace 不接受少于 6 个参数