-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Wasmtime fails to compile on ARM architectures. #4188
Comments
That's alright. Wasmtime doesn't support arm32 / AArch64 anyway. Created an issue for #4189 |
@pepyakin The problem is that wasmtime is a default feature right now on polkadot. Ideally, wasmtime would only be a default feature on certain architectures. Is there a way to do that with Cargo? |
Can this be resolved? Looks like target-specific features for dependencies has been implemented and is available in nightly as of recently: rust-lang/cargo/issues/7914 |
Good to know! Although I am not sure if we can make use of that until it stabilizes? |
What do you mean by that i.e. are you referring to that substrate can't use on unstable features? Otherwise, it could be nightly only and you can enable it by If |
I mean that we have one Cargo.toml that has to work both on nightly and stable and we would write there [dependencies.`cfg(target_arch="x86_64")`.wasmtime] how would that work when a regular user compiles substrate with stable? |
Ok, I see
Yeah, you are right that would bring those additional |
OS: Ubuntu
Arch: AArch64
There is a known wasmtime issue: bytecodealliance/wasmtime#339
I'm building it after installing the required dependecies using this script
Error:
Building a Substrate based chain works well unless wasmtime is enabled.
cc: @jimpo
The text was updated successfully, but these errors were encountered: