The Swift Package Index logo.Swift Package Index

Build Information

Failed to build mlx-swift-lm, reference 3.31.4 (bd4b74), with Swift 6.3 for Android on 16 Oct 2026 02:39:32 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-53886768-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:android-6.3-latest swift build --swift-sdk aarch64-unknown-linux-android28 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:         android
Swift version:             6.3
Building package at path:  $PWD
https://github.com/drewster99/mlx-swift-lm.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-53886768-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:android-6.3-latest swift build --swift-sdk aarch64-unknown-linux-android28 2>&1
android-6.3-latest: Pulling from saguaro1/spi-images
Digest: sha256:ec170ed262d75c9e928493cd00a486dad2d4f04db1b55d884efec7db42d0226b
Status: Image is up to date for registry.gitlab.com/saguaro1/spi-images:android-6.3-latest
Fetching https://github.com/ml-explore/mlx-swift
Fetching https://github.com/swiftlang/swift-syntax.git
[1/17176] Fetching mlx-swift
[15288/97953] Fetching mlx-swift, swift-syntax
Fetched https://github.com/ml-explore/mlx-swift from cache (4.57s)
Fetched https://github.com/swiftlang/swift-syntax.git from cache (4.59s)
Computing version for https://github.com/ml-explore/mlx-swift
Computed https://github.com/ml-explore/mlx-swift at 0.31.6 (4.80s)
Fetching https://github.com/apple/swift-numerics
Fetching https://github.com/apple/swift-argument-parser
[1/19114] Fetching swift-argument-parser
[19115/25870] Fetching swift-argument-parser, swift-numerics
Fetched https://github.com/apple/swift-numerics from cache (0.81s)
Fetched https://github.com/apple/swift-argument-parser from cache (0.81s)
Computing version for https://github.com/swiftlang/swift-syntax.git
Computed https://github.com/swiftlang/swift-syntax.git at 603.0.2 (1.78s)
Computing version for https://github.com/apple/swift-numerics
Computed https://github.com/apple/swift-numerics at 1.1.1 (0.13s)
Computing version for https://github.com/apple/swift-argument-parser
Computed https://github.com/apple/swift-argument-parser at 1.8.2 (0.14s)
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/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
Downloading package prebuilt https://download.swift.org/prebuilts/swift-syntax/603.0.2/swift-6.3.2-RELEASE-ubuntu_noble_x86_64-MacroSupport.tar.gz
Downloaded https://download.swift.org/prebuilts/swift-syntax/603.0.2/swift-6.3.2-RELEASE-ubuntu_noble_x86_64-MacroSupport.tar.gz (0.31s)
[0/9] Write sources
[3/9] Write swift-version-272D24FF697CF451.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] Emitting module ArgumentParser
[17/65] Compiling ArgumentParser Name.swift
[18/65] Compiling ArgumentParser Parsed.swift
[19/65] Compiling ArgumentParser ParsedValues.swift
[20/65] Compiling ArgumentParser ParserError.swift
[21/65] Compiling ArgumentParser SplitArguments.swift
[22/65] Compiling ArgumentParser DumpHelpGenerator.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 Mutex.swift
[30/65] Compiling ArgumentParser Platform.swift
[31/65] Compiling ArgumentParser SequenceExtensions.swift
[32/65] Compiling ArgumentParser StringExtensions.swift
[33/65] Compiling ArgumentParser SwiftExtensions.swift
[34/65] Compiling ArgumentParser Tree.swift
[35/65] Compiling ArgumentParser HelpCommand.swift
[36/65] Compiling ArgumentParser HelpGenerator.swift
[37/65] Compiling ArgumentParser MessageInfo.swift
[38/65] Compiling ArgumentParser UsageGenerator.swift
[39/65] Compiling ArgumentParser CollectionExtensions.swift
[40/65] Compiling ArgumentParser Foundation.swift
[41/65] Compiling ArgumentParser BashCompletionsGenerator.swift
[42/65] Compiling ArgumentParser CompletionsGenerator.swift
[43/65] Compiling ArgumentParser FishCompletionsGenerator.swift
[44/65] Compiling ArgumentParser ZshCompletionsGenerator.swift
[45/65] Compiling ArgumentParser Argument.swift
[46/65] Compiling ArgumentParser ArgumentDiscussion.swift
[47/65] Compiling ArgumentParser ArgumentHelp.swift
[48/65] Compiling ArgumentParser ArgumentVisibility.swift
[49/65] Compiling ArgumentParser CompletionKind.swift
[50/65] Compiling ArgumentParser Errors.swift
[51/65] Compiling ArgumentParser Flag.swift
[52/65] Compiling ArgumentParser NameSpecification.swift
[53/65] Compiling ArgumentParser Option.swift
[54/65] Compiling ArgumentParser OptionGroup.swift
[55/65] Compiling ArgumentParser ParsableCommand.swift
[56/65] Compiling ArgumentParser ArgumentDecoder.swift
[57/65] Compiling ArgumentParser ArgumentDefinition.swift
[58/65] Compiling ArgumentParser ArgumentSet.swift
[59/65] Compiling ArgumentParser CommandParser.swift
[60/65] Compiling ArgumentParser InputKey.swift
[61/65] Compiling ArgumentParser InputOrigin.swift
[62/66] Wrapping AST for ArgumentParser for debugging
[64/72] Compiling encuda encuda.swift
[65/72] Compiling encuda encuda-utils.swift
[66/72] Compiling encuda encuda-link.swift
[67/72] Compiling encuda encuda-compile.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
[1/1] Compiling plugin CudaBuild
[2/2] Compiling plugin GenerateManual
[3/3] Compiling plugin GenerateDoccReference
Building for debugging...
[3/391] Write sources
[19/391] Compiling version.cpp
[20/391] Compiling _NumericsShims _NumericsShims.c
[21/391] Write swift-version-272D24FF697CF451.txt
[22/391] Compiling utils.cpp
[23/402] Compiling scheduler.cpp
[25/404] Compiling MLXHuggingFaceMacros HuggingFaceIntegrationMacros.swift
[26/404] Emitting module MLXHuggingFaceMacros
[27/405] Wrapping AST for encuda for debugging
[28/405] Wrapping AST for MLXHuggingFaceMacros for debugging
[29/405] Wrapping AST for ArgumentParserToolInfo for debugging
[30/405] Write Objects.LinkFileList
[31/405] Wrapping AST for ArgumentParser for debugging
[32/405] Compiling linalg.cpp
[33/405] Write Objects.LinkFileList
[34/405] Compiling random.cpp
[35/405] Linking MLXHuggingFaceMacros-tool
[36/405] Linking encuda-tool
[38/405] Compiling RealModule Real.swift
[39/405] Compiling RealModule Float16+Real.swift
[40/405] Compiling RealModule RealFunctions.swift
[41/405] Compiling RealModule ElementaryFunctions.swift
[42/405] Compiling RealModule Float+Real.swift
[43/405] Compiling RealModule Float80+Real.swift
[44/406] Compiling RealModule RelaxedArithmetic.swift
[45/406] Emitting module RealModule
[46/406] Compiling RealModule AugmentedArithmetic.swift
[47/406] Compiling RealModule Double+Real.swift
[48/406] Compiling RealModule AlgebraicField.swift
[49/406] Compiling RealModule ApproximateEquality.swift
encuda/encuda-compile.swift:55: Fatal error: nvcc not found
*** Signal 4: Backtracing from 0x7e56fecb3d71... done ***
*** Program crashed: Illegal instruction at 0x00007e56fecb3d71 ***
Platform: x86_64 Linux (Ubuntu 24.04.5 LTS)
Thread 0 "encuda-tool" crashed:
  0               0x00007e56fecb3d71 _assertionFailure(_:_:file:line:flags:) + 225 in libswiftCore.so
  1 [ra]          0x00005890f5b4e988 Encuda.Compile.run() + 1415 in encuda-tool at /host/spi-builder-workspace/.build/checkouts/mlx-swift/Source/Encuda/encuda-compile.swift:55:21
  2 [ra] [thunk]  0x00005890f5b4a76d protocol witness for ParsableCommand.run() in conformance Encuda.Compile + 12 in encuda-tool at //<compiler-generated>
  3 [ra]          0x00005890f5aed325 static ParsableCommand.main(_:) + 532 in encuda-tool at /host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsable Types/ParsableCommand.swift:161:19
  4 [ra]          0x00005890f5aedc57 static ParsableCommand.main() + 38 in encuda-tool at /host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsable Types/ParsableCommand.swift:178:10
  5 [ra] [system] 0x00005890f5b5c03e static Encuda.$main() + 29 in encuda-tool at //<compiler-generated>
  6 [ra] [system] 0x00005890f5b5c149 encuda_main + 8 in encuda-tool at /host/spi-builder-workspace/.build/checkouts/mlx-swift/Source/Encuda/encuda.swift
  7 [ra]          0x00007e56fd5141ca <unknown> in libc.so.6
  8 [ra]          0x00007e56fd51428b <unknown> in libc.so.6
...
Registers:
rax 0x0000000000000000  0
rdx 0x0000000000000002  2
rcx 0x0000000000000001  1
rbx 0x000000058911287d  23774439549
rsi 0x8000646e756f6620  9223482462434190880
rdi 0x000058911287d140  a8 9d 0c ff 56 7e 00 00 31 00 00 00 00 00 00 00  ¨··ÿV~··1·······
rbp 0x00007ffd970a6760  20 74 0a 97 fd 7f 00 00 88 e9 b4 f5 90 58 00 00   t··ý····é´õ·X··
rsp 0x00007ffd970a66f0  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ················
 r8 0x0000589112861010  07 00 01 00 07 00 06 00 07 00 03 00 04 00 05 00  ················
 r9 0x0000000000000007  7
r10 0x000058911287d150  7d 28 11 89 05 00 00 00 68 82 12 00 77 20 56 9e  }(······h···w V·
r11 0x9e56207700128268  11409342401464140392
r12 0x0000000000000000  0
r13 0x00007ffd970a7118  f0 34 0a 97 fd 7f 00 00 00 00 00 00 00 00 00 00  ð4··ý···········
r14 0x00005890f5baab50  98 94 bb f5 90 58 00 00 f0 a7 bb f5 90 58 00 00  ··»õ·X··ð§»õ·X··
r15 0x00007e56ff14f000  e0 02 15 ff 56 7e 00 00 16 00 00 00 00 00 00 00  à··ÿV~··········
rip 0x00007e56fecb3d71  0f 0b 48 83 ec 08 48 8d 05 c2 be 30 00 48 8d 3d  ··H·ì·H··Â¾0·H·=
rflags 0x0000000000010206  PF
cs 0x0033  fs 0x0000  gs 0x0000
Images (18 omitted):
0x00005890f59fd000–0x00005890f5ba8e10 188ce303b6499cbae8b096deb2757309c42e5eab encuda-tool     /host/spi-builder-workspace/.build/x86_64-unknown-linux-gnu/debug/encuda-tool
0x00007e56fd4ea000–0x00007e56fd69a039 a4a7992a8e66555c8141ab2a08a8465ff6e0ea65 libc.so.6       /usr/lib/x86_64-linux-gnu/libc.so.6
0x00007e56fe9bb000–0x00007e56fef8e470 7338a3c81c5415f0377dee2eec7895c59ddff670 libswiftCore.so /root/.local/share/swiftly/toolchains/6.3.2/usr/lib/swift/linux/libswiftCore.so
Backtrace took 0.08s
[50/407] Compiling ternary.cu to ternary.cpp
[50/407] Compiling graph_utils.cpp
[50/407] Compiling no_gguf.cpp
[50/407] Compiling load.cpp
[50/407] Compiling ops.cpp
[50/407] Compiling safetensors.cpp
[50/407] Compiling primitives.cpp
[50/407] Compiling transforms.cpp
BUILD FAILURE 6.3 android