Build Information
Failed to build Qwen3Speech, reference main (dcd299), with Swift 6.2 for Wasm on 30 Apr 2026 01:32:38 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4609320-1":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/swiftpackageindex/spi-images:wasm-6.2-latest swift build --swift-sdk swift-6.2-RELEASE_wasm 2>&1Build Log
========================================
RunAll
========================================
Builder version: 4.70.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/soniqo/speech-swift.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/soniqo/speech-swift
* branch main -> FETCH_HEAD
* [new branch] main -> origin/main
HEAD is now at dcd2994 Merge pull request #226 from soniqo/feat/align-preserve-punctuation
Cloned https://github.com/soniqo/speech-swift.git
Revision (git rev-parse @):
dcd29942ee7fc2e1b60994ba70debf0a01d6a1b1
SPI manifest file found: $PWD/.spi.yml
SUCCESS checkout https://github.com/soniqo/speech-swift.git at main
========================================
Build
========================================
Selected platform: wasm
Swift version: 6.2
Building package at path: $PWD
https://github.com/soniqo/speech-swift.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-1":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/swiftpackageindex/spi-images:wasm-6.2-latest swift build --swift-sdk swift-6.2-RELEASE_wasm 2>&1
wasm-6.2-latest: Pulling from swiftpackageindex/spi-images
Digest: sha256:2a8b2d9e022a9894c61e0736af7cdaa1ee64c002dbb133a55c0d7e8980b3ad16
Status: Image is up to date for registry.gitlab.com/swiftpackageindex/spi-images:wasm-6.2-latest
Fetching https://github.com/hummingbird-project/hummingbird-websocket.git
Fetching https://github.com/hummingbird-project/hummingbird.git
Fetching https://github.com/apple/swift-argument-parser
Fetching https://github.com/ml-explore/mlx-swift
Fetching https://github.com/huggingface/swift-transformers
[1/3257] Fetching hummingbird-websocket
[555/9499] Fetching hummingbird-websocket, swift-transformers
[1167/26985] Fetching hummingbird-websocket, swift-transformers, swift-argument-parser
[4395/41214] Fetching hummingbird-websocket, swift-transformers, swift-argument-parser, mlx-swift
[5315/67824] Fetching hummingbird-websocket, swift-transformers, swift-argument-parser, mlx-swift, hummingbird
Fetched https://github.com/huggingface/swift-transformers from cache (1.32s)
[52925/61582] Fetching hummingbird-websocket, swift-argument-parser, mlx-swift, hummingbird
Fetched https://github.com/hummingbird-project/hummingbird-websocket.git from cache (2.48s)
Fetched https://github.com/apple/swift-argument-parser from cache (2.49s)
Fetched https://github.com/ml-explore/mlx-swift from cache (2.50s)
Fetched https://github.com/hummingbird-project/hummingbird.git from cache (2.51s)
Computing version for https://github.com/hummingbird-project/hummingbird-websocket.git
Computed https://github.com/hummingbird-project/hummingbird-websocket.git at 2.6.0 (2.98s)
Fetching https://github.com/apple/swift-nio-extras.git
Fetching https://github.com/hummingbird-project/swift-websocket.git
[1/841] Fetching swift-websocket
[842/7360] Fetching swift-websocket, swift-nio-extras
Fetched https://github.com/hummingbird-project/swift-websocket.git from cache (0.36s)
[2673/6519] Fetching swift-nio-extras
Fetched https://github.com/apple/swift-nio-extras.git from cache (0.60s)
Computing version for https://github.com/hummingbird-project/hummingbird.git
Computed https://github.com/hummingbird-project/hummingbird.git at 2.16.0 (1.24s)
Fetching https://github.com/apple/swift-log.git
Fetching https://github.com/apple/swift-nio-ssl.git
Fetching https://github.com/apple/swift-nio-http2.git
Fetching https://github.com/swift-server/async-http-client.git
Fetching https://github.com/apple/swift-nio.git
Fetching https://github.com/swift-server/swift-service-lifecycle.git
[1/6802] Fetching swift-log
[206/9553] Fetching swift-log, swift-service-lifecycle
[9554/21661] Fetching swift-log, swift-service-lifecycle, swift-nio-http2
[9555/37101] Fetching swift-log, swift-service-lifecycle, swift-nio-http2, swift-nio-ssl
[9556/52850] Fetching swift-log, swift-service-lifecycle, swift-nio-http2, swift-nio-ssl, async-http-client
Fetched https://github.com/swift-server/swift-service-lifecycle.git from cache (0.54s)
[8841/50099] Fetching swift-log, swift-nio-http2, swift-nio-ssl, async-http-client
Fetching https://github.com/apple/swift-collections.git
[15449/133310] Fetching swift-log, swift-nio-http2, swift-nio-ssl, async-http-client, swift-nio
[29957/157120] Fetching swift-log, swift-nio-http2, swift-nio-ssl, async-http-client, swift-nio, swift-collections
Fetched https://github.com/swift-server/async-http-client.git from cache (1.93s)
Fetching https://github.com/apple/swift-atomics.git
[49732/141371] Fetching swift-log, swift-nio-http2, swift-nio-ssl, swift-nio, swift-collections
[69142/143191] Fetching swift-log, swift-nio-http2, swift-nio-ssl, swift-nio, swift-collections, swift-atomics
Fetched https://github.com/apple/swift-nio-http2.git from cache (2.52s)
[69449/131083] Fetching swift-log, swift-nio-ssl, swift-nio, swift-collections, swift-atomics
Fetching https://github.com/apple/swift-async-algorithms.git
Fetched https://github.com/apple/swift-atomics.git from cache (0.90s)
[73738/129263] Fetching swift-log, swift-nio-ssl, swift-nio, swift-collections
Fetching https://github.com/apple/swift-http-types.git
[76120/135508] Fetching swift-log, swift-nio-ssl, swift-nio, swift-collections, swift-async-algorithms
[81538/136551] Fetching swift-log, swift-nio-ssl, swift-nio, swift-collections, swift-async-algorithms, swift-http-types
Fetched https://github.com/apple/swift-http-types.git from cache (0.65s)
[87891/135508] Fetching swift-log, swift-nio-ssl, swift-nio, swift-collections, swift-async-algorithms
Fetching https://github.com/apple/swift-metrics.git
Fetched https://github.com/apple/swift-async-algorithms.git from cache (1.41s)
Fetching https://github.com/apple/swift-distributed-tracing.git
[82310/132457] Fetching swift-log, swift-nio-ssl, swift-nio, swift-collections, swift-metrics
[85504/138237] Fetching swift-log, swift-nio-ssl, swift-nio, swift-collections, swift-metrics, swift-distributed-tracing
Fetched https://github.com/apple/swift-metrics.git from cache (1.14s)
Fetching https://github.com/apple/swift-nio-transport-services.git
[83986/135043] Fetching swift-log, swift-nio-ssl, swift-nio, swift-collections, swift-distributed-tracing
Fetched https://github.com/apple/swift-log.git from cache (4.84s)
[79207/128241] Fetching swift-nio-ssl, swift-nio, swift-collections, swift-distributed-tracing
Fetched https://github.com/apple/swift-nio-ssl.git from cache (4.89s)
[64518/112801] Fetching swift-nio, swift-collections, swift-distributed-tracing
Fetched https://github.com/apple/swift-collections.git from cache (4.54s)
Fetched https://github.com/apple/swift-distributed-tracing.git from cache (1.16s)
[36258/86058] Fetching swift-nio, swift-nio-transport-services
Fetched https://github.com/apple/swift-nio-transport-services.git from cache (0.71s)
[40774/83211] Fetching swift-nio
Fetched https://github.com/apple/swift-nio.git from cache (11.23s)
Computing version for https://github.com/hummingbird-project/swift-websocket.git
Computed https://github.com/hummingbird-project/swift-websocket.git at 1.5.0 (12.72s)
Fetching https://github.com/adam-fowler/compress-nio.git
[1/643] Fetching compress-nio
Fetched https://github.com/adam-fowler/compress-nio.git from cache (0.23s)
Computing version for https://github.com/adam-fowler/compress-nio.git
Computed https://github.com/adam-fowler/compress-nio.git at 1.4.2 (0.60s)
Computing version for https://github.com/apple/swift-nio-extras.git
Computed https://github.com/apple/swift-nio-extras.git at 1.34.0 (0.54s)
Fetching https://github.com/apple/swift-certificates.git
Fetching https://github.com/apple/swift-http-structured-headers.git
Fetching https://github.com/apple/swift-algorithms.git
Fetching https://github.com/apple/swift-asn1.git
[1/1803] Fetching swift-asn1
[1173/3045] Fetching swift-asn1, swift-http-structured-headers
[2786/9103] Fetching swift-asn1, swift-http-structured-headers, swift-algorithms
[2911/16369] Fetching swift-asn1, swift-http-structured-headers, swift-algorithms, swift-certificates
Fetched https://github.com/apple/swift-asn1.git from cache (0.31s)
[7942/14566] Fetching swift-http-structured-headers, swift-algorithms, swift-certificates
Fetched https://github.com/apple/swift-algorithms.git from cache (0.44s)
Fetched https://github.com/apple/swift-http-structured-headers.git from cache (0.52s)
Fetched https://github.com/apple/swift-certificates.git from cache (0.52s)
Computing version for https://github.com/apple/swift-atomics.git
Computed https://github.com/apple/swift-atomics.git at 1.3.0 (0.96s)
Computing version for https://github.com/apple/swift-algorithms.git
Computed https://github.com/apple/swift-algorithms.git at 1.2.1 (2.19s)
Fetching https://github.com/apple/swift-numerics.git
[1/6416] Fetching swift-numerics
Fetched https://github.com/apple/swift-numerics.git from cache (0.39s)
Computing version for https://github.com/apple/swift-http-types.git
Computed https://github.com/apple/swift-http-types.git at 1.5.1 (0.75s)
Computing version for https://github.com/swift-server/swift-service-lifecycle.git
Computed https://github.com/swift-server/swift-service-lifecycle.git at 2.11.0 (0.34s)
Computing version for https://github.com/apple/swift-async-algorithms.git
Computed https://github.com/apple/swift-async-algorithms.git at 1.1.3 (0.52s)
Computing version for https://github.com/apple/swift-nio-ssl.git
Computed https://github.com/apple/swift-nio-ssl.git at 2.37.0 (0.45s)
Computing version for https://github.com/apple/swift-numerics.git
Computed https://github.com/apple/swift-numerics.git at 1.1.1 (0.33s)
Computing version for https://github.com/huggingface/swift-transformers
Computed https://github.com/huggingface/swift-transformers at 1.3.0 (0.40s)
Fetching https://github.com/ibireme/yyjson.git
Fetching https://github.com/huggingface/swift-jinja.git
Fetching https://github.com/huggingface/swift-huggingface.git
Fetching https://github.com/apple/swift-crypto.git
[1/2340] Fetching swift-huggingface
[2248/3391] Fetching swift-huggingface, swift-jinja
[3392/7834] Fetching swift-huggingface, swift-jinja, yyjson
[3437/25291] Fetching swift-huggingface, swift-jinja, yyjson, swift-crypto
Fetched https://github.com/huggingface/swift-jinja.git from cache (2.49s)
Fetched https://github.com/huggingface/swift-huggingface.git from cache (2.49s)
Fetched https://github.com/ibireme/yyjson.git from cache (2.50s)
Fetched https://github.com/apple/swift-crypto.git from cache (2.53s)
Computing version for https://github.com/ibireme/yyjson.git
Computed https://github.com/ibireme/yyjson.git at 0.12.0 (3.04s)
Computing version for https://github.com/huggingface/swift-huggingface.git
Computed https://github.com/huggingface/swift-huggingface.git at 0.9.0 (0.37s)
Fetching https://github.com/mattt/EventSource.git
[1/271] Fetching eventsource
Fetched https://github.com/mattt/EventSource.git from cache (0.21s)
Computing version for https://github.com/apple/swift-argument-parser
Computed https://github.com/apple/swift-argument-parser at 1.7.1 (0.60s)
Computing version for https://github.com/ml-explore/mlx-swift
Computed https://github.com/ml-explore/mlx-swift at 0.31.3 (0.45s)
Computing version for https://github.com/apple/swift-nio-http2.git
Computed https://github.com/apple/swift-nio-http2.git at 1.43.0 (0.42s)
Computing version for https://github.com/apple/swift-asn1.git
Computed https://github.com/apple/swift-asn1.git at 1.7.0 (2.12s)
Computing version for https://github.com/apple/swift-nio.git
Computed https://github.com/apple/swift-nio.git at 2.99.0 (0.93s)
Fetching https://github.com/apple/swift-system.git
[1/5601] Fetching swift-system
Fetched https://github.com/apple/swift-system.git from cache (0.42s)
Computing version for https://github.com/apple/swift-certificates.git
Computed https://github.com/apple/swift-certificates.git at 1.19.0 (0.93s)
Computing version for https://github.com/apple/swift-http-structured-headers.git
Computed https://github.com/apple/swift-http-structured-headers.git at 1.7.0 (0.41s)
Computing version for https://github.com/mattt/EventSource.git
Computed https://github.com/mattt/EventSource.git at 1.4.1 (0.45s)
Computing version for https://github.com/apple/swift-system.git
Computed https://github.com/apple/swift-system.git at 1.6.4 (0.49s)
Computing version for https://github.com/apple/swift-metrics.git
Computed https://github.com/apple/swift-metrics.git at 2.10.1 (0.39s)
Computing version for https://github.com/apple/swift-distributed-tracing.git
Computed https://github.com/apple/swift-distributed-tracing.git at 1.4.1 (0.36s)
Fetching https://github.com/apple/swift-service-context.git
[1/1287] Fetching swift-service-context
Fetched https://github.com/apple/swift-service-context.git from cache (0.22s)
Computing version for https://github.com/apple/swift-service-context.git
Computed https://github.com/apple/swift-service-context.git at 1.3.0 (0.60s)
Computing version for https://github.com/apple/swift-log.git
Computed https://github.com/apple/swift-log.git at 1.12.0 (1.33s)
Computing version for https://github.com/apple/swift-collections.git
Computed https://github.com/apple/swift-collections.git at 1.4.1 (0.64s)
Computing version for https://github.com/apple/swift-nio-transport-services.git
Computed https://github.com/apple/swift-nio-transport-services.git at 1.28.0 (0.42s)
Computing version for https://github.com/huggingface/swift-jinja.git
Computed https://github.com/huggingface/swift-jinja.git at 2.3.5 (0.37s)
Computing version for https://github.com/apple/swift-crypto.git
Computed https://github.com/apple/swift-crypto.git at 4.5.0 (1.23s)
Computing version for https://github.com/swift-server/async-http-client.git
Computed https://github.com/swift-server/async-http-client.git at 1.33.1 (0.45s)
Fetching https://github.com/apple/swift-configuration.git
[1/3252] Fetching swift-configuration
Fetched https://github.com/apple/swift-configuration.git from cache (0.37s)
Computing version for https://github.com/apple/swift-configuration.git
Computed https://github.com/apple/swift-configuration.git at 1.2.0 (2.49s)
Creating working copy for https://github.com/swift-server/async-http-client.git
Working copy of https://github.com/swift-server/async-http-client.git resolved at 1.33.1
Creating working copy for https://github.com/apple/swift-distributed-tracing.git
Working copy of https://github.com/apple/swift-distributed-tracing.git resolved at 1.4.1
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.0
Creating working copy for https://github.com/adam-fowler/compress-nio.git
Working copy of https://github.com/adam-fowler/compress-nio.git resolved at 1.4.2
Creating working copy for https://github.com/apple/swift-nio-ssl.git
Working copy of https://github.com/apple/swift-nio-ssl.git resolved at 2.37.0
Creating working copy for https://github.com/apple/swift-system.git
Working copy of https://github.com/apple/swift-system.git resolved at 1.6.4
Creating working copy for https://github.com/hummingbird-project/hummingbird.git
Working copy of https://github.com/hummingbird-project/hummingbird.git resolved at 2.16.0
Creating working copy for https://github.com/huggingface/swift-transformers
Working copy of https://github.com/huggingface/swift-transformers resolved at 1.3.0
Creating working copy for https://github.com/apple/swift-atomics.git
Working copy of https://github.com/apple/swift-atomics.git resolved at 1.3.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.31.3
Creating working copy for https://github.com/hummingbird-project/swift-websocket.git
Working copy of https://github.com/hummingbird-project/swift-websocket.git resolved at 1.5.0
Creating working copy for https://github.com/apple/swift-service-context.git
Working copy of https://github.com/apple/swift-service-context.git resolved at 1.3.0
Creating working copy for https://github.com/apple/swift-numerics.git
Working copy of https://github.com/apple/swift-numerics.git resolved at 1.1.1
Creating working copy for https://github.com/apple/swift-argument-parser
Working copy of https://github.com/apple/swift-argument-parser resolved at 1.7.1
Creating working copy for https://github.com/apple/swift-log.git
Working copy of https://github.com/apple/swift-log.git resolved at 1.12.0
Creating working copy for https://github.com/apple/swift-nio-transport-services.git
Working copy of https://github.com/apple/swift-nio-transport-services.git resolved at 1.28.0
Creating working copy for https://github.com/swift-server/swift-service-lifecycle.git
Working copy of https://github.com/swift-server/swift-service-lifecycle.git resolved at 2.11.0
Creating working copy for https://github.com/apple/swift-configuration.git
Working copy of https://github.com/apple/swift-configuration.git resolved at 1.2.0
Creating working copy for https://github.com/apple/swift-http-types.git
Working copy of https://github.com/apple/swift-http-types.git resolved at 1.5.1
Creating working copy for https://github.com/apple/swift-certificates.git
Working copy of https://github.com/apple/swift-certificates.git resolved at 1.19.0
Creating working copy for https://github.com/mattt/EventSource.git
Working copy of https://github.com/mattt/EventSource.git resolved at 1.4.1
Creating working copy for https://github.com/apple/swift-nio-http2.git
Working copy of https://github.com/apple/swift-nio-http2.git resolved at 1.43.0
Creating working copy for https://github.com/apple/swift-metrics.git
Working copy of https://github.com/apple/swift-metrics.git resolved at 2.10.1
Creating working copy for https://github.com/apple/swift-nio-extras.git
Working copy of https://github.com/apple/swift-nio-extras.git resolved at 1.34.0
Creating working copy for https://github.com/apple/swift-collections.git
Working copy of https://github.com/apple/swift-collections.git resolved at 1.4.1
Creating working copy for https://github.com/hummingbird-project/hummingbird-websocket.git
Working copy of https://github.com/hummingbird-project/hummingbird-websocket.git resolved at 2.6.0
Creating working copy for https://github.com/apple/swift-http-structured-headers.git
Working copy of https://github.com/apple/swift-http-structured-headers.git resolved at 1.7.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.3.5
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/huggingface/swift-huggingface.git
Working copy of https://github.com/huggingface/swift-huggingface.git resolved at 0.9.0
Creating working copy for https://github.com/apple/swift-nio.git
Working copy of https://github.com/apple/swift-nio.git resolved at 2.99.0
Creating working copy for https://github.com/apple/swift-algorithms.git
Working copy of https://github.com/apple/swift-algorithms.git resolved at 1.2.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.0
Creating working copy for https://github.com/apple/swift-async-algorithms.git
Working copy of https://github.com/apple/swift-async-algorithms.git resolved at 1.1.3
Downloading binary artifact https://github.com/soniqo/speech-core/releases/download/v0.0.5/SpeechCore.xcframework.zip
[1369/484446] Downloading https://github.com/soniqo/speech-core/releases/download/v0.0.5/SpeechCore.xcframework.zip
Downloaded https://github.com/soniqo/speech-core/releases/download/v0.0.5/SpeechCore.xcframework.zip (0.40s)
[1/1] Compiling plugin GenerateManual
[2/2] Compiling plugin GenerateDoccReference
Building for debugging...
[2/705] Write sources
[32/705] Compiling sha512-x86_64-apple.S
[33/705] Copying t5_tokenizer_config.json
[34/705] Copying gpt2_tokenizer_config.json
[35/705] Write sources
[36/705] Compiling _NumericsShims _NumericsShims.c
[37/705] Write sources
[39/705] Compiling _CWASI _CWASI.c
[40/705] Compiling _AtomicsShims.c
[40/705] Write sources
[40/705] Copying Resources
[44/705] Write sources
[79/705] Compiling version.cpp
[80/705] Compiling rsa_print.cc
[81/705] Write swift-version-24593BA9C3E375BF.txt
[81/705] Compiling rsa_crypt.cc
[83/705] Compiling rsa_extra.cc
[84/705] Compiling refcount.cc
[85/705] Compiling rsa_asn1.cc
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.
[86/714] Compiling scheduler.cpp
In file included from /host/spi-builder-workspace/.build/checkouts/mlx-swift/Source/Cmlx/mlx/mlx/random.cpp:8:
In file included from /host/spi-builder-workspace/.build/checkouts/mlx-swift/Source/Cmlx/mlx/mlx/primitives.h:10:
In file included from /host/spi-builder-workspace/.build/checkouts/mlx-swift/Source/Cmlx/mlx/mlx/io/load.h:16:
/host/spi-builder-workspace/.build/checkouts/mlx-swift/Source/Cmlx/mlx/mlx/threadpool.h:40:15: error: no template named 'future' in namespace 'std'
40 | -> std::future<typename std::invoke_result_t<F, Args...>>;
| ~~~~~^
/host/spi-builder-workspace/.build/checkouts/mlx-swift/Source/Cmlx/mlx/mlx/threadpool.h:48:20: error: no member named 'thread' in namespace 'std'
48 | std::vector<std::thread> workers;
| ~~~~~^
/host/spi-builder-workspace/.build/checkouts/mlx-swift/Source/Cmlx/mlx/mlx/threadpool.h:50:8: error: no type named 'mutex' in namespace 'std'
50 | std::mutex queue_mutex;
| ~~~~~^
/host/spi-builder-workspace/.build/checkouts/mlx-swift/Source/Cmlx/mlx/mlx/threadpool.h:51:8: error: no type named 'condition_variable' in namespace 'std'
51 | std::condition_variable condition;
| ~~~~~^
/host/spi-builder-workspace/.build/checkouts/mlx-swift/Source/Cmlx/mlx/mlx/threadpool.h:61:13: error: no template named 'future' in namespace 'std'
61 | -> std::future<typename std::invoke_result_t<F, Args...>> {
| ~~~~~^
/host/spi-builder-workspace/.build/checkouts/mlx-swift/Source/Cmlx/mlx/mlx/threadpool.h:64:37: error: no member named 'packaged_task' in namespace 'std'
64 | auto task = std::make_shared<std::packaged_task<return_type()>>(
| ~~~~~^
/host/spi-builder-workspace/.build/checkouts/mlx-swift/Source/Cmlx/mlx/mlx/threadpool.h:67:8: error: no member named 'future' in namespace 'std'
67 | std::future<return_type> res = task->get_future();
| ~~~~~^
/host/spi-builder-workspace/.build/checkouts/mlx-swift/Source/Cmlx/mlx/mlx/threadpool.h:67:15: error: unexpected type name 'return_type': expected expression
67 | std::future<return_type> res = task->get_future();
| ^
/host/spi-builder-workspace/.build/checkouts/mlx-swift/Source/Cmlx/mlx/mlx/threadpool.h:67:28: error: use of undeclared identifier 'res'
67 | std::future<return_type> res = task->get_future();
| ^
/host/spi-builder-workspace/.build/checkouts/mlx-swift/Source/Cmlx/mlx/mlx/threadpool.h:69:10: error: no template named 'unique_lock' in namespace 'std'; did you mean 'unique_copy'?
69 | std::unique_lock<std::mutex> lock(queue_mutex);
| ~~~~~^~~~~~~~~~~
| 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/random.cpp:8:
In file included from /host/spi-builder-workspace/.build/checkouts/mlx-swift/Source/Cmlx/mlx/mlx/primitives.h:10:
In file included from /host/spi-builder-workspace/.build/checkouts/mlx-swift/Source/Cmlx/mlx/mlx/io/load.h:16:
/host/spi-builder-workspace/.build/checkouts/mlx-swift/Source/Cmlx/mlx/mlx/threadpool.h:69:27: error: no member named 'mutex' in namespace 'std'
69 | std::unique_lock<std::mutex> lock(queue_mutex);
| ~~~~~^
/host/spi-builder-workspace/.build/checkouts/mlx-swift/Source/Cmlx/mlx/mlx/threadpool.h:79:10: error: use of undeclared identifier 'res'
79 | return res;
| ^
[86/714] Compiling random.cpp
[86/714] Compiling utils.cpp
[86/714] Compiling yyjson.c
[86/714] Compiling transforms.cpp
[87/714] Emitting module _NIOBase64
BUILD FAILURE 6.2 wasm