Build Information
Failed to build AIChatKitMLX, reference 1.5.0 (79d40d), with Swift 6.2 for Wasm on 9 Oct 2026 10:53:39 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:wasm-6.2-latest swift build --swift-sdk swift-6.2-RELEASE_wasm 2>&1Build Log
========================================
RunAll
========================================
Builder version: 5.1.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/NerdSnipe-Inc/AIChatKitMLX.git
Reference: 1.5.0
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/NerdSnipe-Inc/AIChatKitMLX
* tag 1.5.0 -> FETCH_HEAD
HEAD is now at 79d40d6 Report adapter status and allow retry; tolerate a stray string delimiter in Gemma tool calls (1.5.0)
Cloned https://github.com/NerdSnipe-Inc/AIChatKitMLX.git
Revision (git rev-parse @):
79d40d626eb354b4eb1ae893be0ba22a451cf126
SPI manifest file found: $PWD/.spi.yml
SUCCESS checkout https://github.com/NerdSnipe-Inc/AIChatKitMLX.git at 1.5.0
========================================
Build
========================================
Selected platform: wasm
Swift version: 6.2
Building package at path: $PWD
https://github.com/NerdSnipe-Inc/AIChatKitMLX.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:wasm-6.2-latest swift build --swift-sdk swift-6.2-RELEASE_wasm 2>&1
wasm-6.2-latest: Pulling from saguaro1/spi-images
Digest: sha256:c092ff8dc506a2a30e6239b6992792fd4f7dfaaa46cac3b3c48d8fe35e954282
Status: Image is up to date for registry.gitlab.com/saguaro1/spi-images:wasm-6.2-latest
Fetching https://github.com/ml-explore/mlx-swift
Fetching https://github.com/ml-explore/mlx-swift-lm.git
Fetching https://github.com/NerdSnipe-Inc/AIChatKit.git
Fetching https://github.com/huggingface/swift-huggingface.git
Fetching https://github.com/kevinhermawan/swift-json-schema.git
Fetching https://github.com/huggingface/swift-transformers.git
[1/298] Fetching aichatkit
[207/521] Fetching aichatkit, swift-json-schema
[522/3488] Fetching aichatkit, swift-json-schema, swift-huggingface
[3489/10572] Fetching aichatkit, swift-json-schema, swift-huggingface, swift-transformers
[10573/27656] Fetching aichatkit, swift-json-schema, swift-huggingface, swift-transformers, mlx-swift
Fetched https://github.com/huggingface/swift-transformers.git from cache (0.86s)
[3659/20572] Fetching aichatkit, swift-json-schema, swift-huggingface, mlx-swift
[20573/43085] Fetching aichatkit, swift-json-schema, swift-huggingface, mlx-swift, mlx-swift-lm
Fetched https://github.com/kevinhermawan/swift-json-schema.git from cache (3.13s)
Fetched https://github.com/NerdSnipe-Inc/AIChatKit.git from cache (3.13s)
Fetched https://github.com/huggingface/swift-huggingface.git from cache (3.13s)
Fetched https://github.com/ml-explore/mlx-swift from cache (3.14s)
Fetched https://github.com/ml-explore/mlx-swift-lm.git from cache (3.15s)
Computing version for https://github.com/kevinhermawan/swift-json-schema.git
Computed https://github.com/kevinhermawan/swift-json-schema.git at 2.0.1 (3.29s)
Computing version for https://github.com/ml-explore/mlx-swift-lm.git
Computed https://github.com/ml-explore/mlx-swift-lm.git at 3.31.4 (0.18s)
Fetching https://github.com/swiftlang/swift-syntax.git
[1/80403] Fetching swift-syntax
Fetched https://github.com/swiftlang/swift-syntax.git from cache (3.58s)
Computing version for https://github.com/ml-explore/mlx-swift
Computed https://github.com/ml-explore/mlx-swift at 0.31.4 (0.19s)
Fetching https://github.com/apple/swift-numerics
[1/6717] Fetching swift-numerics
Fetched https://github.com/apple/swift-numerics from cache (0.66s)
Computing version for https://github.com/NerdSnipe-Inc/AIChatKit.git
Computed https://github.com/NerdSnipe-Inc/AIChatKit.git at 2.0.0 (0.80s)
Fetching https://github.com/gonzalezreal/swift-markdown-ui.git
Fetching https://github.com/JohnSundell/Splash.git
[1/2180] Fetching splash
[241/10702] Fetching splash, swift-markdown-ui
Fetched https://github.com/JohnSundell/Splash.git from cache (1.28s)
Fetched https://github.com/gonzalezreal/swift-markdown-ui.git from cache (1.30s)
Computing version for https://github.com/JohnSundell/Splash.git
Computed https://github.com/JohnSundell/Splash.git at 0.16.0 (1.47s)
Computing version for https://github.com/gonzalezreal/swift-markdown-ui.git
Computed https://github.com/gonzalezreal/swift-markdown-ui.git at 2.4.1 (0.16s)
Fetching https://github.com/swiftlang/swift-cmark
Fetching https://github.com/gonzalezreal/NetworkImage
[1/1072] Fetching networkimage
[527/19687] Fetching networkimage, swift-cmark
Fetched https://github.com/gonzalezreal/NetworkImage from cache (0.99s)
Fetched https://github.com/swiftlang/swift-cmark from cache (0.99s)
Computing version for https://github.com/gonzalezreal/NetworkImage
Computed https://github.com/gonzalezreal/NetworkImage at 6.0.1 (1.14s)
Computing version for https://github.com/swiftlang/swift-syntax.git
Computed https://github.com/swiftlang/swift-syntax.git at 603.0.2 (0.25s)
Computing version for https://github.com/huggingface/swift-transformers.git
Computed https://github.com/huggingface/swift-transformers.git at 1.3.4 (0.16s)
Fetching https://github.com/huggingface/swift-jinja.git
Fetching https://github.com/apple/swift-collections.git
Fetching https://github.com/ibireme/yyjson.git
Fetching https://github.com/apple/swift-crypto.git
[1/1376] Fetching swift-jinja
[1377/30067] Fetching swift-jinja, swift-collections
[1378/35147] Fetching swift-jinja, swift-collections, yyjson
[7828/53750] Fetching swift-jinja, swift-collections, yyjson, swift-crypto
Fetched https://github.com/apple/swift-collections.git from cache (1.28s)
[8689/25059] Fetching swift-jinja, yyjson, swift-crypto
Fetched https://github.com/huggingface/swift-jinja.git from cache (3.22s)
Fetched https://github.com/ibireme/yyjson.git from cache (3.23s)
Fetched https://github.com/apple/swift-crypto.git from cache (3.24s)
Computing version for https://github.com/ibireme/yyjson.git
Computed https://github.com/ibireme/yyjson.git at 0.12.0 (3.40s)
Computing version for https://github.com/huggingface/swift-jinja.git
Computed https://github.com/huggingface/swift-jinja.git at 2.5.1 (0.13s)
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/huggingface/swift-huggingface.git
Computed https://github.com/huggingface/swift-huggingface.git at 0.13.0 (0.15s)
Fetching https://github.com/mattt/EventSource.git
[1/303] Fetching eventsource
Fetched https://github.com/mattt/EventSource.git from cache (0.89s)
Computing version for https://github.com/swiftlang/swift-cmark
Computed https://github.com/swiftlang/swift-cmark at 0.9.0 (1.07s)
Computing version for https://github.com/mattt/EventSource.git
Computed https://github.com/mattt/EventSource.git at 1.5.1 (0.14s)
Computing version for https://github.com/apple/swift-collections.git
Computed https://github.com/apple/swift-collections.git at 1.7.2 (0.23s)
Computing version for https://github.com/apple/swift-crypto.git
Computed https://github.com/apple/swift-crypto.git at 4.5.2 (1.17s)
Fetching https://github.com/apple/swift-asn1.git
[1/1995] Fetching swift-asn1
Fetched https://github.com/apple/swift-asn1.git from cache (0.50s)
Computing version for https://github.com/apple/swift-asn1.git
Computed https://github.com/apple/swift-asn1.git at 1.7.3 (0.68s)
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.2
Creating working copy for https://github.com/kevinhermawan/swift-json-schema.git
Working copy of https://github.com/kevinhermawan/swift-json-schema.git resolved at 2.0.1
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/apple/swift-numerics
Working copy of https://github.com/apple/swift-numerics resolved at 1.1.1
Creating working copy for https://github.com/ml-explore/mlx-swift-lm.git
Working copy of https://github.com/ml-explore/mlx-swift-lm.git resolved at 3.31.4
Creating working copy for https://github.com/gonzalezreal/NetworkImage
Working copy of https://github.com/gonzalezreal/NetworkImage resolved at 6.0.1
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.4
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/ibireme/yyjson.git
Working copy of https://github.com/ibireme/yyjson.git resolved at 0.12.0
Creating working copy for https://github.com/gonzalezreal/swift-markdown-ui.git
Working copy of https://github.com/gonzalezreal/swift-markdown-ui.git resolved at 2.4.1
Creating working copy for https://github.com/huggingface/swift-huggingface.git
Working copy of https://github.com/huggingface/swift-huggingface.git resolved at 0.13.0
Creating working copy for https://github.com/apple/swift-crypto.git
Working copy of https://github.com/apple/swift-crypto.git resolved at 4.5.2
Creating working copy for https://github.com/JohnSundell/Splash.git
Working copy of https://github.com/JohnSundell/Splash.git resolved at 0.16.0
Creating working copy for https://github.com/mattt/EventSource.git
Working copy of https://github.com/mattt/EventSource.git resolved at 1.5.1
Creating working copy for https://github.com/swiftlang/swift-cmark
Working copy of https://github.com/swiftlang/swift-cmark resolved at 0.9.0
Creating working copy for https://github.com/NerdSnipe-Inc/AIChatKit.git
Working copy of https://github.com/NerdSnipe-Inc/AIChatKit.git resolved at 2.0.0
Creating working copy for https://github.com/apple/swift-asn1.git
Working copy of https://github.com/apple/swift-asn1.git resolved at 1.7.3
Creating working copy for https://github.com/huggingface/swift-transformers.git
Working copy of https://github.com/huggingface/swift-transformers.git resolved at 1.3.4
Building for debugging...
[0/588] Write sources
[20/588] Copying gpt2_tokenizer_config.json
[22/588] Copying t5_tokenizer_config.json
[23/588] Write sources
[41/588] Compiling version.cpp
[42/588] Compiling _NumericsShims _NumericsShims.c
[43/588] Compiling _SwiftSyntaxCShims PlatformMutex.c
In file included from /host/spi-builder-workspace/.build/checkouts/mlx-swift/Source/Cmlx/mlx/mlx/scheduler.cpp:3:
/host/spi-builder-workspace/.build/checkouts/mlx-swift/Source/Cmlx/mlx/mlx/scheduler.h:19:8: error: no type named 'mutex' in namespace 'std'
19 | std::mutex mtx;
| ~~~~~^
/host/spi-builder-workspace/.build/checkouts/mlx-swift/Source/Cmlx/mlx/mlx/scheduler.h:21:8: error: no type named 'condition_variable' in namespace 'std'
21 | std::condition_variable cond;
| ~~~~~^
/host/spi-builder-workspace/.build/checkouts/mlx-swift/Source/Cmlx/mlx/mlx/scheduler.h:23:8: error: no type named 'thread' in namespace 'std'
23 | std::thread thread;
| ~~~~~^
/host/spi-builder-workspace/.build/checkouts/mlx-swift/Source/Cmlx/mlx/mlx/scheduler.h:29:28: error: no member named 'mutex' in namespace 'std'
29 | std::lock_guard<std::mutex> lk(mtx);
| ~~~~~^
/host/spi-builder-workspace/.build/checkouts/mlx-swift/Source/Cmlx/mlx/mlx/scheduler.h:40:14: error: no template named 'unique_lock' in namespace 'std'; did you mean 'unique_copy'?
40 | std::unique_lock<std::mutex> lk(mtx);
| ~~~~~^~~~~~~~~~~
| unique_copy
/root/.swiftpm/swift-sdks/swift-6.2-RELEASE_wasm.artifactbundle/swift-6.2-RELEASE_wasm/wasm32-unknown-wasip1/WASI.sdk/include/c++/v1/__algorithm/unique_copy.h:102:1: note: 'unique_copy' declared here
102 | unique_copy(_InputIterator __first, _InputIterator __last, _OutputIterator __result, _BinaryPredicate __pred) {
| ^
In file included from /host/spi-builder-workspace/.build/checkouts/mlx-swift/Source/Cmlx/mlx/mlx/scheduler.cpp:3:
/host/spi-builder-workspace/.build/checkouts/mlx-swift/Source/Cmlx/mlx/mlx/scheduler.h:40:31: error: no member named 'mutex' in namespace 'std'
40 | std::unique_lock<std::mutex> lk(mtx);
| ~~~~~^
/host/spi-builder-workspace/.build/checkouts/mlx-swift/Source/Cmlx/mlx/mlx/scheduler.h:41:19: error: use of undeclared identifier 'lk'
41 | cond.wait(lk, [this] { return !this->q.empty() || this->stop; });
| ^
/host/spi-builder-workspace/.build/checkouts/mlx-swift/Source/Cmlx/mlx/mlx/scheduler.h:56:28: error: no member named 'mutex' in namespace 'std'
56 | std::lock_guard<std::mutex> lk(mtx);
| ~~~~~^
/host/spi-builder-workspace/.build/checkouts/mlx-swift/Source/Cmlx/mlx/mlx/scheduler.h:160:8: error: no type named 'condition_variable' in namespace 'std'
160 | std::condition_variable completion_cv;
| ~~~~~^
/host/spi-builder-workspace/.build/checkouts/mlx-swift/Source/Cmlx/mlx/mlx/scheduler.h:161:8: error: no type named 'mutex' in namespace 'std'
161 | std::mutex mtx;
| ~~~~~^
/host/spi-builder-workspace/.build/checkouts/mlx-swift/Source/Cmlx/mlx/mlx/scheduler.h:112:28: error: no member named 'mutex' in namespace 'std'
112 | std::lock_guard<std::mutex> lk(mtx);
| ~~~~~^
/host/spi-builder-workspace/.build/checkouts/mlx-swift/Source/Cmlx/mlx/mlx/scheduler.h:120:28: error: no member named 'mutex' in namespace 'std'
120 | std::lock_guard<std::mutex> lk(mtx);
| ~~~~~^
/host/spi-builder-workspace/.build/checkouts/mlx-swift/Source/Cmlx/mlx/mlx/scheduler.h:131:10: error: no template named 'unique_lock' in namespace 'std'; did you mean 'unique_copy'?
131 | std::unique_lock<std::mutex> lk(mtx);
| ~~~~~^~~~~~~~~~~
| unique_copy
/root/.swiftpm/swift-sdks/swift-6.2-RELEASE_wasm.artifactbundle/swift-6.2-RELEASE_wasm/wasm32-unknown-wasip1/WASI.sdk/include/c++/v1/__algorithm/unique_copy.h:102:1: note: 'unique_copy' declared here
102 | unique_copy(_InputIterator __first, _InputIterator __last, _OutputIterator __result, _BinaryPredicate __pred) {
| ^
In file included from /host/spi-builder-workspace/.build/checkouts/mlx-swift/Source/Cmlx/mlx/mlx/scheduler.cpp:3:
/host/spi-builder-workspace/.build/checkouts/mlx-swift/Source/Cmlx/mlx/mlx/scheduler.h:131:27: error: no member named 'mutex' in namespace 'std'
131 | std::unique_lock<std::mutex> lk(mtx);
| ~~~~~^
/host/spi-builder-workspace/.build/checkouts/mlx-swift/Source/Cmlx/mlx/mlx/scheduler.h:134:26: error: use of undeclared identifier 'lk'
134 | completion_cv.wait(lk, [this, n_tasks_old] {
| ^
/host/spi-builder-workspace/.build/checkouts/mlx-swift/Source/Cmlx/mlx/mlx/scheduler.cpp:47:36: error: no member named 'promise' in namespace 'std'
47 | auto p = std::make_shared<std::promise<void>>();
| ~~~~~^
/host/spi-builder-workspace/.build/checkouts/mlx-swift/Source/Cmlx/mlx/mlx/scheduler.cpp:47:48: error: expected '(' for function-style cast or type construction
47 | auto p = std::make_shared<std::promise<void>>();
| ~~~~^
/host/spi-builder-workspace/.build/checkouts/mlx-swift/Source/Cmlx/mlx/mlx/scheduler.cpp:47:51: error: expected expression
47 | auto p = std::make_shared<std::promise<void>>();
| ^
/host/spi-builder-workspace/.build/checkouts/mlx-swift/Source/Cmlx/mlx/mlx/scheduler.cpp:48:10: error: no member named 'future' in namespace 'std'
48 | std::future<void> f = p->get_future();
| ~~~~~^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
[44/588] Compiling scheduler.cpp
[44/588] Compiling utils.cpp
[44/588] Compiling primitives.cpp
[44/588] Compiling ops.cpp
[44/588] Compiling transforms.cpp
[44/588] Write swift-version-24593BA9C3E375BF.txt
[44/588] Compiling random.cpp
[44/588] Compiling yyjson.c
BUILD FAILURE 6.2 wasm