-
Notifications
You must be signed in to change notification settings - Fork 63
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Build failure with custom LuaJIT (OpenResty fork) #242
Comments
Looks like the errors are coming from here: luvi/cmake/Modules/LuaJITAddExecutable.cmake Lines 29 to 37 in 1c7cb3d
where the bundled lua files are compiled using |
What is the best way to check that it does? It recognises the
|
Seems like it does. I ran the command manually:
|
What's LUA_PATH set to when The message in a9dc8da does seem to be relevant in that case. |
It's not set at all.
In fact, it seems like setting
|
For reference, these are the contents of the
|
Can you try changing this line:
to:
and see if that fixes it for you? |
It works! |
Nice! I'm not totally sure why that line has the |
In case it's helpful: I can also reproduce this with a release build of (classic, non-forked) LuaJIT. Of course, that's a bit older than the one pinned in your deps submodule. I'm only using the OpenResty fork because that's the one with a tagged stable release that builds on Apple Silicon. |
I should also actually mention that using a shared libluv also causes errors with how
The correct path to
fixes the problem. |
|
I have LuaJIT installed in a non-default location above, but the |
In case of a non-default location, you should pass |
But my non-default location works when Is there any reason why we don't want to just set |
I'm trying to build luvi with a custom LuaJIT, which is the latest release build from the OpenResty fork. This produces the following build error:
LuaJIT was built using the standard
make amalg
, so I'm not sure why I'm getting this error. SettingLUA_PATH
to LuaJIT'sjit
directory as explained in a9dc8da didn't help. Assistance would be appreciated.Complete build logs: https://gist.github.com/carlocab/2a6c25344be31127f61635d8978b3720
These were generated while attempting a build in Homebrew, but I can reproduce this without Homebrew using just a
make tiny
with the appropriate environment variables for set to enable building with a shared libluv. (I'm actually doing this to assist with Homebrew packaging of luvit. The latest luvi release doesn't build on Apple Silicon.)The text was updated successfully, but these errors were encountered: