esp-idf: "idf.py menuconfig" fails while "$ idf.py build" and "$ idf.py -p COM8 flash" work (IDFGH-1248)

Environment

  • Development Kit: ESP32-Wrover-Kit

  • Kit version: V4.1

  • Module or chip used: ESP32-WROVER (?)

  • IDF version (run git describe --tags to find it): v4.0-dev-562-g2b301f53e

  • Build System: CMake

  • Compiler version (run xtensa-esp32-elf-gcc --version to find it): xtensa-esp32-elf-gcc.exe (crosstool-NG crosstool-ng-1.22.0-80-g6c4433a5) 5.2.0

  • Operating System: Windows 10

  • Power Supply: USB

Problem Description

Tring to build any of the toolchain examples provided with “idf.py menuconfig” FAILS while “$ idf.py build” and “$ idf.py -p COM8 flash” work

Expected Behavior

The menuconfig dialog should be build

Actual Behavior

The build process fail with message “ninja: build stopped: subcommand failed. ninja failed with exit code 1”

Steps to repropduce

  1. L:aunch MINGW64 Gitbash
  2. cd till you reach the given project main directory e.g. ~/esp/esp-idf/examples/get-started/hello_world
  3. type “idf.py menuconfig” // It helps if you attach a picture of your setup/wiring here.

Code to reproduce this issue

The code is the original toolchain example from …esp\esp-idf\examples\get-started\hello_world\main\hello_world_main.c

Debug Logs

