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 main (74f85d), with Swift 6.2 for Linux on 9 Dec 2025 01:31:11 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4609320-0":/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.68.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/ml-explore/mlx-swift-lm.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-lm
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at 74f85d9 Add Mistral 3, fix SuScaledRoPE (#16)
Cloned https://github.com/ml-explore/mlx-swift-lm.git
Revision (git rev-parse @):
74f85d9505032ec3403c94ba159472244fe78767
SPI manifest file found: $PWD/.spi.yml
SUCCESS checkout https://github.com/ml-explore/mlx-swift-lm.git at main
========================================
Build
========================================
Selected platform:         linux
Swift version:             6.2
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-4609320-0":/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:36dcf51aceebb7518dd97346bbe30fd556b23ffe7a4d72d70473700580e8e541
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.2-latest
Fetching https://github.com/ml-explore/mlx-swift
[1/12202] Fetching mlx-swift
Fetching https://github.com/huggingface/swift-transformers
Fetched https://github.com/ml-explore/mlx-swift from cache (1.74s)
[1/5141] Fetching swift-transformers
Fetched https://github.com/huggingface/swift-transformers from cache (1.03s)
Computing version for https://github.com/ml-explore/mlx-swift
Computed https://github.com/ml-explore/mlx-swift at 0.29.1 (3.35s)
Fetching https://github.com/apple/swift-numerics
[1/6384] Fetching swift-numerics
Fetched https://github.com/apple/swift-numerics from cache (0.61s)
Computing version for https://github.com/huggingface/swift-transformers
Computed https://github.com/huggingface/swift-transformers at 1.1.4 (1.30s)
Fetching https://github.com/huggingface/swift-jinja.git
[1/783] Fetching swift-jinja
Fetched https://github.com/huggingface/swift-jinja.git from cache (0.42s)
Computing version for https://github.com/apple/swift-numerics
Computed https://github.com/apple/swift-numerics at 1.1.1 (1.04s)
Computing version for https://github.com/huggingface/swift-jinja.git
Computed https://github.com/huggingface/swift-jinja.git at 2.2.0 (0.57s)
Fetching https://github.com/apple/swift-collections.git
[1/18364] Fetching swift-collections
Fetched https://github.com/apple/swift-collections.git from cache (1.98s)
Computing version for https://github.com/apple/swift-collections.git
Computed https://github.com/apple/swift-collections.git at 1.3.0 (2.94s)
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-transformers
Working copy of https://github.com/huggingface/swift-transformers resolved at 1.1.4
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/ml-explore/mlx-swift
Working copy of https://github.com/ml-explore/mlx-swift resolved at 0.29.1
Creating working copy for https://github.com/huggingface/swift-jinja.git
Working copy of https://github.com/huggingface/swift-jinja.git resolved at 2.2.0
Building for debugging...
[0/189] Write sources
[6/189] Copying t5_tokenizer_config.json
[6/189] Write sources
[14/189] Copying gpt2_tokenizer_config.json
[22/189] Compiling version.cpp
[23/189] Compiling _NumericsShims _NumericsShims.c
[24/189] Write swift-version-24593BA9C3E375BF.txt
[25/189] Compiling utils.cpp
[26/200] Compiling scheduler.cpp
[27/216] Compiling random.cpp
[28/216] Compiling linalg.cpp
[29/216] Compiling no_gguf.cpp
[30/216] Compiling transforms.cpp
[31/216] Compiling primitives.cpp
[32/216] Compiling load.cpp
[34/216] Compiling RealModule RealFunctions.swift
[35/217] Compiling RealModule Real.swift
[36/217] Compiling InternalCollectionsUtilities UInt+reversed.swift
[37/217] Compiling InternalCollectionsUtilities _UnsafeBitSet+Index.swift
[38/217] Compiling InternalCollectionsUtilities UnsafeBufferPointer+Extras.swift
[39/217] Compiling InternalCollectionsUtilities UnsafeMutableBufferPointer+Extras.swift
[40/219] Compiling InternalCollectionsUtilities _UnsafeBitSet+_Word.swift
[41/219] Compiling InternalCollectionsUtilities _UnsafeBitSet.swift
[42/219] Compiling RealModule RelaxedArithmetic.swift
[43/219] Compiling InternalCollectionsUtilities LifetimeOverride.swift
[44/219] Compiling InternalCollectionsUtilities RandomAccessCollection+Offsets.swift
[45/219] Emitting module InternalCollectionsUtilities
[46/219] Compiling InternalCollectionsUtilities FixedWidthInteger+roundUpToPowerOfTwo.swift
[47/219] Compiling InternalCollectionsUtilities Integer rank.swift
[48/219] Compiling InternalCollectionsUtilities UInt+first and last set bit.swift
[49/219] Compiling RealModule Float80+Real.swift
[50/219] Compiling InternalCollectionsUtilities Debugging.swift
[51/219] Compiling InternalCollectionsUtilities Descriptions.swift
[52/219] Compiling InternalCollectionsUtilities _SortedCollection.swift
[53/219] Compiling InternalCollectionsUtilities _UniqueCollection.swift
[54/219] Compiling RealModule Float16+Real.swift
[59/219] Emitting module RealModule
[62/220] Compiling InternalCollectionsUtilities UnsafeMutableRawBufferPointer+Extras.swift
[63/220] Compiling InternalCollectionsUtilities UnsafeRawBufferPointer+Extras.swift
[65/221] Compiling safetensors.cpp
[67/287] Compiling ComplexModule Polar.swift
[68/287] Compiling ComplexModule Complex+Numeric.swift
[69/288] Compiling OrderedCollections _HashTable+Testing.swift
[70/288] Compiling OrderedCollections _HashTable+UnsafeHandle.swift
[71/288] Compiling ComplexModule Complex+StringConvertible.swift
[72/288] Compiling ComplexModule Complex.swift
[72/288] Compiling graph_utils.cpp
[74/288] Compiling OrderedCollections _HashTable+Bucket.swift
[75/288] Compiling OrderedCollections _HashTable+BucketIterator.swift
[76/288] Compiling ComplexModule Scale.swift
[77/288] Emitting module ComplexModule
[78/288] Compiling OrderedCollections OrderedSet+Partial SetAlgebra intersection.swift
[79/288] Compiling OrderedCollections OrderedSet+Partial SetAlgebra isDisjoint.swift
[80/288] Compiling OrderedCollections OrderedSet+Partial SetAlgebra isEqualSet.swift
[81/288] Compiling OrderedCollections OrderedSet+Partial SetAlgebra isStrictSubset.swift
[82/288] Compiling OrderedCollections OrderedSet+Partial SetAlgebra isStrictSuperset.swift
[83/288] Compiling OrderedCollections OrderedSet+Partial SetAlgebra isSubset.swift
[84/288] Compiling OrderedCollections OrderedSet+Partial SetAlgebra isSuperset.swift
[85/295] Compiling OrderedCollections OrderedSet+Partial SetAlgebra subtract.swift
[86/295] Compiling OrderedCollections OrderedSet+Partial SetAlgebra subtracting.swift
[87/295] Compiling OrderedCollections OrderedSet+Partial SetAlgebra symmetricDifference.swift
[88/295] Compiling OrderedCollections OrderedSet+Partial SetAlgebra union.swift
[89/295] Compiling OrderedCollections OrderedSet+Partial SetAlgebra+Basics.swift
[90/295] Compiling OrderedCollections OrderedSet+RandomAccessCollection.swift
[91/295] Compiling OrderedCollections OrderedSet+ReserveCapacity.swift
[92/295] Compiling OrderedCollections OrderedDictionary.swift
[93/295] Compiling OrderedCollections OrderedSet+Codable.swift
[94/295] Compiling OrderedCollections OrderedSet+CustomReflectable.swift
[95/295] Compiling OrderedCollections OrderedSet+Descriptions.swift
[96/295] Compiling OrderedCollections OrderedSet+Diffing.swift
[97/295] Compiling OrderedCollections OrderedSet+Equatable.swift
[98/295] Compiling OrderedCollections OrderedSet+ExpressibleByArrayLiteral.swift
[99/295] Compiling OrderedCollections OrderedSet+Hashable.swift
[100/295] Compiling OrderedCollections _HashTable+Constants.swift
[101/295] Compiling OrderedCollections _HashTable+CustomStringConvertible.swift
[103/296] Compiling OrderedCollections OrderedSet+Initializers.swift
[104/296] Compiling OrderedCollections OrderedSet+Insertions.swift
[105/296] Compiling OrderedCollections OrderedSet+Invariants.swift
[106/296] Compiling OrderedCollections OrderedSet+Partial MutableCollection.swift
[107/296] Compiling OrderedCollections OrderedSet+Partial RangeReplaceableCollection.swift
[108/296] Compiling OrderedCollections OrderedSet+Partial SetAlgebra formIntersection.swift
[109/296] Compiling OrderedCollections OrderedSet+Partial SetAlgebra formSymmetricDifference.swift
[110/296] Compiling OrderedCollections OrderedSet+Partial SetAlgebra formUnion.swift
[111/296] Compiling OrderedCollections OrderedDictionary+Codable.swift
[112/296] Compiling OrderedCollections OrderedDictionary+CustomReflectable.swift
[113/296] Compiling OrderedCollections OrderedDictionary+Deprecations.swift
[114/296] Compiling OrderedCollections OrderedDictionary+Descriptions.swift
[115/296] Compiling OrderedCollections OrderedDictionary+Elements.SubSequence.swift
[116/296] Compiling OrderedCollections OrderedDictionary+Elements.swift
[117/296] Compiling OrderedCollections OrderedDictionary+Equatable.swift
[118/296] Compiling OrderedCollections OrderedDictionary+ExpressibleByDictionaryLiteral.swift
[119/296] Compiling OrderedCollections OrderedDictionary+Hashable.swift
[120/296] Compiling OrderedCollections OrderedDictionary+Initializers.swift
[121/296] Compiling OrderedCollections OrderedDictionary+Invariants.swift
[122/296] Compiling OrderedCollections OrderedDictionary+Partial MutableCollection.swift
[123/296] Compiling OrderedCollections OrderedDictionary+Partial RangeReplaceableCollection.swift
[124/296] Compiling OrderedCollections OrderedDictionary+Sendable.swift
[125/296] Compiling OrderedCollections OrderedDictionary+Sequence.swift
[126/296] Compiling OrderedCollections OrderedDictionary+Values.swift
[126/296] Compiling fft.cpp
[127/296] Compiling dtype_utils.cpp
[129/298] Emitting module Numerics
[130/298] Compiling Numerics Numerics.swift
[138/299] Compiling OrderedCollections _HashTable.swift
[139/299] Compiling OrderedCollections _Hashtable+Header.swift
[140/299] Emitting module OrderedCollections
[140/299] Compiling dtype.cpp
[142/299] Compiling OrderedCollections OrderedSet+Sendable.swift
[143/299] Compiling OrderedCollections OrderedSet+SubSequence.swift
[144/299] Compiling OrderedCollections OrderedSet+Testing.swift
[145/299] Compiling OrderedCollections OrderedSet+UnorderedView.swift
[146/299] Compiling OrderedCollections OrderedSet+UnstableInternals.swift
[147/299] Compiling OrderedCollections OrderedSet.swift
[148/299] Compiling OrderedCollections _UnsafeBitset.swift
[149/300] Compiling fast.cpp
[150/300] Compiling no_ring.cpp
[151/300] Compiling einsum.cpp
[152/300] Compiling ops.cpp
[153/300] Compiling no_nccl.cpp
[154/300] Compiling device.cpp
[155/300] Compiling no_mpi.cpp
[156/300] Compiling ops.cpp
[157/314] Compiling distributed.cpp
[158/314] Compiling primitives.cpp
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.
[159/314] Compiling utils.cpp
[159/314] Compiling ternary.cpp
[159/314] Compiling softmax.cpp
[159/314] Compiling compile.cpp
[159/314] Compiling sort.cpp
[159/314] Compiling unary.cpp
[159/314] Compiling export.cpp
BUILD FAILURE 6.2 linux