-
Notifications
You must be signed in to change notification settings - Fork 3.5k
Description
Description
macos-latest tag now points to macos-14-arm64, under this architecture homebrew has issues installing some packages.
The following command:
brew install \
boost \
cmake \
miniupnpc \
node \
opus \
pkg-config
Results in:
Warning: Treating cmake as a formula. For the cask, use homebrew/cask/cmake or specify the `--cask` flag.
Warning: cmake 3.29.2 is already installed and up-to-date.
To reinstall 3.29.2, run:
brew reinstall cmake
Warning: pkg-config 0.29.2_3 is already installed and up-to-date.
To reinstall 0.29.2_3, run:
brew reinstall pkg-config
Error: Cannot install under Rosetta 2 in ARM default prefix (/opt/homebrew)!
To rerun under ARM use:
arch -arm64 brew install ...
To install under x86_64, install Homebrew into /usr/local.
Error: Process completed with exit code 1.
I noticed that running uname -m
returns x86_64
. That seems a little fishy if the image is actually arm64
.
Platforms affected
- Azure DevOps
- GitHub Actions - Standard Runners
- GitHub Actions - Larger Runners
Runner images affected
- Ubuntu 20.04
- Ubuntu 22.04
- macOS 11
- macOS 12
- macOS 13
- macOS 13 Arm64
- macOS 14
- macOS 14 Arm64
- Windows Server 2019
- Windows Server 2022
Image version and build link
Image: macos-14-arm64
Version: 20240422.3
Included Software: https://github.com/actions/runner-images/blob/macos-14-arm64/20240422.3/images/macos/macos-14-arm64-Readme.md
Image Release: https://github.com/actions/runner-images/releases/tag/macos-14-arm64%2F20240422.3
Is it regression?
Yes. macos-12 (when it was macos-latest) https://github.com/actions/runner-images/releases/tag/macOS-12%2F20240418.1
Expected behavior
Homebrew properly detects image architecture, and uname properly reports it.
Actual behavior
Homebrew doesn't properly detect image architecture and uname doesn't properly report it.
Repro steps
Run this workflow: https://github.com/ReenigneArcher/brew-error-reproduction/blob/master/.github/workflows/brew_error.yml