【问题标题】:Yocto: add musl library giving build errorYocto:添加 musl 库给出构建错误
【发布时间】:2020-06-21 02:01:51
【问题描述】:

在我的 rootfs 中,我需要 musl 支持。我在我的 local.conf 中添加了 musl,方法是:

TCLIBC = "musl"
IMAGE_INSTALL_append = " musl"

构建核心映像完整命令行。我收到以下错误:

+++

make[4]: 离开目录 '/home/user/yocto/poky_thud/build/tmp/work/x86_64-linux/binutils-cross-x86_64/2.31.1-r0/git/build.x86_64-linux.x86_64-poky-linux-musl/gas/噗'

Makefile:1260:目标“全递归”的配方失败

make[3]: *** [all-recursive] 错误 1

make[3]: 离开目录 '/home/user/yocto/poky_thud/build/tmp/work/x86_64-linux/binutils-cross-x86_64/2.31.1-r0/git/build.x86_64-linux.x86_64-poky-linux-musl/gas'

Makefile:808:目标“全部”的配方失败

make[2]: *** [all] 错误 2

make[2]: 离开目录 '/home/user/yocto/poky_thud/build/tmp/work/x86_64-linux/binutils-cross-x86_64/2.31.1-r0/git/build.x86_64-linux.x86_64-poky-linux-musl/gas'

Makefile:4865:目标“all-gas”的配方失败

make[1]: *** [all-gas] 错误 2

make[1]: 离开目录 '/home/user/yocto/poky_thud/build/tmp/work/x86_64-linux/binutils-cross-x86_64/2.31.1-r0/git/build.x86_64-linux.x86_64-poky-linux-musl'

Makefile:849: 目标“全部”的配方失败

make: *** [all] 错误 2

错误:oe_runmake 失败

警告:从 shell 命令退出代码 1。

错误:函数失败:do_compile(日志文件位于 /home/user/yocto/poky_thud/build/tmp/work/x86_64-linux/binutils-cross-x86_64/2.31.1-r0/temp/log.do_compile.19779)

+++

这种方法构建 musl 有错吗?提前谢谢

【问题讨论】:

  • 检查生成的日志(log.do_compile.19779)它应该让你知道问题是什么。
  • 是的,我在发布此问题时已将日志文件中的这些日志粘贴到问题描述中。谢谢

标签: yocto musl


【解决方案1】:

能够解决问题。正在进行增量构建,并且较早选择了 glibc。完全清理和重建解决了这个问题。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2019-05-21
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2017-06-08
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多