The Swift Package Index logo.Swift Package Index

Build Information

Failed to build mlx-swift-lm, reference main (7e2b71), with Swift 6.3 for Linux on 20 Apr 2026 05:57:34 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:basic-6.3-latest swift build --triple x86_64-unknown-linux-gnu 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:         linux
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-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:basic-6.3-latest swift build --triple x86_64-unknown-linux-gnu 2>&1
basic-6.3-latest: Pulling from swiftpackageindex/spi-images
Digest: sha256:5a7d791d2ead8a924b1292cb31bf3288eabcfe8880e0b005b00b45b71a5bc36a
Status: Image is up to date for registry.gitlab.com/swiftpackageindex/spi-images:basic-6.3-latest
Fetching https://github.com/swiftlang/swift-syntax.git
Fetching https://github.com/ml-explore/mlx-swift
[1/14220] Fetching mlx-swift
[712/89201] Fetching mlx-swift, swift-syntax
Fetched https://github.com/ml-explore/mlx-swift from cache (1.51s)
[33742/74981] Fetching swift-syntax
Fetched https://github.com/swiftlang/swift-syntax.git from cache (7.51s)
Computing version for https://github.com/ml-explore/mlx-swift
Computed https://github.com/ml-explore/mlx-swift at 0.31.3 (8.62s)
Fetching https://github.com/apple/swift-numerics
[1/6416] Fetching swift-numerics
Fetched https://github.com/apple/swift-numerics from cache (0.46s)
Computing version for https://github.com/swiftlang/swift-syntax.git
Computed https://github.com/swiftlang/swift-syntax.git at 603.0.0 (2.87s)
Computing version for https://github.com/apple/swift-numerics
Computed https://github.com/apple/swift-numerics at 1.1.1 (0.35s)
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
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
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.38s)
Building for debugging...
[0/167] Write sources
[13/167] Compiling version.cpp
[14/167] Compiling _NumericsShims _NumericsShims.c
[15/167] Write swift-version-24593BA9C3E375BF.txt
[16/167] Compiling utils.cpp
[17/178] Compiling scheduler.cpp
[18/180] Compiling random.cpp
[19/180] Compiling linalg.cpp
[20/180] Compiling transforms.cpp
[21/180] Compiling no_gguf.cpp
[23/180] Compiling RealModule RealFunctions.swift
[24/181] Emitting module RealModule
[25/181] Compiling RealModule AlgebraicField.swift
[26/181] Compiling RealModule ApproximateEquality.swift
[27/181] Compiling RealModule RelaxedArithmetic.swift
[28/181] Compiling RealModule Real.swift
[29/181] Compiling RealModule AugmentedArithmetic.swift
[30/181] Compiling RealModule Double+Real.swift
[31/181] Compiling RealModule ElementaryFunctions.swift
[32/181] Compiling RealModule Float+Real.swift
[33/181] Compiling MLXHuggingFaceMacros HuggingFaceIntegrationMacros.swift
[34/181] Emitting module MLXHuggingFaceMacros
[35/182] Compiling RealModule Float16+Real.swift
[36/182] Compiling RealModule Float80+Real.swift
[38/183] Compiling primitives.cpp
[39/183] Compiling safetensors.cpp
[40/183] Wrapping AST for MLXHuggingFaceMacros for debugging
[42/194] Compiling ComplexModule Complex+Numeric.swift
[43/195] Compiling ComplexModule Polar.swift
[44/195] Compiling ComplexModule Complex+Hashable.swift
[45/195] Compiling ComplexModule Complex+IntegerLiteral.swift
[46/195] Compiling ComplexModule Scale.swift
[47/195] Compiling ComplexModule Complex.swift
[48/195] Compiling ComplexModule Complex+StringConvertible.swift
[48/195] Compiling load.cpp
[49/195] Write Objects.LinkFileList
[51/195] Compiling ComplexModule Complex+Codable.swift
[52/195] Compiling ComplexModule Complex+ElementaryFunctions.swift
[53/195] Compiling ComplexModule Complex+AdditiveArithmetic.swift
[54/195] Compiling ComplexModule Complex+AlgebraicField.swift
[55/195] Emitting module ComplexModule
[57/198] Compiling Numerics Numerics.swift
[58/198] Emitting module Numerics
[59/199] Compiling graph_utils.cpp
[60/199] Linking MLXHuggingFaceMacros-tool
[61/199] Compiling fft.cpp
[62/199] Compiling utils.cpp
[63/199] Compiling einsum.cpp
[64/199] Compiling dtype.cpp
[65/199] Compiling dtype_utils.cpp
[66/199] Compiling no_ring.cpp
[67/199] Compiling no_nccl.cpp
[68/199] Compiling ops.cpp
[69/199] Compiling no_mpi.cpp
[70/199] Compiling fast.cpp
[71/199] Compiling no_jaccl.cpp
[72/199] Compiling device.cpp
[73/199] Compiling ops.cpp
[74/199] Compiling primitives.cpp
[75/199] Compiling distributed.cpp
[76/199] Compiling device_info.cpp
[77/199] Compiling allocator.cpp
[78/199] Compiling fence.cpp
[79/199] Compiling primitives.cpp
[80/199] Compiling event.cpp
[81/199] Compiling threefry.cpp
[82/199] Compiling eval.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 softmax.cpp
[85/199] Compiling unary.cpp
[85/199] Compiling sort.cpp
[85/199] Compiling compile.cpp
[85/199] Compiling select.cpp
[85/199] Compiling export.cpp
BUILD FAILURE 6.3 linux