-
-
Notifications
You must be signed in to change notification settings - Fork 14.3k
Closed
Labels
A-allocatorsArea: Custom and system allocatorsArea: Custom and system allocatorsA-linkageArea: linking into static, shared libraries and binariesArea: linking into static, shared libraries and binariesC-bugCategory: This is a bug.Category: This is a bug.O-wasmTarget: WASM (WebAssembly), http://webassembly.org/Target: WASM (WebAssembly), http://webassembly.org/T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.Relevant to the compiler team, which will review and decide on the PR/issue.
Description
I tried this code: https://github.com/Spxg/bisect/tree/master/alloc_signature_mismatch
output:
$ RUSTFLAGS="-Dwarnings" cargo build --target wasm32-unknown-unknown
Compiling alloc_signature_mismatch v0.1.0 (/home/uharsn/repo/bisect/alloc_signature_mismatch)
error: linker stderr: rust-lld: function signature mismatch: _RNvCsiGVaDesi5rv_7___rustc26___rust_alloc_error_handler
>>> defined as (i32, i32) -> void in /home/uharsn/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/wasm32-unknown-unknown/lib/liballoc-91c5b0fca353e771.rlib(alloc-9
1c5b0fca353e771.alloc.29ddec65eff1713a-cgu.0.rcgu.o)
>>> defined as () -> void in /home/uharsn/repo/bisect/alloc_signature_mismatch/target/wasm32-unknown-unknown/debug/deps/alloc_signature_mismatch.c6hsnju35xosj8l1g7cz5a5c7.0xud13o
.rcgu.o
rust-lld: function signature mismatch: _RNvCsiGVaDesi5rv_7___rustc25___rdl_alloc_error_handler
>>> defined as () -> void in /home/uharsn/repo/bisect/alloc_signature_mismatch/target/wasm32-unknown-unknown/debug/deps/alloc_signature_mismatch.c6hsnju35xosj8l1g7cz5a5c7.0xud13o
.rcgu.o
>>> defined as (i32, i32) -> void in /home/uharsn/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/wasm32-unknown-unknown/lib/liballoc-91c5b0fca353e771.rlib(alloc-9
1c5b0fca353e771.alloc.29ddec65eff1713a-cgu.0.rcgu.o)
|
= note: `-D linker-messages` implied by `-D warnings`
= help: to override `-D warnings` add `#[allow(linker_messages)]`
error: could not compile `alloc_signature_mismatch` (lib) due to 1 previous errorbisect:
searched nightlies: from nightly-2025-09-13 to nightly-2025-10-24
regressed nightly: nightly-2025-10-16
searched commit range: https://github.com/rustlang/rust/compare/844264adda6f41ca6d0d61c4bcac0f263fc5072f...57ef8d642d21965304bde849bab4f389b4353e27
regressed commit: https://github.com/rust-lang/rust/commit/235a4c083eb2a2bfe8779d211c3232f39396de00
Introduced by #147526
Meta
rustc --version --verbose:
rustc 1.92.0 (ded5c06cf 2025-12-08)
binary: rustc
commit-hash: ded5c06cf21d2b93bffd5d884aa6e96934ee4234
commit-date: 2025-12-08
host: x86_64-unknown-linux-gnu
release: 1.92.0
LLVM version: 21.1.3
Metadata
Metadata
Assignees
Labels
A-allocatorsArea: Custom and system allocatorsArea: Custom and system allocatorsA-linkageArea: linking into static, shared libraries and binariesArea: linking into static, shared libraries and binariesC-bugCategory: This is a bug.Category: This is a bug.O-wasmTarget: WASM (WebAssembly), http://webassembly.org/Target: WASM (WebAssembly), http://webassembly.org/T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.Relevant to the compiler team, which will review and decide on the PR/issue.