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 #21663

Closed
mlancione opened this issue Nov 20, 2024 · 2 comments
Closed

Comments

@mlancione
Copy link

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

@rolfbjarne
Copy link
Member

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

@rolfbjarne
Copy link
Member

This issue was moved to dotnet/runtime#110003

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants