-
Notifications
You must be signed in to change notification settings - Fork 459
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
v1.0.102 breaks wasm builds with trunk #1113
Comments
Both use ubuntu, so I guess clang on Linux can find the wasi root itself? Or maybe clang on Linux already has the wasi libraries required. Or perhaps it's just that Ubuntu-latest runner already has it installed and configured. |
* Fix compilation for wasm: env WASI_SYSROOT should be optional On ubuntu-latest github action runner, it used to work without the environment variable. Fixed #1109 #1113 * Add wasm32-unknown targets (#1115) --------- Co-authored-by: Kuuuube <[email protected]>
The issue here is probably that wasm32-u known-unknown is web assembly and not WASI, so we don't need WASI sysroot at all I think, not sure how to compile webassembly correctly though, it does not support exception either so these changes should be working I think |
Yeah but it also happened for wasip1, so I think we should make the |
Yes, that's probably best |
This might be totally unrelated, and I don't know anything about the motivation for these changes, but in #1105 the Specifically:
was replaced by |
This was an issue on my side, but it is now fixed with #1115 |
cc @Kuuuube Can you try 1.0.103 to see if it fixes your issue? |
It works! Thanks for getting to this so fast. |
I depend on cc through zstd-safe (zstd-safe -> zstd-sys -> cc). v1.0.102 causes wasm builds through trunk (ex:
trunk serve
) to display the following error when accessing the wasm webpage.I've tested manually reverting cc through
Cargo.lock
and a clean build. In my testing, cc v1.0.101 does not have this issue.Possibly related to #1105 and building with
wasm32-unknown-unknown
target.Repo and build steps for reference (I've committed the cargo lock with v1.0.101 to mitigate this issue currently):
https://github.com/Kuuuube/hentaigana_input
https://github.com/Kuuuube/hentaigana_input/blob/main/.github/workflows/pages.yml
The text was updated successfully, but these errors were encountered: