Skip to content

Can't compile wasmtime 0.32.0 crate using latest rustc 1.59.0-nightly on ubuntu 20.04  #92320

@Kailai-Wang

Description

@Kailai-Wang

Code

wasmtime crate fails to compile on ubuntu 20.04 using the lastest rustc nightly: rustc 1.59.0-nightly (f8abed9ed 2021-12-26)

I've got a bunch of errors related to asm macro, the errors messages are the same except pointing to the different code positions.
Here is an example:

error: cannot find macro `asm` in this scope
  --> /home/kai/.cargo/registry/src/github.com-1ecc6299db9ec823/rustix-0.26.2/src/imp/linux_raw/arch/inline/x86_64.rs:63:5
   |
63 |     asm!(
   |     ^^^
   |
   = note: consider importing one of these items:
           std::arch::asm
           core::arch::asm

On MacOs it compiles without any problems.

I expected to see this happen: the compilation succeeds

Instead, this happened: the compilation fails (see error messages above)

How to reproduce

1. cargo init test
2. cd test
3. add the following line to the dependencies part in Cargo.toml:
    wasmtime = "0.32.0"
4. cargo build --release -p wasmtime

Version it worked on

It most recently worked on:
nightly-2021-12-12-x86_64-unknown-linux-gnu

Version with regression

rustc --version --verbose:

rustc --version --verbose
rustc 1.59.0-nightly (f8abed9ed 2021-12-26)
binary: rustc
commit-hash: f8abed9ed48bace6be0087bcd44ed534e239b8d8
commit-date: 2021-12-26
host: x86_64-unknown-linux-gnu
release: 1.59.0-nightly
LLVM version: 13.0.0

Those are the versions that were tested. It could be that the regression happened earlier.

Backtrace

Backtrace

<backtrace>

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-bugCategory: This is a bug.regression-untriagedUntriaged performance or correctness regression.

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions