The Swift Package Index logo.Swift Package Index

Build Information

Failed to build mlx-swift, reference main (09051e), with Swift 6.3 for Android on 16 Oct 2026 03:06:25 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-53886768-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: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.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/drewster99/mlx-swift
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at 09051ed Add global scale support to quantized layers (#426)
Submodule path 'Source/Cmlx/mlx': checked out 'ce45c52505c8158ea48d2a54e8caae05efd86bfe'
Submodule path 'Source/Cmlx/mlx-c': checked out '0726ca922fc902c4c61ef9c27d94132be418e945'
Submodule 'submodules/mlx' (https://github.com/ml-explore/mlx) registered for path 'Source/Cmlx/mlx'
Submodule 'submodules/mlx-c' (https://github.com/ml-explore/mlx-c) registered for path 'Source/Cmlx/mlx-c'
Cloning into '/host/spi-builder-workspace/Source/Cmlx/mlx'...
Cloning into '/host/spi-builder-workspace/Source/Cmlx/mlx-c'...
Cloned https://github.com/drewster99/mlx-swift.git
Revision (git rev-parse @):
09051ed1986b6f2c69b6fda4e32ca42dd7dcdec3
SPI manifest file found: $PWD/.spi.yml
SUCCESS checkout https://github.com/drewster99/mlx-swift.git at main
========================================
Build
========================================
Selected platform:         android
Swift version:             6.3
Building package at path:  $PWD
https://github.com/drewster99/mlx-swift.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-53886768-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: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/apple/swift-argument-parser
Fetching https://github.com/apple/swift-numerics
[1/6756] Fetching swift-numerics
[6757/25870] Fetching swift-numerics, swift-argument-parser
Fetched https://github.com/apple/swift-numerics from cache (0.59s)
[383/19114] Fetching swift-argument-parser
Fetched https://github.com/apple/swift-argument-parser from cache (0.89s)
Computing version for https://github.com/apple/swift-numerics
Computed https://github.com/apple/swift-numerics at 1.1.1 (1.05s)
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/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/apple/swift-numerics
Working copy of https://github.com/apple/swift-numerics resolved at 1.1.1
[0/9] Write sources
[3/9] Write swift-version-272D24FF697CF451.txt
[5/11] Compiling ArgumentParserToolInfo ToolInfo.swift
[6/11] Emitting module ArgumentParserToolInfo
[7/12] Wrapping AST for ArgumentParserToolInfo for debugging
[9/59] Emitting module ArgumentParser
[10/65] Compiling ArgumentParser ParentCommand.swift
[11/65] Compiling ArgumentParser AsyncParsableCommand.swift
[12/65] Compiling ArgumentParser CommandConfiguration.swift
[13/65] Compiling ArgumentParser CommandGroup.swift
[14/65] Compiling ArgumentParser EnumerableFlag.swift
[15/65] Compiling ArgumentParser ExpressibleByArgument.swift
[16/65] Compiling ArgumentParser ParsableArguments.swift
[17/65] Compiling ArgumentParser BashCompletionsGenerator.swift
[18/65] Compiling ArgumentParser CompletionsGenerator.swift
[19/65] Compiling ArgumentParser FishCompletionsGenerator.swift
[20/65] Compiling ArgumentParser ZshCompletionsGenerator.swift
[21/65] Compiling ArgumentParser Argument.swift
[22/65] Compiling ArgumentParser ArgumentDiscussion.swift
[23/65] Compiling ArgumentParser ArgumentHelp.swift
[24/65] Compiling ArgumentParser ArgumentVisibility.swift
[25/65] Compiling ArgumentParser CompletionKind.swift
[26/65] Compiling ArgumentParser Errors.swift
[27/65] Compiling ArgumentParser Flag.swift
[28/65] Compiling ArgumentParser NameSpecification.swift
[29/65] Compiling ArgumentParser Option.swift
[30/65] Compiling ArgumentParser OptionGroup.swift
[31/65] Compiling ArgumentParser AsyncCompletionsValidator.swift
[32/65] Compiling ArgumentParser CodingKeyValidator.swift
[33/65] Compiling ArgumentParser NonsenseFlagsValidator.swift
[34/65] Compiling ArgumentParser ParsableArgumentsValidation.swift
[35/65] Compiling ArgumentParser PositionalArgumentsValidator.swift
[36/65] Compiling ArgumentParser UniqueNamesValidator.swift
[37/65] Compiling ArgumentParser Name.swift
[38/65] Compiling ArgumentParser Parsed.swift
[39/65] Compiling ArgumentParser ParsedValues.swift
[40/65] Compiling ArgumentParser ParserError.swift
[41/65] Compiling ArgumentParser SplitArguments.swift
[42/65] Compiling ArgumentParser DumpHelpGenerator.swift
[43/65] Compiling ArgumentParser Mutex.swift
[44/65] Compiling ArgumentParser Platform.swift
[45/65] Compiling ArgumentParser SequenceExtensions.swift
[46/65] Compiling ArgumentParser StringExtensions.swift
[47/65] Compiling ArgumentParser SwiftExtensions.swift
[48/65] Compiling ArgumentParser Tree.swift
[49/65] Compiling ArgumentParser HelpCommand.swift
[50/65] Compiling ArgumentParser HelpGenerator.swift
[51/65] Compiling ArgumentParser MessageInfo.swift
[52/65] Compiling ArgumentParser UsageGenerator.swift
[53/65] Compiling ArgumentParser CollectionExtensions.swift
[54/65] Compiling ArgumentParser Foundation.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-link.swift
[66/72] Compiling encuda encuda-utils.swift
[67/72] Compiling encuda encuda-compile.swift
[68/72] Compiling encuda encuda-error.swift
[69/72] Emitting module encuda
[70/73] Wrapping AST for encuda for debugging
[71/73] Write Objects.LinkFileList
[72/73] Linking encuda-tool
warning: 'spi-builder-workspace': found 3 file(s) which are unhandled; explicitly declare them as resources or exclude from the target
    /host/spi-builder-workspace/Source/Examples/Example1.swift
    /host/spi-builder-workspace/Source/Examples/CustomFunctionExampleSimple.swift
    /host/spi-builder-workspace/Source/Examples/CustomFunctionExample.swift
warning: 'spi-builder-workspace': found 3 file(s) which are unhandled; explicitly declare them as resources or exclude from the target
    /host/spi-builder-workspace/Source/Examples/CustomFunctionExample.swift
    /host/spi-builder-workspace/Source/Examples/Tutorial.swift
    /host/spi-builder-workspace/Source/Examples/CustomFunctionExampleSimple.swift
warning: 'spi-builder-workspace': found 3 file(s) which are unhandled; explicitly declare them as resources or exclude from the target
    /host/spi-builder-workspace/Source/Examples/CustomFunctionExample.swift
    /host/spi-builder-workspace/Source/Examples/Example1.swift
    /host/spi-builder-workspace/Source/Examples/Tutorial.swift
warning: 'spi-builder-workspace': found 3 file(s) which are unhandled; explicitly declare them as resources or exclude from the target
    /host/spi-builder-workspace/Source/Examples/Tutorial.swift
    /host/spi-builder-workspace/Source/Examples/Example1.swift
    /host/spi-builder-workspace/Source/Examples/CustomFunctionExampleSimple.swift
[1/1] Compiling plugin CudaBuild
[2/2] Compiling plugin GenerateManual
[3/3] Compiling plugin GenerateDoccReference
Building for debugging...
[3/412] Write sources
[10/412] Compiling steel_gemm_splitk_nax.cpp
[10/412] Compiling _NumericsShims _NumericsShims.c
[10/412] Compiling ternary.cpp
[13/412] Write sources
[24/412] Compiling version.cpp
[25/412] Compiling utils.cpp
[26/412] Compiling scheduler.cpp
[27/412] Compiling cuda.cpp
[28/412] Compiling compile.cpp
[29/412] Compiling random.cpp
[30/412] Write swift-version-272D24FF697CF451.txt
[31/412] Compiling device.cpp
[32/423] Compiling no_gguf.cpp
[33/423] Compiling transforms.cpp
[35/423] Compiling RealModule AlgebraicField.swift
[36/423] Compiling RealModule ApproximateEquality.swift
[37/423] Emitting module RealModule
[38/424] Compiling RealModule RealFunctions.swift
[39/424] Compiling RealModule RelaxedArithmetic.swift
[40/424] Compiling RealModule Float16+Real.swift
[40/424] Wrapping AST for encuda for debugging
[41/424] Wrapping AST for ArgumentParserToolInfo for debugging
[42/424] Wrapping AST for ArgumentParser for debugging
[43/424] Write Objects.LinkFileList
[45/424] Compiling RealModule ElementaryFunctions.swift
[46/424] Compiling RealModule Float+Real.swift
[47/424] Compiling RealModule AugmentedArithmetic.swift
[48/424] Compiling RealModule Double+Real.swift
[48/424] Compiling load.cpp
[50/424] Compiling RealModule Float80+Real.swift
[51/424] Compiling RealModule Real.swift
[52/425] Linking encuda-tool
[53/425] Compiling linalg.cpp
encuda/encuda-compile.swift:55: Fatal error: nvcc not found
*** Signal 4: Backtracing from 0x72b0474e1d71... done ***
*** Program crashed: Illegal instruction at 0x000072b0474e1d71 ***
Platform: x86_64 Linux (Ubuntu 24.04.5 LTS)
Thread 0 "encuda-tool" crashed:
  0               0x000072b0474e1d71 _assertionFailure(_:_:file:line:flags:) + 225 in libswiftCore.so
  1 [ra]          0x0000648e27614988 Encuda.Compile.run() + 1415 in encuda-tool at /host/spi-builder-workspace/Source/Encuda/encuda-compile.swift:55:21
  2 [ra] [thunk]  0x0000648e2761076d protocol witness for ParsableCommand.run() in conformance Encuda.Compile + 12 in encuda-tool at //<compiler-generated>
  3 [ra]          0x0000648e275b3325 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]          0x0000648e275b3c57 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] 0x0000648e2762203e static Encuda.$main() + 29 in encuda-tool at //<compiler-generated>
  6 [ra] [system] 0x0000648e27622149 encuda_main + 8 in encuda-tool at /host/spi-builder-workspace/Source/Encuda/encuda.swift
  7 [ra]          0x000072b045d421ca <unknown> in libc.so.6
  8 [ra]          0x000072b045d4228b <unknown> in libc.so.6
...
Registers:
rax 0x0000000000000000  0
rdx 0x0000000000000002  2
rcx 0x0000000000000001  1
rbx 0x0000000648e56938  26992798008
rsi 0x8000646e756f6620  9223482462434190880
rdi 0x0000648e56937ff0  77 e3 76 1e 88 64 00 00 31 00 00 00 00 00 00 00  wãv··d··1·······
rbp 0x00007ffd4261fe20  e0 0a 62 42 fd 7f 00 00 88 49 61 27 8e 64 00 00  à·bBý····Ia'·d··
rsp 0x00007ffd4261fdb0  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ················
 r8 0x0000648e56925010  07 00 01 00 07 00 06 00 07 00 04 00 03 00 05 00  ················
 r9 0x0000000000000007  7
r10 0x0000648e56938000  38 69 e5 48 06 00 00 00 d0 3b bb ea 47 ce 01 be  8iåH····Ð;»êGη¾
r11 0xbe01ce47eabb3bd0  13691451150459157456
r12 0x0000000000000000  0
r13 0x00007ffd426207d8  b0 cb 61 42 fd 7f 00 00 00 00 00 00 00 00 00 00  °ËaBý···········
r14 0x0000648e27670b50  98 f4 67 27 8e 64 00 00 f0 07 68 27 8e 64 00 00  ·ôg'·d··ð·h'·d··
r15 0x000072b04797d000  e0 e2 97 47 b0 72 00 00 16 00 00 00 00 00 00 00  àâ·G°r··········
rip 0x000072b0474e1d71  0f 0b 48 83 ec 08 48 8d 05 c2 be 30 00 48 8d 3d  ··H·ì·H··Â¾0·H·=
rflags 0x0000000000010202
cs 0x0033  fs 0x0000  gs 0x0000
Images (18 omitted):
0x0000648e274c3000–0x0000648e2766ee10 06e67a695c81b62edd5d56c45c083860483b7940 encuda-tool     /host/spi-builder-workspace/.build/x86_64-unknown-linux-gnu/debug/encuda-tool
0x000072b045d18000–0x000072b045ec8039 a4a7992a8e66555c8141ab2a08a8465ff6e0ea65 libc.so.6       /usr/lib/x86_64-linux-gnu/libc.so.6
0x000072b0471e9000–0x000072b0477bc470 7338a3c81c5415f0377dee2eec7895c59ddff670 libswiftCore.so /root/.local/share/swiftly/toolchains/6.3.2/usr/lib/swift/linux/libswiftCore.so
Backtrace took 0.04s
[54/425] Compiling ternary.cu to ternary.cpp
[54/425] Compiling fft.cpp
[54/425] Compiling fast.cpp
[54/425] Compiling graph_utils.cpp
[54/425] Compiling safetensors.cpp
[54/425] Compiling primitives.cpp
[54/425] Compiling ops.cpp
encuda/encuda-compile.swift:55: Fatal error: nvcc not found
*** Signal 4: Backtracing from 0x70fef0397d71... done ***
*** Program crashed: Illegal instruction at 0x000070fef0397d71 ***
Platform: x86_64 Linux (Ubuntu 24.04.5 LTS)
Thread 0 "encuda-tool" crashed:
  0               0x000070fef0397d71 _assertionFailure(_:_:file:line:flags:) + 225 in libswiftCore.so
  1 [ra]          0x00005e240b81e988 Encuda.Compile.run() + 1415 in encuda-tool at /host/spi-builder-workspace/Source/Encuda/encuda-compile.swift:55:21
  2 [ra] [thunk]  0x00005e240b81a76d protocol witness for ParsableCommand.run() in conformance Encuda.Compile + 12 in encuda-tool at //<compiler-generated>
  3 [ra]          0x00005e240b7bd325 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]          0x00005e240b7bdc57 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] 0x00005e240b82c03e static Encuda.$main() + 29 in encuda-tool at //<compiler-generated>
  6 [ra] [system] 0x00005e240b82c149 encuda_main + 8 in encuda-tool at /host/spi-builder-workspace/Source/Encuda/encuda.swift
  7 [ra]          0x000070feeebf81ca <unknown> in libc.so.6
  8 [ra]          0x000070feeebf828b <unknown> in libc.so.6
