Skip to content

Doc tests fail on armv7 for error codes E0778 and E0779 (instruction_set attribute) #83453

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

Open
akien-mga opened this issue Mar 24, 2021 · 1 comment
Labels
A-testsuite Area: The testsuite used to check the correctness of rustc C-bug Category: This is a bug. O-Arm Target: 32-bit Arm processors (armv6, armv7, thumb...), including 64-bit Arm in AArch32 state

Comments

@akien-mga
Copy link

I maintain the rust package for the Mageia Linux distribution (RPM-based), syncing the .spec file with @cuviper's Fedora package.

Rust 1.50.0 doc tests are failing on Linux armv7 after the addition of the instruction_set attribution.
According to @cuviper the same tests also fail for Fedora on armv7.

I haven't tried newer Rust versions but the affected files haven't been changed on master since #76260 (https://github.com/rust-lang/rust/blob/master/compiler/rustc_error_codes/src/error_codes/E0778.md and https://github.com/rust-lang/rust/blob/master/compiler/rustc_error_codes/src/error_codes/E0779.md).

Log output:

test /home/iurt/rpmbuild/BUILD/rustc-1.50.0-src/build/armv7-unknown-linux-gnueabihf/test/error-index.md - Rust_Compiler_Error_Index::E0765 (line 15354) ... ok
test /home/iurt/rpmbuild/BUILD/rustc-1.50.0-src/build/armv7-unknown-linux-gnueabihf/test/error-index.md - Rust_Compiler_Error_Index::E0778 (line 15638) ... FAILED
test /home/iurt/rpmbuild/BUILD/rustc-1.50.0-src/build/armv7-unknown-linux-gnueabihf/test/error-index.md - Rust_Compiler_Error_Index::E0778 (line 15647) ... FAILED
test /home/iurt/rpmbuild/BUILD/rustc-1.50.0-src/build/armv7-unknown-linux-gnueabihf/test/error-index.md - Rust_Compiler_Error_Index::E0766 (line 15369) ... ok
test /home/iurt/rpmbuild/BUILD/rustc-1.50.0-src/build/armv7-unknown-linux-gnueabihf/test/error-index.md - Rust_Compiler_Error_Index::E0779 (line 15680) ... FAILED
test /home/iurt/rpmbuild/BUILD/rustc-1.50.0-src/build/armv7-unknown-linux-gnueabihf/test/error-index.md - Rust_Compiler_Error_Index::E0779 (line 15664) ... ok
<snip>
test /home/iurt/rpmbuild/BUILD/rustc-1.50.0-src/build/armv7-unknown-linux-gnueabihf/test/error-index.md - Rust_Compiler_Error_Index::E0777 (line 15615) ... ok

failures:

---- /home/iurt/rpmbuild/BUILD/rustc-1.50.0-src/build/armv7-unknown-linux-gnueabihf/test/error-index.md - Rust_Compiler_Error_Index::E0778 (line 15638) stdout ----
error[E0779]: target does not support `#[instruction_set]`
 --> /home/iurt/rpmbuild/BUILD/rustc-1.50.0-src/build/armv7-unknown-linux-gnueabihf/test/error-index.md:15641:31
  |
5 | #[cfg_attr(target_arch="arm", instruction_set(arm::a32))]
  |                               ^^^^^^^^^^^^^^^^^^^^^^^^^

error: aborting due to previous error

For more information about this error, try `rustc --explain E0779`.
Couldn't compile the test.
---- /home/iurt/rpmbuild/BUILD/rustc-1.50.0-src/build/armv7-unknown-linux-gnueabihf/test/error-index.md - Rust_Compiler_Error_Index::E0778 (line 15647) stdout ----
error[E0779]: target does not support `#[instruction_set]`
 --> /home/iurt/rpmbuild/BUILD/rustc-1.50.0-src/build/armv7-unknown-linux-gnueabihf/test/error-index.md:15650:31
  |
5 | #[cfg_attr(target_arch="arm", instruction_set(arm::t32))]
  |                               ^^^^^^^^^^^^^^^^^^^^^^^^^

error: aborting due to previous error

For more information about this error, try `rustc --explain E0779`.
Couldn't compile the test.
---- /home/iurt/rpmbuild/BUILD/rustc-1.50.0-src/build/armv7-unknown-linux-gnueabihf/test/error-index.md - Rust_Compiler_Error_Index::E0779 (line 15680) stdout ----
error[E0779]: target does not support `#[instruction_set]`
 --> /home/iurt/rpmbuild/BUILD/rustc-1.50.0-src/build/armv7-unknown-linux-gnueabihf/test/error-index.md:15683:31
  |
4 | #[cfg_attr(target_arch="arm", instruction_set(arm::a32))] // ok!
  |                               ^^^^^^^^^^^^^^^^^^^^^^^^^

error: aborting due to previous error

For more information about this error, try `rustc --explain E0779`.
Couldn't compile the test.

failures:
    /home/iurt/rpmbuild/BUILD/rustc-1.50.0-src/build/armv7-unknown-linux-gnueabihf/test/error-index.md - Rust_Compiler_Error_Index::E0778 (line 15638)
    /home/iurt/rpmbuild/BUILD/rustc-1.50.0-src/build/armv7-unknown-linux-gnueabihf/test/error-index.md - Rust_Compiler_Error_Index::E0778 (line 15647)
    /home/iurt/rpmbuild/BUILD/rustc-1.50.0-src/build/armv7-unknown-linux-gnueabihf/test/error-index.md - Rust_Compiler_Error_Index::E0779 (line 15680)

test result: FAILED. 957 passed; 3 failed; 19 ignored; 0 measured; 0 filtered out; finished in 29.15s



command did not execute successfully: "/home/iurt/rpmbuild/BUILD/rustc-1.50.0-src/build/bootstrap/debug/rustdoc" "-Winvalid_codeblock_attributes" "-Dwarnings" "-Znormalize-docs" "--test" "/home/iurt/rpmbuild/BUILD/rustc-1.50.0-src/build/armv7-unknown-linux-gnueabihf/test/error-index.md" "--test-args" ""
expected success, got: exit code: 101

I don't have direct access to an armv7 machine to test further, this comes straight from Mageia's buildsystem after an armv7 build failure due to tests not passing.

Here's the full build log: build.armv7hl.0.20210323072802.log

@akien-mga akien-mga added the C-bug Category: This is a bug. label Mar 24, 2021
@jonas-schievink jonas-schievink added A-testsuite Area: The testsuite used to check the correctness of rustc O-Arm Target: 32-bit Arm processors (armv6, armv7, thumb...), including 64-bit Arm in AArch32 state labels Mar 24, 2021
@jonas-schievink
Copy link
Contributor

Those tests should be ignored. Adding an additional target_os = "none" should fix it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-testsuite Area: The testsuite used to check the correctness of rustc C-bug Category: This is a bug. O-Arm Target: 32-bit Arm processors (armv6, armv7, thumb...), including 64-bit Arm in AArch32 state
Projects
None yet
Development

No branches or pull requests

2 participants