Build Information
Failed to build mlx-swift-lm, reference 3.31.3 (1c0524), with Swift 6.3 for Linux on 20 Apr 2026 05:58:07 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4606859-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:basic-6.3-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.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-4606859-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: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/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 (6.19s)
Fetched https://github.com/swiftlang/swift-syntax.git from cache (6.28s)
Computing version for https://github.com/ml-explore/mlx-swift
Computed https://github.com/ml-explore/mlx-swift at 0.31.3 (6.89s)
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/apple/swift-numerics
Computed https://github.com/apple/swift-numerics at 1.1.1 (0.87s)
Computing version for https://github.com/swiftlang/swift-syntax.git
Computed https://github.com/swiftlang/swift-syntax.git at 600.0.1 (2.62s)
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
Building for debugging...
[0/196] Write sources
[20/196] Compiling _SwiftSyntaxCShims dummy.c
[21/196] Compiling _NumericsShims _NumericsShims.c
[21/196] Write sources
[29/196] Compiling version.cpp
[30/196] Write swift-version-24593BA9C3E375BF.txt
[31/196] Compiling utils.cpp
[32/198] Compiling scheduler.cpp
[33/200] Compiling random.cpp
[34/202] Compiling linalg.cpp
[36/213] Emitting module SwiftSyntax600
[37/213] Compiling SwiftSyntax600 Empty.swift
[38/214] Compiling transforms.cpp
[40/214] Compiling RealModule ElementaryFunctions.swift
[41/214] Compiling RealModule Float+Real.swift
[42/215] Compiling SwiftSyntax510 Empty.swift
[43/215] Emitting module SwiftSyntax510
[44/216] Compiling RealModule RealFunctions.swift
[44/216] Wrapping AST for SwiftSyntax600 for debugging
[46/216] Emitting module SwiftSyntax509
[47/216] Compiling SwiftSyntax509 Empty.swift
[49/217] Compiling RealModule RelaxedArithmetic.swift
[50/217] Compiling RealModule Float80+Real.swift
[51/217] Compiling RealModule Float16+Real.swift
[52/217] Compiling RealModule Real.swift
[53/217] Emitting module RealModule
[54/217] Compiling RealModule AlgebraicField.swift
[55/217] Compiling RealModule ApproximateEquality.swift
[57/217] Compiling RealModule AugmentedArithmetic.swift
[58/217] Compiling RealModule Double+Real.swift
[59/219] Wrapping AST for SwiftSyntax510 for debugging
[61/293] Compiling ComplexModule Polar.swift
[62/293] Compiling ComplexModule Complex+Hashable.swift
[63/293] Compiling ComplexModule Complex+IntegerLiteral.swift
[64/293] Compiling ComplexModule Complex+Numeric.swift
[65/294] Compiling ComplexModule Complex+StringConvertible.swift
[66/294] Compiling ComplexModule Complex.swift
[67/294] Compiling ComplexModule Complex+AdditiveArithmetic.swift
[68/294] Compiling ComplexModule Complex+AlgebraicField.swift
[69/294] Compiling ComplexModule Scale.swift
[69/294] Compiling primitives.cpp
[70/294] Wrapping AST for SwiftSyntax509 for debugging
[72/294] Compiling ComplexModule Complex+Codable.swift
[73/294] Compiling ComplexModule Complex+ElementaryFunctions.swift
[74/294] Emitting module ComplexModule
[75/295] Compiling safetensors.cpp
[77/297] Compiling Numerics Numerics.swift
[78/297] Emitting module Numerics
[85/298] Compiling SwiftSyntax Convenience.swift
[86/298] Compiling SwiftSyntax CustomTraits.swift
[87/298] Compiling SwiftSyntax Identifier.swift
[88/306] Compiling no_gguf.cpp
[90/306] Compiling SwiftSyntax SourcePresence.swift
[91/306] Compiling SwiftSyntax SwiftSyntaxCompatibility.swift
[92/306] Compiling SwiftSyntax Syntax.swift
[93/306] Compiling SwiftSyntax SyntaxArena.swift
[94/306] Compiling SwiftSyntax SyntaxArenaAllocatedBuffer.swift
[95/306] Compiling SwiftSyntax SyntaxChildren.swift
[96/306] Compiling SwiftSyntax SyntaxCollection.swift
[97/306] Compiling SwiftSyntax SyntaxHashable.swift
[98/306] Compiling SwiftSyntax SyntaxIdentifier.swift
[99/306] Compiling SwiftSyntax MemoryLayout.swift
[100/306] Compiling SwiftSyntax MissingNodeInitializers.swift
[101/306] Compiling SwiftSyntax RawSyntax.swift
[102/306] Compiling SwiftSyntax RawSyntaxLayoutView.swift
[103/306] Compiling SwiftSyntax RawSyntaxNodeProtocol.swift
[104/306] Compiling SwiftSyntax RawSyntaxTokenView.swift
[105/306] Compiling SwiftSyntax SourceEdit.swift
[106/306] Compiling SwiftSyntax SourceLength.swift
[107/306] Compiling SwiftSyntax SourceLocation.swift
[107/306] Compiling graph_utils.cpp
[108/306] Compiling load.cpp
[109/306] Compiling fft.cpp
[110/306] Compiling dtype.cpp
[111/306] Compiling dtype_utils.cpp
[112/306] Compiling utils.cpp
[113/306] Compiling fast.cpp
[114/306] Compiling ops.cpp
[115/306] Compiling no_ring.cpp
[116/306] Compiling einsum.cpp
[117/306] Compiling no_jaccl.cpp
[118/306] Compiling no_nccl.cpp
[119/306] Compiling no_mpi.cpp
[120/306] Compiling device.cpp
[121/306] Compiling distributed.cpp
[122/306] Compiling ops.cpp
[123/306] Compiling primitives.cpp
[124/306] Compiling device_info.cpp
[126/306] Emitting module SwiftSyntax
[126/306] Compiling allocator.cpp
[127/306] Compiling eval.cpp
[128/306] Compiling fence.cpp
[129/306] Compiling primitives.cpp
[130/306] Compiling threefry.cpp
[131/306] Compiling event.cpp
[132/306] Compiling no_metal.cpp
[133/306] 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.
[134/306] Compiling svd.cpp
[134/306] Compiling unary.cpp
[134/306] Compiling softmax.cpp
[134/306] Compiling select.cpp
[134/306] Compiling sort.cpp
[134/306] Compiling compile.cpp
[134/306] Compiling export.cpp
BUILD FAILURE 6.3 linux