Build Information
Failed to build mlx-swift-lm, reference main (74f85d), with Swift 6.0 for Linux on 9 Dec 2025 01:30:43 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4609320-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.0-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-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.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-4609320-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.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/ml-explore/mlx-swift
Fetching https://github.com/huggingface/swift-transformers
[1/5141] Fetching swift-transformers
[1390/17343] Fetching swift-transformers, mlx-swift
Fetched https://github.com/huggingface/swift-transformers from cache (1.29s)
Fetched https://github.com/ml-explore/mlx-swift from cache (1.30s)
Computing version for https://github.com/ml-explore/mlx-swift
Computed https://github.com/ml-explore/mlx-swift at 0.29.1 (0.79s)
Fetching https://github.com/apple/swift-numerics
[1/6384] Fetching swift-numerics
Fetched https://github.com/apple/swift-numerics from cache (0.50s)
Computing version for https://github.com/huggingface/swift-transformers
Computed https://github.com/huggingface/swift-transformers at 1.1.4 (0.81s)
Fetching https://github.com/huggingface/swift-jinja.git
[1/783] Fetching swift-jinja
Fetched https://github.com/huggingface/swift-jinja.git from cache (0.31s)
Computing version for https://github.com/apple/swift-numerics
Computed https://github.com/apple/swift-numerics at 1.1.1 (0.66s)
Computing version for https://github.com/huggingface/swift-jinja.git
Computed https://github.com/huggingface/swift-jinja.git at 2.2.0 (0.68s)
Fetching https://github.com/apple/swift-collections.git
[1/18364] Fetching swift-collections
Fetched https://github.com/apple/swift-collections.git from cache (1.28s)
Computing version for https://github.com/apple/swift-collections.git
Computed https://github.com/apple/swift-collections.git at 1.3.0 (1.51s)
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-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/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.2.0
Building for debugging...
[0/189] Write sources
[13/189] Compiling error.cpp
[14/189] Copying t5_tokenizer_config.json
[14/189] Copying gpt2_tokenizer_config.json
[16/189] Compiling _NumericsShims _NumericsShims.c
[17/189] Write sources
[24/189] Compiling version.cpp
[25/189] Compiling utils.cpp
[26/189] Compiling export.cpp
[27/189] Compiling compile.cpp
[28/189] Compiling device.cpp
[29/189] Compiling format.cc
[29/189] Write swift-version-24593BA9C3E375BF.txt
[31/189] Compiling fast.cpp
[32/189] Compiling array.cpp
[33/216] Compiling scheduler.cpp
[34/216] Compiling random.cpp
[35/216] Compiling linalg.cpp
[36/216] Compiling transforms.cpp
[37/216] Compiling no_gguf.cpp
[39/216] Compiling InternalCollectionsUtilities UInt+reversed.swift
[40/216] Compiling InternalCollectionsUtilities _UnsafeBitSet+Index.swift
[41/218] Compiling InternalCollectionsUtilities UnsafeMutableRawBufferPointer+Extras.swift
[42/218] Compiling InternalCollectionsUtilities UnsafeRawBufferPointer+Extras.swift
[43/218] Compiling InternalCollectionsUtilities FixedWidthInteger+roundUpToPowerOfTwo.swift
[44/218] Compiling InternalCollectionsUtilities Integer rank.swift
[44/219] Compiling primitives.cpp
[46/219] Compiling RealModule RealFunctions.swift
[47/219] Emitting module InternalCollectionsUtilities
[50/219] Compiling InternalCollectionsUtilities UInt+first and last set bit.swift
[51/219] Compiling InternalCollectionsUtilities Debugging.swift
[52/219] Compiling InternalCollectionsUtilities Descriptions.swift
[53/219] Compiling InternalCollectionsUtilities _UnsafeBitSet+_Word.swift
[54/219] Compiling InternalCollectionsUtilities _UnsafeBitSet.swift
[57/219] Emitting module RealModule
[60/219] Compiling InternalCollectionsUtilities LifetimeOverride.swift
[61/219] Compiling InternalCollectionsUtilities RandomAccessCollection+Offsets.swift
[62/219] Compiling InternalCollectionsUtilities _SortedCollection.swift
[63/219] Compiling InternalCollectionsUtilities _UniqueCollection.swift
[64/219] Compiling InternalCollectionsUtilities UnsafeBufferPointer+Extras.swift
[65/219] Compiling InternalCollectionsUtilities UnsafeMutableBufferPointer+Extras.swift
[66/219] Compiling RealModule Float80+Real.swift
[67/219] Compiling RealModule Float16+Real.swift
[68/219] Compiling RealModule Real.swift
[69/220] Compiling RealModule RelaxedArithmetic.swift
[71/276] Compiling graph_utils.cpp
[73/276] Compiling OrderedCollections OrderedSet+Partial SetAlgebra subtract.swift
[74/276] Compiling OrderedCollections OrderedSet+Partial SetAlgebra subtracting.swift
[75/276] Compiling OrderedCollections OrderedSet+Partial SetAlgebra symmetricDifference.swift
[76/276] Compiling OrderedCollections OrderedSet+Partial SetAlgebra union.swift
[77/276] Compiling OrderedCollections OrderedSet+Partial SetAlgebra+Basics.swift
[78/276] Compiling OrderedCollections OrderedSet+RandomAccessCollection.swift
[79/276] Compiling OrderedCollections OrderedSet+ReserveCapacity.swift
[80/276] Compiling OrderedCollections OrderedSet+Partial SetAlgebra intersection.swift
[81/276] Compiling OrderedCollections OrderedSet+Partial SetAlgebra isDisjoint.swift
[82/276] Compiling OrderedCollections OrderedSet+Partial SetAlgebra isEqualSet.swift
[83/276] Compiling OrderedCollections OrderedSet+Partial SetAlgebra isStrictSubset.swift
[84/276] Compiling OrderedCollections OrderedSet+Partial SetAlgebra isStrictSuperset.swift
[85/276] Compiling OrderedCollections OrderedSet+Partial SetAlgebra isSubset.swift
[86/276] Compiling OrderedCollections OrderedSet+Partial SetAlgebra isSuperset.swift
[87/283] Compiling OrderedCollections OrderedDictionary.swift
[88/283] Compiling OrderedCollections OrderedSet+Codable.swift
[89/283] Compiling OrderedCollections OrderedSet+CustomReflectable.swift
[90/283] Compiling OrderedCollections OrderedSet+Descriptions.swift
[91/283] Compiling OrderedCollections OrderedSet+Diffing.swift
[92/283] Compiling OrderedCollections OrderedSet+Equatable.swift
[93/283] Compiling OrderedCollections OrderedSet+ExpressibleByArrayLiteral.swift
[94/283] Compiling OrderedCollections OrderedSet+Hashable.swift
[95/283] Compiling OrderedCollections OrderedDictionary+Codable.swift
[96/283] Compiling OrderedCollections OrderedDictionary+CustomReflectable.swift
[97/283] Compiling OrderedCollections OrderedDictionary+Deprecations.swift
[98/283] Compiling OrderedCollections OrderedDictionary+Descriptions.swift
[99/283] Compiling OrderedCollections OrderedDictionary+Elements.SubSequence.swift
[100/283] Compiling OrderedCollections OrderedDictionary+Elements.swift
[101/283] Compiling OrderedCollections OrderedDictionary+Equatable.swift
[102/283] Compiling OrderedCollections OrderedDictionary+ExpressibleByDictionaryLiteral.swift
[103/283] Compiling OrderedCollections OrderedDictionary+Hashable.swift
[104/283] Compiling OrderedCollections OrderedDictionary+Initializers.swift
[105/283] Compiling OrderedCollections OrderedDictionary+Invariants.swift
[106/283] Compiling OrderedCollections OrderedDictionary+Partial MutableCollection.swift
[107/283] Compiling OrderedCollections OrderedDictionary+Partial RangeReplaceableCollection.swift
[108/283] Compiling OrderedCollections OrderedDictionary+Sendable.swift
[109/283] Compiling OrderedCollections OrderedDictionary+Sequence.swift
[110/283] Compiling OrderedCollections OrderedDictionary+Values.swift
[111/283] Compiling OrderedCollections OrderedSet+Initializers.swift
[112/283] Compiling OrderedCollections OrderedSet+Insertions.swift
[113/283] Compiling OrderedCollections OrderedSet+Invariants.swift
[114/283] Compiling OrderedCollections OrderedSet+Partial MutableCollection.swift
[115/283] Compiling OrderedCollections OrderedSet+Partial RangeReplaceableCollection.swift
[116/283] Compiling OrderedCollections OrderedSet+Partial SetAlgebra formIntersection.swift
[117/283] Compiling OrderedCollections OrderedSet+Partial SetAlgebra formSymmetricDifference.swift
[118/283] Compiling OrderedCollections OrderedSet+Partial SetAlgebra formUnion.swift
[118/283] Compiling load.cpp
[119/294] Compiling fft.cpp
[121/294] Compiling ComplexModule Complex+Codable.swift
[122/294] Compiling ComplexModule Complex+ElementaryFunctions.swift
[123/294] Compiling ComplexModule Complex+AdditiveArithmetic.swift
[124/294] Compiling ComplexModule Complex+AlgebraicField.swift
[125/294] Compiling ComplexModule Complex+Hashable.swift
[126/294] Compiling ComplexModule Complex+IntegerLiteral.swift
[127/294] Compiling OrderedCollections _HashTable.swift
[128/294] Compiling OrderedCollections _Hashtable+Header.swift
[129/294] Compiling ComplexModule Polar.swift
[130/295] Compiling ComplexModule Scale.swift
[131/295] Compiling ComplexModule Complex+StringConvertible.swift
[132/295] Compiling ComplexModule Complex+Numeric.swift
[135/295] Compiling ComplexModule Complex.swift
[136/295] Compiling OrderedCollections OrderedSet+Sendable.swift
[137/295] Compiling OrderedCollections OrderedSet+SubSequence.swift
[138/295] Compiling OrderedCollections OrderedSet+Testing.swift
[139/295] Compiling OrderedCollections OrderedSet+UnorderedView.swift
[140/295] Compiling OrderedCollections OrderedSet+UnstableInternals.swift
[141/295] Compiling OrderedCollections OrderedSet.swift
[142/295] Compiling OrderedCollections _UnsafeBitset.swift
[143/295] Emitting module ComplexModule
[148/296] Emitting module OrderedCollections
[148/297] Compiling safetensors.cpp
[150/297] Compiling dtype_utils.cpp
[152/299] Compiling fast.cpp
[154/299] Emitting module Numerics
[155/299] Compiling Numerics Numerics.swift
[156/314] Compiling dtype.cpp
[157/314] Compiling no_ring.cpp
[158/314] Compiling einsum.cpp
[159/314] Compiling ops.cpp
[160/314] Compiling primitives.cpp
[161/314] Compiling device.cpp
[162/314] Compiling no_mpi.cpp
[163/314] Compiling no_nccl.cpp
[164/314] Compiling distributed.cpp
[165/314] Compiling ops.cpp
[167/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.
[167/315] Compiling utils.cpp
[167/315] Compiling sort.cpp
[167/315] Compiling compile.cpp
[167/315] Compiling softmax.cpp
In file included from /host/spi-builder-workspace/.build/checkouts/mlx-swift/Source/Cmlx/mlx/mlx/backend/metal/ternary.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>
| ^~~~~~~~~~~~~~~~
[167/315] Compiling ternary.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>
| ^~~~~~~~~~~~~~~~
[167/315] Compiling unary.cpp
[167/315] Compiling export.cpp
BUILD FAILURE 6.0 linux