Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Emscripten compilation error #104

Open
mplsgrant opened this issue Jan 27, 2022 · 3 comments
Open

Emscripten compilation error #104

mplsgrant opened this issue Jan 27, 2022 · 3 comments

Comments

@mplsgrant
Copy link
Contributor

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!

@kallewoof
Copy link
Member

Your research link is leading to an error page.

I haven't done any emscripten compiling for a good while (someone asked for it years ago but it's not been actively maintained since).

I'll see if I can get it working, but no promises.

@mplsgrant
Copy link
Contributor Author

Thanks for taking a look.

Here's another copy of the research link (which is actually just a google group discussion).

@kallewoof
Copy link
Member

I'm not making a lot of progress on this one for now. If you (or someone?) figures something out, please let me know. I'll probably look again but not sure when.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants