Skip to content

compilation error MacOS - ld: symbol(s) not found for architecture arm64 #1015

Answered by zach2good
AlexandreCA asked this question in Q&A
Discussion options

You must be logged in to vote

👋 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:

-- LuaJIT_FOUND: TRUE
-- LuaJIT_LIBRARY: /usr/local/lib/l…

Replies: 1 comment 19 replies

Comment options

You must be logged in to vote
19 replies
@zach2good
Comment options

@AlexandreCA
Comment options

@AlexandreCA
Comment options

@zach2good
Comment options

@AlexandreCA
Comment options

Answer selected by zach2good
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants