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 (6f5849), with Swift 6.2 (beta) for Android on 10 Sep 2025 20:29:19 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4609320-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:android-6.2-latest swift build --swift-sdk aarch64-unknown-linux-android28 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.67.1
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 6f58497 Make `MLXError` provide a description (#268)
Submodule path 'Source/Cmlx/mlx': checked out 'eaf709b83e559079e212699bfc9dd2f939d25c9a'
Submodule path 'Source/Cmlx/mlx-c': checked out '9ebe155864eab06d94ba18e01f9cb2666b2975a7'
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 @):
6f58497cd6959045c045bb85c11f4086d19c02d5
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-4609320-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: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:b7c4a6b4153ff40ef9277e2157e708f835b8eb011095d53bd8db4594eb2b7798
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/6348] Fetching swift-numerics
Fetched https://github.com/apple/swift-numerics from cache (0.81s)
Computing version for https://github.com/apple/swift-numerics
Computed https://github.com/apple/swift-numerics at 1.1.0 (1.54s)
Creating working copy for https://github.com/apple/swift-numerics
Working copy of https://github.com/apple/swift-numerics resolved at 1.1.0
warning: 'spi-builder-workspace': found 1 file(s) which are unhandled; explicitly declare them as resources or exclude from the target
    /host/spi-builder-workspace/Source/Examples/Example1.swift
warning: 'spi-builder-workspace': found 1 file(s) which are unhandled; explicitly declare them as resources or exclude from the target
    /host/spi-builder-workspace/Source/Examples/Tutorial.swift
Building for debugging...
[0/177] Write sources
[12/177] Compiling _NumericsShims _NumericsShims.c
[13/177] Write swift-version-8C5A4AE7A8CE2BA.txt
[14/177] Compiling version.cpp
In file included from /host/spi-builder-workspace/Source/Cmlx/mlx/mlx/utils.cpp:4:
In file included from /root/.swiftpm/swift-sdks/swift-6.2-DEVELOPMENT-SNAPSHOT-2025-05-15-a-android-0.1.artifactbundle/swift-android/ndk-sysroot/usr/include/c++/v1/iostream:43:
In file included from /root/.swiftpm/swift-sdks/swift-6.2-DEVELOPMENT-SNAPSHOT-2025-05-15-a-android-0.1.artifactbundle/swift-android/ndk-sysroot/usr/include/c++/v1/ios:223:
In file included from /root/.swiftpm/swift-sdks/swift-6.2-DEVELOPMENT-SNAPSHOT-2025-05-15-a-android-0.1.artifactbundle/swift-android/ndk-sysroot/usr/include/c++/v1/__locale:23:
In file included from /root/.swiftpm/swift-sdks/swift-6.2-DEVELOPMENT-SNAPSHOT-2025-05-15-a-android-0.1.artifactbundle/swift-android/ndk-sysroot/usr/include/c++/v1/string:625:
In file included from /root/.swiftpm/swift-sdks/swift-6.2-DEVELOPMENT-SNAPSHOT-2025-05-15-a-android-0.1.artifactbundle/swift-android/ndk-sysroot/usr/include/c++/v1/string_view:213:
/root/.swiftpm/swift-sdks/swift-6.2-DEVELOPMENT-SNAPSHOT-2025-05-15-a-android-0.1.artifactbundle/swift-android/ndk-sysroot/usr/include/c++/v1/__fwd/string_view.h:22:41: warning: 'char_traits<fmt::detail::char8_type>' is deprecated: char_traits<T> for T not equal to char, wchar_t, char8_t, char16_t or char32_t is non-standard and is provided for a temporary period. It will be removed in LLVM 19, so please migrate off of it. [-Wdeprecated-declarations]
   22 | template <class _CharT, class _Traits = char_traits<_CharT> >
      |                                         ^
/host/spi-builder-workspace/Source/Cmlx/fmt/include/fmt/core.h:361:26: note: in instantiation of default argument for 'basic_string_view<fmt::detail::char8_type>' required here
  361 | template <typename Char> using std_string_view = std::basic_string_view<Char>;
      |                          ^~~~~
/host/spi-builder-workspace/Source/Cmlx/fmt/include/fmt/core.h:452:50: note: in instantiation of template type alias 'std_string_view' requested here
  452 |                                       S, detail::std_string_view<Char>>::value)>
      |                                                  ^
/host/spi-builder-workspace/Source/Cmlx/fmt/include/fmt/format.h:737:57: note: in instantiation of template class 'fmt::basic_string_view<fmt::detail::char8_type>' requested here
  737 | inline auto compute_width(basic_string_view<char8_type> s) -> size_t {
      |                                                         ^
/root/.swiftpm/swift-sdks/swift-6.2-DEVELOPMENT-SNAPSHOT-2025-05-15-a-android-0.1.artifactbundle/swift-android/ndk-sysroot/usr/include/c++/v1/__string/char_traits.h:81:8: note: 'char_traits<fmt::detail::char8_type>' has been explicitly marked deprecated here
   81 | struct _LIBCPP_DEPRECATED_(
      |        ^
/root/.swiftpm/swift-sdks/swift-6.2-DEVELOPMENT-SNAPSHOT-2025-05-15-a-android-0.1.artifactbundle/swift-android/ndk-sysroot/usr/include/c++/v1/__config:916:53: note: expanded from macro '_LIBCPP_DEPRECATED_'
  916 | #      define _LIBCPP_DEPRECATED_(m) __attribute__((__deprecated__(m)))
      |                                                     ^
1 warning generated.
[15/188] Compiling utils.cpp
[16/188] Compiling scheduler.cpp
[17/188] Compiling random.cpp
[18/188] Compiling linalg.cpp
[19/188] Compiling no_gguf.cpp
[21/188] Compiling RealModule AlgebraicField.swift
[22/188] Compiling RealModule ApproximateEquality.swift
[23/188] Compiling RealModule Float80+Real.swift
[24/188] Emitting module RealModule
[25/188] Compiling RealModule Float16+Real.swift
[26/188] Compiling RealModule AugmentedArithmetic.swift
[27/188] Compiling RealModule Double+Real.swift
[28/189] Compiling RealModule RealFunctions.swift
[29/189] Compiling RealModule Real.swift
[30/189] Compiling RealModule ElementaryFunctions.swift
[31/189] Compiling RealModule Float+Real.swift
[32/189] Compiling RealModule RelaxedArithmetic.swift
[34/201] Compiling ComplexModule Complex.swift
[35/202] Compiling ComplexModule Polar.swift
[35/202] Compiling primitives.cpp
[37/202] Compiling ComplexModule Complex+Hashable.swift
[38/202] Compiling ComplexModule Complex+IntegerLiteral.swift
[39/202] Compiling ComplexModule Complex+Numeric.swift
[40/202] Compiling ComplexModule Complex+StringConvertible.swift
[40/202] Wrapping AST for RealModule for debugging
[42/202] Compiling ComplexModule Scale.swift
[43/202] Compiling ComplexModule Complex+AdditiveArithmetic.swift
[44/202] Compiling ComplexModule Complex+AlgebraicField.swift
[45/202] Compiling ComplexModule Complex+Codable.swift
[46/202] Compiling ComplexModule Complex+ElementaryFunctions.swift
[47/202] Emitting module ComplexModule
[49/205] Compiling Numerics Numerics.swift
[50/205] Emitting module Numerics
[51/206] Wrapping AST for Numerics for debugging
[52/206] Wrapping AST for ComplexModule for debugging
[53/206] Compiling load.cpp
[54/206] Compiling fft.cpp
[55/206] Compiling graph_utils.cpp
[56/206] Compiling dtype_utils.cpp
[57/206] Compiling transforms.cpp
[58/206] Compiling dtype.cpp
[59/206] Compiling no_ring.cpp
[60/206] Compiling safetensors.cpp
[61/206] Compiling ops.cpp
[63/206] Compiling einsum.cpp
[64/206] Compiling primitives.cpp
[65/206] Compiling device.cpp
[66/206] Compiling no_mpi.cpp
[67/206] Compiling distributed.cpp
[68/206] Compiling fast.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:24:
In file included from /host/spi-builder-workspace/Source/Cmlx/metal-cpp/Metal/MTLHeaderBridge.hpp:22:
/host/spi-builder-workspace/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.
[69/206] Compiling utils.cpp
[69/206] Compiling slicing.cpp
[69/206] Compiling softmax.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:24:
In file included from /host/spi-builder-workspace/Source/Cmlx/metal-cpp/Metal/MTLHeaderBridge.hpp:22:
/host/spi-builder-workspace/Source/Cmlx/metal-cpp/Metal/MTLPrivate.hpp:27:10: fatal error: 'objc/runtime.h' file not found
   27 | #include <objc/runtime.h>
      |          ^~~~~~~~~~~~~~~~
[69/206] Compiling sort.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:24:
In file included from /host/spi-builder-workspace/Source/Cmlx/metal-cpp/Metal/MTLHeaderBridge.hpp:22:
/host/spi-builder-workspace/Source/Cmlx/metal-cpp/Metal/MTLPrivate.hpp:27:10: fatal error: 'objc/runtime.h' file not found
   27 | #include <objc/runtime.h>
      |          ^~~~~~~~~~~~~~~~
[69/206] Compiling ternary.cpp
In file included from /host/spi-builder-workspace/Source/Cmlx/mlx/mlx/backend/metal/unary.cpp:3:
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:24:
In file included from /host/spi-builder-workspace/Source/Cmlx/metal-cpp/Metal/MTLHeaderBridge.hpp:22:
/host/spi-builder-workspace/Source/Cmlx/metal-cpp/Metal/MTLPrivate.hpp:27:10: fatal error: 'objc/runtime.h' file not found
   27 | #include <objc/runtime.h>
      |          ^~~~~~~~~~~~~~~~
[69/206] Compiling unary.cpp
[69/206] Compiling compile.cpp
[69/206] Compiling export.cpp
BUILD FAILURE 6.2 android