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 (62de22), with Swift 6.0 for Linux on 10 Dec 2025 05:50:52 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4606859-3":/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.0-latest swift build --triple x86_64-unknown-linux-gnu 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.68.0
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 62de22d add .arrays back to ScaledDotProductAttentionMaskMode (#314)
Submodule path 'Source/Cmlx/mlx': checked out '54f1cc6e3e398a1274fb3bcd73cb543eea643da2'
Submodule path 'Source/Cmlx/mlx-c': checked out '0fd809867528589daba11c6a0b9ec26426067be9'
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 @):
62de22dc0d706d4158f84b6e83e74958727dcc49
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.0
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-3":/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.0-latest swift build --triple x86_64-unknown-linux-gnu 2>&1
basic-6.0-latest: Pulling from finestructure/spi-images
Digest: sha256:d50cceb83aba9237d7903cc3c4ef7bd8f8bfaaf83777b35554908a03d392fd03
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.0-latest
Fetching https://github.com/apple/swift-numerics
[1/6384] Fetching swift-numerics
Fetched https://github.com/apple/swift-numerics from cache (0.42s)
Computing version for https://github.com/apple/swift-numerics
Computed https://github.com/apple/swift-numerics at 1.1.1 (0.66s)
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 3 file(s) which are unhandled; explicitly declare them as resources or exclude from the target
    /host/spi-builder-workspace/Source/Examples/CustomFunctionExample.swift
    /host/spi-builder-workspace/Source/Examples/Example1.swift
    /host/spi-builder-workspace/Source/Examples/CustomFunctionExampleSimple.swift
warning: 'spi-builder-workspace': found 3 file(s) which are unhandled; explicitly declare them as resources or exclude from the target
    /host/spi-builder-workspace/Source/Examples/CustomFunctionExample.swift
    /host/spi-builder-workspace/Source/Examples/Tutorial.swift
    /host/spi-builder-workspace/Source/Examples/CustomFunctionExampleSimple.swift
warning: 'spi-builder-workspace': found 3 file(s) which are unhandled; explicitly declare them as resources or exclude from the target
    /host/spi-builder-workspace/Source/Examples/CustomFunctionExample.swift
    /host/spi-builder-workspace/Source/Examples/Example1.swift
    /host/spi-builder-workspace/Source/Examples/Tutorial.swift
warning: 'spi-builder-workspace': found 3 file(s) which are unhandled; explicitly declare them as resources or exclude from the target
    /host/spi-builder-workspace/Source/Examples/Tutorial.swift
    /host/spi-builder-workspace/Source/Examples/Example1.swift
    /host/spi-builder-workspace/Source/Examples/CustomFunctionExampleSimple.swift
Building for debugging...
[0/198] Compiling scatter.cpp
[1/198] Write swift-version-24593BA9C3E375BF.txt
[2/198] Compiling _NumericsShims _NumericsShims.c
[2/198] Write sources
[17/198] Compiling version.cpp
[18/209] Compiling format.cc
[19/209] Compiling io_types.cpp
[20/209] Compiling io.cpp
[21/209] Compiling linalg.cpp
[22/209] Compiling fft.cpp
[23/209] Compiling closure.cpp
[24/209] Compiling array.cpp
[25/209] Compiling utils.cpp
[26/209] Compiling scheduler.cpp
[28/209] Emitting module RealModule
[29/209] Compiling RealModule AlgebraicField.swift
[30/209] Compiling RealModule ApproximateEquality.swift
[31/209] Compiling RealModule RealFunctions.swift
[32/210] Compiling RealModule ElementaryFunctions.swift
[33/210] Compiling RealModule Float+Real.swift
[34/210] Compiling RealModule AugmentedArithmetic.swift
[35/210] Compiling RealModule Double+Real.swift
[36/210] Compiling RealModule Float16+Real.swift
[37/210] Compiling RealModule Real.swift
[38/210] Compiling RealModule Float80+Real.swift
[39/210] Compiling RealModule RelaxedArithmetic.swift
[39/211] Compiling random.cpp
[41/211] Compiling no_gguf.cpp
[42/220] Compiling linalg.cpp
[43/222] Wrapping AST for RealModule for debugging
[45/222] Compiling ComplexModule Complex+Numeric.swift
[46/223] Compiling ComplexModule Complex+Hashable.swift
[47/223] Compiling ComplexModule Complex+IntegerLiteral.swift
[48/223] Compiling ComplexModule Scale.swift
[49/223] Compiling ComplexModule Complex+AdditiveArithmetic.swift
[50/223] Compiling ComplexModule Complex+AlgebraicField.swift
[51/223] Compiling ComplexModule Complex+StringConvertible.swift
[52/223] Compiling ComplexModule Complex.swift
[53/223] Compiling ComplexModule Polar.swift
[53/223] Compiling transforms.cpp
[55/223] Emitting module ComplexModule
[56/223] Compiling ComplexModule Complex+Codable.swift
[57/223] Compiling ComplexModule Complex+ElementaryFunctions.swift
[58/224] Compiling graph_utils.cpp
[59/224] Compiling load.cpp
[61/226] Emitting module Numerics
[62/226] Compiling Numerics Numerics.swift
[63/227] Compiling primitives.cpp
[64/227] Wrapping AST for ComplexModule for debugging
[65/227] Wrapping AST for Numerics for debugging
[66/227] Compiling dtype_utils.cpp
[67/227] Compiling fast.cpp
[68/227] Compiling dtype.cpp
[69/227] Compiling safetensors.cpp
[70/227] Compiling no_ring.cpp
[71/227] Compiling einsum.cpp
[72/227] Compiling device.cpp
[73/227] Compiling no_mpi.cpp
[74/227] Compiling no_nccl.cpp
[75/227] Compiling distributed.cpp
[76/227] Compiling primitives.cpp
[77/227] 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:23:
In file included from /host/spi-builder-workspace/Source/Cmlx/metal-cpp/Metal/../Foundation/Foundation.hpp:25:
In file included from /host/spi-builder-workspace/Source/Cmlx/metal-cpp/Metal/../Foundation/NSArray.hpp:25:
In file included from /host/spi-builder-workspace/Source/Cmlx/metal-cpp/Metal/../Foundation/NSObject.hpp:26:
/host/spi-builder-workspace/Source/Cmlx/metal-cpp/Metal/../Foundation/NSPrivate.hpp:25:10: fatal error: 'objc/runtime.h' file not found
   25 | #include <objc/runtime.h>
      |          ^~~~~~~~~~~~~~~~
1 error generated.
[78/227] Compiling utils.cpp
[78/227] Compiling softmax.cpp
[78/227] Compiling compile.cpp
[78/227] Compiling ternary.cpp
[78/227] Compiling export.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:23:
In file included from /host/spi-builder-workspace/Source/Cmlx/metal-cpp/Metal/../Foundation/Foundation.hpp:25:
In file included from /host/spi-builder-workspace/Source/Cmlx/metal-cpp/Metal/../Foundation/NSArray.hpp:25:
In file included from /host/spi-builder-workspace/Source/Cmlx/metal-cpp/Metal/../Foundation/NSObject.hpp:26:
/host/spi-builder-workspace/Source/Cmlx/metal-cpp/Metal/../Foundation/NSPrivate.hpp:25:10: fatal error: 'objc/runtime.h' file not found
   25 | #include <objc/runtime.h>
      |          ^~~~~~~~~~~~~~~~
[78/227] Compiling unary.cpp
[78/227] Compiling sort.cpp
[78/227] Compiling ops.cpp
BUILD FAILURE 6.0 linux