Skip to content

Fix NativeAOT build errors for full Apple-mobile test set

805311c
Select commit
Loading
Failed to load commit list.
Open

[mobile] Enable NativeAOT library tests on Apple mobile platforms #125437

Fix NativeAOT build errors for full Apple-mobile test set
805311c
Select commit
Loading
Failed to load commit list.
Azure Pipelines / runtime-extra-platforms (Build maccatalyst-x64 Release AllSubsets_NativeAOT) failed May 8, 2026 in 1h 23m 10s

Build maccatalyst-x64 Release AllSubsets_NativeAOT failed

Annotations

Check failure on line 0 in ILC

See this annotation in the file changed.

@azure-pipelines azure-pipelines / runtime-extra-platforms (Build maccatalyst-x64 Release AllSubsets_NativeAOT)

ILC#L0

ILC(0,0): error IL3054: (NETCORE_ENGINEERING_TELEMETRY=Build) Microsoft.FSharp.Core.FSharpFunc`2<Int32,FSharpFunc`2<String,FSharpFunc`2<Int32,FSharpFunc`2<String,FSharpFunc`2<Random.StdGen,FSharpFunc`2<String,String>>>>>>: Generic expansion to '<StartupCode$FSharp-Core>.$Prim-types.op_Implicit@3899<Int32,FSharpFunc`2<String,FSharpFunc`2<Int32,FSharpFunc`2<String,FSharpFunc`2<Random.StdGen,FSharpFunc`2<String,String>>>>>>' was aborted due to generic recursion. An exception will be thrown at runtime if this codepath is ever reached. Generic recursion also negatively affects compilation speed and the size of the compilation output. It is advisable to remove the source of the generic recursion by restructuring the program around the source of recursion. The source of generic recursion might include: 'Microsoft.FSharp.Core.FSharpFunc`2', '<StartupCode$FSharp-Core>.$Prim-types.op_Implicit@3899', '<StartupCode$FSharp-Core>.$Prim-types.op_Implicit@3904-1', '<StartupCode$FSharp-Core>.$Prim-types.op_Implicit@3907-2', '<StartupCode$FSharp-Core>.$Prim-types.op_Implicit@3910-3', '<StartupCode$FSharp-Core>.$Prim-types.FromConverter@3913', '<StartupCode$FSharp-Core>.$Prim-types.ToConverter@3916', 'Microsoft.FSharp.Core.OptimizedClosures.FSharpFunc`3', 'Microsoft.FSharp.Core.OptimizedClosures.FSharpFunc`4', 'Microsoft.FSharp.Core.OptimizedClosures.FSharpFunc`5', 'Microsoft.FSharp.Core.OptimizedClosures.FSharpFunc`6', 'Microsoft.FSharp.Core.OptimizedClosures.Invoke@3779', 'Microsoft.FSharp.Core.OptimizedClosures.Adapt@3786', 'Microsoft.FSharp.Core.OptimizedClosures.Invoke@3793-1', 'Microsoft.FSharp.Core.OptimizedClosures.Adapt@3802-1', 'Microsoft.FSharp.Core.OptimizedClosures.Adapt@3806-2', 'Microsoft.FSharp.Core.OptimizedClosures.Adapt@3820-3', 'Microsoft.FSharp.Core.OptimizedClosures.Adapt@3825-4', 'Microsoft.FSharp.Core.OptimizedClosures.Adapt@3829-5', 'Microsoft.FSharp.Core.OptimizedClosures.Invoke@3832-2', 'Microsoft.FSharp.Core.OptimizedClosures.Invoke@3840-3', 'Microsoft.FSharp.Core.OptimizedClosures.Adapt@3850-6', 'Microsoft.FSharp.Core.OptimizedClosures.Adapt@3855-7', 'Microsoft.FSharp.Core.OptimizedClosures.Adapt@3860-8', 'Microsoft.FSharp.Core.OptimizedClosures.Adapt@3864-9'

Check failure on line 0 in ILC

See this annotation in the file changed.

@azure-pipelines azure-pipelines / runtime-extra-platforms (Build maccatalyst-x64 Release AllSubsets_NativeAOT)

ILC#L0

ILC(0,0): error IL3054: (NETCORE_ENGINEERING_TELEMETRY=Build) Microsoft.FSharp.Core.OptimizedClosures.FSharpFunc`4<Int32,Int32,String,FSharpFunc`2<Int32,FSharpFunc`2<String,FSharpFunc`2<Random.StdGen,FSharpFunc`2<String,String>>>>>: Generic expansion to 'Microsoft.FSharp.Core.OptimizedClosures.FSharpFunc`3<Int32,Int32,FSharpFunc`2<String,FSharpFunc`2<Int32,FSharpFunc`2<String,FSharpFunc`2<Random.StdGen,FSharpFunc`2<String,String>>>>>>' was aborted due to generic recursion. An exception will be thrown at runtime if this codepath is ever reached. Generic recursion also negatively affects compilation speed and the size of the compilation output. It is advisable to remove the source of the generic recursion by restructuring the program around the source of recursion. The source of generic recursion might include: 'Microsoft.FSharp.Core.FSharpFunc`2', '<StartupCode$FSharp-Core>.$Prim-types.op_Implicit@3899', '<StartupCode$FSharp-Core>.$Prim-types.op_Implicit@3904-1', '<StartupCode$FSharp-Core>.$Prim-types.op_Implicit@3907-2', '<StartupCode$FSharp-Core>.$Prim-types.op_Implicit@3910-3', '<StartupCode$FSharp-Core>.$Prim-types.FromConverter@3913', '<StartupCode$FSharp-Core>.$Prim-types.ToConverter@3916', 'Microsoft.FSharp.Core.OptimizedClosures.FSharpFunc`3', 'Microsoft.FSharp.Core.OptimizedClosures.FSharpFunc`4', 'Microsoft.FSharp.Core.OptimizedClosures.FSharpFunc`5', 'Microsoft.FSharp.Core.OptimizedClosures.FSharpFunc`6', 'Microsoft.FSharp.Core.OptimizedClosures.Invoke@3779', 'Microsoft.FSharp.Core.OptimizedClosures.Adapt@3786', 'Microsoft.FSharp.Core.OptimizedClosures.Invoke@3793-1', 'Microsoft.FSharp.Core.OptimizedClosures.Adapt@3802-1', 'Microsoft.FSharp.Core.OptimizedClosures.Adapt@3806-2', 'Microsoft.FSharp.Core.OptimizedClosures.Adapt@3820-3', 'Microsoft.FSharp.Core.OptimizedClosures.Adapt@3825-4', 'Microsoft.FSharp.Core.OptimizedClosures.Adapt@3829-5', 'Microsoft.FSharp.Core.OptimizedClosures.Invoke@3832-2', 'Microsoft.FSharp.Core.OptimizedClosures.Invoke@3840-3', 'Microsoft.FSharp.Core.OptimizedClosures.Adapt@3850-6', 'Microsoft.FSharp.Core.OptimizedClosures.Adapt@3855-7', 'Microsoft.FSharp.Core.OptimizedClosures.Adapt@3860-8', 'Microsoft.FSharp.Core.OptimizedClosures.Adapt@3864-9'

Check failure on line 0 in ILC

See this annotation in the file changed.

@azure-pipelines azure-pipelines / runtime-extra-platforms (Build maccatalyst-x64 Release AllSubsets_NativeAOT)

ILC#L0

ILC(0,0): error IL3054: (NETCORE_ENGINEERING_TELEMETRY=Build) Microsoft.FSharp.Core.OptimizedClosures.FSharpFunc`5<String,Int32,Int32,String,FSharpFunc`2<Int32,FSharpFunc`2<String,FSharpFunc`2<Random.StdGen,FSharpFunc`2<String,String>>>>>: Generic expansion to 'Microsoft.FSharp.Core.OptimizedClosures.FSharpFunc`4<String,Int32,Int32,FSharpFunc`2<String,FSharpFunc`2<Int32,FSharpFunc`2<String,FSharpFunc`2<Random.StdGen,FSharpFunc`2<String,String>>>>>>' was aborted due to generic recursion. An exception will be thrown at runtime if this codepath is ever reached. Generic recursion also negatively affects compilation speed and the size of the compilation output. It is advisable to remove the source of the generic recursion by restructuring the program around the source of recursion. The source of generic recursion might include: 'Microsoft.FSharp.Core.FSharpFunc`2', '<StartupCode$FSharp-Core>.$Prim-types.op_Implicit@3899', '<StartupCode$FSharp-Core>.$Prim-types.op_Implicit@3904-1', '<StartupCode$FSharp-Core>.$Prim-types.op_Implicit@3907-2', '<StartupCode$FSharp-Core>.$Prim-types.op_Implicit@3910-3', '<StartupCode$FSharp-Core>.$Prim-types.FromConverter@3913', '<StartupCode$FSharp-Core>.$Prim-types.ToConverter@3916', 'Microsoft.FSharp.Core.OptimizedClosures.FSharpFunc`3', 'Microsoft.FSharp.Core.OptimizedClosures.FSharpFunc`4', 'Microsoft.FSharp.Core.OptimizedClosures.FSharpFunc`5', 'Microsoft.FSharp.Core.OptimizedClosures.FSharpFunc`6', 'Microsoft.FSharp.Core.OptimizedClosures.Invoke@3779', 'Microsoft.FSharp.Core.OptimizedClosures.Adapt@3786', 'Microsoft.FSharp.Core.OptimizedClosures.Invoke@3793-1', 'Microsoft.FSharp.Core.OptimizedClosures.Adapt@3802-1', 'Microsoft.FSharp.Core.OptimizedClosures.Adapt@3806-2', 'Microsoft.FSharp.Core.OptimizedClosures.Adapt@3820-3', 'Microsoft.FSharp.Core.OptimizedClosures.Adapt@3825-4', 'Microsoft.FSharp.Core.OptimizedClosures.Adapt@3829-5', 'Microsoft.FSharp.Core.OptimizedClosures.Invoke@3832-2', 'Microsoft.FSharp.Core.OptimizedClosures.Invoke@3840-3', 'Microsoft.FSharp.Core.OptimizedClosures.Adapt@3850-6', 'Microsoft.FSharp.Core.OptimizedClosures.Adapt@3855-7', 'Microsoft.FSharp.Core.OptimizedClosures.Adapt@3860-8', 'Microsoft.FSharp.Core.OptimizedClosures.Adapt@3864-9'

Check failure on line 0 in ILC

See this annotation in the file changed.

@azure-pipelines azure-pipelines / runtime-extra-platforms (Build maccatalyst-x64 Release AllSubsets_NativeAOT)

ILC#L0

