I'm having trouble with the latest toolchain installation, and I'm running into a problem running menuconfig in the hello_world sample (copied to another directory).
This is my second time through the installer, and I've worked through a few issues, but still run into this same error in menuconfig. Hopefully someone can help me work through this. I'll post relevant information below.
My local directories:
- Root directory: c:\tools\esp32-latest, has folders dist, python_env, and tools (along with an esp directory that I added). Also has idf_cmd_init.bat and a few other files.
- IDF_PATH: c:\tools\esp32-latest\esp\esp-idf (I chose v4 release in the installer).
- IDF_TOOLS_PATH: c:\tools\esp32-latest (not set by me, including before installation)
- c:\users\<me>\.espressif: contains dist, python_env, and tools folders.
I've attached the CMake*.log files.c:\tools\esp32-latest\esp\hello_world>idf.py menuconfig
Checking Python dependencies...
Python requirements from c:\tools\esp32-latest\esp\esp-idf\requirements.txt are satisfied.
Executing action: menuconfig
Running cmake in directory c:\tools\esp32-latest\esp\hello_world\build
Executing "cmake -G Ninja -DPYTHON_DEPS_CHECKED=1 -DESP_PLATFORM=1 --warn-uninitialized -DCCACHE_ENABLE=0 c:\tools\esp32-latest\esp\hello_world"...
Warn about uninitialized values.
CMake Warning at C:/tools/esp32-latest/esp/esp-idf/tools/cmake/idf.cmake:14 (message):
IDF_PATH environment variable is different from inferred IDF_PATH.
Check if your project's top-level CMakeLists.txt includes the right
CMake files. Environment IDF_PATH will be used for the build.
Call Stack (most recent call first):
C:/tools/esp32-latest/esp/esp-idf/tools/cmake/project.cmake:7 (include)
CMakeLists.txt:5 (include)
-- Found Git: C:/Program Files/Git/cmd/git.exe (found version "2.23.0.windows.1")
-- mconf-idf version mconf-v4.6.0.0-idf-20190628-win32
-- IDF_TARGET not set, using default target: esp32
-- The C compiler identification is GNU 8.2.0
-- The CXX compiler identification is GNU 8.2.0
-- The ASM compiler identification is GNU
-- Found assembler: C:/tools/esp32-latest/tools/xtensa-esp32-elf/esp32-2019r1-8.2.0/xtensa-esp32-elf/bin/xtensa-esp32-elf-gcc.exe
-- Check for working C compiler: C:/tools/esp32-latest/tools/xtensa-esp32-elf/esp32-2019r1-8.2.0/xtensa-esp32-elf/bin/xtensa-esp32-elf-gcc.exe
-- Check for working C compiler: C:/tools/esp32-latest/tools/xtensa-esp32-elf/esp32-2019r1-8.2.0/xtensa-esp32-elf/bin/xtensa-esp32-elf-gcc.exe -- broken
CMake Error at C:/tools/esp32-latest/tools/cmake/3.13.4/share/cmake-3.13/Modules/CMakeTestCCompiler.cmake:52 (message):
The C compiler
"C:/tools/esp32-latest/tools/xtensa-esp32-elf/esp32-2019r1-8.2.0/xtensa-esp32-elf/bin/xtensa-esp32-elf-gcc.exe"
is not able to compile a simple test program.
It fails with the following output:
Change Dir: C:/tools/esp32-latest/esp/hello_world/build/CMakeFiles/CMakeTmp
Run Build Command:"C:/tools/esp32-latest/tools/ninja/1.9.0/ninja.exe" "cmTC_214b0"
[1/2] Building C object CMakeFiles/cmTC_214b0.dir/testCCompiler.c.obj
[2/2] Linking C executable cmTC_214b0
FAILED: cmTC_214b0
cmd.exe /C "cd . && C:\tools\esp32-latest\tools\xtensa-esp32-elf\esp32-2019r1-8.2.0\xtensa-esp32-elf\bin\xtensa-esp32-elf-gcc.exe -mlongcalls -Wno-frame-address -nostdlib CMakeFiles/cmTC_214b0.dir/testCCompiler.c.obj -o cmTC_214b0 && cd ."
The system cannot find the path specified.
c:/tools/esp32-latest/tools/xtensa-esp32-elf/esp32-2019r1-8.2.0/xtensa-esp32-elf/bin/../lib/gcc/xtensa-esp32-elf/8.2.0/../../../../xtensa-esp32-elf/bin/ld.exe: warning: cannot find entry symbol _start; defaulting to 00400054
ninja: build stopped: subcommand failed.
CMake will not be able to correctly generate this project.
Call Stack (most recent call first):
C:/tools/esp32-latest/esp/esp-idf/tools/cmake/project.cmake:258 (__project)
CMakeLists.txt:6 (project)
-- Configuring incomplete, errors occurred!
See also "C:/tools/esp32-latest/esp/hello_world/build/CMakeFiles/CMakeOutput.log".
See also "C:/tools/esp32-latest/esp/hello_world/build/CMakeFiles/CMakeError.log".
cmake failed with exit code 1
Btw, here's the output when I start the console:
he system cannot find the path specified.
Using Python in C:\Python38\
Python 3.8.0
Using Git in C:\Program Files\Git\cmd\
git version 2.23.0.windows.1
Setting IDF_PATH: c:\tools\esp32-latest\esp\esp-idf
Adding ESP-IDF tools to PATH...
Not using an unsupported version of tool cmake found in PATH: 3.15.4.
c:\tools\esp32-latest\tools\xtensa-esp32-elf\esp32-2019r1-8.2.0\xtensa-esp32-elf\bin
c:\tools\esp32-latest\tools\esp32ulp-elf\2.28.51.20170517\esp32ulp-elf-binutils\bin
c:\tools\esp32-latest\tools\cmake\3.13.4\bin
c:\tools\esp32-latest\tools\openocd-esp32\v0.10.0-esp32-20190313\openocd-esp32\bin
c:\tools\esp32-latest\tools\mconf\v4.6.0.0-idf-20190628\
c:\tools\esp32-latest\tools\ninja\1.9.0\
c:\tools\esp32-latest\tools\idf-exe\1.0.1\
c:\tools\esp32-latest\tools\ccache\3.7\
c:\tools\esp32-latest\python_env\idf4.0_py3.8_env\Scripts
c:\tools\esp32-latest\esp\esp-idf\tools
Checking if Python packages are up to date...
Python requirements from c:\tools\esp32-latest\esp\esp-idf\requirements.txt are satisfied.
Done! You can now compile ESP-IDF projects.
Go to the project directory and run:
idf.py build