idf.py build 编译出现ninja failed with exit code 1和ninja: build stopped: subcommand failed.HELP HELP!!!

pengxjwawa
Posts: 4
Joined: Fri May 07, 2021 6:25 am

idf.py build 编译出现ninja failed with exit code 1和ninja: build stopped: subcommand failed.HELP HELP!!!

Postby pengxjwawa » Fri May 07, 2021 6:46 am

C:\ESP_PROJ\esp32_Blink>idf.py build
Executing action: all (aliases: build)
Running ninja in directory c:\esp_proj\esp32_blink\build
Executing "ninja all"...
[2/925] Generating ../../partition_table/partition-table.bin
Partition table binary generated. Contents:
*******************************************************************************
# ESP-IDF Partition Table
# Name, Type, SubType, Offset, Size, Flags
nvs,data,nvs,0x9000,24K,
phy_init,data,phy,0xf000,4K,
factory,app,factory,0x10000,1M,
*******************************************************************************
[5/925] Building C object esp-idf/mbedtls/mbedtls/library/CMakeFiles/mbedcrypto.dir/blowfish.c.obj
FAILED: esp-idf/mbedtls/mbedtls/library/CMakeFiles/mbedcrypto.dir/blowfish.c.obj
ccache C:\Users\mi\.espressif\tools\xtensa-esp32-elf\esp-2020r3-8.4.0\xtensa-esp32-elf\bin\xtensa-esp32-elf-gcc.exe -DMBEDTLS_CONFIG_FILE=\"mbedtls/esp_config.h\" -Iconfig -IC:/Users/mi/Desktop/esp-idf/components/mbedtls/port/include -IC:/Users/mi/Desktop/esp-idf/components/mbedtls/mbedtls/include -IC:/Users/mi/Desktop/esp-idf/components/newlib/platform_include -IC:/Users/mi/Desktop/esp-idf/components/freertos/include -IC:/Users/mi/Desktop/esp-idf/components/freertos/xtensa/include -IC:/Users/mi/Desktop/esp-idf/components/heap/include -IC:/Users/mi/Desktop/esp-idf/components/log/include -IC:/Users/mi/Desktop/esp-idf/components/lwip/include/apps -IC:/Users/mi/Desktop/esp-idf/components/lwip/include/apps/sntp -IC:/Users/mi/Desktop/esp-idf/components/lwip/lwip/src/include -IC:/Users/mi/Desktop/esp-idf/components/lwip/port/esp32/include -IC:/Users/mi/Desktop/esp-idf/components/lwip/port/esp32/include/arch -IC:/Users/mi/Desktop/esp-idf/components/lwip/port/esp32/tcp_isn -IC:/Users/mi/Desktop/esp-idf/components/soc/src/esp32/. -IC:/Users/mi/Desktop/esp-idf/components/soc/src/esp32/include -IC:/Users/mi/Desktop/esp-idf/components/soc/include -IC:/Users/mi/Desktop/esp-idf/components/esp_rom/include -IC:/Users/mi/Desktop/esp-idf/components/esp_common/include -IC:/Users/mi/Desktop/esp-idf/components/esp_system/include -IC:/Users/mi/Desktop/esp-idf/components/xtensa/include -IC:/Users/mi/Desktop/esp-idf/components/xtensa/esp32/include -IC:/Users/mi/Desktop/esp-idf/components/esp32/include -IC:/Users/mi/Desktop/esp-idf/components/driver/include -IC:/Users/mi/Desktop/esp-idf/components/driver/esp32/include -IC:/Users/mi/Desktop/esp-idf/components/esp_ringbuf/include -IC:/Users/mi/Desktop/esp-idf/components/efuse/include -IC:/Users/mi/Desktop/esp-idf/components/efuse/esp32/include -IC:/Users/mi/Desktop/esp-idf/components/espcoredump/include -IC:/Users/mi/Desktop/esp-idf/components/esp_timer/include -IC:/Users/mi/Desktop/esp-idf/components/esp_ipc/include -IC:/Users/mi/Desktop/esp-idf/components/soc/soc/esp32/include -IC:/Users/mi/Desktop/esp-idf/components/soc/soc/esp32/../include -IC:/Users/mi/Desktop/esp-idf/components/soc/soc/esp32/private_include -IC:/Users/mi/Desktop/esp-idf/components/vfs/include -IC:/Users/mi/Desktop/esp-idf/components/esp_wifi/include -IC:/Users/mi/Desktop/esp-idf/components/esp_wifi/esp32/include -IC:/Users/mi/Desktop/esp-idf/components/esp_event/include -IC:/Users/mi/Desktop/esp-idf/components/esp_netif/include -IC:/Users/mi/Desktop/esp-idf/components/esp_eth/include -IC:/Users/mi/Desktop/esp-idf/components/tcpip_adapter/include -IC:/Users/mi/Desktop/esp-idf/components/app_trace/include -mlongcalls -Wno-frame-address -Wall -Wextra -W -Wdeclaration-after-statement -Wwrite-strings -Wlogical-op -Wshadow -Wmissing-declarations -Wmissing-prototypes -O0 -g3 -ffunction-sections -fdata-sections -fstrict-volatile-bitfields -Wall -Werror=all -Wno-error=unused-function -Wno-error=unused-but-set-variable -Wno-error=unused-variable -Wno-error=deprecated-declarations -Wextra -Wno-unused-parameter -Wno-sign-compare -ggdb -Og -std=gnu99 -Wno-old-style-declaration -D_GNU_SOURCE -DIDF_VER=\"v4.2.1-dirty\" -DESP_PLATFORM -MD -MT esp-idf/mbedtls/mbedtls/library/CMakeFiles/mbedcrypto.dir/blowfish.c.obj -MF esp-idf\mbedtls\mbedtls\library\CMakeFiles\mbedcrypto.dir\blowfish.c.obj.d -o esp-idf/mbedtls/mbedtls/library/CMakeFiles/mbedcrypto.dir/blowfish.c.obj -c C:/Users/mi/Desktop/esp-idf/components/mbedtls/mbedtls/library/blowfish.c
xtensa-esp32-elf-gcc.exe: error: CreateProcess: No such file or directory
[18/925] Building C object esp-idf/mbedtls/mbedtls/library/CMakeFiles/mbedcrypto.dir/bignum.c.obj
ninja: build stopped: subcommand failed.
ninja failed with exit code 1


PLEASEHELP HELP!!!

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

Re: idf.py build 编译出现ninja failed with exit code 1和ninja: build stopped: subcommand failed.HELP HELP!!!

Postby ESP_Gargamel » Fri May 07, 2021 7:20 am

1、你的 idf 开发环境是如何搭建的?
2、能否编译一下 idf 自带的 example?比如到 esp-idf/examples/get-started/blink 下去编译,然后提供完整的编译 log。
3、能否把 ccache 关了试一下,idf.py --no-ccache build
4、在开发环境下直接 xtensa-esp32-elf-gcc -v,看输出是否正确

pengxjwawa
Posts: 4
Joined: Fri May 07, 2021 6:25 am

Re: idf.py build 编译出现ninja failed with exit code 1和ninja: build stopped: subcommand failed.HELP HELP!!!

Postby pengxjwawa » Fri May 07, 2021 12:27 pm

您好!
按照您上面给的提示,我尝试了一下,目前还是会报相同的错误:如下
idf.py build
Setting PYTHONNOUSERSITE, was not set
Using Python in C:/Users/mi/.espressif/python_env/idf4.2_py3.8_env/Scripts
Python 3.8.7
Using Git in C:/Users/mi/.espressif/tools/idf-git/2.30.1/cmd
git version 2.30.1.windows.1
Setting IDF_PATH: C:\Users\mi\Desktop\esp-idf

Adding ESP-IDF tools to PATH...
Not using an unsupported version of tool cmake found in PATH: 3.20.2.
C:\Users\mi\.espressif\tools\xtensa-esp32-elf\esp-2020r3-8.4.0\xtensa-esp32-elf\bin
C:\Users\mi\.espressif\tools\xtensa-esp32s2-elf\esp-2020r3-8.4.0\xtensa-esp32s2-elf\bin
C:\Users\mi\.espressif\tools\esp32ulp-elf\2.28.51-esp-20191205\esp32ulp-elf-binutils\bin
C:\Users\mi\.espressif\tools\esp32s2ulp-elf\2.28.51-esp-20191205\esp32s2ulp-elf-binutils\bin
C:\Users\mi\.espressif\tools\cmake\3.16.4\bin
C:\Users\mi\.espressif\tools\openocd-esp32\v0.10.0-esp32-20200709\openocd-esp32\bin
C:\Users\mi\.espressif\tools\ninja\1.10.0\
C:\Users\mi\.espressif\tools\idf-exe\1.0.1\
C:\Users\mi\.espressif\tools\ccache\3.7\
C:\Users\mi\.espressif\tools\dfu-util\0.9\dfu-util-0.9-win64
C:\Users\mi\.espressif\python_env\idf4.2_py3.8_env\Scripts
C:\Users\mi\Desktop\esp-idf\tools

Checking if Python packages are up to date...
Python requirements from C:\Users\mi\Desktop\esp-idf\requirements.txt are satisfied.

Done! You can now compile ESP-IDF projects.
Go to the project directory and run:

idf.py build


C:\Users\mi\Desktop\esp-idf>cd examples

C:\Users\mi\Desktop\esp-idf\examples>cd get-started

C:\Users\mi\Desktop\esp-idf\examples\get-started>cd blink

