Hi there AFNI team! I'm trying to install on a Mac Pro M3 chip with macOS 26.5.1. I can't get through part 1 of the install, where I get the error below. Seems like it's an issue with homebrew, not afni?
++ Beginning homebrew installation on this ARM system
==> Checking for `sudo` access (which may request your password)...
Password:
==> This script will install:
/opt/homebrew/bin/brew
/opt/homebrew/share/doc/homebrew
/opt/homebrew/share/man/man1/brew.1
/opt/homebrew/share/zsh/site-functions/_brew
/opt/homebrew/etc/bash_completion.d/brew
/opt/homebrew
/etc/paths.d/homebrew
Press RETURN/ENTER to continue or any other key to abort:
==> /usr/bin/sudo /usr/sbin/chown -R michaelmugno:admin /opt/homebrew
==> Downloading and installing Homebrew...
remote: Enumerating objects: 165, done.
remote: Counting objects: 100% (165/165), done.
remote: Compressing objects: 100% (44/44), done.
remote: Total 165 (delta 121), reused 154 (delta 117), pack-reused 0 (from 0)
==> /usr/bin/sudo /bin/mkdir -p /etc/paths.d
==> /usr/bin/sudo tee /etc/paths.d/homebrew
/opt/homebrew/bin
==> /usr/bin/sudo /usr/sbin/chown root:wheel /etc/paths.d/homebrew
==> /usr/bin/sudo /bin/chmod a+r /etc/paths.d/homebrew
==> Updating Homebrew...
==> Updated Homebrew from 009a5949e5 to 3fa0890979.
==> Installation successful!
==> Homebrew has enabled anonymous aggregate formulae and cask analytics.
Read the analytics documentation (and how to opt-out) here:
https://docs.brew.sh/Analytics
No analytics data has been sent yet (nor will any be during this install run).
==> Homebrew is run entirely by unpaid volunteers. Please consider donating:
https://github.com/Homebrew/brew#donations
==> Next steps:
- Run brew help to get started
- Further documentation:
https://docs.brew.sh
Warning: python@3.14 3.14.7 is already installed and up-to-date.
To reinstall 3.14.7, run:
brew reinstall python@3.14
netpbm 11.02.27 is already installed but outdated (so it will be upgraded).
Warning: cmake 4.4.2 is already installed and up-to-date.
To reinstall 4.4.2, run:
brew reinstall cmake
Warning: gcc 16.1.0 is already installed and up-to-date.
To reinstall 16.1.0, run:
brew reinstall gcc
==> Downloading bottle manifests
✔︎ Bottle Manifest netpbm (11.02.28) Downloaded 110.1KB/110.1KB
==> Would install 1 formula:
netpbm
==> Fetching downloads for: netpbm
✔︎ Bottle netpbm (11.02.28) Downloaded 2.6MB/ 2.6MB
==> Upgrading netpbm
11.02.27 -> 11.02.28
==> Pouring netpbm--11.02.28.arm64_tahoe.bottle.tar.gz
🍺 /opt/homebrew/Cellar/netpbm/11.02.28: 826 files, 14.4MB
==> Cleanup
==> netpbm
Removing: /opt/homebrew/Cellar/netpbm/11.02.27... (826 files, 14.4MB)
Removing: /Users/michaelmugno/Library/Caches/Homebrew/netpbm--11.02.27... (2.6MB)
Removing: /Users/michaelmugno/Library/Caches/Homebrew/netpbm_bottle_manifest--11.02.27... (110KB)
Disable this behaviour by setting `HOMEBREW_NO_INSTALL_CLEANUP=1`.
Hide these hints with `HOMEBREW_NO_ENV_HINTS=1` (see `man brew`).
== installing XQuartz (needs sudo)
Warning: Not upgrading xquartz, the latest version is already installed
Warning: libpng 1.6.58 is already installed and up-to-date.
To reinstall 1.6.58, run:
brew reinstall libpng
Warning: jpeg 10 is already installed and up-to-date.
To reinstall 10, run:
brew reinstall jpeg
Warning: expat 2.8.3 is already installed and up-to-date.
To reinstall 2.8.3, run:
brew reinstall expat
Warning: freetype 2.14.3 is already installed and up-to-date.
To reinstall 2.14.3, run:
brew reinstall freetype
Warning: fontconfig 2.18.3 is already installed and up-to-date.
To reinstall 2.18.3, run:
brew reinstall fontconfig
Warning: openmotif 2.3.8_4 is already installed and up-to-date.
To reinstall 2.3.8_4, run:
brew reinstall openmotif
Warning: libomp 22.1.8 is already installed and up-to-date.
To reinstall 22.1.8, run:
brew reinstall libomp
Warning: gsl 2.8 is already installed and up-to-date.
To reinstall 2.8, run:
brew reinstall gsl
Warning: glib 2.88.3 is already installed and up-to-date.
To reinstall 2.88.3, run:
brew reinstall glib
Warning: pkgconf 3.0.5 is already installed.
The currently linked version is: 0.29.2_3
Warning: gcc 16.1.0 is already installed and up-to-date.
To reinstall 16.1.0, run:
brew reinstall gcc
Warning: libiconv 1.19 is already installed and up-to-date.
To reinstall 1.19, run:
brew reinstall libiconv
Warning: autoconf 2.73 is already installed and up-to-date.
To reinstall 2.73, run:
brew reinstall autoconf
Warning: libxt 1.3.1 is already installed and up-to-date.
To reinstall 1.3.1, run:
brew reinstall libxt
Warning: mesa 26.2.0 is already installed and up-to-date.
To reinstall 26.2.0, run:
brew reinstall mesa
Warning: mesa-glu 9.0.3 is already installed and up-to-date.
To reinstall 9.0.3, run:
brew reinstall mesa-glu
Warning: libxpm 3.5.19 is already installed and up-to-date.
To reinstall 3.5.19, run:
brew reinstall libxpm
Already trusted tap: afni/mesa-25.3.4
==> Would install 1 formula:
mesa@25.3.4
==> Would install 1 dependency for mesa@25.3.4:
llvm@22
==> Would upgrade 3 dependencies for mesa@25.3.4:
rust
z3
llvm
==> Do you want to proceed with the installation? [y/n]
==> Fetching downloads for: mesa@25.3.4
✔︎ Resource mesa@25.3.4--mako Verified 392.5KB/392.5KB
✔︎ Resource mesa@25.3.4--markupsafe Verified 80.3KB/ 80.3KB
✔︎ Resource mesa@25.3.4--packaging Verified 143.4KB/143.4KB
✔︎ Resource mesa@25.3.4--ply Verified 159.1KB/159.1KB
✔︎ Resource mesa@25.3.4--pyyaml Verified 131.0KB/131.0KB
✔︎ Formula mesa@25.3.4 (25.3.4) Verified 43.4MB/ 43.4MB
✔︎ Bottle Manifest z3 (5.1.0) Downloaded 15.7KB/ 15.7KB
✔︎ Bottle Manifest llvm@22 (22.1.8) Downloaded 60.6KB/ 60.6KB
✔︎ Bottle Manifest rust (1.97.1_1) Downloaded 132.0KB/132.0KB
✔︎ Bottle Manifest llvm (22.1.8_2) Downloaded 110.4KB/110.4KB
✔︎ Bottle z3 (5.1.0) Downloaded 13.7MB/ 13.7MB
✔︎ Bottle rust (1.97.1_1) Downloaded 111.9MB/111.9MB
✔︎ Bottle llvm@22 (22.1.8) Downloaded 329.3MB/329.3MB
✔︎ Bottle llvm (22.1.8_2) Downloaded 454.0MB/454.0MB
==> Installing mesa@25.3.4 from afni/mesa-25.3.4
==> Installing dependencies for afni/mesa-25.3.4/mesa@25.3.4: llvm@22, rust ↑, z3 ↑ and llvm ↑
==> Installing afni/mesa-25.3.4/mesa@25.3.4 dependency: llvm@22
==> Pouring llvm@22--22.1.8.arm64_tahoe.bottle.tar.gz
🍺 /opt/homebrew/Cellar/llvm@22/22.1.8: 9,059 files, 1.6GB
==> Upgrading afni/mesa-25.3.4/mesa@25.3.4 dependency: rust
==> Pouring rust--1.97.1_1.arm64_tahoe.bottle.tar.gz
🍺 /opt/homebrew/Cellar/rust/1.97.1_1: 7,256 files, 440.4MB
==> Upgrading afni/mesa-25.3.4/mesa@25.3.4 dependency: z3
==> Pouring z3--5.1.0.arm64_tahoe.bottle.tar.gz
🍺 /opt/homebrew/Cellar/z3/5.1.0: 122 files, 34.8MB
==> Upgrading afni/mesa-25.3.4/mesa@25.3.4 dependency: llvm
==> Pouring llvm--22.1.8_2.arm64_tahoe.bottle.tar.gz
🍺 /opt/homebrew/Cellar/llvm/22.1.8_2: 9,693 files, 1.9GB
==> Installing afni/mesa-25.3.4/mesa@25.3.4
==> python3.13 -m venv --system-site-packages --without-pip /private/tmp/mesaA25.3.4-
==> python3.13 -m pip --python=/private/tmp/mesaA25.3.4-20260819-53650-qcgqpd/mesa-25
==> python3.13 -m pip --python=/private/tmp/mesaA25.3.4-20260819-53650-qcgqpd/mesa-25
==> python3.13 -m pip --python=/private/tmp/mesaA25.3.4-20260819-53650-qcgqpd/mesa-25
==> python3.13 -m pip --python=/private/tmp/mesaA25.3.4-20260819-53650-qcgqpd/mesa-25
==> meson setup build -Db_ndebug=true -Dgallium-rusticl=true -Dllvm=enabled -Dopengl=
Last 15 lines from /Users/michaelmugno/Library/Logs/Homebrew/mesa@25.3.4/06.meson.log:
Found pkg-config: NO
Did not find CMake 'cmake'
Found CMake: NO
Run-time dependency libglvnd found: NO (tried pkg-config, framework and cmake)
Program glslangValidator found: YES (/opt/homebrew/opt/glslang/bin/glslangValidator)
Dependency libva for host machine skipped: feature gallium-va disabled
meson.build:763: WARNING: add_languages is missing native:, assuming languages are wanted for both host and build.
Rust compiler for the host machine: rustc -C linker=clang (rustc 1.97.1 "1.97.1")
Rust linker for the host machine: ld64 1267
Program bindgen found: YES (/opt/homebrew/opt/bindgen/bin/bindgen)
Run-time dependency libclc found: NO (tried framework)
meson.build:851:12: ERROR: Dependency lookup for libclc with method 'pkg-config' failed: Pkg-config for machine host machine not found. Giving up.
A full log can be found at /private/tmp/mesaA25.3.4-20260819-53650-qcgqpd/mesa-25.3.4/build/meson-logs/meson-log.txt
If reporting this issue please do so at (not Homebrew/* repositories):
https://github.com/afni/homebrew-mesa-25.3.4/issues
Error: No such keg: /opt/homebrew/Cellar/mesa@25.3.4
Error: No such keg: /opt/homebrew/Cellar/mesa@25.3.4