Author Topic: [DEV] LuaJIT PPC64 support  (Read 23985 times)

tle

  • Hero Member
  • *****
  • Posts: 535
  • Karma: +53/-0
    • View Profile
    • Trung's Personal Website
[DEV] LuaJIT PPC64 support
« on: August 14, 2023, 08:55:52 am »
PPC64 support is still a big mess. The sponsorship for PPC64 support was proposed in https://github.com/LuaJIT/LuaJIT/issues/42 however there has been little responses from the core team of LuaJIT which has lead to frustration to whom who might have given it a go.

Notably, the attempt by Gustavo Scalet (https://github.com/LuaJIT/LuaJIT/pull/54) in 2016 was not good enough. According to Mike Pall, the code was no good (ref: https://www.freelists.org/post/luajit/PPC64le-port-status,1)

Other ports that have better quality but has since get so out of sync, for example https://github.com/mwkmwkmwk/LuaJIT/tree/ppc64-ffi. Again there is zero attempt to get this merged to upstream LuaJIT.

I reckon the best approach is to crowd fund a bounty for Mike Pall to actually work on a proper port.
« Last Edit: August 17, 2023, 02:22:38 am by tle »
Faithful Linux enthusiast

My Raptor Blackbird

tle

  • Hero Member
  • *****
  • Posts: 535
  • Karma: +53/-0
    • View Profile
    • Trung's Personal Website
Re: LuaJIT PPC64 support
« Reply #1 on: August 14, 2023, 09:11:30 am »
I've just donated $50 for the bounty https://app.bountysource.com/issues/25924774-enable-implement-ppc64-le-linux-lj_gc64-interpreter-and-jit

Any small or big donation is greatly welcomed
Faithful Linux enthusiast

My Raptor Blackbird

MPC7500

  • Hero Member
  • *****
  • Posts: 625
  • Karma: +42/-1
    • View Profile
    • Twitter
Re: [DEV] LuaJIT PPC64 support
« Reply #2 on: June 12, 2024, 06:19:43 pm »

tle

  • Hero Member
  • *****
  • Posts: 535
  • Karma: +53/-0
    • View Profile
    • Trung's Personal Website
Re: [DEV] LuaJIT PPC64 support
« Reply #3 on: June 14, 2024, 09:45:40 pm »
LuaJIT2 for ppc64le
https://gitlab.alpinelinux.org/alpine/aports/-/merge_requests/67491

Oh great! I will make the same change to Fedora's luajit. Thanks for sharing
Faithful Linux enthusiast

My Raptor Blackbird

MPC7500

  • Hero Member
  • *****
  • Posts: 625
  • Karma: +42/-1
    • View Profile
    • Twitter
Re: [DEV] LuaJIT PPC64 support
« Reply #4 on: November 05, 2025, 09:36:46 pm »
Quote
Hi,

the latest available upstream version v2.1-20250826 has support for both ppc64
and ppc64el allowing luajit to be built successfully on both of these architectures.

Debian PowerPC Mailing List

power9mm

  • Full Member
  • ***
  • Posts: 113
  • Karma: +8/-3
    • View Profile
Re: [DEV] LuaJIT PPC64 support
« Reply #5 on: November 07, 2025, 05:05:40 am »
I remember this being the major hang up with the STALKER engine when getting it to compile for ppc64le (x-ray engine) i forgot what we did to get it to work and unfortunately i've lost all the code and work that was done due to theft of the hard drives i had been using in my system from a storage unit break in. There was some kind of working version of it though for ppc64... Also the guy who helped made it possible has vanished and most likely for the worst sad to say...
« Last Edit: November 07, 2025, 05:08:58 am by power9mm »

pkubaj

  • Newbie
  • *
  • Posts: 3
  • Karma: +2/-0
    • View Profile
Re: [DEV] LuaJIT PPC64 support
« Reply #6 on: November 19, 2025, 09:55:33 am »
Quote
Hi,

the latest available upstream version v2.1-20250826 has support for both ppc64
and ppc64el allowing luajit to be built successfully on both of these architectures.

Debian PowerPC Mailing List

That quote is really misleading, I thought for a moment that Mike Pall finally merged PPC64 support after like 10 years. But it's just openresty fork, it's had ppc64 and ppc64le support for quite some time already.