Skip to content
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.26.0 - ppc64 little+big endian compile-fail/asm-* test failures #50989

Closed
infinity0 opened this issue May 23, 2018 · 3 comments
Closed

1.26.0 - ppc64 little+big endian compile-fail/asm-* test failures #50989

infinity0 opened this issue May 23, 2018 · 3 comments
Labels
A-testsuite Area: The testsuite used to check the correctness of rustc C-cleanup Category: PRs that clean code up or issues documenting cleanup. O-PowerPC Target: PowerPC processors

Comments

@infinity0
Copy link
Contributor

Same failures on Debian and Fedora

test [compile-fail] compile-fail/asm-bad-clobber.rs ... FAILED
test [compile-fail] compile-fail/asm-misplaced-option.rs ... FAILED
test [compile-fail] compile-fail/asm-out-read-uninit.rs ... FAILED
test [compile-fail] compile-fail/asm-in-bad-modifier.rs ... FAILED
test [compile-fail] compile-fail/asm-out-no-modifier.rs ... FAILED
test [compile-fail] compile-fail/borrowck/borrowck-asm.rs ... FAILED

Example details (click the links above and ctrl-F to see more):
asm-bad-clobber:

---- [compile-fail] compile-fail/asm-bad-clobber.rs stdout ----
	

executing "/<<BUILDDIR>>/rustc-1.26.0+dfsg1/build/powerpc64le-unknown-linux-gnu/stage2/bin/rustc" "/<<BUILDDIR>>/rustc-1.26.0+dfsg1/src/test/compile-fail/asm-bad-clobber.rs" "-L" "/<<BUILDDIR>>/rustc-1.26.0+dfsg1/build/powerpc64le-unknown-linux-gnu/test/compile-fail" "--target=powerpc64le-unknown-linux-gnu" "--error-format" "json" "-Zui-testing" "-C" "prefer-dynamic" "-o" "/<<BUILDDIR>>/rustc-1.26.0+dfsg1/build/powerpc64le-unknown-linux-gnu/test/compile-fail/asm-bad-clobber.stage2-powerpc64le-unknown-linux-gnu" "-Crpath" "-O" "-Zmiri" "-Zunstable-options" "-Lnative=/<<BUILDDIR>>/rustc-1.26.0+dfsg1/build/powerpc64le-unknown-linux-gnu/native/rust-test-helpers" "-L" "/<<BUILDDIR>>/rustc-1.26.0+dfsg1/build/powerpc64le-unknown-linux-gnu/test/compile-fail/asm-bad-clobber.stage2-powerpc64le-unknown-linux-gnu.aux" "-A" "unused"
------stdout------------------------------

------stderr------------------------------
{"message":"`main` function not found in crate `asm_bad_clobber`","code":{"code":"E0601","explanation":"\nNo `main` function was found in a binary crate. To fix this error, add a\n`main` function. For example:\n\n```\nfn main() {\n    // Your program will start here.\n    println!(\"Hello world!\");\n}\n```\n\nIf you don't know the basics of Rust, you can go look to the Rust Book to get\nstarted: https://doc.rust-lang.org/book/\n"},"level":"error","spans":[],"children":[{"message":"consider adding a `main` function to `/<<BUILDDIR>>/rustc-1.26.0+dfsg1/src/test/compile-fail/asm-bad-clobber.rs`","code":null,"level":"note","spans":[],"children":[],"rendered":null}],"rendered":"error[E0601]: `main` function not found in crate `asm_bad_clobber`\n   |\n   = note: consider adding a `main` function to `/<<BUILDDIR>>/rustc-1.26.0+dfsg1/src/test/compile-fail/asm-bad-clobber.rs`\n\n"}
{"message":"aborting due to previous error","code":null,"level":"error","spans":[],"children":[],"rendered":"error: aborting due to previous error\n\n"}
{"message":"For more information about this error, try `rustc --explain E0601`.","code":null,"level":"","spans":[],"children":[],"rendered":"For more information about this error, try `rustc --explain E0601`.\n"}

------------------------------------------

error: /<<BUILDDIR>>/rustc-1.26.0+dfsg1/src/test/compile-fail/asm-bad-clobber.rs:29: expected error not found: clobber should not be surrounded by braces

error: 0 unexpected errors found, 1 expected errors not found
status: exit code: 101
command: "/<<BUILDDIR>>/rustc-1.26.0+dfsg1/build/powerpc64le-unknown-linux-gnu/stage2/bin/rustc" "/<<BUILDDIR>>/rustc-1.26.0+dfsg1/src/test/compile-fail/asm-bad-clobber.rs" "-L" "/<<BUILDDIR>>/rustc-1.26.0+dfsg1/build/powerpc64le-unknown-linux-gnu/test/compile-fail" "--target=powerpc64le-unknown-linux-gnu" "--error-format" "json" "-Zui-testing" "-C" "prefer-dynamic" "-o" "/<<BUILDDIR>>/rustc-1.26.0+dfsg1/build/powerpc64le-unknown-linux-gnu/test/compile-fail/asm-bad-clobber.stage2-powerpc64le-unknown-linux-gnu" "-Crpath" "-O" "-Zmiri" "-Zunstable-options" "-Lnative=/<<BUILDDIR>>/rustc-1.26.0+dfsg1/build/powerpc64le-unknown-linux-gnu/native/rust-test-helpers" "-L" "/<<BUILDDIR>>/rustc-1.26.0+dfsg1/build/powerpc64le-unknown-linux-gnu/test/compile-fail/asm-bad-clobber.stage2-powerpc64le-unknown-linux-gnu.aux" "-A" "unused"
not found errors (from test file): [
    Error {
        line_num: 29,
        kind: Some(
            Error
        ),
        msg: "clobber should not be surrounded by braces"
    }
]

thread '[compile-fail] compile-fail/asm-bad-clobber.rs' panicked at 'explicit panic', tools/compiletest/src/runtest.rs:1253:13
note: Run with `RUST_BACKTRACE=1` for a backtrace.

borrowck-asm:

executing "/<<BUILDDIR>>/rustc-1.26.0+dfsg1/build/powerpc64le-unknown-linux-gnu/stage2/bin/rustc" "/<<BUILDDIR>>/rustc-1.26.0+dfsg1/src/test/compile-fail/borrowck/borrowck-asm.rs" "-L" "/<<BUILDDIR>>/rustc-1.26.0+dfsg1/build/powerpc64le-unknown-linux-gnu/test/compile-fail" "--target=powerpc64le-unknown-linux-gnu" "--cfg" "ast" "--error-format" "json" "-Zui-testing" "-C" "prefer-dynamic" "-o" "/<<BUILDDIR>>/rustc-1.26.0+dfsg1/build/powerpc64le-unknown-linux-gnu/test/compile-fail/borrowck/borrowck-asm.stage2-powerpc64le-unknown-linux-gnu" "-Crpath" "-O" "-Zmiri" "-Zunstable-options" "-Lnative=/<<BUILDDIR>>/rustc-1.26.0+dfsg1/build/powerpc64le-unknown-linux-gnu/native/rust-test-helpers" "-L" "/<<BUILDDIR>>/rustc-1.26.0+dfsg1/build/powerpc64le-unknown-linux-gnu/test/compile-fail/borrowck/borrowck-asm.stage2-powerpc64le-unknown-linux-gnu.aux" "-A" "unused"
------stdout------------------------------

------stderr------------------------------

------------------------------------------

error in revision `ast`: compile-fail test compiled successfully!

cc @cuviper

@cuviper
Copy link
Member

cuviper commented May 23, 2018

These files do have // ignore-powerpc -- did someone change compiletest to match ignore lines strictly? If so, we'll need // ignore-powerpc64 and // ignore-powerpc64le too.

@cuviper cuviper added C-cleanup Category: PRs that clean code up or issues documenting cleanup. A-testsuite Area: The testsuite used to check the correctness of rustc O-PowerPC Target: PowerPC processors labels May 23, 2018
@glaubitz
Copy link
Contributor

glaubitz commented Jun 4, 2018

@infinity0 I added some ignores for sparc and sparc64 as well in #51343.

@infinity0
Copy link
Contributor Author

These tests have been replaced, so closing.

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-cleanup Category: PRs that clean code up or issues documenting cleanup. O-PowerPC Target: PowerPC processors
Projects
None yet
Development

No branches or pull requests

3 participants