ninja: build stopped: subcommand failed.

achechet
Posts: 5
Joined: Sun Apr 03, 2022 1:12 pm

ninja: build stopped: subcommand failed.

Postby achechet » Sun Apr 03, 2022 1:37 pm

This is clean new installation espressif-ide-setup-espressif-ide-2.4.2-with-esp-idf-4.4 on windows 10
All the default paths for install and workspace

This is first build for hello_world example project (no prev cache)
Why it get errors?
  1. FAILED: CMakeFiles/hello_world.elf.dir/project_elf_src_esp32.c.obj
  2. ccache C:\Espressif\tools\xtensa-esp32-elf\esp-2021r2-patch2-8.4.0\xtensa-esp32-elf\bin\xtensa-esp32-elf-gcc.exe -DHAVE_CONFIG_H -DMBEDTLS_CONFIG_FILE=\"mbedtls/esp_config.h\" -DUNITY_INCLUDE_CONFIG_H -DWITH_POSIX -IC:/Espressif/frameworks/esp-idf-v4.4/components/esp_ringbuf/include -Iconfig -IC:/Espressif/frameworks/esp-idf-v4.4/components/newlib/platform_include -IC:/Espressif/frameworks/esp-idf-v4.4/components/freertos/include -IC:/Espressif/frameworks/esp-idf-v4.4/components/freertos/include/esp_additions/freertos -IC:/Espressif/frameworks/esp-idf-v4.4/components/freertos/port/xtensa/include -IC:/Espressif/frameworks/esp-idf-v4.4/components/freertos/include/esp_additions -IC:/Espressif/frameworks/esp-idf-v4.4/components/esp_hw_support/include -IC:/Espressif/frameworks/esp-idf-v4.4/components/esp_hw_support/include/soc -IC:/Espressif/frameworks/esp-idf-v4.4/components/esp_hw_support/include/soc/esp32 -IC:/Espressif/frameworks/esp-idf-v4.4/components/esp_hw_support/port/esp32/. -IC:/Espressif/frameworks/esp-idf-v4.4/components/heap/include -IC:/Espressif/frameworks/esp-idf-v4.4/components/log/include -IC:/Espressif/frameworks/esp-idf-v4.4/components/lwip/include/apps -IC:/Espressif/frameworks/esp-idf-v4.4/components/lwip/include/apps/sntp -IC:/Espressif/frameworks/esp-idf-v4.4/components/lwip/lwip/src/include -IC:/Espressif/frameworks/esp-idf-v4.4/components/lwip/port/esp32/include -IC:/Espressif/frameworks/esp-idf-v4.4/components/lwip/port/esp32/include/arch -IC:/Espressif/frameworks/esp-idf-v4.4/components/soc/include -IC:/Espressif/frameworks/esp-idf-v4.4/components/soc/esp32/. -IC:/Espressif/frameworks/esp-idf-v4.4/components/soc/esp32/include -IC:/Espressif/frameworks/esp-idf-v4.4/components/hal/esp32/include -IC:/Espressif/frameworks/esp-idf-v4.4/components/hal/include -IC:/Espressif/frameworks/esp-idf-v4.4/components/hal/platform_port/include -IC:/Espressif/frameworks/esp-idf-v4.4/components/esp_rom/include -IC:/Espressif/frameworks/esp-idf-v4.4/components/esp_rom/include/esp32 -IC:/Espressif/frameworks/esp-idf-v4.4/components/esp_rom/esp32 -IC:/Espressif/frameworks/esp-idf-v4.4/components/esp_common/include -IC:/Espressif/frameworks/esp-idf-v4.4/components/esp_system/include -IC:/Espressif/frameworks/esp-idf-v4.4/components/esp_system/port/soc -IC:/Espressif/frameworks/esp-idf-v4.4/components/esp_system/port/public_compat -IC:/Espressif/frameworks/esp-idf-v4.4/components/esp32/include -IC:/Espressif/frameworks/esp-idf-v4.4/components/xtensa/include -IC:/Espressif/frameworks/esp-idf-v4.4/components/xtensa/esp32/include -IC:/Espressif/frameworks/esp-idf-v4.4/components/driver/include -IC:/Espressif/frameworks/esp-idf-v4.4/components/driver/esp32/include -IC:/Espressif/frameworks/esp-idf-v4.4/components/esp_pm/include -IC:/Espressif/frameworks/esp-idf-v4.4/components/efuse/include -IC:/Espressif/frameworks/esp-idf-v4.4/components/efuse/esp32/include -IC:/Espressif/frameworks/esp-idf-v4.4/components/vfs/include -IC:/Espressif/frameworks/esp-idf-v4.4/components/esp_wifi/include -IC:/Espressif/frameworks/esp-idf-v4.4/components/esp_event/include -IC:/Espressif/frameworks/esp-idf-v4.4/components/esp_netif/include -IC:/Espressif/frameworks/esp-idf-v4.4/components/esp_eth/include -IC:/Espressif/frameworks/esp-idf-v4.4/components/tcpip_adapter/include -IC:/Espressif/frameworks/esp-idf-v4.4/components/esp_phy/include -IC:/Espressif/frameworks/esp-idf-v4.4/components/esp_phy/esp32/include -IC:/Espressif/frameworks/esp-idf-v4.4/components/esp_ipc/include -IC:/Espressif/frameworks/esp-idf-v4.4/components/app_trace/include -IC:/Espressif/frameworks/esp-idf-v4.4/components/esp_timer/include -IC:/Espressif/frameworks/esp-idf-v4.4/components/mbedtls/port/include -IC:/Espressif/frameworks/esp-idf-v4.4/components/mbedtls/mbedtls/include -IC:/Espressif/frameworks/esp-idf-v4.4/components/mbedtls/esp_crt_bundle/include -IC:/Espressif/frameworks/esp-idf-v4.4/components/app_update/include -IC:/Espressif/frameworks/esp-idf-v4.4/components/spi_flash/include -IC:/Espressif/frameworks/esp-idf-v4.4/components/bootloader_support/include -IC:/Espressif/frameworks/esp-idf-v4.4/components/nvs_flash/include -IC:/Espressif/frameworks/esp-idf-v4.4/components/pthread/include -IC:/Espressif/frameworks/esp-idf-v4.4/components/esp_gdbstub/include -IC:/Espressif/frameworks/esp-idf-v4.4/components/esp_gdbstub/xtensa -IC:/Espressif/frameworks/esp-idf-v4.4/components/esp_gdbstub/esp32 -IC:/Espressif/frameworks/esp-idf-v4.4/components/espcoredump/include -IC:/Espressif/frameworks/esp-idf-v4.4/components/espcoredump/include/port/xtensa -IC:/Espressif/frameworks/esp-idf-v4.4/components/wpa_supplicant/include -IC:/Espressif/frameworks/esp-idf-v4.4/components/wpa_supplicant/port/include -IC:/Espressif/frameworks/esp-idf-v4.4/components/wpa_supplicant/esp_supplicant/include -IC:/Espressif/frameworks/esp-idf-v4.4/components/ieee802154/include -IC:/Espressif/frameworks/esp-idf-v4.4/components/console -IC:/Espressif/frameworks/esp-idf-v4.4/components/asio/asio/asio/include -IC:/Espressif/frameworks/esp-idf-v4.4/components/asio/port/include -IC:/Espressif/frameworks/esp-idf-v4.4/components/cbor/port/include -IC:/Espressif/frameworks/esp-idf-v4.4/components/unity/include -IC:/Espressif/frameworks/esp-idf-v4.4/components/unity/unity/src -IC:/Espressif/frameworks/esp-idf-v4.4/components/cmock/CMock/src -IC:/Espressif/frameworks/esp-idf-v4.4/components/coap/port/include -IC:/Espressif/frameworks/esp-idf-v4.4/components/coap/libcoap/include -IC:/Espressif/frameworks/esp-idf-v4.4/components/nghttp/port/include -IC:/Espressif/frameworks/esp-idf-v4.4/components/nghttp/nghttp2/lib/includes -IC:/Espressif/frameworks/esp-idf-v4.4/components/esp-tls -IC:/Espressif/frameworks/esp-idf-v4.4/components/esp-tls/esp-tls-crypto -IC:/Espressif/frameworks/esp-idf-v4.4/components/esp_adc_cal/include -IC:/Espressif/frameworks/esp-idf-v4.4/components/esp_hid/include -IC:/Espressif/frameworks/esp-idf-v4.4/components/tcp_transport/include -IC:/Espressif/frameworks/esp-idf-v4.4/components/esp_http_client/include -IC:/Espressif/frameworks/esp-idf-v4.4/components/esp_http_server/include -IC:/Espressif/frameworks/esp-idf-v4.4/components/esp_https_ota/include -IC:/Espressif/frameworks/esp-idf-v4.4/components/esp_lcd/include -IC:/Espressif/frameworks/esp-idf-v4.4/components/esp_lcd/interface -IC:/Espressif/frameworks/esp-idf-v4.4/components/protobuf-c/protobuf-c -IC:/Espressif/frameworks/esp-idf-v4.4/components/protocomm/include/common -IC:/Espressif/frameworks/esp-idf-v4.4/components/protocomm/include/security -IC:/Espressif/frameworks/esp-idf-v4.4/components/protocomm/include/transports -IC:/Espressif/frameworks/esp-idf-v4.4/components/mdns/include -IC:/Espressif/frameworks/esp-idf-v4.4/components/esp_local_ctrl/include -IC:/Espressif/frameworks/esp-idf-v4.4/components/sdmmc/include -IC:/Espressif/frameworks/esp-idf-v4.4/components/esp_serial_slave_link/include -IC:/Espressif/frameworks/esp-idf-v4.4/components/esp_websocket_client/include -IC:/Espressif/frameworks/esp-idf-v4.4/components/expat/expat/expat/lib -IC:/Espressif/frameworks/esp-idf-v4.4/components/expat/port/include -IC:/Espressif/frameworks/esp-idf-v4.4/components/wear_levelling/include -IC:/Espressif/frameworks/esp-idf-v4.4/components/fatfs/diskio -IC:/Espressif/frameworks/esp-idf-v4.4/components/fatfs/vfs -IC:/Espressif/frameworks/esp-idf-v4.4/components/fatfs/src -IC:/Espressif/frameworks/esp-idf-v4.4/components/freemodbus/common/include -IC:/Espressif/frameworks/esp-idf-v4.4/components/idf_test/include -IC:/Espressif/frameworks/esp-idf-v4.4/components/idf_test/include/esp32 -IC:/Espressif/frameworks/esp-idf-v4.4/components/jsmn/include -IC:/Espressif/frameworks/esp-idf-v4.4/components/json/cJSON -IC:/Espressif/frameworks/esp-idf-v4.4/components/libsodium/libsodium/src/libsodium/include -IC:/Espressif/frameworks/esp-idf-v4.4/components/libsodium/port_include -IC:/Espressif/frameworks/esp-idf-v4.4/components/mqtt/esp-mqtt/include -IC:/Espressif/frameworks/esp-idf-v4.4/components/openssl/include -IC:/Espressif/frameworks/esp-idf-v4.4/components/perfmon/include -IC:/Espressif/frameworks/esp-idf-v4.4/components/spiffs/include -IC:/Espressif/frameworks/esp-idf-v4.4/components/ulp/include -IC:/Espressif/frameworks/esp-idf-v4.4/components/wifi_provisioning/include -mlongcalls -Wno-frame-address -MD -MT CMakeFiles/hello_world.elf.dir/project_elf_src_esp32.c.obj -MF CMakeFiles\hello_world.elf.dir\project_elf_src_esp32.c.obj.d -o CMakeFiles/hello_world.elf.dir/project_elf_src_esp32.c.obj -c project_elf_src_esp32.c
  3. xtensa-esp32-elf-gcc.exe: error: C:\Users\Alex: No such file or directory
  4. xtensa-esp32-elf-gcc.exe: error: Ch\AppData\Roaming/ccache/tmp/cmd_args.XsTa4I: No such file or directory
  5. xtensa-esp32-elf-gcc.exe: fatal error: no input files
  6. compilation terminated.
  7. ninja: build stopped: subcommand failed.

Nabinho_BR
Posts: 1
Joined: Thu May 05, 2022 1:58 pm

Re: ninja: build stopped: subcommand failed.

Postby Nabinho_BR » Thu May 05, 2022 2:01 pm

Hello achechet,

I'm having ecxactly the same problem as you posted. Have you managed to solve it?

Thanks.

ESP_georgik
Posts: 21
Joined: Fri Nov 06, 2020 8:23 am
Location: Brno
Contact:

Re: ninja: build stopped: subcommand failed.

Postby ESP_georgik » Mon May 09, 2022 7:08 am

Please, try to set environment variable TMP to path without spaces. The directory should exist.

Powershell:

Code: Select all

$env:TMP="C:\mytmp"
CMD:

Code: Select all

SET TMP=C:\mytmp
Then run the build again.
- Juraj Michálek
Senior Embedded Software Engineer at Espressif Systems

Who is online

Users browsing this forum: No registered users and 54 guests