You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$ clang cp-skip-unused.c -o demo.wasm
In file included from cp-skip-unused.c:171:
/opt/wasi-sdk/share/wasi-sysroot/include/signal.h:2:2: error: "wasm lacks signal support; to enable minimal signal emulation, compile with -D_WASI_EMULATED_SIGNAL and link with -lwasi-emulated-signal"
#error "wasm lacks signal support; to enable minimal signal emulation, \
^
cp-skip-unused.c:351:11: fatal error: 'pthread.h' file not found
#include <pthread.h>
^~~~~~~~~~~
2 errors generated.
How do I do this? I'm not sure what needs to be recompiled nor which compiler I needed to pass those flags to.
Thanks!
The text was updated successfully, but these errors were encountered:
Even with that minimal signal emulation, pthread.h won't be found. Wasm does not yet support threads so WASI does not support them, see also WebAssembly/WASI#296#22
kildom
pushed a commit
to kildom/clang-wasi-port
that referenced
this issue
Jul 14, 2021
This should no longer be an issue: use the wasm32-wasi-threads target that has been worked on in many PRs by various people over the last few months. A pre-release for this functionality is available in the wasi-sdk-20+threads artifacts. (More instructions for how to use this new target are available here).
Using wasi-sdk-12 on Linux:
How do I do this? I'm not sure what needs to be recompiled nor which compiler I needed to pass those flags to.
Thanks!
The text was updated successfully, but these errors were encountered: