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
could you try running dotnet msbuild src/WitBindgen/build/BytecodeAlliance.Componentize.DotNet.WitBindgen.targets /t:PrepareWasmSdks to run only the sdk installer?
$ dotnet build
Restore complete (0.5s)
You are using a preview version of .NET. See: https://aka.ms/dotnet-support-policy
MyWasmApp failed with 1 error(s) (2.3s) → bin\Debug\net10.0\wasi-wasm\MyWasmApp.dll
C:\Users\me\.nuget\packages\microsoft.dotnet.ilcompiler.llvm\10.0.0-alpha.1.25162.1\build\Microsoft.NETCore.Native.targets(409,5): error MSB3073: The command ""C:\Users\ray\.wasi-sdk\wasi-sdk-24.0/bin/wasm-component-ld" --version" exited with code 3.
Build failed with 1 error(s) in 3.4s
Running dotnet msbuild src/WitBindgen/build/BytecodeAlliance.Componentize.DotNet.WitBindgen.targets /t:PrepareWasmSdks ran without complaints.
@ray440 does wasm-component-ld exist at the path? Are you on Windows or WSL? looks like the file path might be getting mixed up?
I'm on Windows, in powershell. There are many problems: C:\Users\ray\.wasi-sdk\wasi-sdk-16.0\bin exists, but C:\Users\ray\.wasi-sdk\wasi-sdk-24.0 is empty.
In either case wasm-component-ld doesn't exist anywhere. How do I set this up properly?
Got it. I had to manually extract wasi-sdk-24.0-x86_64-windows.tar.gz from releases to the appropriate directory, C:\Users\{login-name}\.wasi-sdk\wasi-sdk-24.0.
C:\Users\ray.wasi-sdk\wasi-sdk-16.0\bin exists, but C:\Users\ray.wasi-sdk\wasi-sdk-24.0 is empty.
It seems there might be some issue if a previous various already exists on the system. It is interesting that the fold was empty. In CI we always start from scratch so it might be there is a bug here somewhere
Activity
snikeguo commentedon Mar 28, 2025
Solution: Extract and copy manually.
tar -xf ....temp path/was*....tar.gz
copying bin lib share to C:\Users\Administrator.wasi-sdk\wasi-sdk-24.0
jsturtevant commentedon Apr 8, 2025
what does your
.csprojlook like?could you try running
dotnet msbuild src/WitBindgen/build/BytecodeAlliance.Componentize.DotNet.WitBindgen.targets /t:PrepareWasmSdksto run only the sdk installer?ray440 commentedon Apr 23, 2025
I'm getting the same problem:
Running
dotnet msbuild src/WitBindgen/build/BytecodeAlliance.Componentize.DotNet.WitBindgen.targets /t:PrepareWasmSdksran without complaints.But I still can't find
wasm-component-ldjsturtevant commentedon Apr 24, 2025
@ray440 does
wasm-component-ldexist at the path? Are you on Windows or WSL? looks like the file path might be getting mixed up?ray440 commentedon Apr 24, 2025
I'm on Windows, in powershell. There are many problems:
C:\Users\ray\.wasi-sdk\wasi-sdk-16.0\binexists, butC:\Users\ray\.wasi-sdk\wasi-sdk-24.0is empty.In either case
wasm-component-lddoesn't exist anywhere. How do I set this up properly?ray440 commentedon Apr 28, 2025
Got it. I had to manually extract
wasi-sdk-24.0-x86_64-windows.tar.gzfrom releases to the appropriate directory,C:\Users\{login-name}\.wasi-sdk\wasi-sdk-24.0.jsturtevant commentedon May 12, 2025
It seems there might be some issue if a previous various already exists on the system. It is interesting that the fold was empty. In CI we always start from scratch so it might be there is a bug here somewhere