Skip to content
This repository has been archived by the owner on May 11, 2020. It is now read-only.

wasm-run: could not read module: open env.wasm: no such file or directory #64

Open
earth2378 opened this issue Jul 4, 2018 · 7 comments
Assignees
Labels

Comments

@earth2378
Copy link

earth2378 commented Jul 4, 2018

I built wasm file using Emscripten. After I got wasm file and run wagon, it shows that

wasm-run: could not read module: open env.wasm: no such file or directory

How to fix it?

Thanks

@sbinet sbinet self-assigned this Jul 4, 2018
@sbinet sbinet added the question label Jul 4, 2018
@sbinet
Copy link
Contributor

sbinet commented Jul 4, 2018

hi @earth2378,

thanks for the report.
could you please give a very simple reproducer? (ie: minimal instructions so we can tackle this?)

thanks a lot.

@andreimatei
Copy link

andreimatei commented Jul 4, 2018 via email

@sbinet
Copy link
Contributor

sbinet commented Jul 4, 2018

@andreimatei definitely an interest :)
(enjoy your holidays!)

@donpdonp
Copy link

same problem here, any sort of hello world that I might compile, ends up with wast/wasm that calls (import "env" ... ) or (import "stdlib" ...) and wasm-run dies with could not find stdlib.wasm, etc. I'm not sure how to provide these libraries to wasm-run.

@hunjixin
Copy link

@donpdonp and did you get a solution?

@guo-li-hua
Copy link

Can anyone provide an ongoing solution?

@hunjixin
Copy link

@guo-li-hua some simply code can work while specify high level opt flag while generate,but if you use something like memory op etc,still error.
i recommans to use rust ,very compatible for wasm running

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

No branches or pull requests

6 participants