完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
我使用的是windows11,esp-idf-4.4版本的离线安装版,使用hello_world例程执行idf.py build 时报错,报错部分如下,说是sched_yield的问题不知到怎么解决,重新安装或者安装不同版本也是同样的错误,求各位大佬解答!!
这是部分日志,类似的错误重复了很多次。附件是完整日志。 [180/919] Building CXX object esp-idf/nvs_flash/CMakeFiles/__idf_nvs_flash.dir/src/nvs_partition.cpp.obj FAILED: esp-idf/nvs_flash/CMakeFiles/__idf_nvs_flash.dir/src/nvs_partition.cpp.obj ccache D:programFileespEspressiftoolsxtensa-esp32-elfesp-2021r2-patch2-8.4.0xtensa-esp32-elfbinxtensa-esp32-elf-g++.exe -DMBEDTLS_CONFIG_FILE="mbedtls/esp_config.h" -Iconfig -I../../../../components/nvs_flash/include -I../../../../components/newlib/platform_include -I../../../../components/freertos/include -I../../../../components/freertos/include/esp_additions/freertos -I../../../../components/freertos/port/xtensa/include -I../../../../components/freertos/include/esp_additions -I../../../../components/esp_hw_support/include -I../../../../components/esp_hw_support/include/soc -I../../../../components/esp_hw_support/include/soc/esp32 -I../../../../components/esp_hw_support/port/esp32/. -I../../../../components/heap/include -I../../../../components/log/include -I../../../../components/lwip/include/apps -I../../../../components/lwip/include/apps/sntp -I../../../../components/lwip/lwip/src/include -I../../../../components/lwip/port/esp32/include -I../../../../components/lwip/port/esp32/include/arch -I../../../../components/soc/include -I../../../../components/soc/esp32/. -I../../../../components/soc/esp32/include -I../../../../components/hal/esp32/include -I../../../../components/hal/include -I../../../../components/hal/platform_port/include -I../../../../components/esp_rom/include -I../../../../components/esp_rom/include/esp32 -I../../../../components/esp_rom/esp32 -I../../../../components/esp_common/include -I../../../../components/esp_system/include -I../../../../components/esp_system/port/soc -I../../../../components/esp_system/port/public_compat -I../../../../components/esp32/include -I../../../../components/xtensa/include -I../../../../components/xtensa/esp32/include -I../../../../components/driver/include -I../../../../components/driver/esp32/include -I../../../../components/esp_pm/include -I../../../../components/esp_ringbuf/include -I../../../../components/efuse/include -I../../../../components/efuse/esp32/include -I../../../../components/vfs/include -I../../../../components/esp_wifi/include -I../../../../components/esp_event/include -I../../../../components/esp_netif/include -I../../../../components/esp_eth/include -I../../../../components/tcpip_adapter/include -I../../../../components/esp_phy/include -I../../../../components/esp_phy/esp32/include -I../../../../components/esp_ipc/include -I../../../../components/app_trace/include -I../../../../components/esp_timer/include -I../../../../components/spi_flash/include -I../../../../components/mbedtls/port/include -I../../../../components/mbedtls/mbedtls/include -I../../../../components/mbedtls/esp_crt_bundle/include -mlongcalls -Wno-frame-address -ffunction-sections -fdata-sections -Wall -Werror=all -Wno-error=unused-function -Wno-error=unused-variable -Wno-error=deprecated-declarations -Wextra -Wno-unused-parameter -Wno-sign-compare -ggdb -Og -fmacro-prefix-map=D:/programFile/esp/Espressif/frameworks/esp-idf-v4.4/examples/get-started/hello_world=. -fmacro-prefix-map=D:/programFile/esp/Espressif/frameworks/esp-idf-v4.4=IDF -fstrict-volatile-bitfields -Wno-error=unused-but-set-variable -fno-jump-tables -fno-tree-switch-conversion -std=gnu++11 -fno-exceptions -fno-rtti -D_GNU_SOURCE -DIDF_VER="v4.4" -DESP_PLATFORM -D_POSIX_READER_WRITER_LOCKS -MD -MT esp-idf/nvs_flash/CMakeFiles/__idf_nvs_flash.dir/src/nvs_partition.cpp.obj -MF esp-idfnvs_flashCMakeFiles__idf_nvs_flash.dirsrcnvs_partition.cpp.obj.d -o esp-idf/nvs_flash/CMakeFiles/__idf_nvs_flash.dir/src/nvs_partition.cpp.obj -c D:/programFile/esp/Espressif/frameworks/esp-idf-v4.4/components/nvs_flash/src/nvs_partition.cpp In file included from d:programfileespespressiftoolsxtensa-esp32-elfesp-2021r2-patch2-8.4.0xtensa-esp32-elfxtensa-esp32-elfincludec++8.4.0xtensa-esp32-elfno-rttibitsgthr.h:151, from d:programfileespespressiftoolsxtensa-esp32-elfesp-2021r2-patch2-8.4.0xtensa-esp32-elfxtensa-esp32-elfincludec++8.4.0extatomicity.h:35, from d:programfileespespressiftoolsxtensa-esp32-elfesp-2021r2-patch2-8.4.0xtensa-esp32-elfxtensa-esp32-elfincludec++8.4.0bitsbasic_string.h:39, from d:programfileespespressiftoolsxtensa-esp32-elfesp-2021r2-patch2-8.4.0xtensa-esp32-elfxtensa-esp32-elfincludec++8.4.0string:52, from d:programfileespespressiftoolsxtensa-esp32-elfesp-2021r2-patch2-8.4.0xtensa-esp32-elfxtensa-esp32-elfincludec++8.4.0stdexcept:39, from d:programfileespespressiftoolsxtensa-esp32-elfesp-2021r2-patch2-8.4.0xtensa-esp32-elfxtensa-esp32-elfincludec++8.4.0array:39, from d:programfileespespressiftoolsxtensa-esp32-elfesp-2021r2-patch2-8.4.0xtensa-esp32-elfxtensa-esp32-elfincludec++8.4.0tuple:39, from d:programfileespespressiftoolsxtensa-esp32-elfesp-2021r2-patch2-8.4.0xtensa-esp32-elfxtensa-esp32-elfincludec++8.4.0bitshashtable_policy.h:34, from d:programfileespespressiftoolsxtensa-esp32-elfesp-2021r2-patch2-8.4.0xtensa-esp32-elfxtensa-esp32-elfincludec++8.4.0bitshashtable.h:35, from d:programfileespespressiftoolsxtensa-esp32-elfesp-2021r2-patch2-8.4.0xtensa-esp32-elfxtensa-esp32-elfincludec++8.4.0unordered_map:46, from D:/programFile/esp/Espressif/frameworks/esp-idf-v4.4/components/nvs_flash/src/intrusive_list.h:18, from D:/programFile/esp/Espressif/frameworks/esp-idf-v4.4/components/nvs_flash/src/nvs_partition.hpp:19, from D:/programFile/esp/Espressif/frameworks/esp-idf-v4.4/components/nvs_flash/src/nvs_partition.cpp:16: d:programfileespespressiftoolsxtensa-esp32-elfesp-2021r2-patch2-8.4.0xtensa-esp32-elfxtensa-esp32-elfincludec++8.4.0xtensa-esp32-elfno-rttibitsgthr-default.h: In function 'int __gthread_yield()': d:programfileespespressiftoolsxtensa-esp32-elfesp-2021r2-patch2-8.4.0xtensa-esp32-elfxtensa-esp32-elfincludec++8.4.0xtensa-esp32-elfno-rttibitsgthr-default.h:705:10: error: 'sched_yield' was not declared in this scope return __gthrw_(sched_yield) (); ^~~~~~~~ d:programfileespespressiftoolsxtensa-esp32-elfesp-2021r2-patch2-8.4.0xtensa-esp32-elfxtensa-esp32-elfincludec++8.4.0xtensa-esp32-elfno-rttibitsgthr-default.h:705:10: note: suggested alternative: 'pthread_yield' |
|
相关推荐
1个回答
|
|
根据您提供的错误信息,这个问题可能是由于以下原因导致的:
1. **编译环境问题**:确保您的编译环境设置正确。在Windows 11上,您需要使用MSYS2或WSL(Windows Subsystem for Linux)来编译ESP-IDF项目。 2. **CMake版本问题**:ESP-IDF 4.4可能需要特定版本的CMake。请确保您安装了正确版本的CMake。您可以在命令行中运行 `cmake --version` 来检查当前安装的CMake版本。 3. **ESP-IDF版本问题**:尽管您已经尝试了重新安装或安装不同版本的ESP-IDF,但建议您检查ESP-IDF的安装路径是否包含空格或其他特殊字符。这可能会导致编译错误。 4. **工具链问题**:请确保您已经正确安装了适用于ESP32的交叉编译工具链。您可以在ESP-IDF的安装目录下找到工具链,例如 `~/.espressif/tools/xtensa-esp32-elf/`。 5. **项目配置问题**:检查您的项目配置文件(如 `sdkconfig`),确保没有错误或不兼容的设置。 为了解决这个问题,您可以尝试以下步骤: 1. 确保您的编译环境设置正确,例如使用MSYS2或WSL。 2. 检查并安装正确版本的CMake。 3. 检查ESP-IDF的安装路径,确保没有空格或其他特殊字符。 4. 确保已正确安装适用于ESP32的交叉编译工具链。 5. 检查项目配置文件,确保没有错误或不兼容的设置。 6. 尝试清理项目并重新编译:`idf.py clean`,然后再次运行 `idf.py build`。 7. 如果问题仍然存在,请查看完整的错误日志,以便更好地了解问题所在。 希望这些建议能帮助您解决问题。如果问题仍然存在,请随时提供更多详细信息,以便我们为您提供更具体的帮助。 |
|
|
|
只有小组成员才能发言,加入小组>>
429浏览 6评论
362浏览 5评论
有没有办法在不使用混杂模式的情况下实现Wifi驱动程序接收缓冲区访问中断呢?
343浏览 5评论
349浏览 4评论
327浏览 4评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-9-1 09:19 , Processed in 0.476924 second(s), Total 45, Slave 38 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191