Skip to content

wasm-ld regression in 3.1.64: symbol type mismatch #23501

Closed
llvm/llvm-project
#124619
@hoodmane

Description

@hoodmane

In Emscripten 3.1.64, we start getting errors in building several libraries like follows:

wasm-ld: error: symbol type mismatch: crc32_z                                   
>>> defined as WASM_SYMBOL_TYPE_SECTION in                                      
/root/repo/packages/.libs/lib/libnetcdf.a(libdispatch_la-dcrc32.o)              
>>> defined as WASM_SYMBOL_TYPE_FUNCTION in                                     
/root/repo/packages/.libs/lib/libhdf5.so

Here's what wasm-ld outputs as the --repro:
a.tar.gz

wasm-ld @response.txt works fine with wasm-ld 3.1.63 but breaks on 3.1.64.

Version of emscripten/emsdk:
emcc (Emscripten gcc/clang-like replacement + linker emulating GNU ld) 3.1.64 (a1fe390)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions