You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Checked the issue tracker for similar issues to ensure this is not a duplicate
Read the documentation to confirm the issue is not addressed there and your configuration is set correctly
Tested with the latest version to ensure the issue hasn't been fixed
How often does this bug occurs?
always
Expected behavior
esp32-elf toolchain is able to work fine and compile a simple test program.
Looks like hotfix from xtensa-esp-elf 13.2.0 toolchain is missing in the latest 14.2.0.
Actual behavior (suspected bug)
Got the following error at the very beginning when trying to compile simple project. xtensa-esp32s3-elf-gcc is not able to compile a simple test program
There is no such error when using latest esp32-elf toolchain (13.2.0_20240530) from ESP-IDF v5.3.1 package. Everything compiles fine in this case.
Error logs or terminal output
cmake . -Bbuild -G Ninja -DCMAKE_BUILD_TYPE=Debug
-- The C compiler identification is GNU 14.2.0
-- The CXX compiler identification is GNU 14.2.0
-- The ASM compiler identification is GNU
-- Found assembler: C:/Program Files/mydevtools/xtensa-esp-elf/bin/xtensa-esp32s3-elf-gcc.exe
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - failed
-- Check for working C compiler: C:/Program Files/mydevtools/xtensa-esp-elf/bin/xtensa-esp32s3-elf-gcc.exe
-- Check for working C compiler: C:/Program Files/mydevtools/xtensa-esp-elf/bin/xtensa-esp32s3-elf-gcc.exe - broken
CMake Error at C:/Program Files/mydevtools/CMake/share/cmake-3.30/Modules/CMakeTestCCompiler.cmake:67 (message):
The C compiler
"C:/Program Files/mydevtools/xtensa-esp-elf/bin/xtensa-esp32s3-elf-gcc.exe"
is not able to compile a simple test program.
It fails with the following output:
Change Dir: 'D:/dev/cpp/mcu-cpp/build/CMakeFiles/CMakeScratch/TryCompile-851lr3'
Run Build Command(s): C:/PROGRA~1/MYDEVT~1/Ninja/ninja.exe -v cmTC_e1922
[1/2] C:\PROGRA~1\MYDEVT~1\XTENSA~2\bin\XT34AB~1.EXE -o CMakeFiles/cmTC_e1922.dir/testCCompiler.c.obj -c D:/dev/cpp/mcu-cpp/build/CMakeFiles/CMakeScratch/TryCompile-851lr3/testCCompiler.c
FAILED: CMakeFiles/cmTC_e1922.dir/testCCompiler.c.obj
C:\PROGRA~1\MYDEVT~1\XTENSA~2\bin\XT34AB~1.EXE -o CMakeFiles/cmTC_e1922.dir/testCCompiler.c.obj -c D:/dev/cpp/mcu-cpp/build/CMakeFiles/CMakeScratch/TryCompile-851lr3/testCCompiler.c
cc1.exe: fatal error: Both 'XTENSA_GNU_CONFIG' and "-dynconfig=" specified but pointed different files: "'C:\PROGRA~1\MYDEVT~1\XTENSA~2\lib\XTENSA~3.SO'""'xtensa_esp32s3.so'"
compilation terminated.
ninja: build stopped: subcommand failed.
CMake will not be able to correctly generate this project.
Call Stack (most recent call first):
CMakeLists.txt:12 (project)
-- Configuring incomplete, errors occurred!
@yh-sb , thank you for the report. I don't see the differences in a code between 13.2.0_20240530 and later releases. All of them are affected by such behavior.
Could you please move the toolchain to a path without spaces? It seems that this is the issue. Spaces in paths are not yet supported for Windows in IDF and related tools (yet). IDF Windows installer doesn't even allow installation to a path with spaces.
Checklist
How often does this bug occurs?
always
Expected behavior
esp32-elf toolchain is able to work fine and compile a simple test program.
Looks like hotfix from xtensa-esp-elf 13.2.0 toolchain is missing in the latest 14.2.0.
Actual behavior (suspected bug)
Got the following error at the very beginning when trying to compile simple project.
xtensa-esp32s3-elf-gcc is not able to compile a simple test program
NOTE:
Error logs or terminal output
Steps to reproduce the behavior
cmake . -Bbuild -G Ninja -DCMAKE_BUILD_TYPE=Debug cmake --build build -j
CMakeLists.txt
main.cpp
esp-idf v5.3.1
Project release version
esp-14.2.0_20241119, esp-13.2.0_20240530
System architecture
Intel/AMD 64-bit (modern PC, older Mac)
Operating system
Windows
Operating system version
Windows 11 23H2 22631.4460
Shell
CMD
Additional context
The text was updated successfully, but these errors were encountered: