Build Information
Failed to build xgrammar, reference v0.2.9 (8f9a12), with Swift 6.1 for Wasm on 10 Nov 2026 12:33:38 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-53886768-1":/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.1-latest swift build --swift-sdk wasm32-unknown-wasi 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.1
Building package at path: $PWD
https://github.com/mlc-ai/xgrammar.git
https://github.com/mlc-ai/xgrammar.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-53886768-1":/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.1-latest swift build --swift-sdk wasm32-unknown-wasi -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures 2>&1
wasm-6.1-latest: Pulling from saguaro1/spi-images
Digest: sha256:c39884094bf9874b7a6bb32559a257cc0b80a9b15eb9e58adaa15f5bda5e4fb5
Status: Image is up to date for registry.gitlab.com/saguaro1/spi-images:wasm-6.1-latest
Building for debugging...
[0/29] Compiling logging.cc
[1/29] Compiling recursion_guard.cc
[2/29] Compiling qwen.cc
[3/29] Compiling glm.cc
[4/29] Compiling testing.cc
[5/29] Compiling suffix_automata.cc
[6/29] Compiling regex_converter.cc
[7/29] Compiling tokenizer_info.cc
[8/29] Compiling minimax_m3.cc
[9/29] Compiling earley_parser.cc
In file included from /host/spi-builder-workspace/cpp/grammar_compiler.cc:22:
/host/spi-builder-workspace/cpp/compiled_grammar_impl.h:157:16: error: no type named 'mutex' in namespace 'std'
157 | mutable std::mutex adaptive_token_mask_cache_mutex;
| ~~~~~^
In file included from /host/spi-builder-workspace/cpp/grammar_compiler.cc:30:
/host/spi-builder-workspace/cpp/support/thread_pool.h:79:46: error: no template named 'shared_future' in namespace 'std'; did you mean 'shared_ptr'?
79 | auto Submit(F&& f, Args&&... args) -> std::shared_future<std::invoke_result_t<F, Args...>> {
| ~~~~~^~~~~~~~~~~~~
| shared_ptr
/root/.swiftpm/swift-sdks/swift-wasm-6.1-RELEASE-wasm32-unknown-wasi.artifactbundle/6.1-RELEASE-wasm32-unknown-wasi/wasm32-unknown-wasi/WASI.sdk/include/c++/v1/__memory/shared_ptr.h:416:59: note: 'shared_ptr' declared here
416 | class _LIBCPP_SHARED_PTR_TRIVIAL_ABI _LIBCPP_TEMPLATE_VIS shared_ptr {
| ^
In file included from /host/spi-builder-workspace/cpp/grammar_compiler.cc:30:
/host/spi-builder-workspace/cpp/support/thread_pool.h:194:20: error: no member named 'thread' in namespace 'std'; did you mean 'fread'?
194 | std::vector<std::thread> workers_;
| ~~~~~^~~~~~
| fread
/root/.swiftpm/swift-sdks/swift-wasm-6.1-RELEASE-wasm32-unknown-wasi.artifactbundle/6.1-RELEASE-wasm32-unknown-wasi/wasm32-unknown-wasi/WASI.sdk/include/c++/v1/cstdio:141:9: note: 'fread' declared here
141 | using ::fread _LIBCPP_USING_IF_EXISTS;
| ^
In file included from /host/spi-builder-workspace/cpp/grammar_compiler.cc:30:
/host/spi-builder-workspace/cpp/support/thread_pool.h:194:15: error: template argument for template type parameter must be a type
194 | std::vector<std::thread> workers_;
| ^~~~~~~~~~~
/root/.swiftpm/swift-sdks/swift-wasm-6.1-RELEASE-wasm32-unknown-wasi.artifactbundle/6.1-RELEASE-wasm32-unknown-wasi/wasm32-unknown-wasi/WASI.sdk/include/c++/v1/vector:388:17: note: template parameter is declared here
388 | template <class _Tp, class _Allocator /* = allocator<_Tp> */>
| ^
In file included from /host/spi-builder-workspace/cpp/grammar_compiler.cc:30:
/host/spi-builder-workspace/cpp/support/thread_pool.h:198:8: error: no type named 'mutex' in namespace 'std'
198 | std::mutex queue_mutex_;
| ~~~~~^
/host/spi-builder-workspace/cpp/support/thread_pool.h:200:8: error: no type named 'condition_variable' in namespace 'std'
200 | std::condition_variable queue_condition_;
| ~~~~~^
/host/spi-builder-workspace/cpp/support/thread_pool.h:202:8: error: no type named 'condition_variable' in namespace 'std'
202 | std::condition_variable tasks_done_condition_;
| ~~~~~^
/host/spi-builder-workspace/cpp/support/thread_pool.h:37:40: error: no member named 'thread' in namespace 'std'
37 | ThreadPool(size_t num_threads = std::thread::hardware_concurrency()) {
| ~~~~~^
/host/spi-builder-workspace/cpp/support/thread_pool.h:45:18: error: no template named 'unique_lock' in namespace 'std'; did you mean 'unique_copy'?
45 | std::unique_lock<std::mutex> lock(queue_mutex_);
| ~~~~~^~~~~~~~~~~
| unique_copy
/root/.swiftpm/swift-sdks/swift-wasm-6.1-RELEASE-wasm32-unknown-wasi.artifactbundle/6.1-RELEASE-wasm32-unknown-wasi/wasm32-unknown-wasi/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/cpp/grammar_compiler.cc:30:
/host/spi-builder-workspace/cpp/support/thread_pool.h:45:35: error: no member named 'mutex' in namespace 'std'
45 | std::unique_lock<std::mutex> lock(queue_mutex_);
| ~~~~~^
/host/spi-builder-workspace/cpp/support/thread_pool.h:46:35: error: use of undeclared identifier 'lock'; did you mean 'clock'?
46 | queue_condition_.wait(lock, [this] { return shutdown_ || !task_queue_.empty(); });
| ^~~~
| clock
/root/.swiftpm/swift-sdks/swift-wasm-6.1-RELEASE-wasm32-unknown-wasi.artifactbundle/6.1-RELEASE-wasm32-unknown-wasi/wasm32-unknown-wasi/WASI.sdk/include/wasm32-wasi/time.h:71:9: note: 'clock' declared here
71 | clock_t clock (void);
| ^
In file included from /host/spi-builder-workspace/cpp/grammar_compiler.cc:30:
/host/spi-builder-workspace/cpp/support/thread_pool.h:58:18: error: no template named 'unique_lock' in namespace 'std'; did you mean 'unique_copy'?
58 | std::unique_lock<std::mutex> lock(queue_mutex_);
| ~~~~~^~~~~~~~~~~
| unique_copy
/root/.swiftpm/swift-sdks/swift-wasm-6.1-RELEASE-wasm32-unknown-wasi.artifactbundle/6.1-RELEASE-wasm32-unknown-wasi/wasm32-unknown-wasi/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/cpp/grammar_compiler.cc:30:
/host/spi-builder-workspace/cpp/support/thread_pool.h:58:35: error: no member named 'mutex' in namespace 'std'
58 | std::unique_lock<std::mutex> lock(queue_mutex_);
| ~~~~~^
/host/spi-builder-workspace/cpp/support/thread_pool.h:83:39: error: no member named 'packaged_task' in namespace 'std'
83 | auto task = std::make_shared<std::packaged_task<return_type()>>(
| ~~~~~^
/host/spi-builder-workspace/cpp/support/thread_pool.h:87:10: error: no template named 'shared_future' in namespace 'std'; did you mean 'shared_ptr'?
87 | std::shared_future<return_type> res = task->get_future().share();
| ~~~~~^~~~~~~~~~~~~
| shared_ptr
/root/.swiftpm/swift-sdks/swift-wasm-6.1-RELEASE-wasm32-unknown-wasi.artifactbundle/6.1-RELEASE-wasm32-unknown-wasi/wasm32-unknown-wasi/WASI.sdk/include/c++/v1/__memory/shared_ptr.h:416:59: note: 'shared_ptr' declared here
416 | class _LIBCPP_SHARED_PTR_TRIVIAL_ABI _LIBCPP_TEMPLATE_VIS shared_ptr {
| ^
In file included from /host/spi-builder-workspace/cpp/grammar_compiler.cc:30:
/host/spi-builder-workspace/cpp/support/thread_pool.h:90:12: error: no template named 'unique_lock' in namespace 'std'; did you mean 'unique_copy'?
90 | std::unique_lock<std::mutex> lock(queue_mutex_);
| ~~~~~^~~~~~~~~~~
| unique_copy
/root/.swiftpm/swift-sdks/swift-wasm-6.1-RELEASE-wasm32-unknown-wasi.artifactbundle/6.1-RELEASE-wasm32-unknown-wasi/wasm32-unknown-wasi/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/cpp/grammar_compiler.cc:30:
/host/spi-builder-workspace/cpp/support/thread_pool.h:90:29: error: no member named 'mutex' in namespace 'std'
90 | std::unique_lock<std::mutex> lock(queue_mutex_);
| ~~~~~^
/host/spi-builder-workspace/cpp/support/thread_pool.h:112:12: error: no template named 'unique_lock' in namespace 'std'; did you mean 'unique_copy'?
112 | std::unique_lock<std::mutex> lock(queue_mutex_);
| ~~~~~^~~~~~~~~~~
| unique_copy
/root/.swiftpm/swift-sdks/swift-wasm-6.1-RELEASE-wasm32-unknown-wasi.artifactbundle/6.1-RELEASE-wasm32-unknown-wasi/wasm32-unknown-wasi/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/cpp/grammar_compiler.cc:30:
/host/spi-builder-workspace/cpp/support/thread_pool.h:112:29: error: no member named 'mutex' in namespace 'std'
112 | std::unique_lock<std::mutex> lock(queue_mutex_);
| ~~~~~^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
[10/29] Compiling grammar_compiler.cc
In file included from /host/spi-builder-workspace/cpp/lark_converter.cc:29:
In file included from /host/spi-builder-workspace/cpp/grammar_functor.h:17:
/host/spi-builder-workspace/cpp/compiled_grammar_impl.h:157:16: error: no type named 'mutex' in namespace 'std'
157 | mutable std::mutex adaptive_token_mask_cache_mutex;
| ~~~~~^
[10/29] Compiling grammar_functor.cc
[10/29] Compiling lark_converter.cc
[10/29] Compiling grammar_matcher.cc
[10/29] Compiling grammar_printer.cc
In file included from /host/spi-builder-workspace/cpp/json_schema_converter.cc:33:
In file included from /host/spi-builder-workspace/cpp/grammar_functor.h:17:
/host/spi-builder-workspace/cpp/compiled_grammar_impl.h:157:16: error: no type named 'mutex' in namespace 'std'
157 | mutable std::mutex adaptive_token_mask_cache_mutex;
| ~~~~~^
[10/29] Compiling json_schema_converter.cc
In file included from /host/spi-builder-workspace/cpp/structural_tag.cc:20:
In file included from /host/spi-builder-workspace/cpp/grammar_functor.h:17:
/host/spi-builder-workspace/cpp/compiled_grammar_impl.h:157:16: error: no type named 'mutex' in namespace 'std'
157 | mutable std::mutex adaptive_token_mask_cache_mutex;
| ~~~~~^
[10/29] Compiling structural_tag.cc
[10/29] Compiling grammar_parser.cc
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-53886768-1":/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.1-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1
wasm-6.1-latest: Pulling from saguaro1/spi-images
Digest: sha256:c39884094bf9874b7a6bb32559a257cc0b80a9b15eb9e58adaa15f5bda5e4fb5
Status: Image is up to date for registry.gitlab.com/saguaro1/spi-images:wasm-6.1-latest
[0/1] Planning build
Building for debugging...
In file included from /host/spi-builder-workspace/cpp/grammar_matcher.cc:26:
/host/spi-builder-workspace/cpp/compiled_grammar_impl.h:157:16: error: no type named 'mutex' in namespace 'std'
157 | mutable std::mutex adaptive_token_mask_cache_mutex;
| ~~~~~^
In file included from /host/spi-builder-workspace/cpp/grammar_matcher.cc:33:
/host/spi-builder-workspace/cpp/support/thread_pool.h:79:46: error: no template named 'shared_future' in namespace 'std'; did you mean 'shared_ptr'?
79 | auto Submit(F&& f, Args&&... args) -> std::shared_future<std::invoke_result_t<F, Args...>> {
| ~~~~~^~~~~~~~~~~~~
| shared_ptr
/root/.swiftpm/swift-sdks/swift-wasm-6.1-RELEASE-wasm32-unknown-wasi.artifactbundle/6.1-RELEASE-wasm32-unknown-wasi/wasm32-unknown-wasi/WASI.sdk/include/c++/v1/__memory/shared_ptr.h:416:59: note: 'shared_ptr' declared here
416 | class _LIBCPP_SHARED_PTR_TRIVIAL_ABI _LIBCPP_TEMPLATE_VIS shared_ptr {
| ^
In file included from /host/spi-builder-workspace/cpp/grammar_matcher.cc:33:
/host/spi-builder-workspace/cpp/support/thread_pool.h:194:20: error: no member named 'thread' in namespace 'std'; did you mean 'fread'?
194 | std::vector<std::thread> workers_;
| ~~~~~^~~~~~
| fread
/root/.swiftpm/swift-sdks/swift-wasm-6.1-RELEASE-wasm32-unknown-wasi.artifactbundle/6.1-RELEASE-wasm32-unknown-wasi/wasm32-unknown-wasi/WASI.sdk/include/c++/v1/cstdio:141:9: note: 'fread' declared here
141 | using ::fread _LIBCPP_USING_IF_EXISTS;
| ^
In file included from /host/spi-builder-workspace/cpp/grammar_matcher.cc:33:
/host/spi-builder-workspace/cpp/support/thread_pool.h:194:15: error: template argument for template type parameter must be a type
194 | std::vector<std::thread> workers_;
| ^~~~~~~~~~~
/root/.swiftpm/swift-sdks/swift-wasm-6.1-RELEASE-wasm32-unknown-wasi.artifactbundle/6.1-RELEASE-wasm32-unknown-wasi/wasm32-unknown-wasi/WASI.sdk/include/c++/v1/vector:388:17: note: template parameter is declared here
388 | template <class _Tp, class _Allocator /* = allocator<_Tp> */>
| ^
In file included from /host/spi-builder-workspace/cpp/grammar_matcher.cc:33:
/host/spi-builder-workspace/cpp/support/thread_pool.h:198:8: error: no type named 'mutex' in namespace 'std'
198 | std::mutex queue_mutex_;
| ~~~~~^
/host/spi-builder-workspace/cpp/support/thread_pool.h:200:8: error: no type named 'condition_variable' in namespace 'std'
200 | std::condition_variable queue_condition_;
| ~~~~~^
/host/spi-builder-workspace/cpp/support/thread_pool.h:202:8: error: no type named 'condition_variable' in namespace 'std'
202 | std::condition_variable tasks_done_condition_;
| ~~~~~^
/host/spi-builder-workspace/cpp/support/thread_pool.h:37:40: error: no member named 'thread' in namespace 'std'
37 | ThreadPool(size_t num_threads = std::thread::hardware_concurrency()) {
| ~~~~~^
/host/spi-builder-workspace/cpp/support/thread_pool.h:45:18: error: no template named 'unique_lock' in namespace 'std'; did you mean 'unique_copy'?
45 | std::unique_lock<std::mutex> lock(queue_mutex_);
| ~~~~~^~~~~~~~~~~
| unique_copy
/root/.swiftpm/swift-sdks/swift-wasm-6.1-RELEASE-wasm32-unknown-wasi.artifactbundle/6.1-RELEASE-wasm32-unknown-wasi/wasm32-unknown-wasi/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/cpp/grammar_matcher.cc:33:
/host/spi-builder-workspace/cpp/support/thread_pool.h:45:35: error: no member named 'mutex' in namespace 'std'
45 | std::unique_lock<std::mutex> lock(queue_mutex_);
| ~~~~~^
/host/spi-builder-workspace/cpp/support/thread_pool.h:46:35: error: use of undeclared identifier 'lock'; did you mean 'clock'?
46 | queue_condition_.wait(lock, [this] { return shutdown_ || !task_queue_.empty(); });
| ^~~~
| clock
/root/.swiftpm/swift-sdks/swift-wasm-6.1-RELEASE-wasm32-unknown-wasi.artifactbundle/6.1-RELEASE-wasm32-unknown-wasi/wasm32-unknown-wasi/WASI.sdk/include/wasm32-wasi/time.h:71:9: note: 'clock' declared here
71 | clock_t clock (void);
| ^
In file included from /host/spi-builder-workspace/cpp/grammar_matcher.cc:33:
/host/spi-builder-workspace/cpp/support/thread_pool.h:58:18: error: no template named 'unique_lock' in namespace 'std'; did you mean 'unique_copy'?
58 | std::unique_lock<std::mutex> lock(queue_mutex_);
| ~~~~~^~~~~~~~~~~
| unique_copy
/root/.swiftpm/swift-sdks/swift-wasm-6.1-RELEASE-wasm32-unknown-wasi.artifactbundle/6.1-RELEASE-wasm32-unknown-wasi/wasm32-unknown-wasi/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/cpp/grammar_matcher.cc:33:
/host/spi-builder-workspace/cpp/support/thread_pool.h:58:35: error: no member named 'mutex' in namespace 'std'
58 | std::unique_lock<std::mutex> lock(queue_mutex_);
| ~~~~~^
/host/spi-builder-workspace/cpp/support/thread_pool.h:83:39: error: no member named 'packaged_task' in namespace 'std'
83 | auto task = std::make_shared<std::packaged_task<return_type()>>(
| ~~~~~^
/host/spi-builder-workspace/cpp/support/thread_pool.h:87:10: error: no template named 'shared_future' in namespace 'std'; did you mean 'shared_ptr'?
87 | std::shared_future<return_type> res = task->get_future().share();
| ~~~~~^~~~~~~~~~~~~
| shared_ptr
/root/.swiftpm/swift-sdks/swift-wasm-6.1-RELEASE-wasm32-unknown-wasi.artifactbundle/6.1-RELEASE-wasm32-unknown-wasi/wasm32-unknown-wasi/WASI.sdk/include/c++/v1/__memory/shared_ptr.h:416:59: note: 'shared_ptr' declared here
416 | class _LIBCPP_SHARED_PTR_TRIVIAL_ABI _LIBCPP_TEMPLATE_VIS shared_ptr {
| ^
In file included from /host/spi-builder-workspace/cpp/grammar_matcher.cc:33:
/host/spi-builder-workspace/cpp/support/thread_pool.h:90:12: error: no template named 'unique_lock' in namespace 'std'; did you mean 'unique_copy'?
90 | std::unique_lock<std::mutex> lock(queue_mutex_);
| ~~~~~^~~~~~~~~~~
| unique_copy
/root/.swiftpm/swift-sdks/swift-wasm-6.1-RELEASE-wasm32-unknown-wasi.artifactbundle/6.1-RELEASE-wasm32-unknown-wasi/wasm32-unknown-wasi/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/cpp/grammar_matcher.cc:33:
/host/spi-builder-workspace/cpp/support/thread_pool.h:90:29: error: no member named 'mutex' in namespace 'std'
90 | std::unique_lock<std::mutex> lock(queue_mutex_);
| ~~~~~^
/host/spi-builder-workspace/cpp/support/thread_pool.h:112:12: error: no template named 'unique_lock' in namespace 'std'; did you mean 'unique_copy'?
112 | std::unique_lock<std::mutex> lock(queue_mutex_);
| ~~~~~^~~~~~~~~~~
| unique_copy
/root/.swiftpm/swift-sdks/swift-wasm-6.1-RELEASE-wasm32-unknown-wasi.artifactbundle/6.1-RELEASE-wasm32-unknown-wasi/wasm32-unknown-wasi/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/cpp/grammar_matcher.cc:33:
/host/spi-builder-workspace/cpp/support/thread_pool.h:112:29: error: no member named 'mutex' in namespace 'std'
112 | std::unique_lock<std::mutex> lock(queue_mutex_);
| ~~~~~^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
[0/19] Compiling grammar_matcher.cc
[0/19] Compiling grammar_compiler.cc
[0/19] Compiling grammar_functor.cc
[0/19] Compiling grammar_parser.cc
[0/19] Compiling json_schema_converter.cc
[0/19] Compiling lark_converter.cc
[0/19] Compiling grammar_printer.cc
[0/19] Compiling structural_tag.cc
BUILD FAILURE 6.1 wasm