CMake error building

Argon719
Posts: 1
Joined: Mon Mar 22, 2021 10:27 pm

CMake error building

Postby Argon719 » Mon Mar 22, 2021 10:33 pm

I'am new user of ESP-IDF,
I use VS Code, but when I try to build the project, I become following output on Terminal.
Any suggestions-

Code: Select all

> Executing task: cmake -G Ninja .. <

-- Found Git: C:/Program Files/Git/cmd/git.exe (found version 
"2.21.0.windows.1")
-- 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/Homos-Skiptikus/esp/.espressif/tools/xtensa-esp32-elf/esp-2020r3-8.4.0/xtensa-esp32-elf/bin/xtensa-esp32-elf-gcc.exe
-- Check for working C compiler: C:/Users/Homos-Skiptikus/esp/.espressif/tools/xtensa-esp32-elf/esp-2020r3-8.4.0/xtensa-esp32-elf/bin/xtensa-esp32-elf-gcc.exe
CMake Error at C:/Users/Homos-Skiptikus/esp/.espressif/tools/cmake/3.16.4/share/cmake-3.16/Modules/CMakeTestCCompiler.cmake:44 (try_compile):
  Failed to open

    C:/Users/Homos-Skiptikus/Desktop/blink/build/CMakeFiles/CMakeTmp/CMakeLists.txt

  Permission denied
Call Stack (most recent call first):
  C:/Users/Homos-Skiptikus/esp/esp-idf/tools/cmake/project.cmake:307 (__project)
  CMakeLists.txt:6 (project)


-- Check for working C compiler: C:/Users/Homos-Skiptikus/esp/.espressif/tools/xtensa-esp32-elf/esp-2020r3-8.4.0/xtensa-esp32-elf/bin/xtensa-esp32-elf-gcc.exe -- broken
CMake Error at C:/Users/Homos-Skiptikus/esp/.espressif/tools/cmake/3.16.4/share/cmake-3.16/Modules/CMakeTestCCompiler.cmake:60 (message):
  The C compiler

    "C:/Users/Homos-Skiptikus/esp/.espressif/tools/xtensa-esp32-elf/esp-2020r3-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:





  CMake will not be able to correctly generate this project.  
Call Stack (most recent call first):
  C:/Users/Homos-Skiptikus/esp/esp-idf/tools/cmake/project.cmake:307 (__project)
  CMakeLists.txt:6 (project)


-- Configuring incomplete, errors occurred!
See also "C:/Users/Homos-Skiptikus/Desktop/blink/build/CMakeFiles/CMakeOutput.log".
See also "C:/Users/Homos-Skiptikus/Desktop/blink/build/CMakeFiles/CMakeError.log".
The terminal process "C:\WINDOWS\System32\WindowsPowerShell\v1.0\powershell.exe -Command cmake -G Ninja .." terminated with exit code: 1.

ESP_Angus
Posts: 2344
Joined: Sun May 08, 2016 4:11 am

Re: CMake error building

Postby ESP_Angus » Tue Mar 23, 2021 2:55 am

Hi Argon,

The error seems to be:

Code: Select all

 C:/Users/Homos-Skiptikus/Desktop/blink/build/CMakeFiles/CMakeTmp/CMakeLists.txt

  Permission denied
Does the directory C:/Users/Homos-Skiptikus/Desktop/blink/build/ exist on your computer? Are there any non-ASCII characters or anything else in this path? (Recent versions of ESP-IDF should handle this, but it's been a known issue in the past.)

Can you think of any reason Windows might return "Permission Denied" when accessing a file in this directory?

Who is online

Users browsing this forum: No registered users and 28 guests