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
Add support for linux s390x gnu #5346
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
We are interested in s390x support as well |
@edlerd we are getting this error:
Does the workaround with |
We need it in combination with vite 5.0 -- which uses rollup 4. It seems to work with
I opened this PR to unblock the build. Hints on how to fix the build with |
I have submitted a similar #5350 for ppc64le |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please have a look at CI, unfortunately it does not work yet.
f0adc9b
to
9bd40ad
Compare
Fixed the lint error, though no clue yet how to fix the build error. |
I think this error message is related @edlerd: 2024-01-19T19:12:21.892Z napi:build Run cargo build --release --target s390x-unknown-linux-gnu -p bindings_napi
/bin/sh: 1: zig: not found
2024-01-19T19:12:21.895Z napi:build Could not find zig on the PATH, fallback to normal linker I cannot see that error message in the build for other architectures. |
We just ran into this issue as well - thanks for working on s390x support, @edlerd!
Normally, cargo should be able to use the proper cross-linker. You need to set the environment variable
I'm not very familiar with the napi build script, but from a quick glance it seems it should already attempt to set this up, but this doesn't appear to be working correctly (you can see in the error message that cargo just falls back to |
9bd40ad
to
ace0a66
Compare
Thanks for the suggestion, I added this just before calling the build (also rebased on current master branch). HTH |
I've now tried a cross-build x86_64 -> s390x using this PR and the linker environment variable, and this completed successfully for me. |
ace0a66
to
6255d0a
Compare
This CI run actually looked quite good! Now the only missing thing is |
Ah, that should be |
Signed-off-by: David Edler <david.edler@canonical.com>
6255d0a
to
8ec9abf
Compare
Thanks again for the hint, updated the PR accordingly. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks amazing now! Let's hope it actually works 😉
And thank you so much for sticking with it, I will make sure we can release it maybe as early as today.
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #5346 +/- ##
=======================================
Coverage 98.80% 98.80%
=======================================
Files 236 236
Lines 9423 9423
Branches 2398 2398
=======================================
Hits 9310 9310
Misses 48 48
Partials 65 65 ☔ View full report in Codecov by Sentry. |
This PR has been released as part of rollup@4.13.1. You can test it via |
Thank you very much for your support! |
This PR contains:
Are tests included?
Breaking Changes?
List any relevant issue numbers:
Description
Add support for s390x linux gnu target.
I would very much appreciate it if a new release with s390x support could be published after we get this PR merged :)