-
Notifications
You must be signed in to change notification settings - Fork 931
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
s390x support #631
base: v2.1
Are you sure you want to change the base?
s390x support #631
Conversation
Is there any problem with merging this PR, where we can support? |
This doesn't really look finished. It seems to have some files that should not really be there (DynASM tests, bash script), some stuff that is copied from ARM and left unchanged. It is mentioned that moonjit tests are passing, but the question is if LuaJIT tests are passing? I would suggest to clean up the DynASM port first and try to get it in and then make a separate PR for the interpreter. It will probably be easier for maintainer to review that way, since there is a lot of code involved. Note that I'm not a maintainer. |
Can anyone move forward this PR? We have potential products/customers depending on Luajit on ibm s390x platforms. |
The Lua module for nginx now requires luajit to function. As a result, it is now impossible to build nginx for s390x arch in Debian because there is zero support for s390x in LuaJIT. Can this get put in a higher priority list for the LuaJIT team? |
Assume https://github.com/openresty/luajit2 has s390x support, I have s390x native environment, testing with it. |
dd368bf
to
ad1d41e
Compare
I've rebased the code on top of the latest v2.1; squashed all commits; added a short description, which I will quote below for convenience; removed unnecessary debug code and fixed a few stylistic issues. I did not split out the DynASM support yet, but I think it's a good idea and I will look into it.
|
Tested with neovim on s390x. Works for me. |
I've tested it on s390 and on x64.
the Link against noevim on s390x works as expected no issues found. Thank you very much @iii-i |
Yes, builds on s390x with openSUSE/Factory. Thank you. |
…ia SR 1105084 https://build.opensuse.org/request/show/1105084 by user mcepl + anag+factory - Update luajit-s390x.patch from gh#LuaJIT/LuaJIT#631 to the current form.
@MikePall Is there a chance that this will be merged soon? |
ad1d41e
to
a6ae62a
Compare
|
@MikePall Can you merge it, please? It is already tested by different Linux distributions and other open source community members. |
I have tested this builds and runs well on s390x on RHEL/CentOS Stream |
I have tested this builds and runs well on s390x on Ubuntu 20.04 |
Hello @MikePall, |
s390x (IBM Z) is an architecture of server computers produced by IBM. It is supported by a number of open source code generators, such as GCC, LLVM, OpenJDK, eBPF, QEMU, Valgrind and Cranelift. One of the missing pieces in the ecosystem support is LuaJIT. The s390x support for LuaJIT was initially developed by @ketank-new, @mundaym and @niravthakkar. It found its way into moonjit and luajit2 forks, as well as Fedora distro (as a patch). There were also smaller contributions by @preetikhorjuvenkar, @Bisht13, @velemas and @iii-i. This is a cumulative patch of the DynASM changes from this work. It contains all the contributions squashed together, plus minor stylistic cleanups. Signed-off-by: Ilya Leoshkevich <iii@linux.ibm.com>
This is a cumulative patch that adds the s390x LuaJIT implementation by @ketank-new, @mundaym and @niravthakkar and others. It contains all their contributions squashed together, plus minor stylistic cleanups. It passes all the tests from LuaJIT-test-cleanup, except for contents.lua, which fails on x86_64 as well. Signed-off-by: Ilya Leoshkevich <iii@linux.ibm.com>
a6ae62a
to
cf11a60
Compare
|
Dear @MikePall , I'm writing to you not in my capacity as an IBM employee but on a Sunday afternoon on my personal time and I believe there has been some conflict between you and IBM in the past but respectfully, this is getting ridiculous. In my opinion this is also a question of respect, yes @iii-i is getting paid for this work but he, the people Thank you, |
For 4 years this PR has been continuously updated and rebased. The code has been tested and even added as downstream patches in several distributions with Fedora 41 development trees just as the latest example.
We (I am a SUSE employee) have this patch in our enterprise products as well, not mentioning openSUSE, where it is, as well, continuously tested on s390x.
So, it is +1000 from me for the merging of the patch.
|
* The code is from LuaJIT/LuaJIT#631
Hi,
Please consider pulling s390x architecture support (originally developed as part of moonjit).
This branch was created as follows:
luajit-s390x.patch
fromluajit-2.1.0-0.18beta3.fc33.src.rpm
tov2.1.0-beta3
tagv2.1
branchThe result passes most of the moonjit testsuite on x86_64 and s390x.
What fails are tests for new language features and nonportable artithmetic, which should be OK.
I've decided to go this way instead of taking commits from the moonjit repo, because Fedora version of LuaJIT can be considered battle-tested, and the goal here is to integrate this stable code upstream with minimum changes possible. The rest of s390x support from moonjit (if any) can go in separately later.