-
Notifications
You must be signed in to change notification settings - Fork 177
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
Linker error when setting target to wasm32-wasip2 #433
Comments
The |
If you'd like you can build the latest source of the binary itself and configure that to be used instead |
I believe this is fixed in wasi-sdk-23.0, so closing. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi,
I encounter this error when trying to compile some C code to wasm. To reproduce this error:
So basically it fails to check the version of linker when I set --target=wasm32-wasip2.
However, if I set the target to wasm32-wasi-threads, it works fine:
I do notice that when setting target to "wasm32-wasi-threads" it uses "wasm-ld", while "wasm-component-ld" is used when setting target to "wasm32-wasip2". I guess there might be something related to #426
Also, I'm using clang from wasi-sdk-22.0 with sysroot built from source with the latest wasi-libc repo. Not sure if it has anything to do with this error. But even if I specify --sysroot to "wasi-libc/sysroot", same error happens.
I just want to understand why this is happening and how to avoid this when using wasm32-wasip2 as target. Because this version check is a part of my project. Thanks a lot!
The text was updated successfully, but these errors were encountered: