I am getting mad trying to compile Rack on my Mac M2 I have switched the environment to ARCH=arm64 When I try to “make dep” I always get this error (looks like there’s something wrong with Cmake when trying to compile the dependencies…)
Any help is appreciated, I 've tried many solutions found on the Web but none really solved my issue…
antoniograzioli@Antonios-iPad-2 rack % make dep
/Applications/Xcode.app/Contents/Developer/usr/bin/make -C dep
cd glew-2.1.0 && mkdir -p build
cd glew-2.1.0/build && cmake -DCMAKE_SYSTEM_NAME=Darwin -DCMAKE_OSX_DEPLOYMENT_TARGET=10.9 -DCMAKE_INSTALL_PREFIX="/Users/antoniograzioli/Desktop/VCV/Rack/dep" -DCMAKE_INSTALL_LIBDIR=lib ./cmake
CMake Warning (dev) at CMakeLists.txt:5 (project):
cmake_minimum_required() should be called prior to this top-level project()
call. Please see the cmake-commands(7) manual for usage documentation of
both commands.
This warning is for project developers. Use -Wno-dev to suppress it.
-- The C compiler identification is AppleClang 15.0.0.15000100
-- The CXX compiler identification is AppleClang 15.0.0.15000100
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - failed
-- Check for working C compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc
-- Check for working C compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc - broken
CMake Error at /opt/homebrew/Cellar/cmake/3.30.5/share/cmake/Modules/CMakeTestCCompiler.cmake:67 (message):
The C compiler
"/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc"
is not able to compile a simple test program.
It fails with the following output:
Change Dir: '/Users/antoniograzioli/Desktop/VCV/Rack/dep/glew-2.1.0/build/CMakeFiles/CMakeScratch/TryCompile-QWg8n4'
Run Build Command(s): /opt/homebrew/Cellar/cmake/3.30.5/bin/cmake -E env VERBOSE=1 /usr/local/bin/make -f Makefile cmTC_b913f/fast
Unknown system error -86
CMake will not be able to correctly generate this project.
Call Stack (most recent call first):
CMakeLists.txt:5 (project)
-- Configuring incomplete, errors occurred!
make[1]: *** [lib/libGLEW.a] Error 1
make: *** [dep] Error 2
antoniograzioli@Antonios-iPad-2 rack %