[MacPorts] #73996: mlx @0.31.2_0: build failure “due to missing Metal Toolchain”... but it exists.

MacPorts noreply at macports.org
Wed May 13 21:57:06 UTC 2026


#73996: mlx @0.31.2_0: build failure “due to missing Metal Toolchain”... but it
exists.
------------------------+--------------------
 Reporter:  jdswinbank  |      Owner:  (none)
     Type:  defect      |     Status:  new
 Priority:  Normal      |  Milestone:
Component:  ports       |    Version:
 Keywords:              |       Port:  mlx
------------------------+--------------------
 {{{
 $ sudo port outdated
 The following installed ports are outdated:
 mlx                            0.31.1_0 < 0.31.2_0

 $ sudo port upgrade mlx
 The following port will be upgraded: mlx
 Continue? [Y/n]: y
 --->  Computing dependencies for mlx
 --->  Fetching archive for mlx
 --->  Archive not available for mlx, building locally
 --->  Fetching distfiles for mlx
 --->  Verifying checksums for mlx
 --->  Extracting mlx
 --->  Applying patches to mlx
 --->  Configuring mlx
 Warning: If the build fails, make sure you have a metal toolchain
 installed; run `sudo xcodebuild -downloadComponent MetalToolchain` to do
 so.
 --->  Building mlx
 Error: Failed to build mlx: command execution failed
 Error: See
 /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_llm_mlx/mlx/main.log
 for details.
 Error: Follow https://guide.macports.org/#project.tickets if you believe
 there is a bug.

 $ grep -i error
 /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_llm_mlx/mlx/main.log
 | head -5
 :debug:archivefetch Fetching
 https://mse.uk.packages.macports.org/mlx/mlx-0.31.2_0.darwin_25.arm64.tbz2
 failed: The requested URL returned error: 404
 :debug:archivefetch Fetching
 https://fra.de.packages.macports.org/mlx/mlx-0.31.2_0.darwin_25.arm64.tbz2
 failed: The requested URL returned error: 404
 :debug:archivefetch Fetching
 https://nue.de.packages.macports.org/mlx/mlx-0.31.2_0.darwin_25.arm64.tbz2
 failed: The requested URL returned error: 404
 :info:configure error: error: cannot execute tool 'metal' due to missing
 Metal Toolchain; use: xcodebuild -downloadComponent MetalToolchain
 :info:build error: error: cannot execute tool 'metal' due to missing Metal
 Toolchain; use: xcodebuild -downloadComponent MetalToolchain

 $ xcodebuild -showComponent MetalToolchain
 Asset Path:
 /System/Library/AssetsV2/com_apple_MobileAsset_MetalToolchain/656653e63a393644d316d4c630af4cccd68d1d2f.asset/AssetData
 Build Version: 17F42
 Status: installed
 Toolchain Identifier: com.apple.dt.toolchain.Metal.32023.883
 Toolchain Search Path:
 /private/var/run/com.apple.security.cryptexd/mnt/com.apple.MobileAsset.MetalToolchain-v17.6.42.0.BgCO9T

 $ xcrun metal --version
 Apple metal version 32023.883 (metalfe-32023.883)
 Target: air64-apple-darwin25.5.0
 Thread model: posix
 InstalledDir:
 /private/var/run/com.apple.security.cryptexd/mnt/com.apple.MobileAsset.MetalToolchain-v17.6.42.0.BgCO9T/Metal.xctoolchain/usr/metal/current/bin
 }}}

-- 
Ticket URL: <https://trac.macports.org/ticket/73996>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list