Skip to content

Getting rust-lld error with latest nightly #2487

Closed
@d3lm

Description

@d3lm

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions