kimdora opened issue #3968:
Hello, when I tried to build
wasmtime
from source code, I got a following error.error[E0658]: use of unstable library feature 'thread_local_const_init' --> crates/runtime/src/traphandlers.rs:390:9 | 390 | thread_local!(static PTR: Cell<(Ptr, bool)> = const { Cell::new((ptr::null(), false)) }); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = note: see issue #84223 <https://github.com/rust-lang/rust/issues/84223> for more information = note: this error originates in the macro `$crate::__thread_local_inner` (in Nightly builds, run with -Z macro-backtrace for more info) For more information about this error, try `rustc --explain E0658`.
How can I fix it?
kimdora commented on issue #3968:
So I built
wasmtime
from current master branch5d8dd64
so that I got the error.
But when I change the version torelease-0.35.1
which is the latest version now, I successfully buildwasmtime
.
kimdora closed issue #3968:
Hello, when I tried to build
wasmtime
from source code, I got a following error.error[E0658]: use of unstable library feature 'thread_local_const_init' --> crates/runtime/src/traphandlers.rs:390:9 | 390 | thread_local!(static PTR: Cell<(Ptr, bool)> = const { Cell::new((ptr::null(), false)) }); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = note: see issue #84223 <https://github.com/rust-lang/rust/issues/84223> for more information = note: this error originates in the macro `$crate::__thread_local_inner` (in Nightly builds, run with -Z macro-backtrace for more info) For more information about this error, try `rustc --explain E0658`.
How can I fix it?
cfallin commented on issue #3968:
@kimdora It's likely that your Rust compiler is a bit out-of-date. We test Wasmtime with the latest stable Rust; you should be able to build our
main
branch if you update (if you installed viarustup
) with:$ rustup update
If that doesn't work, let us know what
rustc --version
says and we can try to help further!
kimdora commented on issue #3968:
@cfallin , thank you for your comment! After I updated
rustup
that you said, I can build successfully on master branch!
Thank you!
Last updated: Nov 22 2024 at 16:03 UTC