runtime icon indicating copy to clipboard operation
runtime copied to clipboard

[8.0][browser][wasm] emcc failure to compile aot-instances

Open carlossanlop opened this issue 1 year ago • 6 comments

Build Information

Build: https://dev.azure.com/dnceng-public/public/_build/results?buildId=734813 Build error leg or test failing: browser-wasm linux Release WasmBuildTests

Error Message

{
  "ErrorMessage" : "linker setting ignored during compilation: 'EXPORT_ES6'",
  "BuildRetry" : false,
  "ExcludeConsoleLog" : false
}
  • PR: https://github.com/dotnet/runtime/pull/104630
  • Queue: browser-wasm linux Release WasmBuildTests
  • Job result: https://dev.azure.com/dnceng-public/public/_build/results?buildId=734813&view=logs&j=1fa93050-f528-55d3-a351-f8bf9ce5adbf&t=a9f1a437-3b59-5900-1137-ec6cae9a530c
  • Log files:
    • https://helixre107v0xd1eu3ibi6ka.blob.core.windows.net/dotnet-runtime-refs-pull-104630-merge-834dc1579a1b4085ad/Workloads-NoWebcil-Wasm.Build.NativeRebuild.Tests.OptimizationFlagChangeTests/1/console.eacd6a90.log?helixlogtype=result
    • https://helixre107v0xd1eu3ibi6ka.blob.core.windows.net/dotnet-runtime-refs-pull-104630-merge-834dc1579a1b4085ad/Workloads-NoWebcil-Wasm.Build.NativeRebuild.Tests.OptimizationFlagChangeTests/1/console.eacd6a90.log?helixlogtype=result
  • Output:
      []   [3/4] System.Private.CoreLib.dll.bc -> System.Private.CoreLib.dll.o [took 14.362s]
      [] /root/helix/work/workitem/e/dotnet-latest/packs/Microsoft.NET.Runtime.WebAssembly.Sdk/8.0.8/Sdk/WasmApp.Native.targets(388,5): error : Failed to compile /root/helix/work/workitem/e/wbt artifacts/pkkjv2zh_eqz/obj/Release/net8.0/browser-wasm/wasm/for-publish/aot-instances.dll.bc -> /root/helix/work/workitem/e/wbt artifacts/pkkjv2zh_eqz/obj/Release/net8.0/browser-wasm/wasm/for-publish/aot-instances.dll.o [/root/helix/work/workitem/e/wbt artifacts/pkkjv2zh_eqz/rebuild_flags_Release.csproj]
      [] /root/helix/work/workitem/e/dotnet-latest/packs/Microsoft.NET.Runtime.WebAssembly.Sdk/8.0.8/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/pkkjv2zh_eqz/rebuild_flags_Release.csproj]
      [] /root/helix/work/workitem/e/dotnet-latest/packs/Microsoft.NET.Runtime.WebAssembly.Sdk/8.0.8/Sdk/WasmApp.Native.targets(388,5): error : Killed [/root/helix/work/workitem/e/wbt artifacts/pkkjv2zh_eqz/rebuild_flags_Release.csproj]
      [] /root/helix/work/workitem/e/dotnet-latest/packs/Microsoft.NET.Runtime.WebAssembly.Sdk/8.0.8/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.8/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.8/tools/emscripten/cache/sysroot -Xclang -iwithsysroot/include/fakesdl -Xclang -iwithsysroot/include/compat -msimd128 -O0 -fwasm-exceptions -c "/root/helix/work/workitem/e/wbt artifacts/pkkjv2zh_eqz/obj/Release/net8.0/browser-wasm/wasm/for-publish/aot-instances.dll.bc" -o /tmp/tmpAcImUx.tmp' failed (returned 137) [took 200.076s] [/root/helix/work/workitem/e/wbt artifacts/pkkjv2zh_eqz/rebuild_flags_Release.csproj]

Known issue validation

Build: :mag_right: https://dev.azure.com/dnceng-public/public/_build/results?buildId=734813 Error message validated: [linker setting ignored during compilation: 'EXPORT_ES6'] Result validation: :white_check_mark: Known issue matched with the provided build. Validation performed at: 7/12/2024 8:25:22 PM UTC

