Build Information
Failed to build mlx-swift, reference main (49d73a), with Swift 6.1 for Android on 18 Apr 2026 14:30:41 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4606859-2":/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.1-latest swift build --swift-sdk aarch64-unknown-linux-android24 2>&1Build Log
========================================
RunAll
========================================
Builder version: 4.70.0
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 49d73ab add missing functions (#387)
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 @):
49d73abcbe8f49f44c1e61911997e6b680484216
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.1
Building package at path: $PWD
https://github.com/ml-explore/mlx-swift.git
https://github.com/ml-explore/mlx-swift.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-2":/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.1-latest swift build --swift-sdk aarch64-unknown-linux-android24 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures 2>&1
android-6.1-latest: Pulling from swiftpackageindex/spi-images
Digest: sha256:d37fe7b8fba27dae59fb1d9d7dfa86b38b41ffb3975924aad6f05cb4cc3de131
Status: Image is up to date for registry.gitlab.com/swiftpackageindex/spi-images:android-6.1-latest
Fetching https://github.com/apple/swift-numerics
[1/6416] Fetching swift-numerics
Fetched https://github.com/apple/swift-numerics from cache (0.79s)
Computing version for https://github.com/apple/swift-numerics
Computed https://github.com/apple/swift-numerics at 1.1.1 (1.68s)
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/CustomFunctionExampleSimple.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/CustomFunctionExampleSimple.swift
/host/spi-builder-workspace/Source/Examples/CustomFunctionExample.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/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/CustomFunctionExampleSimple.swift
/host/spi-builder-workspace/Source/Examples/Example1.swift
/host/spi-builder-workspace/Source/Examples/Tutorial.swift
Building for debugging...
[0/180] Write swift-version-24593BA9C3E375BF.txt
[1/180] Compiling _NumericsShims _NumericsShims.c
[1/180] Write sources
[16/180] Compiling version.cpp
[17/191] Compiling error.cpp
[19/191] Compiling RealModule RealFunctions.swift
[20/192] Compiling RealModule Real.swift
[21/192] Compiling RealModule Float80+Real.swift
[22/192] Compiling RealModule Float16+Real.swift
[23/192] Compiling RealModule AlgebraicField.swift
[24/192] Compiling RealModule ApproximateEquality.swift
[25/192] Compiling RealModule AugmentedArithmetic.swift
[26/192] Compiling RealModule Double+Real.swift
[27/192] Emitting module RealModule
[28/192] Compiling RealModule ElementaryFunctions.swift
[29/192] Compiling RealModule Float+Real.swift
[29/192] Compiling format.cc
[31/192] Compiling RealModule RelaxedArithmetic.swift
[33/204] Compiling ComplexModule Complex+Numeric.swift
[34/205] Compiling ComplexModule Complex+Hashable.swift
[35/205] Compiling ComplexModule Complex+IntegerLiteral.swift
[36/205] Compiling ComplexModule Polar.swift
[37/205] Compiling ComplexModule Complex+StringConvertible.swift
[38/205] Compiling ComplexModule Complex.swift
[39/205] Compiling ComplexModule Scale.swift
[40/205] Compiling ComplexModule Complex+AdditiveArithmetic.swift
[41/205] Compiling ComplexModule Complex+AlgebraicField.swift
[42/205] Compiling ComplexModule Complex+Codable.swift
[43/205] Compiling ComplexModule Complex+ElementaryFunctions.swift
[44/205] Emitting module ComplexModule
[45/206] Wrapping AST for RealModule for debugging
[46/206] Compiling device.cpp
[47/208] Wrapping AST for ComplexModule for debugging
[48/208] Compiling compile.cpp
[50/208] Emitting module Numerics
[51/208] Compiling Numerics Numerics.swift
[51/209] Compiling utils.cpp
[53/209] Compiling export.cpp
[54/209] Wrapping AST for Numerics for debugging
[55/209] Compiling closure.cpp
[56/209] Compiling array.cpp
[57/209] Compiling scheduler.cpp
[58/209] Compiling random.cpp
[59/209] Compiling no_gguf.cpp
[60/209] Compiling linalg.cpp
[61/209] Compiling graph_utils.cpp
[62/209] Compiling transforms.cpp
[63/209] Compiling load.cpp
[64/209] Compiling primitives.cpp
[65/209] Compiling fft.cpp
[66/209] Compiling safetensors.cpp
[67/209] Compiling dtype_utils.cpp
[68/209] Compiling dtype.cpp
[69/209] Compiling fast.cpp
[70/209] Compiling utils.cpp
[71/209] Compiling no_ring.cpp
[72/209] Compiling ops.cpp
[73/209] Compiling no_nccl.cpp
[74/209] Compiling einsum.cpp
[75/209] Compiling primitives.cpp
[76/209] Compiling ops.cpp
[77/209] Compiling no_mpi.cpp
[78/209] Compiling device.cpp
[79/209] Compiling no_jaccl.cpp
[80/209] Compiling distributed.cpp
[81/209] Compiling event.cpp
[82/209] Compiling device_info.cpp
[83/209] Compiling allocator.cpp
[84/209] Compiling primitives.cpp
[85/209] Compiling eval.cpp
[86/209] Compiling threefry.cpp
[87/209] Compiling fence.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 scan.cpp
[90/209] Compiling sort.cpp
[90/209] Compiling softmax.cpp
[90/209] Compiling unary.cpp
[90/209] Compiling compile.cpp
[90/209] Compiling export.cpp
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-2":/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.1-latest swift build --swift-sdk aarch64-unknown-linux-android24 2>&1
android-6.1-latest: Pulling from swiftpackageindex/spi-images
Digest: sha256:d37fe7b8fba27dae59fb1d9d7dfa86b38b41ffb3975924aad6f05cb4cc3de131
Status: Image is up to date for registry.gitlab.com/swiftpackageindex/spi-images:android-6.1-latest
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/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/CustomFunctionExampleSimple.swift
/host/spi-builder-workspace/Source/Examples/CustomFunctionExample.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/CustomFunctionExample.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/CustomFunctionExampleSimple.swift
/host/spi-builder-workspace/Source/Examples/Example1.swift
/host/spi-builder-workspace/Source/Examples/Tutorial.swift
[0/1] Planning build
Building for debugging...
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.
[0/123] Compiling svd.cpp
[0/123] Compiling compile.cpp
[0/123] Compiling softmax.cpp
[0/123] Compiling select.cpp
[0/123] Compiling export.cpp
[0/123] Compiling sort.cpp
[0/123] Compiling scan.cpp
[0/123] Compiling unary.cpp
BUILD FAILURE 6.1 android