【问题标题】:populate_sdk fails when multilib enabled启用 multilib 时 populate_sdk 失败
【发布时间】:2019-03-16 16:20:29
【问题描述】:

我正在尝试使用 yocto 生成 SDK。

硬件:x64

通用元情报层

图像:核心图像最小。

我在 conf 文件中启用了 multilib 以支持 32 位库。

require conf/multilib.conf
MULTILIBS = "multilib:lib32"
DEFAULTTUNE_virtclass-multilib-lib32 = "x86"

当我运行以下命令时:bitbake -c populate_sdk core-image-minimal,我在最后阶段收到以下错误。

The following packages have unmet dependencies:
 lib32-packagegroup-core-standalone-sdk-target : Depends: lib32-glibc-gconv-cp1252 but it is not installable
                                                 Depends: lib32-glibc-gconv-ibm850 but it is not installable
                                                 Depends: lib32-glibc-gconv-iso8859-1 but it is not installable
                                                 Depends: lib32-glibc-gconv-iso8859-15 but it is not installable
                                                 Depends: lib32-glibc-localedata-i18n but it is not installable
                                                 Depends: lib32-libatomic-dev but it is not installable
                                                 Depends: lib32-libatomic1 but it is not installable
                                                 Depends: lib32-libc6 but it is not installable
                                                 Depends: lib32-libc6-dbg but it is not installable
                                                 Depends: lib32-libc6-dev but it is not installable
                                                 Depends: lib32-libc6-thread-db but it is not installable
                                                 Depends: lib32-libc6-utils but it is not installable
                                                 Depends: lib32-libgcc-s-dev but it is not installable
                                                 Depends: lib32-libgcc1 but it is not installable
                                                 Depends: lib32-libsegfault but it is not installable
                                                 Depends: lib32-libstdc++-dev but it is not installable
                                                 Depends: lib32-libstdc++6 but it is not installable
                                                 Recommends: lib32-libssp-dev but it is not installable
                                                 Recommends: lib32-libssp0 but it is not installable
E: Unable to correct problems, you have held broken packages.

ERROR: core-image-minimal-1.0-r0 do_populate_sdk: Function failed: do_populate_sdk

如何解决此错误。我在 yocto 邮件列表中看到了类似的帖子..

https://lists.yoctoproject.org/pipermail/yocto/2017-October/038338.html

感谢您的宝贵时间。感谢您的努力。

【问题讨论】:

  • SDK_MACHINE 变量的值是多少?
  • 我在 local.conf 中没有看到任何这样的变量
  • 我分配了 SDKMACHINE ?= "i686",即使我得到了同样的错误..
  • 我该如何解决这个..有什么提示

标签: linux sdk embedded-linux yocto


【解决方案1】:

我的一位同事通过像这样更改conf/local.conf 解决了这个问题:

# packaging
PACKAGE_CLASSES ?= "package_ipk"
#PACKAGE_CLASSES ?= "package_deb package_ipk"

似乎 package_deb 是问题的一部分。

当然,它留下的问题与它回答的一样多,但也许足以让你超越当前的障碍。

【讨论】:

  • 这真的对我有用。很奇怪。非常感谢。
猜你喜欢
  • 1970-01-01
  • 2017-10-31
  • 2012-11-16
  • 1970-01-01
  • 1970-01-01
  • 2016-04-02
  • 2010-11-26
  • 2022-01-24
相关资源
最近更新 更多