Report

Build Definition Test Pull Request
848077 dotnet/runtime Wasm.Build.NativeRebuild.Tests.OptimizationFlagChangeTests.OptimizationFlagChange dotnet/runtime#109045
846675 dotnet/runtime Workloads-NoWebcil-Wasm.Build.Tests.SatelliteAssembliesTests.WorkItemExecution dotnet/runtime#108906
846583 dotnet/runtime Workloads-Wasm.Build.NativeRebuild.Tests.OptimizationFlagChangeTests.WorkItemExecution
846212 dotnet/runtime Wasm.Build.Tests.SatelliteAssembliesTests.CheckThatSatelliteAssembliesAreNotAOTed(buildArgs: BuildArgs { ProjectName = placeholder, Config = Release, AOT = True, ProjectFileContents = placeholder, ExtraBuildArgs = }, id: "fqwvlqc0_h3z") dotnet/runtime#108970
846298 dotnet/runtime Workloads-NoWebcil-Wasm.Build.NativeRebuild.Tests.OptimizationFlagChangeTests.WorkItemExecution dotnet/runtime#108906
846217 dotnet/runtime Workloads-Wasm.Build.Tests.SatelliteAssembliesTests.WorkItemExecution dotnet/runtime#108971
845330 dotnet/runtime Wasm.Build.NativeRebuild.Tests.OptimizationFlagChangeTests.OptimizationFlagChange dotnet/runtime#108949
845325 dotnet/runtime Workloads-Wasm.Build.Tests.SatelliteAssembliesTests.WorkItemExecution dotnet/runtime#108948
845322 dotnet/runtime Wasm.Build.NativeRebuild.Tests.OptimizationFlagChangeTests.OptimizationFlagChange dotnet/runtime#108947
844982 dotnet/runtime Wasm.Build.NativeRebuild.Tests.OptimizationFlagChangeTests.OptimizationFlagChange
843810 dotnet/runtime Wasm.Build.Tests.SatelliteAssembliesTests.CheckThatSatelliteAssembliesAreNotAOTed(buildArgs: BuildArgs { ProjectName = placeholder, Config = Release, AOT = True, ProjectFileContents = placeholder, ExtraBuildArgs = }, id: "lkjj50ll_s3p") dotnet/runtime#108906
842632 dotnet/runtime Wasm.Build.Tests.SatelliteAssembliesTests.CheckThatSatelliteAssembliesAreNotAOTed(buildArgs: BuildArgs { ProjectName = placeholder, Config = Release, AOT = True, ProjectFileContents = placeholder, ExtraBuildArgs = }, id: "bfijgw0u_fep") dotnet/runtime#108862
842644 dotnet/runtime Workloads-Wasm.Build.Tests.SatelliteAssembliesTests.WorkItemExecution dotnet/runtime#108871
842407 dotnet/runtime Workloads-NoWebcil-Wasm.Build.Tests.SatelliteAssembliesTests.WorkItemExecution
842369 dotnet/runtime Wasm.Build.Tests.SatelliteAssembliesTests.CheckThatSatelliteAssembliesAreNotAOTed(buildArgs: BuildArgs { ProjectName = placeholder, Config = Release, AOT = True, ProjectFileContents = placeholder, ExtraBuildArgs = }, id: "2wdaqzhj_rvq") dotnet/runtime#108862
842105 dotnet/runtime Workloads-NoWebcil-Wasm.Build.Tests.SatelliteAssembliesTests.WorkItemExecution dotnet/runtime#108446
842109 dotnet/runtime Wasm.Build.NativeRebuild.Tests.OptimizationFlagChangeTests.OptimizationFlagChange dotnet/runtime#108761
842100 dotnet/runtime Workloads-NoWebcil-Wasm.Build.Tests.SatelliteAssembliesTests.WorkItemExecution
842088 dotnet/runtime Workloads-Wasm.Build.NativeRebuild.Tests.OptimizationFlagChangeTests.WorkItemExecution
841936 dotnet/runtime Wasm.Build.NativeRebuild.Tests.OptimizationFlagChangeTests.OptimizationFlagChange dotnet/runtime#108713
840506 dotnet/runtime Wasm.Build.NativeRebuild.Tests.OptimizationFlagChangeTests.OptimizationFlagChange dotnet/runtime#108446
841092 dotnet/runtime Wasm.Build.NativeRebuild.Tests.OptimizationFlagChangeTests.OptimizationFlagChange dotnet/runtime#108666
840270 dotnet/runtime Wasm.Build.Tests.SatelliteAssembliesTests.CheckThatSatelliteAssembliesAreNotAOTed(buildArgs: BuildArgs { ProjectName = placeholder, Config = Release, AOT = True, ProjectFileContents = placeholder, ExtraBuildArgs = }, id: "m2d03wa3_rrv") dotnet/runtime#108446
839916 dotnet/runtime Wasm.Build.Tests.SatelliteAssembliesTests.CheckThatSatelliteAssembliesAreNotAOTed(buildArgs: BuildArgs { ProjectName = placeholder, Config = Release, AOT = True, ProjectFileContents = placeholder, ExtraBuildArgs = }, id: "xnlvivyr_z2o") dotnet/runtime#108446
839799 dotnet/runtime Wasm.Build.Tests.SatelliteAssembliesTests.CheckThatSatelliteAssembliesAreNotAOTed(buildArgs: BuildArgs { ProjectName = placeholder, Config = Release, AOT = True, ProjectFileContents = placeholder, ExtraBuildArgs = }, id: "bmd5rvre_eqb") dotnet/runtime#108785
839795 dotnet/runtime Wasm.Build.NativeRebuild.Tests.OptimizationFlagChangeTests.OptimizationFlagChange dotnet/runtime#108784
839237 dotnet/runtime Wasm.Build.NativeRebuild.Tests.OptimizationFlagChangeTests.OptimizationFlagChange dotnet/runtime#108713
838678 dotnet/runtime Wasm.Build.NativeRebuild.Tests.OptimizationFlagChangeTests.OptimizationFlagChange dotnet/runtime#108761
836966 dotnet/runtime Workloads-Wasm.Build.Tests.SatelliteAssembliesTests.WorkItemExecution
835920 dotnet/runtime Workloads-Wasm.Build.Tests.SatelliteAssembliesTests.WorkItemExecution dotnet/runtime#108666
835842 dotnet/runtime Workloads-NoWebcil-Wasm.Build.Tests.SatelliteAssembliesTests.WorkItemExecution dotnet/runtime#108495
833651 dotnet/runtime Workloads-Wasm.Build.Tests.SatelliteAssembliesTests.WorkItemExecution dotnet/runtime#108495
833642 dotnet/runtime Workloads-Wasm.Build.Tests.SatelliteAssembliesTests.WorkItemExecution
832373 dotnet/runtime Workloads-NoWebcil-Wasm.Build.Tests.SatelliteAssembliesTests.WorkItemExecution dotnet/runtime#108666
827977 dotnet/runtime Workloads-Wasm.Build.Tests.SatelliteAssembliesTests.WorkItemExecution
827443 dotnet/runtime Wasm.Build.Tests.SatelliteAssembliesTests.CheckThatSatelliteAssembliesAreNotAOTed(buildArgs: BuildArgs { ProjectName = placeholder, Config = Release, AOT = True, ProjectFileContents = placeholder, ExtraBuildArgs = }, id: "tt1u3kxi_uki") dotnet/runtime#107021
826136 dotnet/runtime Wasm.Build.Tests.SatelliteAssembliesTests.CheckThatSatelliteAssembliesAreNotAOTed(buildArgs: BuildArgs { ProjectName = placeholder, Config = Release, AOT = True, ProjectFileContents = placeholder, ExtraBuildArgs = }, id: "psykyhyh_0om") dotnet/runtime#107021
825397 dotnet/runtime Wasm.Build.Tests.SatelliteAssembliesTests.CheckThatSatelliteAssembliesAreNotAOTed(buildArgs: BuildArgs { ProjectName = placeholder, Config = Release, AOT = True, ProjectFileContents = placeholder, ExtraBuildArgs = }, id: "enkma5k3_k3g") dotnet/runtime#108446
2551309 dotnet-runtime wasmaot.x64.micro.net8.0.Partition5.WorkItemExecution
825302 dotnet/runtime Wasm.Build.Tests.SatelliteAssembliesTests.CheckThatSatelliteAssembliesAreNotAOTed(buildArgs: BuildArgs { ProjectName = placeholder, Config = Release, AOT = True, ProjectFileContents = placeholder, ExtraBuildArgs = }, id: "g15woaw2_iah")
824848 dotnet/runtime Wasm.Build.NativeRebuild.Tests.OptimizationFlagChangeTests.OptimizationFlagChange dotnet/runtime#108446
823670 dotnet/runtime Workloads-NoWebcil-Wasm.Build.Tests.SatelliteAssembliesTests.WorkItemExecution dotnet/runtime#108446
820871 dotnet/runtime Workloads-Wasm.Build.Tests.SatelliteAssembliesTests.WorkItemExecution
819552 dotnet/runtime Wasm.Build.Tests.SatelliteAssembliesTests.CheckThatSatelliteAssembliesAreNotAOTed(buildArgs: BuildArgs { ProjectName = placeholder, Config = Release, AOT = True, ProjectFileContents = placeholder, ExtraBuildArgs = }, id: "p5d0z1cw_fji")
817326 dotnet/runtime Wasm.Build.NativeRebuild.Tests.OptimizationFlagChangeTests.OptimizationFlagChange dotnet/runtime#108214
817313 dotnet/runtime Workloads-Wasm.Build.NativeRebuild.Tests.OptimizationFlagChangeTests.WorkItemExecution dotnet/runtime#108213
2545883 dotnet-runtime release.Partition5.WorkItemExecution
817242 dotnet/runtime Wasm.Build.Tests.SatelliteAssembliesTests.CheckThatSatelliteAssembliesAreNotAOTed(buildArgs: BuildArgs { ProjectName = placeholder, Config = Release, AOT = True, ProjectFileContents = placeholder, ExtraBuildArgs = }, id: "0hvjimkt_25z") dotnet/runtime#107591
817234 dotnet/runtime Wasm.Build.Tests.SatelliteAssembliesTests.CheckThatSatelliteAssembliesAreNotAOTed(buildArgs: BuildArgs { ProjectName = placeholder, Config = Release, AOT = True, ProjectFileContents = placeholder, ExtraBuildArgs = }, id: "iuqkmuby_qzx")
813486 dotnet/runtime Wasm.Build.NativeRebuild.Tests.OptimizationFlagChangeTests.OptimizationFlagChange
813290 dotnet/runtime Wasm.Build.Tests.SatelliteAssembliesTests.CheckThatSatelliteAssembliesAreNotAOTed(buildArgs: BuildArgs { ProjectName = placeholder, Config = Release, AOT = True, ProjectFileContents = placeholder, ExtraBuildArgs = }, id: "4zwrp5yt_clg")

Summary

24-Hour Hit Count 7-Day Hit Count 1-Month Count
1 22 51

carlossanlop avatar Jul 12 '24 20:07 carlossanlop

Tagging subscribers to 'arch-wasm': @lewing See info in area-owners.md if you want to be subscribed.

Tagging subscribers to this area: @directhex, @matouskozak See info in area-owners.md if you want to be subscribed.

@radekdoulik Do you know what changes in emsdk for 8.0 that EXPORT_ES6 now produces a warning?

maraf avatar Jul 15 '24 11:07 maraf

I think EXPORT_ES6 is linker flag, not compiler flag.

pavelsavara avatar Aug 26 '24 16:08 pavelsavara

There are actual errors here that are not related to the ES6 warning

lewing avatar Aug 31 '24 05:08 lewing

it's probably warning treated as error, which will really stop the build. It should be easy to fix

pavelsavara avatar Oct 01 '24 09:10 pavelsavara

@pavelsavara @lewing can you please adjust the ErrorMessage to what you think would be more appropriate?

carlossanlop avatar Dec 02 '24 22:12 carlossanlop

This is probably OOM on AOT compilation and sigkill.

pavelsavara avatar Jul 22 '25 14:07 pavelsavara

We could try to fix it by backporting https://github.com/dotnet/runtime/pull/115624

pavelsavara avatar Jul 22 '25 14:07 pavelsavara