Skip to content
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

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

Open
rolfbjarne opened this issue Nov 20, 2024 · 10 comments · Fixed by #110078
Open

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

rolfbjarne opened this issue Nov 20, 2024 · 10 comments · Fixed by #110078
Assignees
Labels
area-Codegen-AOT-mono in-pr There is an active PR which will close this issue when it is merged os-ios Apple iOS untriaged New issue has not been triaged by the area owner
Milestone

Comments

@rolfbjarne
Copy link
Member

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
Copy link
Member Author

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.

@dotnet-policy-service dotnet-policy-service bot added the untriaged New issue has not been triaged by the area owner label Nov 20, 2024
@ivanpovazan ivanpovazan added os-ios Apple iOS and removed untriaged New issue has not been triaged by the area owner labels Nov 21, 2024
Copy link
Contributor

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

@vitek-karas
Copy link
Member

Looks similar to #109966.

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

@BrzVlad BrzVlad self-assigned this Nov 21, 2024
@dotnet-policy-service dotnet-policy-service bot added the in-pr There is an active PR which will close this issue when it is merged label Nov 22, 2024
@vitek-karas
Copy link
Member

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

@BrzVlad
Copy link
Member

BrzVlad commented Nov 28, 2024

yes, it is a regression

@vitek-karas
Copy link
Member

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

@GUELIANEBelkacem
Copy link

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

@Dark-MatterSoftware
Copy link

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.

@mitchelsellers
Copy link

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

@BrzVlad
Copy link
Member

BrzVlad commented Dec 23, 2024

Same issue as #109966. See comment from there.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-Codegen-AOT-mono in-pr There is an active PR which will close this issue when it is merged os-ios Apple iOS untriaged New issue has not been triaged by the area owner
Projects
None yet
Development

Successfully merging a pull request may close this issue.

7 participants