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.2 for Android on 10 Dec 2025 05:49:38 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4606859-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:android-6.2-latest swift build --swift-sdk aarch64-unknown-linux-android28 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:         android
Swift version:             6.2
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-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: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:c3fe93b3f7c9edfd66b4287786a9b8caf7805f96d7219e301e257b4e0de911bb
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:android-6.2-latest
Fetching https://github.com/apple/swift-numerics
[1/6384] Fetching swift-numerics
Fetched https://github.com/apple/swift-numerics from cache (0.44s)
Computing version for https://github.com/apple/swift-numerics
Computed https://github.com/apple/swift-numerics at 1.1.1 (0.82s)
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/CustomFunctionExampleSimple.swift
    /host/spi-builder-workspace/Source/Examples/Example1.swift
    /host/spi-builder-workspace/Source/Examples/CustomFunctionExample.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/CustomFunctionExampleSimple.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/Example1.swift
    /host/spi-builder-workspace/Source/Examples/CustomFunctionExample.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/Example1.swift
    /host/spi-builder-workspace/Source/Examples/CustomFunctionExampleSimple.swift
    /host/spi-builder-workspace/Source/Examples/Tutorial.swift
Building for debugging...
[0/198] Compiling error.cpp
[1/198] Write swift-version--6B0C4D200E742BB1.txt
[2/198] Compiling _NumericsShims _NumericsShims.c
[2/198] Write sources
[6/209] Compiling export.cpp
[7/209] Write sources
[18/209] Compiling version.cpp
[19/209] Compiling io_types.cpp
[20/209] Compiling device.cpp
[21/209] Compiling compile.cpp
[22/209] Compiling linalg.cpp
[23/209] Compiling utils.cpp
[25/209] Compiling RealModule RealFunctions.swift
[26/210] Emitting module RealModule
[27/210] Compiling RealModule Real.swift
[28/210] Compiling RealModule RelaxedArithmetic.swift
[29/210] Compiling RealModule Float80+Real.swift
[30/210] Compiling RealModule ElementaryFunctions.swift
[31/210] Compiling RealModule Float+Real.swift
[32/210] Compiling RealModule AugmentedArithmetic.swift
[33/210] Compiling RealModule Double+Real.swift
[34/210] Compiling RealModule Float16+Real.swift
[35/210] Compiling RealModule AlgebraicField.swift
[36/210] Compiling RealModule ApproximateEquality.swift
[37/211] Compiling closure.cpp
[38/222] Compiling scheduler.cpp
[40/222] Compiling ComplexModule Complex+Numeric.swift
[41/223] Compiling ComplexModule Complex+Hashable.swift
[42/223] Compiling ComplexModule Complex+IntegerLiteral.swift
[42/223] Wrapping AST for RealModule for debugging
[44/223] Compiling ComplexModule Complex.swift
[45/223] Compiling ComplexModule Polar.swift
[46/223] Compiling ComplexModule Complex+StringConvertible.swift
[47/223] Compiling ComplexModule Scale.swift
[47/223] Compiling array.cpp
[49/223] Emitting module ComplexModule
[50/223] Compiling ComplexModule Complex+AdditiveArithmetic.swift
[51/223] Compiling ComplexModule Complex+AlgebraicField.swift
[52/223] Compiling ComplexModule Complex+Codable.swift
[53/223] Compiling ComplexModule Complex+ElementaryFunctions.swift
[54/224] Compiling random.cpp
[56/226] Emitting module Numerics
[57/226] Compiling Numerics Numerics.swift
[58/227] Wrapping AST for ComplexModule for debugging
[59/227] Wrapping AST for Numerics for debugging
[60/227] Compiling no_gguf.cpp
[61/227] Compiling linalg.cpp
[62/227] Compiling primitives.cpp
[63/227] Compiling load.cpp
[64/227] Compiling fft.cpp
[65/227] Compiling graph_utils.cpp
[66/227] Compiling transforms.cpp
[67/227] Compiling dtype.cpp
[68/227] Compiling safetensors.cpp
[69/227] Compiling dtype_utils.cpp
[70/227] Compiling no_ring.cpp
[71/227] Compiling no_nccl.cpp
[72/227] Compiling fast.cpp
[73/227] Compiling no_mpi.cpp
[74/227] Compiling device.cpp
[75/227] Compiling primitives.cpp
[76/227] Compiling einsum.cpp
[77/227] Compiling ops.cpp
[79/227] Compiling distributed.cpp
In file included from /host/spi-builder-workspace/Source/Cmlx/mlx/mlx/backend/metal/sort.cpp:6:
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.
[80/227] Compiling sort.cpp
In file included from /host/spi-builder-workspace/Source/Cmlx/mlx/mlx/backend/metal/softmax.cpp:5:
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>
      |          ^~~~~~~~~~~~~~~~
[80/227] Compiling softmax.cpp
[80/227] Compiling slicing.cpp
In file included from /host/spi-builder-workspace/Source/Cmlx/mlx/mlx/backend/metal/ternary.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>
      |          ^~~~~~~~~~~~~~~~
[80/227] Compiling ternary.cpp
[80/227] Compiling compile.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>
      |          ^~~~~~~~~~~~~~~~
[80/227] Compiling utils.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>
      |          ^~~~~~~~~~~~~~~~
[80/227] Compiling unary.cpp
[80/227] Compiling export.cpp
BUILD FAILURE 6.2 android