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

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

Open
carlossanlop opened this issue Jul 12, 2024 · 6 comments
Open

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

carlossanlop opened this issue Jul 12, 2024 · 6 comments
Assignees
Labels
arch-wasm WebAssembly architecture area-Infrastructure-mono blocking-clean-ci Blocking PR or rolling runs of 'runtime' or 'runtime-extra-platforms' Known Build Error Use this to report build issues in the .NET Helix tab os-browser Browser variant of arch-wasm os-linux Linux OS (any supported distro) wasm-aot-test WebAssembly AOT Test
Milestone

Comments

@carlossanlop
Copy link
Member

carlossanlop commented Jul 12, 2024

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
}
      []   [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: 🔎 https://dev.azure.com/dnceng-public/public/_build/results?buildId=734813
Error message validated: [linker setting ignored during compilation: 'EXPORT_ES6']
Result validation: ✅ 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 #109045
846675 dotnet/runtime Workloads-NoWebcil-Wasm.Build.Tests.SatelliteAssembliesTests.WorkItemExecution #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") #108970
846298 dotnet/runtime Workloads-NoWebcil-Wasm.Build.NativeRebuild.Tests.OptimizationFlagChangeTests.WorkItemExecution #108906
846217 dotnet/runtime Workloads-Wasm.Build.Tests.SatelliteAssembliesTests.WorkItemExecution #108971
845330 dotnet/runtime Wasm.Build.NativeRebuild.Tests.OptimizationFlagChangeTests.OptimizationFlagChange #108949
845325 dotnet/runtime Workloads-Wasm.Build.Tests.SatelliteAssembliesTests.WorkItemExecution #108948
845322 dotnet/runtime Wasm.Build.NativeRebuild.Tests.OptimizationFlagChangeTests.OptimizationFlagChange #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") #108906
842632 dotnet/runtime Wasm.Build.Tests.SatelliteAssembliesTests.CheckThatSatelliteAssembliesAreNotAOTed(buildArgs: BuildArgs { ProjectName = placeholder, Config = Release, AOT = True, ProjectFileContents = placeholder, ExtraBuildArgs = }, id: "bfijgw0u_fep") #108862
842644 dotnet/runtime Workloads-Wasm.Build.Tests.SatelliteAssembliesTests.WorkItemExecution #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") #108862
842105 dotnet/runtime Workloads-NoWebcil-Wasm.Build.Tests.SatelliteAssembliesTests.WorkItemExecution #108446
842109 dotnet/runtime Wasm.Build.NativeRebuild.Tests.OptimizationFlagChangeTests.OptimizationFlagChange #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 #108713
840506 dotnet/runtime Wasm.Build.NativeRebuild.Tests.OptimizationFlagChangeTests.OptimizationFlagChange #108446
841092 dotnet/runtime Wasm.Build.NativeRebuild.Tests.OptimizationFlagChangeTests.OptimizationFlagChange #108666
840270 dotnet/runtime Wasm.Build.Tests.SatelliteAssembliesTests.CheckThatSatelliteAssembliesAreNotAOTed(buildArgs: BuildArgs { ProjectName = placeholder, Config = Release, AOT = True, ProjectFileContents = placeholder, ExtraBuildArgs = }, id: "m2d03wa3_rrv") #108446
839916 dotnet/runtime Wasm.Build.Tests.SatelliteAssembliesTests.CheckThatSatelliteAssembliesAreNotAOTed(buildArgs: BuildArgs { ProjectName = placeholder, Config = Release, AOT = True, ProjectFileContents = placeholder, ExtraBuildArgs = }, id: "xnlvivyr_z2o") #108446
839799 dotnet/runtime Wasm.Build.Tests.SatelliteAssembliesTests.CheckThatSatelliteAssembliesAreNotAOTed(buildArgs: BuildArgs { ProjectName = placeholder, Config = Release, AOT = True, ProjectFileContents = placeholder, ExtraBuildArgs = }, id: "bmd5rvre_eqb") #108785
839795 dotnet/runtime Wasm.Build.NativeRebuild.Tests.OptimizationFlagChangeTests.OptimizationFlagChange #108784
839237 dotnet/runtime Wasm.Build.NativeRebuild.Tests.OptimizationFlagChangeTests.OptimizationFlagChange #108713
838678 dotnet/runtime Wasm.Build.NativeRebuild.Tests.OptimizationFlagChangeTests.OptimizationFlagChange #108761
836966 dotnet/runtime Workloads-Wasm.Build.Tests.SatelliteAssembliesTests.WorkItemExecution
835920 dotnet/runtime Workloads-Wasm.Build.Tests.SatelliteAssembliesTests.WorkItemExecution #108666
835842 dotnet/runtime Workloads-NoWebcil-Wasm.Build.Tests.SatelliteAssembliesTests.WorkItemExecution #108495
833651 dotnet/runtime Workloads-Wasm.Build.Tests.SatelliteAssembliesTests.WorkItemExecution #108495
833642 dotnet/runtime Workloads-Wasm.Build.Tests.SatelliteAssembliesTests.WorkItemExecution
832373 dotnet/runtime Workloads-NoWebcil-Wasm.Build.Tests.SatelliteAssembliesTests.WorkItemExecution #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") #107021
826136 dotnet/runtime Wasm.Build.Tests.SatelliteAssembliesTests.CheckThatSatelliteAssembliesAreNotAOTed(buildArgs: BuildArgs { ProjectName = placeholder, Config = Release, AOT = True, ProjectFileContents = placeholder, ExtraBuildArgs = }, id: "psykyhyh_0om") #107021
825397 dotnet/runtime Wasm.Build.Tests.SatelliteAssembliesTests.CheckThatSatelliteAssembliesAreNotAOTed(buildArgs: BuildArgs { ProjectName = placeholder, Config = Release, AOT = True, ProjectFileContents = placeholder, ExtraBuildArgs = }, id: "enkma5k3_k3g") #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 #108446
823670 dotnet/runtime Workloads-NoWebcil-Wasm.Build.Tests.SatelliteAssembliesTests.WorkItemExecution #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 #108214
817313 dotnet/runtime Workloads-Wasm.Build.NativeRebuild.Tests.OptimizationFlagChangeTests.WorkItemExecution #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") #107591
817234 dotnet/runtime Wasm.Build.Tests.SatelliteAssembliesTests.CheckThatSatelliteAssembliesAreNotAOTed(buildArgs: BuildArgs { ProjectName = placeholder, Config = Release, AOT = True, ProjectFileContents = placeholder, ExtraBuildArgs = }, id: "iuqkmuby_qzx")

Summary

24-Hour Hit Count 7-Day Hit Count 1-Month Count
0 21 49
@carlossanlop carlossanlop added arch-wasm WebAssembly architecture os-linux Linux OS (any supported distro) area-Infrastructure-mono wasm-aot-test WebAssembly AOT Test Known Build Error Use this to report build issues in the .NET Helix tab os-browser Browser variant of arch-wasm labels Jul 12, 2024
Copy link
Contributor

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

@dotnet-policy-service dotnet-policy-service bot added the untriaged New issue has not been triaged by the area owner label Jul 12, 2024
Copy link
Contributor

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

@maraf
Copy link
Member

maraf commented Jul 15, 2024

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

@maraf maraf added this to the 8.0.x milestone Jul 15, 2024
@maraf maraf removed the untriaged New issue has not been triaged by the area owner label Jul 15, 2024
@pavelsavara
Copy link
Member

I think EXPORT_ES6 is linker flag, not compiler flag.

@lewing lewing assigned maraf and unassigned radekdoulik Aug 31, 2024
@lewing
Copy link
Member

lewing commented Aug 31, 2024

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

@ilonatommy ilonatommy added the blocking-clean-ci Blocking PR or rolling runs of 'runtime' or 'runtime-extra-platforms' label Sep 5, 2024
@lewing lewing assigned radekdoulik and unassigned maraf Sep 25, 2024
@pavelsavara
Copy link
Member

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

radekdoulik added a commit to radekdoulik/runtime that referenced this issue Oct 14, 2024
Backport of (dotnet#101397)

This avoids errors like:

    /root/helix/work/correlation/build/wasm-shared/WasmApp.Common.targets(832,5): error : emcc: warning: linker setting ignored during compilation: 'EXPORT_ES6' [-Wunused-command-line-argument] [/root/helix/work/workitem/e/publish/ProxyProjectForAOTOnHelix.proj]
    /root/helix/work/correlation/build/wasm-shared/WasmApp.Common.targets(832,5): error : emcc: warning: linker setting ignored during compilation: 'EXPORT_EXCEPTION_HANDLING_HELPERS' [-Wunused-command-line-argument] [/root/helix/work/workitem/e/publish/ProxyProjectForAOTOnHelix.proj]

This should helps with known build error dotnet#104827
where the warning can hide another errors
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
arch-wasm WebAssembly architecture area-Infrastructure-mono blocking-clean-ci Blocking PR or rolling runs of 'runtime' or 'runtime-extra-platforms' Known Build Error Use this to report build issues in the .NET Helix tab os-browser Browser variant of arch-wasm os-linux Linux OS (any supported distro) wasm-aot-test WebAssembly AOT Test
Projects
None yet
Development

No branches or pull requests

6 participants