If you're not able to provide a testcase, or your full project, it might
help to know what is referring to nanosleep - can build with -g and then
run wasm-dis on the wasm file, to see where it is called (not sure that
would be enough to figure this out, but it might).

On Mon, Nov 12, 2018 at 7:09 PM <[email protected]> wrote:

> I was trying to build and run a WASM/pthread build, however at run time it
> threw the error: "LinkError: WebAssembly Instantiation: Import #34
> module="env" function="_nanosleep" error: function import requires a
> callable".
>
> I was unable to reproduce this on a smaller scale, however it seems to be
> that WebAssembly is for some reason trying to link to a javascript
> "_nanosleep" function that is not provided by "Module.asmLibraryArg".
>
> When I attempted to reproduce it, the "_nanosleep" function was still not
> provided but WebAssemby never complained. I'm guessing that's because it
> never is requested (even though I was using it), so I am unsure what causes
> it to be requested in one case but not in  another.
>
> If there's is any more information required or anything else you want me
> to test, let me know. I will continue looking into this to see if I can
> find more information.
>
> Thanks in advance,
> Joshua Minter
>
> --
> You received this message because you are subscribed to the Google Groups
> "emscripten-discuss" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"emscripten-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to