Build Information
Failed to build mlx-swift, reference main (b4f768), with Swift 6.3 for Android on 16 Oct 2026 02:33:56 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-54344847-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>&1Build Log
========================================
RunAll
========================================
Builder version: 5.1.3
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/crabel99/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/crabel99/mlx-swift
* branch main -> FETCH_HEAD
* [new branch] main -> origin/main
HEAD is now at b4f7684 Fix attention mask for `float16` (#496)
Submodule path 'Source/Cmlx/mlx': checked out '1f8e74e3f12f31365464a6867c6579f0e9b29d85'
Submodule path 'Source/Cmlx/mlx-c': checked out 'ebc88f10caa1b625e6b581437a8dea6df8a70085'
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/crabel99/mlx-swift.git
Revision (git rev-parse @):
b4f768435b15f9d6f09ca02a0037a36f9bd3690e
SPI manifest file found: $PWD/.spi.yml
SUCCESS checkout https://github.com/crabel99/mlx-swift.git at main
========================================
Build
========================================
Selected platform: android
Swift version: 6.3
Building package at path: $PWD
https://github.com/crabel99/mlx-swift.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-54344847-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.53s)
[956/19114] Fetching swift-argument-parser
Fetched https://github.com/apple/swift-argument-parser from cache (0.78s)
Computing version for https://github.com/apple/swift-numerics
Computed https://github.com/apple/swift-numerics at 1.1.1 (0.97s)
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/mlx/build': File not found.
[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 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 ArgumentVisibility.swift
[23/65] Compiling ArgumentParser CompletionKind.swift
[24/65] Compiling ArgumentParser Errors.swift
[25/65] Compiling ArgumentParser Flag.swift
[26/65] Compiling ArgumentParser NameSpecification.swift
[27/65] Compiling ArgumentParser Option.swift
[28/65] Compiling ArgumentParser OptionGroup.swift
[29/65] Compiling ArgumentParser BashCompletionsGenerator.swift
[30/65] Compiling ArgumentParser CompletionsGenerator.swift
[31/65] Compiling ArgumentParser FishCompletionsGenerator.swift
[32/65] Compiling ArgumentParser ZshCompletionsGenerator.swift
[33/65] Compiling ArgumentParser Argument.swift
[34/65] Compiling ArgumentParser ArgumentDiscussion.swift
[35/65] Compiling ArgumentParser ArgumentHelp.swift
[36/65] Compiling ArgumentParser ParentCommand.swift
[37/65] Compiling ArgumentParser AsyncParsableCommand.swift
[38/65] Compiling ArgumentParser CommandConfiguration.swift
[39/65] Compiling ArgumentParser CommandGroup.swift
[40/65] Compiling ArgumentParser EnumerableFlag.swift
[41/65] Compiling ArgumentParser ExpressibleByArgument.swift
[42/65] Compiling ArgumentParser ParsableArguments.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 ParsableCommand.swift
[50/65] Compiling ArgumentParser ArgumentDecoder.swift
[51/65] Compiling ArgumentParser ArgumentDefinition.swift
[52/65] Compiling ArgumentParser ArgumentSet.swift
[53/65] Compiling ArgumentParser CommandParser.swift
[54/65] Compiling ArgumentParser InputKey.swift
[55/65] Compiling ArgumentParser InputOrigin.swift
[56/65] Compiling ArgumentParser HelpCommand.swift
[57/65] Compiling ArgumentParser HelpGenerator.swift
[58/65] Compiling ArgumentParser MessageInfo.swift
[59/65] Compiling ArgumentParser UsageGenerator.swift
[60/65] Compiling ArgumentParser CollectionExtensions.swift
[61/65] Compiling ArgumentParser Foundation.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-error.swift
[67/72] Compiling encuda encuda-link.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/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/CustomFunctionExampleSimple.swift
/host/spi-builder-workspace/Source/Examples/Tutorial.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/Example1.swift
/host/spi-builder-workspace/Source/Examples/Tutorial.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/Example1.swift
/host/spi-builder-workspace/Source/Examples/Tutorial.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/430] Write sources
[16/430] Compiling _NumericsShims _NumericsShims.c
[17/430] Write sources
[18/430] Compiling cLogSupport cLogSupport.c
[19/430] Write sources
[24/430] Compiling version.cpp
[25/430] Write swift-version-272D24FF697CF451.txt
[26/430] Compiling utils.cpp
[27/430] Compiling stream.cpp
[28/441] Compiling scheduler.cpp
[29/441] Wrapping AST for ArgumentParserToolInfo for debugging
[30/441] Wrapping AST for ArgumentParser for debugging
[31/441] Wrapping AST for encuda for debugging
[32/441] Write Objects.LinkFileList
[33/441] Linking encuda-tool
[34/441] Compiling fft.cpp
encuda/encuda-compile.swift:55: Fatal error: nvcc not found
*** Signal 4: Backtracing from 0x761db573ad71... done ***
*** Program crashed: Illegal instruction at 0x0000761db573ad71 ***
Platform: x86_64 Linux (Ubuntu 24.04.5 LTS)
Thread 0 "encuda-tool" crashed:
0 0x0000761db573ad71 _assertionFailure(_:_:file:line:flags:) + 225 in libswiftCore.so
1 [ra] 0x000062cc23296ac1 Encuda.Compile.run() + 1472 in encuda-tool at /host/spi-builder-workspace/Source/Encuda/encuda-compile.swift:55:21
2 [ra] [thunk] 0x000062cc2329286d protocol witness for ParsableCommand.run() in conformance Encuda.Compile + 12 in encuda-tool at //<compiler-generated>
3 [ra] 0x000062cc23235425 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] 0x000062cc23235d57 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] 0x000062cc232a433e static Encuda.$main() + 29 in encuda-tool at //<compiler-generated>
6 [ra] [system] 0x000062cc232a4449 encuda_main + 8 in encuda-tool at /host/spi-builder-workspace/Source/Encuda/encuda.swift
7 [ra] 0x0000761db3f9b1ca <unknown> in libc.so.6
8 [ra] 0x0000761db3f9b28b <unknown> in libc.so.6
...
Registers:
rax 0x0000000000000000 0
rdx 0x0000000000000002 2
rcx 0x0000000000000001 1
rbx 0x000000062cc51dfb 26520919547
rsi 0x8000646e756f6620 9223482462434190880
rdi 0x000062cc51dfbfa0 00 00 00 00 00 00 00 00 31 00 00 00 00 00 00 00 ········1·······
rbp 0x00007ffd2311cae0 a0 d7 11 23 fd 7f 00 00 c1 6a 29 23 cc 62 00 00 ×·#ý···Áj)#Ìb··
rsp 0x00007ffd2311ca70 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ················
r8 0x000062cc51de9010 07 00 01 00 07 00 06 00 07 00 03 00 04 00 05 00 ················
r9 0x0000000000000007 7
r10 0x000062cc51dfbfb0 fb 1d c5 2c 06 00 00 00 09 66 7c 66 b7 07 24 b4 û·Å,·····f|f··$´
r11 0xb42407b7667c6609 12980508510268450313
r12 0x0000000000000000 0
r13 0x00007ffd2311d498 70 98 11 23 fd 7f 00 00 00 00 00 00 00 00 00 00 p··#ý···········
r14 0x000062cc232f2b50 b8 14 30 23 cc 62 00 00 10 28 30 23 cc 62 00 00 ¸·0#Ìb···(0#Ìb··
r15 0x0000761db5bd6000 e0 72 bd b5 1d 76 00 00 16 00 00 00 00 00 00 00 àr½µ·v··········
rip 0x0000761db573ad71 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):
0x000062cc23145000–0x000062cc232f1190 a10fa1dada8ff7204fb4264ed63d22da31efc51f encuda-tool /host/spi-builder-workspace/.build/x86_64-unknown-linux-gnu/debug/encuda-tool
0x0000761db3f71000–0x0000761db4121039 a4a7992a8e66555c8141ab2a08a8465ff6e0ea65 libc.so.6 /usr/lib/x86_64-linux-gnu/libc.so.6
0x0000761db5442000–0x0000761db5a15470 7338a3c81c5415f0377dee2eec7895c59ddff670 libswiftCore.so /root/.local/share/swiftly/toolchains/6.3.2/usr/lib/swift/linux/libswiftCore.so
Backtrace took 0.05s
[35/441] Compiling ternary.cu to ternary.cpp
encuda/encuda-compile.swift:55: Fatal error: nvcc not found
*** Signal 4: Backtracing from 0x7f6aea7b7d71... failed ***
[35/441] Compiling tanh.cu to tanh.cpp
[35/441] Compiling primitives.cpp
[35/441] Compiling transforms.cpp
[35/441] Compiling random.cpp
[35/441] Compiling graph_utils.cpp
[35/441] Compiling fast.cpp
BUILD FAILURE 6.3 android