完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
我尝试让 clang (esp-llvm) 在 Windows 下为 ESP32-C3 工作但失败了:cmake 在(重新)配置项目时失败,说 clang“无法编译一个简单的测试程序。”
显然是因为它试图链接不存在的运行时库,特别是 代码:全选 clang_rt.crtbegin-riscv32.o libclang_rt.builtins-riscv32.a clang_rt.crtend-riscv32.o 在我的机器上任何地方都不存在。 ESP-IDF v5.1,视窗, 代码:全选 * esp-clang: Toolchain for all Espressif chips based on clang (optional) - 15.0.0-23786128ae (recommended, installed) 错误日志: 代码:全选 cmd.exe /C "cd . && D:\Espressif\tools\esp-clang\15.0.0-23786128ae\esp-clang\bin\clang.exe --target=riscv32-esp-elf -march=rv32imc -mabi=ilp32 -v CMakeFiles/cmTC_c8f86.dir/CMakeCCompilerABI.c.obj -o cmTC_c8f86 && cd ." clang version 15.0.0 (https://github.com/espressif/llvm-project.git 23786128aea96880a5752f6bd1c22aab27622ccf) Target: riscv32-esp-unknown-elf Thread model: posix InstalledDir: D:/Espressif/tools/esp-clang/15.0.0-23786128ae/esp-clang/bin Found candidate GCC installation: D:/Espressif/tools/esp-clang/15.0.0-23786128ae/esp-clang/bin/../lib/gcc/riscv32-esp-elf/11.2.0 Selected GCC installation: D:/Espressif/tools/esp-clang/15.0.0-23786128ae/esp-clang/bin/../lib/gcc/riscv32-esp-elf/11.2.0 Candidate multilib: .; Candidate multilib: no-rtti;@fno-rtti Candidate multilib: rv32i/ilp32;@march=rv32i@mabi=ilp32 Candidate multilib: rv32i/ilp32/no-rtti;@march=rv32i@mabi=ilp32@fno-rtti Candidate multilib: rv32imc/ilp32;@march=rv32imc@mabi=ilp32 Candidate multilib: rv32imc/ilp32/no-rtti;@march=rv32imc@mabi=ilp32@fno-rtti Candidate multilib: rv32imafc/ilp32f;@march=rv32imafc@mabi=ilp32f Candidate multilib: rv32imafc/ilp32f/no-rtti;@march=rv32imafc@mabi=ilp32f@fno-rtti Selected multilib: rv32imc/ilp32;@march=rv32imc@mabi=ilp32 "D:/Espressif/tools/esp-clang/15.0.0-23786128ae/esp-clang/bin/ld.lld" -m elf32lriscv -X D:/Espressif/tools/esp-clang/15.0.0-23786128ae/esp-clang/bin/../lib/gcc/riscv32-esp-elf/11.2.0/../../../../riscv32-esp-elf/lib/rv32imc/ilp32/crt0.o D:/Espressif/tools/esp-clang/15.0.0-23786128ae/esp-clang/lib/clang/15.0.0/lib/clang_rt.crtbegin-riscv32.o CMakeFiles/cmTC_c8f86.dir/CMakeCCompilerABI.c.obj -LD:/Espressif/tools/esp-clang/15.0.0-23786128ae/esp-clang/bin/../lib/gcc/riscv32-esp-elf/11.2.0/rv32imc/ilp32 -LD:/Espressif/tools/esp-clang/15.0.0-23786128ae/esp-clang/bin/../lib/gcc/riscv32-esp-elf/11.2.0/../../../../riscv32-esp-elf/lib/rv32imc/ilp32 -LD:/Espressif/tools/esp-clang/15.0.0-23786128ae/esp-clang/bin/../lib/gcc/riscv32-esp-elf/11.2.0 -LD:/Espressif/tools/esp-clang/15.0.0-23786128ae/esp-clang/bin/../lib/gcc/riscv32-esp-elf/11.2.0/../../../../riscv32-esp-elf/lib --start-group -lc -lgloss -lnosys --end-group D:/Espressif/tools/esp-clang/15.0.0-23786128ae/esp-clang/lib/clang/15.0.0/lib/libclang_rt.builtins-riscv32.a D:/Espressif/tools/esp-clang/15.0.0-23786128ae/esp-clang/lib/clang/15.0.0/lib/clang_rt.crtend-riscv32.o -o cmTC_c8f86 ld.lld: error: cannot open D:/Espressif/tools/esp-clang/15.0.0-23786128ae/esp-clang/lib/clang/15.0.0/lib/clang_rt.crtbegin-riscv32.o: No such file or directory ld.lld: error: cannot open D:/Espressif/tools/esp-clang/15.0.0-23786128ae/esp-clang/lib/clang/15.0.0/lib/libclang_rt.builtins-riscv32.a: No such file or directory ld.lld: error: cannot open D:/Espressif/tools/esp-clang/15.0.0-23786128ae/esp-clang/lib/clang/15.0.0/lib/clang_rt.crtend-riscv32.o: No such file or directory clang: error: ld command failed with exit code 1 (use -v to see invocation) ninja: build stopped: subcommand failed. |
|
相关推荐
|
|
只有小组成员才能发言,加入小组>>
1935个成员聚集在这个小组
加入小组我的项目我做主,使用GN+Ninja来完成构建系统(VSCode开发RT106X)
36428 浏览 0 评论
NXP IMX8应用处理器快速入门必备:技巧、使用、设计指南
4981 浏览 1 评论
6114 浏览 1 评论
6821 浏览 0 评论
NXP i.MX6UL开发板(linux系统烧录+规格+硬件+模块移植)使用手册
4252 浏览 0 评论
653浏览 2评论
求助,S32G上Core M启动后如何让Core A在Flash指定位置加载uboot?
646浏览 2评论
ESP32-WROVER-IE + LAN8720以太网,GPIO0电压只有1.6v,无法正常进入spi flash boot模式如何解决?
647浏览 2评论
求分享适用于PN7160 Android的NFC工厂测试应用程序
737浏览 2评论
849浏览 2评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-12-27 06:38 , Processed in 1.312427 second(s), Total 76, Slave 60 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号