-
Notifications
You must be signed in to change notification settings - Fork 715
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
Fails to build on SPARC64 #1512
Comments
Just curious, as multiple packages I want depend on this, how hard would a port to sparc64 be? |
I'm going to close this as a duplicate of the new issue #1555 about porting to big-endian architectures, since once all that work is done, there shouldn't be anything else necessary for SPARC to work. |
Not all target architectures are supported by the "ring" dependency: - mips: briansmith/ring#562 - PowerPC: briansmith/ring#389 - Sparc: briansmith/ring#1512 - s390x: briansmith/ring@4d2e1a8 Signed-off-by: Danilo Bargen <mail@dbrgn.ch> Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
Not all target architectures are supported by the "ring" dependency: - mips: briansmith/ring#562 - PowerPC: briansmith/ring#389 - Sparc: briansmith/ring#1512 - s390x: briansmith/ring@4d2e1a8 Signed-off-by: Danilo Bargen <mail@dbrgn.ch> Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr> (cherry picked from commit 22bdfbd) Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
That doesn't seem to be enough, though. I just tried building
|
@glaubitz hey there!! great great work. I did a fair share of SPARC fixes and packaging on gentoo, and 95% the time, when I looked into fixing bugs or adding support, I found a bug report you made and an attached patch. Made my life much easier :) Assuming that brian is right, and there is native code (non-asm) fallbacks, and no SIGBUSes, I can send you a patch later today that gets past that. I've had to retire my sparc box, but feel free to test |
That's great to hear ;-).
That would be great, thanks! I would be digging into myself, but I am currently busy with too many other tasks. As mentioned before, if you need a SPARC box, you can sign up for the GCC Compile Farm. There are currently Solaris machines on SPARC only, but the Linux machine will come back in the near future. |
Any update on this? Let me know if you have a patch to test. |
Hey there, I'm terribly sorry, I forgot all about this and had a lot of stuff come up IRL. The following patch should work. I recommend setting mcpu in CFLAGS and RUSTFLAGS, especially if you get a compilation error. An example would be: I pasted this patch in #gentoo-sparc on libera.chat (which we would extremely love if you joined!) and will PR it when you or someone there reports back with a success.
|
Closes: briansmith#1512 Signed-off-by: Richard Rogalski <rrogalski@tutanota.com>
No worries.
I'm there as |
Luckily found a volunteer, 100% tests pass! Already made the PR. For the future, already submitted an application to the GCC compile farm. While for C/CXX ultrasparc is (hopefully) implied, seems for rust it tends to avoid using v9 instructions unless specified, last I checked. Never hurts to make sure they're explicit And nice! Didn't know that |
Wow, nice! Thanks so much for landing this so quickly! Highly appreciated! |
When I was reviewing the latest PR, I saw a couple general rust-lang issues for SPARC64 that look quite relevant:
|
See also rust-lang/rust#113739 (comment). If there are people who are available to help maintain rustc for Sparc64, or at least answer questions, it would be helpful to head over there and volunteer. |
Closes: briansmith#1512 Signed-off-by: Richard Rogalski <rrogalski@tutanota.com>
PR updated. As for the rustc bugs relating to sparc, could be outside my zone of expertise but I can give then an honest whack-- put on my todo. For me maintainership is out of the question, but I can keep an eye out over there and answer any questions if i see em |
That would be awesome. Here are the rust-lang/rust tests that are disabled for sparc64 that look most immediately relevant to ring: https://github.com/rust-lang/rust/blob/cfb47ca5df93c82983563fa37673f7108eb94df4/tests/ui/abi/compatibility.rs#L309-L330 |
Closes: #1512 Signed-off-by: Richard Rogalski <rrogalski@tutanota.com>
Closes: briansmith#1512 Signed-off-by: Richard Rogalski <rrogalski@tutanota.com>
Both ring 0.16.20 and the latest master branch fail to build on SPARC64. I'll include what I believe to be the relevant output.
This is also weird, as I do have CFLAGS set.
I would be more than happy to help test, or provide SSH access to a SPARC64 machine :-)
The text was updated successfully, but these errors were encountered: