Compilation with extrnal LuaJIT broke with addition of FFI

Bug #962848 reported by Kostja Osipov
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
tarantool
Confirmed
High
Unassigned

Bug Description

Compilation with extrnal LuaJIT broke with addition of FFI: FFI uses lj_obj.h which is not checked for when trying to compile
with external LuaJIT, and in the end tarantool_lua.m fails to compile due to a missing header:
kostja@atlas:~/work/tarantool$ cmake .
...
-- Found a system-wide LuaJIT.
-- Performing Test LUAJIT_RUNS
-- Performing Test LUAJIT_RUNS - Success
-- System-wide LuaJIT at /usr/lib/x86_64-linux-gnu/libluajit-5.1.so is suitable for use.
-- LuaJIT include: /usr/include/luajit-2.0
-- LuaJIT lib: /usr/lib/x86_64-linux-gnu/libluajit-5.1.so
...
kostja@atlas:~/work/tarantool$ make
/home/kostja/work/tarantool/core/tarantool_lua.m:37:20: fatal error: lj_obj.h: No such file or directory
compilation terminated.
make[2]: *** [mod/box/CMakeFiles/ltbox.dir/__/__/core/tarantool_lua.m.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[1]: *** [mod/box/CMakeFiles/ltbox.dir/all] Error 2
make: *** [all] Error 2

Kostja Osipov (kostja)
Changed in tarantool:
status: New → Confirmed
importance: Undecided → Medium
importance: Medium → High
Revision history for this message
Roman Tsisyk (rtsisyk) wrote :

I recently have same problem on Debian. It seems that Debian does not include lj_*.h headers at all.
Anyway, we should check it in CMake scripts.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.