Build Information
Failed to build mlx-swift-lm, reference 3.31.3 (1c0524), with Swift 6.2 for Linux on 20 Apr 2026 05:54:17 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:basic-6.2-latest swift build --triple x86_64-unknown-linux-gnu 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: linux
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-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:basic-6.2-latest swift build --triple x86_64-unknown-linux-gnu 2>&1
basic-6.2-latest: Pulling from swiftpackageindex/spi-images
Digest: sha256:0ddb100795e64f71518020a73ad8441aeb43832ede7f1202ae7f8de93664f90d
Status: Image is up to date for registry.gitlab.com/swiftpackageindex/spi-images:basic-6.2-latest
Fetching https://github.com/ml-explore/mlx-swift
Fetching https://github.com/swiftlang/swift-syntax.git
[1/14220] Fetching mlx-swift
[1281/89201] Fetching mlx-swift, swift-syntax
Fetched https://github.com/ml-explore/mlx-swift from cache (2.20s)
[38241/74981] Fetching swift-syntax
Fetched https://github.com/swiftlang/swift-syntax.git from cache (7.83s)
Computing version for https://github.com/ml-explore/mlx-swift
Computed https://github.com/ml-explore/mlx-swift at 0.31.3 (8.50s)
Fetching https://github.com/apple/swift-numerics
[1/6416] Fetching swift-numerics
Fetched https://github.com/apple/swift-numerics from cache (0.48s)
Computing version for https://github.com/apple/swift-numerics
Computed https://github.com/apple/swift-numerics at 1.1.1 (0.85s)
Computing version for https://github.com/swiftlang/swift-syntax.git
Computed https://github.com/swiftlang/swift-syntax.git at 600.0.1 (2.34s)
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/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 600.0.1
Downloading package prebuilt https://download.swift.org/prebuilts/swift-syntax/600.0.1/swift-6.2.4-RELEASE-MacroSupport-ubuntu_jammy_x86_64.tar.gz
Downloaded https://download.swift.org/prebuilts/swift-syntax/600.0.1/swift-6.2.4-RELEASE-MacroSupport-ubuntu_jammy_x86_64.tar.gz (0.53s)
Building for debugging...
[0/167] Write sources
[13/167] Compiling _NumericsShims _NumericsShims.c
[14/167] Compiling version.cpp
[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] Emitting module RealModule
[24/181] Compiling RealModule AlgebraicField.swift
[25/181] Compiling RealModule ApproximateEquality.swift
[26/181] Compiling RealModule AugmentedArithmetic.swift
[27/181] Compiling RealModule Double+Real.swift
[27/181] Compiling safetensors.cpp
[29/181] Compiling RealModule RelaxedArithmetic.swift
[30/181] Compiling RealModule Float16+Real.swift
[31/181] Compiling RealModule RealFunctions.swift
[31/181] Compiling primitives.cpp
[33/181] Emitting module MLXHuggingFaceMacros
[34/181] Compiling MLXHuggingFaceMacros HuggingFaceIntegrationMacros.swift
[35/182] Compiling RealModule Float80+Real.swift
[36/182] Compiling RealModule ElementaryFunctions.swift
[37/182] Compiling RealModule Float+Real.swift
[38/182] Compiling RealModule Real.swift
[40/183] Wrapping AST for MLXHuggingFaceMacros for debugging
[42/194] Compiling ComplexModule Complex+Hashable.swift
[43/194] Compiling ComplexModule Complex+IntegerLiteral.swift
[44/195] Compiling ComplexModule Polar.swift
[45/195] Compiling ComplexModule Scale.swift
[46/195] Compiling ComplexModule Complex+Numeric.swift
[47/195] Compiling ComplexModule Complex+StringConvertible.swift
[48/195] Compiling ComplexModule Complex.swift
[48/195] Compiling load.cpp
[49/195] Write Objects.LinkFileList
[51/195] Emitting module ComplexModule
[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
[56/196] Linking MLXHuggingFaceMacros-tool
[56/196] Compiling fft.cpp
[58/196] Compiling graph_utils.cpp
[60/198] Emitting module Numerics
[61/198] Compiling Numerics Numerics.swift
[62/199] Compiling dtype_utils.cpp
[63/199] Compiling einsum.cpp
[64/199] Compiling utils.cpp
[65/199] Compiling dtype.cpp
[66/199] Compiling no_ring.cpp
[67/199] Compiling ops.cpp
[68/199] Compiling fast.cpp
[69/199] Compiling no_nccl.cpp
[70/199] Compiling primitives.cpp
[71/199] Compiling device.cpp
[72/199] Compiling no_mpi.cpp
[73/199] Compiling no_jaccl.cpp
[74/199] Compiling distributed.cpp
[75/199] Compiling ops.cpp
[76/199] Compiling device_info.cpp
[77/199] Compiling fence.cpp
[78/199] Compiling event.cpp
[79/199] Compiling eval.cpp
[80/199] Compiling allocator.cpp
[81/199] Compiling threefry.cpp
[82/199] Compiling primitives.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 select.cpp
[85/199] Compiling sort.cpp
[85/199] Compiling softmax.cpp
[85/199] Compiling unary.cpp
[85/199] Compiling compile.cpp
[85/199] Compiling export.cpp
BUILD FAILURE 6.2 linux