The Swift Package Index logo.Swift Package Index

Build Information

Failed to build mlx-libraries, reference main (ef1084), with Swift 6.4 for Linux on 12 Nov 2026 20:16:08 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.4
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/ml-explore/mlx-swift-examples.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-examples
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at ef1084d StableDiffusion: migrate from Hub (swift-transformers) to swift-huggingface (#494)
Cloned https://github.com/ml-explore/mlx-swift-examples.git
Revision (git rev-parse @):
ef1084dd5692611a8758b24b07efdad5404ac3ce
SPI manifest file found: $PWD/.spi.yml
SUCCESS checkout https://github.com/ml-explore/mlx-swift-examples.git at main
========================================
Build
========================================
Selected platform:         linux
Swift version:             6.4
Building package at path:  $PWD
https://github.com/ml-explore/mlx-swift-examples.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:6bd2fff94c2a094b4e2bada5eeda5fb66b2c697fad8becda44b1e19e40013bde
Status: Image is up to date for registry.gitlab.com/saguaro1/spi-images:linux-6.4-latest
Fetching https://github.com/1024jp/GzipSwift
Fetching https://github.com/ml-explore/mlx-swift
Fetching https://github.com/huggingface/swift-huggingface
[1/1770] Fetching gzipswift
[1771/4880] Fetching gzipswift, swift-huggingface
Fetched https://github.com/huggingface/swift-huggingface (0.61s)
[1/17743] Fetching mlx-swift
Fetched https://github.com/1024jp/GzipSwift (1.91s)
Fetched https://github.com/ml-explore/mlx-swift (1.92s)
Computing version for https://github.com/1024jp/GzipSwift
Computed https://github.com/1024jp/GzipSwift at 6.0.1 (3.33s)
Computing version for https://github.com/ml-explore/mlx-swift
Computed https://github.com/ml-explore/mlx-swift at 0.31.6 (0.37s)
Fetching https://github.com/apple/swift-argument-parser
Fetching https://github.com/apple/swift-numerics
[1/6849] Fetching swift-numerics
[6850/26233] Fetching swift-numerics, swift-argument-parser
Fetched https://github.com/apple/swift-numerics (0.65s)
[194/19384] Fetching swift-argument-parser
Fetched https://github.com/apple/swift-argument-parser (1.13s)
Computing version for https://github.com/apple/swift-numerics
Computed https://github.com/apple/swift-numerics at 1.1.1 (1.39s)
Computing version for https://github.com/huggingface/swift-huggingface
Computed https://github.com/huggingface/swift-huggingface at 0.13.0 (0.30s)
Fetching https://github.com/mattt/EventSource.git
Fetching https://github.com/apple/swift-crypto.git
[1/333] Fetching eventsource
[185/19281] Fetching eventsource, swift-crypto
Fetched https://github.com/mattt/EventSource.git (0.44s)
[569/18948] Fetching swift-crypto
Fetched https://github.com/apple/swift-crypto.git (1.68s)
Computing version for https://github.com/mattt/EventSource.git
Computed https://github.com/mattt/EventSource.git at 1.6.0 (1.98s)
Computing version for https://github.com/apple/swift-argument-parser
Computed https://github.com/apple/swift-argument-parser at 1.8.2 (0.29s)
Computing version for https://github.com/apple/swift-crypto.git
Computed https://github.com/apple/swift-crypto.git at 4.5.2 (1.52s)
Fetching https://github.com/apple/swift-asn1.git
[1/2067] Fetching swift-asn1
Fetched https://github.com/apple/swift-asn1.git (0.48s)
Computing version for https://github.com/apple/swift-asn1.git
Computed https://github.com/apple/swift-asn1.git at 1.7.4 (0.79s)
Creating working copy for https://github.com/apple/swift-crypto.git
Working copy of https://github.com/apple/swift-crypto.git resolved at 4.5.2
Creating working copy for https://github.com/mattt/EventSource.git
Working copy of https://github.com/mattt/EventSource.git resolved at 1.6.0
Creating working copy for https://github.com/apple/swift-asn1.git
Working copy of https://github.com/apple/swift-asn1.git resolved at 1.7.4
Creating working copy for https://github.com/1024jp/GzipSwift
Working copy of https://github.com/1024jp/GzipSwift resolved at 6.0.1
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/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
Creating working copy for https://github.com/huggingface/swift-huggingface
Working copy of https://github.com/huggingface/swift-huggingface resolved at 0.13.0
Building for debugging...
[Computing dependencies]
[Pre-planning 1 / 894]
[Planning deferred tasks]
[Constructing 2207 / 2596]
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'
[157 / 1021] EventSource
[162 / 1038] CryptoBoringWrapper
[164 / 1038] RealModule
[175 / 1038] CryptoBoringWrapper
[183 / 1038] CryptoBoringWrapper
[190 / 1038] Gzip
[196 / 1038] CryptoBoringWrapper
[198 / 1039] RealModule
[201 / 1040] ArgumentParserToolInfo
[201 / 1040] CCryptoBoringSSLShims
[205 / 1042] ArgumentParserToolInfo
[209 / 1042] ArgumentParserToolInfo
[217 / 1042] Gzip
[219 / 1044] CCryptoBoringSSL
[224 / 1045] CCryptoBoringSSL
[233 / 1045] CCryptoBoringSSL
[235 / 1045] CCryptoBoringSSL
[241 / 1045] CCryptoBoringSSL
[245 / 1045] CCryptoBoringSSL
[251 / 1045] CCryptoBoringSSL
[254 / 1045] CCryptoBoringSSL
[262 / 1045] CCryptoBoringSSL
[265 / 1045] CCryptoBoringSSL
[270 / 1045] CCryptoBoringSSL
[273 / 1045] CCryptoBoringSSL
[274 / 1045] CCryptoBoringSSL
[277 / 1045] CCryptoBoringSSL
[280 / 1045] CCryptoBoringSSL
[282 / 1045] CCryptoBoringSSL
[285 / 1045] CCryptoBoringSSL
[291 / 1045] CCryptoBoringSSL
[296 / 1045] CCryptoBoringSSL
[300 / 1045] CCryptoBoringSSL
[304 / 1045] CCryptoBoringSSL
[307 / 1045] CCryptoBoringSSL
[319 / 1045] CCryptoBoringSSL
[338 / 1045] CCryptoBoringSSL
[342 / 1045] CCryptoBoringSSL
[348 / 1045] CCryptoBoringSSL
[351 / 1045] CCryptoBoringSSL
[355 / 1045] CCryptoBoringSSL
[360 / 1045] CCryptoBoringSSL
[363 / 1045] CCryptoBoringSSL
[365 / 1045] CCryptoBoringSSL
[370 / 1045] CCryptoBoringSSL
[372 / 1045] CCryptoBoringSSL
[376 / 1045] CCryptoBoringSSL
[379 / 1045] CCryptoBoringSSL
[381 / 1045] CCryptoBoringSSL
[384 / 1045] CCryptoBoringSSL
[390 / 1045] CCryptoBoringSSL
[401 / 1045] CCryptoBoringSSL
[403 / 1045] CCryptoBoringSSL
[411 / 1045] CCryptoBoringSSL
[414 / 1045] CCryptoBoringSSL
[423 / 1045] CCryptoBoringSSL
[436 / 1045] CCryptoBoringSSL
[441 / 1045] CCryptoBoringSSL
[449 / 1045] CCryptoBoringSSL
[452 / 1045] CCryptoBoringSSL
[456 / 1045] CCryptoBoringSSL
[462 / 1045] CCryptoBoringSSL
[464 / 1045] CCryptoBoringSSL
[471 / 1045] CCryptoBoringSSL
[474 / 1045] CCryptoBoringSSL
[479 / 1045] CCryptoBoringSSL
[482 / 1045] CCryptoBoringSSL
[486 / 1045] CCryptoBoringSSL
[489 / 1045] CCryptoBoringSSL
[495 / 1045] CCryptoBoringSSL
[506 / 1045] CCryptoBoringSSL
[516 / 1045] CCryptoBoringSSL
[521 / 1045] CCryptoBoringSSL
[526 / 1045] CCryptoBoringSSL
[531 / 1045] CCryptoBoringSSL
[538 / 1045] CCryptoBoringSSL
[547 / 1045] CCryptoBoringSSL
[560 / 1045] CCryptoBoringSSL
[562 / 1045] CCryptoBoringSSL
[564 / 1045] CCryptoBoringSSL
[567 / 1045] CCryptoBoringSSL
[570 / 1045] CCryptoBoringSSL
[573 / 1045] CCryptoBoringSSL
[585 / 1045] Gzip
[590 / 1057] ArgumentParser
[595 / 1075] Crypto
[599 / 1075] ComplexModule
[601 / 1076] ComplexModule
[607 / 1076] ArgumentParser
[612 / 1076] Crypto
[613 / 1076] ComplexModule
[617 / 1076] Crypto
[628 / 1076] ArgumentParser
[629 / 1077] Crypto
[631 / 1077] Crypto
[635 / 1078] Crypto
[641 / 1081] encuda-product
[647 / 1090] HuggingFace
[655 / 1098] encuda-product
[656 / 1098] encuda-product
[658 / 1099] Numerics-product
[663 / 1100] ArgumentParser
[667 / 1100] HuggingFace
[669 / 1101] HuggingFace
[670 / 1101] ComplexModule
[674 / 1101]
[676 / 1101] CCryptoBoringSSL
[683 / 1103] MLX
[685 / 1111] Cmlx
In file included from /host/spi-builder-workspace/.build/checkouts/mlx-swift/Source/Cmlx/mlx/mlx/backend/cuda/worker.cpp:3:
In file included from /host/spi-builder-workspace/.build/checkouts/mlx-swift/Source/Cmlx/mlx/mlx/backend/cuda/worker.h:5:
In file included from /host/spi-builder-workspace/.build/checkouts/mlx-swift/Source/Cmlx/mlx/mlx/backend/cuda/event.h:6:
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/worker.o /host/spi-builder-workspace/.build/checkouts/mlx-swift/Source/Cmlx/mlx/mlx/backend/cuda/worker.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/worker.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/worker.dia -c /host/spi-builder-workspace/.build/checkouts/mlx-swift/Source/Cmlx/mlx/mlx/backend/cuda/worker.cpp -o /host/spi-builder-workspace/.build/out/Intermediates.noindex/mlx-swift.build/Debug-linux-x86_64/Cmlx-t.build/Objects-normal/x86_64/worker.o
error: Build failed
BUILD FAILURE 6.4 linux