rustwasm / wasm-bindgen

Facilitating high-level interactions between Wasm modules and JavaScript

Home Page:https://rustwasm.github.io/docs/wasm-bindgen/

Repository from Github https://github.comrustwasm/wasm-bindgenRepository from Github https://github.comrustwasm/wasm-bindgen

Getting rust-lld error with latest nightly

d3lm opened this issue · comments

I tried to upgrade from 1.50.0 nightly to the latest 1.52.0 but I can't compile my crate anymore and I getting the following error:

error: linking with `rust-lld` failed: exit code: 1
  |
  = note: "rust-lld" "-flavor" "wasm" "--rsp-quoting=posix" "--shared-memory" "--max-memory=1073741824" "--import-
  = note: rust-lld: error: mutable global exported but 'mutable-globals' feature not present in inputs: `__tls_base`. Use --no-check-features to suppress.
          rust-lld: error: mutable global exported but 'mutable-globals' feature not present in inputs: `__tls_size`. Use --no-check-features to suppress.
          rust-lld: error: mutable global exported but 'mutable-globals' feature not present in inputs: `__tls_align`. Use --no-check-features to suppress.

Any idea what's causing this and how it can be fixed?

I thought it might be related to the wasm-bindgen version, and upgraded to 0.2.71 but that's not fixing it.

LLVM 12 landed and interfaces have changed. The build flags need to be updated but a few other things need fixing as well. I'd recommending using older nightlies until things have settled.

#2488

Thank you! That makes a lot of sense.

Yay! I see this has been merged. Awesome. Thanks @alexandrestein for your work.