Skip to content

Emscripten linker stderr: deprecated -sWASM_BIGINT #163441

Closed

Description

@madsmtm

Doing a simple rustc +1.98.1 --target wasm32-unknown-emscripten foo.rs gives the following warning:

warning: linker stderr: emcc: WASM_BIGINT is deprecated (no longer needed. Should only ever be implicitly disabled by -sWASM=0). Please open a bug if you have a continuing need for this setting [-Wdeprecated]
  |
  = note: `#[warn(linker_messages)]` on by default

warning: 1 warning emitted

I can see two options for resolving this:

  1. Remove -sWASM_BIGINT from the default linker arguments. This would be simplest, but might drop support for older emsdk versions though, I'm unsure whether this is a problem? Which versions of emsdk we support?
  2. Tweak the linker_messages lint to filter out this warning. This is a bit more involved, but it's done for loads of other messages, so it wouldn't be a big issue.

CC target maintainers @hoodmane @juntyr, WDYT we should do here?

Activity

  1. added
    P-lowLow priority
    T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.
    C-bugCategory: This is a bug.
    O-emscriptenTarget: 50% off wasm32-unknown-musl. the savings come out of stdio.h, but hey, you get SDL!
    on Sep 28, 2026
  2. added
    needs-triageThis issue may need triage. Remove when done. See docs forge.rust-lang.org/release/issue-triaging
    on Sep 28, 2026
  3. hoodmane commented on Sep 28, 2026

    @hoodmane
    Contributor

    I think we can remove it. Old versions of Emscripten can pass -Clink-arg=-sWASM_BIGINT explicitly but they aren't all that well supported. It's been on by default since 5.0.

  4. bjorn3 commented on Sep 29, 2026

    @bjorn3
    Member

    Will be fixed by #162839

  5. removed
    needs-triageThis issue may need triage. Remove when done. See docs forge.rust-lang.org/release/issue-triaging
    on Sep 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-bugCategory: This is a bug.L-linker_messagesLint: linker_messagesO-emscriptenTarget: 50% off wasm32-unknown-musl. the savings come out of stdio.h, but hey, you get SDL!P-lowLow priorityT-compilerRelevant to the compiler team, which will review and decide on the PR/issue.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions