The Swift Package Index logo.Swift Package Index

Build Information

Failed to build mlx-swift-lm, reference main (7e2b71), with Swift 6.2 for Android on 20 Apr 2026 05:51:54 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>&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.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-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: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 (10.11s)
Fetched https://github.com/swiftlang/swift-syntax.git from cache (10.47s)
Computing version for https://github.com/ml-explore/mlx-swift
Computed https://github.com/ml-explore/mlx-swift at 0.31.3 (11.52s)
Fetching https://github.com/apple/swift-numerics
[1/6416] Fetching swift-numerics
Fetched https://github.com/apple/swift-numerics from cache (0.87s)
Computing version for https://github.com/swiftlang/swift-syntax.git
Computed https://github.com/swiftlang/swift-syntax.git at 603.0.0 (4.04s)
Computing version for https://github.com/apple/swift-numerics
Computed https://github.com/apple/swift-numerics at 1.1.1 (0.66s)
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/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/ml-explore/mlx-swift
Working copy of https://github.com/ml-explore/mlx-swift resolved at 0.31.3
Building for debugging...
[0/204] Write sources
[32/204] Compiling _NumericsShims _NumericsShims.c
[32/204] Compiling version.cpp
[34/204] Compiling _SwiftSyntaxCShims PlatformMutex.c
[35/204] Write swift-version--11D90AFD9DD3AB2.txt
[36/204] Compiling utils.cpp
[37/204] Compiling scheduler.cpp
[38/208] Compiling linalg.cpp
[40/210] Emitting module SwiftSyntax601
[40/210] Compiling random.cpp
[42/212] Emitting module SwiftSyntax603
[43/212] Compiling SwiftSyntax603 Empty.swift
[44/213] Compiling SwiftSyntax601 Empty.swift
[45/214] Compiling SwiftSyntax602 Empty.swift
[46/214] Emitting module SwiftSyntax602
[48/215] Compiling SwiftSyntax600 Empty.swift
[49/215] Emitting module SwiftSyntax600
[53/229] Compiling SwiftSyntax510 Empty.swift
[54/229] Emitting module SwiftSyntax509
[55/231] Compiling SwiftSyntax509 Empty.swift
[56/231] Emitting module SwiftSyntax510
[56/233] Wrapping AST for SwiftSyntax603 for debugging
[58/233] Wrapping AST for SwiftSyntax602 for debugging
[60/233] Wrapping AST for SwiftSyntax510 for debugging
[61/233] Wrapping AST for SwiftSyntax600 for debugging
[62/233] Wrapping AST for SwiftSyntax601 for debugging
[63/233] Wrapping AST for SwiftSyntax509 for debugging
[64/296] Compiling primitives.cpp
[66/296] Compiling SwiftSyntax AbsolutePosition.swift
[67/296] Compiling SwiftSyntax AbsoluteSyntaxInfo.swift
[68/296] Compiling SwiftSyntax ArenaAllocatedBuffer.swift
[69/296] Compiling SwiftSyntax Assert.swift
[70/296] Compiling SwiftSyntax BumpPtrAllocator.swift
[71/296] Compiling SwiftSyntax CommonAncestor.swift
[72/296] Compiling SwiftSyntax Convenience.swift
[73/296] Compiling SwiftSyntax CustomTraits.swift
[74/296] Compiling SwiftSyntax EditorPlaceholder.swift
[74/304] Compiling safetensors.cpp
[75/304] Compiling transforms.cpp
[77/304] Compiling SwiftSyntax SourceLength.swift
[78/304] Compiling SwiftSyntax SourceLocation.swift
[79/304] Compiling SwiftSyntax SourcePresence.swift
[80/304] Compiling SwiftSyntax SwiftSyntaxCompatibility.swift
[81/304] Compiling SwiftSyntax Syntax.swift
[82/304] Compiling SwiftSyntax SyntaxChildren.swift
[83/304] Compiling SwiftSyntax SyntaxCollection.swift
[84/304] Compiling SwiftSyntax SyntaxHashable.swift
[85/304] Compiling SwiftSyntax SyntaxIdentifier.swift
[85/304] Compiling no_gguf.cpp
[87/304] Compiling RealModule Float80+Real.swift
[88/305] Emitting module RealModule
[91/305] Compiling RealModule RealFunctions.swift
[92/305] Compiling RealModule Real.swift
[97/305] Compiling RealModule RelaxedArithmetic.swift
[98/305] Compiling RealModule Float16+Real.swift
[100/317] Compiling ComplexModule Complex+StringConvertible.swift
[101/318] Compiling ComplexModule Complex+Hashable.swift
[102/318] Compiling ComplexModule Complex+IntegerLiteral.swift
[103/318] Compiling ComplexModule Complex+Numeric.swift
[104/318] Compiling ComplexModule Scale.swift
[105/318] Compiling ComplexModule Polar.swift
[106/318] Compiling ComplexModule Complex.swift
[107/318] Compiling ComplexModule Complex+AdditiveArithmetic.swift
[108/318] Compiling ComplexModule Complex+AlgebraicField.swift
[109/318] Emitting module ComplexModule
[110/318] Compiling ComplexModule Complex+Codable.swift
[111/318] Compiling ComplexModule Complex+ElementaryFunctions.swift
[112/319] Compiling load.cpp
[114/321] Emitting module Numerics
[115/321] Compiling Numerics Numerics.swift
[116/322] Compiling graph_utils.cpp
[117/322] Compiling fft.cpp
[118/322] Compiling ops.cpp
[119/322] Compiling dtype.cpp
[120/322] Compiling dtype_utils.cpp
[121/322] Compiling utils.cpp
[122/322] Compiling no_ring.cpp
[123/322] Compiling fast.cpp
[124/322] Compiling no_nccl.cpp
[125/322] Compiling einsum.cpp
[126/322] Compiling no_mpi.cpp
[127/322] Compiling primitives.cpp
[129/322] Emitting module SwiftSyntax
[129/322] Compiling ops.cpp
[130/322] Compiling device.cpp
[131/322] Compiling no_jaccl.cpp
[132/322] Compiling distributed.cpp
[133/322] Compiling fence.cpp
[134/322] Compiling primitives.cpp
[135/322] Compiling device_info.cpp
[136/322] Compiling event.cpp
[137/322] Compiling eval.cpp
[138/322] Compiling threefry.cpp
[139/322] Compiling allocator.cpp
[140/322] Compiling no_metal.cpp
[141/322] 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.
[142/322] Compiling svd.cpp
[142/322] Compiling sort.cpp
[142/322] Compiling select.cpp
[142/322] Compiling softmax.cpp
[142/322] Compiling unary.cpp
[142/322] Compiling compile.cpp
[142/322] Compiling export.cpp
BUILD FAILURE 6.2 android