The Swift Package Index logo.Swift Package Index

Build Information

Failed to build mlx-swift, reference 0.31.3 (61b9e0), with Swift 6.3 for Android on 18 Apr 2026 14:37:28 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/swiftpackageindex/spi-images:android-6.3-latest swift build --swift-sdk aarch64-unknown-linux-android28 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.70.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/ml-explore/mlx-swift.git
Reference: 0.31.3
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.31.3     -> FETCH_HEAD
HEAD is now at 61b9e01 hold evalLock during mlx_save_safetensors etc (#379)
Submodule path 'Source/Cmlx/mlx': checked out 'ce45c52505c8158ea48d2a54e8caae05efd86bfe'
Submodule path 'Source/Cmlx/mlx-c': checked out '0726ca922fc902c4c61ef9c27d94132be418e945'
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 @):
61b9e011e09a62b489f6bd647958f1555bdf2896
SPI manifest file found: $PWD/.spi.yml
SUCCESS checkout https://github.com/ml-explore/mlx-swift.git at 0.31.3
========================================
Build
========================================
Selected platform:         android
Swift version:             6.3
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-0":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/swiftpackageindex/spi-images:android-6.3-latest swift build --swift-sdk aarch64-unknown-linux-android28 2>&1
android-6.3-latest: Pulling from swiftpackageindex/spi-images
Digest: sha256:9008270ea37a55e78725e6225015adb5eff8582da520c5232bf0499f32c36dc4
Status: Image is up to date for registry.gitlab.com/swiftpackageindex/spi-images:android-6.3-latest
Fetching https://github.com/apple/swift-numerics
[1/6416] Fetching swift-numerics
Fetched https://github.com/apple/swift-numerics from cache (0.55s)
Computing version for https://github.com/apple/swift-numerics
Computed https://github.com/apple/swift-numerics at 1.1.1 (1.31s)
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/CustomFunctionExample.swift
    /host/spi-builder-workspace/Source/Examples/CustomFunctionExampleSimple.swift
    /host/spi-builder-workspace/Source/Examples/Example1.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/Tutorial.swift
    /host/spi-builder-workspace/Source/Examples/CustomFunctionExample.swift
    /host/spi-builder-workspace/Source/Examples/Example1.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/Tutorial.swift
    /host/spi-builder-workspace/Source/Examples/CustomFunctionExampleSimple.swift
    /host/spi-builder-workspace/Source/Examples/Example1.swift
Building for debugging...
[0/180] Compiling error.cpp
[1/180] Write swift-version--4F562202D5529B1.txt
[2/180] Compiling _NumericsShims _NumericsShims.c
[3/180] Write sources
[6/191] Compiling format.cc
[7/191] Write sources
[18/191] Compiling version.cpp
[19/191] Compiling cuda.cpp
[20/191] Compiling fft.cpp
[21/191] Compiling export.cpp
[22/191] Compiling device.cpp
[23/191] Compiling utils.cpp
[25/191] Compiling RealModule Float80+Real.swift
[26/192] Compiling RealModule Float16+Real.swift
[27/192] Compiling RealModule RealFunctions.swift
[28/192] Compiling RealModule Real.swift
[29/192] Compiling RealModule AlgebraicField.swift
[30/192] Compiling RealModule ApproximateEquality.swift
[31/192] Emitting module RealModule
[32/192] Compiling RealModule AugmentedArithmetic.swift
[33/192] Compiling RealModule Double+Real.swift
[34/192] Compiling RealModule RelaxedArithmetic.swift
[35/192] Compiling RealModule ElementaryFunctions.swift
[36/192] Compiling RealModule Float+Real.swift
[36/193] Compiling closure.cpp
[38/204] Compiling array.cpp
[40/204] Compiling ComplexModule Complex+StringConvertible.swift
[40/205] Wrapping AST for RealModule for debugging
[42/205] Compiling ComplexModule Scale.swift
[43/205] Compiling ComplexModule Polar.swift
[44/205] Compiling ComplexModule Complex.swift
[45/205] Compiling ComplexModule Complex+Hashable.swift
[46/205] Compiling ComplexModule Complex+IntegerLiteral.swift
[47/205] Compiling ComplexModule Complex+Numeric.swift
[47/205] Compiling scheduler.cpp
[49/205] Emitting module ComplexModule
[50/205] Compiling ComplexModule Complex+AdditiveArithmetic.swift
[51/205] Compiling ComplexModule Complex+AlgebraicField.swift
[52/205] Compiling ComplexModule Complex+Codable.swift
[53/205] Compiling ComplexModule Complex+ElementaryFunctions.swift
[54/206] Compiling random.cpp
[56/208] Emitting module Numerics
[57/208] Compiling Numerics Numerics.swift
[58/209] Wrapping AST for ComplexModule for debugging
[59/209] Wrapping AST for Numerics for debugging
[60/209] Compiling no_gguf.cpp
[61/209] Compiling linalg.cpp
[62/209] Compiling primitives.cpp
[63/209] Compiling load.cpp
[64/209] Compiling fft.cpp
[65/209] Compiling transforms.cpp
[66/209] Compiling graph_utils.cpp
[67/209] Compiling safetensors.cpp
[68/209] Compiling dtype.cpp
[69/209] Compiling utils.cpp
[70/209] Compiling dtype_utils.cpp
[71/209] Compiling ops.cpp
[72/209] Compiling einsum.cpp
[73/209] Compiling fast.cpp
[74/209] Compiling no_ring.cpp
[75/209] Compiling no_nccl.cpp
[76/209] Compiling no_mpi.cpp
[77/209] Compiling device.cpp
[78/209] Compiling no_jaccl.cpp
[79/209] Compiling primitives.cpp
[80/209] Compiling ops.cpp
[81/209] Compiling distributed.cpp
[82/209] Compiling device_info.cpp
[83/209] Compiling primitives.cpp
[84/209] Compiling allocator.cpp
[85/209] Compiling eval.cpp
[86/209] Compiling threefry.cpp
[87/209] Compiling fence.cpp
[88/209] Compiling event.cpp
[89/209] Compiling no_metal.cpp
[90/209] Compiling no_cuda.cpp
[91/209] Compiling compile.cpp
In file included from /host/spi-builder-workspace/Source/Cmlx/mlx/mlx/backend/cpu/svd.cpp:6:
/host/spi-builder-workspace/Source/Cmlx/mlx/mlx/backend/cpu/lapack.h:17:10: fatal error: 'cblas.h' file not found
   17 | #include <cblas.h>
      |          ^~~~~~~~~
1 error generated.
[92/209] Compiling svd.cpp
[92/209] Compiling reduce.cpp
[92/209] Compiling sort.cpp
[92/209] Compiling scan.cpp
[92/209] Compiling softmax.cpp
[92/209] Compiling select.cpp
[92/209] Compiling unary.cpp
[92/209] Compiling export.cpp
BUILD FAILURE 6.3 android