The Swift Package Index logo.Swift Package Index

Build Information

Failed to build mlx-swift-lm, reference main (7e2b71), with Swift 6.3 for Android on 20 Apr 2026 05:51:48 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4609320-3":/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-lm.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-lm
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at 7e2b710 add fallback links to the readme -- docs are not yet built (#218)
Cloned https://github.com/ml-explore/mlx-swift-lm.git
Revision (git rev-parse @):
7e2b7107be52ffbfe488f3c7987d3f52c1858b4b
SPI manifest file found: $PWD/.spi.yml
SUCCESS checkout https://github.com/ml-explore/mlx-swift-lm.git at main
========================================
Build
========================================
Selected platform:         android
Swift version:             6.3
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-3":/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/swiftlang/swift-syntax.git
Fetching https://github.com/ml-explore/mlx-swift
[1/14220] Fetching mlx-swift
[2988/89201] Fetching mlx-swift, swift-syntax
Fetched https://github.com/ml-explore/mlx-swift from cache (2.50s)
[32242/74981] Fetching swift-syntax
Fetched https://github.com/swiftlang/swift-syntax.git from cache (13.35s)
Computing version for https://github.com/ml-explore/mlx-swift
Computed https://github.com/ml-explore/mlx-swift at 0.31.3 (14.65s)
Fetching https://github.com/apple/swift-numerics
[1/6416] Fetching swift-numerics
Fetched https://github.com/apple/swift-numerics from cache (1.81s)
Computing version for https://github.com/swiftlang/swift-syntax.git
Computed https://github.com/swiftlang/swift-syntax.git at 603.0.0 (5.92s)
Computing version for https://github.com/apple/swift-numerics
Computed https://github.com/apple/swift-numerics at 1.1.1 (0.63s)
Creating working copy for https://github.com/swiftlang/swift-syntax.git
Working copy of https://github.com/swiftlang/swift-syntax.git resolved at 603.0.0
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/603.0.0/swift-6.3-RELEASE-ubuntu_jammy_x86_64-MacroSupport.tar.gz
Downloaded https://download.swift.org/prebuilts/swift-syntax/603.0.0/swift-6.3-RELEASE-ubuntu_jammy_x86_64-MacroSupport.tar.gz (0.70s)
Building for debugging...
[0/167] Write sources
[13/167] Compiling version.cpp
[14/167] Compiling _NumericsShims _NumericsShims.c
[15/167] Write swift-version--4F562202D5529B1.txt
[16/167] Compiling utils.cpp
[17/178] Compiling scheduler.cpp
[19/180] Emitting module MLXHuggingFaceMacros
[19/180] Compiling linalg.cpp
[20/180] Compiling random.cpp
[22/180] Compiling RealModule Real.swift
[23/181] Compiling RealModule ElementaryFunctions.swift
[24/181] Compiling RealModule Float+Real.swift
[25/181] Compiling RealModule AlgebraicField.swift
[26/181] Compiling RealModule ApproximateEquality.swift
[27/181] Compiling RealModule Float80+Real.swift
[28/181] Compiling RealModule RealFunctions.swift
[29/181] Compiling RealModule Float16+Real.swift
[30/181] Emitting module RealModule
[31/181] Compiling RealModule AugmentedArithmetic.swift
[32/181] Compiling RealModule Double+Real.swift
[33/181] Compiling RealModule RelaxedArithmetic.swift
[34/182] Compiling no_gguf.cpp
[36/193] Compiling ComplexModule Polar.swift
[37/193] Compiling ComplexModule Complex+Hashable.swift
[38/193] Compiling ComplexModule Complex+IntegerLiteral.swift
[39/193] Compiling ComplexModule Complex+Numeric.swift
[40/193] Compiling MLXHuggingFaceMacros HuggingFaceIntegrationMacros.swift
[41/195] Compiling ComplexModule Complex+StringConvertible.swift
[43/195] Compiling ComplexModule Complex.swift
[44/195] Compiling ComplexModule Scale.swift
[45/195] Compiling ComplexModule Complex+AdditiveArithmetic.swift
[46/195] Compiling ComplexModule Complex+AlgebraicField.swift
[47/195] Emitting module ComplexModule
[48/195] Compiling ComplexModule Complex+Codable.swift
[49/195] Compiling ComplexModule Complex+ElementaryFunctions.swift
[50/196] Wrapping AST for MLXHuggingFaceMacros for debugging
[52/198] Compiling Numerics Numerics.swift
[52/198] Compiling primitives.cpp
[54/198] Emitting module Numerics
[54/199] Write Objects.LinkFileList
[55/199] Compiling safetensors.cpp
[57/199] Linking MLXHuggingFaceMacros-tool
[58/199] Compiling transforms.cpp
[59/199] Compiling load.cpp
[60/199] Compiling graph_utils.cpp
[61/199] Compiling fft.cpp
[62/199] Compiling dtype_utils.cpp
[63/199] Compiling dtype.cpp
[64/199] Compiling utils.cpp
[65/199] Compiling ops.cpp
[66/199] Compiling no_ring.cpp
[67/199] Compiling einsum.cpp
[68/199] Compiling primitives.cpp
[69/199] Compiling ops.cpp
[70/199] Compiling fast.cpp
[71/199] Compiling no_nccl.cpp
[72/199] Compiling no_mpi.cpp
[73/199] Compiling no_jaccl.cpp
[74/199] Compiling device.cpp
[75/199] Compiling distributed.cpp
[76/199] Compiling allocator.cpp
[77/199] Compiling device_info.cpp
[78/199] Compiling fence.cpp
[79/199] Compiling eval.cpp
[80/199] Compiling primitives.cpp
[81/199] Compiling threefry.cpp
[82/199] Compiling event.cpp
[83/199] Compiling no_metal.cpp
[84/199] 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.
[85/199] Compiling svd.cpp
[85/199] Compiling scan.cpp
[85/199] Compiling unary.cpp
[85/199] Compiling select.cpp
[85/199] Compiling sort.cpp
[85/199] Compiling softmax.cpp
[85/199] Compiling compile.cpp
[85/199] Compiling export.cpp
BUILD FAILURE 6.3 android