-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Copy structs from bits/user.h for musl x86_64 #1488
Conversation
Thanks for the pull request, and welcome! The Rust team is excited to review your changes, and you should hear from @gnzlbg (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. |
Looks like the type definition does not match the C one for musl on some targets. |
Type definitions should all be correct now. |
@bors: r+ |
📌 Commit 9883697 has been approved by |
Copy structs from bits/user.h for musl x86_64 While statically compiling a binary with `musl`, I ran into the following error regarding a missing struct: ``` error[E0412]: cannot find type `user_regs_struct` in crate `libc` --> src/debug.rs:37:32 | 37 | fn show_user_regs(regs: &libc::user_regs_struct) -> String { | ^^^^^^^^^^^^^^^^ not found in `libc` ``` This struct was previously added for `glibc` in #599, but was never added to `musl`, despite the data format being the same in both. This fix simply copies `user_regs_struct` into the proper location within the `musl` files.
💔 Test failed - checks-cirrus-freebsd-12 |
I'm a bit stumped on this one. Looks like the
|
It's not this PR fault, see #1489 |
@gnzlbg since the current CI failure is unrelated to this change, are we okay to move forward? |
@bors: r+ |
💡 This pull request was already approved, no need to approve it again.
|
📌 Commit 9883697 has been approved by |
Copy structs from bits/user.h for musl x86_64 While statically compiling a binary with `musl`, I ran into the following error regarding a missing struct: ``` error[E0412]: cannot find type `user_regs_struct` in crate `libc` --> src/debug.rs:37:32 | 37 | fn show_user_regs(regs: &libc::user_regs_struct) -> String { | ^^^^^^^^^^^^^^^^ not found in `libc` ``` This struct was previously added for `glibc` in #599, but was never added to `musl`, despite the data format being the same in both. This fix simply copies `user_regs_struct` into the proper location within the `musl` files.
☀️ Test successful - checks-cirrus-freebsd-11, checks-cirrus-freebsd-12, status-azure |
While statically compiling a binary with
musl
, I ran into the following error regarding a missing struct:This struct was previously added for
glibc
in #599, but was never added tomusl
, despite the data format being the same in both.This fix simply copies
user_regs_struct
into the proper location within themusl
files.