-
Notifications
You must be signed in to change notification settings - Fork 13k
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 sparc64-unknown-netbsd target #38656
Conversation
Thanks for the pull request, and welcome! The Rust team is excited to review your changes, and you should hear from @nrc (or someone else) soon. If any changes to this PR are deemed necessary, please add them as extra commits. This ensures that the reviewer can see what has changed since they last reviewed the code. Due to the way GitHub handles out-of-date commits, this should also make it reasonably obvious what issues have or haven't been addressed. Large or tricky changes may require several passes of review and changes. Please see the contribution instructions for more information. |
LGTM. (Except for the cabi stuff; I can't really review that. But if it looks like the cabi of other 64-bit target, it should be OK-ish) Can you (cross) compile |
The cabi_sparc64 stuff was copy and pasted from cabi_powerpc64, and then modified to always assume big endian. The rust-libc stuff for sparc64-unknown-netbsd was merged three weeks ago: rust-lang/libc#467. |
Great! I hope that the libc changes for sparc64-linux will be as simple as that (likely not). Can |
@japaric: I believe I've compiled |
☔ The latest upstream changes (presumably #38697) made this pull request unmergeable. Please resolve the merge conflicts. |
1d1e76b
to
0f790ec
Compare
☔ The latest upstream changes (presumably #38701) made this pull request unmergeable. Please resolve the merge conflicts. |
0f790ec
to
5618ade
Compare
sparc64-linux support This is built on top of #38656 and depends on rust-lang/libc#483 Hello world works. The libc-test test suite passes. `panic!` doesn't fully work: ``` $ qemu-sparc64-static ./panic thread 'main' panicked at 'explicit panic', panic.rs:1 note: Run with `RUST_BACKTRACE=1` for a backtrace. Illegal instruction (core dumped) ``` Backtraces don't work either, probably related to the previous point: ``` $ export RUST_BACKTRACE=1 $ qemu-sparc64-static ./panic thread 'main' panicked at 'explicit panic', panic.rs:1 stack backtrace: Illegal instruction (core dumped) ``` r? @alexcrichton @jakllsch Does panicking / backtraces work on sparc64-netbsd? cc @glaubitz
Merged in #38726. |
@sanxiyn this PR was not approved before it was merged, did you intend to merge this? |
Yes. |
@sanxiyn it's a bit confusing what happened here since you pushed to someone else's branch. In the future can you leave a comment explaining what you are doing, and r+ prs before merging them? |
No description provided.