-
Notifications
You must be signed in to change notification settings - Fork 29
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
support for LuaJIT -- Lua 5.1 compatibility #14
Comments
With a patch from https://github.com/hishamhm/lua-compat-5.2 the SEGFAULTS have been fixed: The following tests FAILED: |
The failing test "free_functions" has been fixed in halmd-org@707be05 . The reason was a typo (?) in the error message of Lua 5.1, which was fixed in LuaJIT. The "object" test has the following output:
with the following stack trace:
|
This is due to the incorrect implementation of "luaL_tolstring" in lua_include.h. Further lua_[g,s]etuservalue seem to be wrong, too. |
lua-compat-5.2 could be included as a submodule, which is only needed if Lua 5.1 was found. Then, lua-include.h would include compat-5.2.hpp instead of lua.hpp. In addition, one has to link against a small library liblua-compat-5.2 (next to the Lua 5.1 library). For the CMake build system, the following would be needed:
I'm not yet sure where to place it, and I don't know what to do for other build systems. |
There are like how many calls in luabind that fail without a compatibility layer? 3 or so? If it were me to decide that would not be worth adding another external dependency. Of course it's a clean and modular solution in theory, but reality is always a tradeoff. So I'd go for simply copying the respective implementations from lua-compat with copyright info etc... |
"luaL_tolstring" has been fixed in halmd-org@4ed73bc The branch now fully supports Lua 5.1 and LuaJIT 2.0. |
I was wondering whether the current development of luabind is still supporting LuaJIT? As of version 2.0.2, it provides Lua 5.1 headers and library.
The branch build_improvements has a file FindLua52.cmake which suggests that support for 5.1 has been dropped?
I have added LuaJIT to the CMake module (see https://github.com/fhoefling/luaponte/tree/build-improvements). It compiles with Clang 3.3, but all test except for one fail with a segfault.
The text was updated successfully, but these errors were encountered: