首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >riscv-poky版本% ld丢失或太旧

riscv-poky版本% ld丢失或太旧
EN

Stack Overflow用户
提问于 2018-07-13 23:06:26
回答 0查看 417关注 0票数 0

我第一次致力于构建poky-linux。我需要在spike中运行它。我在构建过程中遇到了一个错误(见下文)。

我猜bitbake可能正在查看ld的版本并抛出错误。有什么办法解决这个问题吗?

代码语言:javascript
复制
| checking if riscv64-poky-linux-gcc  --sysroot=/home/user/riscv-poky/build/tmp/work/riscv64-poky-linux/glibc-initial/2.26-r0/recipe-sysroot is sufficient to build libc... yes
| checking for riscv64-poky-linux-nm... riscv64-poky-linux-nm
| checking for python3... python3
| configure: error:
| *** These critical programs are missing or too old: GNU ld
| *** Check the INSTALL file for required versions.
| WARNING: exit code 1 from a shell command.
| ERROR: Function failed: do_configure (log file is located at /home/user/riscv-poky/build/tmp/work/riscv64-poky-linux/glibc-initial/2.26-r0/temp/log.do_configure.30937)
ERROR: Task (/home/user/riscv-poky/build/../meta/recipes-core/glibc/glibc-initial_2.26.bb:do_configure) failed with exit code '1'
NOTE: Tasks Summary: Attempted 201 tasks of which 18 didn't need to be rerun and 1 failed.

Summary: 1 task failed:
  /home/user/riscv-poky/build/../meta/recipes-core/glibc/glibc-initial_2.26.bb:do_configure
Summary: There were 2 WARNING messages shown.
Summary: There was 1 ERROR message shown, returning a non-zero exit code.

在build目录中:

代码语言:javascript
复制
file tmp/work/x86_64-linux/binutils-cross-riscv64/2.29-r0/sysroot-destdir/home/user/riscv-poky/build/tmp/work/x86_64-linux/binutils-cross-riscv64/2.29-r0/recipe-sysroot-native/usr/bin/riscv64-poky-linux/riscv64-poky-linux-ld
tmp/work/x86_64-linux/binutils-cross-riscv64/2.29-r0/sysroot-destdir/home/user/riscv-poky/build/tmp/work/x86_64-linux/binutils-cross-riscv64/2.29-r0/recipe-sysroot-native/usr/bin/riscv64-poky-linux/

file riscv64-poky-linux-ld

riscv64-poky-linux-ld: ELF 64-bit LSB shared object, x86-64, version 1 (SYSV), dynamically linked, interpreter /home/user/riscv-poky/build/tmp/sysroots-uninative/x86_64-linux/lib/ld-linux-x86-64.so.2, for GNU/Linux 3.2.0, BuildID[sha1]=debebc536bc2af4dd35ec0deb333bd32eb85b098, stripped
EN

回答

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

https://stackoverflow.com/questions/51328087

复制
相关文章

相似问题

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