Skip to content

Compiling tests for wasm64-unknown-unknown on latest Nightly results in linking error #121460

Closed
@newpavlov

Description

@newpavlov

Compiling any crate with cargo test --no-run -Z build-std=std,panic_abort --target=wasm64-unknown-unknown results in the following error: rust-lld: error: /home/dir/.cargo/target/wasm64-unknown-unknown/debug/deps/libtest-ed35d2d81ad088d3.rlib(lib.rmeta): wasm32 object file can't be linked in wasm64 mode. This is a regression introduced in one of the recent NIghtly versions.

Toolchain version: cargo 1.78.0-nightly (194a60b29 2024-02-21)

Metadata

Metadata

Assignees

No one assigned

    Labels

    -Zbuild-stdUnstable Cargo option: Compile the standard library yourself.A-linkageArea: linking into static, shared libraries and binariesC-bugCategory: This is a bug.O-wasmTarget: WASM (WebAssembly), http://webassembly.org/T-bootstrapRelevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap)T-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