Repository navigation
build failed #87
Description
Activity
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
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?I'm getting the same problem:
$ 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.4sRunning
dotnet msbuild src/WitBindgen/build/BytecodeAlliance.Componentize.DotNet.WitBindgen.targets /t:PrepareWasmSdksran without complaints.But I still can't find
wasm-component-ld@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 does
wasm-component-ldexist 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\binexists, butC:\Users\ray\.wasi-sdk\wasi-sdk-24.0is empty.
In either casewasm-component-lddoesn't exist anywhere. How do I set this up properly?How do I set this up properly?
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.Reacted by James SturtevantC:\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
PS E:> dotnet build MyApp
还原完成(0.4)
你正在使用 .NET 的预览版。请参阅 https://aka.ms/dotnet-support-policy
MyApp 失败,出现 1 错误 (0.7 秒) → E:\MyApp\bin\Debug\net10.0\wasi-wasm\MyApp.dll
C:\Users\Administrator.nuget\packages\microsoft.dotnet.ilcompiler.llvm\10.0.0-alpha.1.25162.1\build\Microsoft.NETCore.Native.targets(409,5): error MSB3073: 命令“"C:\Users\Administrator.wasi-sdk\wasi-sdk-24.0/bin/wasm-component-ld" --version”已退出,代码为 3。
在 1.5 秒内生成 失败,出现 1 错误