完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
版本:IDF4.3.5
报错输出如下: [982/983] Linking CXX executable https_server.elf FAILED: https_server.elf cmd.exe /C "cd . && D:Espressiftoolsriscv32-esp-elfesp-2021r2-patch3-8.4.0riscv32-esp-elfbinriscv32-esp-elf-g++.exe -march=rv32imc -nostartfiles -march=rv32imc --specs=nosys.specs @CMakeFileshttps_server.elf.rsp -o https_server.elf && cd ." d:/espressif/tools/riscv32-esp-elf/esp-2021r2-patch3-8.4.0/riscv32-esp-elf/bin/../lib/gcc/riscv32-esp-elf/8.4.0/../../../../riscv32-esp-elf/bin/ld.exe: esp-idf/main/libmain.a(app_main.c.obj): in function `esp_create_https_server': d:espressifframeworksesp-idf-v4.3.5workspacehttps_serverbuild/../main/app_main.c:216: undefined reference to `_binary_cacert_pem_start' d:/espressif/tools/riscv32-esp-elf/esp-2021r2-patch3-8.4.0/riscv32-esp-elf/bin/../lib/gcc/riscv32-esp-elf/8.4.0/../../../../riscv32-esp-elf/bin/ld.exe: d:espressifframeworksesp-idf-v4.3.5workspacehttps_serverbuild/../main/app_main.c:216: undefined reference to `_binary_cacert_pem_start' d:/espressif/tools/riscv32-esp-elf/esp-2021r2-patch3-8.4.0/riscv32-esp-elf/bin/../lib/gcc/riscv32-esp-elf/8.4.0/../../../../riscv32-esp-elf/bin/ld.exe: d:espressifframeworksesp-idf-v4.3.5workspacehttps_serverbuild/../main/app_main.c:217: undefined reference to `_binary_cacert_pem_end' d:/espressif/tools/riscv32-esp-elf/esp-2021r2-patch3-8.4.0/riscv32-esp-elf/bin/../lib/gcc/riscv32-esp-elf/8.4.0/../../../../riscv32-esp-elf/bin/ld.exe: d:espressifframeworksesp-idf-v4.3.5workspacehttps_serverbuild/../main/app_main.c:217: undefined reference to `_binary_cacert_pem_end' d:/espressif/tools/riscv32-esp-elf/esp-2021r2-patch3-8.4.0/riscv32-esp-elf/bin/../lib/gcc/riscv32-esp-elf/8.4.0/../../../../riscv32-esp-elf/bin/ld.exe: d:espressifframeworksesp-idf-v4.3.5workspacehttps_serverbuild/../main/app_main.c:221: undefined reference to `_binary_prvtkey_pem_start' d:/espressif/tools/riscv32-esp-elf/esp-2021r2-patch3-8.4.0/riscv32-esp-elf/bin/../lib/gcc/riscv32-esp-elf/8.4.0/../../../../riscv32-esp-elf/bin/ld.exe: d:espressifframeworksesp-idf-v4.3.5workspacehttps_serverbuild/../main/app_main.c:221: undefined reference to `_binary_prvtkey_pem_start' d:/espressif/tools/riscv32-esp-elf/esp-2021r2-patch3-8.4.0/riscv32-esp-elf/bin/../lib/gcc/riscv32-esp-elf/8.4.0/../../../../riscv32-esp-elf/bin/ld.exe: d:espressifframeworksesp-idf-v4.3.5workspacehttps_serverbuild/../main/app_main.c:222: undefined reference to `_binary_prvtkey_pem_end' d:/espressif/tools/riscv32-esp-elf/esp-2021r2-patch3-8.4.0/riscv32-esp-elf/bin/../lib/gcc/riscv32-esp-elf/8.4.0/../../../../riscv32-esp-elf/bin/ld.exe: d:espressifframeworksesp-idf-v4.3.5workspacehttps_serverbuild/../main/app_main.c:222: undefined reference to `_binary_prvtkey_pem_end' collect2.exe: error: ld returned 1 exit status ninja: build stopped: subcommand failed. ninja failed with exit code 1 请问是什么原因? |
|
相关推荐
1个回答
|
|
根据您提供的错误信息,这个问题可能是由于以下几个原因导致的:
1. **路径问题**:错误信息中提到了路径 `D:Espressiftoolsriscv32-esp-elfesp-2021r2-patch3-8.4.0riscv32-esp-elfbinriscv32-esp-elf-g++.exe`,这个路径看起来可能有问题,因为它包含了一些特殊字符(如 `&`),这可能是由于复制粘贴时编码问题导致的。请检查您的工具链路径是否正确。 2. **工具链版本不兼容**:您使用的是ESP-IDF版本4.3.5,但是您的RISC-V工具链版本是2021r2-patch3。可能存在版本不兼容的问题。建议您检查ESP-IDF的文档,了解支持的工具链版本,并确保您使用的是兼容的版本。 3. **CMakeLists.txt配置问题**:错误信息中提到了 `@CMakeFileshttps_server.elf.rsp`,这表明可能是CMake配置文件有问题。请检查您的 `CMakeLists.txt` 文件,确保所有的依赖项和链接器标志都正确设置。 4. **编译器或链接器错误**:错误信息显示 "FAILED: https_server.elf",但没有提供具体的失败原因。这可能是由于编译器或链接器遇到了问题。您可以尝试清理项目(例如使用 `idf.py clean` 命令),然后重新编译。 5. **环境问题**:确保您的开发环境设置正确,包括路径变量、权限等。 解决步骤: - 首先,检查并确保您的工具链路径正确无误。 - 确认您的工具链版本与ESP-IDF版本兼容。 - 检查 `CMakeLists.txt` 文件,确保所有配置正确。 - 清理项目并重新编译。 - 检查您的开发环境设置。 如果问题仍然存在,您可能需要提供更多的信息,例如 `CMakeLists.txt` 文件的内容,以便进一步分析问题。 |
|
|
|
只有小组成员才能发言,加入小组>>
196个成员聚集在这个小组
加入小组481 浏览 1 评论
1770 浏览 2 评论
为blufi_device设置自定义名称,但是无法修改,为什么?
383浏览 4评论
请问ESP32-S2-WROOM怎么获得ESP32-S2外接FLASH的唯一序列号?
176浏览 3评论
ESP-Jumpstart例程中第5个工程:5_cloud连接报错是哪里的问题?
222浏览 2评论
用AT+CIPSNTPCFG=1,8,\"cn.ntp.org.cn\",\"ntp.sjtu.edu.cn\"更新不了时间怎么处理?
575浏览 2评论
265浏览 2评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2025-3-5 10:04 , Processed in 0.821431 second(s), Total 79, Slave 62 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191