Build Information
Failed to build mlx-swift-lm, reference 3.31.3 (1c0524), with Swift 6.2 for Android on 20 Apr 2026 05:51:01 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4609320-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.2-latest swift build --swift-sdk aarch64-unknown-linux-android28 2>&1Build Log
========================================
RunAll
========================================
Builder version: 4.70.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/ml-explore/mlx-swift-lm.git
Reference: 3.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-lm
* tag 3.31.3 -> FETCH_HEAD
HEAD is now at 1c05248 add upgrade docs, how to use, how to develop. (#206)
Cloned https://github.com/ml-explore/mlx-swift-lm.git
Revision (git rev-parse @):
1c05248bb0899e2a7a4962b84d319cf12f4e12aa
SPI manifest file found: $PWD/.spi.yml
SUCCESS checkout https://github.com/ml-explore/mlx-swift-lm.git at 3.31.3
========================================
Build
========================================
Selected platform: android
Swift version: 6.2
Building package at path: $PWD
https://github.com/ml-explore/mlx-swift-lm.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-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.2-latest swift build --swift-sdk aarch64-unknown-linux-android28 2>&1
android-6.2-latest: Pulling from swiftpackageindex/spi-images
Digest: sha256:cb98f9856cb1288a0028ff0e63d4de86ca92d5e7890400e3e915f7ea3943ed55
Status: Image is up to date for registry.gitlab.com/swiftpackageindex/spi-images:android-6.2-latest
Fetching https://github.com/ml-explore/mlx-swift
Fetching https://github.com/swiftlang/swift-syntax.git
[1/14220] Fetching mlx-swift
[855/89201] Fetching mlx-swift, swift-syntax
Fetched https://github.com/ml-explore/mlx-swift from cache (7.41s)
Fetched https://github.com/swiftlang/swift-syntax.git from cache (7.47s)
Computing version for https://github.com/ml-explore/mlx-swift
Computed https://github.com/ml-explore/mlx-swift at 0.31.3 (8.17s)
Fetching https://github.com/apple/swift-numerics
[1/6416] Fetching swift-numerics
Fetched https://github.com/apple/swift-numerics from cache (0.83s)
Computing version for https://github.com/apple/swift-numerics
Computed https://github.com/apple/swift-numerics at 1.1.1 (1.47s)
Computing version for https://github.com/swiftlang/swift-syntax.git
Computed https://github.com/swiftlang/swift-syntax.git at 600.0.1 (9.20s)
Creating working copy for https://github.com/swiftlang/swift-syntax.git
Working copy of https://github.com/swiftlang/swift-syntax.git resolved at 600.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/ml-explore/mlx-swift
Working copy of https://github.com/ml-explore/mlx-swift resolved at 0.31.3
Downloading package prebuilt https://download.swift.org/prebuilts/swift-syntax/600.0.1/swift-6.2-RELEASE-MacroSupport-ubuntu_jammy_x86_64.tar.gz
Downloaded https://download.swift.org/prebuilts/swift-syntax/600.0.1/swift-6.2-RELEASE-MacroSupport-ubuntu_jammy_x86_64.tar.gz (0.59s)
Building for debugging...
[0/167] Write sources
[11/167] Write swift-version--11D90AFD9DD3AB2.txt
[12/167] Compiling gather_front.cpp
[13/167] Compiling gemm.cpp
[13/167] Write sources
[17/167] Compiling _NumericsShims _NumericsShims.c
[18/167] Compiling version.cpp
[19/180] Compiling error.cpp
[20/180] Compiling utils.cpp
[22/180] Compiling RealModule RealFunctions.swift
[23/181] Compiling RealModule Real.swift
[24/181] Compiling RealModule Float80+Real.swift
[25/181] Compiling RealModule ElementaryFunctions.swift
[26/181] Compiling RealModule Float+Real.swift
[27/181] Compiling RealModule Float16+Real.swift
[28/181] Emitting module RealModule
[29/181] Compiling RealModule AlgebraicField.swift
[30/181] Compiling RealModule ApproximateEquality.swift
[31/181] Compiling RealModule AugmentedArithmetic.swift
[32/181] Compiling RealModule Double+Real.swift
[33/181] Compiling RealModule RelaxedArithmetic.swift
[34/182] Emitting module MLXHuggingFaceMacros
[35/182] Compiling MLXHuggingFaceMacros HuggingFaceIntegrationMacros.swift
[37/183] Wrapping AST for MLXHuggingFaceMacros for debugging
[38/183] Compiling device.cpp
[39/183] Compiling io.cpp
[40/183] Write Objects.LinkFileList
[41/186] Compiling fft.cpp
[42/191] Compiling export.cpp
[44/194] Compiling ComplexModule Complex+StringConvertible.swift
[45/194] Compiling ComplexModule Polar.swift
[46/194] Compiling ComplexModule Complex.swift
[47/195] Compiling ComplexModule Complex+Hashable.swift
[48/195] Compiling ComplexModule Complex+IntegerLiteral.swift
[49/195] Compiling ComplexModule Complex+Numeric.swift
[50/195] Compiling ComplexModule Scale.swift
[50/195] Linking MLXHuggingFaceMacros-tool
[52/195] Compiling ComplexModule Complex+AdditiveArithmetic.swift
[53/195] Compiling ComplexModule Complex+AlgebraicField.swift
[54/195] Compiling ComplexModule Complex+Codable.swift
[55/195] Compiling ComplexModule Complex+ElementaryFunctions.swift
[55/195] Compiling scheduler.cpp
[57/195] Emitting module ComplexModule
[59/198] Emitting module Numerics
[60/198] Compiling Numerics Numerics.swift
[61/199] Compiling no_gguf.cpp
[62/199] Compiling random.cpp
[63/199] Compiling linalg.cpp
[64/199] Compiling load.cpp
[65/199] Compiling transforms.cpp
[66/199] Compiling primitives.cpp
[67/199] Compiling fft.cpp
[68/199] Compiling safetensors.cpp
[69/199] Compiling graph_utils.cpp
[70/199] Compiling dtype.cpp
[71/199] Compiling dtype_utils.cpp
[72/199] Compiling utils.cpp
[73/199] Compiling no_ring.cpp
[74/199] Compiling einsum.cpp
[75/199] Compiling ops.cpp
[76/199] Compiling fast.cpp
[77/199] Compiling no_nccl.cpp
[78/199] Compiling device.cpp
[79/199] Compiling no_mpi.cpp
[80/199] Compiling ops.cpp
[81/199] Compiling distributed.cpp
[82/199] Compiling no_jaccl.cpp
[83/199] Compiling primitives.cpp
[84/199] Compiling allocator.cpp
[85/199] Compiling device_info.cpp
[86/199] Compiling eval.cpp
[87/199] Compiling fence.cpp
[88/199] Compiling primitives.cpp
[89/199] Compiling threefry.cpp
[90/199] Compiling event.cpp
[91/199] Compiling no_cuda.cpp
[92/199] Compiling no_metal.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.
[93/199] Compiling svd.cpp
[93/199] Compiling select.cpp
[93/199] Compiling sort.cpp
[93/199] Compiling scan.cpp
[93/199] Compiling softmax.cpp
[93/199] Compiling unary.cpp
[93/199] Compiling export.cpp
[93/199] Compiling compile.cpp
BUILD FAILURE 6.2 android