Skip to content

Failing to build on nightly #11

Closed
Closed
@nelhage

Description

@nelhage

I'm getting build errors on Rust nightly, using this minimal test case:

[nelhage@monolithique:/tmp/probetest]$ cargo +nightly build
   Compiling probetest v0.1.0 (/tmp/probetest)
error[E0660]: malformed inline assembly
 --> main.rs:4:5
  |
4 |     probe!(test_probe, entry);
  |     ^^^^^^^^^^^^^^^^^^^^^^^^^^
  |
  = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)

warning: use of deprecated item 'asm': the syntax of asm! will change soon, use llvm_asm! to avoid breakage
 --> main.rs:4:5
  |
4 |     probe!(test_probe, entry);
  |     ^^^^^^^^^^^^^^^^^^^^^^^^^^
  |
  = note: `#[warn(deprecated)]` on by default
  = note: this warning originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)

error: aborting due to previous error; 1 warning emitted

For more information about this error, try `rustc --explain E0660`.
error: could not compile `probetest`.

To learn more, run the command again with --verbose.

I'm seeing this error on a nightly pulled from rustup just now, as well as on nightly-2020-04-08-x86_64-unknown-linux-gnu, although that doesn't give the warning:

[nelhage@monolithique:/tmp/probetest]$ cargo +nightly-2020-04-08-x86_64-unknown-linux-gnu build
   Compiling probetest v0.1.0 (/tmp/probetest)
error[E0660]: malformed inline assembly
 --> main.rs:4:5
  |
4 |     probe!(test_probe, entry);
  |     ^^^^^^^^^^^^^^^^^^^^^^^^^^
  |
  = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)

error: aborting due to previous error

For more information about this error, try `rustc --explain E0660`.
error: could not compile `probetest`.

To learn more, run the command again with --verbose.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions