The Swift Package Index logo.Swift Package Index

Build Information

Failed to build mlx-swift-lm, reference 3.31.4 (bd4b74), with Swift 6.4 for Linux on 16 Oct 2026 02:41:03 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-53886770-0":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/saguaro1/spi-images:linux-6.4-latest swift build --triple x86_64-unknown-linux-gnu 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 5.1.3
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/drewster99/mlx-swift-lm.git
Reference: 3.31.4
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/drewster99/mlx-swift-lm
 * tag               3.31.4     -> FETCH_HEAD
HEAD is now at bd4b743 Add optional seed to GenerateParameters for reproducible sampling (#377)
Cloned https://github.com/drewster99/mlx-swift-lm.git
Revision (git rev-parse @):
bd4b7434e6bdb588c7ef55706ff8904cb7fd4c57
SPI manifest file found: $PWD/.spi.yml
SUCCESS checkout https://github.com/drewster99/mlx-swift-lm.git at 3.31.4
========================================
Build
========================================
Selected platform:         linux
Swift version:             6.4
Building package at path:  $PWD
https://github.com/drewster99/mlx-swift-lm.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-53886770-0":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/saguaro1/spi-images:linux-6.4-latest swift build --triple x86_64-unknown-linux-gnu 2>&1
linux-6.4-latest: Pulling from saguaro1/spi-images
Digest: sha256:ef1451f51398a5019879493c5c492376e60274346858404d898204a8a77273d4
Status: Image is up to date for registry.gitlab.com/saguaro1/spi-images:linux-6.4-latest
Fetching https://github.com/ml-explore/mlx-swift
Fetching https://github.com/swiftlang/swift-syntax.git
[1/17176] Fetching mlx-swift
[17177/97953] Fetching mlx-swift, swift-syntax
Fetched https://github.com/ml-explore/mlx-swift (4.07s)
Fetched https://github.com/swiftlang/swift-syntax.git (4.09s)
Computing version for https://github.com/ml-explore/mlx-swift
Computed https://github.com/ml-explore/mlx-swift at 0.31.6 (4.38s)
Fetching https://github.com/apple/swift-numerics
Fetching https://github.com/apple/swift-argument-parser
[1/6756] Fetching swift-numerics
[6757/25870] Fetching swift-numerics, swift-argument-parser
Fetched https://github.com/apple/swift-numerics (1.05s)
Fetched https://github.com/apple/swift-argument-parser (1.05s)
Computing version for https://github.com/swiftlang/swift-syntax.git
Computed https://github.com/swiftlang/swift-syntax.git at 603.0.2 (2.17s)
Computing version for https://github.com/apple/swift-numerics
Computed https://github.com/apple/swift-numerics at 1.1.1 (0.14s)
Computing version for https://github.com/apple/swift-argument-parser
Computed https://github.com/apple/swift-argument-parser at 1.8.2 (0.16s)
Creating working copy for https://github.com/apple/swift-argument-parser
Working copy of https://github.com/apple/swift-argument-parser resolved at 1.8.2
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.2
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.6
Creating working copy for https://github.com/apple/swift-numerics
Working copy of https://github.com/apple/swift-numerics resolved at 1.1.1
Downloading package prebuilt https://download.swift.org/prebuilts/swift-syntax/603.0.2/swift-6.4.0-RELEASE-ubuntu_noble_x86_64-MacroSupport.tar.gz
Downloaded https://download.swift.org/prebuilts/swift-syntax/603.0.2/swift-6.4.0-RELEASE-ubuntu_noble_x86_64-MacroSupport.tar.gz (0.17s)
Building for debugging...
[Computing dependencies]
[Constructing description]
[Pre-planning 1 / 855]
[Planning 583 / 855]
[Planning deferred tasks]
[Constructing 101 / 2087]
[Starting]
warning: no rule to process file '/host/spi-builder-workspace/.build/checkouts/mlx-swift/Source/Cmlx/mlx-generated/metal/arg_reduce.metal' of type 'sourcecode.metal' for architecture 'x86_64'
warning: no rule to process file '/host/spi-builder-workspace/.build/checkouts/mlx-swift/Source/Cmlx/mlx-generated/metal/conv.metal' of type 'sourcecode.metal' for architecture 'x86_64'
warning: no rule to process file '/host/spi-builder-workspace/.build/checkouts/mlx-swift/Source/Cmlx/mlx-generated/metal/gemv.metal' of type 'sourcecode.metal' for architecture 'x86_64'
warning: no rule to process file '/host/spi-builder-workspace/.build/checkouts/mlx-swift/Source/Cmlx/mlx-generated/metal/layer_norm.metal' of type 'sourcecode.metal' for architecture 'x86_64'
warning: no rule to process file '/host/spi-builder-workspace/.build/checkouts/mlx-swift/Source/Cmlx/mlx-generated/metal/random.metal' of type 'sourcecode.metal' for architecture 'x86_64'
warning: no rule to process file '/host/spi-builder-workspace/.build/checkouts/mlx-swift/Source/Cmlx/mlx-generated/metal/rms_norm.metal' of type 'sourcecode.metal' for architecture 'x86_64'
warning: no rule to process file '/host/spi-builder-workspace/.build/checkouts/mlx-swift/Source/Cmlx/mlx-generated/metal/rope.metal' of type 'sourcecode.metal' for architecture 'x86_64'
warning: no rule to process file '/host/spi-builder-workspace/.build/checkouts/mlx-swift/Source/Cmlx/mlx-generated/metal/scaled_dot_product_attention.metal' of type 'sourcecode.metal' for architecture 'x86_64'
warning: no rule to process file '/host/spi-builder-workspace/.build/checkouts/mlx-swift/Source/Cmlx/mlx-generated/metal/steel/attn/kernels/steel_attention.metal' of type 'sourcecode.metal' for architecture 'x86_64'
[90 / 614] MLXEmbedders
[141 / 630] MLXHuggingFaceMacros
[141 / 630] RealModule
[143 / 630] RealModule
[149 / 630] ArgumentParserToolInfo
[151 / 630] RealModule
[157 / 630] ComplexModule
[162 / 641] ComplexModule
[163 / 650] ArgumentParser
[165 / 650] ComplexModule
[169 / 652] MLXHuggingFaceMacros
[171 / 652] RealModule
[176 / 652] RealModule
[178 / 652] ArgumentParser
[181 / 652] ComplexModule
[188 / 654] Numerics
[192 / 654] ArgumentParserToolInfo
[194 / 654] ArgumentParser
[201 / 656] Numerics
[203 / 664] Numerics
[204 / 664] ArgumentParser
[207 / 664] Numerics
[212 / 664] encuda-product
[214 / 664] encuda-product
[215 / 664] encuda-product
[217 / 665]
[219 / 665] encuda-product
[219 / 665] ArgumentParser
[219 / 665] encuda-product
[222 / 666] ArgumentParser
[225 / 667] ArgumentParser
[226 / 667] encuda-product
[237 / 668] Cmlx
[239 / 677] Cmlx
In file included from /host/spi-builder-workspace/.build/checkouts/mlx-swift/Source/Cmlx/mlx/mlx/backend/cuda/utils.cpp:3:
In file included from /host/spi-builder-workspace/.build/checkouts/mlx-swift/Source/Cmlx/mlx/mlx/backend/cuda/utils.h:8:
In file included from /host/spi-builder-workspace/.build/checkouts/mlx-swift/Source/Cmlx/mlx/mlx/backend/cuda/allocator.h:7:
/host/spi-builder-workspace/.build/checkouts/mlx-swift/Source/Cmlx/mlx/mlx/backend/cuda/cuda_utils.h:5:10: fatal error: 'cublasLt.h' file not found
    5 | #include <cublasLt.h>
      |          ^~~~~~~~~~~~
1 error generated.
error: CompileC /host/spi-builder-workspace/.build/out/Intermediates.noindex/mlx-swift.build/Debug-linux-x86_64/Cmlx-t.build/Objects-normal/x86_64/utils-cec60760e6676e554386e840f62f9b122624a158dee5b01505b540d08d7db08f.o /host/spi-builder-workspace/.build/checkouts/mlx-swift/Source/Cmlx/mlx/mlx/backend/cuda/utils.cpp normal x86_64 c++ com.apple.compilers.llvm.clang.1_0.compiler failed with a nonzero exit code. Command line:     cd /host

    Using response file: /host/spi-builder-workspace/.build/out/Intermediates.noindex/mlx-swift.build/Debug-linux-x86_64/Cmlx-t.build/Objects-normal/x86_64/11b881b950eb02e21769317df93e9b41d1d7f0348e4e0901ae810dce93ca1a57-common-args.resp

    /usr/bin/clang -x c++ -target x86_64-unknown-linux-gnu -fmessage-length\=0 -fdiagnostics-show-note-include-stack -fmacro-backtrace-limit\=0 -fcolor-diagnostics -Wno-trigraphs -Wno-missing-field-initializers -Wno-missing-prototypes -Wno-return-type -Wno-non-virtual-dtor -Wno-overloaded-virtual -Wno-exit-time-destructors -Wno-missing-braces -Wparentheses -Wswitch -Wno-unused-function -Wno-unused-label -Wno-unused-parameter -Wno-unused-variable -Wunused-value -Wno-empty-body -Wno-uninitialized -Wno-unknown-pragmas -w -Wno-shadow -Wno-four-char-constants -Wno-conversion -Wno-constant-conversion -Wno-int-conversion -Wno-bool-conversion -Wno-enum-conversion -Wno-float-conversion -Wno-non-literal-null-conversion -Wno-objc-literal-conversion -Wno-shorten-64-to-32 -Wno-newline-eof -Wno-c++11-extensions -Wno-implicit-fallthrough -fstrict-aliasing -Wdeprecated-declarations -Winvalid-offsetof -Wno-sign-conversion -Wno-infinite-recursion -Wno-move -Wno-comma -Wno-block-capture-autoreleasing -Wno-strict-prototypes -Wno-range-loop-analysis -Wno-semicolon-before-method-body --sysroot / @/host/spi-builder-workspace/.build/out/Intermediates.noindex/mlx-swift.build/Debug-linux-x86_64/Cmlx-t.build/Objects-normal/x86_64/11b881b950eb02e21769317df93e9b41d1d7f0348e4e0901ae810dce93ca1a57-common-args.resp -MMD -MT dependencies -MF /host/spi-builder-workspace/.build/out/Intermediates.noindex/mlx-swift.build/Debug-linux-x86_64/Cmlx-t.build/Objects-normal/x86_64/utils-cec60760e6676e554386e840f62f9b122624a158dee5b01505b540d08d7db08f.d --serialize-diagnostics /host/spi-builder-workspace/.build/out/Intermediates.noindex/mlx-swift.build/Debug-linux-x86_64/Cmlx-t.build/Objects-normal/x86_64/utils-cec60760e6676e554386e840f62f9b122624a158dee5b01505b540d08d7db08f.dia -c /host/spi-builder-workspace/.build/checkouts/mlx-swift/Source/Cmlx/mlx/mlx/backend/cuda/utils.cpp -o /host/spi-builder-workspace/.build/out/Intermediates.noindex/mlx-swift.build/Debug-linux-x86_64/Cmlx-t.build/Objects-normal/x86_64/utils-cec60760e6676e554386e840f62f9b122624a158dee5b01505b540d08d7db08f.o
[241 / 677] Cmlx
error: Build failed
BUILD FAILURE 6.4 linux