Build Information
Failed to build mlx-libraries, reference main (ef1084), with Swift 6.2 for Android on 12 Nov 2026 20:23:25 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-54344847-0":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/saguaro1/spi-images:android-6.2-latest swift build --swift-sdk aarch64-unknown-linux-android28 2>&1Build Log
========================================
RunAll
========================================
Builder version: 5.1.4
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/ml-explore/mlx-swift-examples.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-examples
* branch main -> FETCH_HEAD
* [new branch] main -> origin/main
HEAD is now at ef1084d StableDiffusion: migrate from Hub (swift-transformers) to swift-huggingface (#494)
Cloned https://github.com/ml-explore/mlx-swift-examples.git
Revision (git rev-parse @):
ef1084dd5692611a8758b24b07efdad5404ac3ce
SPI manifest file found: $PWD/.spi.yml
SUCCESS checkout https://github.com/ml-explore/mlx-swift-examples.git at main
========================================
Build
========================================
Selected platform: android
Swift version: 6.2
Building package at path: $PWD
https://github.com/ml-explore/mlx-swift-examples.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-54344847-0":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/saguaro1/spi-images:android-6.2-latest swift build --swift-sdk aarch64-unknown-linux-android28 2>&1
android-6.2-latest: Pulling from saguaro1/spi-images
Digest: sha256:d2452b62e3705b516974b91545f6a72393de452ed0d07016d276221983b5f27e
Status: Image is up to date for registry.gitlab.com/saguaro1/spi-images:android-6.2-latest
Fetching https://github.com/ml-explore/mlx-swift
Fetching https://github.com/1024jp/GzipSwift
Fetching https://github.com/huggingface/swift-huggingface
[1/3110] Fetching swift-huggingface
[3111/4880] Fetching swift-huggingface, gzipswift
[4881/22623] Fetching swift-huggingface, gzipswift, mlx-swift
Fetched https://github.com/1024jp/GzipSwift from cache (1.60s)
Fetched https://github.com/huggingface/swift-huggingface from cache (1.60s)
Fetched https://github.com/ml-explore/mlx-swift from cache (1.61s)
Computing version for https://github.com/1024jp/GzipSwift
Computed https://github.com/1024jp/GzipSwift at 6.0.1 (2.49s)
Computing version for https://github.com/ml-explore/mlx-swift
Computed https://github.com/ml-explore/mlx-swift at 0.31.4 (0.20s)
Fetching https://github.com/apple/swift-numerics
[1/6849] Fetching swift-numerics
Fetched https://github.com/apple/swift-numerics from cache (0.60s)
Computing version for https://github.com/apple/swift-numerics
Computed https://github.com/apple/swift-numerics at 1.1.1 (0.75s)
Computing version for https://github.com/huggingface/swift-huggingface
Computed https://github.com/huggingface/swift-huggingface at 0.13.0 (0.18s)
Fetching https://github.com/apple/swift-crypto.git
Fetching https://github.com/mattt/EventSource.git
[1/333] Fetching eventsource
[334/19281] Fetching eventsource, swift-crypto
Fetched https://github.com/mattt/EventSource.git from cache (1.30s)
Fetched https://github.com/apple/swift-crypto.git from cache (1.31s)
Computing version for https://github.com/mattt/EventSource.git
Computed https://github.com/mattt/EventSource.git at 1.6.0 (1.46s)
Computing version for https://github.com/apple/swift-crypto.git
Computed https://github.com/apple/swift-crypto.git at 4.5.2 (1.17s)
Fetching https://github.com/apple/swift-asn1.git
[1/2067] Fetching swift-asn1
Fetched https://github.com/apple/swift-asn1.git from cache (0.41s)
Computing version for https://github.com/apple/swift-asn1.git
Computed https://github.com/apple/swift-asn1.git at 1.7.4 (0.59s)
Creating working copy for https://github.com/mattt/EventSource.git
Working copy of https://github.com/mattt/EventSource.git resolved at 1.6.0
Creating working copy for https://github.com/apple/swift-asn1.git
Working copy of https://github.com/apple/swift-asn1.git resolved at 1.7.4
Creating working copy for https://github.com/1024jp/GzipSwift
Working copy of https://github.com/1024jp/GzipSwift resolved at 6.0.1
Creating working copy for https://github.com/apple/swift-numerics
Working copy of https://github.com/apple/swift-numerics resolved at 1.1.1
Creating working copy for https://github.com/apple/swift-crypto.git
Working copy of https://github.com/apple/swift-crypto.git resolved at 4.5.2
Creating working copy for https://github.com/ml-explore/mlx-swift
Working copy of https://github.com/ml-explore/mlx-swift resolved at 0.31.4
Creating working copy for https://github.com/huggingface/swift-huggingface
Working copy of https://github.com/huggingface/swift-huggingface resolved at 0.13.0
Building for debugging...
[0/538] Write sources
[15/538] Compiling system-zlib anchor.c
[16/538] Compiling version.cpp
[17/538] Compiling _NumericsShims _NumericsShims.c
[18/538] Write swift-version--11D90AFD9DD3AB2.txt
[19/538] Compiling utils.cpp
[20/549] Compiling scheduler.cpp
[21/551] Compiling linalg.cpp
[22/556] Compiling random.cpp
[24/556] Emitting module Gzip
[25/556] Emitting module RealModule
[26/557] Compiling RealModule AugmentedArithmetic.swift
[27/557] Compiling RealModule Double+Real.swift
[28/557] Compiling RealModule Real.swift
[29/557] Compiling RealModule RealFunctions.swift
[30/557] Compiling RealModule RelaxedArithmetic.swift
[31/557] Compiling RealModule Float80+Real.swift
[32/557] Compiling RealModule AlgebraicField.swift
[33/557] Compiling RealModule ApproximateEquality.swift
[34/557] Compiling RealModule ElementaryFunctions.swift
[35/557] Compiling RealModule Float+Real.swift
[36/557] Compiling RealModule Float16+Real.swift
[37/558] Compiling safetensors.cpp
[38/558] Compiling primitives.cpp
[40/569] Compiling ComplexModule Complex+StringConvertible.swift
[41/570] Compiling ComplexModule Complex+Numeric.swift
[42/570] Compiling ComplexModule Complex+Hashable.swift
[43/570] Compiling ComplexModule Complex+IntegerLiteral.swift
[43/570] Compiling no_gguf.cpp
[45/570] Compiling ComplexModule Polar.swift
[46/570] Compiling ComplexModule Complex.swift
[47/570] Compiling ComplexModule Scale.swift
[48/570] Compiling ComplexModule Complex+Codable.swift
[49/570] Compiling ComplexModule Complex+ElementaryFunctions.swift
[50/570] Compiling ComplexModule Complex+AdditiveArithmetic.swift
[51/570] Compiling ComplexModule Complex+AlgebraicField.swift
[52/570] Compiling EventSource AsyncSequence+Events.swift
[53/570] Compiling EventSource AsyncEventsSequence.swift
[54/570] Emitting module ComplexModule
[56/571] Emitting module EventSource
[56/571] Compiling transforms.cpp
[58/573] Emitting module Numerics
[59/573] Compiling Numerics Numerics.swift
[61/574] Compiling Gzip Data+Gzip.swift
[63/575] Compiling EventSource EventSource+AsyncHTTPClient.swift
[64/575] Compiling EventSource EventSource.swift
[65/576] Compiling fft.cpp
[66/576] Compiling load.cpp
[67/576] Compiling graph_utils.cpp
[68/576] Compiling dtype.cpp
[69/576] Compiling ops.cpp
[70/576] Compiling dtype_utils.cpp
[71/576] Compiling utils.cpp
[72/576] Compiling no_ring.cpp
[73/576] Compiling no_nccl.cpp
[74/576] Compiling einsum.cpp
[75/576] Compiling primitives.cpp
[76/576] Compiling ops.cpp
[77/576] Compiling fast.cpp
[78/576] Compiling device.cpp
[79/576] Compiling no_mpi.cpp
[80/576] Compiling no_jaccl.cpp
[81/576] Compiling distributed.cpp
[82/576] Compiling event.cpp
[83/576] Compiling fence.cpp
[84/576] Compiling eval.cpp
[85/576] Compiling allocator.cpp
[86/576] Compiling threefry.cpp
[87/576] Compiling primitives.cpp
[88/576] Compiling device_info.cpp
[89/576] Compiling no_metal.cpp
[90/576] Compiling no_cuda.cpp
In file included from /host/spi-builder-workspace/.build/checkouts/mlx-swift/Source/Cmlx/mlx/mlx/backend/cpu/svd.cpp:6:
/host/spi-builder-workspace/.build/checkouts/mlx-swift/Source/Cmlx/mlx/mlx/backend/cpu/lapack.h:17:10: fatal error: 'cblas.h' file not found
17 | #include <cblas.h>
| ^~~~~~~~~
1 error generated.
[91/576] Compiling svd.cpp
[91/576] Compiling scan.cpp
[91/576] Compiling softmax.cpp
[91/576] Compiling select.cpp
[91/576] Compiling sort.cpp
[91/576] Compiling unary.cpp
[91/576] Compiling compile.cpp
[91/576] Compiling export.cpp
BUILD FAILURE 6.2 android