-
Notifications
You must be signed in to change notification settings - Fork 3
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
Add documentation on how to build js.wasm
#5
Comments
Are you able to build a non-WASI SpiderMonkey JS shell? For a WASI build I have a mozconfig file with the following contents:
I can then do this: $ export MOZCONFIG=/my/mozconfig/file
$ ./mach build
...
$ wasmtime obj-wasm32-unknown-wasi/dist/bin/js
js> The configure flags used for our WASI CI build you can find here. |
Yes, that works withouth any issues.
I have something similar to what you've given (I'll have to experiment with your options).
And unfortunately here lies the major issue:
Thus, the major pain-point in building the WASM version is finding the right build tool combination, and it would be nice if you could document what are the expected tools (including the current versions you are using). For reference, for those using OpenSUSE Leap 15.6, I got the build running by having the following:
I've been trying to build SpiderMonkey from Firefox 128.6 ESR release. And here is the config I've been using that finally worked for me:
Which then is built with (mind the
Then collect the output:
|
Hm I expected |
I didn't choose to run I'll try to look into the bootstrap scripts to see what I am missing. |
Is there any way to compile without the From
|
I want to experiment with SpiderMonkey in a WASI environment, but via the CLI (i.e. running on my laptop on Linux).
I've managed to download a pre-built
js.wasm
as pointed by thedata.json
(like for examplehttps://firefoxci.taskcluster-artifacts.net/CyxYoAnjT2eDPE02QnbGQA/0/public/build/js.wasm
), and run that withwasmtime
, and it works.However, I want to be able to build my own
js.wasm
, and thus I've tried to follow the SpiderMonkey build information and peeked into thetaskcluster
files in the source code, however I've failed to actually get the code to build. (At the moment I'm blocked on how to instructclang
where the WASI-SDK lives.)Could you please write a short section in the readme on how to build the
js.wasm
?The text was updated successfully, but these errors were encountered: