Build Information
Failed to build mlx-swift, reference main (5f117a), with Swift 6.3 for Android on 1 Nov 2026 15:37:54 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-53886769-3":/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>&1Build Log
========================================
RunAll
========================================
Builder version: 5.1.4
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/ml-explore/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/ml-explore/mlx-swift
* branch main -> FETCH_HEAD
* [new branch] main -> origin/main
HEAD is now at 5f117a2 fix callers of mlx_vector_array_values to handle potentially empty results (#518)
Submodule path 'Source/Cmlx/mlx': checked out '36969c094354086e15d2a327a9c50feb20b9cf11'
Submodule path 'Source/Cmlx/mlx-c': checked out 'a26f2d584a14ec619ae8db9a09be03becd47598a'
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/ml-explore/mlx-swift.git
Revision (git rev-parse @):
5f117a2e7ee1ce92f8dcc1520bc07535c43846f9
SPI manifest file found: $PWD/.spi.yml
SUCCESS checkout https://github.com/ml-explore/mlx-swift.git at main
========================================
Build
========================================
Selected platform: android
Swift version: 6.3
Building package at path: $PWD
https://github.com/ml-explore/mlx-swift.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-53886769-3":/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:1259d966e40d034d138a282ea8b980b108763342a7ff8ac7ef483c73e99068f3
Status: Image is up to date for registry.gitlab.com/saguaro1/spi-images:android-6.3-latest
Fetching https://github.com/apple/swift-numerics
Fetching https://github.com/apple/swift-argument-parser
[1/6766] Fetching swift-numerics
[6767/26096] Fetching swift-numerics, swift-argument-parser
Fetched https://github.com/apple/swift-numerics from cache (0.89s)
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.15s)
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
warning: 'spi-builder-workspace': Invalid Exclude '/host/spi-builder-workspace/Source/Cmlx/mxl/mlx/backend/metal/cross_entropy.cpp': File not found.
warning: 'spi-builder-workspace': Invalid Exclude '/host/spi-builder-workspace/Source/Cmlx/mlx/CODE_OF_CONDUCT.md': File not found.
warning: 'spi-builder-workspace': Invalid Exclude '/host/spi-builder-workspace/Source/Cmlx/mlx/build': File not found.
[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] Emitting module ArgumentParser
[10/65] Compiling ArgumentParser Name.swift
[11/65] Compiling ArgumentParser Parsed.swift
[12/65] Compiling ArgumentParser ParsedValues.swift
[13/65] Compiling ArgumentParser ParserError.swift
[14/65] Compiling ArgumentParser SplitArguments.swift
[15/65] Compiling ArgumentParser DumpHelpGenerator.swift
[16/65] Compiling ArgumentParser AsyncCompletionsValidator.swift
[17/65] Compiling ArgumentParser CodingKeyValidator.swift
[18/65] Compiling ArgumentParser NonsenseFlagsValidator.swift
[19/65] Compiling ArgumentParser ParsableArgumentsValidation.swift
[20/65] Compiling ArgumentParser PositionalArgumentsValidator.swift
[21/65] Compiling ArgumentParser UniqueNamesValidator.swift
[22/65] Compiling ArgumentParser BashCompletionsGenerator.swift
[23/65] Compiling ArgumentParser CompletionsGenerator.swift
[24/65] Compiling ArgumentParser FishCompletionsGenerator.swift
[25/65] Compiling ArgumentParser ZshCompletionsGenerator.swift
[26/65] Compiling ArgumentParser Argument.swift
[27/65] Compiling ArgumentParser ArgumentDiscussion.swift
[28/65] Compiling ArgumentParser ArgumentHelp.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 HelpCommand.swift
[43/65] Compiling ArgumentParser HelpGenerator.swift
[44/65] Compiling ArgumentParser MessageInfo.swift
[45/65] Compiling ArgumentParser UsageGenerator.swift
[46/65] Compiling ArgumentParser CollectionExtensions.swift
[47/65] Compiling ArgumentParser Foundation.swift
[48/65] Compiling ArgumentParser ParsableCommand.swift
[49/65] Compiling ArgumentParser ArgumentDecoder.swift
[50/65] Compiling ArgumentParser ArgumentDefinition.swift
[51/65] Compiling ArgumentParser ArgumentSet.swift
[52/65] Compiling ArgumentParser CommandParser.swift
[53/65] Compiling ArgumentParser InputKey.swift
[54/65] Compiling ArgumentParser InputOrigin.swift
[55/65] Compiling ArgumentParser ParentCommand.swift
[56/65] Compiling ArgumentParser AsyncParsableCommand.swift
[57/65] Compiling ArgumentParser CommandConfiguration.swift
[58/65] Compiling ArgumentParser CommandGroup.swift
[59/65] Compiling ArgumentParser EnumerableFlag.swift
[60/65] Compiling ArgumentParser ExpressibleByArgument.swift
[61/65] Compiling ArgumentParser ParsableArguments.swift
[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-link.swift
[67/72] Compiling encuda encuda-error.swift
[68/72] Compiling encuda encuda-compile.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/CustomFunctionExample.swift
/host/spi-builder-workspace/Source/Examples/CustomFunctionExampleSimple.swift
/host/spi-builder-workspace/Source/Examples/Example1.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/CustomFunctionExampleSimple.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/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/Example1.swift
/host/spi-builder-workspace/Source/Examples/CustomFunctionExampleSimple.swift
/host/spi-builder-workspace/Source/Examples/Tutorial.swift
[1/1] Compiling plugin CudaBuild
[2/2] Compiling plugin GenerateManual
[3/3] Compiling plugin GenerateDoccReference
Building for debugging...
[3/440] Write sources
[7/440] Compiling _NumericsShims _NumericsShims.c
[8/440] Write sources
[18/440] Compiling binary_two.cpp
[19/440] Write sources
[24/440] Compiling version.cpp
[25/440] Compiling utils.cpp
[26/440] Compiling cuda.cpp
[27/440] Compiling compile.cpp
[28/440] Write swift-version-272D24FF697CF451.txt
[29/440] Compiling device.cpp
[30/451] Compiling closure.cpp
[31/451] Compiling stream.cpp
[32/451] Wrapping AST for encuda for debugging
[33/451] Wrapping AST for ArgumentParserToolInfo for debugging
[34/451] Wrapping AST for ArgumentParser for debugging
[35/451] Compiling scheduler.cpp
[35/451] Write Objects.LinkFileList
[37/451] Compiling array.cpp
[38/451] Linking encuda-tool
[40/451] Compiling RealModule Real.swift
[41/452] Compiling RealModule RelaxedArithmetic.swift
[42/452] Compiling RealModule RealFunctions.swift
[42/452] Compiling memory.cpp
[44/452] Compiling RealModule AlgebraicField.swift
[45/452] Compiling RealModule ApproximateEquality.swift
[46/452] Compiling RealModule Float16+Real.swift
[47/452] Compiling RealModule Float80+Real.swift
encuda/encuda-compile.swift:55: Fatal error: nvcc not found
*** Signal 4: Backtracing from 0x74d4f7ed4d71... done ***
*** Program crashed: Illegal instruction at 0x000074d4f7ed4d71 ***
Platform: x86_64 Linux (Ubuntu 24.04.5 LTS)
Thread 0 "encuda-tool" crashed:
0 0x000074d4f7ed4d71 _assertionFailure(_:_:file:line:flags:) + 225 in libswiftCore.so
1 [ra] 0x00005bb37db9ab01 Encuda.Compile.run() + 1472 in encuda-tool at /host/spi-builder-workspace/Source/Encuda/encuda-compile.swift:55:21
2 [ra] [thunk] 0x00005bb37db9680d protocol witness for ParsableCommand.run() in conformance Encuda.Compile + 12 in encuda-tool at //<compiler-generated>
3 [ra] 0x00005bb37db38555 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] 0x00005bb37db38e87 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] 0x00005bb37dba83be static Encuda.$main() + 29 in encuda-tool at //<compiler-generated>
6 [ra] [system] 0x00005bb37dba84c9 encuda_main + 8 in encuda-tool at /host/spi-builder-workspace/Source/Encuda/encuda.swift
7 [ra] 0x000074d4f67351ca <unknown> in libc.so.6
8 [ra] 0x000074d4f673528b <unknown> in libc.so.6
...
Registers:
rax 0x0000000000000000 0
rdx 0x0000000000000002 2
rcx 0x0000000000000001 1
rbx 0x00000005bb3b55b4 24616064436
rsi 0x8000646e756f6620 9223482462434190880
rdi 0x00005bb3b55b4be0 66 69 6c 65 b3 5b 00 00 31 00 00 00 00 00 00 00 file³[··1·······
rbp 0x00007ffe923e0d30 70 1b 3e 92 fe 7f 00 00 01 ab b9 7d b3 5b 00 00 p·>·þ····«¹}³[··
rsp 0x00007ffe923e0cc0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ················
r8 0x00005bb3b559e010 07 00 01 00 07 00 06 00 07 00 03 00 04 00 05 00 ················
r9 0x0000000000000007 7
r10 0x00005bb3b55b4bf0 b4 55 3b bb 05 00 00 00 5c 6c 69 ba c2 0e 72 fb ´U;»····\liºÂ·rû
r11 0xfb720ec2ba696c5c 18118560480378842204
r12 0x0000000000000000 0
r13 0x00007ffe923e1868 40 dc 3d 92 fe 7f 00 00 00 00 00 00 00 00 00 00 @Ü=·þ···········
r14 0x00005bb37dbf6b50 e8 54 c0 7d b3 5b 00 00 40 68 c0 7d b3 5b 00 00 èTÀ}³[··@hÀ}³[··
r15 0x000074d4f8370000 e0 12 37 f8 d4 74 00 00 16 00 00 00 00 00 00 00 à·7øÔt··········
rip 0x000074d4f7ed4d71 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):
0x00005bb37da48000–0x00005bb37dbf52e8 d2b078e9c2dd60314cd3d5deabbe417b3f0e9b94 encuda-tool /host/spi-builder-workspace/.build/x86_64-unknown-linux-gnu/debug/encuda-tool
0x000074d4f670b000–0x000074d4f68bb039 a4a7992a8e66555c8141ab2a08a8465ff6e0ea65 libc.so.6 /usr/lib/x86_64-linux-gnu/libc.so.6
0x000074d4f7bdc000–0x000074d4f81af470 7338a3c81c5415f0377dee2eec7895c59ddff670 libswiftCore.so /root/.local/share/swiftly/toolchains/6.3.2/usr/lib/swift/linux/libswiftCore.so
Backtrace took 0.05s
[47/452] Compiling ternary.cu to ternary.cpp
[47/452] Compiling safetensors.cpp
[48/452] Emitting module RealModule
[48/452] Compiling primitives.cpp
[48/452] Compiling linalg.cpp
[48/452] Compiling ops.cpp
[48/452] Compiling transforms.cpp
[48/452] Compiling random.cpp
BUILD FAILURE 6.3 android