...
Registers:
rax 0x0000000000000000  0
rdx 0x0000000000000002  2
rcx 0x0000000000000001  1
rbx 0x00000005e2432eb7  25270890167
rsi 0x8000646e756f6620  9223482462434190880
rdi 0x00005e2432eb6ff0  f6 54 2f 00 21 5e 00 00 31 00 00 00 00 00 00 00  öT/·!^··1·······
rbp 0x00007ffe4547ef70  30 fc 47 45 fe 7f 00 00 88 e9 81 0b 24 5e 00 00  0üGEþ····é··$^··
rsp 0x00007ffe4547ef00  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ················
 r8 0x00005e2432ea4010  07 00 01 00 07 00 06 00 07 00 04 00 03 00 05 00  ················
 r9 0x0000000000000007  7
r10 0x00005e2432eb7000  b7 2e 43 e2 05 00 00 00 4b 1f 6a 04 14 ce c1 eb  ·.Câ····K·j··ÎÁë
r11 0xebc1ce14046a1f4b  16988085854786953035
r12 0x0000000000000000  0
r13 0x00007ffe4547f928  00 bd 47 45 fe 7f 00 00 00 00 00 00 00 00 00 00  ·½GEþ···········
r14 0x00005e240b87ab50  98 94 88 0b 24 5e 00 00 f0 a7 88 0b 24 5e 00 00  ····$^··ð§··$^··
r15 0x000070fef0833000  e0 42 83 f0 fe 70 00 00 16 00 00 00 00 00 00 00  àB·ðþp··········
rip 0x000070fef0397d71  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):
0x00005e240b6cd000–0x00005e240b878e10 06e67a695c81b62edd5d56c45c083860483b7940 encuda-tool     /host/spi-builder-workspace/.build/x86_64-unknown-linux-gnu/debug/encuda-tool
0x000070feeebce000–0x000070feeed7e039 a4a7992a8e66555c8141ab2a08a8465ff6e0ea65 libc.so.6       /usr/lib/x86_64-linux-gnu/libc.so.6
0x000070fef009f000–0x000070fef0672470 7338a3c81c5415f0377dee2eec7895c59ddff670 libswiftCore.so /root/.local/share/swiftly/toolchains/6.3.2/usr/lib/swift/linux/libswiftCore.so
Backtrace took 0.04s
[54/425] Compiling tanh.cu to tanh.cpp
BUILD FAILURE 6.3 android