首页 > 解决方案 > 将 gcc 添加到系统根映像

问题描述

我正在尝试通过添加 /poky/meta-qti-bsp/recipies-products/images/ BASE_IMAGE.inc IMAGE_INSTALL += "packagegroup-core-buildessential" 将 gcc 包添加到根文件系统

/poky/build/conf/local.conf EXTRA_IMAGE_FEATURES = "tools-sdk dev-pkgs"

BUILD 错误如下: update-alternatives: Error: cannot register alternative cmp to /bin/cmp because it has been registered to /usr/bin/cmp

update-alternatives:错误:无法将替代组注册到 /usr/bin/groups,因为它已经注册到 /bin/groups

update-alternatives:错误:无法将备用密码注册到 /usr/bin/passwd,因为它已经注册到 /bin/passwd 配置 perl-module-unupdate-alternatives:错误:无法将备用补丁注册到 /usr/bin/patch,因为它已注册到 /bin/patch update-alternatives:错误:无法将备用读取配置文件注册到 /usr/sbin/readprofile,因为它已经注册到 /sbin/readprofile。.

.

.

错误:Multilib 检查错误:重复文件 poky/build/tmp-glibc/work/../../1.0-r0/multilib/lib32/usr/include/fpu_control.h /poky/build/tmp-glibc/work/ ../../1.0-r0/rootfs/usr/include/fpu_control.h 不一样

multilib_sanity 检查函数试图抛出一个错误,因为有 32 位和 64 位的文件。我需要考虑 32 位,因为我的目标是 32 位。我该如何设置?

如何设置以便只选择 /bin 或 /usr/bin 中的文件之一?

标签: gccyoctobitbake

解决方案


我想您需要在 local.conf 中正确设置您的机器类型。然后它会自动选择 32 位或 64 位文件。


推荐阅读