Bug 1215592 - luajit fails with "unknown luaJIT command or jit.* modules not installed"
Summary: luajit fails with "unknown luaJIT command or jit.* modules not installed"
Status: RESOLVED FIXED
Alias: None
Product: openSUSE Tumbleweed
Classification: openSUSE
Component: Development (show other bugs)
Version: Current
Hardware: All openSUSE Tumbleweed
: P5 - None : Normal (vote)
Target Milestone: ---
Assignee: Matej Cepl
QA Contact: E-mail List
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-09-22 04:24 UTC by Shung-Hsi Yu
Modified: 2023-12-01 00:41 UTC (History)
1 user (show)

See Also:
Found By: ---
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Shung-Hsi Yu 2023-09-22 04:24:35 UTC
openSUSE:Factory/luajit fails to access jit.* modules since revision 10.

Comparing the strace output of `luajit -b` between revision 9 and revision 10 it seems the problem is with locating the jit module. The problem with revision 10 is that luajit tries to find jit module under /usr/share/luajit-5_1-2.1.0-rolling/, but the actual location was /usr/share/luajit-5_1-2.1/.

> --- luajit_trace_rev09.log	2023-09-22 04:07:12.002902348 +0000
> +++ luajit_trace_rev10.log	2023-09-22 04:06:44.792038334 +0000
> @@ -1,66 +1,76 @@
>  ...
>  openat(AT_FDCWD, "./jit/bcsave.lua", O_RDONLY) = -1 ENOENT (No such file or directory)
> -openat(AT_FDCWD, "/usr/share/luajit-5_1-2.1.0-beta3/jit/bcsave.lua", O_RDONLY) = 3
> -close(3)                                = 0
> -openat(AT_FDCWD, "/usr/share/luajit-5_1-2.1.0-beta3/jit/bcsave.lua", O_RDONLY) = 3
> -newfstatat(3, "", {st_mode=S_IFREG|0644, st_size=19554, ...}, AT_EMPTY_PATH) = 0
> -read(3, "--------------------------------"..., 8192) = 8192
> -read(3, "s = ffi.offsetof(o, \"space\"), 1\n"..., 8192) = 8192
> -read(3, ")\n    a.sec.size = #s\n    a.sec."..., 8192) = 3170
> -read(3, "", 4096)                       = 0
> -close(3)                                = 0
> -write(2, "Save LuaJIT bytecode: luajit -b["..., 651) = 651
> +openat(AT_FDCWD, "/usr/share/luajit-5_1-2.1.0-rolling/jit/bcsave.lua", O_RDONLY) = -1 ENOENT (No such file or directory)
> +openat(AT_FDCWD, "/usr/local/share/lua/5.1/jit/bcsave.lua", O_RDONLY) = -1 ENOENT (No such file or directory)
> +openat(AT_FDCWD, "/usr/local/share/lua/5.1/jit/bcsave/init.lua", O_RDONLY) = -1 ENOENT (No such file or directory)
> +openat(AT_FDCWD, "/usr/share/lua/5.1/jit/bcsave.lua", O_RDONLY) = -1 ENOENT (No such file or directory)
> +openat(AT_FDCWD, "/usr/share/lua/5.1/jit/bcsave/init.lua", O_RDONLY) = -1 ENOENT (No such file or directory)
> +openat(AT_FDCWD, "./jit/bcsave.so", O_RDONLY) = -1 ENOENT (No such file or directory)
> +openat(AT_FDCWD, "/usr/local/lib/lua/5.1/jit/bcsave.so", O_RDONLY) = -1 ENOENT (No such file or directory)
> +openat(AT_FDCWD, "/usr/lib64/lua/5.1/jit/bcsave.so", O_RDONLY) = -1 ENOENT (No such file or directory)
> +openat(AT_FDCWD, "/usr/local/lib/lua/5.1/loadall.so", O_RDONLY) = -1 ENOENT (No such file or directory)
> +openat(AT_FDCWD, "./jit.so", O_RDONLY)  = -1 ENOENT (No such file or directory)
> +openat(AT_FDCWD, "/usr/local/lib/lua/5.1/jit.so", O_RDONLY) = -1 ENOENT (No such file or directory)
> +openat(AT_FDCWD, "/usr/lib64/lua/5.1/jit.so", O_RDONLY) = -1 ENOENT (No such file or directory)
> +openat(AT_FDCWD, "/usr/local/lib/lua/5.1/loadall.so", O_RDONLY) = -1 ENOENT (No such file or directory)
> +futex(0x7f9b0625f070, FUTEX_WAKE_PRIVATE, 2147483647) = 0
> +write(2, "luajit", 6)                   = 6
> +write(2, ":", 1)                        = 1
> +write(2, " ", 1)                        = 1
> +write(2, "unknown luaJIT command or jit.* "..., 53) = 53
> +write(2, "\n", 1)                       = 1
> +munmap(0x7f9b06219000, 131072)          = 0
>  exit_group(1)                           = ?
>  +++ exited with 1 +++
Comment 1 Shung-Hsi Yu 2023-09-22 04:32:53 UTC
Probably related to changes in commit 50e0fa03c4 "Switch build system to rolling releases."[1]

CC Matej

1: https://github.com/LuaJIT/LuaJIT/commit/50e0fa03c48cb9af03c3efdc3100f12687651a2e
Comment 2 Matej Cepl 2023-10-09 20:21:22 UTC
Could you please test with the package from https://build.opensuse.org/request/show/1116533?

Thank you
Comment 3 Shung-Hsi Yu 2023-10-16 11:18:39 UTC
(In reply to Matej Cepl from comment #2)
> Could you please test with the package from
> https://build.opensuse.org/request/show/1116533?
> 
> Thank you

Seems to work now, thank you!