Build Information
Failed to build mlx-libraries, reference main (378f24), with Swift 6.4 for Linux on 23 Sep 2026 05:11:33 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-53886770-1":/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:basic-6.4-latest swift build --triple x86_64-unknown-linux-gnu 2>&1Build Log
========================================
RunAll
========================================
Builder version: 5.1.0
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 378f244 MLXChatExample: fix VLM image handling on iOS (PhotosPicker, EXIF, empty assistant trim) (#472)
Cloned https://github.com/ml-explore/mlx-swift-examples.git
Revision (git rev-parse @):
378f2449c257788c5067b9f8b086731d76b39b33
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-1":/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:basic-6.4-latest swift build --triple x86_64-unknown-linux-gnu 2>&1
basic-6.4-latest: Pulling from saguaro1/spi-images
Digest: sha256:c77fcce225e223ac0fafed844619173fc6de8d62dd560eeb28db3182af6a282b
Status: Image is up to date for registry.gitlab.com/saguaro1/spi-images:basic-6.4-latest
Fetching https://github.com/1024jp/GzipSwift
Fetching https://github.com/ml-explore/mlx-swift
Fetching https://github.com/huggingface/swift-transformers
[1/7018] Fetching swift-transformers
[844/8780] Fetching swift-transformers, gzipswift
Fetched https://github.com/huggingface/swift-transformers (0.70s)
[1/16941] Fetching mlx-swift
Fetched https://github.com/1024jp/GzipSwift (1.28s)
Fetched https://github.com/ml-explore/mlx-swift (1.28s)
Computing version for https://github.com/1024jp/GzipSwift
Computed https://github.com/1024jp/GzipSwift at 6.0.1 (2.34s)
Computing version for https://github.com/ml-explore/mlx-swift
Computed https://github.com/ml-explore/mlx-swift at 0.31.6 (0.27s)
Fetching https://github.com/apple/swift-numerics
Fetching https://github.com/apple/swift-argument-parser
[1/6640] Fetching swift-numerics
[997/25558] Fetching swift-numerics, swift-argument-parser
Fetched https://github.com/apple/swift-numerics (0.74s)
Fetched https://github.com/apple/swift-argument-parser (0.74s)
Computing version for https://github.com/huggingface/swift-transformers
Computed https://github.com/huggingface/swift-transformers at 1.3.4 (0.97s)
Fetching https://github.com/apple/swift-crypto.git
Fetching https://github.com/huggingface/swift-huggingface.git
Fetching https://github.com/ibireme/yyjson.git
Fetching https://github.com/apple/swift-collections.git
Fetching https://github.com/huggingface/swift-jinja.git
[1/18549] Fetching swift-crypto
[2/19909] Fetching swift-crypto, swift-jinja
[3216/47595] Fetching swift-crypto, swift-jinja, swift-collections
[5897/52494] Fetching swift-crypto, swift-jinja, swift-collections, yyjson
[11703/55231] Fetching swift-crypto, swift-jinja, swift-collections, yyjson, swift-huggingface
Fetched https://github.com/huggingface/swift-jinja.git (1.32s)
Fetched https://github.com/huggingface/swift-huggingface.git (1.32s)
Fetched https://github.com/ibireme/yyjson.git (1.33s)
Fetched https://github.com/apple/swift-collections.git (1.33s)
Fetched https://github.com/apple/swift-crypto.git (1.34s)
Computing version for https://github.com/ibireme/yyjson.git
Computed https://github.com/ibireme/yyjson.git at 0.12.0 (1.53s)
Computing version for https://github.com/huggingface/swift-jinja.git
Computed https://github.com/huggingface/swift-jinja.git at 2.5.1 (0.15s)
Computing version for https://github.com/huggingface/swift-huggingface.git
Computed https://github.com/huggingface/swift-huggingface.git at 0.11.0 (0.18s)
Fetching https://github.com/mattt/EventSource.git
[1/303] Fetching eventsource
Fetched https://github.com/mattt/EventSource.git (0.50s)
Computing version for https://github.com/apple/swift-numerics
Computed https://github.com/apple/swift-numerics at 1.1.1 (0.66s)
Computing version for https://github.com/mattt/EventSource.git
Computed https://github.com/mattt/EventSource.git at 1.5.1 (0.16s)
Computing version for https://github.com/apple/swift-collections.git
Computed https://github.com/apple/swift-collections.git at 1.7.0 (0.29s)
Computing version for https://github.com/apple/swift-argument-parser
Computed https://github.com/apple/swift-argument-parser at 1.8.2 (0.18s)
Computing version for https://github.com/apple/swift-crypto.git
Computed https://github.com/apple/swift-crypto.git at 4.5.2 (1.14s)
Fetching https://github.com/apple/swift-asn1.git
[1/1983] Fetching swift-asn1
Fetched https://github.com/apple/swift-asn1.git (0.53s)
Computing version for https://github.com/apple/swift-asn1.git
Computed https://github.com/apple/swift-asn1.git at 1.7.3 (0.75s)
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.3
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/mattt/EventSource.git
Working copy of https://github.com/mattt/EventSource.git resolved at 1.5.1
Creating working copy for https://github.com/huggingface/swift-huggingface.git
Working copy of https://github.com/huggingface/swift-huggingface.git resolved at 0.11.0
Creating working copy for https://github.com/huggingface/swift-transformers
Working copy of https://github.com/huggingface/swift-transformers resolved at 1.3.4
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/ibireme/yyjson.git
Working copy of https://github.com/ibireme/yyjson.git resolved at 0.12.0
Creating working copy for https://github.com/apple/swift-collections.git
Working copy of https://github.com/apple/swift-collections.git resolved at 1.7.0
Creating working copy for https://github.com/huggingface/swift-jinja.git
Working copy of https://github.com/huggingface/swift-jinja.git resolved at 2.5.1
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/1024jp/GzipSwift
Working copy of https://github.com/1024jp/GzipSwift resolved at 6.0.1
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
Building for debugging...
[Computing dependencies]
[Constructing description]
[Pre-planning 1 / 1160]
[Planning 1125 / 1160]
[Planning deferred tasks]
[Constructing 580 / 3179]
[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'
[196 / 1115]
[214 / 1152] CCryptoBoringSSLShims
[215 / 1152] CXKCP
[216 / 1152] RealModule
[218 / 1152] RealModule
[220 / 1152] RealModule
[227 / 1152] InternalCollectionsUtilities
[239 / 1152] EventSource
[249 / 1152] InternalCollectionsUtilities
[250 / 1152] RealModule
[252 / 1152] OrderedCollections
[255 / 1152] InternalCollectionsUtilities
[258 / 1153] EventSource
[261 / 1153] RealModule
[265 / 1153] EventSource-product
[267 / 1153] CryptoBoringWrapper
[268 / 1153] CryptoBoringWrapper
[269 / 1153] CryptoBoringWrapper
[270 / 1153] CryptoBoringWrapper
[273 / 1156] CCryptoBoringSSL
[274 / 1156] ArgumentParserToolInfo
[275 / 1157] CCryptoBoringSSL
[281 / 1157] CCryptoBoringSSL
[282 / 1157] CCryptoBoringSSL
[283 / 1157] CryptoBoringWrapper
[287 / 1159] CCryptoBoringSSL
[289 / 1159] CCryptoBoringSSL
[291 / 1159] CCryptoBoringSSL
[294 / 1160] CCryptoBoringSSL
[299 / 1160] CCryptoBoringSSL
[301 / 1160] CCryptoBoringSSL
[302 / 1160] CCryptoBoringSSL
[303 / 1160] CCryptoBoringSSL
[305 / 1160] CCryptoBoringSSL
[306 / 1160] CCryptoBoringSSL
[308 / 1160] CCryptoBoringSSL
[309 / 1160] CCryptoBoringSSL
[312 / 1160] CCryptoBoringSSL
[314 / 1160] CCryptoBoringSSL
[316 / 1160] CCryptoBoringSSL
[318 / 1160] CCryptoBoringSSL
[320 / 1160] CCryptoBoringSSL
[324 / 1160] CCryptoBoringSSL
[330 / 1160] CCryptoBoringSSL
[332 / 1160] CCryptoBoringSSL
[334 / 1160] CCryptoBoringSSL
[335 / 1160] CCryptoBoringSSL
[338 / 1160] CCryptoBoringSSL
[339 / 1160] CCryptoBoringSSL
[340 / 1160] CCryptoBoringSSL
[342 / 1160] CCryptoBoringSSL
[343 / 1160] CCryptoBoringSSL
[345 / 1160] CCryptoBoringSSL
[346 / 1160] CCryptoBoringSSL
[348 / 1160] CCryptoBoringSSL
[349 / 1160] CCryptoBoringSSL
[350 / 1160] CCryptoBoringSSL
[352 / 1160] CCryptoBoringSSL
[354 / 1160] CCryptoBoringSSL
[357 / 1160] CCryptoBoringSSL
[361 / 1160] CCryptoBoringSSL
[363 / 1160] CCryptoBoringSSL
[366 / 1160] CCryptoBoringSSL
[368 / 1160] CCryptoBoringSSL
[371 / 1160] CCryptoBoringSSL
[372 / 1160] CCryptoBoringSSL
[373 / 1160] CCryptoBoringSSL
[374 / 1160] CCryptoBoringSSL
[376 / 1160] CCryptoBoringSSL
[378 / 1160] CCryptoBoringSSL
[382 / 1160] CCryptoBoringSSL
[389 / 1160] CCryptoBoringSSL
[393 / 1160] CCryptoBoringSSL
[401 / 1160] CCryptoBoringSSL
[407 / 1160] CCryptoBoringSSL
[411 / 1160] CCryptoBoringSSL
[414 / 1160] CCryptoBoringSSL
[415 / 1160] CCryptoBoringSSL
[417 / 1160] CCryptoBoringSSL
[419 / 1160] CCryptoBoringSSL
[421 / 1160] CCryptoBoringSSL
[422 / 1160] CCryptoBoringSSL
[424 / 1160] CCryptoBoringSSL
[426 / 1160] CCryptoBoringSSL
[428 / 1160] CCryptoBoringSSL
[431 / 1160] CCryptoBoringSSL
[432 / 1160] CCryptoBoringSSL
[435 / 1160] CCryptoBoringSSL
[437 / 1160] CCryptoBoringSSL
[438 / 1160] CCryptoBoringSSL
[441 / 1160] CCryptoBoringSSL
[444 / 1160] CCryptoBoringSSL
[446 / 1160] CCryptoBoringSSL
[447 / 1160] CCryptoBoringSSL
[449 / 1160] CCryptoBoringSSL
[451 / 1160] CCryptoBoringSSL
[453 / 1160] CCryptoBoringSSL
[454 / 1160] CCryptoBoringSSL
[456 / 1160] CCryptoBoringSSL
[459 / 1160] CCryptoBoringSSL
[462 / 1160] CCryptoBoringSSL
[465 / 1160] CCryptoBoringSSL
[469 / 1160] CCryptoBoringSSL
[470 / 1160] CCryptoBoringSSL
[473 / 1160] CCryptoBoringSSL
[474 / 1160] CCryptoBoringSSL
[478 / 1160] CCryptoBoringSSL
[479 / 1160] CCryptoBoringSSL
[482 / 1160] CCryptoBoringSSL
[485 / 1160] CCryptoBoringSSL
[487 / 1160] CCryptoBoringSSL
[490 / 1160] CCryptoBoringSSL
[495 / 1160] CCryptoBoringSSL
[500 / 1160] CCryptoBoringSSL
[507 / 1160] CCryptoBoringSSL
[511 / 1160] CCryptoBoringSSL
[519 / 1160] CCryptoBoringSSL
[520 / 1160] CCryptoBoringSSL
[522 / 1160] CCryptoBoringSSL
[524 / 1160] CCryptoBoringSSL
[525 / 1160] CCryptoBoringSSL
[528 / 1160] CCryptoBoringSSL
[530 / 1160] CCryptoBoringSSL
[532 / 1160] CCryptoBoringSSL
[534 / 1160] CCryptoBoringSSL
[535 / 1160] CCryptoBoringSSL
[538 / 1160] CCryptoBoringSSL
[539 / 1160] CCryptoBoringSSL
[542 / 1160] CCryptoBoringSSL
[545 / 1160] CCryptoBoringSSL
[546 / 1160] CCryptoBoringSSL
[548 / 1160] CCryptoBoringSSL
[549 / 1160] CCryptoBoringSSL
[551 / 1160] CCryptoBoringSSL
[552 / 1160] CCryptoBoringSSL
[554 / 1160] CCryptoBoringSSL
[558 / 1160] CCryptoBoringSSL
[560 / 1160] CCryptoBoringSSL
[563 / 1160] CCryptoBoringSSL
[567 / 1160] CCryptoBoringSSL
[574 / 1160] CCryptoBoringSSL
[580 / 1160] CCryptoBoringSSL
[581 / 1160] CCryptoBoringSSL
[586 / 1160] CCryptoBoringSSL
[588 / 1160] CCryptoBoringSSL
[590 / 1160] CCryptoBoringSSL
[591 / 1160] CCryptoBoringSSL
[594 / 1160] CCryptoBoringSSL
[596 / 1160] CCryptoBoringSSL
[598 / 1160] CCryptoBoringSSL
[601 / 1160] CCryptoBoringSSL
[604 / 1160] CCryptoBoringSSL
[610 / 1160] CCryptoBoringSSL
[616 / 1160] CCryptoBoringSSL
[621 / 1160] CCryptoBoringSSL
[625 / 1160] CCryptoBoringSSL
[628 / 1160] CCryptoBoringSSL
[631 / 1160] CCryptoBoringSSL
[632 / 1160] CCryptoBoringSSL
[634 / 1160] CCryptoBoringSSL
[638 / 1160] CCryptoBoringSSL
[640 / 1160] CCryptoBoringSSL
[641 / 1160] CCryptoBoringSSL
[643 / 1160] CCryptoBoringSSL
[648 / 1160] CryptoBoringWrapper
[655 / 1160] EventSource
[660 / 1163] ComplexModule
[662 / 1173] OrderedCollections
[664 / 1190] CCryptoBoringSSL
[666 / 1190] CCryptoBoringSSL
[669 / 1190] OrderedCollections
[670 / 1190] ComplexModule
[672 / 1190] ComplexModule
[678 / 1191] OrderedCollections
[679 / 1191] Crypto
[680 / 1191] Crypto
[681 / 1191] Crypto
[682 / 1191] Crypto
[683 / 1191] Crypto
[689 / 1192] Crypto
[691 / 1192] OrderedCollections
[693 / 1192] OrderedCollections
[698 / 1192] Crypto
[701 / 1192] ComplexModule
[702 / 1192] Numerics
[703 / 1192] Numerics
[706 / 1192] ArgumentParserToolInfo
[709 / 1193] RealModule
[713 / 1196] Numerics
[725 / 1217] Jinja
[728 / 1217] Jinja
[729 / 1217] Jinja
[732 / 1218] Jinja
[738 / 1218] ArgumentParser
[742 / 1218] Jinja-product
[743 / 1218] Jinja-product
[745 / 1218] Crypto
[749 / 1218] ArgumentParser
[750 / 1218] ArgumentParser-product
[751 / 1218] CCryptoBoringSSL
[752 / 1218] ArgumentParser-product
[753 / 1218] ArgumentParser
[754 / 1219] encuda-product
[759 / 1226] encuda-product
[759 / 1235] encuda-product
[762 / 1235] ArgumentParser
[764 / 1235] encuda-product
[767 / 1235] HuggingFace
[769 / 1235] HuggingFace
[770 / 1236] encuda-product
[770 / 1237] encuda-product
[774 / 1237] encuda-product
[777 / 1237] HuggingFace
[778 / 1238] HuggingFace
[778 / 1238] Gzip
[783 / 1238] ArgumentParser
[788 / 1238] Crypto
[791 / 1239] MLX
[793 / 1248] MLX
[793 / 1248] HuggingFace
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:
[1m/host/spi-builder-workspace/.build/checkouts/mlx-swift/Source/Cmlx/mlx/mlx/backend/cuda/cuda_utils.h:5:10: [0m[0;1;31mfatal error: [0m[1m'cublasLt.h' file not found[0m
5 | #include <cublasLt.h>[0m
| [0;1;32m ^~~~~~~~~~~~
[0m1 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