fn-code/esp-idf-clion

Test cmake runs into errors using xtensa-gcc/g++

Opened this issue · 0 comments

Machine: Apple M1, OSX
I was following the guide but faced an interesting issue
image

`-- The C compiler identification is GNU 8.4.0
-- The CXX compiler identification is GNU 8.4.0
-- Checking whether C compiler has -isysroot
-- Checking whether C compiler has -isysroot - yes
-- Checking whether C compiler supports OSX deployment target flag
-- Checking whether C compiler supports OSX deployment target flag - no
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - failed
-- Check for working C compiler: /Users/voodookiidoo/.espressif/tools/xtensa-esp32s2-elf/esp-2021r2-8.4.0/xtensa-esp32s2-elf/bin/xtensa-esp32s2-elf-gcc
-- Check for working C compiler: /Users/voodookiidoo/.espressif/tools/xtensa-esp32s2-elf/esp-2021r2-8.4.0/xtensa-esp32s2-elf/bin/xtensa-esp32s2-elf-gcc - broken
CMake Error at /Users/voodookiidoo/Applications/CLion Nova.app/Contents/bin/cmake/mac/aarch64/share/cmake-3.27/Modules/CMakeTestCCompiler.cmake:67 (message):
The C compiler

"/Users/voodookiidoo/.espressif/tools/xtensa-esp32s2-elf/esp-2021r2-8.4.0/xtensa-esp32s2-elf/bin/xtensa-esp32s2-elf-gcc"

is not able to compile a simple test program.

It fails with the following output:

Change Dir: '/private/var/folders/cs/bqjw27d144dcdytyk_fc5db80000gn/T/cmake_check_environment1/_build5994276605126098201/CMakeFiles/CMakeScratch/TryCompile-VFgRec'

Run Build Command(s): "/Users/voodookiidoo/Applications/CLion Nova.app/Contents/bin/cmake/mac/aarch64/bin/cmake" -E env VERBOSE=1 usr/bin/make -f Makefile cmTC_5baf9/fast
No such file or directory

CMake will not be able to correctly generate this project.
Call Stack (most recent call first):
CMakeLists.txt:2 (project)

-- Configuring incomplete, errors occurred!

Error code: 1`

Please help :(