Skip to content

Emscripten compilation error #104

@mplsgrant

Description

@mplsgrant

I receive the following compilation error when compiling to Emscripten as per the instructions here:

wasm-ld: error: --shared-memory is disallowed by btcdeb-instance.o because it was not compiled with 'atomics' or 'bulk-memory' features.

My Emscripten SDK is at the following version:

$ emcc -v
emcc (Emscripten gcc/clang-like replacement + linker emulating GNU ld) 3.1.2 (a77b559a8b40b7e89fc8c17e41034128df9543e4)
clang version 14.0.0 (https://github.com/llvm/llvm-project 782c0dd1a1c235afb09a34e7da4a1267ead14765)
Target: wasm32-unknown-emscripten
Thread model: posix

I attempted the compilation on both the master branch and the 0.3.20 tag.

A bit of research led me to believe that the makefile could have an issue with pthread flags; however, I don't have the ability to pursue that lead meaningfully. Any help would be greatly appreciated. Thank you!

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions