-
Notifications
You must be signed in to change notification settings - Fork 157
added documentation on how to build wasm packages in the docker container #3032
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
base: master
Are you sure you want to change the base?
added documentation on how to build wasm packages in the docker container #3032
Conversation
|
What's up with those last five commits (9f79670..7cb231b)?
If you want to be able to disable the |
7cb231b to
75e3258
Compare
|
sorry for that, they just were a personal experiment - they are gone now. I needed to debug a strange bug that occurred while building scryer-prolog to wasm on linux (if not built using clang, the wasm included some imports like |
|
I remember encountering exactly this bug (#2819). You need to have a C compiler that can cross compile to Wasm, because if not then these ring functions can't be compiled and linked. Clang can do that by default, but GCC can't by default and you need a special toolchain. Maybe it would be a good idea to document that (though I kinda remember documenting that already). |
Thank you - this really annoyed me the last few hours :D But I think this is an upstream bug, I am not yet sure where (somewhere in GCC? wasm-pack? ring? something tells me that this is not rings fault :)), if I have time I will try to triangulate it and report it upstream. |
|
It doesn't seem to be ring's fault, I've already reported to them back them: briansmith/ring#2345. |
Nothing big, just an explanation on how to build the wasm package inside the docker container, see here for the bug: #3028