Skip to content

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

Closed
@infinity0

Description

@infinity0

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-testsuiteArea: The testsuite used to check the correctness of rustcC-cleanupCategory: PRs that clean code up or issues documenting cleanup.O-PowerPCTarget: PowerPC processors

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions