Skip to content

CMake Error : CMake will not be able to correctly generate project (IEP-397) #238

@vivekdevx7

Description

@vivekdevx7

I am trying to build a ESP IDF example program "hello_world" in eclipse. I followed exactly as you mentioned in this link(esp-idf plugin) while installing ESP IDF plugin. But when I tried to build this project , I'm getting following error. Does anybody know how to resolve this? thanks

-- Found Git: C:/Program Files/Git/cmd/git.exe (found version "2.23.0.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/vivek/.espressif/tools/xtensa-esp32s2-elf/esp-2020r3-8.4.0/xtensa-esp32s2-elf/bin/xtensa-esp32s2-elf-gcc.exe
-- Check for working C compiler: C:/Users/vivek/.espressif/tools/xtensa-esp32s2-elf/esp-2020r3-8.4.0/xtensa-esp32s2-elf/bin/xtensa-esp32s2-elf-gcc.exe
-- Check for working C compiler: C:/Users/vivek/.espressif/tools/xtensa-esp32s2-elf/esp-2020r3-8.4.0/xtensa-esp32s2-elf/bin/xtensa-esp32s2-elf-gcc.exe -- broken
CMake Error at C:/Users/vivek/.espressif/tools/cmake/3.16.4/share/cmake-3.16/Modules/CMakeTestCCompiler.cmake:60 (message):
  The C compiler

    "C:/Users/vivek/.espressif/tools/xtensa-esp32s2-elf/esp-2020r3-8.4.0/xtensa-esp32s2-elf/bin/xtensa-esp32s2-elf-gcc.exe"

  is not able to compile a simple test program.

  It fails with the following output:

    Change Dir: C:/Users/vivek/eclipse-workspace/hello_world/build/CMakeFiles/CMakeTmp
    
    Run Build Command(s):C:/Users/vivek/.espressif/tools/ninja/1.10.0/ninja.exe cmTC_fd761 && [1/2] Building C object CMakeFiles/cmTC_fd761.dir/testCCompiler.c.obj
    [2/2] Linking C executable cmTC_fd761
    FAILED: cmTC_fd761 
    cmd.exe /C "cd . && C:\Users\vivek\.espressif\tools\xtensa-esp32s2-elf\esp-2020r3-8.4.0\xtensa-esp32s2-elf\bin\xtensa-esp32s2-elf-gcc.exe -mlongcalls   CMakeFiles/cmTC_fd761.dir/testCCompiler.c.obj  -o cmTC_fd761   && cd ."
    ninja: build stopped: subcommand failed.
    
    

  

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


-- Configuring incomplete, errors occurred!
See also "C:/Users/vivek/eclipse-workspace/hello_world/build/CMakeFiles/CMakeOutput.log".
See also "C:/Users/vivek/eclipse-workspace/hello_world/build/CMakeFiles/CMakeError.log".
cmake --build . -- -v
ninja: error: loading 'build.ninja': The system cannot find the file specified.``

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions