compilation error MacOS - ld: symbol(s) not found for architecture arm64 #1015
-
Hello community! An error appears when I try to compile the server under a MacOS system with an M1 chip (ARM). I don't know if it's a bug or something like that. here is the error code. alexandremate@AirdeAlexandre` build % make -j $(sysctl -n hw.physicalcpu) undef: _lua_seti |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 19 replies
-
👋 Hello! We just added instructions in the last couple of days for OSX builds: I tested these on my M1 Mac and they worked fine. It looks like you're not getting the symbols provided from LuaJIT (which is a drop-in replacement for Lua and it's symbols). You should remove any instances of Lua or LuaJIT you already have ( That being said, I think my build (and the CI build) are on 11.6, I don't know what effect 12.0 will have EDIT This is what our CI looks like:
Try configuring your CMake using our internal lua headers:
|
Beta Was this translation helpful? Give feedback.
👋 Hello!
We just added instructions in the last couple of days for OSX builds:
https://github.com/LandSandBoat/server/wiki/Quick-Start-Guide
I tested these on my M1 Mac and they worked fine.
It looks like you're not getting the symbols provided from LuaJIT (which is a drop-in replacement for Lua and it's symbols). You should remove any instances of Lua or LuaJIT you already have (
brew uninstall
maybe) and build LuaJIT from source (instructions are in the guide).That being said, I think my build (and the CI build) are on 11.6, I don't know what effect 12.0 will have
EDIT
Looks like a header mismatch:
This is what our CI looks like: