Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[wasm] Do not use link flags for bitcode compilation #108846

Open
wants to merge 5 commits into
base: release/8.0
Choose a base branch
from

Merge branch 'release/8.0' into pr-es6-warning

17e838d
Select commit
Loading
Failed to load commit list.
Open

[wasm] Do not use link flags for bitcode compilation #108846

Merge branch 'release/8.0' into pr-es6-warning
17e838d
Select commit
Loading
Failed to load commit list.
Build Analysis / Build Analysis failed Oct 18, 2024 in 0s

.NET Result Analysis

Details

Tip

To unconditionally bypass the build analysis check (turn it green), you can use the escape mechanism feature. The completion time may vary, potentially taking several minutes, depending on the build analysis workload at the moment.

Known test errors

Test Failures (4 tests failed)

🔹 [All failing tests from runtime]

    ⚠️ 1 failing tests not displayed for this pipeline due to space limitations

    Wasm.Build.Tests.SatelliteAssembliesTests.CheckThatSatelliteAssembliesAreNotAOTed(buildArgs: BuildArgs { ProjectName = placeholder, Config = Release, AOT = True, ProjectFileContents = placeholder, ExtraBuildArgs = }, id: \"g4kyie2j_oqy\") [Console] [Details] [Artifacts] [9.64% failure rate]
    [ 🚧 Report test infrastructure issue] [ 📄 Report test repository issue]

    Failing Configuration

    Exception Message
     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/g4kyie2j_oqy/g4kyie2j_oqy-publish.binlog -p:Configuration=Release -nr:false  
    Standard Output:
    [] MSBuild version 17.8.5+b5265ef37 for .NET
    []   Determining projects to restore...
    []   Restored /root/helix/work/workitem/e/wbt artifacts/g4kyie2j_oqy/check_sat_asm_not_aot.csproj (in 750 ms).
    []   check_sat_asm_not_aot -> /root/helix/work/workitem/e/wbt artifacts/g4kyie2j_oqy/bin/Release/net8.0/browser-wasm/check_sat_asm_not_aot.dll
    []   ** MicrosoftNetCoreAppRuntimePackDir : '/root/helix/work/workitem/e/dotnet-latest/packs/Microsoft.NETCore.App.Runtime.Mono.browser-wasm/8.0.11'
    []   Optimizing assemblies for size. This process might take a while.
    []   check_sat_asm_not_aot -> /root/helix/work/workitem/e/wbt artifacts/g4kyie2j_oqy/bin/Release/net8.0/browser-wasm/publish/
    []   check_sat_asm_not_aot -> /root/helix/work/workitem/e/wbt artifacts/g4kyie2j_oqy/bin/Release/net8.0/browser-wasm/check_sat_asm_not_aot.dll
    []   ** MicrosoftNetCoreAppRuntimePackDir : '/root/helix/work/workitem/e/dotnet-latest/packs/Microsoft.NETCore.App.Runtime.Mono.browser-wasm/8.0.11'
    []   check_sat_asm_not_aot -> /root/helix/work/workitem/e/wbt artifacts/g4kyie2j_oqy/bin/Release/net8.0/browser-wasm/publish/
    []   AOT'ing 4 assemblies
    []   [1/5] check_sat_asm_not_aot.dll -> check_sat_asm_not_aot.dll.bc
    []   [2/5] System.Console.dll -> System.Console.dll.bc
    []   [3/5] System.Runtime.InteropServices.JavaScript.dll -> System.Runtime.InteropServices.JavaScript.dll.bc
    []   [4/5] System.Private.CoreLib.dll -> System.Private.CoreLib.dll.bc
    []   [5/5] aot-instances.dll -> aot-instances.dll.bc
    []   Compiling native assets with emcc with -O0. This may take a while ...
    []   [1/3] pinvoke.c -> pinvoke.o [took 0.220s]
    []   [2/3] driver.c -> driver.o [took 0.274s]
    []   [3/3] corebindings.c -> corebindings.o [took 0.156s]
    []   Compiling assembly bitcode files with -O0 ...
    []   [1/5] check_sat_asm_not_aot.dll.bc -> check_sat_asm_not_aot.dll.o [took 0.231s]
    []   [2/5] System.Console.dll.bc -> System.Console.dll.o [took 0.330s]
    []   [3/5] System.Runtime.InteropServices.JavaScript.dll.bc -> System.Runtime.InteropServices.JavaScript.dll.o [took 0.391s]
    []   [4/5] System.Private.CoreLib.dll.bc -> System.Private.CoreLib.dll.o [took 13.442s]
    [] /root/helix/work/workitem/e/dotnet-latest/packs/Microsoft.NET.Runtime.WebAssembly.Sdk/8.0.11/Sdk/WasmApp.Native.targets(388,5): error : Failed to compile /root/helix/work/workitem/e/wbt artifacts/g4kyie2j_oqy/obj/Release/net8.0/browser-wasm/wasm/for-publish/aot-instances.dll.bc -> /root/helix/work/workitem/e/wbt artifacts/g4kyie2j_oqy/obj/Release/net8.0/browser-wasm/wasm/for-publish/aot-instances.dll.o [/root/helix/work/workitem/e/wbt artifacts/g4kyie2j_oqy/check_sat_asm_not_aot.csproj]
    [] /root/helix/work/workitem/e/dotnet-latest/packs/Microsoft.NET.Runtime.WebAssembly.Sdk/8.0.11/Sdk/WasmApp.Native.targets(388,5): error : Killed [/root/helix/work/workitem/e/wbt artifacts/g4kyie2j_oqy/check_sat_asm_not_aot.csproj]
    [] /root/helix/work/workitem/e/dotnet-latest/packs/Microsoft.NET.Runtime.WebAssembly.Sdk/8.0.11/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.11/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.11/tools/emscripten/cache/sysroot -Xclang -iwithsysroot/include/fakesdl -Xclang -iwithsysroot/include/compat -msimd128 -O0 -fwasm-exceptions -c "/root/helix/work/workitem/e/wbt artifacts/g4kyie2j_oqy/obj/Release/net8.0/browser-wasm/wasm/for-publish/aot-instances.dll.bc" -o /tmp/tmp2f2WEt.tmp' failed (returned 137) [took 194.128s] [/root/he
    CallStack
       at Wasm.Build.Tests.CommandResult.EnsureExitCode(Int32 expectedExitCode, String messagePrefix, Boolean suppressOutput) in /_/src/mono/wasm/Wasm.Build.Tests/Common/CommandResult.cs:line 44
       at Wasm.Build.Tests.CommandResult.EnsureSuccessful(String messagePrefix, Boolean suppressOutput) in /_/src/mono/wasm/Wasm.Build.Tests/Common/CommandResult.cs:line 28
       at Wasm.Build.Tests.BuildTestBase.BuildProjectWithoutAssert(String id, String config, BuildProjectOptions buildProjectOptions, String[] extraArgs) in /_/src/mono/wasm/Wasm.Build.Tests/BuildTestBase.cs:line 165
       at Wasm.Build.Tests.TestMainJsTestBase.BuildProject(BuildArgs buildArgs, String id, BuildProjectOptions options) in /_/src/mono/wasm/Wasm.Build.Tests/TestMainJsTestBase.cs:line 66
       at Wasm.Build.Tests.SatelliteAssembliesTests.CheckThatSatelliteAssembliesAreNotAOTed(BuildArgs buildArgs, String id) in /_/src/mono/wasm/Wasm.Build.Tests/SatelliteAssembliesTests.cs:line 141
       at System.RuntimeMethodHandle.InvokeMethod(Object target, Void** arguments, Signature sig, Boolean isConstructor)
       at System.Reflection.MethodBaseInvoker.InvokeDirectByRefWithFewArgs(Object obj, Span`1 copyOfArgs, BindingFlags invokeAttr)
    Wasm.Build.Tests.SatelliteAssembliesTests.CheckThatSatelliteAssembliesAreNotAOTed(buildArgs: BuildArgs { ProjectName = placeholder, Config = Release, AOT = True, ProjectFileContents = placeholder, ExtraBuildArgs = }, id: \"yszw02l1_gxq\") [Console] [Details] [Artifacts] [9.72% failure rate]
    [ 🚧 Report test infrastructure issue] [ 📄 Report test repository issue]

    Failing Configuration

    Exception Message
     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/yszw02l1_gxq/yszw02l1_gxq-publish.binlog -p:Configuration=Release -nr:false  
    Standard Output:
    [] MSBuild version 17.8.5+b5265ef37 for .NET
    []   Determining projects to restore...
    []   Restored /root/helix/work/workitem/e/wbt artifacts/yszw02l1_gxq/check_sat_asm_not_aot.csproj (in 748 ms).
    []   check_sat_asm_not_aot -> /root/helix/work/workitem/e/wbt artifacts/yszw02l1_gxq/bin/Release/net8.0/browser-wasm/check_sat_asm_not_aot.dll
    []   ** MicrosoftNetCoreAppRuntimePackDir : '/root/helix/work/workitem/e/dotnet-latest/packs/Microsoft.NETCore.App.Runtime.Mono.browser-wasm/8.0.11'
    []   Optimizing assemblies for size. This process might take a while.
    []   check_sat_asm_not_aot -> /root/helix/work/workitem/e/wbt artifacts/yszw02l1_gxq/bin/Release/net8.0/browser-wasm/publish/
    []   check_sat_asm_not_aot -> /root/helix/work/workitem/e/wbt artifacts/yszw02l1_gxq/bin/Release/net8.0/browser-wasm/check_sat_asm_not_aot.dll
    []   ** MicrosoftNetCoreAppRuntimePackDir : '/root/helix/work/workitem/e/dotnet-latest/packs/Microsoft.NETCore.App.Runtime.Mono.browser-wasm/8.0.11'
    []   check_sat_asm_not_aot -> /root/helix/work/workitem/e/wbt artifacts/yszw02l1_gxq/bin/Release/net8.0/browser-wasm/publish/
    []   AOT'ing 4 assemblies
    []   [1/5] check_sat_asm_not_aot.dll -> check_sat_asm_not_aot.dll.bc
    []   [2/5] System.Console.dll -> System.Console.dll.bc
    []   [3/5] System.Runtime.InteropServices.JavaScript.dll -> System.Runtime.InteropServices.JavaScript.dll.bc
    []   [4/5] System.Private.CoreLib.dll -> System.Private.CoreLib.dll.bc
    []   [5/5] aot-instances.dll -> aot-instances.dll.bc
    []   Compiling native assets with emcc with -O0. This may take a while ...
    []   [1/3] pinvoke.c -> pinvoke.o [took 0.243s]
    []   [2/3] driver.c -> driver.o [took 0.293s]
    []   [3/3] corebindings.c -> corebindings.o [took 0.155s]
    []   Compiling assembly bitcode files with -O0 ...
    []   [1/5] check_sat_asm_not_aot.dll.bc -> check_sat_asm_not_aot.dll.o [took 0.220s]
    []   [2/5] System.Console.dll.bc -> System.Console.dll.o [took 0.339s]
    []   [3/5] System.Runtime.InteropServices.JavaScript.dll.bc -> System.Runtime.InteropServices.JavaScript.dll.o [took 0.392s]
    []   [4/5] System.Private.CoreLib.dll.bc -> System.Private.CoreLib.dll.o [took 13.936s]
    [] /root/helix/work/workitem/e/dotnet-latest/packs/Microsoft.NET.Runtime.WebAssembly.Sdk/8.0.11/Sdk/WasmApp.Native.targets(388,5): error : Failed to compile /root/helix/work/workitem/e/wbt artifacts/yszw02l1_gxq/obj/Release/net8.0/browser-wasm/wasm/for-publish/aot-instances.dll.bc -> /root/helix/work/workitem/e/wbt artifacts/yszw02l1_gxq/obj/Release/net8.0/browser-wasm/wasm/for-publish/aot-instances.dll.o [/root/helix/work/workitem/e/wbt artifacts/yszw02l1_gxq/check_sat_asm_not_aot.csproj]
    [] /root/helix/work/workitem/e/dotnet-latest/packs/Microsoft.NET.Runtime.WebAssembly.Sdk/8.0.11/Sdk/WasmApp.Native.targets(388,5): error : Killed [/root/helix/work/workitem/e/wbt artifacts/yszw02l1_gxq/check_sat_asm_not_aot.csproj]
    [] /root/helix/work/workitem/e/dotnet-latest/packs/Microsoft.NET.Runtime.WebAssembly.Sdk/8.0.11/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.11/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.11/tools/emscripten/cache/sysroot -Xclang -iwithsysroot/include/fakesdl -Xclang -iwithsysroot/include/compat -msimd128 -O0 -fwasm-exceptions -c "/root/helix/work/workitem/e/wbt artifacts/yszw02l1_gxq/obj/Release/net8.0/browser-wasm/wasm/for-publish/aot-instances.dll.bc" -o /tmp/tmpDQSNZX.tmp' failed (returned 137) [took 224.103s] [/root/he
    CallStack
       at Wasm.Build.Tests.CommandResult.EnsureExitCode(Int32 expectedExitCode, String messagePrefix, Boolean suppressOutput) in /_/src/mono/wasm/Wasm.Build.Tests/Common/CommandResult.cs:line 44
       at Wasm.Build.Tests.CommandResult.EnsureSuccessful(String messagePrefix, Boolean suppressOutput) in /_/src/mono/wasm/Wasm.Build.Tests/Common/CommandResult.cs:line 28
       at Wasm.Build.Tests.BuildTestBase.BuildProjectWithoutAssert(String id, String config, BuildProjectOptions buildProjectOptions, String[] extraArgs) in /_/src/mono/wasm/Wasm.Build.Tests/BuildTestBase.cs:line 165
       at Wasm.Build.Tests.TestMainJsTestBase.BuildProject(BuildArgs buildArgs, String id, BuildProjectOptions options) in /_/src/mono/wasm/Wasm.Build.Tests/TestMainJsTestBase.cs:line 66
       at Wasm.Build.Tests.SatelliteAssembliesTests.CheckThatSatelliteAssembliesAreNotAOTed(BuildArgs buildArgs, String id) in /_/src/mono/wasm/Wasm.Build.Tests/SatelliteAssembliesTests.cs:line 141
       at System.RuntimeMethodHandle.InvokeMethod(Object target, Void** arguments, Signature sig, Boolean isConstructor)
       at System.Reflection.MethodBaseInvoker.InvokeDirectByRefWithFewArgs(Object obj, Span`1 copyOfArgs, BindingFlags invokeAttr)
    Workloads-NoWebcil-Wasm.Build.Tests.SatelliteAssembliesTests.WorkItemExecution [Console] [Details] [Artifacts] [40.38% failure rate]
    [ 🚧 Report test infrastructure issue] [ 📄 Report test repository issue]
    This is a helix work item crash with status: BadExit. To investigate look the [Console log] / navigate to [Helix Artifacts]

    Failing Configuration

Was this helpful? Yes No