Skip to content

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

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

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

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

carlossanlop opened this issue Jul 12, 2024 · 7 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
1027360 dotnet/runtime Workloads-NoWebcil-Wasm.Build.Tests.SatelliteAssembliesTests.WorkItemExecution
1027363 dotnet/runtime normal-Microsoft.Extensions.Options.SourceGeneration.Unit.Tests.WorkItemExecution
1027035 dotnet/runtime Workloads-NoWebcil-Wasm.Build.Tests.SatelliteAssembliesTests.WorkItemExecution
1026133 dotnet/runtime normal-System.Runtime.Tests.WorkItemExecution #115030
1025805 dotnet/runtime Workloads-NoWebcil-Wasm.Build.NativeRebuild.Tests.OptimizationFlagChangeTests.WorkItemExecution
1025622 dotnet/runtime Workloads-NoWebcil-Wasm.Build.Tests.SatelliteAssembliesTests.WorkItemExecution
1025626 dotnet/runtime normal-Microsoft.Extensions.Options.SourceGeneration.Unit.Tests.WorkItemExecution
1024415 dotnet/runtime normal-System.Runtime.Tests.WorkItemExecution #114633
1024154 dotnet/runtime Wasm.Build.Tests.SatelliteAssembliesTests.CheckThatSatelliteAssembliesAreNotAOTed(buildArgs: BuildArgs { ProjectName = placeholder, Config = Release, AOT = True, ProjectFileContents = placeholder, ExtraBuildArgs = }, id: "1muw14ty_zjj")
1024123 dotnet/runtime normal-System.Runtime.Tests.WorkItemExecution #114830
1023952 dotnet/runtime Workloads-Wasm.Build.Tests.SatelliteAssembliesTests.WorkItemExecution
1023234 dotnet/runtime Wasm.Build.Tests.SatelliteAssembliesTests.CheckThatSatelliteAssembliesAreNotAOTed(buildArgs: BuildArgs { ProjectName = placeholder, Config = Release, AOT = True, ProjectFileContents = placeholder, ExtraBuildArgs = }, id: "i55tvuld_uud")
1022797 dotnet/runtime normal-System.Runtime.Tests.WorkItemExecution #114906
1022791 dotnet/runtime Wasm.Build.Tests.SatelliteAssembliesTests.CheckThatSatelliteAssembliesAreNotAOTed(buildArgs: BuildArgs { ProjectName = placeholder, Config = Release, AOT = True, ProjectFileContents = placeholder, ExtraBuildArgs = }, id: "0xcwm1cz_542") #114904
1022725 dotnet/runtime Workloads-Wasm.Build.Tests.SatelliteAssembliesTests.WorkItemExecution #114830
1021036 dotnet/runtime Workloads-Wasm.Build.Tests.SatelliteAssembliesTests.WorkItemExecution #114830
1017239 dotnet/runtime Workloads-NoWebcil-Wasm.Build.NativeRebuild.Tests.OptimizationFlagChangeTests.WorkItemExecution #114668
1017251 dotnet/runtime Workloads-NoWebcil-Wasm.Build.Tests.SatelliteAssembliesTests.WorkItemExecution
1017223 dotnet/runtime Workloads-Wasm.Build.NativeRebuild.Tests.OptimizationFlagChangeTests.WorkItemExecution
1017227 dotnet/runtime normal-System.Runtime.Tests.WorkItemExecution
1017160 dotnet/runtime Workloads-NoWebcil-Wasm.Build.NativeRebuild.Tests.OptimizationFlagChangeTests.WorkItemExecution #114667
1017103 dotnet/runtime Workloads-Wasm.Build.NativeRebuild.Tests.OptimizationFlagChangeTests.WorkItemExecution #114441
1016454 dotnet/runtime Workloads-NoWebcil-Wasm.Build.Tests.SatelliteAssembliesTests.WorkItemExecution
1016462 dotnet/runtime Workloads-Wasm.Build.Tests.SatelliteAssembliesTests.WorkItemExecution #114668
1016458 dotnet/runtime normal-System.Runtime.Tests.WorkItemExecution
1016391 dotnet/runtime Workloads-Wasm.Build.Tests.SatelliteAssembliesTests.WorkItemExecution
1016321 dotnet/runtime Wasm.Build.NativeRebuild.Tests.OptimizationFlagChangeTests.OptimizationFlagChange #114661
1016081 dotnet/runtime Workloads-NoWebcil-Wasm.Build.Tests.SatelliteAssembliesTests.WorkItemExecution
1016078 dotnet/runtime Workloads-NoWebcil-Wasm.Build.NativeRebuild.Tests.OptimizationFlagChangeTests.WorkItemExecution
1016082 dotnet/runtime normal-System.Runtime.Tests.WorkItemExecution
1015399 dotnet/runtime Wasm.Build.NativeRebuild.Tests.OptimizationFlagChangeTests.OptimizationFlagChange #114454
1014528 dotnet/runtime Workloads-NoWebcil-Wasm.Build.NativeRebuild.Tests.OptimizationFlagChangeTests.WorkItemExecution
1014323 dotnet/runtime Wasm.Build.Tests.SatelliteAssembliesTests.ResourcesFromProjectReference #114588
1014038 dotnet/runtime Wasm.Build.Tests.SatelliteAssembliesTests.CheckThatSatelliteAssembliesAreNotAOTed(buildArgs: BuildArgs { ProjectName = placeholder, Config = Release, AOT = True, ProjectFileContents = placeholder, ExtraBuildArgs = }, id: "upxu1mho_vw4") #114577
1014068 dotnet/runtime Wasm.Build.NativeRebuild.Tests.OptimizationFlagChangeTests.OptimizationFlagChange
1014026 dotnet/runtime normal-Microsoft.Extensions.Options.SourceGeneration.Unit.Tests.WorkItemExecution
1013772 dotnet/runtime Workloads-Wasm.Build.Tests.SatelliteAssembliesTests.WorkItemExecution #114454
1013781 dotnet/runtime Workloads-NoWebcil-Wasm.Build.Tests.SatelliteAssembliesTests.WorkItemExecution
1013743 dotnet/runtime Workloads-Wasm.Build.Tests.SatelliteAssembliesTests.WorkItemExecution
1013746 dotnet/runtime normal-Microsoft.Extensions.Options.SourceGeneration.Unit.Tests.WorkItemExecution
1011724 dotnet/runtime Workloads-Wasm.Build.Tests.SatelliteAssembliesTests.WorkItemExecution #114472
1011307 dotnet/runtime Workloads-Wasm.Build.Tests.SatelliteAssembliesTests.WorkItemExecution #114330
1011258 dotnet/runtime Wasm.Build.NativeRebuild.Tests.OptimizationFlagChangeTests.OptimizationFlagChange
1011215 dotnet/runtime Workloads-Wasm.Build.Tests.SatelliteAssembliesTests.WorkItemExecution #114454
1010838 dotnet/runtime Workloads-NoWebcil-Wasm.Build.Tests.SatelliteAssembliesTests.WorkItemExecution #114439
1008934 dotnet/runtime Wasm.Build.NativeRebuild.Tests.OptimizationFlagChangeTests.OptimizationFlagChange
1008160 dotnet/runtime Workloads-NoWebcil-Wasm.Build.NativeRebuild.Tests.OptimizationFlagChangeTests.WorkItemExecution
1007981 dotnet/runtime Workloads-NoWebcil-Wasm.Build.Tests.SatelliteAssembliesTests.WorkItemExecution #114335
1007876 dotnet/runtime Wasm.Build.Tests.SatelliteAssembliesTests.CheckThatSatelliteAssembliesAreNotAOTed(buildArgs: BuildArgs { ProjectName = placeholder, Config = Release, AOT = True, ProjectFileContents = placeholder, ExtraBuildArgs = }, id: "xhoib4oy_qsf") #114330
1007416 dotnet/runtime Workloads-Wasm.Build.Tests.SatelliteAssembliesTests.WorkItemExecution #112216
1006099 dotnet/runtime Workloads-Wasm.Build.Tests.SatelliteAssembliesTests.WorkItemExecution
1005290 dotnet/runtime Workloads-Wasm.Build.Tests.SatelliteAssembliesTests.WorkItemExecution
1004337 dotnet/runtime Workloads-Wasm.Build.NativeRebuild.Tests.OptimizationFlagChangeTests.WorkItemExecution #114223
1004531 dotnet/runtime Workloads-Wasm.Build.NativeRebuild.Tests.OptimizationFlagChangeTests.WorkItemExecution
1004597 dotnet/runtime Workloads-Wasm.Build.NativeRebuild.Tests.OptimizationFlagChangeTests.WorkItemExecution
1004551 dotnet/runtime normal-System.Runtime.Tests.WorkItemExecution
1004323 dotnet/runtime Wasm.Build.Tests.SatelliteAssembliesTests.CheckThatSatelliteAssembliesAreNotAOTed(buildArgs: BuildArgs { ProjectName = placeholder, Config = Release, AOT = True, ProjectFileContents = placeholder, ExtraBuildArgs = }, id: "ejvkrora_fvb")
1004294 dotnet/runtime Wasm.Build.Tests.SatelliteAssembliesTests.CheckThatSatelliteAssembliesAreNotAOTed(buildArgs: BuildArgs { ProjectName = placeholder, Config = Release, AOT = True, ProjectFileContents = placeholder, ExtraBuildArgs = }, id: "tnr1qejr_51p")
1004326 dotnet/runtime normal-Microsoft.Extensions.Options.SourceGeneration.Unit.Tests.WorkItemExecution
1003960 dotnet/runtime Wasm.Build.Tests.SatelliteAssembliesTests.CheckThatSatelliteAssembliesAreNotAOTed(buildArgs: BuildArgs { ProjectName = placeholder, Config = Release, AOT = True, ProjectFileContents = placeholder, ExtraBuildArgs = }, id: "xq00xe0t_htz") #113481
1003633 dotnet/runtime Workloads-NoWebcil-Wasm.Build.NativeRebuild.Tests.OptimizationFlagChangeTests.WorkItemExecution #114195
1002908 dotnet/runtime Wasm.Build.NativeRebuild.Tests.OptimizationFlagChangeTests.OptimizationFlagChange #113475
1002911 dotnet/runtime Wasm.Build.Tests.SatelliteAssembliesTests.CheckThatSatelliteAssembliesAreNotAOTed(buildArgs: BuildArgs { ProjectName = placeholder, Config = Release, AOT = True, ProjectFileContents = placeholder, ExtraBuildArgs = }, id: "l2vkhtqt_spr") #113481
1002836 dotnet/runtime Workloads-Wasm.Build.Tests.SatelliteAssembliesTests.WorkItemExecution #113448
1002845 dotnet/runtime Workloads-NoWebcil-Wasm.Build.Tests.SatelliteAssembliesTests.WorkItemExecution
1002812 dotnet/runtime Workloads-Wasm.Build.Tests.SatelliteAssembliesTests.WorkItemExecution
999180 dotnet/runtime normal-Microsoft.Extensions.Options.SourceGeneration.Unit.Tests.WorkItemExecution
999177 dotnet/runtime Workloads-Wasm.Build.Tests.SatelliteAssembliesTests.WorkItemExecution

Summary

24-Hour Hit Count 7-Day Hit Count 1-Month Count
0 15 68
@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
@carlossanlop
Copy link
Member Author

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

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