gcc - 将 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 中的文件之一?
解决方案
我想您需要在 local.conf 中正确设置您的机器类型。然后它会自动选择 32 位或 64 位文件。
推荐阅读
- mongodb - 横向扩展架构中的 Cors 和数据库 uri 问题
- r - 用 CI 拟合 R 中的 GEV 分布的线性线
- dialogflow-es - 在 Dialogflow 中通过实现发出 HTTP POST 请求
- python - 车牌识别
- python-3.x - 将变量从一个类传递到另一个类
- python - TensorFlow Eager Execution GPU count_nonzero NotFoundError
- python - Python GTTS 错误:AttributeError:“NoneType”对象没有属性“组”
- javascript - React - 如何将道具传递给孙子组件?
- java - java 标志 Xms 和 Xmx 是否覆盖标志 XX:+UseCGroupMemoryLimitForHeap?
- iis - IIS 没有为 .NET Core 使用正确的版本 - 如何管理?