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

macOS-14 (latest) homebrew confused about cpu architecture #9760

Closed
2 of 13 tasks
ReenigneArcher opened this issue Apr 28, 2024 · 3 comments
Closed
2 of 13 tasks

macOS-14 (latest) homebrew confused about cpu architecture #9760

ReenigneArcher opened this issue Apr 28, 2024 · 3 comments

Comments

@ReenigneArcher
Copy link

ReenigneArcher commented Apr 28, 2024

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

@ReenigneArcher ReenigneArcher changed the title macOS-14 (latest) homebrew confused about cpu architecture since macOS-14 (latest) homebrew confused about cpu architecture Apr 28, 2024
@mikhailkoliada
Copy link
Contributor

Please provide a full workflow file you see the problem with

@ReenigneArcher
Copy link
Author

@sergei-pyshnoi
Copy link
Contributor

Hello @ReenigneArcher. Thanks for your report. Unfortunately we do not maintain CodeQL here. Please fill related in github/codeql-action repo . I am closing this issue as not runner-images related but if you have additional questions feel free to ask.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants