Luac Github repository needs updating to work with Lua 5.5.0 codebase

92 views
Skip to first unread message

Jason Lethbridge

unread,
Dec 24, 2025, 4:23:48 AM12/24/25
to lu...@googlegroups.com
It looks there's been enough changes in the Lua v5.5 headers that the 9
year old luac repository on GitHub (https://github.com/lua/luac) no
longer compiles against it.

Sainan

unread,
Dec 24, 2025, 4:29:26 AM12/24/25
to lu...@googlegroups.com
There should be an updated luac.c in the 5.5.0 release tarball.

-- Sainan

Jason Lethbridge

unread,
Dec 24, 2025, 4:53:58 AM12/24/25
to lu...@googlegroups.com
Thanks. The one in the source tarball is up to date and builds
perfectly but I thought I'd notify the mailing list about it since that
repository has also been building perfectly without any new commit for
the last 9 years

sur-behoffski

unread,
Dec 25, 2025, 1:53:23 AM12/25/25
to lu...@googlegroups.com
I don't know the status/intent of the quoted repository, and I also
don't know about the exact problem that causes compilation failure.
However, I did see similar-ish problems in June 2024 (5.4.7-rc3), and
it's possible that they're related. So, this is just a heads-up in
case there's some relationship.

----

There was an "impedance mismatch" against LuaRocks (versus 5.4.7-rc3)
where the headers, notably lua.h were rewritten to be less redundant.

This came about because LuaRocks might have multiple versions of Lua
sources to compile against, and needed to identify the right one
(since it traversed a list of possible-candidate places where a
system might place sources). In order to do so, it used simple text
matching against a file that was intended for consumption by the C
preprocessor.

At the time (mid-June 2024), the rewrites were withdrawn in -rc4,
and have persisted up to Lua-5.4.8. It was noted at the time that
the rewrites would be likely included for 5.5, and this has happened.

LuaRocks used the simple-text (grep/FIND) search, as this was an
unofficial, but effective, way to satisfy a real need.

My original post is here:

Subject: Lua 5.4.7-rc3: Apparent impedance mismatch with LuaRocks 3.11.1

Msg URL: https://groups.google.com/g/lua-l/c/xqy9tf9dASQ

In particular:

#define LUA_VERSION_NUM 504

became:

#define LUA_VERSION_NUM (LUA_VERSION_MAJOR_N * 100 + LUA_VERSION_MINOR_N)

----

Hope this helps,

s-b etc [plus, Seasons' Greetings!]

Reply all
Reply to author
Forward
0 new messages