Build Information
Failed to build mlx-swift-lm, reference 3.32.3 (3b339a), with Swift 6.4 for Linux on 3 Oct 2026 16:41:27 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-54344843-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:basic-6.4-latest swift build --triple x86_64-unknown-linux-gnu 2>&1Build Log
========================================
RunAll
========================================
Builder version: 5.1.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/ml-explore/mlx-swift-lm.git
Reference: 3.32.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.32.3 -> FETCH_HEAD
HEAD is now at 3b339ad adjustments for running tests on NAX/TF32 hardware (#649)
Cloned https://github.com/ml-explore/mlx-swift-lm.git
Revision (git rev-parse @):
3b339ad6e3b3f44c8121ecff5131c7fd55e075e6
SPI manifest file found: $PWD/.spi.yml
SUCCESS checkout https://github.com/ml-explore/mlx-swift-lm.git at 3.32.3
========================================
Build
========================================
Selected platform: linux
Swift version: 6.4
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-54344843-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: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/ml-explore/mlx-swift
Fetching https://github.com/swiftlang/swift-syntax.git
[1/17040] Fetching mlx-swift
[17041/97351] Fetching mlx-swift, swift-syntax
Fetched https://github.com/ml-explore/mlx-swift (5.06s)
Fetched https://github.com/swiftlang/swift-syntax.git (5.08s)
Computing version for https://github.com/ml-explore/mlx-swift
Computed https://github.com/ml-explore/mlx-swift at 0.32.3 (5.50s)
Fetching https://github.com/apple/swift-argument-parser
Fetching https://github.com/apple/swift-numerics
[1/19026] Fetching swift-argument-parser
[2/25684] Fetching swift-argument-parser, swift-numerics
Fetched https://github.com/apple/swift-numerics (0.82s)
[11606/19026] Fetching swift-argument-parser
Fetched https://github.com/apple/swift-argument-parser (1.15s)
Computing version for https://github.com/swiftlang/swift-syntax.git
Computed https://github.com/swiftlang/swift-syntax.git at 603.0.2 (3.22s)
Computing version for https://github.com/apple/swift-numerics
Computed https://github.com/apple/swift-numerics at 1.1.1 (0.31s)
Computing version for https://github.com/apple/swift-argument-parser
Computed https://github.com/apple/swift-argument-parser at 1.8.2 (0.35s)
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/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.32.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
warning: 'spi-builder-workspace': found 1 file(s) which are unhandled; explicitly declare them as resources or exclude from the target
/host/spi-builder-workspace/Libraries/MLXFoundationModels/README.md
warning: 'spi-builder-workspace': found 1 file(s) which are unhandled; explicitly declare them as resources or exclude from the target
/host/spi-builder-workspace/Libraries/MLXGuidedGeneration/README.md
Building for debugging...
[Computing dependencies]
[Constructing description]
[Pre-planning 1 / 1643]
[Planning 330 / 1643]
[Planning 816 / 1643]
[Planning 1361 / 1643]
[Planning 1543 / 1643]
[Planning deferred tasks]
[Constructing 35 / 3757]
[Constructing 2120 / 3757]
[Starting]
[6 / 938] MLX-product
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/dot.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/searchsorted.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'
[129 / 938] SwiftDiagnostics
[266 / 941]
[277 / 953] _NumericsShims
[280 / 953] SwiftSyntax510
[305 / 956] SwiftSyntax603
[311 / 957] RealModule
[314 / 966] SwiftSyntax509
[316 / 966] SwiftSyntax509
[327 / 967] SwiftSyntax
[331 / 968] SwiftSyntax600
[332 / 969] SwiftSyntax600
[339 / 970] SwiftSyntax509
[347 / 971] MLXCXGrammar
[348 / 972] RealModule
[350 / 972] MLXCXGrammar
[351 / 973] MLXCXGrammar
[352 / 973] MLXCXGrammar
[354 / 973] MLXCXGrammar
[356 / 973] MLXCXGrammar
[357 / 973] MLXCXGrammar
[359 / 973] MLXCXGrammar
[360 / 973] MLXCXGrammar
[361 / 973] MLXCXGrammar
[367 / 973] SwiftSyntax601
[373 / 976] ArgumentParserToolInfo
[374 / 976] ArgumentParserToolInfo
[381 / 986] SwiftSyntax
[383 / 987] SwiftSyntax
[383 / 987] MLXCXGrammar
[385 / 987] SwiftSyntax
[385 / 987] MLXCXGrammar
[387 / 987] SwiftSyntax
[388 / 987] MLXCXGrammar
[389 / 987] SwiftSyntax
[389 / 987] MLXCXGrammar
[392 / 987] SwiftSyntax509
[394 / 997] MLXCXGrammar
[396 / 997] ComplexModule
[402 / 997] Numerics
[403 / 997] ComplexModule
[406 / 997] ComplexModule
[407 / 997]
[410 / 1000] Numerics
[411 / 1000] Numerics
[418 / 1002] SwiftSyntax
[421 / 1012] ArgumentParser
[424 / 1012] ComplexModule
[431 / 1012] ArgumentParser
[432 / 1012] ArgumentParser-product
[434 / 1012] SwiftSyntax
[435 / 1012] ArgumentParser
[440 / 1012] encuda-product
[443 / 1020] SwiftParser
[444 / 1021] SwiftParser
[445 / 1029] ArgumentParser
[448 / 1030] encuda-product
[449 / 1030] encuda-product
[452 / 1030] SwiftParser
[453 / 1030] SwiftParser
[454 / 1031] encuda-product
[456 / 1031] encuda-product
[458 / 1031] SwiftParser
[466 / 1031] SwiftParser
[467 / 1031] ArgumentParser
[469 / 1031]
[472 / 1043] SwiftBasicFormat
[472 / 1049] SwiftParser
[475 / 1049] SwiftDiagnostics
[477 / 1049] SwiftDiagnostics
[484 / 1049] SwiftBasicFormat
[488 / 1049] SwiftOperators
[491 / 1049] SwiftDiagnostics
[492 / 1049] SwiftBasicFormat
[494 / 1050] SwiftDiagnostics
[496 / 1050] SwiftDiagnostics
[498 / 1050] SwiftBasicFormat
[499 / 1050] SwiftParserDiagnostics
[502 / 1060] SwiftParserDiagnostics
[503 / 1061] SwiftParserDiagnostics
[504 / 1061] SwiftBasicFormat
[504 / 1062] SwiftParserDiagnostics
[507 / 1062] SwiftParserDiagnostics
[509 / 1062] SwiftParserDiagnostics
[513 / 1062] SwiftParserDiagnostics
[514 / 1062] SwiftSyntaxBuilder
[517 / 1062] SwiftParser
[524 / 1082] SwiftSyntaxBuilder
[525 / 1082] SwiftOperators
[527 / 1082] SwiftOperators
[537 / 1082] SwiftSyntaxBuilder
[539 / 1082] SwiftSyntaxBuilder
[541 / 1083] SwiftSyntaxBuilder
[545 / 1083] SwiftParserDiagnostics
[549 / 1083] SwiftOperators
[551 / 1083] SwiftIfConfig
[554 / 1093] SwiftIfConfig
[555 / 1093] SwiftIfConfig
[556 / 1093] SwiftIfConfig
[559 / 1094] SwiftIfConfig
[566 / 1094] SwiftSyntaxBuilder
[568 / 1095] SwiftSyntaxMacros
[572 / 1096] ArgumentParser-product
[574 / 1105] SwiftSyntaxMacros
[576 / 1105] SwiftSyntaxMacros
[579 / 1105] SwiftSyntaxMacros
[586 / 1105] SwiftSyntaxMacros-product
[592 / 1115] SwiftSyntaxMacroExpansion
[593 / 1115] SwiftSyntaxMacroExpansion
[596 / 1117] SwiftSyntaxMacroExpansion
[597 / 1117] SwiftSyntaxMacros
[599 / 1117] SwiftIfConfig
[608 / 1127] SwiftIfConfig
[611 / 1127] SwiftCompilerPluginMessageHandling
[612 / 1127] SwiftCompilerPluginMessageHandling
[613 / 1127] SwiftCompilerPluginMessageHandling
[614 / 1127] SwiftCompilerPluginMessageHandling
[616 / 1127] SwiftCompilerPluginMessageHandling
[623 / 1130]
[630 / 1131]
[632 / 1140] MLX
[633 / 1141] SwiftCompilerPlugin
[635 / 1141] SwiftCompilerPlugin
[637 / 1141] MLX
[638 / 1142] SwiftSyntaxMacroExpansion
[643 / 1143] SwiftCompilerPluginMessageHandling
[645 / 1143] MLX
[646 / 1143] MLX
[652 / 1144] MLXNN
[654 / 1153] MLXNN
[655 / 1153] MLXNN
[656 / 1153] MLXNN
[657 / 1153] MLXNN
[659 / 1153] MLXNN
[663 / 1153] MLXNN
[665 / 1153] MLXOptimizers
[666 / 1153] MLXNN-product
[669 / 1154] MLX
encuda/encuda-compile.swift:55: Fatal error: nvcc not found
*** Signal 4: Backtracing from 0x7e10a458414f... done ***
*** Program crashed: Illegal instruction at 0x00007e10a458414f ***
Platform: x86_64 Linux (Ubuntu 22.04.5 LTS)
Thread 0 "encuda" crashed:
0 0x00007e10a458414f _assertionFailure(_:_:file:line:flags:) + 303 in libswiftCore.so
1 [ra] 0x00006191d7d7faa1 Encuda.Compile.run() + 1360 in encuda at /host/spi-builder-workspace/.build/checkouts/mlx-swift/Source/Encuda/encuda-compile.swift:55:21
2 [ra] [thunk] 0x00006191d7d7b97d protocol witness for ParsableCommand.run() in conformance Encuda.Compile + 12 in encuda at //<compiler-generated>
3 [ra] 0x00006191d7e472e5 static ParsableCommand.main(_:) + 532 in encuda at /host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsable Types/ParsableCommand.swift:161:19
4 [ra] 0x00006191d7e47c37 static ParsableCommand.main() + 38 in encuda at /host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsable Types/ParsableCommand.swift:178:10
5 [ra] [system] 0x00006191d7d8d28e static Encuda.$main() + 29 in encuda at //<compiler-generated>
6 [ra] [system] 0x00006191d7d8d399 main + 8 in encuda at /host/spi-builder-workspace/.build/checkouts/mlx-swift/Source/Encuda/encuda.swift
Registers:
rax 0x0000000000000000 0
rdx 0x0000000000000002 2
rcx 0x0000000000000001 1
rbx 0x00006197f07e7355 107305202774869
rsi 0x8000646e756f6620 9223482462434190880
rdi 0x00006191e95fb010 07 00 07 00 07 00 06 00 07 00 07 00 07 00 07 00 ················
rbp 0x00007ffee58fc440 c0 d0 8f e5 fe 7f 00 00 a1 fa d7 d7 91 61 00 00 Àзåþ···¡ú××·a··
rsp 0x00007ffee58fc420 6e 76 63 63 20 6e 6f 74 00 00 00 00 00 00 00 00 nvcc not········
r8 0x00006191e9615740 55 73 7e f0 97 61 00 00 42 5f e6 ed 4c 59 90 ba Us~ð·a··B_æíLY·º
r9 0x00007ffee58fc190 46 61 74 61 6c 20 65 72 72 6f 72 3a 20 6e 76 63 Fatal error: nvc
r10 0x0000000000000000 0
r11 0xba90594cede65f42 13443343074644614978
r12 0x0000000000000000 0
r13 0x00007ffee58fcdb8 10 93 8f e5 fe 7f 00 00 00 00 00 00 00 00 00 00 ···åþ···········
r14 0x00006191d7f04b40 94 42 f1 d7 91 61 00 00 1c 32 f1 d7 91 61 00 00 ·Bñ×·a···2ñ×·a··
r15 0x00007e10a4a1c040 e0 d2 a1 a4 10 7e 00 00 17 00 00 00 00 00 00 00 àÒ¡¤·~··········
rip 0x00007e10a458414f 0f 0b 48 83 ec 08 48 8d 05 d4 54 30 00 48 8d 3d ··H·ì·H··ÔT0·H·=
rflags 0x0000000000010202
cs 0x0033 fs 0x0000 gs 0x0000
Images (20 omitted):
0x00006191d7d16000–0x00006191d7f03a38 d2c99f6018155cae731a747e3b417cc863c31228 encuda /host/spi-builder-workspace/.build/out/Products/Debug-linux-x86_64/encuda
0x00007e10a427a000–0x00007e10a4856fc8 140049ce7099ab6272ad992fdaa68c2aeeadee67 libswiftCore.so /usr/lib/swift/linux/libswiftCore.so
Backtrace took 0.17s
error: CustomTask Compiling\ ternary.cu\ to\ ternary.cpp 9fd6877fd259c433fd123230ce0bb2d8770ef268bd1bd32109f9671c9bc0f6b7 failed with a nonzero exit code. Command line: cd /host/spi-builder-workspace/.build/checkouts/mlx-swift
/host/spi-builder-workspace/.build/out/Products/Debug-linux-x86_64/encuda compile --std c++20 --incremental --clangpp /usr/bin/clang++ -I /host/spi-builder-workspace/.build/checkouts/mlx-swift/Source/Cmlx -I /host/spi-builder-workspace/.build/checkouts/mlx-swift/Source/Cmlx/mlx -I /host/spi-builder-workspace/.build/checkouts/mlx-swift/Source/Cmlx/mlx-c -I /host/spi-builder-workspace/.build/checkouts/mlx-swift/Source/Cmlx/json/single_include/nlohmann -I /host/spi-builder-workspace/.build/checkouts/mlx-swift/Source/Cmlx/fmt/include /host/spi-builder-workspace/.build/checkouts/mlx-swift/Source/Cmlx/mlx/mlx/backend/cuda/ternary.cu -o /host/spi-builder-workspace/.build/plugins/outputs/mlx-swift/Cmlx/destination/CudaBuild/mlx/mlx/backend/cuda/ternary.cpp
error: Build failed
BUILD FAILURE 6.4 linux