Build Information
Failed to build mlx-swift, reference 0.31.3 (61b9e0), with Swift 6.2 for Android on 2 Apr 2026 00:38:29 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4609320-1":/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.2-latest swift build --swift-sdk aarch64-unknown-linux-android28 2>&1Build Log
========================================
RunAll
========================================
Builder version: 4.69.2
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.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-1":/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.2-latest swift build --swift-sdk aarch64-unknown-linux-android28 2>&1
android-6.2-latest: Pulling from swiftpackageindex/spi-images
Digest: sha256:ddd4edb33d5d885e17caac0b97dcd74ed916c6d1fa6d49f38e53038953d2cc51
Status: Image is up to date for registry.gitlab.com/swiftpackageindex/spi-images:android-6.2-latest
Fetching https://github.com/apple/swift-numerics
[1/6416] Fetching swift-numerics
Fetched https://github.com/apple/swift-numerics from cache (0.78s)
Computing version for https://github.com/apple/swift-numerics
Computed https://github.com/apple/swift-numerics at 1.1.1 (1.28s)
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/Example1.swift
/host/spi-builder-workspace/Source/Examples/CustomFunctionExample.swift
/host/spi-builder-workspace/Source/Examples/CustomFunctionExampleSimple.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/Tutorial.swift
/host/spi-builder-workspace/Source/Examples/CustomFunctionExampleSimple.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/Example1.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/Tutorial.swift
/host/spi-builder-workspace/Source/Examples/CustomFunctionExampleSimple.swift
Building for debugging...
[0/180] Compiling arange.cpp
[1/180] Compiling binary.cpp
[1/180] Write sources
[16/180] Compiling _NumericsShims _NumericsShims.c
[17/180] Compiling version.cpp
[18/180] Compiling utils.cpp
[19/180] Compiling transforms.cpp
[20/180] Compiling stream.cpp
[21/180] Compiling random.cpp
[22/180] Compiling string.cpp
[23/180] Compiling ops.cpp
[24/180] Write swift-version--11D90AFD9DD3AB2.txt
[25/180] Compiling scheduler.cpp
[26/191] Compiling no_gguf.cpp
[27/191] Compiling random.cpp
[28/191] Compiling linalg.cpp
[29/191] Compiling transforms.cpp
[31/191] Compiling RealModule RealFunctions.swift
[32/192] Compiling RealModule Float80+Real.swift
[33/192] Compiling RealModule RelaxedArithmetic.swift
[34/192] Compiling RealModule Real.swift
[35/192] Compiling RealModule ElementaryFunctions.swift
[36/192] Compiling RealModule Float+Real.swift
[37/192] Emitting module RealModule
[38/192] Compiling RealModule AlgebraicField.swift
[39/192] Compiling RealModule ApproximateEquality.swift
[40/192] Compiling RealModule AugmentedArithmetic.swift
[41/192] Compiling RealModule Double+Real.swift
[42/192] Compiling RealModule Float16+Real.swift
[43/193] Compiling load.cpp
[44/193] Compiling primitives.cpp
[45/204] Wrapping AST for RealModule for debugging
[47/204] Compiling ComplexModule Complex+StringConvertible.swift
[48/205] Compiling ComplexModule Complex+Numeric.swift
[49/205] Compiling ComplexModule Polar.swift
[50/205] Compiling ComplexModule Complex+Hashable.swift
[51/205] Compiling ComplexModule Complex+IntegerLiteral.swift
[52/205] Compiling ComplexModule Scale.swift
[53/205] Compiling ComplexModule Complex.swift
[54/205] Compiling ComplexModule Complex+AdditiveArithmetic.swift
[55/205] Compiling ComplexModule Complex+AlgebraicField.swift
[56/205] Compiling ComplexModule Complex+Codable.swift
[57/205] Compiling ComplexModule Complex+ElementaryFunctions.swift
[58/205] Emitting module ComplexModule
[59/206] Compiling safetensors.cpp
[61/208] Compiling Numerics Numerics.swift
[62/208] Emitting module Numerics
[63/209] Compiling graph_utils.cpp
[64/209] Wrapping AST for ComplexModule for debugging
[65/209] Wrapping AST for Numerics for debugging
[66/209] Compiling fft.cpp
[67/209] Compiling utils.cpp
[68/209] Compiling dtype.cpp
[69/209] Compiling dtype_utils.cpp
[70/209] Compiling no_ring.cpp
[71/209] Compiling einsum.cpp
[72/209] Compiling fast.cpp
[73/209] Compiling no_nccl.cpp
[74/209] Compiling primitives.cpp
[75/209] Compiling ops.cpp
[76/209] Compiling no_mpi.cpp
[77/209] Compiling no_jaccl.cpp
[78/209] Compiling ops.cpp
[79/209] Compiling distributed.cpp
[80/209] Compiling device.cpp
[81/209] Compiling event.cpp
[82/209] Compiling device_info.cpp
[83/209] Compiling allocator.cpp
[84/209] Compiling fence.cpp
[85/209] Compiling primitives.cpp
[86/209] Compiling eval.cpp
[87/209] Compiling threefry.cpp
[88/209] Compiling no_cuda.cpp
[89/209] Compiling no_metal.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.
[90/209] Compiling svd.cpp
[90/209] Compiling select.cpp
[90/209] Compiling sort.cpp
[90/209] Compiling softmax.cpp
[90/209] Compiling scan.cpp
[90/209] Compiling unary.cpp
[90/209] Compiling compile.cpp
[90/209] Compiling export.cpp
BUILD FAILURE 6.2 android