ILC(0,0): error IL3054: (NETCORE_ENGINEERING_TELEMETRY=Build) Microsoft.FSharp.Core.FSharpFunc`2<String,FSharpFunc`2<Int32,FSharpFunc`2<String,FSharpFunc`2<Int32,FSharpFunc`2<String,FSharpFunc`2<Random.StdGen,FSharpFunc`2<String,String>>>>>>>: Generic expansion to 'System.Converter`2<String,FSharpFunc`2<Int32,FSharpFunc`2<String,FSharpFunc`2<Int32,FSharpFunc`2<String,FSharpFunc`2<Random.StdGen,FSharpFunc`2<String,String>>>>>>>' was aborted due to generic recursion. An exception will be thrown at runtime if this codepath is ever reached. Generic recursion also negatively affects compilation speed and the size of the compilation output. It is advisable to remove the source of the generic recursion by restructuring the program around the source of recursion. The source of generic recursion might include: 'Microsoft.FSharp.Core.FSharpFunc`2', '<StartupCode$FSharp-Core>.$Prim-types.op_Implicit@3899', '<StartupCode$FSharp-Core>.$Prim-types.op_Implicit@3904-1', '<StartupCode$FSharp-Core>.$Prim-types.op_Implicit@3907-2', '<StartupCode$FSharp-Core>.$Prim-types.op_Implicit@3910-3', '<StartupCode$FSharp-Core>.$Prim-types.FromConverter@3913', '<StartupCode$FSharp-Core>.$Prim-types.ToConverter@3916', 'Microsoft.FSharp.Core.OptimizedClosures.FSharpFunc`3', 'Microsoft.FSharp.Core.OptimizedClosures.FSharpFunc`4', 'Microsoft.FSharp.Core.OptimizedClosures.FSharpFunc`5', 'Microsoft.FSharp.Core.OptimizedClosures.FSharpFunc`6', 'Microsoft.FSharp.Core.OptimizedClosures.Invoke@3779', 'Microsoft.FSharp.Core.OptimizedClosures.Adapt@3786', 'Microsoft.FSharp.Core.OptimizedClosures.Invoke@3793-1', 'Microsoft.FSharp.Core.OptimizedClosures.Adapt@3802-1', 'Microsoft.FSharp.Core.OptimizedClosures.Adapt@3806-2', 'Microsoft.FSharp.Core.OptimizedClosures.Adapt@3820-3', 'Microsoft.FSharp.Core.OptimizedClosures.Adapt@3825-4', 'Microsoft.FSharp.Core.OptimizedClosures.Adapt@3829-5', 'Microsoft.FSharp.Core.OptimizedClosures.Invoke@3832-2', 'Microsoft.FSharp.Core.OptimizedClosures.Invoke@3840-3', 'Microsoft.FSharp.Core.OptimizedClosures.Adapt@3850-6', 'Microsoft.FSharp.Core.OptimizedClosures.Adapt@3855-7', 'Microsoft.FSharp.Core.OptimizedClosures.Adapt@3860-8', 'Microsoft.FSharp.Core.OptimizedClosures.Adapt@3864-9'

Check failure on line 0 in ILC

See this annotation in the file changed.

@azure-pipelines azure-pipelines / runtime-extra-platforms (Build maccatalyst-x64 Release AllSubsets_NativeAOT)

ILC#L0

ILC(0,0): error IL3054: (NETCORE_ENGINEERING_TELEMETRY=Build) Microsoft.FSharp.Core.OptimizedClosures.FSharpFunc`4<String,Int32,Int32,FSharpFunc`2<String,FSharpFunc`2<Int32,FSharpFunc`2<String,FSharpFunc`2<Random.StdGen,FSharpFunc`2<String,String>>>>>>: Generic expansion to 'Microsoft.FSharp.Core.OptimizedClosures.Invoke@3793-1<String,Int32,Int32,FSharpFunc`2<String,FSharpFunc`2<Int32,FSharpFunc`2<String,FSharpFunc`2<Random.StdGen,FSharpFunc`2<String,String>>>>>>' was aborted due to generic recursion. An exception will be thrown at runtime if this codepath is ever reached. Generic recursion also negatively affects compilation speed and the size of the compilation output. It is advisable to remove the source of the generic recursion by restructuring the program around the source of recursion. The source of generic recursion might include: 'Microsoft.FSharp.Core.FSharpFunc`2', '<StartupCode$FSharp-Core>.$Prim-types.op_Implicit@3899', '<StartupCode$FSharp-Core>.$Prim-types.op_Implicit@3904-1', '<StartupCode$FSharp-Core>.$Prim-types.op_Implicit@3907-2', '<StartupCode$FSharp-Core>.$Prim-types.op_Implicit@3910-3', '<StartupCode$FSharp-Core>.$Prim-types.FromConverter@3913', '<StartupCode$FSharp-Core>.$Prim-types.ToConverter@3916', 'Microsoft.FSharp.Core.OptimizedClosures.FSharpFunc`3', 'Microsoft.FSharp.Core.OptimizedClosures.FSharpFunc`4', 'Microsoft.FSharp.Core.OptimizedClosures.FSharpFunc`5', 'Microsoft.FSharp.Core.OptimizedClosures.FSharpFunc`6', 'Microsoft.FSharp.Core.OptimizedClosures.Invoke@3779', 'Microsoft.FSharp.Core.OptimizedClosures.Adapt@3786', 'Microsoft.FSharp.Core.OptimizedClosures.Invoke@3793-1', 'Microsoft.FSharp.Core.OptimizedClosures.Adapt@3802-1', 'Microsoft.FSharp.Core.OptimizedClosures.Adapt@3806-2', 'Microsoft.FSharp.Core.OptimizedClosures.Adapt@3820-3', 'Microsoft.FSharp.Core.OptimizedClosures.Adapt@3825-4', 'Microsoft.FSharp.Core.OptimizedClosures.Adapt@3829-5', 'Microsoft.FSharp.Core.OptimizedClosures.Invoke@3832-2', 'Microsoft.FSharp.Core.OptimizedClosures.Invoke@3840-3', 'Microsoft.FSharp.Core.OptimizedClosures.Adapt@3850-6', 'Microsoft.FSharp.Core.OptimizedClosures.Adapt@3855-7', 'Microsoft.FSharp.Core.OptimizedClosures.Adapt@3860-8', 'Microsoft.FSharp.Core.OptimizedClosures.Adapt@3864-9'