Build Information
Failed to build mlx-swift, reference 0.29.1 (072b68), with Swift 6.2 for Linux on 16 Oct 2025 19:57:20 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>&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: 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:b3eaa5734a03a9b8084848018342ef6c4e4ec1a618756d8de460b693a5f488ea
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/6371] Fetching swift-numerics
Fetched https://github.com/apple/swift-numerics from cache (0.77s)
Computing version for https://github.com/apple/swift-numerics
Computed https://github.com/apple/swift-numerics at 1.1.1 (1.51s)
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 utils.cpp
[15/189] Compiling format.cc
[16/189] Compiling memory.cpp
[17/189] Write swift-version-24593BA9C3E375BF.txt
[18/189] Compiling metal.cpp
[19/189] Compiling array.cpp
[20/200] Compiling fast.cpp
[21/200] Compiling scheduler.cpp
[23/200] Emitting module RealModule
[23/201] Compiling transforms.cpp
[24/201] Compiling random.cpp
[25/201] Compiling no_gguf.cpp
[26/201] Compiling linalg.cpp
[28/201] Compiling RealModule RelaxedArithmetic.swift
[29/201] Compiling RealModule Real.swift
[30/201] Compiling RealModule RealFunctions.swift
[31/201] Compiling RealModule Float80+Real.swift
[32/201] Compiling RealModule AugmentedArithmetic.swift
[33/201] Compiling RealModule Double+Real.swift
[34/201] Compiling RealModule AlgebraicField.swift
[35/201] Compiling RealModule ApproximateEquality.swift
[36/201] Compiling RealModule ElementaryFunctions.swift
[37/201] Compiling RealModule Float+Real.swift
[38/201] Compiling RealModule Float16+Real.swift
[39/202] Compiling graph_utils.cpp
[40/213] Compiling fft.cpp
[41/213] Compiling primitives.cpp
[43/213] Compiling ComplexModule Complex+Hashable.swift
[44/213] Compiling ComplexModule Complex+IntegerLiteral.swift
[44/213] Wrapping AST for RealModule for debugging
[46/214] Compiling ComplexModule Polar.swift
[47/214] Compiling ComplexModule Complex+Numeric.swift
[48/214] Compiling ComplexModule Complex+StringConvertible.swift
[49/214] Compiling ComplexModule Complex.swift
[50/214] Compiling ComplexModule Scale.swift
[50/214] Compiling load.cpp
[52/214] Compiling ComplexModule Complex+AdditiveArithmetic.swift
[53/214] Compiling ComplexModule Complex+AlgebraicField.swift
[54/214] Emitting module ComplexModule
[55/214] Compiling ComplexModule Complex+Codable.swift
[56/214] Compiling ComplexModule Complex+ElementaryFunctions.swift
[57/215] Compiling safetensors.cpp
[58/217] Compiling dtype_utils.cpp
[60/217] Emitting module Numerics
[61/217] Compiling Numerics Numerics.swift
[61/218] Compiling dtype.cpp
[63/218] Wrapping AST for ComplexModule for debugging
[64/218] Compiling fast.cpp
[65/218] Wrapping AST for Numerics for debugging
[66/218] Compiling no_ring.cpp
[67/218] Compiling einsum.cpp
[68/218] Compiling device.cpp
[69/218] Compiling no_nccl.cpp
[70/218] Compiling no_mpi.cpp
[71/218] Compiling primitives.cpp
[72/218] Compiling distributed.cpp
[73/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
27 | #include <objc/runtime.h>
| ^~~~~~~~~~~~~~~~
1 error generated.
[75/218] Compiling utils.cpp
[75/218] Compiling sort.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
27 | #include <objc/runtime.h>
| ^~~~~~~~~~~~~~~~
[75/218] Compiling unary.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>
| ^~~~~~~~~~~~~~~~
[75/218] Compiling ternary.cpp
[75/218] Compiling compile.cpp
[75/218] Compiling softmax.cpp
[75/218] Compiling slicing.cpp
[75/218] Compiling export.cpp
BUILD FAILURE 6.2 linux