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
The four crates above need access to a WASI SDK to compile some vendored C source code to the wasm32-wasi target. Unfortunately I can't find an Ubuntu package for the WASI SDK. There is a wasi-libc package but that's not sufficient since Clang also requires an additional runtime archive file to be installed and that archive file is not part of an Ubuntu package.
One could also use a standard Clang installation, build a sysroot from the sources mentioned above, and compile with --target=wasm32-wasi --sysroot=/path/to/sysroot. In this scenario, one would also need the libclang_rt.builtins-wasm32.a objects available separately in the release downloads which must be extracted into $CLANG_INSTALL_DIR/$CLANG_VERSION/lib/wasi/.
The compiled WASI SDK is also too large to vendor given cargo's size limits on crates.
I'm not sure how to proceed.
The text was updated successfully, but these errors were encountered:
I've opened #137 to add a couple packages. I think with those two packages and vendoring the libclang_rt.builtins-wasm32.a archive in the crate, it should be possible to build the C code. It worked in an Ubuntu 22.02 Docker container. I did have to copy the system LLVM to the crate's OUT_DIR to install the vendored archive and use that copy of clang and llvm-ar to build the code but it worked.
Affected crates: quickjs-wasm-sys, quickjs-wasm-rs, javy, javy-apis
The four crates above need access to a WASI SDK to compile some vendored C source code to the wasm32-wasi target. Unfortunately I can't find an Ubuntu package for the WASI SDK. There is a
wasi-libc
package but that's not sufficient since Clang also requires an additional runtime archive file to be installed and that archive file is not part of an Ubuntu package.From https://github.com/WebAssembly/wasi-sdk:
The compiled WASI SDK is also too large to vendor given cargo's size limits on crates.
I'm not sure how to proceed.
The text was updated successfully, but these errors were encountered: