eclipse编译出错,是什么情况啊。命令行编译是好的

thunder_f
Posts: 2
Joined: Mon Sep 13, 2021 3:04 pm

eclipse编译出错,是什么情况啊。命令行编译是好的

Postby thunder_f » Mon Sep 13, 2021 3:07 pm

[1/421] cmd.exe /C "cd /D C:\Users\thund\eclipse-workspace\hello_world\build\bootloader && C:\Users\thund\.espressif\tools\cmake\3.16.4\bin\cmake.exe --build ."
ninja: no work to do.
[2/419] ccache C:\Users\thund\.espressif\tools\xtensa-esp32-elf\esp-2021r1-8.4.0\xtensa-esp32-elf\bin\xtensa-esp32-elf-gcc.exe -Iconfig -IC:/Users/thund/Desktop/esp-idf/components/newlib/platform_include -IC:/Users/thund/Desktop/esp-idf/components/newlib/priv_include -IC:/Users/thund/Desktop/esp-idf/components/freertos/include -IC:/Users/thund/Desktop/esp-idf/components/freertos/port/xtensa/include -IC:/Users/thund/Desktop/esp-idf/components/esp_hw_support/include -IC:/Users/thund/Desktop/esp-idf/components/esp_hw_support/port/esp32/. -IC:/Users/thund/Desktop/esp-idf/components/heap/include -IC:/Users/thund/Desktop/esp-idf/components/log/include -IC:/Users/thund/Desktop/esp-idf/components/lwip/include/apps -IC:/Users/thund/Desktop/esp-idf/components/lwip/include/apps/sntp -IC:/Users/thund/Desktop/esp-idf/components/lwip/lwip/src/include -IC:/Users/thund/Desktop/esp-idf/components/lwip/port/esp32/include -IC:/Users/thund/Desktop/esp-idf/components/lwip/port/esp32/include/arch -IC:/Users/thund/Desktop/esp-idf/components/soc/include -IC:/Users/thund/Desktop/esp-idf/components/soc/esp32/. -IC:/Users/thund/Desktop/esp-idf/components/soc/esp32/include -IC:/Users/thund/Desktop/esp-idf/components/hal/esp32/include -IC:/Users/thund/Desktop/esp-idf/components/hal/include -IC:/Users/thund/Desktop/esp-idf/components/esp_rom/include -IC:/Users/thund/Desktop/esp-idf/components/esp_rom/esp32 -IC:/Users/thund/Desktop/esp-idf/components/esp_common/include -IC:/Users/thund/Desktop/esp-idf/components/esp_system/include -IC:/Users/thund/Desktop/esp-idf/components/esp32/include -IC:/Users/thund/Desktop/esp-idf/components/driver/include -IC:/Users/thund/Desktop/esp-idf/components/driver/esp32/include -IC:/Users/thund/Desktop/esp-idf/components/esp_ringbuf/include -IC:/Users/thund/Desktop/esp-idf/components/efuse/include -IC:/Users/thund/Desktop/esp-idf/components/efuse/esp32/include -IC:/Users/thund/Desktop/esp-idf/components/xtensa/include -IC:/Users/thund/Desktop/esp-idf/components/xtensa/esp32/include -IC:/Users/thund/Desktop/esp-idf/components/espcoredump/include -IC:/Users/thund/Desktop/esp-idf/components/esp_timer/include -IC:/Users/thund/Desktop/esp-idf/components/esp_ipc/include -IC:/Users/thund/Desktop/esp-idf/components/esp_pm/include -IC:/Users/thund/Desktop/esp-idf/components/vfs/include -IC:/Users/thund/Desktop/esp-idf/components/esp_wifi/include -IC:/Users/thund/Desktop/esp-idf/components/esp_wifi/esp32/include -IC:/Users/thund/Desktop/esp-idf/components/esp_event/include -IC:/Users/thund/Desktop/esp-idf/components/esp_netif/include -IC:/Users/thund/Desktop/esp-idf/components/esp_eth/include -IC:/Users/thund/Desktop/esp-idf/components/tcpip_adapter/include -IC:/Users/thund/Desktop/esp-idf/components/app_trace/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 -fstrict-volatile-bitfields -Wno-error=unused-but-set-variable -std=gnu99 -Wno-old-style-declaration -D_GNU_SOURCE -DIDF_VER=\"v4.3\" -DESP_PLATFORM -MD -MT esp-idf/newlib/CMakeFiles/__idf_newlib.dir/newlib_init.c.obj -MF esp-idf\newlib\CMakeFiles\__idf_newlib.dir\newlib_init.c.obj.d -o esp-idf/newlib/CMakeFiles/__idf_newlib.dir/newlib_init.c.obj -c C:/Users/thund/Desktop/esp-idf/components/newlib/newlib_init.c
FAILED: esp-idf/newlib/CMakeFiles/__idf_newlib.dir/newlib_init.c.obj
ccache C:\Users\thund\.espressif\tools\xtensa-esp32-elf\esp-2021r1-8.4.0\xtensa-esp32-elf\bin\xtensa-esp32-elf-gcc.exe -Iconfig -IC:/Users/thund/Desktop/esp-idf/components/newlib/platform_include -IC:/Users/thund/Desktop/esp-idf/components/newlib/priv_include -IC:/Users/thund/Desktop/esp-idf/components/freertos/include -IC:/Users/thund/Desktop/esp-idf/components/freertos/port/xtensa/include -IC:/Users/thund/Desktop/esp-idf/components/esp_hw_support/include -IC:/Users/thund/Desktop/esp-idf/components/esp_hw_support/port/esp32/. -IC:/Users/thund/Desktop/esp-idf/components/heap/include -IC:/Users/thund/Desktop/esp-idf/components/log/include -IC:/Users/thund/Desktop/esp-idf/components/lwip/include/apps -IC:/Users/thund/Desktop/esp-idf/components/lwip/include/apps/sntp -IC:/Users/thund/Desktop/esp-idf/components/lwip/lwip/src/include -IC:/Users/thund/Desktop/esp-idf/components/lwip/port/esp32/include -IC:/Users/thund/Desktop/esp-idf/components/lwip/port/esp32/include/arch -IC:/Users/thund/Desktop/esp-idf/components/soc/include -IC:/Users/thund/Desktop/esp-idf/components/soc/esp32/. -IC:/Users/thund/Desktop/esp-idf/components/soc/esp32/include -IC:/Users/thund/Desktop/esp-idf/components/hal/esp32/include -IC:/Users/thund/Desktop/esp-idf/components/hal/include -IC:/Users/thund/Desktop/esp-idf/components/esp_rom/include -IC:/Users/thund/Desktop/esp-idf/components/esp_rom/esp32 -IC:/Users/thund/Desktop/esp-idf/components/esp_common/include -IC:/Users/thund/Desktop/esp-idf/components/esp_system/include -IC:/Users/thund/Desktop/esp-idf/components/esp32/include -IC:/Users/thund/Desktop/esp-idf/components/driver/include -IC:/Users/thund/Desktop/esp-idf/components/driver/esp32/include -IC:/Users/thund/Desktop/esp-idf/components/esp_ringbuf/include -IC:/Users/thund/Desktop/esp-idf/components/efuse/include -IC:/Users/thund/Desktop/esp-idf/components/efuse/esp32/include -IC:/Users/thund/Desktop/esp-idf/components/xtensa/include -IC:/Users/thund/Desktop/esp-idf/components/xtensa/esp32/include -IC:/Users/thund/Desktop/esp-idf/components/espcoredump/include -IC:/Users/thund/Desktop/esp-idf/components/esp_timer/include -IC:/Users/thund/Desktop/esp-idf/components/esp_ipc/include -IC:/Users/thund/Desktop/esp-idf/components/esp_pm/include -IC:/Users/thund/Desktop/esp-idf/components/vfs/include -IC:/Users/thund/Desktop/esp-idf/components/esp_wifi/include -IC:/Users/thund/Desktop/esp-idf/components/esp_wifi/esp32/include -IC:/Users/thund/Desktop/esp-idf/components/esp_event/include -IC:/Users/thund/Desktop/esp-idf/components/esp_netif/include -IC:/Users/thund/Desktop/esp-idf/components/esp_eth/include -IC:/Users/thund/Desktop/esp-idf/components/tcpip_adapter/include -IC:/Users/thund/Desktop/esp-idf/components/app_trace/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 -fstrict-volatile-bitfields -Wno-error=unused-but-set-variable -std=gnu99 -Wno-old-style-declaration -D_GNU_SOURCE -DIDF_VER=\"v4.3\" -DESP_PLATFORM -MD -MT esp-idf/newlib/CMakeFiles/__idf_newlib.dir/newlib_init.c.obj -MF esp-idf\newlib\CMakeFiles\__idf_newlib.dir\newlib_init.c.obj.d -o esp-idf/newlib/CMakeFiles/__idf_newlib.dir/newlib_init.c.obj -c C:/Users/thund/Desktop/esp-idf/components/newlib/newlib_init.c
C:/Users/thund/Desktop/esp-idf/components/newlib/newlib_init.c:85:6: error: 'struct syscall_stub_table' has no member named '_retarget_lock_init'; did you mean '_lock_init'?
._retarget_lock_init = &__retarget_lock_init,
^~~~~~~~~~~~~~~~~~~
_lock_init
C:/Users/thund/Desktop/esp-idf/components/newlib/newlib_init.c:86:6: error: 'struct syscall_stub_table' has no member named '_retarget_lock_init_recursive'; did you mean '_lock_init_recursive'?
._retarget_lock_init_recursive = &__retarget_lock_init_recursive,
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
_lock_init_recursive
C:/Users/thund/Desktop/esp-idf/components/newlib/newlib_init.c:87:6: error: 'struct syscall_stub_table' has no member named '_retarget_lock_close'; did you mean '_lock_close'?
._retarget_lock_close = &__retarget_lock_close,
^~~~~~~~~~~~~~~~~~~~
_lock_close
C:/Users/thund/Desktop/esp-idf/components/newlib/newlib_init.c:87:29: warning: initialization of 'void (*)(struct __lock **)' from incompatible pointer type 'void (*)(struct __lock *)' [-Wincompatible-pointer-types]
._retarget_lock_close = &__retarget_lock_close,
^
C:/Users/thund/Desktop/esp-idf/components/newlib/newlib_init.c:87:29: note: (near initialization for 's_stub_table._lock_close')
C:/Users/thund/Desktop/esp-idf/components/newlib/newlib_init.c:88:6: error: 'struct syscall_stub_table' has no member named '_retarget_lock_close_recursive'; did you mean '_lock_close_recursive'?
._retarget_lock_close_recursive = &__retarget_lock_close_recursive,
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

ESP_Gargamel
Posts: 786
Joined: Wed Nov 14, 2018 8:45 am

Re: eclipse编译出错,是什么情况啊。命令行编译是好的

Postby ESP_Gargamel » Thu Sep 16, 2021 9:21 am

build 目录删了试一下。
另外,你使用的 idf 是哪个版本?有可能是你 toolchain 版本和 idf 不匹配。

XiotSamuel
Posts: 53
Joined: Sun Aug 29, 2021 1:50 pm

Re: eclipse编译出错,是什么情况啊。命令行编译是好的

Postby XiotSamuel » Fri Sep 24, 2021 4:52 pm

any solution?

Who is online

Users browsing this forum: No registered users and 41 guests