Closed
Description
Description
We first noticed this here:
Release builds (using Mono AOT by default) fail with:
Microsoft.Android.Sdk.Aot.targets(123,5): error : Precompiling failed for C:\a\_work\1\a\TestRelease\05-12_05.25.35\temp\CheckMonoComponentsMaskTrueFalseFalse4\obj\Release\android-arm\linked\System.Private.Uri.dll with exit code 57005.
Microsoft.Android.Sdk.Aot.targets(123,5): error : Mono Ahead of Time compiler - compiling assembly C:\a\_work\1\a\TestRelease\05-12_05.25.35\temp\CheckMonoComponentsMaskTrueFalseFalse4\obj\Release\android-arm\linked\System.Private.Uri.dll
Microsoft.Android.Sdk.Aot.targets(123,5): error : AOTID 58E73CC2-8407-D101-5A71-D9C42FDF4C37
Microsoft.Android.Sdk.Aot.targets(123,5): error : Using profile data file 'dotnet.aotprofile'
Microsoft.Android.Sdk.Aot.targets(123,5): error : Added 57 methods from profile.
Microsoft.Android.Sdk.Aot.targets(123,5): error : * Assertion at D:\a\_work\1\s\src\runtime\src\mono\mono\mini\mini-codegen.c:1267, condition `reginfo [sreg].born_in > 0' not met
0 Warning(s)
2 Error(s)
Reproduction Steps
Likely as simple as:
dotnet new android
dotnet build -c Release
Expected behavior
Mono AOT compiler succeeds.
Actual behavior
Mono AOT compiler fails on System.Private.Uri.dll
.
Regression?
Yes, should be something recent in dotnet/runtime/main.
Known Workarounds
You could set $(RunAOTCompilation=false)
, but most customers would require this for decent startup times on Android.
Configuration
.NET SDK version (vmr): 10.0.0-preview.5.25260.104
Other information
Here is a .binlog of a build: mono-aot-compiler.zip