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
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:
The wasm-component-ld distributed with wasi-sdk-22 didn't support --version, but the latest version does now. I plan on updating wasm-component-ld after #429 lands.
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: