导航

    全志在线开发者论坛

    • 注册
    • 登录
    • 搜索
    • 版块
    • 话题
    • 在线文档
    • 社区主页

    D1s编译Tina时报BFD does not support target riscv64-unknown-linux-gnu

    其它全志芯片讨论区
    1
    1
    547
    正在加载更多帖子
    • 从旧到新
    • 从新到旧
    • 最多赞同
    回复
    • 在新帖中回复
    登录后回复
    此主题已被删除。只有拥有主题管理权限的用户可以查看。
    • C
      CBBing LV 2 最后由 编辑

      f424d4b9-367c-499d-815a-5e3523dcd635-image.png
      根据以下网盘链接获取Tina-sdk V2.0源码

      • 获取Tina-sdk V2.0源码 百度网盘获取地址 链接:https://pan.baidu.com/s/13uKlqDXImmMl9cgKc41tZg?pwd=qcw7 提取码:qcw7 压缩包路径在 Tina-SDK_DevelopLearningKits-V1/DongshanNezhaSTU-TinaV2.0-SDK 拷贝进Ubuntu系统内,并进行解压缩,解压命令在README里面

      不修改配置情况下,可以正常编译并在DongshanPi-D1s上正常运行,
      但是,添加gdb/gdb server模块后报BFD does not support target riscv64-unknown-linux-gnu错误,具体如下:

      checking whether snprintf is declared... yes
      checking whether vsnprintf is declared... yes
      checking whether strnlen is declared... yes
      checking linker --as-needed support... yes
      checking for cos in -lm... yes
      *** BFD does not support target riscv64-unknown-linux-gnu.
      *** Look in bfd/config.bfd for supported targets.
      make[5]: *** [Makefile:2677: configure-bfd] Error 1
      make[5]: Leaving directory '/home/ubuntu/D1s/DongshanNezhaSTU-TinaV2.0-SDK/tina-d1-h/out/d1s-nezha_nor/compile_dir/target/binutils-2.27'
      make[4]: *** [Makefile:851: all] Error 2
      make[4]: Leaving directory '/home/ubuntu/D1s/DongshanNezhaSTU-TinaV2.0-SDK/tina-d1-h/out/d1s-nezha_nor/compile_dir/target/binutils-2.27'
      make[3]: *** [Makefile:122: /home/ubuntu/D1s/DongshanNezhaSTU-TinaV2.0-SDK/tina-d1-h/out/d1s-nezha_nor/compile_dir/target/binutils-2.27/.built] Error 2
      make[3]: Leaving directory '/home/ubuntu/D1s/DongshanNezhaSTU-TinaV2.0-SDK/tina-d1-h/package/devel/binutils'
      make[2]: *** [package/Makefile:193: package/devel/binutils/compile] Error 2
      make[2]: Leaving directory '/home/ubuntu/D1s/DongshanNezhaSTU-TinaV2.0-SDK/tina-d1-h'
      make[1]: *** [package/Makefile:189: /home/ubuntu/D1s/DongshanNezhaSTU-TinaV2.0-SDK/tina-d1-h/out/d1s-nezha_nor/staging_dir/target/stamp/.package_compile] Error 2
      make[1]: Leaving directory '/home/ubuntu/D1s/DongshanNezhaSTU-TinaV2.0-SDK/tina-d1-h'
      make: *** [/home/ubuntu/D1s/DongshanNezhaSTU-TinaV2.0-SDK/tina-d1-h/build/toplevel.mk:306: world] Error 2
      [2]+  Done                    $T/tools/build/buildserver --path $T 2> /dev/null 1>&2
      
      #### make failed to build some targets (27 seconds) ####
      

      根据网络上搜索的,更新了虚拟机的binutils到最新版也没作用。
      交叉编译器用的是如下仓库中的:

      https://gitee.com/weidongshan/eLinuxCore_dongshannezhastu.git
      cd  eLinuxCore_dongshannezhastu
      git submodule update  --init --recursive
      
      1 条回复 最后回复 回复 引用 分享 0
      • 1 / 1
      • First post
        Last post

      Copyright © 2024 深圳全志在线有限公司 粤ICP备2021084185号 粤公网安备44030502007680号

      行为准则 | 用户协议 | 隐私权政策