-
Notifications
You must be signed in to change notification settings - Fork 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
Fix tests on FreeBSD x86 #3948
Fix tests on FreeBSD x86 #3948
Conversation
r? @JohnTitor rustbot has assigned @JohnTitor. Use |
☔ The latest upstream changes (presumably 4ce03da) made this pull request unmergeable. Please resolve the merge conflicts. |
4873220
to
b38ee9e
Compare
@tgross35 this is a follow up to the other PRs you've reviewed for me lately. |
This looks fine at first glance. Could you add links to the relevant headers in the PR description? At least for the few variables that have different values per-arch. |
The definition added in b811b70 was technically wrong even though the type size was correct. It was probably defined this way because earlier versions of Rust had difficulty with fixed-size arrays of size greater than 32. This change is necessary for CI to pass on x86 FreeBSD. https://github.com/freebsd/freebsd-src/blob/main/sys/x86/include/ucontext.h
It's always had the wrong size, but apparently never been tested on 32-bit FreeBSD. In addition to fixing its size, it ought to be moved info freebsd/mod.rs . Otherwise it's pretty much inaccessible to everyone. https://github.com/freebsd/freebsd-src/blob/main/sys/sys/_domainset.h
https://github.com/freebsd/freebsd-src/blob/main/sys/arm/include/_types.h https://github.com/freebsd/freebsd-src/blob/main/sys/arm64/include/_types.h https://github.com/freebsd/freebsd-src/blob/main/sys/powerpc/include/_types.h https://github.com/freebsd/freebsd-src/blob/main/sys/riscv/include/_types.h https://github.com/freebsd/freebsd-src/blob/main/sys/x86/include/_types.h
d08c4a4
to
0b6cab8
Compare
@tgross35 I added links to the header files in all of the commit messages and force-pushed. |
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 for the perfect commit history, I didn't look in detail but everything seems reasonable here.
This PR fixes the tests on FreeBSD 15 x86. Many of the symbols were wrong for all 32-bit architectures. All of these symbols are fairly obscure, so no real users are known to have encountered problems with them. The discrepancies were never caught because we do CI only on FreeBSD x86_64.
Note: this PR must be rebased after #3946 merges. That PR is much more important since it involves "struct stat", whereas this PR only concerns more obscure symbols.