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-lm, reference 2.29.2 (018529), with Swift 6.0 for Linux on 12 Nov 2025 07:12:05 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-lm.git
Reference: 2.29.2
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-lm
 * tag               2.29.2     -> FETCH_HEAD
HEAD is now at 0185297 Merge pull request #2 from ml-explore/nits_in_readme
Cloned https://github.com/ml-explore/mlx-swift-lm.git
Revision (git rev-parse @):
01852971866b17889f7aff27500cc62d9148b0df
SPI manifest file found: $PWD/.spi.yml
SUCCESS checkout https://github.com/ml-explore/mlx-swift-lm.git at 2.29.2
========================================
Build
========================================
Selected platform:         linux
Swift version:             6.0
Building package at path:  $PWD
https://github.com/ml-explore/mlx-swift-lm.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:046a2cda21bb64b2d09e6d52c84584e938ec1698de194871f3d7088597b2bb28
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.0-latest
Fetching https://github.com/ml-explore/mlx-swift
Fetching https://github.com/huggingface/swift-transformers
[1/5000] Fetching swift-transformers
[1101/16768] Fetching swift-transformers, mlx-swift
Fetched https://github.com/huggingface/swift-transformers from cache (0.77s)
Fetched https://github.com/ml-explore/mlx-swift from cache (1.17s)
Computing version for https://github.com/ml-explore/mlx-swift
Computed https://github.com/ml-explore/mlx-swift at 0.29.1 (1.07s)
Fetching https://github.com/apple/swift-numerics
[1/6380] Fetching swift-numerics
Fetched https://github.com/apple/swift-numerics from cache (0.66s)
Computing version for https://github.com/huggingface/swift-transformers
Computed https://github.com/huggingface/swift-transformers at 1.1.2 (1.12s)
Fetching https://github.com/huggingface/swift-jinja.git
[1/759] Fetching swift-jinja
Fetched https://github.com/huggingface/swift-jinja.git from cache (0.51s)
Computing version for https://github.com/huggingface/swift-jinja.git
Computed https://github.com/huggingface/swift-jinja.git at 2.1.1 (1.16s)
Fetching https://github.com/apple/swift-collections.git
[1/18314] Fetching swift-collections
Fetched https://github.com/apple/swift-collections.git from cache (2.05s)
Computing version for https://github.com/apple/swift-numerics
Computed https://github.com/apple/swift-numerics at 1.1.1 (1.24s)
Computing version for https://github.com/apple/swift-collections.git
Computed https://github.com/apple/swift-collections.git at 1.3.0 (1.62s)
Creating working copy for https://github.com/apple/swift-numerics
Working copy of https://github.com/apple/swift-numerics resolved at 1.1.1
Creating working copy for https://github.com/huggingface/swift-transformers
Working copy of https://github.com/huggingface/swift-transformers resolved at 1.1.2
Creating working copy for https://github.com/apple/swift-collections.git
Working copy of https://github.com/apple/swift-collections.git resolved at 1.3.0
Creating working copy for https://github.com/huggingface/swift-jinja.git
Working copy of https://github.com/huggingface/swift-jinja.git resolved at 2.1.1
Creating working copy for https://github.com/ml-explore/mlx-swift
Working copy of https://github.com/ml-explore/mlx-swift resolved at 0.29.1
Building for debugging...
[0/189] Write sources
[0/189] Copying gpt2_tokenizer_config.json
[0/189] Copying t5_tokenizer_config.json
[0/189] Write sources
[22/189] Compiling _NumericsShims _NumericsShims.c
[23/189] Compiling version.cpp
[24/189] Compiling utils.cpp
[25/189] Write swift-version-24593BA9C3E375BF.txt
[26/189] Compiling scheduler.cpp
[27/200] Compiling random.cpp
[28/200] Compiling no_gguf.cpp
[29/216] Compiling linalg.cpp
[30/216] Compiling transforms.cpp
[32/216] Emitting module InternalCollectionsUtilities
[33/216] Compiling InternalCollectionsUtilities Debugging.swift
[34/216] Compiling InternalCollectionsUtilities Descriptions.swift
[35/218] Compiling RealModule RealFunctions.swift
[36/219] Compiling InternalCollectionsUtilities LifetimeOverride.swift
[37/219] Compiling InternalCollectionsUtilities RandomAccessCollection+Offsets.swift
[38/219] Compiling InternalCollectionsUtilities UnsafeBufferPointer+Extras.swift
[39/219] Compiling InternalCollectionsUtilities UnsafeMutableBufferPointer+Extras.swift
[40/219] Compiling InternalCollectionsUtilities _SortedCollection.swift
[41/219] Compiling InternalCollectionsUtilities _UniqueCollection.swift
[42/219] Compiling InternalCollectionsUtilities UInt+reversed.swift
[43/219] Compiling InternalCollectionsUtilities _UnsafeBitSet+Index.swift
[44/219] Compiling InternalCollectionsUtilities FixedWidthInteger+roundUpToPowerOfTwo.swift
[45/219] Compiling InternalCollectionsUtilities Integer rank.swift
[46/219] Compiling InternalCollectionsUtilities UInt+first and last set bit.swift
[47/219] Compiling InternalCollectionsUtilities _UnsafeBitSet+_Word.swift
[48/219] Compiling InternalCollectionsUtilities _UnsafeBitSet.swift
[53/219] Compiling RealModule Float80+Real.swift
[54/219] Compiling RealModule Real.swift
[57/219] Compiling RealModule Float16+Real.swift
[58/219] Emitting module RealModule
[59/219] Compiling RealModule RelaxedArithmetic.swift
[61/220] Compiling InternalCollectionsUtilities UnsafeMutableRawBufferPointer+Extras.swift
[62/220] Compiling InternalCollectionsUtilities UnsafeRawBufferPointer+Extras.swift
[63/221] Compiling primitives.cpp
[64/221] Compiling graph_utils.cpp
[66/287] Compiling ComplexModule Polar.swift
[67/288] Compiling ComplexModule Complex+Hashable.swift
[68/288] Compiling ComplexModule Complex+IntegerLiteral.swift
[69/288] Compiling ComplexModule Complex.swift
[70/288] Compiling ComplexModule Complex+Numeric.swift
[71/288] Compiling ComplexModule Complex+StringConvertible.swift
[72/288] Compiling ComplexModule Complex+AdditiveArithmetic.swift
[73/288] Compiling ComplexModule Complex+AlgebraicField.swift
[74/288] Compiling ComplexModule Scale.swift
[74/288] Compiling load.cpp
[76/288] Compiling OrderedCollections OrderedSet+Partial SetAlgebra subtract.swift
[77/288] Compiling OrderedCollections OrderedSet+Partial SetAlgebra subtracting.swift
[78/288] Compiling OrderedCollections OrderedSet+Partial SetAlgebra symmetricDifference.swift
[79/288] Compiling OrderedCollections OrderedSet+Partial SetAlgebra union.swift
[80/288] Compiling OrderedCollections OrderedSet+Partial SetAlgebra+Basics.swift
[81/288] Compiling OrderedCollections OrderedSet+RandomAccessCollection.swift
[82/288] Compiling OrderedCollections OrderedSet+ReserveCapacity.swift
[83/295] Compiling OrderedCollections OrderedDictionary.swift
[84/295] Compiling OrderedCollections OrderedSet+Codable.swift
[85/295] Compiling OrderedCollections OrderedSet+CustomReflectable.swift
[86/295] Compiling OrderedCollections OrderedSet+Descriptions.swift
[87/295] Compiling OrderedCollections OrderedSet+Diffing.swift
[88/295] Compiling OrderedCollections OrderedSet+Equatable.swift
[89/295] Compiling OrderedCollections OrderedSet+ExpressibleByArrayLiteral.swift
[90/295] Compiling OrderedCollections OrderedSet+Hashable.swift
[91/295] Compiling OrderedCollections OrderedSet+Partial SetAlgebra intersection.swift
[92/295] Compiling OrderedCollections OrderedSet+Partial SetAlgebra isDisjoint.swift
[93/295] Compiling OrderedCollections OrderedSet+Partial SetAlgebra isEqualSet.swift
[94/295] Compiling OrderedCollections OrderedSet+Partial SetAlgebra isStrictSubset.swift
[95/295] Compiling OrderedCollections OrderedSet+Partial SetAlgebra isStrictSuperset.swift
[96/295] Compiling OrderedCollections OrderedSet+Partial SetAlgebra isSubset.swift
[97/295] Compiling OrderedCollections OrderedSet+Partial SetAlgebra isSuperset.swift
[98/295] Compiling OrderedCollections OrderedSet+Initializers.swift
[99/295] Compiling OrderedCollections OrderedSet+Insertions.swift
[100/295] Compiling OrderedCollections OrderedSet+Invariants.swift
[101/295] Compiling OrderedCollections OrderedSet+Partial MutableCollection.swift
[102/295] Compiling OrderedCollections OrderedSet+Partial RangeReplaceableCollection.swift
[103/295] Compiling OrderedCollections OrderedSet+Partial SetAlgebra formIntersection.swift
[104/295] Compiling OrderedCollections OrderedSet+Partial SetAlgebra formSymmetricDifference.swift
[105/295] Compiling OrderedCollections OrderedSet+Partial SetAlgebra formUnion.swift
[106/295] Compiling OrderedCollections OrderedDictionary+Hashable.swift
[107/295] Compiling OrderedCollections OrderedDictionary+Initializers.swift
[108/295] Compiling OrderedCollections OrderedDictionary+Invariants.swift
[109/295] Compiling OrderedCollections OrderedDictionary+Partial MutableCollection.swift
[110/295] Compiling OrderedCollections OrderedDictionary+Partial RangeReplaceableCollection.swift
[111/295] Compiling OrderedCollections OrderedDictionary+Sendable.swift
[112/295] Compiling OrderedCollections OrderedDictionary+Sequence.swift
[113/295] Compiling OrderedCollections OrderedDictionary+Values.swift
[114/295] Compiling OrderedCollections OrderedDictionary+Codable.swift
[115/295] Compiling OrderedCollections OrderedDictionary+CustomReflectable.swift
[116/295] Compiling OrderedCollections OrderedDictionary+Deprecations.swift
[117/295] Compiling OrderedCollections OrderedDictionary+Descriptions.swift
[118/295] Compiling OrderedCollections OrderedDictionary+Elements.SubSequence.swift
[119/295] Compiling OrderedCollections OrderedDictionary+Elements.swift
[120/295] Compiling OrderedCollections OrderedDictionary+Equatable.swift
[121/295] Compiling OrderedCollections OrderedDictionary+ExpressibleByDictionaryLiteral.swift
[122/295] Emitting module ComplexModule
[123/295] Compiling ComplexModule Complex+Codable.swift
[124/295] Compiling ComplexModule Complex+ElementaryFunctions.swift
[132/296] Compiling OrderedCollections _HashTable.swift
[133/296] Compiling OrderedCollections _Hashtable+Header.swift
[133/296] Compiling fft.cpp
[135/296] Compiling OrderedCollections OrderedSet+Sendable.swift
[136/296] Compiling OrderedCollections OrderedSet+SubSequence.swift
[137/296] Compiling OrderedCollections OrderedSet+Testing.swift
[138/296] Compiling OrderedCollections OrderedSet+UnorderedView.swift
[139/296] Compiling OrderedCollections OrderedSet+UnstableInternals.swift
[140/296] Compiling OrderedCollections OrderedSet.swift
[141/296] Compiling OrderedCollections _UnsafeBitset.swift
[142/298] Emitting module OrderedCollections
[143/299] Emitting module Numerics
[144/299] Compiling Numerics Numerics.swift
[146/300] Compiling safetensors.cpp
[147/300] Compiling dtype_utils.cpp
[148/300] Compiling fast.cpp
[149/300] Compiling dtype.cpp
[150/311] Compiling einsum.cpp
[151/314] Compiling no_ring.cpp
[152/314] Compiling ops.cpp
[153/314] Compiling device.cpp
[154/314] Compiling no_nccl.cpp
[155/314] Compiling no_mpi.cpp
[156/314] Compiling primitives.cpp
[157/314] Compiling distributed.cpp
[158/314] Compiling ops.cpp
[160/314] Compiling Jinja Utilities.swift
In file included from /host/spi-builder-workspace/.build/checkouts/mlx-swift/Source/Cmlx/mlx/mlx/backend/metal/utils.cpp:3:
In file included from /host/spi-builder-workspace/.build/checkouts/mlx-swift/Source/Cmlx/mlx/mlx/backend/metal/utils.h:8:
In file included from /host/spi-builder-workspace/.build/checkouts/mlx-swift/Source/Cmlx/mlx/mlx/backend/metal/device.h:5:
In file included from /host/spi-builder-workspace/.build/checkouts/mlx-swift/Source/Cmlx/metal-cpp/Metal/Metal.hpp:25:
In file included from /host/spi-builder-workspace/.build/checkouts/mlx-swift/Source/Cmlx/metal-cpp/Metal/MTLAccelerationStructure.hpp:24:
In file included from /host/spi-builder-workspace/.build/checkouts/mlx-swift/Source/Cmlx/metal-cpp/Metal/MTLHeaderBridge.hpp:22:
/host/spi-builder-workspace/.build/checkouts/mlx-swift/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.
[160/315] Compiling utils.cpp
[160/315] Compiling compile.cpp
[160/315] Compiling ternary.cpp
[160/315] Compiling sort.cpp
In file included from /host/spi-builder-workspace/.build/checkouts/mlx-swift/Source/Cmlx/mlx/mlx/backend/metal/unary.cpp:4:
In file included from /host/spi-builder-workspace/.build/checkouts/mlx-swift/Source/Cmlx/mlx/mlx/backend/metal/device.h:5:
In file included from /host/spi-builder-workspace/.build/checkouts/mlx-swift/Source/Cmlx/metal-cpp/Metal/Metal.hpp:25:
In file included from /host/spi-builder-workspace/.build/checkouts/mlx-swift/Source/Cmlx/metal-cpp/Metal/MTLAccelerationStructure.hpp:24:
In file included from /host/spi-builder-workspace/.build/checkouts/mlx-swift/Source/Cmlx/metal-cpp/Metal/MTLHeaderBridge.hpp:22:
/host/spi-builder-workspace/.build/checkouts/mlx-swift/Source/Cmlx/metal-cpp/Metal/MTLPrivate.hpp:27:10: fatal error: 'objc/runtime.h' file not found
   27 | #include <objc/runtime.h>
      |          ^~~~~~~~~~~~~~~~
[160/315] Compiling unary.cpp
[160/315] Compiling softmax.cpp
[160/315] Compiling export.cpp
BUILD FAILURE 6.0 linux