将 GCC 添加到系统根映像



我正在尝试通过在/poky/meta-qti-bsp/recipies-products/images/BASE_IMAGE.inc上添加下面的代码片段来将 gcc 包添加到根文件系统

IMAGE_INSTALL += "packagegroup-core-buildessential"

/poky/build/conf/local.conf

EXTRA_IMAGE_FEATURES = "tools-sdk dev-pkgs"

但是我在下面遇到错误

BUILD errors are as following: 
update-alternatives: Error: cannot register alternative cmp to /bin/cmp since it is already registered to /usr/bin/cmp
update-alternatives: Error: cannot register alternative groups to /usr/bin/groups since it is already registered to /bin/groups
update-alternatives: Error: cannot register alternative passwd to /usr/bin/passwd since it is already registered to /bin/passwd
Configuring perl-module-unupdate-alternatives: Error: cannot register alternative patch to /usr/bin/patch since it is already registered to /bin/patch
update-alternatives: Error: cannot register alternative readprofile to /usr/sbin/readprofile since it is already registered to /sbin/readprofile.
.
.
.
ERROR: Multilib check error: duplicate files 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 is not the same

multilib_sanity检查函数正在尝试抛出错误,因为同时存在 32 位和 64 位的文件。我需要考虑 32 位,因为我的目标是 32 位。

如何进行设置,以便只选择/bin/usr/bin中的一个文件?

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

相关内容

最新更新