question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Invalid architecture param is passed to install-scripts for Mac OS (M1) when sdk >= 6.0 is requested

See original GitHub issue

Hi Team,

Recently, an issue landed in the install-scripts repo after fixing the issue for MAC OS (arm64). macOS ARM64 source-build of v6.0.1xx fails The customer uses dotnet-installer and it looks like you have a fallback mechanism that doesn’t work as expected after applying a new rule: When Mac OS runs on arm64:

  • if a customer requests sdk < 6.0 , try to install the package for x64 (if Rosetta is detected);
  • if a customer requests sdk >= 6.0 then the package for arm64 has to be installed.

In the customer’s ticket, I can see that in “Successful logs” (before the rule implementation), the installer was applying some logic for changing the architecture: Unknown CPU arm64 detected, treating it as x64.

I hope you can find all the required information in the linked ticket. Thank you.

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:16 (16 by maintainers)

github_iconTop GitHub Comments

2reactions
michellemcdanielcommented, Nov 14, 2022

So the customer who reported the issue was cloning the repo at a specific release tag, aka one of these: https://github.com/dotnet/installer/tags. We can’t actually update the code associated with a given tag because they are tied to specific commit shas. The fix Epsi made will inly apply to the repo going forward, so the customer will be unable to source build at the 6.0.109 tag that they were using. They will have to either build from the tip of a different 6.0.xxx release branch once it gets these changes, or intentionally replace the dotnet-install.sh script provided by arcade in their local clone.

1reaction
michellemcdanielcommented, Nov 8, 2022

What we are saying is that the copy that is in installer for this branch/tag is out of date. The version in arcade itself is correct. Installer needs to take an update from arcade. Epsi, can you check to see what is on the arcade 6.0 branch, so we can Confirm everything is correct on the arcade side

Read more comments on GitHub >

github_iconTop Results From Across the Web

Crash on MacOS(M1 series): uncaught exception ...
Crash on MacOS(M1 series): uncaught exception 'NSInternalInconsistencyException', reason:Invalid parameter not satisfying: <SPRoundedWindow: ...
Read more >
M1 mac: mach-o file, but is an incompatible architecture ...
I use conda from miniforge for python packages etc. This works. This means that I don't know first hand how pypi works, I...
Read more >
Error running "pac" commands on Apple M1 with dotnet 6.0 ...
Hi, The pac commands have started to throw errors on Apple M1 device after installing the arm64 version of the dotnet 6.0 SDK...
Read more >
Problem installing with dotnet on M1 MacOS architecture
Hello. I have installed : dotnet-sdk-3.1.417-osx-x64.pkg on a MAC mini M1 arm64 and I have the following issue when I run dotnet :...
Read more >
Docker on Mac M1 gives: "The requested image's platform ...
On M1 MacBook Pro, I've had success using docker run --platform linux/amd64. Example ... Build the image by passing the list of architecture....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found