-
Notifications
You must be signed in to change notification settings - Fork 189
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
wasi-sdk-20+threads sysroot does not include libc++/libc++abi #310
Comments
Will #301 resolve this? |
That would bring support for C++ threads - which is a great addition to C++/WASM community. But it would be nice to have some level of C++ support until we have #301 done (such as a non-threaded version). At least, it would enable WASM with C++ and shared-memory. I was able to copy C++'s libs from |
I was interested in how #301 might change things and indeed, when I retrieve the artifacts from #301 using $ tar ztf wasi-sysroot-19.5g1e4440799c2d.tar.gz | grep libc++
wasi-sysroot/lib/wasm32-wasi/libc++abi.a
wasi-sysroot/lib/wasm32-wasi/libc++experimental.a
wasi-sysroot/lib/wasm32-wasi/libc++.a
wasi-sysroot/lib/wasm32-wasi-threads/libc++abi.a
wasi-sysroot/lib/wasm32-wasi-threads/libc++experimental.a
wasi-sysroot/lib/wasm32-wasi-threads/libc++.a I think this is good evidence that we should merge #301, but let me try to answer some comments first.
Unless I'm missing something, the C++ support you're looking for is already present in the
I think we should try to test out the |
Any plan to publish a new pre-release that includes libc++? |
I think the release itself which needs #313 and #314 to merge is probably closer to happening--they need a review before I do anything (cc: @sunfishcode, @sbc100). |
Sorry for the delay on my feedback and thanks for the prompt responses!
The C++ support I need is in In other words, I was trying to link a WASM file that can accept a In theory, I would be able to share a
The "kinda-work" part is the short of: my code compiles and runs on a specific browser, using shared memory, without any visible weirdness but I can't properly run my spike tests because I'm facing different browser-specific issues. I had all sort of issues from different browsers when trying to actually use shared memory. Safari can't But my code is C++ without STL or threads inside the WASM container, so I don't need |
If you are targeting the web, and audio workers in particular, you might want to consider using emscripten. Its has builtin support for threads and workers and audio worklets: https://emscripten.org/docs/api_reference/wasm_audio_worklets.html |
Ok, I think this issue can be closed now that the |
Hi! I downloaded the
wasi-sdk-20+threads
pre-release sysroot file and it does not containlibc++.a
orlibc++abi.a
in its subfolder:$ tar ztf wasi-sysroot-20.0.threads.tar.gz | grep libc++ wasi-sysroot/lib/wasm32-wasi/libc++experimental.a wasi-sysroot/lib/wasm32-wasi/libc++abi.a wasi-sysroot/lib/wasm32-wasi/libc++.a
By comparison, this is the result for
libc
:$ tar ztf wasi-sysroot-20.0.threads.tar.gz | grep libc.a wasi-sysroot/lib/wasm32-wasi-threads/libc.a wasi-sysroot/lib/wasm32-wasi/libc.a
Is this intentional? If so, should we expect C++ support eventually?
The text was updated successfully, but these errors were encountered: