Build Information
Failed to build mlx-swift-lm, reference 2.29.2 (018529), with Swift 6.2 for Android on 12 Nov 2025 07:09:09 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4606859-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:android-6.2-latest swift build --swift-sdk aarch64-unknown-linux-android28 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: 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: android
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-4606859-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:android-6.2-latest swift build --swift-sdk aarch64-unknown-linux-android28 2>&1
android-6.2-latest: Pulling from finestructure/spi-images
Digest: sha256:d70d83f328e9f1ae04a4e17e63e2d335ae10639f90ee796a5fe3bfb139eab948
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:android-6.2-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 (1.39s)
Fetched https://github.com/ml-explore/mlx-swift from cache (1.39s)
Computing version for https://github.com/ml-explore/mlx-swift
Computed https://github.com/ml-explore/mlx-swift at 0.29.1 (1.89s)
Fetching https://github.com/apple/swift-numerics
[1/6380] Fetching swift-numerics
Fetched https://github.com/apple/swift-numerics from cache (0.54s)
Computing version for https://github.com/huggingface/swift-transformers
Computed https://github.com/huggingface/swift-transformers at 1.1.2 (1.09s)
Fetching https://github.com/huggingface/swift-jinja.git
[1/759] Fetching swift-jinja
Fetched https://github.com/huggingface/swift-jinja.git from cache (0.33s)
Computing version for https://github.com/huggingface/swift-jinja.git
Computed https://github.com/huggingface/swift-jinja.git at 2.1.1 (0.77s)
Fetching https://github.com/apple/swift-collections.git
[1/18314] Fetching swift-collections
Fetched https://github.com/apple/swift-collections.git from cache (1.40s)
Computing version for https://github.com/apple/swift-numerics
Computed https://github.com/apple/swift-numerics at 1.1.1 (1.77s)
Computing version for https://github.com/apple/swift-collections.git
Computed https://github.com/apple/swift-collections.git at 1.3.0 (0.62s)
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/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.1.1
Building for debugging...
[0/189] Write sources
[5/189] Copying gpt2_tokenizer_config.json
[6/189] Copying t5_tokenizer_config.json
[6/189] Write sources
[22/189] Compiling _NumericsShims _NumericsShims.c
[23/189] Compiling version.cpp
[24/189] Compiling utils.cpp
[25/189] Write swift-version--11D90AFD9DD3AB2.txt
[26/189] Compiling scheduler.cpp
[27/200] Compiling random.cpp
[28/216] Compiling linalg.cpp
[29/216] Compiling no_gguf.cpp
[31/216] Compiling InternalCollectionsUtilities _SortedCollection.swift
[32/216] Compiling InternalCollectionsUtilities _UniqueCollection.swift
[33/218] Compiling InternalCollectionsUtilities LifetimeOverride.swift
[34/218] Compiling InternalCollectionsUtilities RandomAccessCollection+Offsets.swift
[35/218] Compiling InternalCollectionsUtilities UnsafeBufferPointer+Extras.swift
[36/218] Compiling InternalCollectionsUtilities UnsafeMutableBufferPointer+Extras.swift
[37/218] Compiling InternalCollectionsUtilities Debugging.swift
[38/218] Compiling InternalCollectionsUtilities Descriptions.swift
[39/218] Compiling RealModule RealFunctions.swift
[40/218] Compiling RealModule Float80+Real.swift
[41/218] Compiling RealModule Real.swift
[42/218] Emitting module RealModule
[43/219] Emitting module InternalCollectionsUtilities
[44/219] Compiling InternalCollectionsUtilities _UnsafeBitSet+_Word.swift
[45/219] Compiling InternalCollectionsUtilities _UnsafeBitSet.swift
[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 InternalCollectionsUtilities UInt+reversed.swift
[50/219] Compiling InternalCollectionsUtilities _UnsafeBitSet+Index.swift
[57/219] Compiling RealModule Float16+Real.swift
[58/219] Compiling RealModule RelaxedArithmetic.swift
[59/220] Compiling InternalCollectionsUtilities UnsafeMutableRawBufferPointer+Extras.swift
[60/220] Compiling InternalCollectionsUtilities UnsafeRawBufferPointer+Extras.swift
[62/232] Compiling primitives.cpp
[64/257] Compiling OrderedCollections OrderedDictionary+Elements.SubSequence.swift
[65/257] Compiling OrderedCollections OrderedDictionary+Elements.swift
[66/288] Compiling ComplexModule Polar.swift
[67/288] Compiling ComplexModule Complex+StringConvertible.swift
[68/288] Compiling ComplexModule Complex+Numeric.swift
[69/288] Compiling ComplexModule Complex.swift
[70/288] Compiling ComplexModule Scale.swift
[71/288] Compiling OrderedCollections OrderedSet+Partial SetAlgebra subtract.swift
[72/288] Compiling OrderedCollections OrderedSet+Partial SetAlgebra subtracting.swift
[73/288] Compiling OrderedCollections OrderedSet+Partial SetAlgebra symmetricDifference.swift
[74/288] Compiling OrderedCollections OrderedSet+Partial SetAlgebra union.swift
[75/288] Compiling OrderedCollections OrderedSet+Partial SetAlgebra+Basics.swift
[76/288] Compiling OrderedCollections OrderedSet+RandomAccessCollection.swift
[77/288] Compiling OrderedCollections OrderedSet+ReserveCapacity.swift
[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] Emitting module ComplexModule
[86/295] Compiling OrderedCollections OrderedDictionary+Codable.swift
[87/295] Compiling OrderedCollections OrderedDictionary+CustomReflectable.swift
[88/295] Compiling OrderedCollections OrderedDictionary+Deprecations.swift
[89/295] Compiling OrderedCollections OrderedDictionary+Descriptions.swift
[91/298] Compiling OrderedCollections OrderedDictionary.swift
[92/298] Compiling OrderedCollections OrderedSet+Codable.swift
[93/298] Compiling OrderedCollections OrderedSet+CustomReflectable.swift
[94/298] Compiling OrderedCollections OrderedSet+Descriptions.swift
[95/298] Compiling OrderedCollections OrderedSet+Diffing.swift
[96/298] Compiling OrderedCollections OrderedSet+Equatable.swift
[97/298] Compiling OrderedCollections OrderedSet+ExpressibleByArrayLiteral.swift
[98/298] Compiling OrderedCollections OrderedSet+Hashable.swift
[99/298] Emitting module Numerics
[100/298] Compiling Numerics Numerics.swift
[108/299] Compiling OrderedCollections OrderedDictionary+Equatable.swift
[109/299] Compiling OrderedCollections OrderedDictionary+ExpressibleByDictionaryLiteral.swift
[110/299] Compiling OrderedCollections OrderedSet+Initializers.swift
[111/299] Compiling OrderedCollections OrderedSet+Insertions.swift
[112/299] Compiling OrderedCollections OrderedSet+Invariants.swift
[113/299] Compiling OrderedCollections OrderedSet+Partial MutableCollection.swift
[114/299] Compiling OrderedCollections OrderedSet+Partial RangeReplaceableCollection.swift
[115/299] Compiling OrderedCollections OrderedSet+Partial SetAlgebra formIntersection.swift
[116/299] Compiling OrderedCollections OrderedSet+Partial SetAlgebra formSymmetricDifference.swift
[117/299] Compiling OrderedCollections OrderedSet+Partial SetAlgebra formUnion.swift
[118/299] Compiling OrderedCollections OrderedDictionary+Hashable.swift
[119/299] Compiling OrderedCollections OrderedDictionary+Initializers.swift
[120/299] Compiling OrderedCollections OrderedDictionary+Invariants.swift
[121/299] Compiling OrderedCollections OrderedDictionary+Partial MutableCollection.swift
[122/299] Compiling OrderedCollections OrderedDictionary+Partial RangeReplaceableCollection.swift
[123/299] Compiling OrderedCollections OrderedDictionary+Sendable.swift
[124/299] Compiling OrderedCollections OrderedDictionary+Sequence.swift
[125/299] Compiling OrderedCollections OrderedDictionary+Values.swift
[125/299] Compiling load.cpp
[126/299] Compiling graph_utils.cpp
[128/299] Compiling OrderedCollections _HashTable+Bucket.swift
[129/299] Compiling OrderedCollections _HashTable+BucketIterator.swift
[130/299] Compiling OrderedCollections _HashTable+Constants.swift
[131/299] Compiling OrderedCollections _HashTable+CustomStringConvertible.swift
[132/299] Compiling OrderedCollections _HashTable+Testing.swift
[133/299] Compiling OrderedCollections _HashTable+UnsafeHandle.swift
[134/299] Compiling OrderedCollections _HashTable.swift
[135/299] Compiling OrderedCollections _Hashtable+Header.swift
[136/299] Compiling OrderedCollections OrderedSet+Sendable.swift
[137/299] Compiling OrderedCollections OrderedSet+SubSequence.swift
[138/299] Compiling OrderedCollections OrderedSet+Testing.swift
[139/299] Compiling OrderedCollections OrderedSet+UnorderedView.swift
[140/299] Compiling OrderedCollections OrderedSet+UnstableInternals.swift
[141/299] Compiling OrderedCollections OrderedSet.swift
[142/299] Compiling OrderedCollections _UnsafeBitset.swift
[142/299] Compiling transforms.cpp
[144/299] Emitting module OrderedCollections
[145/300] Compiling fft.cpp
[146/314] Compiling dtype_utils.cpp
[147/314] Compiling dtype.cpp
[148/314] Compiling safetensors.cpp
[149/314] Compiling ops.cpp
[150/314] Compiling no_ring.cpp
[151/314] Compiling einsum.cpp
[153/314] Compiling Jinja Utilities.swift
[153/315] Compiling no_nccl.cpp
[154/315] Compiling primitives.cpp
[155/315] Compiling device.cpp
[156/315] Compiling fast.cpp
[157/315] Compiling ops.cpp
[158/315] Compiling no_mpi.cpp
[159/315] Compiling distributed.cpp
[161/315] Compiling Jinja Tests.swift
[162/315] Compiling Jinja Token.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.
[162/315] Compiling utils.cpp
[162/315] Compiling export.cpp
[162/315] Compiling sort.cpp
[162/315] Compiling compile.cpp
[162/315] Compiling ternary.cpp
[162/315] Compiling softmax.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>
| ^~~~~~~~~~~~~~~~
[162/315] Compiling unary.cpp
BUILD FAILURE 6.2 android