Skip to content

'Referencing function in another module` error when compiling for target wasm32-unknown-emscripten (debug mode) #68637

Open
@georgeroman

Description

I'm trying to compile a Rust project that depends on the byte-slice-cast crate, but I'm encountering a strange error. The same error pops up if having block-padding as a dependency. You can find all the details in this issue: sdroege/byte-slice-cast#13. As mentioned there, this only happens when compiling in debug mode, while release builds succeed.

Some info about the environment:
rustc 1.40.0 (73528e339 2019-12-16)
emcc (Emscripten gcc/clang-like replacement) 1.39.1 ((unknown revision))

Metadata

Assignees

No one assigned

    Labels

    A-LLVMArea: Code generation parts specific to LLVM. Both correctness bugs and optimization-related issues.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!O-wasmTarget: WASM (WebAssembly), http://webassembly.org/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