-
Notifications
You must be signed in to change notification settings - Fork 5k
[area-Tools-ILLink]: ILLinker is failing when building a mac-catalyst app #110714
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
Comments
Tagging subscribers to this area: @dotnet/illink |
I have a repro package for mac - ping me when you get to this. |
#110753 contains the explanation of this failure. @ivanpovazan is there a way to change an option to stop using managed registrar, that might be a viable workaround. |
Yes, here are the .NET 9 release notes explaining the change and the way to opt-out from using managed-static registrar: https://github.com/xamarin/xamarin-macios/wiki/.NET-9-release-notes#type-registrar-managed-static-as-the-new-default |
…ia Cecil (#22149) The trimmer has logic which relies on IL Offsets for each instruction to differentiate events from different instructions. If there are two instructions with the same offset it can lead to confusion and eventually failures. There's more detailed discussion of the problem in dotnet/runtime#110753 This change modifies all the places where the custom steps are generating IL instructions to also generate unique IL offsets for each instruction (the actual values don't matter really). This should fix the problem in dotnet/runtime#110714 This is an unforked version of #22127 (required due to CI restrictions). --------- Co-authored-by: vitek-karas <[email protected]>
Closing as by-design in the linker |
Description
During the release build of the sample app of CommunityToolkit.Maui, for maccatalyst, the build breaks with a IL1012 error, and doesn't provide any helpful log message.
Reproduction Steps
feature/sl-dotnet-nine
branchdotnet build --no-incremental /bl -c Release
Expected behavior
The project builds.
Actual behavior
The build breaks.
Regression?
No response
Known Workarounds
No response
Configuration
No response
Other information
msbuild.binlog.zip
The text was updated successfully, but these errors were encountered: