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 0.25.5 (b79c74), with Swift 6.2 (beta) for Android on 24 Jun 2025 23:51:38 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4606859-3":/host -w "$PWD" 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.64.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/ml-explore/mlx-swift.git
Reference: 0.25.5
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
 * tag               0.25.5     -> FETCH_HEAD
HEAD is now at b79c74c Add ReLUSquared Activation Function (#250)
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 @):
b79c74ce773440b86a81ef925ea78dd5023a16c0
SPI manifest file found: $PWD/.spi.yml
SUCCESS checkout https://github.com/ml-explore/mlx-swift.git at 0.25.5
========================================
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-3":/host -w "$PWD" 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/5757] Fetching swift-numerics
Fetched https://github.com/apple/swift-numerics from cache (0.80s)
Computing version for https://github.com/apple/swift-numerics
Computed https://github.com/apple/swift-numerics at 1.0.3 (3.73s)
Creating working copy for https://github.com/apple/swift-numerics
Working copy of https://github.com/apple/swift-numerics resolved at 1.0.3
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 error.cpp
[15/187] 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.
[16/187] Compiling utils.cpp
[17/187] Compiling scheduler.cpp
[18/187] Compiling export.cpp
[19/187] Compiling fast.cpp
[20/187] Compiling random.cpp
[22/187] Compiling RealModule ElementaryFunctions.swift
[23/188] Compiling RealModule Float80+Real.swift
[24/188] Compiling RealModule Real.swift
[25/188] Compiling RealModule Float16+Real.swift
[26/188] Compiling RealModule RealFunctions.swift
[27/188] Compiling RealModule AlgebraicField.swift
[28/188] Compiling RealModule ApproximateEquality.swift
[29/188] Emitting module RealModule
[30/188] Compiling RealModule AugmentedArithmetic.swift
[31/188] Compiling RealModule Double+Real.swift
[32/188] Compiling RealModule Float+Real.swift
[33/189] Compiling no_gguf.cpp
[34/194] Compiling linalg.cpp
[35/194] Wrapping AST for RealModule for debugging
[36/194] Compiling primitives.cpp
[38/194] Compiling ComplexModule Complex.swift
[39/194] Compiling ComplexModule Arithmetic.swift
[40/194] Compiling ComplexModule ElementaryFunctions.swift
[41/194] Emitting module ComplexModule
[41/194] Compiling load.cpp
[42/194] Compiling graph_utils.cpp
[43/194] Compiling transforms.cpp
[44/194] Compiling fft.cpp
[45/194] Compiling dtype_utils.cpp
[46/194] Compiling dtype.cpp
[47/194] Compiling safetensors.cpp
[48/194] Compiling no_ring.cpp
[50/194] Compiling ComplexModule Differentiable.swift
[51/195] Compiling einsum.cpp
[53/197] Emitting module Numerics
[54/197] Compiling Numerics Numerics.swift
[55/198] Wrapping AST for Numerics for debugging
[56/198] Wrapping AST for ComplexModule for debugging
[57/198] Compiling no_mpi.cpp
[58/198] Compiling ops.cpp
[59/198] Compiling primitives.cpp
[60/198] Compiling distributed.cpp
[61/198] Compiling device.cpp
[62/198] Compiling ops.cpp
[63/198] 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.
[64/198] Compiling utils.cpp
[64/198] Compiling slicing.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>
      |          ^~~~~~~~~~~~~~~~
[64/198] Compiling unary.cpp
[64/198] Compiling softmax.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>
      |          ^~~~~~~~~~~~~~~~
[64/198] Compiling ternary.cpp
[64/198] Compiling sort.cpp
[64/198] Compiling compile.cpp
[64/198] Compiling export.cpp
BUILD FAILURE 6.2 android