dotnet / sdk

Core functionality needed to create .NET Core projects, that is shared between Visual Studio and CLI
https://dot.net/core
MIT License
2.71k stars 1.07k forks source link

Add .Net 6 for arm64 to snap store #23550

Open behroozbc opened 2 years ago

behroozbc commented 2 years ago

Describe the bug

I want to install .NET 6 with snap on my Ubuntu core my CPU architect is arm 64 but when I saw snap don't have .NET 6 for arm64 image As a result, I cant install .net 6 in my machine

To Reproduce

  1. open snap store https://snapcraft.io/dotnet-sdk
  2. click in image
  3. Open show architect drop down
  4. select arm 64

Further technical details

dotnet-issue-labeler[bot] commented 2 years ago

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.

baronfel commented 2 years ago

@dleeapho I only see an x64 6.0 snap in the snaps directory of the installer - do we support arm64 6.0 snaps?

KiruyaMomochi commented 2 years ago

The original snapcraft.yaml does build a package on arm64, but even a simple command like dotnet tool list will be terminated by signal SIGSEGV (Address boundary error).

And finally, I have successfully built a package that works, with core20 base and modified dependencies.

My modified yaml file is available at https://gist.github.com/KiruyaMomochi/c70ed0773763d26502ffde8af15683bc

And it maybe better if we use one yaml file for all platforms, see Architectures of https://snapcraft.io/blog/the-smart-dump-plugin for more information.

baronfel commented 2 years ago

@ViktorHofer I noticed that you have changed the snaps most recently - do you have any insight or opinions around how we build them? I think we should be publishing arm64 6.0 snaps, but it looks like we're not

ViktorHofer commented 2 years ago

@ViktorHofer I noticed that you have changed the snaps most recently - do you have any insight or opinions around how we build them? I think we should be publishing arm64 6.0 snaps, but it looks like we're not

Nope, unfortunately not. I just moved them to a different location. IIRC @rbhanda or @NikolaMilosavljevic owns them.

baronfel commented 2 years ago

Thank you for the pointers to the right folks 👍

machew commented 2 years ago

@baronfel Did you have any luck contacting @rbhanda or @NikolaMilosavljevic regarding this? It would be nice to install .NET 6 for ARM via Snap, as the docs indicate you can.

baronfel commented 1 year ago

@leecow / @rbhanda do we have any docs about snap support for dotnet on arm64?

leecow commented 1 year ago

Other than initial exploration, we haven't pursued ARM support for the snaps. There are some resourcing options for snap package support and maintenance that may change this in the not too distant future.