Skip to content

[Perf][Infra] iOS CoreCLR builds failing with System.NotImplementedException: iOS #121220

@LoopedBard3

Description

@LoopedBard3

Description

The performance pipeline builds for CoreCLR iOS product builds recently started failing with artifacts/bin/Crossgen2Tasks/Checked/net10.0/Microsoft.NET.CrossGen.targets(467,5): error : Unhandled exception. System.NotImplementedException: iOS.

Reproduction Steps

I think this has to be done on MacOS. We run this in Azure Pipelines so I don't have a completely verified local repro. The steps should be along the lines of:

git clone http://github.com/dotnet/runtime
cd runtime

# Install build dependencies
./eng/common/native/install-dependencies.sh ios

# Try to build the product (not 100% sure the correct directory for this)
./build.sh -ci -arch arm64 -os ios  -s clr+clr.runtime+libs+packs -c Checked

Expected behavior

Build is successful.

Actual behavior

Build fails with the following (only a portion as the full failure is quite large):

Microsoft.NETCore.App.Ref -> 
  Successfully created package '/Users/runner/work/1/s/artifacts/packages/Checked/Shipping/Microsoft.NETCore.App.Ref.10.0.0-ci.nupkg'.
  Successfully created package '/Users/runner/work/1/s/artifacts/packages/Checked/Shipping/Microsoft.NETCore.App.Ref.10.0.0-ci.symbols.nupkg'.
  Microsoft.NETCore.App.Runtime.CoreCLR ->
/Users/runner/work/1/s/artifacts/bin/Crossgen2Tasks/Checked/net10.0/Microsoft.NET.CrossGen.targets(467,5): error : Unhandled exception. System.NotImplementedException: iOS [/Users/runner/work/1/s/src/installer/pkg/sfx/Microsoft.NETCore.App/Microsoft.NETCore.App.Runtime.CoreCLR.sfxproj]
/Users/runner/work/1/s/artifacts/bin/Crossgen2Tasks/Checked/net10.0/Microsoft.NET.CrossGen.targets(467,5): error :    at ILCompiler.Diagnostics.PerfMapWriter.TranslateTargetDetailsToPerfmapConstants(TargetDetails details) in /_/src/coreclr/tools/aot/ILCompiler.Diagnostics/PerfMapWriter.cs:line 120 [/Users/runner/work/1/s/src/installer/pkg/sfx/Microsoft.NETCore.App/Microsoft.NETCore.App.Runtime.CoreCLR.sfxproj]
/Users/runner/work/1/s/artifacts/bin/Crossgen2Tasks/Checked/net10.0/Microsoft.NET.CrossGen.targets(467,5): error :    at ILCompiler.Diagnostics.PerfMapWriter.PerfMapV1SignatureHelper(IEnumerable`1 inputAssemblies, TargetDetails details) in /_/src/coreclr/tools/aot/ILCompiler.Diagnostics/PerfMapWriter.cs:line 79 [/Users/runner/work/1/s/src/installer/pkg/sfx/Microsoft.NETCore.App/Microsoft.NETCore.App.Runtime.CoreCLR.sfxproj]
/Users/runner/work/1/s/artifacts/bin/Crossgen2Tasks/Checked/net10.0/Microsoft.NET.CrossGen.targets(467,5): error :    at ILCompiler.DependencyAnalysis.ReadyToRun.PerfMapDebugDirectoryEntryNode.GetData(NodeFactory factory, Boolean relocsOnly) in /_/src/coreclr/tools/aot/ILCompiler.ReadyToRun/Compiler/DependencyAnalysis/ReadyToRun/DebugDirectoryEntryNode.cs:line 113 [/Users/runner/work/1/s/src/installer/pkg/sfx/Microsoft.NETCore.App/Microsoft.NETCore.App.Runtime.CoreCLR.sfxproj]
/Users/runner/work/1/s/artifacts/bin/Crossgen2Tasks/Checked/net10.0/Microsoft.NET.CrossGen.targets(467,5): error :    at ILCompiler.DependencyAnalysis.ObjectNode.GetStaticDependencies(NodeFactory factory) in /_/src/coreclr/tools/Common/Compiler/DependencyAnalysis/ObjectNode.cs:line 59 [/Users/runner/work/1/s/src/installer/pkg/sfx/Microsoft.NETCore.App/Microsoft.NETCore.App.Runtime.CoreCLR.sfxproj]
/Users/runner/work/1/s/artifacts/bin/Crossgen2Tasks/Checked/net10.0/Microsoft.NET.CrossGen.targets(467,5): error :    at ILCompiler.DependencyAnalysisFramework.DependencyAnalyzer`2.GetStaticDependenciesImpl(DependencyNodeCore`1 node) in /_/src/coreclr/tools/aot/ILCompiler.DependencyAnalysisFramework/DependencyAnalyzer.cs:line 182 [/Users/runner/work/1/s/src/installer/pkg/sfx/Microsoft.NETCore.App/Microsoft.NETCore.App.Runtime.CoreCLR.sfxproj]
/Users/runner/work/1/s/artifacts/bin/Crossgen2Tasks/Checked/net10.0/Microsoft.NET.CrossGen.targets(467,5): error :    at ILCompiler.DependencyAnalysisFramework.DependencyAnalyzer`2.GetStaticDependencies(DependencyNodeCore`1 node) in /_/src/coreclr/tools/aot/ILCompiler.DependencyAnalysisFramework/DependencyAnalyzer.cs:line 222 [/Users/runner/work/1/s/src/installer/pkg/sfx/Microsoft.NETCore.App/Microsoft.NETCore.App.Runtime.CoreCLR.sfxproj]
/Users/runner/work/1/s/artifacts/bin/Crossgen2Tasks/Checked/net10.0/Microsoft.NET.CrossGen.targets(467,5): error :    at ILCompiler.DependencyAnalysisFramework.DependencyAnalyzer`2.ProcessMarkStack() in /_/src/coreclr/tools/aot/ILCompiler.DependencyAnalysisFramework/DependencyAnalyzer.cs:line 257 [/Users/runner/work/1/s/src/installer/pkg/sfx/Microsoft.NETCore.App/Microsoft.NETCore.App.Runtime.CoreCLR.sfxproj]
/Users/runner/work/1/s/artifacts/bin/Crossgen2Tasks/Checked/net10.0/Microsoft.NET.CrossGen.targets(467,5): error :    at ILCompiler.DependencyAnalysisFramework.DependencyAnalyzer`2.ComputeMarkedNodes() in /_/src/coreclr/tools/aot/ILCompiler.DependencyAnalysisFramework/DependencyAnalyzer.cs:line 308 [/Users/runner/work/1/s/src/installer/pkg/sfx/Microsoft.NETCore.App/Microsoft.NETCore.App.Runtime.CoreCLR.sfxproj]
/Users/runner/work/1/s/artifacts/bin/Crossgen2Tasks/Checked/net10.0/Microsoft.NET.CrossGen.targets(467,5): error :    at ILCompiler.ReadyToRunCodegenCompilation.Compile(String outputFile) in /_/src/coreclr/tools/aot/ILCompiler.ReadyToRun/Compiler/ReadyToRunCodegenCompilation.cs:line 393 [/Users/runner/work/1/s/src/installer/pkg/sfx/Microsoft.NETCore.App/Microsoft.NETCore.App.Runtime.CoreCLR.sfxproj]
/Users/runner/work/1/s/artifacts/bin/Crossgen2Tasks/Checked/net10.0/Microsoft.NET.CrossGen.targets(467,5): error :    at ILCompiler.Program.RunSingleCompilation(Dictionary`2 inFilePaths, InstructionSetSupport instructionSetSupport, String compositeRootPath, Dictionary`2 unrootedInputFilePaths, HashSet`1 versionBubbleModulesHash, ReadyToRunCompilerContext typeSystemContext, Logger logger) in /_/src/coreclr/tools/aot/crossgen2/Program.cs:line 641 [/Users/runner/work/1/s/src/installer/pkg/sfx/Microsoft.NETCore.App/Microsoft.NETCore.App.Runtime.CoreCLR.sfxproj]
/Users/runner/work/1/s/artifacts/bin/Crossgen2Tasks/Checked/net10.0/Microsoft.NET.CrossGen.targets(467,5): error :    at ILCompiler.Program.Run() in /_/src/coreclr/tools/aot/crossgen2/Program.cs:line 304 [/Users/runner/work/1/s/src/installer/pkg/sfx/Microsoft.NETCore.App/Microsoft.NETCore.App.Runtime.CoreCLR.sfxproj]
/Users/runner/work/1/s/artifacts/bin/Crossgen2Tasks/Checked/net10.0/Microsoft.NET.CrossGen.targets(467,5): error :    at ILCompiler.Crossgen2RootCommand.<>c__DisplayClass211_0.<.ctor>b__0(ParseResult result) in /_/src/coreclr/tools/aot/crossgen2/Crossgen2RootCommand.cs:line 268 [/Users/runner/work/1/s/src/installer/pkg/sfx/Microsoft.NETCore.App/Microsoft.NETCore.App.Runtime.CoreCLR.sfxproj]
/Users/runner/work/1/s/artifacts/bin/Crossgen2Tasks/Checked/net10.0/Microsoft.NET.CrossGen.targets(467,5): error :    at System.CommandLine.Invocation.InvocationPipeline.Invoke(ParseResult parseResult) [/Users/runner/work/1/s/src/installer/pkg/sfx/Microsoft.NETCore.App/Microsoft.NETCore.App.Runtime.CoreCLR.sfxproj]
/Users/runner/work/1/s/artifacts/bin/Crossgen2Tasks/Checked/net10.0/Microsoft.NET.CrossGen.targets(467,5): error :    at ILCompiler.Program.Main(String[] args) in /_/src/coreclr/tools/aot/crossgen2/Program.cs:line 918 [/Users/runner/work/1/s/src/installer/pkg/sfx/Microsoft.NETCore.App/Microsoft.NETCore.App.Runtime.CoreCLR.sfxproj]
/Users/runner/work/1/s/artifacts/bin/Crossgen2Tasks/Checked/net10.0/Microsoft.NET.CrossGen.targets(467,5): error : Unhandled exception. System.NotImplementedException: iOS [/Users/runner/work/1/s/src/installer/pkg/sfx/Microsoft.NETCore.App/Microsoft.NETCore.App.Runtime.CoreCLR.sfxproj]

Full error available at https://dev.azure.com/dnceng/internal/_build/results?buildId=2827914&view=logs&j=80c2ca41-d8b7-5d7d-97ee-409dc4a6f82d&t=8fd98c58-b600-51a8-6a74-3e25f9785f70

Regression?

This seems to have regressed due to #121187 (9476ccf). The Build before this was successful.

Known Workarounds

No known workaround.

Configuration

This is latest runtime building for iOS CoreCLR on a MAC machine. It seems to only be the iOS CoreCLR version affected as our other iOS builds are still working (NativeAOT and Mono builds).

Other information

Seems like it may be possibly due to #121187 as that is the first failing build in our build pipeline (https://dev.azure.com/dnceng/internal/_build?definitionId=1442&_a=summary).

FYI @kotlarmilos

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

Status

No status

Status

Done

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions