Build Information
Failed to build mlx-swift, reference 0.29.1 (072b68), with Swift 5.10 for Linux on 16 Oct 2025 19:57:21 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4609320-2":/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-5.10-latest swift build --triple x86_64-unknown-linux-gnu 2>&1Build Log
========================================
RunAll
========================================
Builder version: 4.68.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/ml-explore/mlx-swift.git
Reference: 0.29.1
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
* tag 0.29.1 -> FETCH_HEAD
HEAD is now at 072b684 adopt mlx 0.29.1 and related mlx-c (#273)
Submodule path 'Source/Cmlx/mlx': checked out 'ee18e1cbf0ab7937578d716cc1b62b3fb1725e27'
Submodule path 'Source/Cmlx/mlx-c': checked out 'd5b8715b8e540ea69a955b2d3812e67ccad4c79e'
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 @):
072b684acaae80b6a463abab3a103732f33774bf
SPI manifest file found: $PWD/.spi.yml
SUCCESS checkout https://github.com/ml-explore/mlx-swift.git at 0.29.1
========================================
Build
========================================
Selected platform: linux
Swift version: 5.10
Building package at path: $PWD
https://github.com/ml-explore/mlx-swift.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-2":/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-5.10-latest swift build --triple x86_64-unknown-linux-gnu 2>&1
basic-5.10-latest: Pulling from finestructure/spi-images
Digest: sha256:876c9f54cbb08e857839f8acb28beadbc9bf56a8488855996222d9f683e93e2f
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-5.10-latest
Fetching https://github.com/apple/swift-numerics
[1/6371] Fetching swift-numerics
Fetched https://github.com/apple/swift-numerics from cache (0.96s)
Computing version for https://github.com/apple/swift-numerics
Computed https://github.com/apple/swift-numerics at 1.1.1 (0.49s)
Creating working copy for https://github.com/apple/swift-numerics
Working copy of https://github.com/apple/swift-numerics resolved at 1.1.1
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/189] Write sources
[12/189] Compiling version.cpp
[13/189] Compiling _NumericsShims _NumericsShims.c
[14/189] Compiling no_ring.cpp
[15/189] Compiling utils.cpp
[16/189] Compiling distributed.cpp
[17/189] Compiling device.cpp
[18/189] Write swift-version-24593BA9C3E375BF.txt
[19/189] Compiling compile.cpp
[20/200] Compiling scheduler.cpp
[21/200] Compiling closure.cpp
[22/200] Compiling random.cpp
[24/200] Compiling RealModule RealFunctions.swift
[25/201] Compiling RealModule AlgebraicField.swift
[26/201] Compiling RealModule ApproximateEquality.swift
[27/201] Emitting module RealModule
[28/201] Compiling RealModule ElementaryFunctions.swift
[29/201] Compiling RealModule Float+Real.swift
[30/201] Compiling RealModule Real.swift
[31/201] Compiling RealModule AugmentedArithmetic.swift
[32/201] Compiling RealModule Double+Real.swift
[33/201] Compiling RealModule Float16+Real.swift
[34/201] Compiling RealModule Float80+Real.swift
[35/201] Compiling RealModule RelaxedArithmetic.swift
[35/202] Compiling no_gguf.cpp
[37/202] Compiling transforms.cpp
[38/202] Compiling linalg.cpp
[39/213] Wrapping AST for RealModule for debugging
[41/213] Compiling ComplexModule Polar.swift
[42/214] Compiling ComplexModule Complex+Hashable.swift
[43/214] Compiling ComplexModule Complex+IntegerLiteral.swift
[44/214] Compiling ComplexModule Complex+Numeric.swift
[45/214] Compiling ComplexModule Complex.swift
[46/214] Compiling ComplexModule Complex+StringConvertible.swift
[47/214] Compiling ComplexModule Scale.swift
[48/214] Emitting module ComplexModule
[49/214] Compiling ComplexModule Complex+AdditiveArithmetic.swift
[50/214] Compiling ComplexModule Complex+AlgebraicField.swift
[51/214] Compiling ComplexModule Complex+Codable.swift
[52/214] Compiling ComplexModule Complex+ElementaryFunctions.swift
[53/215] Compiling graph_utils.cpp
[54/215] Compiling fft.cpp
[55/217] Compiling load.cpp
[56/217] Wrapping AST for ComplexModule for debugging
[58/217] Compiling Numerics Numerics.swift
[58/217] Compiling primitives.cpp
[60/217] Emitting module Numerics
[61/218] Compiling dtype.cpp
[62/218] Wrapping AST for Numerics for debugging
[63/218] Compiling dtype_utils.cpp
[64/218] Compiling fast.cpp
[65/218] Compiling safetensors.cpp
[66/218] Compiling primitives.cpp
[67/218] Compiling device.cpp
[68/218] Compiling no_nccl.cpp
[69/218] Compiling einsum.cpp
[70/218] Compiling no_mpi.cpp
[71/218] Compiling ops.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
#include <objc/runtime.h>
^~~~~~~~~~~~~~~~
1 error generated.
[72/218] Compiling utils.cpp
[72/218] Compiling softmax.cpp
In file included from /host/spi-builder-workspace/Source/Cmlx/mlx/mlx/backend/metal/unary.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
#include <objc/runtime.h>
^~~~~~~~~~~~~~~~
[72/218] Compiling unary.cpp
[72/218] Compiling ternary.cpp
[72/218] Compiling sort.cpp
[72/218] Compiling export.cpp
[72/218] Compiling ops.cpp
[72/218] Compiling compile.cpp
BUILD FAILURE 5.10 linux