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

Building Error in the latest Wasmtime #6870

Closed
hungryzzz opened this issue Aug 21, 2023 · 4 comments
Closed

Building Error in the latest Wasmtime #6870

hungryzzz opened this issue Aug 21, 2023 · 4 comments

Comments

@hungryzzz
Copy link
Contributor

Hi, I try to build the latest Wasmtime on my local, and I meet the building error as follow,

error: Package `wasmtime v13.0.0 (/home/ringzzz/wasm_runtime/wasmtime/crates/wasmtime)` does not have feature `wasmtime-cranelift`. It has an optional dependency with that name, but that dependency uses the "dep:" syntax in the features table, so it does not have an implicit feature with that name.

The building commands are as follow:

git clone git@github.com:bytecodealliance/wasmtime.git
cd wasmtime
git submodule update --init
cargo build --release # raise the building error

Hardware & OS

  • Ubuntu 20.04
  • CPU: Intel(R) Core(TM) i5-9500T CPU @ 2.20GHz
@bjorn3
Copy link
Contributor

bjorn3 commented Aug 21, 2023

Which rustc version do you use?

@hungryzzz
Copy link
Contributor Author

@bjorn3 rustc 1.67.1 (d5a82bbd2 2023-02-07)

@alexcrichton
Copy link
Member

I believe you're running into rust-lang/cargo#12130 which was first released in Rust 1.71.0. Locally I see the same error using Rust 1.70 and prior. Are you able to update your rustc version?

@hungryzzz
Copy link
Contributor Author

@alexcrichton Thank you very much, I've updated my rustc and it works now.

alexcrichton added a commit to alexcrichton/wasmtime that referenced this issue Aug 21, 2023
Previously 1.66.0 was listed, but as pointed out in bytecodealliance#6870 we now rely on
1.71.0
github-merge-queue bot pushed a commit that referenced this issue Aug 21, 2023
Previously 1.66.0 was listed, but as pointed out in #6870 we now rely on
1.71.0
eduardomourar pushed a commit to eduardomourar/wasmtime that referenced this issue Aug 22, 2023
Previously 1.66.0 was listed, but as pointed out in bytecodealliance#6870 we now rely on
1.71.0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants