The Swift Package Index logo.Swift Package Index

Build Information

Failed to build mlx-swift-lm, reference 3.32.3 (3b339a), with Swift 6.3 for Linux on 3 Oct 2026 16:33:11 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-54344844-2":/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.3-latest swift build --triple x86_64-unknown-linux-gnu 2>&1

Build 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.3
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-54344844-2":/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.3-latest swift build --triple x86_64-unknown-linux-gnu 2>&1
basic-6.3-latest: Pulling from saguaro1/spi-images
Digest: sha256:c577f8f8f4df4f423827bf5e7d96027716bb7030ef75b2fd4a15f7fb0043ce6d
Status: Image is up to date for registry.gitlab.com/saguaro1/spi-images:basic-6.3-latest
Fetching https://github.com/swiftlang/swift-syntax.git
Fetching https://github.com/ml-explore/mlx-swift
[1/17040] Fetching mlx-swift
[15337/97351] Fetching mlx-swift, swift-syntax
Fetched https://github.com/ml-explore/mlx-swift from cache (4.73s)
Fetched https://github.com/swiftlang/swift-syntax.git from cache (4.75s)
Computing version for https://github.com/ml-explore/mlx-swift
Computed https://github.com/ml-explore/mlx-swift at 0.32.3 (5.71s)
Fetching https://github.com/apple/swift-argument-parser
Fetching https://github.com/apple/swift-numerics
[1/6658] Fetching swift-numerics
[6460/25684] Fetching swift-numerics, swift-argument-parser
Fetched https://github.com/apple/swift-numerics from cache (0.79s)
Fetched https://github.com/apple/swift-argument-parser from cache (0.79s)
Computing version for https://github.com/swiftlang/swift-syntax.git
Computed https://github.com/swiftlang/swift-syntax.git at 603.0.2 (2.20s)
Computing version for https://github.com/apple/swift-numerics
Computed https://github.com/apple/swift-numerics at 1.1.1 (0.15s)
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/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/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-numerics
Working copy of https://github.com/apple/swift-numerics resolved at 1.1.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
Downloading package prebuilt https://download.swift.org/prebuilts/swift-syntax/603.0.2/swift-6.3.2-RELEASE-ubuntu_jammy_x86_64-MacroSupport.tar.gz
Downloaded https://download.swift.org/prebuilts/swift-syntax/603.0.2/swift-6.3.2-RELEASE-ubuntu_jammy_x86_64-MacroSupport.tar.gz (0.21s)
[0/9] Write sources
[3/9] Write swift-version-24593BA9C3E375BF.txt
[5/11] Emitting module ArgumentParserToolInfo
[6/11] Compiling ArgumentParserToolInfo ToolInfo.swift
[7/12] Wrapping AST for ArgumentParserToolInfo for debugging
[9/59] Compiling ArgumentParser ParentCommand.swift
[10/59] Compiling ArgumentParser AsyncParsableCommand.swift
[11/59] Compiling ArgumentParser CommandConfiguration.swift
[12/59] Compiling ArgumentParser CommandGroup.swift
[13/59] Compiling ArgumentParser EnumerableFlag.swift
[14/59] Compiling ArgumentParser ExpressibleByArgument.swift
[15/59] Compiling ArgumentParser ParsableArguments.swift
[16/65] Compiling ArgumentParser ParsableCommand.swift
[17/65] Compiling ArgumentParser ArgumentDecoder.swift
[18/65] Compiling ArgumentParser ArgumentDefinition.swift
[19/65] Compiling ArgumentParser ArgumentSet.swift
[20/65] Compiling ArgumentParser CommandParser.swift
[21/65] Compiling ArgumentParser InputKey.swift
[22/65] Compiling ArgumentParser InputOrigin.swift
[23/65] Compiling ArgumentParser AsyncCompletionsValidator.swift
[24/65] Compiling ArgumentParser CodingKeyValidator.swift
[25/65] Compiling ArgumentParser NonsenseFlagsValidator.swift
[26/65] Compiling ArgumentParser ParsableArgumentsValidation.swift
[27/65] Compiling ArgumentParser PositionalArgumentsValidator.swift
[28/65] Compiling ArgumentParser UniqueNamesValidator.swift
[29/65] Compiling ArgumentParser ArgumentVisibility.swift
[30/65] Compiling ArgumentParser CompletionKind.swift
[31/65] Compiling ArgumentParser Errors.swift
[32/65] Compiling ArgumentParser Flag.swift
[33/65] Compiling ArgumentParser NameSpecification.swift
[34/65] Compiling ArgumentParser Option.swift
[35/65] Compiling ArgumentParser OptionGroup.swift
[36/65] Compiling ArgumentParser Mutex.swift
[37/65] Compiling ArgumentParser Platform.swift
[38/65] Compiling ArgumentParser SequenceExtensions.swift
[39/65] Compiling ArgumentParser StringExtensions.swift
[40/65] Compiling ArgumentParser SwiftExtensions.swift
[41/65] Compiling ArgumentParser Tree.swift
[42/65] Compiling ArgumentParser Name.swift
[43/65] Compiling ArgumentParser Parsed.swift
[44/65] Compiling ArgumentParser ParsedValues.swift
[45/65] Compiling ArgumentParser ParserError.swift
[46/65] Compiling ArgumentParser SplitArguments.swift
[47/65] Compiling ArgumentParser DumpHelpGenerator.swift
[48/65] Compiling ArgumentParser HelpCommand.swift
[49/65] Compiling ArgumentParser HelpGenerator.swift
[50/65] Compiling ArgumentParser MessageInfo.swift
[51/65] Compiling ArgumentParser UsageGenerator.swift
[52/65] Compiling ArgumentParser CollectionExtensions.swift
[53/65] Compiling ArgumentParser Foundation.swift
[54/65] Compiling ArgumentParser BashCompletionsGenerator.swift
[55/65] Compiling ArgumentParser CompletionsGenerator.swift
[56/65] Compiling ArgumentParser FishCompletionsGenerator.swift
[57/65] Compiling ArgumentParser ZshCompletionsGenerator.swift
[58/65] Compiling ArgumentParser Argument.swift
[59/65] Compiling ArgumentParser ArgumentDiscussion.swift
[60/65] Compiling ArgumentParser ArgumentHelp.swift
[61/65] Emitting module ArgumentParser
[62/66] Wrapping AST for ArgumentParser for debugging
[64/72] Compiling encuda encuda-utils.swift
[65/72] Compiling encuda encuda.swift
[66/72] Compiling encuda encuda-compile.swift
[67/72] Compiling encuda encuda-link.swift
[68/72] Emitting module encuda
[69/72] Compiling encuda encuda-error.swift
[70/73] Wrapping AST for encuda for debugging
[71/73] Write Objects.LinkFileList
[72/73] Linking encuda-tool
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
[1/1] Compiling plugin CudaBuild
[2/2] Compiling plugin GenerateManual
[3/3] Compiling plugin GenerateDoccReference
Building for debugging...
[3/835] Write sources
[6/835] Compiling cLogSupport cLogSupport.c
[7/835] Write sources
[8/835] Compiling cLogSupport cLogSupport.c
[9/835] Write sources
[13/835] Compiling _NumericsShims _NumericsShims.c
[14/835] Write sources
[15/835] Compiling _NumericsShims _NumericsShims.c
[16/835] Write sources
[22/835] Write swift-version-24593BA9C3E375BF.txt
[23/835] Write sources
[34/859] Compiling RealModule RealFunctions.swift
[36/861] Compiling RealModule RelaxedArithmetic.swift
[38/861] Compiling RealModule Real.swift
[39/861] Compiling RealModule AlgebraicField.swift
[40/861] Compiling RealModule ApproximateEquality.swift
[41/861] Emitting module MLXHuggingFaceMacros
[42/861] Compiling MLXHuggingFaceMacros HuggingFaceIntegrationMacros.swift
[43/862] Compiling RealModule AugmentedArithmetic.swift
[44/862] Compiling RealModule Double+Real.swift
[48/862] Compiling RealModule Float80+Real.swift
[49/862] Compiling RealModule Real.swift
[50/862] Compiling RealModule ElementaryFunctions.swift
[51/862] Compiling RealModule Float+Real.swift
[52/862] Compiling RealModule Float16+Real.swift
[58/862] Compiling RealModule Float80+Real.swift
[59/862] Emitting module RealModule
[62/864] Compiling recursion_guard.cc
[63/864] Wrapping AST for MLXHuggingFaceMacros for debugging
[64/864] Compiling MLXCXGrammar shim.cc
[65/864] Write Objects.LinkFileList
[66/864] Compiling logging.cc
[67/864] Compiling regex_converter.cc
[68/864] Linking MLXHuggingFaceMacros-tool
[69/864] Compiling testing.cc
[70/864] Compiling tokenizer_info.cc
[71/864] Compiling compiled_grammar.cc
[72/864] Compiling grammar_printer.cc
[73/864] Compiling grammar_parser.cc
[74/864] Compiling json_schema_converter.cc
[75/864] Compiling MLXCXGrammar grammar_functor_wrapper.cc
[76/864] Compiling config.cc
[77/864] Compiling grammar_matcher.cc
[78/864] Compiling tokenizer_info.cc
[79/864] Compiling structural_tag.cc
[80/864] Compiling recursion_guard.cc
[81/864] Compiling fsm_builder.cc
[82/864] Compiling logging.cc
[83/864] Compiling testing.cc
[84/864] Compiling grammar_compiler.cc
[85/864] Compiling earley_parser.cc
[86/864] Compiling regex_converter.cc
[87/864] Compiling grammar.cc
[88/864] Compiling fsm.cc
[89/864] Compiling fsm_builder.cc
[90/864] Compiling grammar_printer.cc
[91/864] Compiling grammar_parser.cc
[92/864] Compiling grammar_matcher.cc
[93/864] Compiling grammar.cc
[94/864] Compiling config.cc
[95/864] Compiling json_schema_converter.cc
[96/864] Write sources
[102/875] Compiling ComplexModule Complex+Hashable.swift
[103/875] Compiling ComplexModule Complex+IntegerLiteral.swift
[103/876] Compiling MLXCXGrammar shim.cc
[105/887] Compiling ComplexModule Polar.swift
[106/887] Compiling ComplexModule Complex+Numeric.swift
[107/887] Emitting module ComplexModule
[108/887] Compiling ComplexModule Scale.swift
[109/887] Compiling ComplexModule Complex+StringConvertible.swift
[110/887] Compiling ComplexModule Complex.swift
[111/887] Compiling ComplexModule Complex+Numeric.swift
[112/888] Compiling ComplexModule Complex+Hashable.swift
[113/888] Compiling ComplexModule Complex+IntegerLiteral.swift
[114/888] Compiling ComplexModule Scale.swift
[115/888] Compiling ComplexModule Complex+StringConvertible.swift
[116/888] Compiling ComplexModule Polar.swift
[117/888] Compiling ComplexModule Complex.swift
[118/888] Compiling ComplexModule Complex+Codable.swift
[119/888] Compiling ComplexModule Complex+ElementaryFunctions.swift
[119/888] Compiling fsm.cc
[120/888] Compiling grammar_compiler.cc
[121/888] Compiling version.cpp
[125/888] Compiling ComplexModule Complex+AdditiveArithmetic.swift
[126/888] Compiling ComplexModule Complex+AlgebraicField.swift
[130/889] Emitting module ComplexModule
[132/892] Compiling Numerics Numerics.swift
[133/892] Emitting module Numerics
[136/895] Compiling Numerics Numerics.swift
[137/896] Compiling earley_parser.cc
[138/896] Compiling structural_tag.cc
[139/896] Compiling MLXCXGrammar grammar_functor_wrapper.cc
[140/896] Compiling stream.cpp
[141/896] Compiling transforms.cpp
[142/896] Compiling utils.cpp
[143/896] Compiling scheduler.cpp
[144/896] Compiling linalg.cpp
[145/896] Compiling compiled_grammar.cc
[146/896] Compiling random.cpp
[147/896] Compiling no_gguf.cpp
[148/896] Compiling graph_utils.cpp
[149/896] Compiling safetensors.cpp
[150/896] Compiling dtype_utils.cpp
[151/896] Compiling dtype.cpp
[152/896] Compiling fast.cpp
[153/896] Compiling ops.cpp
[154/896] Compiling load.cpp
[155/896] Compiling fft.cpp
[156/896] Compiling utils.cpp
[157/896] Compiling primitives.cpp
[158/896] Compiling einsum.cpp
[159/896] Compiling ops.cpp
[160/896] Compiling device.cpp
[161/896] Compiling no_nccl.cpp
[162/896] Compiling distributed.cpp
[163/896] Compiling primitives.cpp
[164/896] Compiling no_mpi.cpp
[165/896] Compiling no_jaccl.cpp
[166/896] Compiling no_metal.cpp
[167/896] Compiling primitives.cpp
[168/896] Compiling compile.cpp
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: error: 'cuda.h' file not found with <angled> include; use "quotes" instead
    5 | #include <cuda.h>
      |          ^~~~~~~~
      |          "cuda.h"
/host/spi-builder-workspace/.build/checkouts/mlx-swift/Source/Cmlx/mlx/mlx/backend/cuda/cuda_utils.h:6:10: fatal error: 'cuda_runtime.h' file not found
    6 | #include <cuda_runtime.h>
      |          ^~~~~~~~~~~~~~~~
2 errors generated.
[169/896] Compiling worker.cpp
In file included from /host/spi-builder-workspace/.build/checkouts/mlx-swift/Source/Cmlx/mlx/mlx/backend/cuda/scaled_dot_product_attention.cpp:3:
In file included from /host/spi-builder-workspace/.build/checkouts/mlx-swift/Source/Cmlx/mlx/mlx/backend/cuda/cudnn_utils.h:8:
/host/spi-builder-workspace/.build/checkouts/mlx-swift/Source/Cmlx/mlx/mlx/backend/cuda/cuda_utils.h:5:10: error: 'cuda.h' file not found with <angled> include; use "quotes" instead
    5 | #include <cuda.h>
      |          ^~~~~~~~
      |          "cuda.h"
[169/896] Compiling scaled_dot_product_attention.cpp
[169/896] Compiling utils.cpp
[169/896] Compiling slicing.cpp
[169/896] Compiling copy.cpp
[169/896] Compiling slicing.cpp
[169/896] Compiling export.cpp
[169/896] Compiling ring.cpp
BUILD FAILURE 6.3 linux