-
Notifications
You must be signed in to change notification settings - Fork 12.9k
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
1.15.1 (and earlier) armhf failing Items_and_attributes_15 doc test, passes on other architectures #40260
Comments
@infinity0 I'm not sure what the bug is here. Is the test (now here) hanging, crashing, or failing today? |
Still failing today with 1.17.0 armv7, I tested on asachi.debian.org in a armv8l 32-bit chroot, with a clean upstream tarball (i.e. not the Debian package).
Due to #41291 I can't use rust's own 1.16 as stage0, I'm using Debian's 1.16 dynamically linked against LLVM, which recently has had the fix for #41291 backported into it. I don't think this would be affecting this issue, but in case it is, here is my ./configure line:
and to make the build work (i.e. to reach this point where it fails) I have to use these patches: |
The problematic test is: // Declares an extern fn, the ABI defaults to "C"
extern fn new_i32() -> i32 { 0 }
// Declares an extern fn with "stdcall" ABI
extern "stdcall" fn new_i32_stdcall() -> i32 { 0 }
// Declares an extern fn, the ABI defaults to "C"
extern fn new_i32() -> i32 { 0 }
// Declares an extern fn with "stdcall" ABI
# #[cfg(target_arch = "x86_64")]
extern "stdcall" fn new_i32_stdcall() -> i32 { 0 } |
That is supposed to hide the test from the docs. I'll try to open a PR early next week if you won't open one before. |
The Apparently there was some work done (#36421) to define which architectures support / don't support which ABIs and then this information could be used by the test runners to automatically ignore certain tests like this. I don't know what the progress is though, I only skimmed the ticket. |
Test runners are not supposed to automatically ignore tests. Maybe we should have a |
Then perhaps one could extend #36421 to support a |
Local problems, local fixes (implementing more features in |
I understand. It would have wider applications though, outside of disabling tests in rustc. Suppose I want to write a |
Such a change would definitely require an RFC (in https://github.com/rust-lang/rfcs). Feel free to write one, but it will take at least half a year or so to get implemented. |
The "stdcall" ABI only exists on x86, so this causes tests to fail on other architectures. This should fix rust-lang/rust#40260 next time we update the reference.
8 months ago back in version 1.10.0 this test was called Items_and_attributes_14 and it hung rather than failed, here is a stacktrace.
We can ignore it with this patch:
The text was updated successfully, but these errors were encountered: