Build Information
Failed to build swift-ai, reference main (46bca4), with Swift 6.4 for Linux on 23 Sep 2026 04:30:46 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-53886770-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:basic-6.4-latest swift build --triple x86_64-unknown-linux-gnu 2>&1Build Log
========================================
RunAll
========================================
Builder version: 5.1.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/mi12labs/SwiftAI.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/mi12labs/SwiftAI
* branch main -> FETCH_HEAD
* [new branch] main -> origin/main
HEAD is now at 46bca4b Merge pull request #22 from mi12labs/openai-reasoning
Cloned https://github.com/mi12labs/SwiftAI.git
Revision (git rev-parse @):
46bca4bab65fe5635df716db6fb0f0262e32d852
SPI manifest file found: $PWD/.spi.yml
SUCCESS checkout https://github.com/mi12labs/SwiftAI.git at main
========================================
Build
========================================
Selected platform: linux
Swift version: 6.4
Building package at path: $PWD
https://github.com/mi12labs/SwiftAI.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-53886770-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:basic-6.4-latest swift build --triple x86_64-unknown-linux-gnu 2>&1
basic-6.4-latest: Pulling from saguaro1/spi-images
Digest: sha256:c77fcce225e223ac0fafed844619173fc6de8d62dd560eeb28db3182af6a282b
Status: Image is up to date for registry.gitlab.com/saguaro1/spi-images:basic-6.4-latest
Fetching https://github.com/MacPaw/OpenAI.git
[1/9084] Fetching openai
Fetched https://github.com/MacPaw/OpenAI.git (0.81s)
Fetching https://github.com/swiftlang/swift-format.git
Fetching https://github.com/pointfreeco/swift-macro-testing.git
Fetching https://github.com/apple/swift-openapi-runtime
Fetching https://github.com/apple/swift-collections.git
Fetching https://github.com/swiftlang/swift-syntax.git
[1/1002] Fetching swift-macro-testing
[1003/7940] Fetching swift-macro-testing, swift-openapi-runtime
[8091/22981] Fetching swift-macro-testing, swift-openapi-runtime, swift-format
[10047/50667] Fetching swift-macro-testing, swift-openapi-runtime, swift-format, swift-collections
[49284/130674] Fetching swift-macro-testing, swift-openapi-runtime, swift-format, swift-collections, swift-syntax
Fetched https://github.com/pointfreeco/swift-macro-testing.git (1.56s)
[68867/129672] Fetching swift-openapi-runtime, swift-format, swift-collections, swift-syntax
Fetched https://github.com/apple/swift-collections.git (1.58s)
[42781/101986] Fetching swift-openapi-runtime, swift-format, swift-syntax
Fetching https://github.com/ml-explore/mlx-swift-examples.git
Fetched https://github.com/swiftlang/swift-syntax.git (4.60s)
[1/7866] Fetching mlx-swift-examples
Fetched https://github.com/apple/swift-openapi-runtime (5.45s)
Fetched https://github.com/swiftlang/swift-format.git (5.45s)
Fetched https://github.com/ml-explore/mlx-swift-examples.git (0.93s)
Computing version for https://github.com/swiftlang/swift-format.git
Computed https://github.com/swiftlang/swift-format.git at 510.1.0 (7.19s)
Fetching https://github.com/apple/swift-argument-parser.git
Fetching https://github.com/apple/swift-markdown.git
[1/7739] Fetching swift-markdown
[1085/26657] Fetching swift-markdown, swift-argument-parser
Fetched https://github.com/apple/swift-markdown.git (0.89s)
Fetched https://github.com/apple/swift-argument-parser.git (1.11s)
Computing version for https://github.com/pointfreeco/swift-macro-testing.git
Computed https://github.com/pointfreeco/swift-macro-testing.git at 0.7.0 (1.45s)
Fetching https://github.com/pointfreeco/swift-snapshot-testing
[1/16477] Fetching swift-snapshot-testing
Fetched https://github.com/pointfreeco/swift-snapshot-testing (2.48s)
Computing version for https://github.com/swiftlang/swift-syntax.git
Computed https://github.com/swiftlang/swift-syntax.git at 510.0.3 (3.00s)
Computing version for https://github.com/ml-explore/mlx-swift-examples.git
Computed https://github.com/ml-explore/mlx-swift-examples.git at 2.29.1 (0.37s)
Fetching https://github.com/1024jp/GzipSwift
Fetching https://github.com/huggingface/swift-transformers
Fetching https://github.com/ml-explore/mlx-swift
[1/1762] Fetching gzipswift
[1763/8780] Fetching gzipswift, swift-transformers
Fetched https://github.com/1024jp/GzipSwift (0.57s)
[913/7018] Fetching swift-transformers
[7019/23959] Fetching swift-transformers, mlx-swift
Fetched https://github.com/huggingface/swift-transformers (0.90s)
[339/16941] Fetching mlx-swift
Fetched https://github.com/ml-explore/mlx-swift (1.65s)
Computing version for https://github.com/1024jp/GzipSwift
Computed https://github.com/1024jp/GzipSwift at 6.0.1 (1.99s)
Computing version for https://github.com/huggingface/swift-transformers
Computed https://github.com/huggingface/swift-transformers at 1.0.0 (0.28s)
Fetching https://github.com/huggingface/swift-jinja.git
[1/1360] Fetching swift-jinja
Fetched https://github.com/huggingface/swift-jinja.git (0.65s)
Computing version for https://github.com/ml-explore/mlx-swift
Computed https://github.com/ml-explore/mlx-swift at 0.29.1 (1.01s)
Fetching https://github.com/apple/swift-numerics
[1/6640] Fetching swift-numerics
Fetched https://github.com/apple/swift-numerics (0.74s)
Computing version for https://github.com/apple/swift-numerics
Computed https://github.com/apple/swift-numerics at 1.1.1 (1.07s)
Computing version for https://github.com/apple/swift-collections.git
Computed https://github.com/apple/swift-collections.git at 1.7.0 (0.49s)
Computing version for https://github.com/apple/swift-openapi-runtime
Computed https://github.com/apple/swift-openapi-runtime at 1.12.1 (0.33s)
Fetching https://github.com/apple/swift-http-types
[1/1935] Fetching swift-http-types
Fetched https://github.com/apple/swift-http-types (0.62s)
Computing version for https://github.com/apple/swift-markdown.git
Computed https://github.com/apple/swift-markdown.git at 0.9.0 (2.36s)
Fetching https://github.com/swiftlang/swift-cmark.git
[1/18600] Fetching swift-cmark
Fetched https://github.com/swiftlang/swift-cmark.git (1.24s)
Computing version for https://github.com/swiftlang/swift-cmark.git
Computed https://github.com/swiftlang/swift-cmark.git at 0.9.0 (1.62s)
Computing version for https://github.com/apple/swift-http-types
Computed https://github.com/apple/swift-http-types at 1.8.0 (0.31s)
Computing version for https://github.com/apple/swift-argument-parser.git
Computed https://github.com/apple/swift-argument-parser.git at 1.8.2 (0.29s)
Computing version for https://github.com/pointfreeco/swift-snapshot-testing
Computed https://github.com/pointfreeco/swift-snapshot-testing at 1.19.6 (0.23s)
Fetching https://github.com/pointfreeco/swift-custom-dump
[1/5666] Fetching swift-custom-dump
Fetched https://github.com/pointfreeco/swift-custom-dump (1.07s)
Computing version for https://github.com/pointfreeco/swift-custom-dump
Computed https://github.com/pointfreeco/swift-custom-dump at 1.7.3 (1.37s)
Fetching https://github.com/pointfreeco/swift-issue-reporting
[1/6161] Fetching swift-issue-reporting
Fetched https://github.com/pointfreeco/swift-issue-reporting (0.85s)
Computing version for https://github.com/pointfreeco/swift-issue-reporting
Computed https://github.com/pointfreeco/swift-issue-reporting at 2.1.1 (1.31s)
Computing version for https://github.com/huggingface/swift-jinja.git
Computed https://github.com/huggingface/swift-jinja.git at 2.5.1 (0.34s)
Creating working copy for https://github.com/apple/swift-collections.git
Working copy of https://github.com/apple/swift-collections.git resolved at 1.7.0
Creating working copy for https://github.com/1024jp/GzipSwift
Working copy of https://github.com/1024jp/GzipSwift resolved at 6.0.1
Creating working copy for https://github.com/pointfreeco/swift-snapshot-testing
Working copy of https://github.com/pointfreeco/swift-snapshot-testing resolved at 1.19.6
Creating working copy for https://github.com/ml-explore/mlx-swift-examples.git
Working copy of https://github.com/ml-explore/mlx-swift-examples.git resolved at 2.29.1
Creating working copy for https://github.com/apple/swift-argument-parser.git
Working copy of https://github.com/apple/swift-argument-parser.git resolved at 1.8.2
Creating working copy for https://github.com/swiftlang/swift-cmark.git
Working copy of https://github.com/swiftlang/swift-cmark.git resolved at 0.9.0
Creating working copy for https://github.com/apple/swift-openapi-runtime
Working copy of https://github.com/apple/swift-openapi-runtime resolved at 1.12.1
Creating working copy for https://github.com/pointfreeco/swift-issue-reporting
Working copy of https://github.com/pointfreeco/swift-issue-reporting resolved at 2.1.1
Creating working copy for https://github.com/swiftlang/swift-format.git
Working copy of https://github.com/swiftlang/swift-format.git resolved at 510.1.0
Creating working copy for https://github.com/MacPaw/OpenAI.git
Working copy of https://github.com/MacPaw/OpenAI.git resolved at 0.4.7 (28884fc)
Creating working copy for https://github.com/huggingface/swift-transformers
Working copy of https://github.com/huggingface/swift-transformers resolved at 1.0.0
Creating working copy for https://github.com/huggingface/swift-jinja.git
Working copy of https://github.com/huggingface/swift-jinja.git resolved at 2.5.1
Creating working copy for https://github.com/pointfreeco/swift-custom-dump
Working copy of https://github.com/pointfreeco/swift-custom-dump resolved at 1.7.3
Creating working copy for https://github.com/swiftlang/swift-syntax.git
Working copy of https://github.com/swiftlang/swift-syntax.git resolved at 510.0.3
Creating working copy for https://github.com/apple/swift-http-types
Working copy of https://github.com/apple/swift-http-types resolved at 1.8.0
Creating working copy for https://github.com/ml-explore/mlx-swift
Working copy of https://github.com/ml-explore/mlx-swift resolved at 0.29.1
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/pointfreeco/swift-macro-testing.git
Working copy of https://github.com/pointfreeco/swift-macro-testing.git resolved at 0.7.0
Creating working copy for https://github.com/apple/swift-markdown.git
Working copy of https://github.com/apple/swift-markdown.git resolved at 0.9.0
warning: 'swift-format': Conflicting identity for swift-syntax: dependency 'github.com/apple/swift-syntax' and dependency 'github.com/swiftlang/swift-syntax' both point to the same package identity 'swift-syntax'. The dependencies are introduced through the following chains: (A) /host/spi-builder-workspace->github.com/swiftlang/swift-format->github.com/apple/swift-syntax (B) /host/spi-builder-workspace->github.com/swiftlang/swift-syntax. If there are multiple chains that lead to the same dependency, only the first chain is shown here. To see all chains use debug output option. To resolve the conflict, coordinate with the maintainer of the package that introduces the conflicting dependency. This will be escalated to an error in future versions of SwiftPM.
warning: 'swift-format': Conflicting identity for swift-syntax: dependency 'github.com/apple/swift-syntax' and dependency 'github.com/swiftlang/swift-syntax' both point to the same package identity 'swift-syntax'. The dependencies are introduced through the following chains: (A) /host/spi-builder-workspace->github.com/swiftlang/swift-format->github.com/apple/swift-syntax (B) /host/spi-builder-workspace->github.com/swiftlang/swift-syntax. If there are multiple chains that lead to the same dependency, only the first chain is shown here. To see all chains use debug output option. To resolve the conflict, coordinate with the maintainer of the package that introduces the conflicting dependency. This will be escalated to an error in future versions of SwiftPM.
Building for debugging...
[Computing dependencies]
[Constructing description]
[Pre-planning 1 / 1488]
[Planning 485 / 1488]
[Planning 1123 / 1488]
[Planning 1480 / 1488]
[Planning deferred tasks]
[Constructing 126 / 3483]
[Constructing 3224 / 3483]
warning: no rule to process file '/host/spi-builder-workspace/.build/checkouts/mlx-swift/Source/Cmlx/mlx-generated/metal/arg_reduce.metal' of type 'sourcecode.metal' for architecture 'x86_64'
warning: no rule to process file '/host/spi-builder-workspace/.build/checkouts/mlx-swift/Source/Cmlx/mlx-generated/metal/conv.metal' of type 'sourcecode.metal' for architecture 'x86_64'
warning: no rule to process file '/host/spi-builder-workspace/.build/checkouts/mlx-swift/Source/Cmlx/mlx-generated/metal/gemv.metal' of type 'sourcecode.metal' for architecture 'x86_64'
warning: no rule to process file '/host/spi-builder-workspace/.build/checkouts/mlx-swift/Source/Cmlx/mlx-generated/metal/layer_norm.metal' of type 'sourcecode.metal' for architecture 'x86_64'
warning: no rule to process file '/host/spi-builder-workspace/.build/checkouts/mlx-swift/Source/Cmlx/mlx-generated/metal/random.metal' of type 'sourcecode.metal' for architecture 'x86_64'
warning: no rule to process file '/host/spi-builder-workspace/.build/checkouts/mlx-swift/Source/Cmlx/mlx-generated/metal/rms_norm.metal' of type 'sourcecode.metal' for architecture 'x86_64'
warning: no rule to process file '/host/spi-builder-workspace/.build/checkouts/mlx-swift/Source/Cmlx/mlx-generated/metal/rope.metal' of type 'sourcecode.metal' for architecture 'x86_64'
warning: no rule to process file '/host/spi-builder-workspace/.build/checkouts/mlx-swift/Source/Cmlx/mlx-generated/metal/scaled_dot_product_attention.metal' of type 'sourcecode.metal' for architecture 'x86_64'
warning: no rule to process file '/host/spi-builder-workspace/.build/checkouts/mlx-swift/Source/Cmlx/mlx-generated/metal/steel/attn/kernels/steel_attention.metal' of type 'sourcecode.metal' for architecture 'x86_64'
[112 / 770] SwiftCompilerPlugin
[272 / 770]
[280 / 770] cmark-gfm-extensions
[288 / 770] cmark-gfm
[295 / 770] cmark-gfm
[300 / 770] cmark-gfm
[306 / 770]
[318 / 780] HTTPTypes
[320 / 789] RealModule
[329 / 816] cmark-gfm
[340 / 816] RealModule
[346 / 816] InternalCollectionsUtilities
[355 / 816] HTTPTypes
[357 / 816] HTTPTypes
[366 / 817] SwiftSyntax510
[368 / 817] Markdown-product
[373 / 818] SwiftSyntax509
[375 / 818] Markdown
[376 / 819] RealModule
[377 / 819] InternalCollectionsUtilities
[378 / 819] RealModule
[380 / 819] InternalCollectionsUtilities
[381 / 819] OrderedCollections
[382 / 819] OrderedCollections
[384 / 819] InternalCollectionsUtilities
[385 / 819] InternalCollectionsUtilities
[387 / 819] HTTPTypes
[389 / 820] InternalCollectionsUtilities
[389 / 820] HTTPTypes-product
[393 / 820] OpenAPIRuntime
[394 / 820] OpenAPIRuntime
[395 / 820] ComplexModule
[397 / 820] SwiftSyntax510
[399 / 820] cmark-gfm
[402 / 822]
[405 / 840] OrderedCollections
[406 / 840] Cmlx
[409 / 840] Cmlx
[410 / 840] Cmlx
[411 / 842] HTTPTypes
[413 / 842] Cmlx
In file included from /host/spi-builder-workspace/.build/checkouts/mlx-swift/Source/Cmlx/mlx/mlx/backend/metal/utils.cpp:3:
In file included from /host/spi-builder-workspace/.build/checkouts/mlx-swift/Source/Cmlx/mlx/mlx/backend/metal/utils.h:8:
In file included from /host/spi-builder-workspace/.build/checkouts/mlx-swift/Source/Cmlx/mlx/mlx/backend/metal/device.h:5:
In file included from /host/spi-builder-workspace/.build/checkouts/mlx-swift/Source/Cmlx/metal-cpp/Metal/Metal.hpp:25:
In file included from /host/spi-builder-workspace/.build/checkouts/mlx-swift/Source/Cmlx/metal-cpp/Metal/MTLAccelerationStructure.hpp:24:
In file included from /host/spi-builder-workspace/.build/checkouts/mlx-swift/Source/Cmlx/metal-cpp/Metal/MTLHeaderBridge.hpp:22:
[1m/host/spi-builder-workspace/.build/checkouts/mlx-swift/Source/Cmlx/metal-cpp/Metal/MTLPrivate.hpp:27:10: [0m[0;1;31mfatal error: [0m[1m'objc/runtime.h' file not found[0m
27 | #include <objc/runtime.h>[0m
| [0;1;32m ^~~~~~~~~~~~~~~~
[0m1 error generated.
error: CompileC /host/spi-builder-workspace/.build/out/Intermediates.noindex/mlx-swift.build/Debug-linux-x86_64/Cmlx-t.build/Objects-normal/x86_64/utils-f4de9c7612a3482112314170721f5769de678168aef9c1aec5249fdff71318ea.o /host/spi-builder-workspace/.build/checkouts/mlx-swift/Source/Cmlx/mlx/mlx/backend/metal/utils.cpp normal x86_64 c++ com.apple.compilers.llvm.clang.1_0.compiler failed with a nonzero exit code. Command line: cd /host
Using response file: /host/spi-builder-workspace/.build/out/Intermediates.noindex/mlx-swift.build/Debug-linux-x86_64/Cmlx-t.build/Objects-normal/x86_64/11b881b950eb02e21769317df93e9b41d1d7f0348e4e0901ae810dce93ca1a57-common-args.resp
/usr/bin/clang -x c++ -target x86_64-unknown-linux-gnu -fmessage-length\=0 -fdiagnostics-show-note-include-stack -fmacro-backtrace-limit\=0 -fcolor-diagnostics -Wno-trigraphs -Wno-missing-field-initializers -Wno-missing-prototypes -Wno-return-type -Wno-non-virtual-dtor -Wno-overloaded-virtual -Wno-exit-time-destructors -Wno-missing-braces -Wparentheses -Wswitch -Wno-unused-function -Wno-unused-label -Wno-unused-parameter -Wno-unused-variable -Wunused-value -Wno-empty-body -Wno-uninitialized -Wno-unknown-pragmas -w -Wno-shadow -Wno-four-char-constants -Wno-conversion -Wno-constant-conversion -Wno-int-conversion -Wno-bool-conversion -Wno-enum-conversion -Wno-float-conversion -Wno-non-literal-null-conversion -Wno-objc-literal-conversion -Wno-shorten-64-to-32 -Wno-newline-eof -Wno-c++11-extensions -Wno-implicit-fallthrough -fstrict-aliasing -Wdeprecated-declarations -Winvalid-offsetof -Wno-sign-conversion -Wno-infinite-recursion -Wno-move -Wno-comma -Wno-block-capture-autoreleasing -Wno-strict-prototypes -Wno-range-loop-analysis -Wno-semicolon-before-method-body --sysroot / @/host/spi-builder-workspace/.build/out/Intermediates.noindex/mlx-swift.build/Debug-linux-x86_64/Cmlx-t.build/Objects-normal/x86_64/11b881b950eb02e21769317df93e9b41d1d7f0348e4e0901ae810dce93ca1a57-common-args.resp -MMD -MT dependencies -MF /host/spi-builder-workspace/.build/out/Intermediates.noindex/mlx-swift.build/Debug-linux-x86_64/Cmlx-t.build/Objects-normal/x86_64/utils-f4de9c7612a3482112314170721f5769de678168aef9c1aec5249fdff71318ea.d --serialize-diagnostics /host/spi-builder-workspace/.build/out/Intermediates.noindex/mlx-swift.build/Debug-linux-x86_64/Cmlx-t.build/Objects-normal/x86_64/utils-f4de9c7612a3482112314170721f5769de678168aef9c1aec5249fdff71318ea.dia -c /host/spi-builder-workspace/.build/checkouts/mlx-swift/Source/Cmlx/mlx/mlx/backend/metal/utils.cpp -o /host/spi-builder-workspace/.build/out/Intermediates.noindex/mlx-swift.build/Debug-linux-x86_64/Cmlx-t.build/Objects-normal/x86_64/utils-f4de9c7612a3482112314170721f5769de678168aef9c1aec5249fdff71318ea.o
error: Build failed
BUILD FAILURE 6.4 linux