i'm trying to build one of the sample projects generic_gpio and i'm getting the below error:
C:\Espressif\frameworks\esp-idf-v4.4.1\examples\peripherals\gpio\generic_gpio>idf.py build
Executing action: all (aliases: build)
Running cmake in directory c:\espressif\frameworks\esp-idf-v4.4.1\examples\peripherals\gpio\generic_gpio\build
Executing "cmake -G Ninja -DPYTHON_DEPS_CHECKED=1 -DESP_PLATFORM=1 -DCCACHE_ENABLE=1 c:\espressif\frameworks\esp-idf-v4.4.1\examples\peripherals\gpio\generic_gpio"...
-- IDF_TARGET not set, using default target: esp32
-- Found Git: C:/Users/mfawz/.espressif/tools/idf-git/2.34.2/cmd/git.exe (found version "2.34.1.windows.1")
-- ccache will be used for faster recompilation
-- The C compiler identification is GNU 8.4.0
-- The CXX compiler identification is GNU 8.4.0
-- The ASM compiler identification is GNU
-- Found assembler: C:/Users/mfawz/.espressif/tools/xtensa-esp32-elf/esp-2021r2-patch3-8.4.0/xtensa-esp32-elf/bin/xtensa-esp32-elf-gcc.exe
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - failed
-- Check for working C compiler: C:/Users/mfawz/.espressif/tools/xtensa-esp32-elf/esp-2021r2-patch3-8.4.0/xtensa-esp32-elf/bin/xtensa-esp32-elf-gcc.exe
-- Check for working C compiler: C:/Users/mfawz/.espressif/tools/xtensa-esp32-elf/esp-2021r2-patch3-8.4.0/xtensa-esp32-elf/bin/xtensa-esp32-elf-gcc.exe - broken
CMake Error at C:/Users/mfawz/.espressif/tools/cmake/3.20.3/share/cmake-3.20/Modules/CMakeTestCCompiler.cmake:66 (message):
The C compiler
"C:/Users/mfawz/.espressif/tools/xtensa-esp32-elf/esp-2021r2-patch3-8.4.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:/Espressif/frameworks/esp-idf-v4.4.1/examples/peripherals/gpio/generic_gpio/build/CMakeFiles/CMakeTmp
Run Build Command(s):C:/cygwin64/bin/ninja.exe cmTC_a337f && [1/2] Building C object CMakeFiles/cmTC_a337f.dir/testCCompiler.c.obj
FAILED: CMakeFiles/cmTC_a337f.dir/testCCompiler.c.obj
C:\Users\mfawz\.espressif\tools\xtensa-esp32-elf\esp-2021r2-patch3-8.4.0\xtensa-esp32-elf\bin\xtensa-esp32-elf-gcc.exe -mlongcalls -Wno-frame-address -o CMakeFiles/cmTC_a337f.dir/testCCompiler.c.obj -c testCCompiler.c
/bin/sh: C:Usersmfawz.espressiftoolsxtensa-esp32-elfesp-2021r2-patch3-8.4.0xtensa-esp32-elfbinxtensa-esp32-elf-gcc.exe: command not found
ninja: build stopped: subcommand failed.
CMake will not be able to correctly generate this project.
Call Stack (most recent call first):
C:/Espressif/frameworks/esp-idf-v4.4.1/tools/cmake/project.cmake:290 (__project)
CMakeLists.txt:6 (project)
-- Configuring incomplete, errors occurred!
See also "C:/Espressif/frameworks/esp-idf-v4.4.1/examples/peripherals/gpio/generic_gpio/build/CMakeFiles/CMakeOutput.log".
See also "C:/Espressif/frameworks/esp-idf-v4.4.1/examples/peripherals/gpio/generic_gpio/build/CMakeFiles/CMakeError.log".
cmake failed with exit code 1
--------------------------------------------------------------------------------------------------------------------------------------------------------------
CMakeError.log
-------------------
The target system is: Generic - -
The host system is: Windows - 10.0.19044 - AMD64
Compiling the C compiler identification source file "CMakeCCompilerId.c" succeeded.
Compiler: C:/Users/mfawz/.espressif/tools/xtensa-esp32-elf/esp-2021r2-patch3-8.4.0/xtensa-esp32-elf/bin/xtensa-esp32-elf-gcc.exe
Build flags: -mlongcalls;-Wno-frame-address
Id flags:
The output was:
0
Compilation of the C compiler identification source "CMakeCCompilerId.c" produced "a.out"
The C compiler identification is GNU, found in "C:/Espressif/frameworks/esp-idf-v4.4.1/examples/peripherals/gpio/generic_gpio/build/CMakeFiles/3.20.3/CompilerIdC/a.out"
Compiling the CXX compiler identification source file "CMakeCXXCompilerId.cpp" succeeded.
Compiler: C:/Users/mfawz/.espressif/tools/xtensa-esp32-elf/esp-2021r2-patch3-8.4.0/xtensa-esp32-elf/bin/xtensa-esp32-elf-g++.exe
Build flags: -mlongcalls;-Wno-frame-address
Id flags:
The output was:
0
Compilation of the CXX compiler identification source "CMakeCXXCompilerId.cpp" produced "a.out"
The CXX compiler identification is GNU, found in "C:/Espressif/frameworks/esp-idf-v4.4.1/examples/peripherals/gpio/generic_gpio/build/CMakeFiles/3.20.3/CompilerIdCXX/a.out"
Checking whether the ASM compiler is GNU using "--version" matched "(GNU assembler)|(GCC)|(Free Software Foundation)":
xtensa-esp32-elf-gcc.exe (crosstool-NG esp-2021r2-patch3) 8.4.0
Copyright (C) 2018 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
-------------------------------------------------------------------------------------------------------------------------------------------------------
CMakeError.log
----------------------
Detecting C compiler ABI info failed to compile with the following output:
Change Dir: C:/Espressif/frameworks/esp-idf-v4.4.1/examples/peripherals/gpio/generic_gpio/build/CMakeFiles/CMakeTmp
Run Build Command(s):C:/cygwin64/bin/ninja.exe cmTC_9c73f && [1/2] Building C object CMakeFiles/cmTC_9c73f.dir/CMakeCCompilerABI.c.obj
FAILED: CMakeFiles/cmTC_9c73f.dir/CMakeCCompilerABI.c.obj
C:\Users\mfawz\.espressif\tools\xtensa-esp32-elf\esp-2021r2-patch3-8.4.0\xtensa-esp32-elf\bin\xtensa-esp32-elf-gcc.exe -mlongcalls -Wno-frame-address -v -o CMakeFiles/cmTC_9c73f.dir/CMakeCCompilerABI.c.obj -c 'C:/Users/mfawz/.espressif/tools/cmake/3.20.3/share/cmake-3.20/Modules/CMakeCCompilerABI.c'
/bin/sh: C:Usersmfawz.espressiftoolsxtensa-esp32-elfesp-2021r2-patch3-8.4.0xtensa-esp32-elfbinxtensa-esp32-elf-gcc.exe: command not found
ninja: build stopped: subcommand failed.
Determining if the C compiler works failed with the following output:
Change Dir: C:/Espressif/frameworks/esp-idf-v4.4.1/examples/peripherals/gpio/generic_gpio/build/CMakeFiles/CMakeTmp
Run Build Command(s):C:/cygwin64/bin/ninja.exe cmTC_a337f && [1/2] Building C object CMakeFiles/cmTC_a337f.dir/testCCompiler.c.obj
FAILED: CMakeFiles/cmTC_a337f.dir/testCCompiler.c.obj
C:\Users\mfawz\.espressif\tools\xtensa-esp32-elf\esp-2021r2-patch3-8.4.0\xtensa-esp32-elf\bin\xtensa-esp32-elf-gcc.exe -mlongcalls -Wno-frame-address -o CMakeFiles/cmTC_a337f.dir/testCCompiler.c.obj -c testCCompiler.c
/bin/sh: C:Usersmfawz.espressiftoolsxtensa-esp32-elfesp-2021r2-patch3-8.4.0xtensa-esp32-elfbinxtensa-esp32-elf-gcc.exe: command not found
ninja: build stopped: subcommand failed.
Any advise?
can't build demo project
-
- Posts: 3
- Joined: Wed Nov 03, 2021 7:42 am
Re: can't build demo project
Was the program working in any point in time before?
If it did and now it doesn't, one effective solution would be to reinstall esp-idf.
If it did and now it doesn't, one effective solution would be to reinstall esp-idf.
Who is online
Users browsing this forum: Baidu [Spider], kaxx1975 and 238 guests