DELL@DESKTOP-MVQO1NB MINGW64 ~/esp/esp-idf/examples/get-started/hello_world (master) $ idf.py menuconfig Checking Python dependencies… Python requirements from C:\Users\DELL\esp\esp-idf\requirements.txt are satisfie d. Running ninja in directory c:\users\dell\esp\esp-idf\examples\get-started\hello_ world\build Executing “ninja menuconfig”… [0/1] cmd.exe /C “cd /D C:\Users\DELL.…les/get-started/hello_world/sdkconfig” /usr/bin/winpty: error: cannot start ‘C:/Users/DELL/esp/esp-idf/Kconfig’: %1 is not a valid Win32 application. (error 0xc1) FAILED: CMakeFiles/menuconfig cmd.exe /C “cd /D C:\Users\DELL\esp\esp-idf\examples\get-started\hello_world\bui ld && D:\Phyton\Python27\python.exe C:/Users/DELL/esp/esp-idf/tools/kconfig_new/ confgen.py --kconfig C:/Users/DELL/esp/esp-idf/Kconfig --config C:/Users/DELL/es p/esp-idf/examples/get-started/hello_world/sdkconfig --env “COMPONENT_KCONFIGS=C :/Users/DELL/esp/esp-idf/components/app_trace/Kconfig C:/Users/DELL/esp/esp-idf/ components/bt/Kconfig C:/Users/DELL/esp/esp-idf/components/driver/Kconfig C:/Use rs/DELL/esp/esp-idf/components/efuse/Kconfig C:/Users/DELL/esp/esp-idf/component s/esp32/Kconfig C:/Users/DELL/esp/esp-idf/components/esp_adc_cal/Kconfig C:/User s/DELL/esp/esp-idf/components/esp_event/Kconfig C:/Users/DELL/esp/esp-idf/compon ents/esp_http_client/Kconfig C:/Users/DELL/esp/esp-idf/components/esp_http_serve r/Kconfig C:/Users/DELL/esp/esp-idf/components/esp_https_ota/Kconfig C:/Users/DE LL/esp/esp-idf/components/esp_wifi/Kconfig C:/Users/DELL/esp/esp-idf/components/ espcoredump/Kconfig C:/Users/DELL/esp/esp-idf/components/ethernet/Kconfig C:/Use rs/DELL/esp/esp-idf/components/fatfs/Kconfig C:/Users/DELL/esp/esp-idf/component s/freemodbus/Kconfig C:/Users/DELL/esp/esp-idf/components/freertos/Kconfig C:/Us ers/DELL/esp/esp-idf/components/heap/Kconfig C:/Users/DELL/esp/esp-idf/component s/libsodium/Kconfig C:/Users/DELL/esp/esp-idf/components/log/Kconfig C:/Users/DE LL/esp/esp-idf/components/lwip/Kconfig C:/Users/DELL/esp/esp-idf/components/mbed tls/Kconfig C:/Users/DELL/esp/esp-idf/components/mdns/Kconfig C:/Users/DELL/esp/ esp-idf/components/mqtt/Kconfig C:/Users/DELL/esp/esp-idf/components/nvs_flash/K config C:/Users/DELL/esp/esp-idf/components/openssl/Kconfig C:/Users/DELL/esp/es p-idf/components/pthread/Kconfig C:/Users/DELL/esp/esp-idf/components/spi_flash/ Kconfig C:/Users/DELL/esp/esp-idf/components/spiffs/Kconfig C:/Users/DELL/esp/es p-idf/components/tcpip_adapter/Kconfig C:/Users/DELL/esp/esp-idf/components/unit y/Kconfig C:/Users/DELL/esp/esp-idf/components/vfs/Kconfig C:/Users/DELL/esp/esp -idf/components/wear_levelling/Kconfig” --env “COMPONENT_KCONFIGS_PROJBUILD=C:/U sers/DELL/esp/esp-idf/components/app_update/Kconfig.projbuild C:/Users/DELL/esp/ esp-idf/components/bootloader/Kconfig.projbuild C:/Users/DELL/esp/esp-idf/compon ents/esptool_py/Kconfig.projbuild C:/Users/DELL/esp/esp-idf/components/partition table/Kconfig.projbuild" --env IDF_CMAKE=y --env IDF_TARGET=esp32 --env IDF_TAR GET=esp32 --output config C:/Users/DELL/esp/esp-idf/examples/get-started/hello_w orld/sdkconfig && “C:\Program Files\CMake\bin\cmake.exe” -E env "COMPONENT_KCONF IGS=C:/Users/DELL/esp/esp-idf/components/app_trace/Kconfig C:/Users/DELL/esp/esp -idf/components/bt/Kconfig C:/Users/DELL/esp/esp-idf/components/driver/Kconfig C :/Users/DELL/esp/esp-idf/components/efuse/Kconfig C:/Users/DELL/esp/esp-idf/comp onents/esp32/Kconfig C:/Users/DELL/esp/esp-idf/components/esp_adc_cal/Kconfig C: /Users/DELL/esp/esp-idf/components/esp_event/Kconfig C:/Users/DELL/esp/esp-idf/c omponents/esp_http_client/Kconfig C:/Users/DELL/esp/esp-idf/components/esp_http server/Kconfig C:/Users/DELL/esp/esp-idf/components/esp_https_ota/Kconfig C:/Use rs/DELL/esp/esp-idf/components/esp_wifi/Kconfig C:/Users/DELL/esp/esp-idf/compon ents/espcoredump/Kconfig C:/Users/DELL/esp/esp-idf/components/ethernet/Kconfig C :/Users/DELL/esp/esp-idf/components/fatfs/Kconfig C:/Users/DELL/esp/esp-idf/comp onents/freemodbus/Kconfig C:/Users/DELL/esp/esp-idf/components/freertos/Kconfig C:/Users/DELL/esp/esp-idf/components/heap/Kconfig C:/Users/DELL/esp/esp-idf/comp onents/libsodium/Kconfig C:/Users/DELL/esp/esp-idf/components/log/Kconfig C:/Use rs/DELL/esp/esp-idf/components/lwip/Kconfig C:/Users/DELL/esp/esp-idf/components /mbedtls/Kconfig C:/Users/DELL/esp/esp-idf/components/mdns/Kconfig C:/Users/DELL /esp/esp-idf/components/mqtt/Kconfig C:/Users/DELL/esp/esp-idf/components/nvs_fl ash/Kconfig C:/Users/DELL/esp/esp-idf/components/openssl/Kconfig C:/Users/DELL/e sp/esp-idf/components/pthread/Kconfig C:/Users/DELL/esp/esp-idf/components/spi_f lash/Kconfig C:/Users/DELL/esp/esp-idf/components/spiffs/Kconfig C:/Users/DELL/e sp/esp-idf/components/tcpip_adapter/Kconfig C:/Users/DELL/esp/esp-idf/components /unity/Kconfig C:/Users/DELL/esp/esp-idf/components/vfs/Kconfig C:/Users/DELL/es p/esp-idf/components/wear_levelling/Kconfig” “COMPONENT_KCONFIGS_PROJBUILD=C:/Us ers/DELL/esp/esp-idf/components/app_update/Kconfig.projbuild C:/Users/DELL/esp/e sp-idf/components/bootloader/Kconfig.projbuild C:/Users/DELL/esp/esp-idf/compone nts/esptool_py/Kconfig.projbuild C:/Users/DELL/esp/esp-idf/components/partition_ table/Kconfig.projbuild” IDF_CMAKE=y KCONFIG_CONFIG=C:/Users/DELL/esp/esp-idf/ex amples/get-started/hello_world/sdkconfig D:/Programs/Git/usr/bin/winpty.exe C:/U sers/DELL/esp/esp-idf/Kconfig && D:\Phyton\Python27\python.exe C:/Users/DELL/esp /esp-idf/tools/kconfig_new/confgen.py --kconfig C:/Users/DELL/esp/esp-idf/Kconfi g --config C:/Users/DELL/esp/esp-idf/examples/get-started/hello_world/sdkconfig –env “COMPONENT_KCONFIGS=C:/Users/DELL/esp/esp-idf/components/app_trace/Kconfig C:/Users/DELL/esp/esp-idf/components/bt/Kconfig C:/Users/DELL/esp/esp-idf/compo nents/driver/Kconfig C:/Users/DELL/esp/esp-idf/components/efuse/Kconfig C:/Users /DELL/esp/esp-idf/components/esp32/Kconfig C:/Users/DELL/esp/esp-idf/components/ esp_adc_cal/Kconfig C:/Users/DELL/esp/esp-idf/components/esp_event/Kconfig C:/Us ers/DELL/esp/esp-idf/components/esp_http_client/Kconfig C:/Users/DELL/esp/esp-id f/components/esp_http_server/Kconfig C:/Users/DELL/esp/esp-idf/components/esp_ht tps_ota/Kconfig C:/Users/DELL/esp/esp-idf/components/esp_wifi/Kconfig C:/Users/D ELL/esp/esp-idf/components/espcoredump/Kconfig C:/Users/DELL/esp/esp-idf/compone nts/ethernet/Kconfig C:/Users/DELL/esp/esp-idf/components/fatfs/Kconfig C:/Users /DELL/esp/esp-idf/components/freemodbus/Kconfig C:/Users/DELL/esp/esp-idf/compon ents/freertos/Kconfig C:/Users/DELL/esp/esp-idf/components/heap/Kconfig C:/Users /DELL/esp/esp-idf/components/libsodium/Kconfig C:/Users/DELL/esp/esp-idf/compone nts/log/Kconfig C:/Users/DELL/esp/esp-idf/components/lwip/Kconfig C:/Users/DELL/ esp/esp-idf/components/mbedtls/Kconfig C:/Users/DELL/esp/esp-idf/components/mdns /Kconfig C:/Users/DELL/esp/esp-idf/components/mqtt/Kconfig C:/Users/DELL/esp/esp -idf/components/nvs_flash/Kconfig C:/Users/DELL/esp/esp-idf/components/openssl/K config C:/Users/DELL/esp/esp-idf/components/pthread/Kconfig C:/Users/DELL/esp/es p-idf/components/spi_flash/Kconfig C:/Users/DELL/esp/esp-idf/components/spiffs/K config C:/Users/DELL/esp/esp-idf/components/tcpip_adapter/Kconfig C:/Users/DELL/ esp/esp-idf/components/unity/Kconfig C:/Users/DELL/esp/esp-idf/components/vfs/Kc onfig C:/Users/DELL/esp/esp-idf/components/wear_levelling/Kconfig” --env “COMPON ENT_KCONFIGS_PROJBUILD=C:/Users/DELL/esp/esp-idf/components/app_update/Kconfig.p rojbuild C:/Users/DELL/esp/esp-idf/components/bootloader/Kconfig.projbuild C:/Us ers/DELL/esp/esp-idf/components/esptool_py/Kconfig.projbuild C:/Users/DELL/esp/e sp-idf/components/partition_table/Kconfig.projbuild” --env IDF_CMAKE=y --env IDF _TARGET=esp32 --env IDF_TARGET=esp32 --output config C:/Users/DELL/esp/esp-idf/e xamples/get-started/hello_world/sdkconfig” ninja: build stopped: subcommand failed. ninja failed with exit code 1

Other items if possible

  • sdkconfig file (attach the sdkconfig file from your project folder) -> ORIGINAL from toolchain sdkconfig.zip

  • elf file in the build folder (note this may contain all the code details and symbols of your project.) hello-world.zip

  • coredump (This provides stacks of tasks.) ->does not apply as application is not built.

About this issue

  • Original URL
  • State: closed
  • Created 5 years ago
  • Comments: 31 (3 by maintainers)

Commits related to this issue

Most upvoted comments

@jcabad100 Have you solved the issue of messy menuconfig GUI. I am having the same problem.