首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Yocto:添加musl库,生成错误

Yocto:添加musl库,生成错误
EN

Stack Overflow用户
提问于 2020-03-09 07:22:14
回答 1查看 286关注 0票数 0

在我的rootfs中,我需要musl支持。我在我的local.conf中添加了以下内容:

代码语言:javascript
复制
TCLIBC = "musl"
IMAGE_INSTALL_append = " musl"

构建了core-image-full-cmdline。我的错误如下所示

代码语言:javascript
复制
> +++
> 
> make[4]: Leaving directory
> '/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/po'
> 
> Makefile:1260: recipe for target 'all-recursive' failed
> 
> make[3]: *** [all-recursive] Error 1
> 
> make[3]: Leaving directory
> '/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: recipe for target 'all' failed
> 
> make[2]: *** [all] Error 2
> 
> make[2]: Leaving directory
> '/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: recipe for target 'all-gas' failed
> 
> make[1]: *** [all-gas] Error 2
> 
> make[1]: Leaving directory
> '/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: recipe for target 'all' failed
> 
> make: *** [all] Error 2
> 
> ERROR: oe_runmake failed
> 
> WARNING: exit code 1 from a shell command.
> 
> ERROR: Function failed: do_compile (log file is located at
> /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是错误的吗?如能提供任何帮助,将不胜感激。

EN

回答 1

Stack Overflow用户

发布于 2020-03-09 13:19:26

能够解决这个问题。正在进行增量构建,之前选择了glibc。彻底的清理和重建解决了这个问题。

票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/60596177

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档