unofficial mirror of bug-guix@gnu.org 
 help / color / mirror / code / Atom feed
* bug#49220: luajit doesn't support powerpc64le
@ 2021-06-25  6:04 Chris Marusich
  2021-06-25  6:15 ` bug#49220: LuaJIT on powerpc64le-linux-gnu (POWER9)? Chris Marusich
  2022-01-24 17:52 ` Chris Marusich
  0 siblings, 2 replies; 5+ messages in thread
From: Chris Marusich @ 2021-06-25  6:04 UTC (permalink / raw)
  To: 49220

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

Hi,

When attempting to build luajit on powerpc64le-linux, you will get
errors like this:

--8<---------------cut here---------------start------------->8---
==== Building LuaJIT 2.1.0-beta3 ====
make -C src
make[1]: Entering directory '/tmp/guix-build-luajit-2.1.0-beta3.drv-0/LuaJIT-2.1.0-beta3/src'
lj_arch.h:428:2: error: #error "No support for PowerPC 64 bit mode (yet)"
  428 | #error "No support for PowerPC 64 bit mode (yet)"
      |  ^~~~~
lj_arch.h:428:2: error: #error "No support for PowerPC 64 bit mode (yet)"
  428 | #error "No support for PowerPC 64 bit mode (yet)"
      |  ^~~~~
lj_arch.h:428:2: error: #error "No support for PowerPC 64 bit mode (yet)"
  428 | #error "No support for PowerPC 64 bit mode (yet)"
      |  ^~~~~
lj_arch.h:428:2: error: #error "No support for PowerPC 64 bit mode (yet)"
  428 | #error "No support for PowerPC 64 bit mode (yet)"
      |  ^~~~~
lj_arch.h:428:2: error: #error "No support for PowerPC 64 bit mode (yet)"
  428 | #error "No support for PowerPC 64 bit mode (yet)"
      |  ^~~~~
lj_arch.h:428:2: error: #error "No support for PowerPC 64 bit mode (yet)"
  428 | #error "No support for PowerPC 64 bit mode (yet)"
      |  ^~~~~
lj_arch.h:428:2: error: #error "No support for PowerPC 64 bit mode (yet)"
  428 | #error "No support for PowerPC 64 bit mode (yet)"
      |  ^~~~~
lj_arch.h:428:2: error: #error "No support for PowerPC 64 bit mode (yet)"
  428 | #error "No support for PowerPC 64 bit mode (yet)"
      |  ^~~~~
lj_arch.h:428:2: error: #error "No support for PowerPC 64 bit mode (yet)"
  428 | #error "No support for PowerPC 64 bit mode (yet)"
      |  ^~~~~
lj_arch.h:428:2: error: #error "No support for PowerPC 64 bit mode (yet)"
  428 | #error "No support for PowerPC 64 bit mode (yet)"
      |  ^~~~~
lj_arch.h:428:2: error: #error "No support for PowerPC 64 bit mode (yet)"
  428 | #error "No support for PowerPC 64 bit mode (yet)"
      |  ^~~~~
lj_arch.h:428:2: error: #error "No support for PowerPC 64 bit mode (yet)"
  428 | #error "No support for PowerPC 64 bit mode (yet)"
      |  ^~~~~
lj_arch.h:428:2: error: #error "No support for PowerPC 64 bit mode (yet)"
  428 | #error "No support for PowerPC 64 bit mode (yet)"
      |  ^~~~~
lj_arch.h:428:2: error: #error "No support for PowerPC 64 bit mode (yet)"
  428 | #error "No support for PowerPC 64 bit mode (yet)"
      |  ^~~~~
lj_arch.h:428:2: error: #error "No support for PowerPC 64 bit mode (yet)"
  428 | #error "No support for PowerPC 64 bit mode (yet)"
      |  ^~~~~
lj_arch.h:428:2: error: #error "No support for PowerPC 64 bit mode (yet)"
  428 | #error "No support for PowerPC 64 bit mode (yet)"
      |  ^~~~~
lj_arch.h:428:2: error: #error "No support for PowerPC 64 bit mode (yet)"
  428 | #error "No support for PowerPC 64 bit mode (yet)"
      |  ^~~~~
lj_arch.h:428:2: error: #error "No support for PowerPC 64 bit mode (yet)"
  428 | #error "No support for PowerPC 64 bit mode (yet)"
      |  ^~~~~
lj_arch.h:428:2: error: #error "No support for PowerPC 64 bit mode (yet)"
  428 | #error "No support for PowerPC 64 bit mode (yet)"
      |  ^~~~~
make[1]: *** No rule to make target 'vm_ppc64.dasc', needed by 'host/buildvm_arch.h'.  Stop.
make[1]: Leaving directory '/tmp/guix-build-luajit-2.1.0-beta3.drv-0/LuaJIT-2.1.0-beta3/src'
make: *** [Makefile:113: default] Error 2
--8<---------------cut here---------------end--------------->8---

This has downstream impacts, such as being unable to build LuaJITTeX.
If we can't use LuaJIT on powerpc64le-linux, we should probably remove
it from the luajit package's list of supported systems.

I checked their email list and website, but I can't find information
about whether the LuaJIT project is actively working on support for
powerpc64le architecture specifically.  I'll ask their email list
(luajit@freelists.org) in a moment, and we'll see what they say.

-- 
Chris

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

^ permalink raw reply	[flat|nested] 5+ messages in thread

* bug#49220: LuaJIT on powerpc64le-linux-gnu (POWER9)?
  2021-06-25  6:04 bug#49220: luajit doesn't support powerpc64le Chris Marusich
@ 2021-06-25  6:15 ` Chris Marusich
  2021-06-28  6:13   ` Efraim Flashner
  2022-01-24 17:52 ` Chris Marusich
  1 sibling, 1 reply; 5+ messages in thread
From: Chris Marusich @ 2021-06-25  6:15 UTC (permalink / raw)
  To: luajit; +Cc: 49220

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

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:

--8<---------------cut here---------------start------------->8---
==== Building LuaJIT 2.1.0-beta3 ====
make -C src
make[1]: Entering directory '/tmp/guix-build-luajit-2.1.0-beta3.drv-0/LuaJIT-2.1.0-beta3/src'
lj_arch.h:428:2: error: #error "No support for PowerPC 64 bit mode (yet)"
  428 | #error "No support for PowerPC 64 bit mode (yet)"
      |  ^~~~~
lj_arch.h:428:2: error: #error "No support for PowerPC 64 bit mode (yet)"
  428 | #error "No support for PowerPC 64 bit mode (yet)"
      |  ^~~~~
lj_arch.h:428:2: error: #error "No support for PowerPC 64 bit mode (yet)"
  428 | #error "No support for PowerPC 64 bit mode (yet)"
      |  ^~~~~
lj_arch.h:428:2: error: #error "No support for PowerPC 64 bit mode (yet)"
  428 | #error "No support for PowerPC 64 bit mode (yet)"
      |  ^~~~~
lj_arch.h:428:2: error: #error "No support for PowerPC 64 bit mode (yet)"
  428 | #error "No support for PowerPC 64 bit mode (yet)"
      |  ^~~~~
lj_arch.h:428:2: error: #error "No support for PowerPC 64 bit mode (yet)"
  428 | #error "No support for PowerPC 64 bit mode (yet)"
      |  ^~~~~
lj_arch.h:428:2: error: #error "No support for PowerPC 64 bit mode (yet)"
  428 | #error "No support for PowerPC 64 bit mode (yet)"
      |  ^~~~~
lj_arch.h:428:2: error: #error "No support for PowerPC 64 bit mode (yet)"
  428 | #error "No support for PowerPC 64 bit mode (yet)"
      |  ^~~~~
lj_arch.h:428:2: error: #error "No support for PowerPC 64 bit mode (yet)"
  428 | #error "No support for PowerPC 64 bit mode (yet)"
      |  ^~~~~
lj_arch.h:428:2: error: #error "No support for PowerPC 64 bit mode (yet)"
  428 | #error "No support for PowerPC 64 bit mode (yet)"
      |  ^~~~~
lj_arch.h:428:2: error: #error "No support for PowerPC 64 bit mode (yet)"
  428 | #error "No support for PowerPC 64 bit mode (yet)"
      |  ^~~~~
lj_arch.h:428:2: error: #error "No support for PowerPC 64 bit mode (yet)"
  428 | #error "No support for PowerPC 64 bit mode (yet)"
      |  ^~~~~
lj_arch.h:428:2: error: #error "No support for PowerPC 64 bit mode (yet)"
  428 | #error "No support for PowerPC 64 bit mode (yet)"
      |  ^~~~~
lj_arch.h:428:2: error: #error "No support for PowerPC 64 bit mode (yet)"
  428 | #error "No support for PowerPC 64 bit mode (yet)"
      |  ^~~~~
lj_arch.h:428:2: error: #error "No support for PowerPC 64 bit mode (yet)"
  428 | #error "No support for PowerPC 64 bit mode (yet)"
      |  ^~~~~
lj_arch.h:428:2: error: #error "No support for PowerPC 64 bit mode (yet)"
  428 | #error "No support for PowerPC 64 bit mode (yet)"
      |  ^~~~~
lj_arch.h:428:2: error: #error "No support for PowerPC 64 bit mode (yet)"
  428 | #error "No support for PowerPC 64 bit mode (yet)"
      |  ^~~~~
lj_arch.h:428:2: error: #error "No support for PowerPC 64 bit mode (yet)"
  428 | #error "No support for PowerPC 64 bit mode (yet)"
      |  ^~~~~
lj_arch.h:428:2: error: #error "No support for PowerPC 64 bit mode (yet)"
  428 | #error "No support for PowerPC 64 bit mode (yet)"
      |  ^~~~~
make[1]: *** No rule to make target 'vm_ppc64.dasc', needed by 'host/buildvm_arch.h'.  Stop.
make[1]: Leaving directory '/tmp/guix-build-luajit-2.1.0-beta3.drv-0/LuaJIT-2.1.0-beta3/src'
make: *** [Makefile:113: default] Error 2
--8<---------------cut here---------------end--------------->8---

I have CC'd the Guix bug report for this issue.  When replying, if you
could please keep 49220@debbugs.gnu.org in the CC list so that your
replies will be recorded in the bug report, that would be helpful.  That
will make it easier for Guix contributors to follow the conversation.

Best regards,

-- 
Chris Marusich

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

^ permalink raw reply	[flat|nested] 5+ messages in thread

* bug#49220: LuaJIT on powerpc64le-linux-gnu (POWER9)?
  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     ` bug#49220: luajit doesn't support powerpc64le Chris Marusich
  0 siblings, 1 reply; 5+ messages in thread
From: Efraim Flashner @ 2021-06-28  6:13 UTC (permalink / raw)
  To: Chris Marusich; +Cc: 49220, luajit

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

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/


-- 
Efraim Flashner   <efraim@flashner.co.il>   אפרים פלשנר
GPG key = A28B F40C 3E55 1372 662D  14F7 41AA E7DC CA3D 8351
Confidentiality cannot be guaranteed on emails sent or received unencrypted

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

^ permalink raw reply	[flat|nested] 5+ messages in thread

* bug#49220: luajit doesn't support powerpc64le
  2021-06-28  6:13   ` Efraim Flashner
@ 2021-07-07  2:02     ` Chris Marusich
  0 siblings, 0 replies; 5+ messages in thread
From: Chris Marusich @ 2021-07-07  2:02 UTC (permalink / raw)
  To: Efraim Flashner; +Cc: 49220, luajit

[-- 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 --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* bug#49220: luajit doesn't support powerpc64le
  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
@ 2022-01-24 17:52 ` Chris Marusich
  1 sibling, 0 replies; 5+ messages in thread
From: Chris Marusich @ 2022-01-24 17:52 UTC (permalink / raw)
  To: 49220


[-- Attachment #1.1: Type: text/plain, Size: 1897 bytes --]

Chris Marusich <cmmarusich@gmail.com> writes:

> I checked their email list and website, but I can't find information
> about whether the LuaJIT project is actively working on support for
> powerpc64le architecture specifically.  I'll ask their email list
> (luajit@freelists.org) in a moment, and we'll see what they say.

It's been about 7 months.  There has been no reply on the luajit email
list, or on the GitHub pull request mentioned earlier.  It seems
unlikely that luajit will support powerpc64le-linux support soon.

For this reason, I have removed powerpc64le-linux from luajit's
supported-systems in commit ecb3f1b96a5895999cd800187b2197a78b56760a on
master.

LuaJIT is a dependency, either direct or indirect, of about 58 packages:

  $ guix refresh -l luajit
  Building the following 39 packages would ensure 58 dependent packages
  are rebuilt: arcan-sdl@0.5.5.2-1.b4dd1fb arcan-wayland@0.5.5.2-1.b4dd1fb
  xarcan@0.5.4-1.8e6ee02 knot-resolver@5.4.4 evisum@0.6.0 ephoto@1.6.0
  edi@0.8.0 enlightenment@0.25.1 terminology@1.12.1 lekha@0.2.1 rage@0.4.0
  econnman@1.1 epour@0.7.0 jami-qt@20210606.1.e2f9490
  jami-gnome@20210606.1.e2f9490 pinentry-efl@1.2.0 eovim@0.2.0
  mrrescue@1.02e love-nuklear@2.6.1 instead@3.3.5
  solarus-quest-editor@1.6.5 tome4@1.7.4 naev@0.9.1 mrg@0.1.4
  bpftrace@0.11.4 rspamd@2.7 hexchat@2.16.0
  minetest-mobs-animal@2021-11-14 minetest-worldedit@1.3
  minetest-unified-inventory@2021-12-26 minetest-mesecons@1.2.1-0.db58797
  minetest-homedecor-modpack@2021-12-26 minetest-coloredwood@2021-04-14-1
  minetest-technic@2021-09-11 minetest-basic-trains@1.0.1
  minetest-throwing-arrows@1.1-0.059cc89 minetest-ethereal@1.29-0.7670c1d
  luakit@2.3 nginx-lua-module@0.10.16

Most of them depend indirectly on luajit via the "efl" and "minetest" packages:

  guix graph --type=reverse-bag luajit | dot -Tpng > /tmp/luajit-reverse-bag.png

Here's the graph:


[-- Attachment #1.2: Reverse Bag Graph of LuaJIT Package --]
[-- Type: image/png, Size: 265404 bytes --]

[-- Attachment #1.3: Type: text/plain, Size: 391 bytes --]


Given the lack of PowerPC 64 bit support and the lack of interest in
supporting the architecture, people who want to use those packages on
powerpc64le-linux will either need to add and maintain that support or
figure out how to modify the package definitions to avoid the dependency
on luajit entirely.

-- 
Chris

PGP: https://savannah.gnu.org/people/viewgpg.php?user_id=106836

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

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2022-01-24 18:27 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
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     ` bug#49220: luajit doesn't support powerpc64le Chris Marusich
2022-01-24 17:52 ` Chris Marusich

Code repositories for project(s) associated with this public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).