runtime icon indicating copy to clipboard operation
runtime copied to clipboard

Failed to AOT compile aot-instances.dll, the AOT compiler exited with code 134

Open rolfbjarne opened this issue 2 years ago • 11 comments

From @mlancione on Wed, 20 Nov 2024 05:02:37 GMT

Apple platform

iOS

Framework version

net9.0-*

Affected platform version

.NET 9.0.100

Description

Getting a failed to AOT compile error when building the below repro project.

It seems that adding Microsoft.Maui.Essentials and Microsoft.Extensions.DependencyInjection NuGet packages and referencing a Microsoft.Extensions.DependencyInjection type in code causes the build error.

Note: The build error only happens when UseInterpreter=false and TrimMode=partial.

Steps to Reproduce

Build repro project:

AOTBuildError.zip

Did you find any workaround?

Setting either UseInterpreter=true or TrimMode=full will avoid the build error.

Build logs

msbuild.binlog.zip

Copied from original issue xamarin/xamarin-macios#21663

rolfbjarne avatar Nov 20 '24 08:11 rolfbjarne

From @rolfbjarne on Wed, 20 Nov 2024 08:51:05 GMT

I can reproduce by just executing dotnet build, this seems like a runtime issue.

rolfbjarne avatar Nov 20 '24 08:11 rolfbjarne

Tagging subscribers to 'os-ios': @vitek-karas, @kotlarmilos, @ivanpovazan, @steveisok, @akoeplinger See info in area-owners.md if you want to be subscribed.

Looks similar to https://github.com/dotnet/runtime/issues/109966.

@BrzVlad could you please try to repro this as well and see if it's the same problem?

vitek-karas avatar Nov 21 '24 09:11 vitek-karas

@BrzVlad do you think we should backport this to 9?

vitek-karas avatar Nov 28 '24 16:11 vitek-karas

yes, it is a regression

BrzVlad avatar Nov 28 '24 16:11 BrzVlad

In that case I'm going to reopen the issue and put it into the 9.0. Please start the backport.

vitek-karas avatar Nov 28 '24 16:11 vitek-karas

Any news on this issue, our entire Release pipeline is blocked because of this : /

GUELIANEBelkacem avatar Dec 02 '24 13:12 GUELIANEBelkacem

Any update on this. As of current release in Visual Studio & XCdode 16.2 this is still an issue.. Our project is finished and ready to deploy to the app store.

Dark-MatterSoftware avatar Dec 22 '24 23:12 Dark-MatterSoftware

I too am now having this issue on setups that have had no changes

mitchelsellers avatar Dec 23 '24 05:12 mitchelsellers

Same issue as https://github.com/dotnet/runtime/issues/109966. See comment from there.

BrzVlad avatar Dec 23 '24 08:12 BrzVlad

This was addressed both in .NET 10 and .NET 9 service release, closing.

filipnavara avatar Apr 13 '25 06:04 filipnavara