Repository navigation
CI error on WASI on 8.0: libxml2.so.2: cannot open shared object file: No such file or directory #128772
Description
Build Information
Build: https://dev.azure.com/dnceng-public/cbb18261-c48f-4abb-8651-8cdcb5474649/_build/results?buildId=1439242
Build error leg or test failing: Wasi.Build.Tests.WasiTemplateTests.ConsolePublishAndRunForSingleFileBundle
Pull request: #126495
Error Message
DO NOT USE JSON BELOW IF THIS IS A BUILD BREAK otherwise build analysis will allow pull requests to merge that break the build worse. For a build break, do not use this issue form. Make a regular new issue.
Fill the error message using step by step known issues guidance.
{
"ErrorMessage": "libxml2.so.2: cannot open shared object file: No such file or directory",
"BuildRetry": false,
"ExcludeConsoleLog": false
} Wasi.Build.Tests.WasiTemplateTests.ConsolePublishAndRunForSingleFileBundle(config: "Debug", relinking: False, invariantTimezone: False) [FAIL]
Build process exited with non-zero exit code: 1
Stack Trace:
/_/src/mono/wasi/Wasi.Build.Tests/BuildTestBase.cs(433,0): at Wasm.Build.Tests.BuildTestBase.AssertBuild(String args, String label, Boolean expectSuccess, IDictionary`2 envVars, Nullable`1 timeoutMs)
/_/src/mono/wasi/Wasi.Build.Tests/BuildTestBase.cs(245,0): at Wasm.Build.Tests.BuildTestBase.BuildProject(BuildArgs buildArgs, String id, BuildProjectOptions options)
/_/src/mono/wasi/Wasi.Build.Tests/WasiTemplateTests.cs(108,0): at Wasi.Build.Tests.WasiTemplateTests.ConsolePublishAndRunForSingleFileBundle(String config, Boolean relinking, Boolean invariantTimezone)
at System.RuntimeMethodHandle.InvokeMethod(Object target, Void** arguments, Signature sig, Boolean isConstructor)
at System.Reflection.MethodBaseInvoker.InvokeDirectByRefWithFewArgs(Object obj, Span`1 copyOfArgs, BindingFlags invokeAttr)
Output:
[] Executing (Captured Output) - /root/helix/work/workitem/e/dotnet-latest/dotnet new wasiconsole - in pwd /root/helix/work/workitem/e/wbt artifacts/Debug_mopmctri_pcl
[] The template "Wasi Console App" was created successfully.
[]
-------- Building ---------
Binlog path: /root/helix/work/workitem/uploads/xharness-output/logs/Debug_mopmctri_pcl/Debug_mopmctri_pcl.binlog
Building Debug_mopmctri_pcl in /root/helix/work/workitem/e/wbt artifacts/Debug_mopmctri_pcl
Running /root/helix/work/workitem/e/dotnet-latest/dotnet publish -p:WasmBuildOnlyAfterPublish=true /p:Configuration=Debug /bl:"/root/helix/work/workitem/uploads/xharness-output/logs/Debug_mopmctri_pcl/Debug_mopmctri_pcl.binlog" /nologo /v:minimal
WorkingDirectory: /root/helix/work/workitem/e/wbt artifacts/Debug_mopmctri_pcl
Setting environment variables for execution:
DOTNET_ROOT = /root/helix/work/workitem/e/dotnet-latest
DOTNET_INSTALL_DIR = /root/helix/work/workitem/e/dotnet-latest
DOTNET_MULTILEVEL_LOOKUP = 0
DOTNET_SKIP_FIRST_TIME_EXPERIENCE = 1
PATH = /root/helix/work/workitem/e/dotnet-latest:./dotnet-latest:/root/helix/work/correlation/dotnet-latest:/root/helix/work/correlation/xharness-cli:/root/helix/work/correlation/dotnet-cli:/root/helix/work/correlation/wasi-sdk:/root/helix/work/correlation/wasmtime:/home/helixbot/.jsvu/bin:/home/helixbot/.vsts-env/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
EM_WORKAROUND_PYTHON_BUG_34780 = 1
WASI_SDK_PATH = /root/helix/work/correlation/build/wasi-sdk
NUGET_PACKAGES = /root/helix/work/workitem/e/wbt artifacts/nuget/Debug_mopmctri_pcl
[Debug_mopmctri_pcl] Determining projects to restore...
[Debug_mopmctri_pcl] Restored /root/helix/work/workitem/e/wbt artifacts/Debug_mopmctri_pcl/Debug_mopmctri_pcl.csproj (in 638 ms).
[Debug_mopmctri_pcl] Debug_mopmctri_pcl -> /root/helix/work/workitem/e/wbt artifacts/Debug_mopmctri_pcl/bin/Debug/net8.0/wasi-wasm/Debug_mopmctri_pcl.dll
[Debug_mopmctri_pcl] ** MicrosoftNetCoreAppRuntimePackDir : '/root/helix/work/workitem/e/dotnet-latest/packs/Microsoft.NETCore.App.Runtime.Mono.wasi-wasm/8.0.28'
[Debug_mopmctri_pcl] Optimizing assemblies for size. This process might take a while.
[Debug_mopmctri_pcl] Debug_mopmctri_pcl -> /root/helix/work/workitem/e/wbt artifacts/Debug_mopmctri_pcl/bin/Debug/net8.0/wasi-wasm/publish/
[Debug_mopmctri_pcl] Debug_mopmctri_pcl -> /root/helix/work/workitem/e/wbt artifacts/Debug_mopmctri_pcl/bin/Debug/net8.0/wasi-wasm/Debug_mopmctri_pcl.dll
[Debug_mopmctri_pcl] ** MicrosoftNetCoreAppRuntimePackDir : '/root/helix/work/workitem/e/dotnet-latest/packs/Microsoft.NETCore.App.Runtime.Mono.wasi-wasm/8.0.28'
[Debug_mopmctri_pcl] Debug_mopmctri_pcl -> /root/helix/work/workitem/e/wbt artifacts/Debug_mopmctri_pcl/bin/Debug/net8.0/wasi-wasm/publish/
[Debug_mopmctri_pcl] MicrosoftNetCoreAppRuntimePackRidNativeDir: /root/helix/work/workitem/e/dotnet-latest/packs/Microsoft.NETCore.App.Runtime.Mono.wasi-wasm/8.0.28/runtimes/wasi-wasm/native/
[Debug_mopmctri_pcl] Performing WASI SDK build: "/root/helix/work/correlation/build/wasi-sdk/bin/clang" "@/root/helix/work/workitem/e/wbt artifacts/Debug_mopmctri_pcl/obj/Debug/net8.0/wasi-wasm/wasm/for-publish/clang-compile.rsp"
[Debug_mopmctri_pcl] /root/helix/work/correlation/build/wasi-sdk/bin/wasm-ld: error while loading shared libraries: libxml2.so.2: cannot open shared object file: No such file or directory
[Debug_mopmctri_pcl] clang : error : unable to execute command: No such file or directory [/root/helix/work/workitem/e/wbt artifacts/Debug_mopmctri_pcl/Debug_mopmctri_pcl.csproj]
[Debug_mopmctri_pcl] clang : error : linker command failed due to signal (use -v to see invocation) [/root/helix/work/workitem/e/wbt artifacts/Debug_mopmctri_pcl/Debug_mopmctri_pcl.csproj]
[Debug_mopmctri_pcl] /root/helix/work/workitem/e/dotnet-latest/packs/Microsoft.NET.Runtime.WebAssembly.Wasi.Sdk/8.0.28/Sdk/WasiApp.Native.targets(478,5): error MSB3073: The command ""/root/helix/work/correlation/build/wasi-sdk/bin/clang" "@/root/helix/work/workitem/e/wbt artifacts/Debug_mopmctri_pcl/obj/Debug/net8.0/wasi-wasm/wasm/for-publish/clang-compile.rsp"" exited with code 255. [/root/helix/work/workitem/e/wbt artifacts/Debug_mopmctri_pcl/Debug_mopmctri_pcl.csproj]
Known issue validation
Build: 🔎 https://dev.azure.com/dnceng-public/public/_build/results?buildId=1439242
Error message validated: [libxml2.so.2: cannot open shared object file: No such file or directory]
Result validation: ✅ Known issue matched with the provided build.
Validation performed at: 5/29/2026 3:05:23 PM UTC
Report
| Build | Repository | Test | Pull Request |
|---|---|---|---|
| 1442904 | dotnet/runtime | Wasi.Build.Tests.WasiTemplateTests.ConsolePublishAndRunForSingleFileBundle | #128831 |
| 1439242 | dotnet/runtime | Workloads-Wasi.Build.Tests.WorkItemExecution | #126495 |
Summary
| 24-Hour Hit Count | 7-Day Hit Count | 1-Month Count |
|---|---|---|
| 1 | 2 | 2 |
Activity
dotnet-policy-service commentedon May 29, 2026
Tagging subscribers to this area: @akoeplinger, @matouskozak, @simonrozsival
See info in area-owners.md if you want to be subscribed.
svick commentedon May 29, 2026
According to copilot, this was caused by #126528, which updated images to Ubuntu 26.04:
cc: @richlander
svick commentedon May 29, 2026
As far as I can tell, this test was disabled on .Net 10+ by #117936. So I guess it makes sense to disable it on .Net 8 and 9 as well.
cc: @maraf
dotnet-policy-service commentedon May 29, 2026
Tagging subscribers to 'arch-wasm': @lewing, @pavelsavara
See info in area-owners.md if you want to be subscribed.
pavelsavara commentedon May 29, 2026
Yes, WASI target is not a product, we can disable it.
Disable WASI CI in release/9.0-staging (fixes #128772)
[backport/9.0-staging] Disable WASI CI (#128775)
[release/8.0-staging] Disable WASI CI
[release/8.0-staging] Disable WASI CI (#128858)
akoeplinger commentedon Jun 1, 2026
disabled in 8.0/9.0