restore.sh fails on arm64 Macs
See original GitHub issue- Use macOS on an arm64 device.
- Uninstall any system .NET SDKs.
- Run
./restore.sh
from a clean Roslyn checkout.
Not sure whether this is a bug in Roslyn’s build scripts, Arcade, or dotnet-install
. It is trying to install the 3.1.0 runtime, which is fine, but it is trying to find an arm64 version, which has never existed (macOS arm64 support was added in .NET 5). This should be installing the x64 3.1.0 runtime instead.
dotnet-install: Note that the intended use of this script is for Continuous Integration (CI) scenarios, where:
dotnet-install: - The SDK needs to be installed without user interaction and without admin rights.
dotnet-install: - The SDK installation doesn't need to persist across multiple CI runs.
dotnet-install: To set up a development environment or to run apps, use installers rather than this script. Visit https://dotnet.microsoft.com/download to get the installer.
dotnet-install: Attempting to download using primary link https://dotnetcli.azureedge.net/dotnet/Runtime/3.1.0/dotnet-runtime-3.1.0-osx-arm64.tar.gz
curl: (22) The requested URL returned error: 404
dotnet-install: The resource at primary link 'https://dotnetcli.azureedge.net/dotnet/Runtime/3.1.0/dotnet-runtime-3.1.0-osx-arm64.tar.gz' is not available.
dotnet-install: Attempting to download using legacy link https://dotnetcli.azureedge.net/dotnet/Runtime/3.1.0/dotnet-osx-arm64.3.1.0.tar.gz
curl: (22) The requested URL returned error: 404
dotnet-install: The resource at legacy link 'https://dotnetcli.azureedge.net/dotnet/Runtime/3.1.0/dotnet-osx-arm64.3.1.0.tar.gz' is not available.
dotnet-install: Attempting to download using primary link https://dotnetbuilds.azureedge.net/public/Runtime/3.1.0/dotnet-runtime-3.1.0-osx-arm64.tar.gz
curl: (22) The requested URL returned error: 404
dotnet-install: The resource at primary link 'https://dotnetbuilds.azureedge.net/public/Runtime/3.1.0/dotnet-runtime-3.1.0-osx-arm64.tar.gz' is not available.
dotnet-install: Attempting to download using legacy link https://dotnetbuilds.azureedge.net/public/Runtime/3.1.0/dotnet-osx-arm64.3.1.0.tar.gz
curl: (22) The requested URL returned error: 404
dotnet-install: The resource at legacy link 'https://dotnetbuilds.azureedge.net/public/Runtime/3.1.0/dotnet-osx-arm64.3.1.0.tar.gz' is not available.
dotnet_install: Error: Could not find `.NET Core Runtime` with version = 3.1.0
dotnet_install: Error: Refer to: https://aka.ms/dotnet-os-lifecycle for information on .NET Core support
Failed to install dotnet from public_location.
Attempting to install dotnet from dotnetbuilds.
dotnet-install: Note that the intended use of this script is for Continuous Integration (CI) scenarios, where:
dotnet-install: - The SDK needs to be installed without user interaction and without admin rights.
dotnet-install: - The SDK installation doesn't need to persist across multiple CI runs.
dotnet-install: To set up a development environment or to run apps, use installers rather than this script. Visit https://dotnet.microsoft.com/download to get the installer.
dotnet-install: Attempting to download using primary link https://dotnetbuilds.azureedge.net/public/Runtime/3.1.0/dotnet-runtime-3.1.0-osx-arm64.tar.gz
curl: (22) The requested URL returned error: 404
dotnet-install: The resource at primary link 'https://dotnetbuilds.azureedge.net/public/Runtime/3.1.0/dotnet-runtime-3.1.0-osx-arm64.tar.gz' is not available.
dotnet-install: Attempting to download using legacy link https://dotnetbuilds.azureedge.net/public/Runtime/3.1.0/dotnet-osx-arm64.3.1.0.tar.gz
curl: (22) The requested URL returned error: 404
dotnet-install: The resource at legacy link 'https://dotnetbuilds.azureedge.net/public/Runtime/3.1.0/dotnet-osx-arm64.3.1.0.tar.gz' is not available.
dotnet_install: Error: Could not find `.NET Core Runtime` with version = 3.1.0
dotnet_install: Error: Refer to: https://aka.ms/dotnet-os-lifecycle for information on .NET Core support
Failed to install dotnet from dotnetbuilds.
Failed to install dotnet SDK from any of the specified locations.
/Users/sandy/.nuget/packages/microsoft.dotnet.arcade.sdk/7.0.0-beta.22411.2/tools/InstallDotNetCore.targets(15,5): error : dotnet-install failed [/Users/sandy/.nuget/packages/microsoft.dotnet.arcade.sdk/7.0.0-beta.22411.2/tools/Tools.proj]
Build FAILED.
/Users/sandy/.nuget/packages/microsoft.dotnet.arcade.sdk/7.0.0-beta.22411.2/tools/InstallDotNetCore.targets(15,5): error : dotnet-install failed [/Users/sandy/.nuget/packages/microsoft.dotnet.arcade.sdk/7.0.0-beta.22411.2/tools/Tools.proj]
0 Warning(s)
1 Error(s)
Issue Analytics
- State:
- Created a year ago
- Comments:15 (14 by maintainers)
Top Results From Across the Web
Command-line build fails on Apple M1 silicon during the ` ...
Step 3 from the Build ASP.NET Core from Source guide fails on Apple M1 silicon. When I run ./restore.sh I get several errors...
Read more >Cannot build image for linux/amd64 on M1 Mac - r/dotnet
I am trying to build a Docker image for linux/amd64 on my M1 Mac and while I didn't ... executor failed running [/bin/sh...
Read more >M1 Mac: Cannot build packages requiring compilation
I cannot install basically any package that requires compilation as it fails every time with error messages that don't mean anything to me....
Read more >MAC M1 Something went wrong installing the "sharp" module
Running npm run dev ( gatsby develop ) on MacBook Pro M1 chip exit with Error: Something went wrong installing the "sharp" module....
Read more >Install Ubuntu Desktop 22.04 ARM64 on macOS Apple ...
Be on a M1 Mac - I'm using a Pro with 16gb RAM. Have Parallels Desktop installed - not from Mac app store...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@YuliiaKovalova I will open an issue in install-scripts for this corner case.
the dotnet-install.sh script in eng/common is just a wrapper for the one that comes out of install-scripts. It simply downloads the one published by install-scripts from the internet.