-
Notifications
You must be signed in to change notification settings - Fork 672
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
statfs: fixes for s390x+musl #1835
Conversation
207fa1c
to
cf327d3
Compare
s390x musl with `allow_failures`, because it currently does not compile (see nix-rust#1835)
s390x musl with `allow_failures`, because it currently does not compile (see nix-rust#1835)
@selfisekai thanks for the contribution! Unfortunately it doesn't look like things are quite right, yet. You can test compiling for the cargo build --target s390x-unknown-linux-musl -Zbuild-std I am getting more errors with these changes than without, unfortunately. Do you have a use case for the |
unfortunately I'm unable to run it with the use case is Alpine Linux supported architectures, I made an RFC for testing on this and more architectures: nix-rust/rfcs#5 |
Thanks for the link to the RFC; I hadn't seen it. As a hack to unblock yourself, you might try temporarily setting |
the errors appear to all be caused by libc now instead. things like f_namelen use u_long even though the actual musl source is the other issues are also most likely also caused by libc definitions, but i didn't look too deeply. the reason there are "more errors" is because the compilation does not abort early on these first ones fixed here, and then gets to the rest of the issues. that said, the same issue has to be raised in |
linux/musl/s390x: change f_* constants to uint from ulong musl defines these as `unsigned`, not `unsigned long` https://github.com/bminor/musl/blob/7d756e1c04de6eb3f2b3d3e1141a218bb329fcfb/arch/s390x/bits/statfs.h#L2 mostly relevant to also fixing nix-rust/nix#1835 that said, i don't know if this is a huge breaking change or not, only that the current one isn't correct afaict
libc 0.2.145 now has the necessary changes, you should try testing this again |
disregard- that also made it in |
cf327d3
to
c04295a
Compare
What is the status of this PR ? |
Hi @selfisekai, interested in rebasing your branch to run the CI again, the CI failures do not seem to be related to this PR |
a0ad4b1
to
158e65b
Compare
rebased, seems to compile fine for s390x-unknown-linux-musl |
ah, no. the other way |
158e65b
to
e6ab008
Compare
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.
Thanks!
I believe this should fix problems in the log, except the one related to the libc crate. however, I'm not sure how to test these changes.
log from an s390x build