lisdude / toaststunt

A network accessible, multi-user, programmable, interactive system for the creation of LambdaMOO style MOOs / MUDs.
63 stars 26 forks source link

Build fails on macOS Monterey/12.0.1 #53

Closed poldy closed 2 years ago

poldy commented 2 years ago

Please find log from

mkdir build
cd build
cmake ..

attached. I mentioned this on the Discord, but nobody there knew the solution.

When I run cmake it fails to find standard C include files like sys/types.h, etc. They're in /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include instead of the more usual UNIX /usr/include. I tried adding a line set(CMAKE_OSX_SYSROOT "/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk") to CMakeLists.txt and setting an environment variable with the same name/value, but that didn't work.

cmake.txt

poldy commented 2 years ago

I think I found the problem. My version of clang doesn't understand the "-march=native" command-line option. Removing it from SHARED_COMPILE_FLAGS in CMakeLists.txt fixes the build. I can prepare a pull request soon if that is the way to go.

lisdude commented 2 years ago

Commit 8da70f3 should resolve this. It introduces Apple Silicon compatibility fixes.