I have tried following the instructions here: https://datasheets.raspberrypi.com/pico ... h-pico.pdf, but they jump around here and there and aren't always clear.
I'm on a macbook air, M2 chip, 14.3 Sonoma with VSCode.
The output of the ultimate failure is below.
Any ideas of what to try to debug/solve the problem?
I'm on a macbook air, M2 chip, 14.3 Sonoma with VSCode.
The output of the ultimate failure is below.
Any ideas of what to try to debug/solve the problem?
Code:
[cmake] PICO_SDK_PATH is /Users/glewin/Documents/Projects/pico/pico-sdk[cmake] PICO platform is rp2040.[cmake] -- The C compiler identification is AppleClang 15.0.0.15000100[cmake] -- The CXX compiler identification is AppleClang 15.0.0.15000100[cmake] -- Detecting C compiler ABI info[cmake] -- Detecting C compiler ABI info - failed[cmake] -- Check for working C compiler: /usr/bin/clang[cmake] -- Check for working C compiler: /usr/bin/clang - broken[cmake] CMake Error at /opt/homebrew/Cellar/cmake/3.28.3/share/cmake/Modules/CMakeTestCCompiler.cmake:67 (message):[cmake] The C compiler[cmake] [cmake] "/usr/bin/clang"[cmake] [cmake] is not able to compile a simple test program.[cmake] [cmake] It fails with the following output:Exception has occurred: FATAL_ERRORCMake Error at /opt/homebrew/Cellar/cmake/3.28.3/share/cmake/Modules/CMakeTestCCompiler.cmake:67 (message): The C compiler "/usr/bin/clang" is not able to compile a simple test program. It fails with the following output: Change Dir: '/Users/glewin/Documents/Projects/pico/pico-examples/build/CMakeFiles/CMakeScratch/TryCompile-GRyuvY' Run Build Command(s): /opt/homebrew/Cellar/cmake/3.28.3/bin/cmake -E env VERBOSE=1 /usr/bin/make -f Makefile cmTC_098b5/fast /Applications/Xcode.app/Contents/Developer/usr/bin/make -f CMakeFiles/cmTC_098b5.dir/build.make CMakeFiles/cmTC_098b5.dir/build Building C object CMakeFiles/cmTC_098b5.dir/testCCompiler.c.obj /usr/bin/clang -mcpu=cortex-m0plus -mthumb -MD -MT CMakeFiles/cmTC_098b5.dir/testCCompiler.c.obj -MF CMakeFiles/cmTC_098b5.dir/testCCompiler.c.obj.d -o CMakeFiles/cmTC_098b5.dir/testCCompiler.c.obj -c /Users/glewin/Documents/Projects/pico/pico-examples/build/CMakeFiles/CMakeScratch/TryCompile-GRyuvY/testCCompiler.c clang: error: unsupported argument 'cortex-m0plus' to option '-mcpu=' make[1]: *** [CMakeFiles/cmTC_098b5.dir/testCCompiler.c.obj] Error 1 make: *** [cmTC_098b5/fast] Error 2
Statistics: Posted by gcl8a — Fri Feb 09, 2024 4:00 pm