C:\Users\mi\Desktop\esp-idf\examples\get-started\blink>idf.py build
Executing action: all (aliases: build)
Running cmake in directory c:\users\mi\desktop\esp-idf\examples\get-started\blink\build
Executing "cmake -G Ninja -DPYTHON_DEPS_CHECKED=1 -DESP_PLATFORM=1 -DCCACHE_ENABLE=1 c:\users\mi\desktop\esp-idf\examples\get-started\blink"...
-- Found Git: C:/Users/mi/.espressif/tools/idf-git/2.30.1/cmd/git.exe (found version "2.30.1.windows.1")
-- IDF_TARGET not set, using default target: esp32
-- ccache will be used for faster recompilation
-- The C compiler identification is GNU 8.4.0
-- The CXX compiler identification is GNU 8.4.0
-- The ASM compiler identification is GNU
-- Found assembler: C:/Users/mi/.espressif/tools/xtensa-esp32-elf/esp-2020r3-8.4.0/xtensa-esp32-elf/bin/xtensa-esp32-elf-gcc.exe
-- Check for working C compiler: C:/Users/mi/.espressif/tools/xtensa-esp32-elf/esp-2020r3-8.4.0/xtensa-esp32-elf/bin/xtensa-esp32-elf-gcc.exe
-- Check for working C compiler: C:/Users/mi/.espressif/tools/xtensa-esp32-elf/esp-2020r3-8.4.0/xtensa-esp32-elf/bin/xtensa-esp32-elf-gcc.exe -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: C:/Users/mi/.espressif/tools/xtensa-esp32-elf/esp-2020r3-8.4.0/xtensa-esp32-elf/bin/xtensa-esp32-elf-g++.exe
-- Check for working CXX compiler: C:/Users/mi/.espressif/tools/xtensa-esp32-elf/esp-2020r3-8.4.0/xtensa-esp32-elf/bin/xtensa-esp32-elf-g++.exe -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Building ESP-IDF components for target esp32
-- Project sdkconfig file C:/Users/mi/Desktop/esp-idf/examples/get-started/blink/sdkconfig
Loading defaults file C:/Users/mi/Desktop/esp-idf/examples/get-started/blink/sdkconfig.defaults...
-- Found PythonInterp: C:/Users/mi/.espressif/python_env/idf4.2_py3.8_env/Scripts/python.exe (found version "3.8.7")
-- Could NOT find Perl (missing: PERL_EXECUTABLE)
-- App "blink" version: v4.2.1-dirty
-- Adding linker script C:/Users/mi/Desktop/esp-idf/components/esp_rom/esp32/ld/esp32.rom.newlib-time.ld
-- Adding linker script C:/Users/mi/Desktop/esp-idf/components/esp_rom/esp32/ld/esp32.rom.ld
-- Adding linker script C:/Users/mi/Desktop/esp-idf/components/esp_rom/esp32/ld/esp32.rom.libgcc.ld
-- Adding linker script C:/Users/mi/Desktop/esp-idf/components/esp_rom/esp32/ld/esp32.rom.newlib-data.ld
-- Adding linker script C:/Users/mi/Desktop/esp-idf/components/esp_rom/esp32/ld/esp32.rom.syscalls.ld
-- Adding linker script C:/Users/mi/Desktop/esp-idf/components/esp_rom/esp32/ld/esp32.rom.newlib-funcs.ld
-- Adding linker script C:/Users/mi/Desktop/esp-idf/examples/get-started/blink/build/esp-idf/esp32/esp32_out.ld
-- Adding linker script C:/Users/mi/Desktop/esp-idf/components/esp32/ld/esp32.project.ld.in
-- Adding linker script C:/Users/mi/Desktop/esp-idf/components/esp32/ld/esp32.peripherals.ld
-- Components: app_trace app_update asio bootloader bootloader_support bt cbor coap console cxx driver efuse esp-tls esp32 esp_adc_cal esp_common esp_eth esp_event esp_gdbstub esp_hid esp_http_client esp_http_server esp_https_ota esp_https_server esp_ipc esp_local_ctrl esp_netif esp_ringbuf esp_rom esp_serial_slave_link esp_system esp_timer esp_websocket_client esp_wifi espcoredump esptool_py expat fatfs freemodbus freertos heap idf_test jsmn json libsodium log lwip main mbedtls mdns mqtt newlib nghttp nvs_flash openssl partition_table perfmon protobuf-c protocomm pthread sdmmc soc spi_flash spiffs tcp_transport tcpip_adapter tinyusb ulp unity vfs wear_levelling wifi_provisioning wpa_supplicant xtensa
-- Component paths: C:/Users/mi/Desktop/esp-idf/components/app_trace C:/Users/mi/Desktop/esp-idf/components/app_update C:/Users/mi/Desktop/esp-idf/components/asio C:/Users/mi/Desktop/esp-idf/components/bootloader C:/Users/mi/Desktop/esp-idf/components/bootloader_support C:/Users/mi/Desktop/esp-idf/components/bt C:/Users/mi/Desktop/esp-idf/components/cbor C:/Users/mi/Desktop/esp-idf/components/coap C:/Users/mi/Desktop/esp-idf/components/console C:/Users/mi/Desktop/esp-idf/components/cxx C:/Users/mi/Desktop/esp-idf/components/driver C:/Users/mi/Desktop/esp-idf/components/efuse C:/Users/mi/Desktop/esp-idf/components/esp-tls C:/Users/mi/Desktop/esp-idf/components/esp32 C:/Users/mi/Desktop/esp-idf/components/esp_adc_cal C:/Users/mi/Desktop/esp-idf/components/esp_common C:/Users/mi/Desktop/esp-idf/components/esp_eth C:/Users/mi/Desktop/esp-idf/components/esp_event C:/Users/mi/Desktop/esp-idf/components/esp_gdbstub C:/Users/mi/Desktop/esp-idf/components/esp_hid C:/Users/mi/Desktop/esp-idf/components/esp_http_client C:/Users/mi/Desktop/esp-idf/components/esp_http_server C:/Users/mi/Desktop/esp-idf/components/esp_https_ota C:/Users/mi/Desktop/esp-idf/components/esp_https_server C:/Users/mi/Desktop/esp-idf/components/esp_ipc C:/Users/mi/Desktop/esp-idf/components/esp_local_ctrl C:/Users/mi/Desktop/esp-idf/components/esp_netif C:/Users/mi/Desktop/esp-idf/components/esp_ringbuf C:/Users/mi/Desktop/esp-idf/components/esp_rom C:/Users/mi/Desktop/esp-idf/components/esp_serial_slave_link C:/Users/mi/Desktop/esp-idf/components/esp_system C:/Users/mi/Desktop/esp-idf/components/esp_timer C:/Users/mi/Desktop/esp-idf/components/esp_websocket_client C:/Users/mi/Desktop/esp-idf/components/esp_wifi C:/Users/mi/Desktop/esp-idf/components/espcoredump C:/Users/mi/Desktop/esp-idf/components/esptool_py C:/Users/mi/Desktop/esp-idf/components/expat C:/Users/mi/Desktop/esp-idf/components/fatfs C:/Users/mi/Desktop/esp-idf/components/freemodbus C:/Users/mi/Desktop/esp-idf/components/freertos C:/Users/mi/Desktop/esp-idf/components/heap C:/Users/mi/Desktop/esp-idf/components/idf_test C:/Users/mi/Desktop/esp-idf/components/jsmn C:/Users/mi/Desktop/esp-idf/components/json C:/Users/mi/Desktop/esp-idf/components/libsodium C:/Users/mi/Desktop/esp-idf/components/log C:/Users/mi/Desktop/esp-idf/components/lwip C:/Users/mi/Desktop/esp-idf/examples/get-started/blink/main C:/Users/mi/Desktop/esp-idf/components/mbedtls C:/Users/mi/Desktop/esp-idf/components/mdns C:/Users/mi/Desktop/esp-idf/components/mqtt C:/Users/mi/Desktop/esp-idf/components/newlib C:/Users/mi/Desktop/esp-idf/components/nghttp C:/Users/mi/Desktop/esp-idf/components/nvs_flash C:/Users/mi/Desktop/esp-idf/components/openssl C:/Users/mi/Desktop/esp-idf/components/partition_table C:/Users/mi/Desktop/esp-idf/components/perfmon C:/Users/mi/Desktop/esp-idf/components/protobuf-c C:/Users/mi/Desktop/esp-idf/components/protocomm C:/Users/mi/Desktop/esp-idf/components/pthread C:/Users/mi/Desktop/esp-idf/components/sdmmc C:/Users/mi/Desktop/esp-idf/components/soc C:/Users/mi/Desktop/esp-idf/components/spi_flash C:/Users/mi/Desktop/esp-idf/components/spiffs C:/Users/mi/Desktop/esp-idf/components/tcp_transport C:/Users/mi/Desktop/esp-idf/components/tcpip_adapter C:/Users/mi/Desktop/esp-idf/components/tinyusb C:/Users/mi/Desktop/esp-idf/components/ulp C:/Users/mi/Desktop/esp-idf/components/unity C:/Users/mi/Desktop/esp-idf/components/vfs C:/Users/mi/Desktop/esp-idf/components/wear_levelling C:/Users/mi/Desktop/esp-idf/components/wifi_provisioning C:/Users/mi/Desktop/esp-idf/components/wpa_supplicant C:/Users/mi/Desktop/esp-idf/components/xtensa
-- Configuring done
-- Generating done
-- Build files have been written to: C:/Users/mi/Desktop/esp-idf/examples/get-started/blink/build
Running ninja in directory c:\users\mi\desktop\esp-idf\examples\get-started\blink\build
Executing "ninja all"...
[4/934] Building C object esp-idf/mbedtls/mbedtls/library/CMakeFiles/mbedcrypto.dir/aria.c.obj
FAILED: esp-idf/mbedtls/mbedtls/library/CMakeFiles/mbedcrypto.dir/aria.c.obj
ccache C:\Users\mi\.espressif\tools\xtensa-esp32-elf\esp-2020r3-8.4.0\xtensa-esp32-elf\bin\xtensa-esp32-elf-gcc.exe -DMBEDTLS_CONFIG_FILE=\"mbedtls/esp_config.h\" -Iconfig -I../../../../components/mbedtls/port/include -I../../../../components/mbedtls/mbedtls/include -I../../../../components/newlib/platform_include -I../../../../components/freertos/include -I../../../../components/freertos/xtensa/include -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/lwip/port/esp32/tcp_isn -I../../../../components/soc/src/esp32/. -I../../../../components/soc/src/esp32/include -I../../../../components/soc/include -I../../../../components/esp_rom/include -I../../../../components/esp_common/include -I../../../../components/esp_system/include -I../../../../components/xtensa/include -I../../../../components/xtensa/esp32/include -I../../../../components/esp32/include -I../../../../components/driver/include -I../../../../components/driver/esp32/include -I../../../../components/esp_ringbuf/include -I../../../../components/efuse/include -I../../../../components/efuse/esp32/include -I../../../../components/espcoredump/include -I../../../../components/esp_timer/include -I../../../../components/esp_ipc/include -I../../../../components/soc/soc/esp32/include -I../../../../components/soc/soc/esp32/../include -I../../../../components/soc/soc/esp32/private_include -I../../../../components/vfs/include -I../../../../components/esp_wifi/include -I../../../../components/esp_wifi/esp32/include -I../../../../components/esp_event/include -I../../../../components/esp_netif/include -I../../../../components/esp_eth/include -I../../../../components/tcpip_adapter/include -I../../../../components/app_trace/include -mlongcalls -Wno-frame-address -Wall -Wextra -W -Wdeclaration-after-statement -Wwrite-strings -Wlogical-op -Wshadow -Wmissing-declarations -Wmissing-prototypes -ffunction-sections -fdata-sections -fstrict-volatile-bitfields -Wall -Werror=all -Wno-error=unused-function -Wno-error=unused-but-set-variable -Wno-error=unused-variable -Wno-error=deprecated-declarations -Wextra -Wno-unused-parameter -Wno-sign-compare -ggdb -Og -std=gnu99 -Wno-old-style-declaration -D_GNU_SOURCE -DIDF_VER=\"v4.2.1-dirty\" -DESP_PLATFORM -MD -MT esp-idf/mbedtls/mbedtls/library/CMakeFiles/mbedcrypto.dir/aria.c.obj -MF esp-idf\mbedtls\mbedtls\library\CMakeFiles\mbedcrypto.dir\aria.c.obj.d -o esp-idf/mbedtls/mbedtls/library/CMakeFiles/mbedcrypto.dir/aria.c.obj -c C:/Users/mi/Desktop/esp-idf/components/mbedtls/mbedtls/library/aria.c
xtensa-esp32-elf-gcc.exe: error: CreateProcess: No such file or directory
[7/934] Generating ../../partition_table/partition-table.bin
Partition table binary generated. Contents:
*******************************************************************************
# ESP-IDF Partition Table
# Name, Type, SubType, Offset, Size, Flags
nvs,data,nvs,0x9000,24K,
phy_init,data,phy,0xf000,4K,
factory,app,factory,0x10000,1M,
*******************************************************************************
[17/934] Building C object esp-idf/mbedtls/mbedtls/library/CMakeFiles/mbedcrypto.dir/bignum.c.obj
ninja: build stopped: subcommand failed.
ninja failed with exit code 1

idf.py --no-ccache build
C:\Users\mi\Desktop\esp-idf\examples\get-started\blink>idf.py --no-ccache build
Executing action: all (aliases: build)
Running cmake in directory c:\users\mi\desktop\esp-idf\examples\get-started\blink\build
Executing "cmake -G Ninja -DPYTHON_DEPS_CHECKED=1 -DESP_PLATFORM=1 -DCCACHE_ENABLE=0 c:\users\mi\desktop\esp-idf\examples\get-started\blink"...
-- Building ESP-IDF components for target esp32
-- Project sdkconfig file C:/Users/mi/Desktop/esp-idf/examples/get-started/blink/sdkconfig
Loading defaults file C:/Users/mi/Desktop/esp-idf/examples/get-started/blink/sdkconfig.defaults...
-- Could NOT find Perl (missing: PERL_EXECUTABLE)
-- App "blink" version: v4.2.1-dirty
-- Adding linker script C:/Users/mi/Desktop/esp-idf/components/esp_rom/esp32/ld/esp32.rom.newlib-time.ld
-- Adding linker script C:/Users/mi/Desktop/esp-idf/components/esp_rom/esp32/ld/esp32.rom.ld
-- Adding linker script C:/Users/mi/Desktop/esp-idf/components/esp_rom/esp32/ld/esp32.rom.libgcc.ld
-- Adding linker script C:/Users/mi/Desktop/esp-idf/components/esp_rom/esp32/ld/esp32.rom.newlib-data.ld
-- Adding linker script C:/Users/mi/Desktop/esp-idf/components/esp_rom/esp32/ld/esp32.rom.syscalls.ld
-- Adding linker script C:/Users/mi/Desktop/esp-idf/components/esp_rom/esp32/ld/esp32.rom.newlib-funcs.ld
-- Adding linker script C:/Users/mi/Desktop/esp-idf/examples/get-started/blink/build/esp-idf/esp32/esp32_out.ld
-- Adding linker script C:/Users/mi/Desktop/esp-idf/components/esp32/ld/esp32.project.ld.in
-- Adding linker script C:/Users/mi/Desktop/esp-idf/components/esp32/ld/esp32.peripherals.ld
-- Components: app_trace app_update asio bootloader bootloader_support bt cbor coap console cxx driver efuse esp-tls esp32 esp_adc_cal esp_common esp_eth esp_event esp_gdbstub esp_hid esp_http_client esp_http_server esp_https_ota esp_https_server esp_ipc esp_local_ctrl esp_netif esp_ringbuf esp_rom esp_serial_slave_link esp_system esp_timer esp_websocket_client esp_wifi espcoredump esptool_py expat fatfs freemodbus freertos heap idf_test jsmn json libsodium log lwip main mbedtls mdns mqtt newlib nghttp nvs_flash openssl partition_table perfmon protobuf-c protocomm pthread sdmmc soc spi_flash spiffs tcp_transport tcpip_adapter tinyusb ulp unity vfs wear_levelling wifi_provisioning wpa_supplicant xtensa
-- Component paths: C:/Users/mi/Desktop/esp-idf/components/app_trace C:/Users/mi/Desktop/esp-idf/components/app_update C:/Users/mi/Desktop/esp-idf/components/asio C:/Users/mi/Desktop/esp-idf/components/bootloader C:/Users/mi/Desktop/esp-idf/components/bootloader_support C:/Users/mi/Desktop/esp-idf/components/bt C:/Users/mi/Desktop/esp-idf/components/cbor C:/Users/mi/Desktop/esp-idf/components/coap C:/Users/mi/Desktop/esp-idf/components/console C:/Users/mi/Desktop/esp-idf/components/cxx C:/Users/mi/Desktop/esp-idf/components/driver C:/Users/mi/Desktop/esp-idf/components/efuse C:/Users/mi/Desktop/esp-idf/components/esp-tls C:/Users/mi/Desktop/esp-idf/components/esp32 C:/Users/mi/Desktop/esp-idf/components/esp_adc_cal C:/Users/mi/Desktop/esp-idf/components/esp_common C:/Users/mi/Desktop/esp-idf/components/esp_eth C:/Users/mi/Desktop/esp-idf/components/esp_event C:/Users/mi/Desktop/esp-idf/components/esp_gdbstub C:/Users/mi/Desktop/esp-idf/components/esp_hid C:/Users/mi/Desktop/esp-idf/components/esp_http_client C:/Users/mi/Desktop/esp-idf/components/esp_http_server C:/Users/mi/Desktop/esp-idf/components/esp_https_ota C:/Users/mi/Desktop/esp-idf/components/esp_https_server C:/Users/mi/Desktop/esp-idf/components/esp_ipc C:/Users/mi/Desktop/esp-idf/components/esp_local_ctrl C:/Users/mi/Desktop/esp-idf/components/esp_netif C:/Users/mi/Desktop/esp-idf/components/esp_ringbuf C:/Users/mi/Desktop/esp-idf/components/esp_rom C:/Users/mi/Desktop/esp-idf/components/esp_serial_slave_link C:/Users/mi/Desktop/esp-idf/components/esp_system C:/Users/mi/Desktop/esp-idf/components/esp_timer C:/Users/mi/Desktop/esp-idf/components/esp_websocket_client C:/Users/mi/Desktop/esp-idf/components/esp_wifi C:/Users/mi/Desktop/esp-idf/components/espcoredump C:/Users/mi/Desktop/esp-idf/components/esptool_py C:/Users/mi/Desktop/esp-idf/components/expat C:/Users/mi/Desktop/esp-idf/components/fatfs C:/Users/mi/Desktop/esp-idf/components/freemodbus C:/Users/mi/Desktop/esp-idf/components/freertos C:/Users/mi/Desktop/esp-idf/components/heap C:/Users/mi/Desktop/esp-idf/components/idf_test C:/Users/mi/Desktop/esp-idf/components/jsmn C:/Users/mi/Desktop/esp-idf/components/json C:/Users/mi/Desktop/esp-idf/components/libsodium C:/Users/mi/Desktop/esp-idf/components/log C:/Users/mi/Desktop/esp-idf/components/lwip C:/Users/mi/Desktop/esp-idf/examples/get-started/blink/main C:/Users/mi/Desktop/esp-idf/components/mbedtls C:/Users/mi/Desktop/esp-idf/components/mdns C:/Users/mi/Desktop/esp-idf/components/mqtt C:/Users/mi/Desktop/esp-idf/components/newlib C:/Users/mi/Desktop/esp-idf/components/nghttp C:/Users/mi/Desktop/esp-idf/components/nvs_flash C:/Users/mi/Desktop/esp-idf/components/openssl C:/Users/mi/Desktop/esp-idf/components/partition_table C:/Users/mi/Desktop/esp-idf/components/perfmon C:/Users/mi/Desktop/esp-idf/components/protobuf-c C:/Users/mi/Desktop/esp-idf/components/protocomm C:/Users/mi/Desktop/esp-idf/components/pthread C:/Users/mi/Desktop/esp-idf/components/sdmmc C:/Users/mi/Desktop/esp-idf/components/soc C:/Users/mi/Desktop/esp-idf/components/spi_flash C:/Users/mi/Desktop/esp-idf/components/spiffs C:/Users/mi/Desktop/esp-idf/components/tcp_transport C:/Users/mi/Desktop/esp-idf/components/tcpip_adapter C:/Users/mi/Desktop/esp-idf/components/tinyusb C:/Users/mi/Desktop/esp-idf/components/ulp C:/Users/mi/Desktop/esp-idf/components/unity C:/Users/mi/Desktop/esp-idf/components/vfs C:/Users/mi/Desktop/esp-idf/components/wear_levelling C:/Users/mi/Desktop/esp-idf/components/wifi_provisioning C:/Users/mi/Desktop/esp-idf/components/wpa_supplicant C:/Users/mi/Desktop/esp-idf/components/xtensa
-- Configuring done
-- Generating done
-- Build files have been written to: C:/Users/mi/Desktop/esp-idf/examples/get-started/blink/build
Running ninja in directory c:\users\mi\desktop\esp-idf\examples\get-started\blink\build
Executing "ninja all"...
[61/931] Building C object esp-idf/mbedtls/mbedtls/library/CMakeFiles/mbedcrypto.dir/__/__/port/esp32/esp_sha512.c.obj
FAILED: esp-idf/mbedtls/mbedtls/library/CMakeFiles/mbedcrypto.dir/__/__/port/esp32/esp_sha512.c.obj
C:\Users\mi\.espressif\tools\xtensa-esp32-elf\esp-2020r3-8.4.0\xtensa-esp32-elf\bin\xtensa-esp32-elf-gcc.exe -DMBEDTLS_CONFIG_FILE=\"mbedtls/esp_config.h\" -Iconfig -I../../../../components/mbedtls/port/include -I../../../../components/mbedtls/mbedtls/include -I../../../../components/newlib/platform_include -I../../../../components/freertos/include -I../../../../components/freertos/xtensa/include -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/lwip/port/esp32/tcp_isn -I../../../../components/soc/src/esp32/. -I../../../../components/soc/src/esp32/include -I../../../../components/soc/include -I../../../../components/esp_rom/include -I../../../../components/esp_common/include -I../../../../components/esp_system/include -I../../../../components/xtensa/include -I../../../../components/xtensa/esp32/include -I../../../../components/esp32/include -I../../../../components/driver/include -I../../../../components/driver/esp32/include -I../../../../components/esp_ringbuf/include -I../../../../components/efuse/include -I../../../../components/efuse/esp32/include -I../../../../components/espcoredump/include -I../../../../components/esp_timer/include -I../../../../components/esp_ipc/include -I../../../../components/soc/soc/esp32/include -I../../../../components/soc/soc/esp32/../include -I../../../../components/soc/soc/esp32/private_include -I../../../../components/vfs/include -I../../../../components/esp_wifi/include -I../../../../components/esp_wifi/esp32/include -I../../../../components/esp_event/include -I../../../../components/esp_netif/include -I../../../../components/esp_eth/include -I../../../../components/tcpip_adapter/include -I../../../../components/app_trace/include -mlongcalls -Wno-frame-address -Wall -Wextra -W -Wdeclaration-after-statement -Wwrite-strings -Wlogical-op -Wshadow -Wmissing-declarations -Wmissing-prototypes -ffunction-sections -fdata-sections -fstrict-volatile-bitfields -Wall -Werror=all -Wno-error=unused-function -Wno-error=unused-but-set-variable -Wno-error=unused-variable -Wno-error=deprecated-declarations -Wextra -Wno-unused-parameter -Wno-sign-compare -ggdb -Og -std=gnu99 -Wno-old-style-declaration -D_GNU_SOURCE -DIDF_VER=\"v4.2.1-dirty\" -DESP_PLATFORM -MD -MT esp-idf/mbedtls/mbedtls/library/CMakeFiles/mbedcrypto.dir/__/__/port/esp32/esp_sha512.c.obj -MF esp-idf\mbedtls\mbedtls\library\CMakeFiles\mbedcrypto.dir\__\__\port\esp32\esp_sha512.c.obj.d -o esp-idf/mbedtls/mbedtls/library/CMakeFiles/mbedcrypto.dir/__/__/port/esp32/esp_sha512.c.obj -c C:/Users/mi/Desktop/esp-idf/components/mbedtls/port/esp32/esp_sha512.c
xtensa-esp32-elf-gcc.exe: error: CreateProcess: No such file or directory
[74/931] Building C object esp-idf/mbedtls/mbedtls/library/CMakeFiles/mbedcrypto.dir/__/__/port/esp32/bignum.c.obj
ninja: build stopped: subcommand failed.
ninja failed with exit code 1


以及xtensa-esp32-elf-gcc -v下的编译情况
C:\Users\mi\Desktop\esp-idf\examples\get-started\blink>xtensa-esp32-elf-gcc -v
Using built-in specs.
COLLECT_GCC=xtensa-esp32-elf-gcc
COLLECT_LTO_WRAPPER=c:/users/mi/.espressif/tools/xtensa-esp32-elf/esp-2020r3-8.4.0/xtensa-esp32-elf/bin/../libexec/gcc/xtensa-esp32-elf/8.4.0/lto-wrapper.exe
Target: xtensa-esp32-elf
Configured with: /builds/idf/crosstool-NG/.build/HOST-x86_64-w64-mingw32/xtensa-esp32-elf/src/gcc/configure --build=x86_64-build_pc-linux-gnu --host=x86_64-host_w64-mingw32 --target=xtensa-esp32-elf --prefix=/builds/idf/crosstool-NG/builds/xtensa-esp32-elf --with-local-prefix=/builds/idf/crosstool-NG/builds/xtensa-esp32-elf/xtensa-esp32-elf --with-headers=/builds/idf/crosstool-NG/builds/xtensa-esp32-elf/xtensa-esp32-elf/include --with-newlib --enable-threads=no --disable-shared --with-pkgversion='crosstool-NG esp-2020r3' --disable-__cxa_atexit --enable-cxx-flags=-ffunction-sections --disable-libgomp --disable-libmudflap --disable-libmpx --disable-libssp --disable-libquadmath --disable-libquadmath-support --with-gmp=/builds/idf/crosstool-NG/.build/HOST-x86_64-w64-mingw32/xtensa-esp32-elf/buildtools/complibs-host --with-mpfr=/builds/idf/crosstool-NG/.build/HOST-x86_64-w64-mingw32/xtensa-esp32-elf/buildtools/complibs-host --with-mpc=/builds/idf/crosstool-NG/.build/HOST-x86_64-w64-mingw32/xtensa-esp32-elf/buildtools/complibs-host --with-isl=/builds/idf/crosstool-NG/.build/HOST-x86_64-w64-mingw32/xtensa-esp32-elf/buildtools/complibs-host --enable-lto --enable-target-optspace --without-long-double-128 --disable-nls --enable-multiarch --enable-languages=c,c++ --disable-libstdcxx-verbose --enable-threads=posix --enable-gcov-custom-rtio --enable-libstdcxx-time=yes
Thread model: posix
gcc version 8.4.0 (crosstool-NG esp-2020r3)




目前还是不清楚怎么解决,我的开发环境是官网打包的tools 2.7版本以及vscode1.8(未在vscode安装esp—idf插件)的开发环境

调用cmd编译和在vscode环境下编译都会出现这种问题。谢谢!

pengxjwawa
Posts: 4
Joined: Fri May 07, 2021 6:25 am

Re: idf.py build 编译出现ninja failed with exit code 1和ninja: build stopped: subcommand failed.HELP HELP!!!

Postby pengxjwawa » Sat May 08, 2021 12:03 am

以下是编译的历程中的blink情况:
Setting PYTHONNOUSERSITE, was not set
Using Python in C:/Users/mi/.espressif/python_env/idf4.2_py3.8_env/Scripts
Python 3.8.7
Using Git in C:/Users/mi/.espressif/tools/idf-git/2.30.1/cmd
git version 2.30.1.windows.1
Setting IDF_PATH: C:\Users\mi\Desktop\esp-idf

Adding ESP-IDF tools to PATH...
Not using an unsupported version of tool cmake found in PATH: 3.20.2.
C:\Users\mi\.espressif\tools\xtensa-esp32-elf\esp-2020r3-8.4.0\xtensa-esp32-elf\bin
C:\Users\mi\.espressif\tools\xtensa-esp32s2-elf\esp-2020r3-8.4.0\xtensa-esp32s2-elf\bin
C:\Users\mi\.espressif\tools\esp32ulp-elf\2.28.51-esp-20191205\esp32ulp-elf-binutils\bin
C:\Users\mi\.espressif\tools\esp32s2ulp-elf\2.28.51-esp-20191205\esp32s2ulp-elf-binutils\bin
C:\Users\mi\.espressif\tools\cmake\3.16.4\bin
C:\Users\mi\.espressif\tools\openocd-esp32\v0.10.0-esp32-20200709\openocd-esp32\bin
C:\Users\mi\.espressif\tools\ninja\1.10.0\
C:\Users\mi\.espressif\tools\idf-exe\1.0.1\
C:\Users\mi\.espressif\tools\ccache\3.7\
C:\Users\mi\.espressif\tools\dfu-util\0.9\dfu-util-0.9-win64
C:\Users\mi\.espressif\python_env\idf4.2_py3.8_env\Scripts
C:\Users\mi\Desktop\esp-idf\tools

Checking if Python packages are up to date...
Python requirements from C:\Users\mi\Desktop\esp-idf\requirements.txt are satisfied.

Done! You can now compile ESP-IDF projects.
Go to the project directory and run:

idf.py build


C:\Users\mi\Desktop\esp-idf>dir
驱动器 C 中的卷是 Windows
卷的序列号是 60AF-353A

C:\Users\mi\Desktop\esp-idf 的目录

2021/05/07 10:52 <DIR> .
2021/05/07 10:52 <DIR> ..
2021/05/07 10:52 682 .editorconfig
2021/05/07 10:52 9,040 .flake8
2021/05/07 20:18 <DIR> .git
2021/05/07 10:52 <DIR> .github
2021/05/07 10:52 1,259 .gitignore
2021/05/07 10:52 6,044 .gitlab-ci.yml
2021/05/07 10:52 2,728 .gitmodules
2021/05/07 10:52 538 .readthedocs.yml
2021/05/07 10:52 723 add_path.sh
2021/05/07 10:52 4,537 CMakeLists.txt
2021/05/07 10:52 <DIR> components
2021/05/07 10:52 2,451 CONTRIBUTING.rst
2021/05/07 10:52 <DIR> docs
2021/05/07 10:52 <DIR> examples
2021/05/07 10:52 2,059 export.bat
2021/05/07 10:52 2,605 export.fish
2021/05/07 10:52 2,776 export.ps1
2021/05/07 10:52 5,078 export.sh
2021/05/07 10:52 529 install.bat
2021/05/07 10:52 434 install.fish
2021/05/07 10:52 657 install.ps1
2021/05/07 10:52 463 install.sh
2021/05/07 10:52 15,009 Kconfig
2021/05/07 10:52 11,358 LICENSE
2021/05/07 10:52 <DIR> make
2021/05/07 10:52 6,010 README.md
2021/05/07 10:52 6,010 README_CN.md
2021/05/07 10:52 1,402 requirements.txt
2021/05/07 10:52 1,958 sdkconfig.rename
2021/05/07 10:52 2,821 SUPPORT_POLICY.md
2021/05/07 10:52 2,516 SUPPORT_POLICY_CN.md
2021/05/07 10:52 <DIR> tools
25 个文件 89,687 字节
9 个目录 67,198,148,608 可用字节

C:\Users\mi\Desktop\esp-idf>cd examples

C:\Users\mi\Desktop\esp-idf\examples>cd get-started

C:\Users\mi\Desktop\esp-idf\examples\get-started>cd blink

C:\Users\mi\Desktop\esp-idf\examples\get-started\blink>idf.py build
Executing action: all (aliases: build)
Running cmake in directory c:\users\mi\desktop\esp-idf\examples\get-started\blink\build
Executing "cmake -G Ninja -DPYTHON_DEPS_CHECKED=1 -DESP_PLATFORM=1 -DCCACHE_ENABLE=1 c:\users\mi\desktop\esp-idf\examples\get-started\blink"...
-- ccache will be used for faster recompilation
-- Building ESP-IDF components for target esp32
-- Project sdkconfig file C:/Users/mi/Desktop/esp-idf/examples/get-started/blink/sdkconfig
Loading defaults file C:/Users/mi/Desktop/esp-idf/examples/get-started/blink/sdkconfig.defaults...
-- Could NOT find Perl (missing: PERL_EXECUTABLE)
-- App "blink" version: v4.2.1-dirty
-- Adding linker script C:/Users/mi/Desktop/esp-idf/components/esp_rom/esp32/ld/esp32.rom.newlib-time.ld
-- Adding linker script C:/Users/mi/Desktop/esp-idf/components/esp_rom/esp32/ld/esp32.rom.ld
-- Adding linker script C:/Users/mi/Desktop/esp-idf/components/esp_rom/esp32/ld/esp32.rom.libgcc.ld
-- Adding linker script C:/Users/mi/Desktop/esp-idf/components/esp_rom/esp32/ld/esp32.rom.newlib-data.ld
-- Adding linker script C:/Users/mi/Desktop/esp-idf/components/esp_rom/esp32/ld/esp32.rom.syscalls.ld
-- Adding linker script C:/Users/mi/Desktop/esp-idf/components/esp_rom/esp32/ld/esp32.rom.newlib-funcs.ld
-- Adding linker script C:/Users/mi/Desktop/esp-idf/examples/get-started/blink/build/esp-idf/esp32/esp32_out.ld
-- Adding linker script C:/Users/mi/Desktop/esp-idf/components/esp32/ld/esp32.project.ld.in
-- Adding linker script C:/Users/mi/Desktop/esp-idf/components/esp32/ld/esp32.peripherals.ld
-- Components: app_trace app_update asio bootloader bootloader_support bt cbor coap console cxx driver efuse esp-tls esp32 esp_adc_cal esp_common esp_eth esp_event esp_gdbstub esp_hid esp_http_client esp_http_server esp_https_ota esp_https_server esp_ipc esp_local_ctrl esp_netif esp_ringbuf esp_rom esp_serial_slave_link esp_system esp_timer esp_websocket_client esp_wifi espcoredump esptool_py expat fatfs freemodbus freertos heap idf_test jsmn json libsodium log lwip main mbedtls mdns mqtt newlib nghttp nvs_flash openssl partition_table perfmon protobuf-c protocomm pthread sdmmc soc spi_flash spiffs tcp_transport tcpip_adapter tinyusb ulp unity vfs wear_levelling wifi_provisioning wpa_supplicant xtensa
-- Component paths: C:/Users/mi/Desktop/esp-idf/components/app_trace C:/Users/mi/Desktop/esp-idf/components/app_update C:/Users/mi/Desktop/esp-idf/components/asio C:/Users/mi/Desktop/esp-idf/components/bootloader C:/Users/mi/Desktop/esp-idf/components/bootloader_support C:/Users/mi/Desktop/esp-idf/components/bt C:/Users/mi/Desktop/esp-idf/components/cbor C:/Users/mi/Desktop/esp-idf/components/coap C:/Users/mi/Desktop/esp-idf/components/console C:/Users/mi/Desktop/esp-idf/components/cxx C:/Users/mi/Desktop/esp-idf/components/driver C:/Users/mi/Desktop/esp-idf/components/efuse C:/Users/mi/Desktop/esp-idf/components/esp-tls C:/Users/mi/Desktop/esp-idf/components/esp32 C:/Users/mi/Desktop/esp-idf/components/esp_adc_cal C:/Users/mi/Desktop/esp-idf/components/esp_common C:/Users/mi/Desktop/esp-idf/components/esp_eth C:/Users/mi/Desktop/esp-idf/components/esp_event C:/Users/mi/Desktop/esp-idf/components/esp_gdbstub C:/Users/mi/Desktop/esp-idf/components/esp_hid C:/Users/mi/Desktop/esp-idf/components/esp_http_client C:/Users/mi/Desktop/esp-idf/components/esp_http_server C:/Users/mi/Desktop/esp-idf/components/esp_https_ota C:/Users/mi/Desktop/esp-idf/components/esp_https_server C:/Users/mi/Desktop/esp-idf/components/esp_ipc C:/Users/mi/Desktop/esp-idf/components/esp_local_ctrl C:/Users/mi/Desktop/esp-idf/components/esp_netif C:/Users/mi/Desktop/esp-idf/components/esp_ringbuf C:/Users/mi/Desktop/esp-idf/components/esp_rom C:/Users/mi/Desktop/esp-idf/components/esp_serial_slave_link C:/Users/mi/Desktop/esp-idf/components/esp_system C:/Users/mi/Desktop/esp-idf/components/esp_timer C:/Users/mi/Desktop/esp-idf/components/esp_websocket_client C:/Users/mi/Desktop/esp-idf/components/esp_wifi C:/Users/mi/Desktop/esp-idf/components/espcoredump C:/Users/mi/Desktop/esp-idf/components/esptool_py C:/Users/mi/Desktop/esp-idf/components/expat C:/Users/mi/Desktop/esp-idf/components/fatfs C:/Users/mi/Desktop/esp-idf/components/freemodbus C:/Users/mi/Desktop/esp-idf/components/freertos C:/Users/mi/Desktop/esp-idf/components/heap C:/Users/mi/Desktop/esp-idf/components/idf_test C:/Users/mi/Desktop/esp-idf/components/jsmn C:/Users/mi/Desktop/esp-idf/components/json C:/Users/mi/Desktop/esp-idf/components/libsodium C:/Users/mi/Desktop/esp-idf/components/log C:/Users/mi/Desktop/esp-idf/components/lwip C:/Users/mi/Desktop/esp-idf/examples/get-started/blink/main C:/Users/mi/Desktop/esp-idf/components/mbedtls C:/Users/mi/Desktop/esp-idf/components/mdns C:/Users/mi/Desktop/esp-idf/components/mqtt C:/Users/mi/Desktop/esp-idf/components/newlib C:/Users/mi/Desktop/esp-idf/components/nghttp C:/Users/mi/Desktop/esp-idf/components/nvs_flash C:/Users/mi/Desktop/esp-idf/components/openssl C:/Users/mi/Desktop/esp-idf/components/partition_table C:/Users/mi/Desktop/esp-idf/components/perfmon C:/Users/mi/Desktop/esp-idf/components/protobuf-c C:/Users/mi/Desktop/esp-idf/components/protocomm C:/Users/mi/Desktop/esp-idf/components/pthread C:/Users/mi/Desktop/esp-idf/components/sdmmc C:/Users/mi/Desktop/esp-idf/components/soc C:/Users/mi/Desktop/esp-idf/components/spi_flash C:/Users/mi/Desktop/esp-idf/components/spiffs C:/Users/mi/Desktop/esp-idf/components/tcp_transport C:/Users/mi/Desktop/esp-idf/components/tcpip_adapter C:/Users/mi/Desktop/esp-idf/components/tinyusb C:/Users/mi/Desktop/esp-idf/components/ulp C:/Users/mi/Desktop/esp-idf/components/unity C:/Users/mi/Desktop/esp-idf/components/vfs C:/Users/mi/Desktop/esp-idf/components/wear_levelling C:/Users/mi/Desktop/esp-idf/components/wifi_provisioning C:/Users/mi/Desktop/esp-idf/components/wpa_supplicant C:/Users/mi/Desktop/esp-idf/components/xtensa
-- Configuring done
-- Generating done
-- Build files have been written to: C:/Users/mi/Desktop/esp-idf/examples/get-started/blink/build
Running ninja in directory c:\users\mi\desktop\esp-idf\examples\get-started\blink\build
Executing "ninja all"...
[132/928] Performing configure step for 'bootloader'
-- Found Git: C:/Users/mi/.espressif/tools/idf-git/2.30.1/cmd/git.exe (found version "2.30.1.windows.1")
-- The C compiler identification is GNU 8.4.0
-- The CXX compiler identification is GNU 8.4.0
-- The ASM compiler identification is GNU
-- Found assembler: C:/Users/mi/.espressif/tools/xtensa-esp32-elf/esp-2020r3-8.4.0/xtensa-esp32-elf/bin/xtensa-esp32-elf-gcc.exe
-- Check for working C compiler: C:/Users/mi/.espressif/tools/xtensa-esp32-elf/esp-2020r3-8.4.0/xtensa-esp32-elf/bin/xtensa-esp32-elf-gcc.exe
-- Check for working C compiler: C:/Users/mi/.espressif/tools/xtensa-esp32-elf/esp-2020r3-8.4.0/xtensa-esp32-elf/bin/xtensa-esp32-elf-gcc.exe -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: C:/Users/mi/.espressif/tools/xtensa-esp32-elf/esp-2020r3-8.4.0/xtensa-esp32-elf/bin/xtensa-esp32-elf-g++.exe
-- Check for working CXX compiler: C:/Users/mi/.espressif/tools/xtensa-esp32-elf/esp-2020r3-8.4.0/xtensa-esp32-elf/bin/xtensa-esp32-elf-g++.exe -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Building ESP-IDF components for target esp32
-- Project sdkconfig file C:/Users/mi/Desktop/esp-idf/examples/get-started/blink/sdkconfig
-- Adding linker script C:/Users/mi/Desktop/esp-idf/components/esp32/ld/esp32.peripherals.ld
-- Adding linker script C:/Users/mi/Desktop/esp-idf/components/esp_rom/esp32/ld/esp32.rom.ld
-- Adding linker script C:/Users/mi/Desktop/esp-idf/components/esp_rom/esp32/ld/esp32.rom.newlib-funcs.ld
-- Adding linker script C:/Users/mi/Desktop/esp-idf/components/esp_rom/esp32/ld/esp32.rom.libgcc.ld
-- Adding linker script C:/Users/mi/Desktop/esp-idf/components/bootloader/subproject/main/ld/esp32/bootloader.ld
-- Adding linker script C:/Users/mi/Desktop/esp-idf/components/bootloader/subproject/main/ld/esp32/bootloader.rom.ld
-- Components: bootloader bootloader_support efuse esp32 esp_common esp_rom esptool_py log main micro-ecc partition_table soc spi_flash xtensa
-- Component paths: C:/Users/mi/Desktop/esp-idf/components/bootloader C:/Users/mi/Desktop/esp-idf/components/bootloader_support C:/Users/mi/Desktop/esp-idf/components/efuse C:/Users/mi/Desktop/esp-idf/components/esp32 C:/Users/mi/Desktop/esp-idf/components/esp_common C:/Users/mi/Desktop/esp-idf/components/esp_rom C:/Users/mi/Desktop/esp-idf/components/esptool_py C:/Users/mi/Desktop/esp-idf/components/log C:/Users/mi/Desktop/esp-idf/components/bootloader/subproject/main C:/Users/mi/Desktop/esp-idf/components/bootloader/subproject/components/micro-ecc C:/Users/mi/Desktop/esp-idf/components/partition_table C:/Users/mi/Desktop/esp-idf/components/soc C:/Users/mi/Desktop/esp-idf/components/spi_flash C:/Users/mi/Desktop/esp-idf/components/xtensa
-- Configuring done
-- Generating done
-- Build files have been written to: C:/Users/mi/Desktop/esp-idf/examples/get-started/blink/build/bootloader
[134/928] Performing build step for 'bootloader'
FAILED: bootloader-prefix/src/bootloader-stamp/bootloader-build bootloader/bootloader.elf bootloader/bootloader.bin bootloader/bootloader.map
cmd.exe /C "cd /D C:\Users\mi\Desktop\esp-idf\examples\get-started\blink\build\bootloader && C:\Users\mi\.espressif\tools\cmake\3.16.4\bin\cmake.exe --build ."
[1/102] Generating project_elf_src.c
[2/102] Building C object esp-idf/soc/CMakeFiles/__idf_soc.dir/src/hal/rtc_io_hal.c.obj
FAILED: esp-idf/soc/CMakeFiles/__idf_soc.dir/src/hal/rtc_io_hal.c.obj
C:\Users\mi\.espressif\tools\xtensa-esp32-elf\esp-2020r3-8.4.0\xtensa-esp32-elf\bin\xtensa-esp32-elf-gcc.exe -Iconfig -I../../../../../components/soc/src/esp32/. -I../../../../../components/soc/src/esp32/include -I../../../../../components/soc/src/esp32/../hal -I../../../../../components/soc/include -I../../../../../components/log/include -I../../../../../components/esp_rom/include -I../../../../../components/esp_common/include -I../../../../../components/xtensa/include -I../../../../../components/xtensa/esp32/include -I../../../../../components/esp32/include -I../../../../../components/soc/soc/esp32/include -I../../../../../components/soc/soc/esp32/../include -I../../../../../components/soc/soc/esp32/private_include -mlongcalls -Wno-frame-address -ffunction-sections -fdata-sections -fstrict-volatile-bitfields -Wall -Werror=all -Wno-error=unused-function -Wno-error=unused-but-set-variable -Wno-error=unused-variable -Wno-error=deprecated-declarations -Wextra -Wno-unused-parameter -Wno-sign-compare -ggdb -Os -freorder-blocks -fno-stack-protector -std=gnu99 -Wno-old-style-declaration -D_GNU_SOURCE -DIDF_VER=\"HEAD-HASH-NOTFOUND\" -DESP_PLATFORM -DBOOTLOADER_BUILD=1 -MD -MT esp-idf/soc/CMakeFiles/__idf_soc.dir/src/hal/rtc_io_hal.c.obj -MF esp-idf\soc\CMakeFiles\__idf_soc.dir\src\hal\rtc_io_hal.c.obj.d -o esp-idf/soc/CMakeFiles/__idf_soc.dir/src/hal/rtc_io_hal.c.obj -c C:/Users/mi/Desktop/esp-idf/components/soc/src/hal/rtc_io_hal.c
xtensa-esp32-elf-gcc.exe: error: CreateProcess: No such file or directory
[3/102] Building C object esp-idf/soc/CMakeFiles/__idf_soc.dir/src/hal/rmt_hal.c.obj
[4/102] Building C object esp-idf/soc/CMakeFiles/__idf_soc.dir/src/memory_layout_utils.c.obj
[5/102] Building C object esp-idf/soc/CMakeFiles/__idf_soc.dir/src/lldesc.c.obj
[6/102] Building C object esp-idf/soc/CMakeFiles/__idf_soc.dir/src/hal/adc_hal.c.obj
[7/102] Building C object esp-idf/soc/CMakeFiles/__idf_soc.dir/src/cpu_util.c.obj
[8/102] Building C object esp-idf/soc/CMakeFiles/__idf_soc.dir/src/soc_include_legacy_warn.c.obj
[9/102] Building C object esp-idf/soc/CMakeFiles/__idf_soc.dir/src/hal/cpu_hal.c.obj
[10/102] Building C object esp-idf/soc/CMakeFiles/__idf_soc.dir/src/hal/spi_slave_hal.c.obj
[11/102] Building C object esp-idf/soc/CMakeFiles/__idf_soc.dir/src/hal/i2s_hal.c.obj
[12/102] Building C object esp-idf/soc/CMakeFiles/__idf_soc.dir/src/hal/spi_slave_hal_iram.c.obj
[13/102] Building C object esp-idf/soc/CMakeFiles/__idf_soc.dir/src/hal/spi_hal_iram.c.obj
[14/102] Building C object esp-idf/soc/CMakeFiles/__idf_soc.dir/src/hal/spi_hal.c.obj
[15/102] Building C object esp-idf/soc/CMakeFiles/__idf_soc.dir/src/hal/dac_hal.c.obj
ninja: build stopped: subcommand failed.
[147/928] Building CXX object esp-idf/nvs_flash/CMakeFiles/__idf_nvs_flash.dir/src/nvs_handle_simple.cpp.obj
ninja: build stopped: subcommand failed.
ninja failed with exit code 1

idf.py --no-ccache build
C:\Users\mi\Desktop\esp-idf\examples\get-started\blink>idf.py --no-ccache build
Executing action: all (aliases: build)
Running cmake in directory c:\users\mi\desktop\esp-idf\examples\get-started\blink\build
Executing "cmake -G Ninja -DPYTHON_DEPS_CHECKED=1 -DESP_PLATFORM=1 -DCCACHE_ENABLE=0 c:\users\mi\desktop\esp-idf\examples\get-started\blink"...
-- Building ESP-IDF components for target esp32
-- Project sdkconfig file C:/Users/mi/Desktop/esp-idf/examples/get-started/blink/sdkconfig
Loading defaults file C:/Users/mi/Desktop/esp-idf/examples/get-started/blink/sdkconfig.defaults...
-- Could NOT find Perl (missing: PERL_EXECUTABLE)
-- App "blink" version: v4.2.1-dirty
-- Adding linker script C:/Users/mi/Desktop/esp-idf/components/esp_rom/esp32/ld/esp32.rom.newlib-time.ld
-- Adding linker script C:/Users/mi/Desktop/esp-idf/components/esp_rom/esp32/ld/esp32.rom.ld
-- Adding linker script C:/Users/mi/Desktop/esp-idf/components/esp_rom/esp32/ld/esp32.rom.libgcc.ld
-- Adding linker script C:/Users/mi/Desktop/esp-idf/components/esp_rom/esp32/ld/esp32.rom.newlib-data.ld
-- Adding linker script C:/Users/mi/Desktop/esp-idf/components/esp_rom/esp32/ld/esp32.rom.syscalls.ld
-- Adding linker script C:/Users/mi/Desktop/esp-idf/components/esp_rom/esp32/ld/esp32.rom.newlib-funcs.ld
-- Adding linker script C:/Users/mi/Desktop/esp-idf/examples/get-started/blink/build/esp-idf/esp32/esp32_out.ld
-- Adding linker script C:/Users/mi/Desktop/esp-idf/components/esp32/ld/esp32.project.ld.in
-- Adding linker script C:/Users/mi/Desktop/esp-idf/components/esp32/ld/esp32.peripherals.ld
-- Components: app_trace app_update asio bootloader bootloader_support bt cbor coap console cxx driver efuse esp-tls esp32 esp_adc_cal esp_common esp_eth esp_event esp_gdbstub esp_hid esp_http_client esp_http_server esp_https_ota esp_https_server esp_ipc esp_local_ctrl esp_netif esp_ringbuf esp_rom esp_serial_slave_link esp_system esp_timer esp_websocket_client esp_wifi espcoredump esptool_py expat fatfs freemodbus freertos heap idf_test jsmn json libsodium log lwip main mbedtls mdns mqtt newlib nghttp nvs_flash openssl partition_table perfmon protobuf-c protocomm pthread sdmmc soc spi_flash spiffs tcp_transport tcpip_adapter tinyusb ulp unity vfs wear_levelling wifi_provisioning wpa_supplicant xtensa
-- Component paths: C:/Users/mi/Desktop/esp-idf/components/app_trace C:/Users/mi/Desktop/esp-idf/components/app_update C:/Users/mi/Desktop/esp-idf/components/asio C:/Users/mi/Desktop/esp-idf/components/bootloader C:/Users/mi/Desktop/esp-idf/components/bootloader_support C:/Users/mi/Desktop/esp-idf/components/bt C:/Users/mi/Desktop/esp-idf/components/cbor C:/Users/mi/Desktop/esp-idf/components/coap C:/Users/mi/Desktop/esp-idf/components/console C:/Users/mi/Desktop/esp-idf/components/cxx C:/Users/mi/Desktop/esp-idf/components/driver C:/Users/mi/Desktop/esp-idf/components/efuse C:/Users/mi/Desktop/esp-idf/components/esp-tls C:/Users/mi/Desktop/esp-idf/components/esp32 C:/Users/mi/Desktop/esp-idf/components/esp_adc_cal C:/Users/mi/Desktop/esp-idf/components/esp_common C:/Users/mi/Desktop/esp-idf/components/esp_eth C:/Users/mi/Desktop/esp-idf/components/esp_event C:/Users/mi/Desktop/esp-idf/components/esp_gdbstub C:/Users/mi/Desktop/esp-idf/components/esp_hid C:/Users/mi/Desktop/esp-idf/components/esp_http_client C:/Users/mi/Desktop/esp-idf/components/esp_http_server C:/Users/mi/Desktop/esp-idf/components/esp_https_ota C:/Users/mi/Desktop/esp-idf/components/esp_https_server C:/Users/mi/Desktop/esp-idf/components/esp_ipc C:/Users/mi/Desktop/esp-idf/components/esp_local_ctrl C:/Users/mi/Desktop/esp-idf/components/esp_netif C:/Users/mi/Desktop/esp-idf/components/esp_ringbuf C:/Users/mi/Desktop/esp-idf/components/esp_rom C:/Users/mi/Desktop/esp-idf/components/esp_serial_slave_link C:/Users/mi/Desktop/esp-idf/components/esp_system C:/Users/mi/Desktop/esp-idf/components/esp_timer C:/Users/mi/Desktop/esp-idf/components/esp_websocket_client C:/Users/mi/Desktop/esp-idf/components/esp_wifi C:/Users/mi/Desktop/esp-idf/components/espcoredump C:/Users/mi/Desktop/esp-idf/components/esptool_py C:/Users/mi/Desktop/esp-idf/components/expat C:/Users/mi/Desktop/esp-idf/components/fatfs C:/Users/mi/Desktop/esp-idf/components/freemodbus C:/Users/mi/Desktop/esp-idf/components/freertos C:/Users/mi/Desktop/esp-idf/components/heap C:/Users/mi/Desktop/esp-idf/components/idf_test C:/Users/mi/Desktop/esp-idf/components/jsmn C:/Users/mi/Desktop/esp-idf/components/json C:/Users/mi/Desktop/esp-idf/components/libsodium C:/Users/mi/Desktop/esp-idf/components/log C:/Users/mi/Desktop/esp-idf/components/lwip C:/Users/mi/Desktop/esp-idf/examples/get-started/blink/main C:/Users/mi/Desktop/esp-idf/components/mbedtls C:/Users/mi/Desktop/esp-idf/components/mdns C:/Users/mi/Desktop/esp-idf/components/mqtt C:/Users/mi/Desktop/esp-idf/components/newlib C:/Users/mi/Desktop/esp-idf/components/nghttp C:/Users/mi/Desktop/esp-idf/components/nvs_flash C:/Users/mi/Desktop/esp-idf/components/openssl C:/Users/mi/Desktop/esp-idf/components/partition_table C:/Users/mi/Desktop/esp-idf/components/perfmon C:/Users/mi/Desktop/esp-idf/components/protobuf-c C:/Users/mi/Desktop/esp-idf/components/protocomm C:/Users/mi/Desktop/esp-idf/components/pthread C:/Users/mi/Desktop/esp-idf/components/sdmmc C:/Users/mi/Desktop/esp-idf/components/soc C:/Users/mi/Desktop/esp-idf/components/spi_flash C:/Users/mi/Desktop/esp-idf/components/spiffs C:/Users/mi/Desktop/esp-idf/components/tcp_transport C:/Users/mi/Desktop/esp-idf/components/tcpip_adapter C:/Users/mi/Desktop/esp-idf/components/tinyusb C:/Users/mi/Desktop/esp-idf/components/ulp C:/Users/mi/Desktop/esp-idf/components/unity C:/Users/mi/Desktop/esp-idf/components/vfs C:/Users/mi/Desktop/esp-idf/components/wear_levelling C:/Users/mi/Desktop/esp-idf/components/wifi_provisioning C:/Users/mi/Desktop/esp-idf/components/wpa_supplicant C:/Users/mi/Desktop/esp-idf/components/xtensa
-- Configuring done
-- Generating done
-- Build files have been written to: C:/Users/mi/Desktop/esp-idf/examples/get-started/blink/build
Running ninja in directory c:\users\mi\desktop\esp-idf\examples\get-started\blink\build
Executing "ninja all"...
[60/924] Performing build step for 'bootloader'
FAILED: bootloader-prefix/src/bootloader-stamp/bootloader-build bootloader/bootloader.elf bootloader/bootloader.bin bootloader/bootloader.map
cmd.exe /C "cd /D C:\Users\mi\Desktop\esp-idf\examples\get-started\blink\build\bootloader && C:\Users\mi\.espressif\tools\cmake\3.16.4\bin\cmake.exe --build ."
[1/88] Building C object CMakeFiles/bootloader.elf.dir/project_elf_src.c.obj
[2/88] Building C object esp-idf/soc/CMakeFiles/__idf_soc.dir/src/hal/pcnt_hal.c.obj
[3/88] Building C object esp-idf/soc/CMakeFiles/__idf_soc.dir/src/hal/uart_hal_iram.c.obj
[4/88] Building C object esp-idf/soc/CMakeFiles/__idf_soc.dir/src/hal/touch_sensor_hal.c.obj
[5/88] Building C object esp-idf/soc/CMakeFiles/__idf_soc.dir/src/hal/rtc_io_hal.c.obj
[6/88] Building C object esp-idf/soc/CMakeFiles/__idf_soc.dir/src/hal/ledc_hal_iram.c.obj
[7/88] Building C object esp-idf/soc/CMakeFiles/__idf_soc.dir/src/hal/sigmadelta_hal.c.obj
[8/88] Building C object esp-idf/soc/CMakeFiles/__idf_soc.dir/src/hal/i2c_hal_iram.c.obj
[9/88] Building C object esp-idf/soc/CMakeFiles/__idf_soc.dir/src/hal/gpio_hal.c.obj
[10/88] Building C object esp-idf/soc/CMakeFiles/__idf_soc.dir/src/hal/ledc_hal.c.obj
[11/88] Building C object esp-idf/soc/CMakeFiles/__idf_soc.dir/src/compare_set.c.obj
[12/88] Building C object esp-idf/soc/CMakeFiles/__idf_soc.dir/src/hal/i2c_hal.c.obj
[13/88] Building C object esp-idf/soc/CMakeFiles/__idf_soc.dir/src/hal/timer_hal.c.obj
[14/88] Building C object esp-idf/soc/CMakeFiles/__idf_soc.dir/src/hal/uart_hal.c.obj
[15/88] Building C object esp-idf/soc/CMakeFiles/__idf_soc.dir/src/hal/wdt_hal_iram.c.obj
[16/88] Building C object esp-idf/soc/CMakeFiles/__idf_soc.dir/src/hal/mcpwm_hal.c.obj
[17/88] Building C object esp-idf/soc/CMakeFiles/__idf_soc.dir/src/hal/twai_hal_iram.c.obj
[18/88] Building C object esp-idf/soc/CMakeFiles/__idf_soc.dir/src/hal/twai_hal.c.obj
[19/88] Building C object esp-idf/soc/CMakeFiles/__idf_soc.dir/src/esp32/adc_hal.c.obj
[20/88] Building C object esp-idf/soc/CMakeFiles/__idf_soc.dir/src/hal/mpu_hal.c.obj
[21/88] Building C object esp-idf/soc/CMakeFiles/__idf_soc.dir/src/esp32/brownout_hal.c.obj
[22/88] Building C object esp-idf/soc/CMakeFiles/__idf_soc.dir/src/hal/soc_hal.c.obj
[23/88] Building C object esp-idf/soc/CMakeFiles/__idf_soc.dir/src/esp32/rtc_sleep.c.obj
[24/88] Building C object esp-idf/soc/CMakeFiles/__idf_soc.dir/src/hal/spi_flash_hal.c.obj
[25/88] Building C object esp-idf/soc/CMakeFiles/__idf_soc.dir/src/hal/spi_flash_hal_iram.c.obj
[26/88] Building C object esp-idf/soc/CMakeFiles/__idf_soc.dir/src/hal/sdio_slave_hal.c.obj
[27/88] Building C object esp-idf/soc/CMakeFiles/__idf_soc.dir/src/esp32/rtc_clk_init.c.obj
[28/88] Building C object esp-idf/soc/CMakeFiles/__idf_soc.dir/src/esp32/rtc_clk.c.obj
[29/88] Building C object esp-idf/soc/CMakeFiles/__idf_soc.dir/src/esp32/rtc_wdt.c.obj
[30/88] Building C object esp-idf/soc/CMakeFiles/__idf_soc.dir/src/esp32/rtc_pm.c.obj
[31/88] Building C object esp-idf/soc/CMakeFiles/__idf_soc.dir/src/esp32/rtc_init.c.obj
[32/88] Building C object esp-idf/soc/CMakeFiles/__idf_soc.dir/src/esp32/rtc_time.c.obj
[33/88] Building C object esp-idf/soc/CMakeFiles/__idf_soc.dir/src/esp32/touch_sensor_hal.c.obj
[34/88] Building C object esp-idf/soc/CMakeFiles/__idf_soc.dir/src/esp32/soc_memory_layout.c.obj
[35/88] Building C object esp-idf/soc/soc/esp32/CMakeFiles/soc_esp32.dir/rtc_io_periph.c.obj
[36/88] Building C object esp-idf/soc/soc/esp32/CMakeFiles/soc_esp32.dir/dac_periph.c.obj
[37/88] Building C object esp-idf/soc/soc/esp32/CMakeFiles/soc_esp32.dir/gpio_periph.c.obj
[38/88] Building C object esp-idf/soc/soc/esp32/CMakeFiles/soc_esp32.dir/rtc_periph.c.obj
[39/88] Building C object esp-idf/soc/soc/esp32/CMakeFiles/soc_esp32.dir/adc_periph.c.obj
[40/88] Building C object esp-idf/soc/soc/esp32/CMakeFiles/soc_esp32.dir/ledc_periph.c.obj
[41/88] Building C object esp-idf/soc/soc/esp32/CMakeFiles/soc_esp32.dir/i2s_periph.c.obj
FAILED: esp-idf/soc/soc/esp32/CMakeFiles/soc_esp32.dir/i2s_periph.c.obj
C:\Users\mi\.espressif\tools\xtensa-esp32-elf\esp-2020r3-8.4.0\xtensa-esp32-elf\bin\xtensa-esp32-elf-gcc.exe -Iconfig -I../../../../../components/soc/soc/esp32/include -I../../../../../components/soc/soc/esp32/../include -I../../../../../components/soc/soc/esp32/private_include -I../../../../../components/log/include -I../../../../../components/esp_rom/include -I../../../../../components/esp_common/include -I../../../../../components/xtensa/include -I../../../../../components/xtensa/esp32/include -I../../../../../components/esp32/include -mlongcalls -Wno-frame-address -ffunction-sections -fdata-sections -fstrict-volatile-bitfields -Wall -Werror=all -Wno-error=unused-function -Wno-error=unused-but-set-variable -Wno-error=unused-variable -Wno-error=deprecated-declarations -Wextra -Wno-unused-parameter -Wno-sign-compare -ggdb -Os -freorder-blocks -fno-stack-protector -std=gnu99 -Wno-old-style-declaration -D_GNU_SOURCE -DIDF_VER=\"HEAD-HASH-NOTFOUND\" -DESP_PLATFORM -DBOOTLOADER_BUILD=1 -MD -MT esp-idf/soc/soc/esp32/CMakeFiles/soc_esp32.dir/i2s_periph.c.obj -MF esp-idf\soc\soc\esp32\CMakeFiles\soc_esp32.dir\i2s_periph.c.obj.d -o esp-idf/soc/soc/esp32/CMakeFiles/soc_esp32.dir/i2s_periph.c.obj -c C:/Users/mi/Desktop/esp-idf/components/soc/soc/esp32/i2s_periph.c
xtensa-esp32-elf-gcc.exe: error: CreateProcess: No such file or directory
[42/88] Building C object esp-idf/soc/soc/esp32/CMakeFiles/soc_esp32.dir/spi_periph.c.obj
[43/88] Building C object esp-idf/soc/soc/esp32/CMakeFiles/soc_esp32.dir/interrupts.c.obj
[44/88] Building C object esp-idf/log/CMakeFiles/__idf_log.dir/log_noos.c.obj
[45/88] Building C object esp-idf/soc/soc/esp32/CMakeFiles/soc_esp32.dir/sdio_slave_periph.c.obj
[46/88] Building C object esp-idf/soc/soc/esp32/CMakeFiles/soc_esp32.dir/sdmmc_periph.c.obj
[47/88] Building C object esp-idf/soc/soc/esp32/CMakeFiles/soc_esp32.dir/i2c_periph.c.obj
[48/88] Building C object esp-idf/log/CMakeFiles/__idf_log.dir/log_buffers.c.obj
[49/88] Building C object esp-idf/spi_flash/CMakeFiles/__idf_spi_flash.dir/esp32/spi_flash_rom_patch.c.obj
[50/88] Building C object esp-idf/soc/soc/esp32/CMakeFiles/soc_esp32.dir/touch_sensor_periph.c.obj
[51/88] Building C object esp-idf/soc/soc/esp32/CMakeFiles/soc_esp32.dir/uart_periph.c.obj
[52/88] Building C object esp-idf/log/CMakeFiles/__idf_log.dir/log.c.obj
[53/88] Building C object esp-idf/bootloader_support/CMakeFiles/__idf_bootloader_support.dir/src/bootloader_clock.c.obj
[54/88] Building C object esp-idf/micro-ecc/CMakeFiles/__idf_micro-ecc.dir/uECC_verify_antifault.c.obj
ninja: build stopped: subcommand failed.
[73/924] Building C object esp-idf/mbedtls/mbedtls/library/CMakeFiles/mbedx509.dir/x509.c.obj
ninja: build stopped: subcommand failed.
ninja failed with exit code 1
xtensa-esp32-elf-gcc -v
C:\Users\mi\Desktop\esp-idf\examples\get-started\blink>xtensa-esp32-elf-gcc -v
Using built-in specs.
COLLECT_GCC=xtensa-esp32-elf-gcc
COLLECT_LTO_WRAPPER=c:/users/mi/.espressif/tools/xtensa-esp32-elf/esp-2020r3-8.4.0/xtensa-esp32-elf/bin/../libexec/gcc/xtensa-esp32-elf/8.4.0/lto-wrapper.exe
Target: xtensa-esp32-elf
Configured with: /builds/idf/crosstool-NG/.build/HOST-x86_64-w64-mingw32/xtensa-esp32-elf/src/gcc/configure --build=x86_64-build_pc-linux-gnu --host=x86_64-host_w64-mingw32 --target=xtensa-esp32-elf --prefix=/builds/idf/crosstool-NG/builds/xtensa-esp32-elf --with-local-prefix=/builds/idf/crosstool-NG/builds/xtensa-esp32-elf/xtensa-esp32-elf --with-headers=/builds/idf/crosstool-NG/builds/xtensa-esp32-elf/xtensa-esp32-elf/include --with-newlib --enable-threads=no --disable-shared --with-pkgversion='crosstool-NG esp-2020r3' --disable-__cxa_atexit --enable-cxx-flags=-ffunction-sections --disable-libgomp --disable-libmudflap --disable-libmpx --disable-libssp --disable-libquadmath --disable-libquadmath-support --with-gmp=/builds/idf/crosstool-NG/.build/HOST-x86_64-w64-mingw32/xtensa-esp32-elf/buildtools/complibs-host --with-mpfr=/builds/idf/crosstool-NG/.build/HOST-x86_64-w64-mingw32/xtensa-esp32-elf/buildtools/complibs-host --with-mpc=/builds/idf/crosstool-NG/.build/HOST-x86_64-w64-mingw32/xtensa-esp32-elf/buildtools/complibs-host --with-isl=/builds/idf/crosstool-NG/.build/HOST-x86_64-w64-mingw32/xtensa-esp32-elf/buildtools/complibs-host --enable-lto --enable-target-optspace --without-long-double-128 --disable-nls --enable-multiarch --enable-languages=c,c++ --disable-libstdcxx-verbose --enable-threads=posix --enable-gcov-custom-rtio --enable-libstdcxx-time=yes
Thread model: posix
gcc version 8.4.0 (crosstool-NG esp-2020r3)

您好,以上是按您的建议编译了一遍,关闭ccache都会指向错误的code 1,xtensa-esp32-elf-gcc -v下编译代码看似乎并没有出现什么异常,

我安装的开发环境为官方提供的2.7版本工具包配合vscode下进行开发,目前依然没办法解决该问题,谢谢~~~

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

Re: idf.py build 编译出现ninja failed with exit code 1和ninja: build stopped: subcommand failed.HELP HELP!!!

Postby ESP_Gargamel » Sat May 08, 2021 6:15 am

我尝试了使用 Win10 + 2.7 的 idf-tools-setup,但没有遇到类似问题。
请确认下你系统的 长路径 是否被使能?可以在 idf-tools-setup 的 pre-installation system check 页面有提示。
或者你看下这个链接:https://knowledge.autodesk.com/zh-hans/ ... cters.html 的操作。
另外,失败之后,再次执行 idf.py build,还会在同一个文件的编译时出错吗?

pengxjwawa
Posts: 4
Joined: Fri May 07, 2021 6:25 am

Re: idf.py build 编译出现ninja failed with exit code 1和ninja: build stopped: subcommand failed.HELP HELP!!!

Postby pengxjwawa » Sun May 09, 2021 6:50 am

非常感谢,目前已经通过重新安装解决了以上问题,谢谢~

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

Re: idf.py build 编译出现ninja failed with exit code 1和ninja: build stopped: subcommand failed.HELP HELP!!!

Postby ESP_Gargamel » Mon May 10, 2021 2:06 am

感谢反馈,重装也是一种解决问题的方式 8-)

Who is online

Users browsing this forum: No registered users and 168 guests