Skip to content

[8.0] Build failure in Workloads-NoWebcil-Wasm.Build.NativeRebuild.Tests.OptimizationFlagChangeTests #106663

@carlossanlop

Description

@carlossanlop

Build Information

Build: https://dev.azure.com/dnceng-public/public/_build/results?buildId=779736
Build error leg or test failing: Workloads-NoWebcil-Wasm.Build.NativeRebuild.Tests.OptimizationFlagChangeTests

Error Message

{
  "ErrorMessage" : ["WasmApp.Native.targets(388,5): error : Failed to compile /root/helix/work/workitem/e/wbt artifacts/.*/obj/Release/net8.0/browser-wasm/wasm/for-publish/aot-instances.dll.bc"]
  "BuildRetry" : false,
  "ExcludeConsoleLog" : false
}
============== DELETING THE BUILDS =============
    Wasm.Build.NativeRebuild.Tests.OptimizationFlagChangeTests.OptimizationFlagChange(buildArgs: BuildArgs { ProjectName = placeholder, Config = Release, AOT = True, ProjectFileContents = placeholder, ExtraBuildArgs =  }, cflags: "", ldflags: "/p:EmccLinkOptimizationFlag=-O0", host: Chrome, id: "5goorc3q_p2h") [FAIL]
       Expected 0 exit code but got 1: /root/helix/work/workitem/e/dotnet-latest/dotnet publish -bl:/root/helix/work/workitem/uploads/xharness-output/logs/5goorc3q_p2h/5goorc3q_p2h-publish.binlog -p:Configuration=Release -nr:false /p:_WasmDevel=false   /p:EmccLinkOptimizationFlag=-O0 
      Standard Output:
      [] MSBuild version 17.8.3+195e7f5a3 for .NET
      []   Determining projects to restore...
      []   All projects are up-to-date for restore.
      []   rebuild_flags_Release -> /root/helix/work/workitem/e/wbt artifacts/5goorc3q_p2h/bin/Release/net8.0/browser-wasm/rebuild_flags_Release.dll
      []   ** MicrosoftNetCoreAppRuntimePackDir : '/root/helix/work/workitem/e/dotnet-latest/packs/Microsoft.NETCore.App.Runtime.Mono.browser-wasm/8.0.9'
      []   rebuild_flags_Release -> /root/helix/work/workitem/e/wbt artifacts/5goorc3q_p2h/bin/Release/net8.0/browser-wasm/publish/
      []   rebuild_flags_Release -> /root/helix/work/workitem/e/wbt artifacts/5goorc3q_p2h/bin/Release/net8.0/browser-wasm/rebuild_flags_Release.dll
      []   ** MicrosoftNetCoreAppRuntimePackDir : '/root/helix/work/workitem/e/dotnet-latest/packs/Microsoft.NETCore.App.Runtime.Mono.browser-wasm/8.0.9'
      []   rebuild_flags_Release -> /root/helix/work/workitem/e/wbt artifacts/5goorc3q_p2h/bin/Release/net8.0/browser-wasm/publish/
      []   AOT'ing 3 assemblies
      []   Everything is up-to-date, nothing to precompile
      []   Compiling assembly bitcode files with -O0 ...
      []   [1/4] rebuild_flags_Release.dll.bc -> rebuild_flags_Release.dll.o [took 0.191s]
      []   [2/4] System.Runtime.InteropServices.JavaScript.dll.bc -> System.Runtime.InteropServices.JavaScript.dll.o [took 0.405s]
      []   [3/4] System.Private.CoreLib.dll.bc -> System.Private.CoreLib.dll.o [took 14.567s]
      [] /root/helix/work/workitem/e/dotnet-latest/packs/Microsoft.NET.Runtime.WebAssembly.Sdk/8.0.9/Sdk/WasmApp.Native.targets(388,5): error : Failed to compile /root/helix/work/workitem/e/wbt artifacts/5goorc3q_p2h/obj/Release/net8.0/browser-wasm/wasm/for-publish/aot-instances.dll.bc -> /root/helix/work/workitem/e/wbt artifacts/5goorc3q_p2h/obj/Release/net8.0/browser-wasm/wasm/for-publish/aot-instances.dll.o [/root/helix/work/workitem/e/wbt artifacts/5goorc3q_p2h/rebuild_flags_Release.csproj]
      [] /root/helix/work/workitem/e/dotnet-latest/packs/Microsoft.NET.Runtime.WebAssembly.Sdk/8.0.9/Sdk/WasmApp.Native.targets(388,5): error : emcc: warning: linker setting ignored during compilation: 'EXPORT_ES6' [-Wunused-command-line-argument] [/root/helix/work/workitem/e/wbt artifacts/5goorc3q_p2h/rebuild_flags_Release.csproj]
      [] /root/helix/work/workitem/e/dotnet-latest/packs/Microsoft.NET.Runtime.WebAssembly.Sdk/8.0.9/Sdk/WasmApp.Native.targets(388,5): error : Killed [/root/helix/work/workitem/e/wbt artifacts/5goorc3q_p2h/rebuild_flags_Release.csproj]
      [] /root/helix/work/workitem/e/dotnet-latest/packs/Microsoft.NET.Runtime.WebAssembly.Sdk/8.0.9/Sdk/WasmApp.Native.targets(388,5): error : emcc: error: '/root/helix/work/workitem/e/dotnet-latest/packs/Microsoft.NET.Runtime.Emscripten.3.1.34.Sdk.linux-x64/8.0.9/tools/bin/clang++ -target wasm32-unknown-emscripten -fvisibility=default -mllvm -combiner-global-alias-analysis=false -mllvm -wasm-enable-sjlj -mllvm -disable-lsr -DEMSCRIPTEN --sysroot=/root/helix/work/workitem/e/dotnet-latest/packs/Microsoft.NET.Runtime.Emscripten.3.1.34.Cache.linux-x64/8.0.9/tools/emscripten/cache/sysroot -Xclang -iwithsysroot/include/fakesdl -Xclang -iwithsysroot/include/compat -msimd128 -O0 -fwasm-exceptions -c "/root/helix/work/workitem/e/wbt artifacts/5goorc3q_p2h/obj/Release/net8.0/browser-wasm/wasm/for-publish/aot-instances.dll.bc" -o /tmp/tmp1MP2wI.tmp' failed (returned 137) [took 262.185s] [/root/helix/work/workitem/e/wbt artifacts/5goorc3q_p2h/rebuild_flags_Release.csproj]
      [] 
      [] Workload updates are available. Run `dotnet workload list` for more information.
      
      Stack Trace:
        /_/src/mono/wasm/Wasm.Build.Tests/Common/CommandResult.cs(44,0): at Wasm.Build.Tests.CommandResult.EnsureExitCode(Int32 expectedExitCode, String messagePrefix, Boolean suppressOutput)
        /_/src/mono/wasm/Wasm.Build.Tests/Common/CommandResult.cs(28,0): at Wasm.Build.Tests.CommandResult.EnsureSuccessful(String messagePrefix, Boolean suppressOutput)
        /_/src/mono/wasm/Wasm.Build.Tests/BuildTestBase.cs(165,0): at Wasm.Build.Tests.BuildTestBase.BuildProjectWithoutAssert(String id, String config, BuildProjectOptions buildProjectOptions, String[] extraArgs)
        /_/src/mono/wasm/Wasm.Build.Tests/TestMainJsTestBase.cs(66,0): at Wasm.Build.Tests.TestMainJsTestBase.BuildProject(BuildArgs buildArgs, String id, BuildProjectOptions options)
        /_/src/mono/wasm/Wasm.Build.Tests/NativeRebuildTests/NativeRebuildTestsBase.cs(86,0): at Wasm.Build.NativeRebuild.Tests.NativeRebuildTestsBase.Rebuild(Boolean nativeRelink, Boolean invariant, BuildArgs buildArgs, String id, String extraProperties, String extraBuildArgs, String verbosity)
        /_/src/mono/wasm/Wasm.Build.Tests/NativeRebuildTests/OptimizationFlagChangeTests.cs(63,0): at Wasm.Build.NativeRebuild.Tests.OptimizationFlagChangeTests.OptimizationFlagChange(BuildArgs buildArgs, String cflags, String ldflags, RunHost host, String id)
           at InvokeStub_OptimizationFlagChangeTests.OptimizationFlagChange(Object, Span`1)
           at System.Reflection.MethodBaseInvoker.InvokeWithManyArgs(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
      Output:
        
        ** -------- publish -------- **
        
        Binlog path: /root/helix/work/workitem/uploads/xharness-output/logs/5goorc3q_p2h/5goorc3q_p2h-publish.binlog
        [] Executing (Captured Output) - /root/helix/work/workitem/e/dotnet-latest/dotnet publish -bl:/root/helix/work/workitem/uploads/xharness-output/logs/5goorc3q_p2h/5goorc3q_p2h-publish.binlog -p:Configuration=Release -nr:false /p:_WasmDevel=false  -  in pwd /root/helix/work/workitem/e/wbt artifacts/5goorc3q_p2h
        	[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:/__w/1/s/artifacts/bin/chromedriver/chromedriver_linux64:/root/helix/work/correlation/dotnet-latest:/root/helix/work/correlation/xharness-cli:/root/helix/work/correlation/dotnet-cli:/root/helix/work/correlation/chrome-linux:/root/helix/work/correlation/chromedriver_linux64:/home/helixbot/.jsvu/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
        	[EM_WORKAROUND_PYTHON_BUG_34780] = 1
        	[WasmEnableWebCil] = false
        	[NUGET_PACKAGES] = /root/helix/work/workitem/e/wbt artifacts/nuget/5goorc3q_p2h
        [] MSBuild version 17.8.3+195e7f5a3 for .NET
        []   Determining projects to restore...
        []   Restored /root/helix/work/workitem/e/wbt artifacts/5goorc3q_p2h/rebuild_flags_Release.csproj (in 686 ms).
        []   rebuild_flags_Release -> /root/helix/work/workitem/e/wbt artifacts/5goorc3q_p2h/bin/Release/net8.0/browser-wasm/rebuild_flags_Release.dll
        []   ** MicrosoftNetCoreAppRuntimePackDir : '/root/helix/work/workitem/e/dotnet-latest/packs/Microsoft.NETCore.App.Runtime.Mono.browser-wasm/8.0.9'
        []   Optimizing assemblies for size. This process might take a while.
        []   rebuild_flags_Release -> /root/helix/work/workitem/e/wbt artifacts/5goorc3q_p2h/bin/Release/net8.0/browser-wasm/publish/
        []   rebuild_flags_Release -> /root/helix/work/workitem/e/wbt artifacts/5goorc3q_p2h/bin/Release/net8.0/browser-wasm/rebuild_flags_Release.dll
        []   ** MicrosoftNetCoreAppRuntimePackDir : '/root/helix/work/workitem/e/dotnet-latest/packs/Microsoft.NETCore.App.Runtime.Mono.browser-wasm/8.0.9'
        []   rebuild_flags_Release -> /root/helix/work/workitem/e/wbt artifacts/5goorc3q_p2h/bin/Release/net8.0/browser-wasm/publish/
        []   AOT'ing 3 assemblies
        []   [1/4] rebuild_flags_Release.dll -> rebuild_flags_Release.dll.bc
        []   [2/4] System.Runtime.InteropServices.JavaScript.dll -> System.Runtime.InteropServices.JavaScript.dll.bc
        []   [3/4] System.Private.CoreLib.dll -> System.Private.CoreLib.dll.bc
        []   [4/4] aot-instances.dll -> aot-instances.dll.bc
        []   Compiling native assets with emcc with -Oz. This may take a while ...
        []   [1/3] pinvoke.c -> pinvoke.o [took 0.250s]
        []   [2/3] driver.c -> driver.o [took 0.375s]
        []   [3/3] corebindings.c -> corebindings.o [took 0.183s]
        []   Compiling assembly bitcode files with -O2 ...
        []   [1/4] rebuild_flags_Release.dll.bc -> rebuild_flags_Release.dll.o [took 0.266s]
        []   [2/4] System.Runtime.InteropServices.JavaScript.dll.bc -> System.Runtime.InteropServices.JavaScript.dll.o [took 0.896s]
        []   [3/4] System.Private.CoreLib.dll.bc -> System.Private.CoreLib.dll.o [took 42.563s]
        []   [4/4] aot-instances.dll.bc -> aot-instances.dll.o [took 47.452s]
        []   Linking for initial memory $(EmccInitialHeapSize)=16777216 bytes. Set this msbuild property to change the value.
        []   Linking with emcc with -O2. This may take a while ...
        []   Stripping symbols from dotnet.native.wasm ...
        []   Generated app bundle at /root/helix/work/workitem/e/wbt artifacts/5goorc3q_p2h/bin/Release/net8.0/browser-wasm/AppBundle/
        [] 
        [] Workload updates are available. Run `dotnet workload list` for more information.
        Skipping asserting symbols file
        ============== wasm test-browser =============
        
        ---------- Running with wasm test-browser ---------

Known Issue Error Message

Fill the error message using step by step known issues guidance.

{
  "ErrorMessage": "",
  "ErrorPattern": "",
  "BuildRetry": false,
  "ExcludeConsoleLog": false
}

Metadata

Metadata

Assignees

Labels

Known Build ErrorUse this to report build issues in the .NET Helix tabarch-wasmWebAssembly architecturearea-WorkloadsWorkloads like wasm-toolsos-browserBrowser variant of arch-wasmos-linuxLinux OS (any supported distro)

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions