D1s编译Tina时报BFD does not support target riscv64-unknown-linux-gnu
-
根据以下网盘链接获取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
Copyright © 2024 深圳全志在线有限公司 粤ICP备2021084185号 粤公网安备44030502007680号