The Swift Package Index logo.Swift Package Index

Has it really been five years since Swift Package Index launched? Read our anniversary blog post!

Build Information

Failed to build mlx-swift, reference main (6f5849), with Swift 6.2 (beta) for Linux on 10 Sep 2025 20:30:34 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4606859-1":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/finestructure/spi-images:basic-6.2-latest swift build --triple x86_64-unknown-linux-gnu 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.67.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/ml-explore/mlx-swift.git
Reference: main
Initialized empty Git repository in /host/spi-builder-workspace/.git/
hint: Using 'master' as the name for the initial branch. This default branch name
hint: is subject to change. To configure the initial branch name to use in all
hint: of your new repositories, which will suppress this warning, call:
hint:
hint: 	git config --global init.defaultBranch <name>
hint:
hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and
hint: 'development'. The just-created branch can be renamed via this command:
hint:
hint: 	git branch -m <name>
From https://github.com/ml-explore/mlx-swift
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at 6f58497 Make `MLXError` provide a description (#268)
Submodule path 'Source/Cmlx/mlx': checked out 'eaf709b83e559079e212699bfc9dd2f939d25c9a'
Submodule path 'Source/Cmlx/mlx-c': checked out '9ebe155864eab06d94ba18e01f9cb2666b2975a7'
Submodule 'submodules/mlx' (https://github.com/ml-explore/mlx) registered for path 'Source/Cmlx/mlx'
Submodule 'submodules/mlx-c' (https://github.com/ml-explore/mlx-c) registered for path 'Source/Cmlx/mlx-c'
Cloning into '/host/spi-builder-workspace/Source/Cmlx/mlx'...
Cloning into '/host/spi-builder-workspace/Source/Cmlx/mlx-c'...
Cloned https://github.com/ml-explore/mlx-swift.git
Revision (git rev-parse @):
6f58497cd6959045c045bb85c11f4086d19c02d5
SPI manifest file found: $PWD/.spi.yml
SUCCESS checkout https://github.com/ml-explore/mlx-swift.git at main
========================================
Build
========================================
Selected platform:         linux
Swift version:             6.2
Building package at path:  $PWD
https://github.com/ml-explore/mlx-swift.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-1":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/finestructure/spi-images:basic-6.2-latest swift build --triple x86_64-unknown-linux-gnu 2>&1
basic-6.2-latest: Pulling from finestructure/spi-images
Digest: sha256:c6c8e08ea30bca759adf847aac87887750120fe9b6eaea09f5af37036a41e81a
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.2-latest
Fetching https://github.com/apple/swift-numerics
[1/6348] Fetching swift-numerics
Fetched https://github.com/apple/swift-numerics from cache (0.78s)
Computing version for https://github.com/apple/swift-numerics
Computed https://github.com/apple/swift-numerics at 1.1.0 (1.64s)
Creating working copy for https://github.com/apple/swift-numerics
Working copy of https://github.com/apple/swift-numerics resolved at 1.1.0
warning: 'spi-builder-workspace': found 1 file(s) which are unhandled; explicitly declare them as resources or exclude from the target
    /host/spi-builder-workspace/Source/Examples/Example1.swift
warning: 'spi-builder-workspace': found 1 file(s) which are unhandled; explicitly declare them as resources or exclude from the target
    /host/spi-builder-workspace/Source/Examples/Tutorial.swift
Building for debugging...
[0/177] Compiling error.cpp
[1/177] Write swift-version-24593BA9C3E375BF.txt
[2/177] Compiling _NumericsShims _NumericsShims.c
[3/177] Write sources
[5/188] Compiling device.cpp
[5/188] Write sources
[16/188] Compiling export.cpp
[17/188] Compiling compile.cpp
[18/188] Compiling version.cpp
[19/188] Compiling format.cc
[20/188] Compiling fast.cpp
[21/188] Compiling closure.cpp
[22/188] Compiling array.cpp
[23/188] Compiling utils.cpp
[25/188] Compiling RealModule RealFunctions.swift
[26/188] Compiling RealModule Real.swift
[27/189] Emitting module RealModule
[28/189] Compiling RealModule AlgebraicField.swift
[29/189] Compiling RealModule ApproximateEquality.swift
[30/189] Compiling RealModule AugmentedArithmetic.swift
[31/189] Compiling RealModule Double+Real.swift
[32/189] Compiling RealModule ElementaryFunctions.swift
[33/189] Compiling RealModule Float+Real.swift
[34/189] Compiling RealModule Float16+Real.swift
[34/189] Compiling scheduler.cpp
[36/189] Compiling RealModule Float80+Real.swift
[37/189] Compiling RealModule RelaxedArithmetic.swift
[38/190] Compiling random.cpp
[40/201] Compiling ComplexModule Polar.swift
[41/202] Compiling ComplexModule Complex+Hashable.swift
[42/202] Compiling ComplexModule Complex+IntegerLiteral.swift
[43/202] Compiling ComplexModule Complex+StringConvertible.swift
[44/202] Compiling ComplexModule Complex+Numeric.swift
[45/202] Compiling ComplexModule Complex.swift
[46/202] Compiling ComplexModule Scale.swift
[47/202] Compiling ComplexModule Complex+AdditiveArithmetic.swift
[48/202] Compiling ComplexModule Complex+AlgebraicField.swift
[48/202] Compiling no_gguf.cpp
[49/202] Wrapping AST for RealModule for debugging
[50/202] Compiling linalg.cpp
[52/202] Compiling ComplexModule Complex+Codable.swift
[53/202] Compiling ComplexModule Complex+ElementaryFunctions.swift
[54/202] Emitting module ComplexModule
[55/203] Compiling transforms.cpp
[57/205] Compiling Numerics Numerics.swift
[58/205] Emitting module Numerics
[59/206] Wrapping AST for Numerics for debugging
[60/206] Wrapping AST for ComplexModule for debugging
[61/206] Compiling load.cpp
[62/206] Compiling fft.cpp
[63/206] Compiling primitives.cpp
[64/206] Compiling graph_utils.cpp
[65/206] Compiling dtype.cpp
[66/206] Compiling no_ring.cpp
[67/206] Compiling dtype_utils.cpp
[68/206] Compiling safetensors.cpp
[69/206] Compiling einsum.cpp
[70/206] Compiling no_mpi.cpp
[71/206] Compiling primitives.cpp
[72/206] Compiling distributed.cpp
[73/206] Compiling device.cpp
[74/206] Compiling ops.cpp
[76/206] Compiling fast.cpp
In file included from /host/spi-builder-workspace/Source/Cmlx/mlx/mlx/backend/metal/utils.cpp:3:
In file included from /host/spi-builder-workspace/Source/Cmlx/mlx/mlx/backend/metal/utils.h:8:
In file included from /host/spi-builder-workspace/Source/Cmlx/mlx/mlx/backend/metal/device.h:5:
In file included from /host/spi-builder-workspace/Source/Cmlx/metal-cpp/Metal/Metal.hpp:25:
In file included from /host/spi-builder-workspace/Source/Cmlx/metal-cpp/Metal/MTLAccelerationStructure.hpp:24:
In file included from /host/spi-builder-workspace/Source/Cmlx/metal-cpp/Metal/MTLHeaderBridge.hpp:22:
/host/spi-builder-workspace/Source/Cmlx/metal-cpp/Metal/MTLPrivate.hpp:27:10: fatal error: 'objc/runtime.h' file not found
   27 | #include <objc/runtime.h>
      |          ^~~~~~~~~~~~~~~~
1 error generated.
[77/206] Compiling utils.cpp
[77/206] Compiling slicing.cpp
[77/206] Compiling sort.cpp
[77/206] Compiling softmax.cpp
[77/206] Compiling compile.cpp
In file included from /host/spi-builder-workspace/Source/Cmlx/mlx/mlx/backend/metal/ternary.cpp:4:
In file included from /host/spi-builder-workspace/Source/Cmlx/mlx/mlx/backend/metal/device.h:5:
In file included from /host/spi-builder-workspace/Source/Cmlx/metal-cpp/Metal/Metal.hpp:25:
In file included from /host/spi-builder-workspace/Source/Cmlx/metal-cpp/Metal/MTLAccelerationStructure.hpp:24:
In file included from /host/spi-builder-workspace/Source/Cmlx/metal-cpp/Metal/MTLHeaderBridge.hpp:22:
/host/spi-builder-workspace/Source/Cmlx/metal-cpp/Metal/MTLPrivate.hpp:27:10: fatal error: 'objc/runtime.h' file not found
   27 | #include <objc/runtime.h>
      |          ^~~~~~~~~~~~~~~~
[77/206] Compiling ternary.cpp
In file included from /host/spi-builder-workspace/Source/Cmlx/mlx/mlx/backend/metal/unary.cpp:3:
In file included from /host/spi-builder-workspace/Source/Cmlx/mlx/mlx/backend/metal/device.h:5:
In file included from /host/spi-builder-workspace/Source/Cmlx/metal-cpp/Metal/Metal.hpp:25:
In file included from /host/spi-builder-workspace/Source/Cmlx/metal-cpp/Metal/MTLAccelerationStructure.hpp:24:
In file included from /host/spi-builder-workspace/Source/Cmlx/metal-cpp/Metal/MTLHeaderBridge.hpp:22:
/host/spi-builder-workspace/Source/Cmlx/metal-cpp/Metal/MTLPrivate.hpp:27:10: fatal error: 'objc/runtime.h' file not found
   27 | #include <objc/runtime.h>
      |          ^~~~~~~~~~~~~~~~
[77/206] Compiling unary.cpp
[77/206] Compiling export.cpp
BUILD FAILURE 6.2 linux