kimdora opened issue #3968:
Hello, when I tried to build
wasmtimefrom 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
wasmtimefrom current master branch5d8dd64so that I got the error.
But when I change the version torelease-0.35.1which is the latest version now, I successfully buildwasmtime.
kimdora closed issue #3968:
Hello, when I tried to build
wasmtimefrom 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
mainbranch if you update (if you installed viarustup) with:$ rustup updateIf that doesn't work, let us know what
rustc --versionsays and we can try to help further!
kimdora commented on issue #3968:
@cfallin , thank you for your comment! After I updated
rustupthat you said, I can build successfully on master branch!
Thank you!
Last updated: Dec 13 2025 at 19:03 UTC