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:22 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 settings. workspaces too
Install catalog as you see C:\Espressif

Why it get errors on the first build? (hello_world from examples catalog)
What I do wrong?

  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.

User avatar
ESP_Roland
Posts: 265
Joined: Tue Oct 09, 2018 10:28 am

Re: ninja: build stopped: subcommand failed.

Postby ESP_Roland » Mon Apr 04, 2022 4:51 am

Hi,

my guess is that your username under "c:\Users" contains a space or special Unicode characters. You can work around the issue by installing into a different path, e.g. "c:\Espressif".

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

Re: ninja: build stopped: subcommand failed.

Postby achechet » Mon Apr 04, 2022 11:55 am

You will be surprised, but the installation path is c:\espressif

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

Re: ninja: build stopped: subcommand failed.

Postby achechet » Mon Apr 04, 2022 11:57 am

and username Alex in path c:\Users\Alex, without spaces...

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

Re: ninja: build stopped: subcommand failed.

Postby achechet » Mon Apr 04, 2022 1:10 pm

my username contain space Alex Ch...
How to resolve this?

User avatar
ESP_Roland
Posts: 265
Joined: Tue Oct 09, 2018 10:28 am

Re: ninja: build stopped: subcommand failed.

Postby ESP_Roland » Tue Apr 05, 2022 6:12 am

Probably you'll have to disable ccache: "idf.py --no-ccache build"

(https://docs.espressif.com/projects/esp ... py-options)

Yuvaraj1867
Posts: 63
Joined: Wed Mar 06, 2019 4:39 am
Contact:

Re: ninja: build stopped: subcommand failed.

Postby Yuvaraj1867 » Thu Jul 21, 2022 10:54 am

disabling ccache: "idf.py --no-ccache build" did the job...

To flash: "idf.py --no-ccache -p COMxx flash"

Who is online

Users browsing this forum: No registered users and 361 guests