Skip to content

Ports: Remove multilib handling from luajit#26704

Merged
spholz merged 1 commit intoSerenityOS:masterfrom
spholz:ports-luajit-no-multilib
Apr 7, 2026
Merged

Ports: Remove multilib handling from luajit#26704
spholz merged 1 commit intoSerenityOS:masterfrom
spholz:ports-luajit-no-multilib

Conversation

@spholz
Copy link
Copy Markdown
Member

@spholz spholz commented Apr 7, 2026

i686 support war removed, so there is no need to pass -m64 explicitly. Before i686 support was removed in b49c4eb, we used to pass -m32 for 32-bit systems here.

Additionally, installing multilib development packages like libc6-dev-i386 should be unnecessary now, so the flashy warning message can be removed.

This also makes the port compile on AArch64 now. Previously, it failed to build because M_FLAG was undefined.

It still won't build on RISC-V since LuaJIT itself doesn't support RISC-V yet (LuaJIT/LuaJIT#1267).

i686 support war removed, so there is no need to pass -m64 explicitly.
Before i686 support was removed in b49c4eb, we used to pass -m32
for 32-bit systems here.

Additionally, installing multilib development packages like
libc6-dev-i386 should be unnecessary now, so the flashy warning message
can be removed.

This also makes the port compile on AArch64 now. Previously, it failed
to build because M_FLAG was undefined.

It still won't build on RISC-V since LuaJIT itself doesn't support
RISC-V yet (LuaJIT/LuaJIT#1267).
@spholz spholz requested a review from timschumi as a code owner April 7, 2026 15:30
@github-actions github-actions bot added the 👀 pr-needs-review PR needs review from a maintainer or community member label Apr 7, 2026
@LucasChollet LucasChollet added ✅ pr-maintainer-approved-but-awaiting-ci PR has been approved by a maintainer and can be merged after CI has passed and removed 👀 pr-needs-review PR needs review from a maintainer or community member labels Apr 7, 2026
@spholz
Copy link
Copy Markdown
Member Author

spholz commented Apr 7, 2026

It won't actually run on AArch64 though, as I just found out. It crashes with
Class: Trapped MSR, MRS or System instruction execution in AArch64 state, that is not reported using EC 0b000000, 0b000001, or 0b000111 currently. I'm debugging this now. We probably set some MSR/MRS instruction to trap.

@spholz spholz merged commit 1b61338 into SerenityOS:master Apr 7, 2026
15 checks passed
@spholz spholz deleted the ports-luajit-no-multilib branch April 7, 2026 19:38
@github-actions github-actions bot removed the ✅ pr-maintainer-approved-but-awaiting-ci PR has been approved by a maintainer and can be merged after CI has passed label Apr 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants