The Swift Package Index logo.Swift Package Index

Build Information

Failed to build mlx-swift-lm, reference main (7e2b71), with Swift 6.2 for Linux on 20 Apr 2026 05:52:33 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.2-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.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-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.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
[712/89201] Fetching mlx-swift, swift-syntax
Fetched https://github.com/ml-explore/mlx-swift from cache (2.03s)
[56986/74981] Fetching swift-syntax
Fetched https://github.com/swiftlang/swift-syntax.git from cache (6.84s)
Computing version for https://github.com/ml-explore/mlx-swift
Computed https://github.com/ml-explore/mlx-swift at 0.31.3 (7.46s)
Fetching https://github.com/apple/swift-numerics
[1/6416] Fetching swift-numerics
Fetched https://github.com/apple/swift-numerics from cache (1.20s)
Computing version for https://github.com/swiftlang/swift-syntax.git
Computed https://github.com/swiftlang/swift-syntax.git at 603.0.0 (3.90s)
Computing version for https://github.com/apple/swift-numerics
Computed https://github.com/apple/swift-numerics at 1.1.1 (0.37s)
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
Creating working copy for https://github.com/apple/swift-numerics
Working copy of https://github.com/apple/swift-numerics resolved at 1.1.1
Building for debugging...
[0/204] Write sources
[32/204] Compiling quantized.cpp
[33/204] Compiling masked_scatter.cpp
[34/204] Compiling quantized_nax.cpp
[35/204] Compiling logsumexp.cpp
[36/204] Compiling version.cpp
[37/204] Compiling _NumericsShims _NumericsShims.c
[38/204] Compiling _SwiftSyntaxCShims PlatformMutex.c
[39/204] Write swift-version-24593BA9C3E375BF.txt
[40/204] Compiling utils.cpp
[41/206] Compiling scheduler.cpp
[43/208] Emitting module SwiftSyntax602
[43/208] Compiling random.cpp
[44/210] Compiling linalg.cpp
[46/212] Emitting module SwiftSyntax603
[47/212] Compiling SwiftSyntax603 Empty.swift
[49/213] Emitting module SwiftSyntax601
[50/213] Compiling SwiftSyntax601 Empty.swift
[51/213] Compiling SwiftSyntax600 Empty.swift
[52/213] Emitting module SwiftSyntax600
[54/215] Compiling SwiftSyntax602 Empty.swift
[57/218] Compiling SwiftSyntax510 Empty.swift
[58/218] Emitting module SwiftSyntax510
[60/232] Emitting module SwiftSyntax509
[61/232] Compiling SwiftSyntax509 Empty.swift
[62/233] Compiling transforms.cpp
[63/233] Wrapping AST for SwiftSyntax602 for debugging
[64/233] Wrapping AST for SwiftSyntax603 for debugging
[66/233] Compiling RealModule RealFunctions.swift
[66/234] Wrapping AST for SwiftSyntax601 for debugging
[67/234] Wrapping AST for SwiftSyntax600 for debugging
[68/234] Wrapping AST for SwiftSyntax510 for debugging
[69/234] Wrapping AST for SwiftSyntax509 for debugging
[71/234] Compiling RealModule RelaxedArithmetic.swift
[72/256] Compiling SwiftSyntax AbsolutePosition.swift
[73/256] Compiling SwiftSyntax AbsoluteSyntaxInfo.swift
[74/297] Compiling RealModule Real.swift
[75/297] Compiling RealModule Float80+Real.swift
[76/297] Compiling RealModule Float16+Real.swift
[77/297] Compiling SwiftSyntax ArenaAllocatedBuffer.swift
[78/297] Compiling SwiftSyntax Assert.swift
[79/297] Compiling SwiftSyntax BumpPtrAllocator.swift
[80/297] Compiling SwiftSyntax CommonAncestor.swift
[81/297] Emitting module RealModule
[82/298] Compiling primitives.cpp
[84/309] Compiling ComplexModule Complex+Hashable.swift
[85/309] Compiling ComplexModule Complex+IntegerLiteral.swift
[86/309] Compiling ComplexModule Complex+Numeric.swift
[87/309] Compiling ComplexModule Polar.swift
[87/310] Compiling safetensors.cpp
[89/310] Compiling ComplexModule Complex+StringConvertible.swift
[90/310] Compiling ComplexModule Complex.swift
[91/310] Compiling ComplexModule Scale.swift
[92/310] Emitting module ComplexModule
[93/310] Compiling ComplexModule Complex+AdditiveArithmetic.swift
[94/310] Compiling ComplexModule Complex+AlgebraicField.swift
[95/310] Compiling ComplexModule Complex+Codable.swift
[96/310] Compiling ComplexModule Complex+ElementaryFunctions.swift
[98/313] Emitting module Numerics
[99/313] Compiling Numerics Numerics.swift
[100/314] Compiling no_gguf.cpp
[108/314] Compiling SwiftSyntax Convenience.swift
[109/314] Compiling SwiftSyntax CustomTraits.swift
[110/314] Compiling SwiftSyntax EditorPlaceholder.swift
[111/322] Compiling SwiftSyntax Identifier.swift
[112/322] Compiling SwiftSyntax MemoryLayout.swift
[113/322] Compiling SwiftSyntax MissingNodeInitializers.swift
[114/322] Compiling SwiftSyntax RawSyntax.swift
[115/322] Compiling SwiftSyntax RawSyntaxArena.swift
[116/322] Compiling SwiftSyntax RawSyntaxLayoutView.swift
[117/322] Compiling SwiftSyntax RawSyntaxNodeProtocol.swift
[118/322] Compiling SwiftSyntax RawSyntaxTokenView.swift
[119/322] Compiling SwiftSyntax SourceEdit.swift
[119/322] Compiling graph_utils.cpp
[120/322] Compiling fft.cpp
[121/322] Compiling load.cpp
[122/322] Compiling ops.cpp
[123/322] Compiling dtype_utils.cpp
[124/322] Compiling dtype.cpp
[125/322] Compiling utils.cpp
[126/322] Compiling fast.cpp
[127/322] Compiling einsum.cpp
[128/322] Compiling no_ring.cpp
[129/322] Compiling no_nccl.cpp
[130/322] Compiling no_mpi.cpp
[131/322] Compiling no_jaccl.cpp
[132/322] Compiling device.cpp
[133/322] Compiling distributed.cpp
[134/322] Compiling primitives.cpp
[135/322] Compiling ops.cpp
[136/322] Compiling device_info.cpp
[137/322] Compiling fence.cpp
[138/322] Compiling allocator.cpp
[139/322] Compiling eval.cpp
[140/322] Compiling primitives.cpp
[141/322] Compiling event.cpp
[143/322] Emitting module SwiftSyntax
[143/322] Compiling threefry.cpp
[144/322] Compiling no_metal.cpp
[145/322] Compiling compile.cpp
[146/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.
[147/322] Compiling svd.cpp
[147/322] Compiling softmax.cpp
[147/322] Compiling scan.cpp
[147/322] Compiling select.cpp
[147/322] Compiling sort.cpp
[147/322] Compiling unary.cpp
[147/322] Compiling export.cpp
BUILD FAILURE 6.2 linux