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

Microsoft.NET.Workload.Mono.Toolchain does not get me the arm64 AOT compiler for Mac Catalyst #54996

Closed
rolfbjarne opened this issue Jul 1, 2021 · 6 comments · Fixed by #55381
Assignees
Milestone

Comments

@rolfbjarne
Copy link
Member

Description

If I try to use the AOT compiler for Mac Catalyst/ARM64 (RID: maccatalyst-arm64), it doesn't work, because the only aot compiler in the MonoAotCrossCompiler item group is the one for maccatalyst-x64:

Screenshot 2021-07-01 at 09 24 01

This is when executing on an M1 machine (but with the x64 version of .NET)

Binlog: msbuild.binlog.zip

CC @steveisok @akoeplinger

@dotnet-issue-labeler
Copy link

I couldn't figure out the best area label to add to this issue. If you have write-permissions please help me learn by adding exactly one area label.

@dotnet-issue-labeler dotnet-issue-labeler bot added the untriaged New issue has not been triaged by the area owner label Jul 1, 2021
@rolfbjarne rolfbjarne changed the title Microsoft.NET.Workload.Mono.Toolchain does not get me the arm64 AOT compiler for Mac catalyst Microsoft.NET.Workload.Mono.Toolchain does not get me the arm64 AOT compiler for Mac Catalyst Jul 1, 2021
@steveisok steveisok added this to the 6.0.0 milestone Jul 1, 2021
@steveisok
Copy link
Member

@rolfbjarne For me, the binlog zip doesn't appear to have the right file in it.

@ghost
Copy link

ghost commented Jul 1, 2021

Tagging subscribers to this area: @directhex
See info in area-owners.md if you want to be subscribed.

Issue Details

Description

If I try to use the AOT compiler for Mac Catalyst/ARM64 (RID: maccatalyst-arm64), it doesn't work, because the only aot compiler in the MonoAotCrossCompiler item group is the one for maccatalyst-x64:

Screenshot 2021-07-01 at 09 24 01

This is when executing on an M1 machine (but with the x64 version of .NET)

Binlog: msbuild.binlog.zip

CC @steveisok @akoeplinger

Author: rolfbjarne
Assignees: directhex
Labels:

area-Infrastructure-mono, untriaged

Milestone: -

@rolfbjarne
Copy link
Member Author

@rolfbjarne For me, the binlog zip doesn't appear to have the right file in it.

Don't double click on it on macOS, because macOS will unzip it, and then see that it's a gzcompressed file inside, and gunzip that, which creates an invalid file.

If you've already done that, you should be able to make it valid again by gzipping it again.

@steveisok
Copy link
Member

steveisok commented Jul 1, 2021

The maccatalyst cross pack looks to have the right props file for me:

<MonoAotCrossCompiler RuntimeIdentifier="maccatalyst-arm64" ... />

However, when I look at your binlog, the only MonoAotCrossCompiler item added has a runtimeidentifier w/ maccatalyst-x64. Can you look in your workload pack and tell me what the Sdk.props file says?

@steveisok steveisok assigned steveisok and unassigned directhex Jul 1, 2021
@steveisok
Copy link
Member

This appears to be a workload install problem. We use alias-to for maccatalyst and the simulators in order to give you the right target architecture pack. If you are using an x64 host on m1, then the right behavior would be to be able to target both x64 and arm64. The correct fix would be to make all ios/tvos/maccatalyst packs install.

rolfbjarne added a commit to rolfbjarne/xamarin-macios that referenced this issue Jul 1, 2021
@steveisok steveisok removed the untriaged New issue has not been triaged by the area owner label Jul 6, 2021
@ghost ghost added the in-pr There is an active PR which will close this issue when it is merged label Jul 12, 2021
@ghost ghost removed the in-pr There is an active PR which will close this issue when it is merged label Jul 12, 2021
rolfbjarne added a commit to rolfbjarne/xamarin-macios that referenced this issue Jul 16, 2021
rolfbjarne added a commit to rolfbjarne/xamarin-macios that referenced this issue Jul 16, 2021
rolfbjarne added a commit to rolfbjarne/xamarin-macios that referenced this issue Jul 21, 2021
rolfbjarne added a commit to rolfbjarne/xamarin-macios that referenced this issue Jul 22, 2021
@ghost ghost locked as resolved and limited conversation to collaborators Aug 11, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants