Build Information
Failed to build coreai-kit, reference 0.7.3 (f32626), with Swift 6.3 for Wasm on 30 Sep 2026 01:57:53 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-54344843-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.3-latest swift build --swift-sdk swift-6.3.2-RELEASE_wasm 2>&1Build Log
========================================
RunAll
========================================
Builder version: 5.1.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/john-rocky/coreai-kit.git
Reference: 0.7.3
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/john-rocky/coreai-kit
* tag 0.7.3 -> FETCH_HEAD
HEAD is now at f326260 0.7.3: deploys to macOS 26 / iOS 26; Apple's foundation model as a decision backend; measured catalog sizes
Cloned https://github.com/john-rocky/coreai-kit.git
Revision (git rev-parse @):
f32626037741222c17042cd1bc0301185c077e8e
SPI manifest file found: $PWD/.spi.yml
SUCCESS checkout https://github.com/john-rocky/coreai-kit.git at 0.7.3
========================================
Build
========================================
Selected platform: wasm
Swift version: 6.3
Building package at path: $PWD
https://github.com/john-rocky/coreai-kit.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-54344843-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.3-latest swift build --swift-sdk swift-6.3.2-RELEASE_wasm 2>&1
wasm-6.3-latest: Pulling from saguaro1/spi-images
Digest: sha256:253aad7f5b11d25cf9eaef34120b94cd8a325782929c57fb304a7711494a3f9a
Status: Image is up to date for registry.gitlab.com/saguaro1/spi-images:wasm-6.3-latest
Fetching https://github.com/huggingface/swift-transformers
Fetching https://github.com/john-rocky/coreai-models
Fetching https://github.com/huggingface/swift-huggingface.git
[1/2773] Fetching swift-huggingface
[2774/9829] Fetching swift-huggingface, swift-transformers
Fetched https://github.com/huggingface/swift-huggingface.git from cache (0.53s)
[71/7056] Fetching swift-transformers
Fetched https://github.com/huggingface/swift-transformers from cache (0.79s)
[1/3028] Fetching coreai-models
Fetched https://github.com/john-rocky/coreai-models from cache (1.23s)
Computing version for https://github.com/huggingface/swift-huggingface.git
Computed https://github.com/huggingface/swift-huggingface.git at 0.11.0 (1.41s)
Fetching https://github.com/mattt/EventSource.git
Fetching https://github.com/apple/swift-crypto.git
[1/303] Fetching eventsource
Fetched https://github.com/mattt/EventSource.git from cache (0.44s)
[1/18572] Fetching swift-crypto
Fetched https://github.com/apple/swift-crypto.git from cache (1.62s)
Computing version for https://github.com/mattt/EventSource.git
Computed https://github.com/mattt/EventSource.git at 1.5.1 (1.86s)
Computing version for https://github.com/huggingface/swift-transformers
Computed https://github.com/huggingface/swift-transformers at 1.3.4 (0.36s)
Fetching https://github.com/huggingface/swift-jinja.git
Fetching https://github.com/apple/swift-collections.git
Fetching https://github.com/ibireme/yyjson.git
[1/1376] Fetching swift-jinja
[1377/6362] Fetching swift-jinja, yyjson
[6363/34420] Fetching swift-jinja, yyjson, swift-collections
Fetched https://github.com/ibireme/yyjson.git from cache (1.11s)
[1657/29434] Fetching swift-jinja, swift-collections
Fetched https://github.com/huggingface/swift-jinja.git from cache (1.77s)
Fetched https://github.com/apple/swift-collections.git from cache (1.78s)
Computing version for https://github.com/ibireme/yyjson.git
Computed https://github.com/ibireme/yyjson.git at 0.12.0 (2.70s)
Computing version for https://github.com/huggingface/swift-jinja.git
Computed https://github.com/huggingface/swift-jinja.git at 2.5.1 (0.15s)
Computing version for https://github.com/apple/swift-collections.git
Computed https://github.com/apple/swift-collections.git at 1.7.1 (0.24s)
Computing version for https://github.com/apple/swift-crypto.git
Computed https://github.com/apple/swift-crypto.git at 4.5.2 (1.10s)
Fetching https://github.com/apple/swift-asn1.git
[1/1986] 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.71s)
Computing version for https://github.com/john-rocky/coreai-models
Computed https://github.com/john-rocky/coreai-models at 0.2.8-zoo (0.20s)
Fetching https://github.com/mlc-ai/xgrammar
[1/30530] Fetching xgrammar
Fetched https://github.com/mlc-ai/xgrammar from cache (1.97s)
Computing version for https://github.com/mlc-ai/xgrammar
Computed https://github.com/mlc-ai/xgrammar at 0.2.2 (2.15s)
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.1
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/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/mattt/EventSource.git
Working copy of https://github.com/mattt/EventSource.git resolved at 1.5.1
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/john-rocky/coreai-models
Working copy of https://github.com/john-rocky/coreai-models resolved at 0.2.8-zoo
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/huggingface/swift-huggingface.git
Working copy of https://github.com/huggingface/swift-huggingface.git resolved at 0.11.0
Creating working copy for https://github.com/huggingface/swift-transformers
Working copy of https://github.com/huggingface/swift-transformers resolved at 1.3.4
Creating working copy for https://github.com/mlc-ai/xgrammar
Working copy of https://github.com/mlc-ai/xgrammar resolved at 0.2.2
Building for debugging...
[0/445] Copying t5_tokenizer_config.json
[0/445] Write sources
[0/445] Copying gpt2_tokenizer_config.json
[0/445] Copying parakeet_mel_filters_128x257.f32
[0/445] Copying mel_filters.f32
[0/445] Copying g4msl
[8/445] Write sources
[10/445] Write swift-version-24593BA9C3E375BF.txt
[11/445] Compiling regex_converter.cc
[11/445] Compiling logging.cc
[13/445] Compiling recursion_guard.cc
[14/445] Compiling testing.cc
[15/445] Compiling json_schema_converter_ext.cc
[16/445] Compiling tokenizer_info.cc
[17/445] Compiling grammar_parser.cc
[18/445] Compiling grammar_printer.cc
[19/445] Compiling grammar_builder.cc
/host/spi-builder-workspace/.build/checkouts/xgrammar/cpp/grammar_functor.cc:2534:8: error: no type named 'mutex' in namespace 'std'
2534 | std::mutex mutex_;
| ~~~~~^
/host/spi-builder-workspace/.build/checkouts/xgrammar/cpp/grammar_functor.cc:2581:19: error: no member named 'mutex' in namespace 'std'; did you mean 'mutex_'?
2581 | std::lock_guard<std::mutex> lock(mutex_);
| ^~~~~~~~~~
| mutex_
/host/spi-builder-workspace/.build/checkouts/xgrammar/cpp/grammar_functor.cc:2534:14: note: 'mutex_' declared here
2534 | std::mutex mutex_;
| ^
/host/spi-builder-workspace/.build/checkouts/xgrammar/cpp/grammar_functor.cc:2611:19: error: no member named 'mutex' in namespace 'std'; did you mean 'mutex_'?
2611 | std::lock_guard<std::mutex> lock(mutex_);
| ^~~~~~~~~~
| mutex_
/host/spi-builder-workspace/.build/checkouts/xgrammar/cpp/grammar_functor.cc:2534:14: note: 'mutex_' declared here
2534 | std::mutex mutex_;
| ^
/host/spi-builder-workspace/.build/checkouts/xgrammar/cpp/grammar_functor.cc:2650:19: error: no member named 'mutex' in namespace 'std'; did you mean 'mutex_'?
2650 | std::lock_guard<std::mutex> lock(mutex_);
| ^~~~~~~~~~
| mutex_
/host/spi-builder-workspace/.build/checkouts/xgrammar/cpp/grammar_functor.cc:2534:14: note: 'mutex_' declared here
2534 | std::mutex mutex_;
| ^
In file included from /host/spi-builder-workspace/.build/checkouts/xgrammar/cpp/grammar_functor.cc:6:
In file included from /host/spi-builder-workspace/.build/checkouts/xgrammar/cpp/grammar_functor.h:10:
In file included from /host/spi-builder-workspace/.build/checkouts/xgrammar/include/xgrammar/xgrammar.h:10:
In file included from /host/spi-builder-workspace/.build/checkouts/xgrammar/include/xgrammar/compiler.h:10:
In file included from /host/spi-builder-workspace/.build/checkouts/xgrammar/include/xgrammar/grammar.h:10:
In file included from /host/spi-builder-workspace/.build/checkouts/xgrammar/include/xgrammar/object.h:10:
In file included from /root/.swiftpm/swift-sdks/swift-6.3.2-RELEASE_wasm.artifactbundle/swift-6.3.2-RELEASE_wasm/wasm32-unknown-wasip1/WASI.sdk/include/c++/v1/memory:950:
In file included from /root/.swiftpm/swift-sdks/swift-6.3.2-RELEASE_wasm.artifactbundle/swift-6.3.2-RELEASE_wasm/wasm32-unknown-wasip1/WASI.sdk/include/c++/v1/__memory/inout_ptr.h:16:
/root/.swiftpm/swift-sdks/swift-6.3.2-RELEASE_wasm.artifactbundle/swift-6.3.2-RELEASE_wasm/wasm32-unknown-wasip1/WASI.sdk/include/c++/v1/__memory/shared_ptr.h:678:20: error: incompatible pointer types assigning to '__shared_weak_count *' from 'std::__shared_ptr_emplace<xgrammar::RuleLevelCache::Impl, std::allocator<xgrammar::RuleLevelCache::Impl>> *'
678 | __r.__cntrl_ = __cntrl;
| ^~~~~~~
/root/.swiftpm/swift-sdks/swift-6.3.2-RELEASE_wasm.artifactbundle/swift-6.3.2-RELEASE_wasm/wasm32-unknown-wasip1/WASI.sdk/include/c++/v1/__memory/shared_ptr.h:738:27: note: in instantiation of function template specialization 'std::shared_ptr<xgrammar::RuleLevelCache::Impl>::__create_with_control_block<xgrammar::RuleLevelCache::Impl, std::__shared_ptr_emplace<xgrammar::RuleLevelCache::Impl, std::allocator<xgrammar::RuleLevelCache::Impl>>>' requested here
738 | return shared_ptr<_Tp>::__create_with_control_block(
| ^
/root/.swiftpm/swift-sdks/swift-6.3.2-RELEASE_wasm.artifactbundle/swift-6.3.2-RELEASE_wasm/wasm32-unknown-wasip1/WASI.sdk/include/c++/v1/__memory/shared_ptr.h:744:15: note: in instantiation of function template specialization 'std::allocate_shared<xgrammar::RuleLevelCache::Impl, std::allocator<xgrammar::RuleLevelCache::Impl>, unsigned long &, 0>' requested here
744 | return std::allocate_shared<_Tp>(allocator<__remove_cv_t<_Tp> >(), std::forward<_Args>(__args)...);
| ^
/host/spi-builder-workspace/.build/checkouts/xgrammar/cpp/grammar_functor.cc:2647:19: note: in instantiation of function template specialization 'std::make_shared<xgrammar::RuleLevelCache::Impl, unsigned long &, 0>' requested here
2647 | : pimpl_(std::make_shared<Impl>(max_cache_memory_size)) {}
| ^
5 errors generated.
[20/445] Compiling grammar_functor.cc
[20/445] Compiling grammar_compiler.cc
[20/445] Compiling fsm_builder.cc
[20/445] Compiling grammar.cc
In file included from /host/spi-builder-workspace/.build/checkouts/xgrammar/cpp/grammar_matcher.cc:28:
/host/spi-builder-workspace/.build/checkouts/xgrammar/cpp/support/thread_pool.h:71:46: error: no template named 'shared_future' in namespace 'std'; did you mean 'shared_ptr'?
71 | auto Submit(F&& f, Args&&... args) -> std::shared_future<std::invoke_result_t<F, Args...>> {
| ~~~~~^~~~~~~~~~~~~
| shared_ptr
/root/.swiftpm/swift-sdks/swift-6.3.2-RELEASE_wasm.artifactbundle/swift-6.3.2-RELEASE_wasm/wasm32-unknown-wasip1/WASI.sdk/include/c++/v1/__memory/shared_ptr.h:307:38: note: 'shared_ptr' declared here
307 | class _LIBCPP_SHARED_PTR_TRIVIAL_ABI shared_ptr {
| ^
[20/445] Compiling grammar_matcher.cc
[20/445] Compiling yyjson.c
[20/445] Compiling json_schema_converter.cc
[20/445] Compiling structural_tag.cc
BUILD FAILURE 6.3 wasm