Build Information
Failed to build xgrammar, reference v0.2.9 (8f9a12), with Swift 6.2 for Wasm on 10 Nov 2026 12:27:51 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.4
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/mlc-ai/xgrammar.git
Reference: v0.2.9
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/mlc-ai/xgrammar
* tag v0.2.9 -> FETCH_HEAD
HEAD is now at 8f9a127 fix: preserve forbidden bytes across counted repeat lowering (#949)
Submodule path '3rdparty/cpptrace': checked out '6689d14c203eed390ae7bb64f56a983cfd7dff9c'
Submodule path '3rdparty/dlpack': checked out 'bbd2f4d32427e548797929af08cfe2a9cbb3cf12'
Submodule path '3rdparty/googletest': checked out 'df1544bcee0c7ce35cd5ea0b3eb8cc81855a4140'
Submodule '3rdparty/cpptrace' (https://github.com/jeremy-rifkin/cpptrace.git) registered for path '3rdparty/cpptrace'
Submodule '3rdparty/dlpack' (https://github.com/dmlc/dlpack.git) registered for path '3rdparty/dlpack'
Submodule '3rdparty/googletest' (https://github.com/google/googletest.git) registered for path '3rdparty/googletest'
Cloning into '/host/spi-builder-workspace/3rdparty/cpptrace'...
Cloning into '/host/spi-builder-workspace/3rdparty/dlpack'...
Cloning into '/host/spi-builder-workspace/3rdparty/googletest'...
Cloned https://github.com/mlc-ai/xgrammar.git
Revision (git rev-parse @):
8f9a1279fdbed47739bd75b4099d1d059a1ce3e0
SUCCESS checkout https://github.com/mlc-ai/xgrammar.git at v0.2.9
========================================
Build
========================================
Selected platform: wasm
Swift version: 6.2
Building package at path: $PWD
https://github.com/mlc-ai/xgrammar.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:ba6864ed1873dc28d63134b1bd648b09c5ec8270a0ae95720b7f96d84a66a058
Status: Image is up to date for registry.gitlab.com/saguaro1/spi-images:wasm-6.2-latest
Building for debugging...
[0/29] Compiling config.cc
[1/29] Compiling glm.cc
[2/29] Compiling kimi_k3.cc
[3/29] Compiling testing.cc
[4/29] Compiling deepseek.cc
[5/29] Compiling recursion_guard.cc
[6/29] Compiling tokenizer_info.cc
In file included from /host/spi-builder-workspace/cpp/converter_ext/gemma.cc:12:
In file included from /host/spi-builder-workspace/cpp/converter_ext/../grammar_functor.h:17:
/host/spi-builder-workspace/cpp/converter_ext/../compiled_grammar_impl.h:157:16: error: no type named 'mutex' in namespace 'std'
157 | mutable std::mutex adaptive_token_mask_cache_mutex;
| ~~~~~^
1 error generated.
[7/29] Compiling gemma.cc
[7/29] Compiling suffix_automata.cc
[7/29] Compiling json_schema_converter.cc
[7/29] Compiling regex_converter.cc
[7/29] Compiling logging.cc
[7/29] Compiling lark_converter.cc
[7/29] Compiling structural_tag.cc
[7/29] Compiling cohere.cc
BUILD FAILURE 6.2 wasm