all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Chris Marusich <cmmarusich@gmail.com>
To: Efraim Flashner <efraim@flashner.co.il>
Cc: 49220@debbugs.gnu.org, luajit@freelists.org
Subject: bug#49220: luajit doesn't support powerpc64le
Date: Tue, 06 Jul 2021 19:02:54 -0700	[thread overview]
Message-ID: <87im1mvq29.fsf_-_@gmail.com> (raw)
In-Reply-To: <YNloc+mJfMv6XyI6@3900XT> (Efraim Flashner's message of "Mon, 28 Jun 2021 09:13:07 +0300")

[-- Attachment #1: Type: text/plain, Size: 2536 bytes --]

Hi,

Efraim Flashner <efraim@flashner.co.il> writes:

> On Thu, Jun 24, 2021 at 11:15:01PM -0700, Chris Marusich wrote:
>> Hi LuaJIT community,
>> 
>> Is anyone in the LuaJIT community actively working on adding support for
>> the powerpc64le architecture?  Specifically, I am wondering about the
>> powerpc64le-linux-gnu triplet, running on POWER9-based systems like the
>> Talos II and Blackbird sold by Raptor Computing Systems.
>> 
>> I ask because LuaJIT has been packaged for Guix, but it currently fails
>> to build on this platform, as explained in the following Guix bug
>> report:
>> 
>> https://debbugs.gnu.org/cgi/bugreport.cgi?bug=49220
>> 
>> Based on the error output, it seems that this platform just isn't
>> supported yet:
>> 
>
> I have successfully built luajit on our ppc64le porter box using the
> patch Debian uses to add powerpc64 support. I have tested it on my
> 32-bit powerpc machine and adding the patch breaks luajit for it, but I
> think we can work something out.
>
> ¹ https://sources.debian.org/src/luajit/2.1.0%7Ebeta3+dfsg-6/debian/patches/0004-Add-ppc64-support-based-on-koriakin-GitHub-patchset.patch/

Thank you for sharing that.  I see that it came from this GitHub pull
request:

"Enable !LJ_GC64 interpreter on PPC64."
https://github.com/LuaJIT/LuaJIT/pull/140

I wonder if the LuaJIT maintainers are aware of that pull request?

It looks like the pull request has been open for about 5 years, and it
hasn't been merged.  Unless the situation changes, this probably means
that if we choose to use this patch in Guix, we (and the Debian folks, I
guess) will be responsible for maintaining it and dealing with any bugs.

Personally, I'm not interested in doing that right now, mainly because
LuaJIT doesn't seem like a necessary dependency.  The only reason this
caught my attention is because Guix's texlive-latex-base package failed
to build on powerpc64le-linux.  It failed to build because the
luajithbtex engine is missing on powerpc64le-linux.  It's missing
because LuaJIT doesn't support the platform.  Issues like that can be
worked around by just using the non-JIT version of Lua (the "luahbtex"
engine in this case).  That's good enough for me.

Of course, if someone else wants to step up and maintain a port for
powerpc64le platforms (ideally upstream in collaboration with the
current LuaJIT maintainer(s)), that would be great.  But it takes time
and effort, and I'm happy enough to just use normal Lua for now.

-- 
Chris

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 861 bytes --]

  reply	other threads:[~2021-07-07  2:04 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-06-25  6:04 bug#49220: luajit doesn't support powerpc64le Chris Marusich
2021-06-25  6:15 ` bug#49220: LuaJIT on powerpc64le-linux-gnu (POWER9)? Chris Marusich
2021-06-28  6:13   ` Efraim Flashner
2021-07-07  2:02     ` Chris Marusich [this message]
2022-01-24 17:52 ` bug#49220: luajit doesn't support powerpc64le Chris Marusich

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87im1mvq29.fsf_-_@gmail.com \
    --to=cmmarusich@gmail.com \
    --cc=49220@debbugs.gnu.org \
    --cc=efraim@flashner.co.il \
    --cc=luajit@freelists.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.