Skip to content

Error duplicate symbol when compiling for wasm32 target #438

Open
@josediegorobles

Description

@josediegorobles

Hi,

I'm using last version of rust-bitcoin and I have several duplicate symbol errors when I try to compile for wasm32 target:

LIke that:

note: rust-lld: error: duplicate symbol: WASM32_INT_SIZE
[104](https://github.com/diba-io/bitmask-core/runs/6238804096?check_suite_focus=true#step:8:104)
          >>> defined in /home/runner/work/bitmask-core/bitmask-core/target/wasm32-unknown-unknown/debug/deps/libsecp256k1_sys-dc224e0595a95c29.rlib(precomputed_ecmult_gen.o)
[105](https://github.com/diba-io/bitmask-core/runs/6238804096?check_suite_focus=true#step:8:105)
          >>> defined in /home/runner/work/bitmask-core/bitmask-core/target/wasm32-unknown-unknown/debug/deps/libsecp256k1_sys-dc224e0595a95c29.rlib(precomputed_ecmult.o)
[106](https://github.com/diba-io/bitmask-core/runs/6238804096?check_suite_focus=true#step:8:106)
          
[107](https://github.com/diba-io/bitmask-core/runs/6238804096?check_suite_focus=true#step:8:107)
          rust-lld: error: duplicate symbol: WASM32_INT_ALIGN
[108](https://github.com/diba-io/bitmask-core/runs/6238804096?check_suite_focus=true#step:8:108)
          >>> defined in /home/runner/work/bitmask-core/bitmask-core/target/wasm32-unknown-unknown/debug/deps/libsecp256k1_sys-dc224e0595a95c29.rlib(precomputed_ecmult_gen.o)
[109](https://github.com/diba-io/bitmask-core/runs/6238804096?check_suite_focus=true#step:8:109)
          >>> defined in /home/runner/work/bitmask-core/bitmask-core/target/wasm32-unknown-unknown/debug/deps/libsecp256k1_sys-dc224e0595a95c29.rlib(precomputed_ecmult.o)

You can see in build phase here:

https://github.com/diba-io/bitmask-core/runs/6238804096?check_suite_focus=true

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