The Swift Package Index logo.Swift Package Index

Build Information

Failed to build SwiftRWKV, reference v0.4.1 (5d37c5), with Swift 6.4 for Wasm on 18 Nov 2026 18:06:40 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.4-latest swift build --swift-sdk swift-6.4.0-RELEASE_wasm 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 5.1.4
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/RafaelUI/SwiftRWKV.git
Reference: v0.4.1
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/RafaelUI/SwiftRWKV
 * tag               v0.4.1     -> FETCH_HEAD
HEAD is now at 5d37c55 README: 0.4.1 -- prefill продолжает состояние
Cloned https://github.com/RafaelUI/SwiftRWKV.git
Revision (git rev-parse @):
5d37c5561b74f65948573f68728092e9ef48baf3
SUCCESS checkout https://github.com/RafaelUI/SwiftRWKV.git at v0.4.1
========================================
Build
========================================
Selected platform:         wasm
Swift version:             6.4
Building package at path:  $PWD
https://github.com/RafaelUI/SwiftRWKV.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.4-latest swift build --swift-sdk swift-6.4.0-RELEASE_wasm 2>&1
wasm-6.4-latest: Pulling from saguaro1/spi-images
Digest: sha256:d7b72fae8894fba3c2632fd7068ea480e9b111160d8dd7b4d9df5fbcfe7a40ee
Status: Image is up to date for registry.gitlab.com/saguaro1/spi-images:wasm-6.4-latest
Fetching https://github.com/ml-explore/mlx-swift
[1/17756] Fetching mlx-swift
Fetched https://github.com/ml-explore/mlx-swift (1.83s)
Computing version for https://github.com/ml-explore/mlx-swift
Computed https://github.com/ml-explore/mlx-swift at 0.33.0 (2.10s)
Fetching https://github.com/apple/swift-numerics
Fetching https://github.com/apple/swift-argument-parser
[1/6861] Fetching swift-numerics
Fetched https://github.com/apple/swift-numerics (0.63s)
[1/19431] Fetching swift-argument-parser
Fetched https://github.com/apple/swift-argument-parser (1.27s)
Computing version for https://github.com/apple/swift-numerics
Computed https://github.com/apple/swift-numerics at 1.1.1 (1.42s)
Computing version for https://github.com/apple/swift-argument-parser
Computed https://github.com/apple/swift-argument-parser at 1.8.2 (0.15s)
Creating working copy for https://github.com/ml-explore/mlx-swift
Working copy of https://github.com/ml-explore/mlx-swift resolved at 0.33.0
Creating working copy for https://github.com/apple/swift-argument-parser
Working copy of https://github.com/apple/swift-argument-parser resolved at 1.8.2
Creating working copy for https://github.com/apple/swift-numerics
Working copy of https://github.com/apple/swift-numerics resolved at 1.1.1
Building for debugging...
[Computing dependencies]
[Provisioning 4 / 36]
[Pre-planning 1 / 828]
[Planning 554 / 828]
[Planning deferred tasks]
[Constructing 102 / 2065]
[Starting]
warning: no rule to process file '/host/spi-builder-workspace/.build/checkouts/mlx-swift/Source/Cmlx/mlx-generated/metal/arg_reduce.metal' of type 'sourcecode.metal' for architecture 'wasm32'
warning: no rule to process file '/host/spi-builder-workspace/.build/checkouts/mlx-swift/Source/Cmlx/mlx-generated/metal/conv.metal' of type 'sourcecode.metal' for architecture 'wasm32'
warning: no rule to process file '/host/spi-builder-workspace/.build/checkouts/mlx-swift/Source/Cmlx/mlx-generated/metal/dot.metal' of type 'sourcecode.metal' for architecture 'wasm32'
warning: no rule to process file '/host/spi-builder-workspace/.build/checkouts/mlx-swift/Source/Cmlx/mlx-generated/metal/gated_delta_update.metal' of type 'sourcecode.metal' for architecture 'wasm32'
warning: no rule to process file '/host/spi-builder-workspace/.build/checkouts/mlx-swift/Source/Cmlx/mlx-generated/metal/gated_delta_update_vjp.metal' of type 'sourcecode.metal' for architecture 'wasm32'
warning: no rule to process file '/host/spi-builder-workspace/.build/checkouts/mlx-swift/Source/Cmlx/mlx-generated/metal/gather_mm_offsets.metal' of type 'sourcecode.metal' for architecture 'wasm32'
warning: no rule to process file '/host/spi-builder-workspace/.build/checkouts/mlx-swift/Source/Cmlx/mlx-generated/metal/layer_norm.metal' of type 'sourcecode.metal' for architecture 'wasm32'
warning: no rule to process file '/host/spi-builder-workspace/.build/checkouts/mlx-swift/Source/Cmlx/mlx-generated/metal/random.metal' of type 'sourcecode.metal' for architecture 'wasm32'
warning: no rule to process file '/host/spi-builder-workspace/.build/checkouts/mlx-swift/Source/Cmlx/mlx-generated/metal/rms_norm.metal' of type 'sourcecode.metal' for architecture 'wasm32'
warning: no rule to process file '/host/spi-builder-workspace/.build/checkouts/mlx-swift/Source/Cmlx/mlx-generated/metal/rope.metal' of type 'sourcecode.metal' for architecture 'wasm32'
warning: no rule to process file '/host/spi-builder-workspace/.build/checkouts/mlx-swift/Source/Cmlx/mlx-generated/metal/scaled_dot_product_attention.metal' of type 'sourcecode.metal' for architecture 'wasm32'
warning: no rule to process file '/host/spi-builder-workspace/.build/checkouts/mlx-swift/Source/Cmlx/mlx-generated/metal/scaled_dot_product_attention_vjp.metal' of type 'sourcecode.metal' for architecture 'wasm32'
warning: no rule to process file '/host/spi-builder-workspace/.build/checkouts/mlx-swift/Source/Cmlx/mlx-generated/metal/searchsorted.metal' of type 'sourcecode.metal' for architecture 'wasm32'
warning: no rule to process file '/host/spi-builder-workspace/.build/checkouts/mlx-swift/Source/Cmlx/mlx-generated/metal/steel/attn/kernels/steel_attention.metal' of type 'sourcecode.metal' for architecture 'wasm32'
[51 / 634] rerank-run-product
[132 / 647] RealModule
[137 / 647] RealModule
[146 / 657] _NumericsShims
[150 / 657] ComplexModule
[152 / 657] ComplexModule
[153 / 657] RealModule
[166 / 662] RealModule
[175 / 672] Numerics-product
[180 / 672] ArgumentParser
[181 / 673] ComplexModule
[188 / 673] ArgumentParser
[190 / 674]
[193 / 680] encuda-product
[195 / 680] encuda-product
[196 / 681] encuda-product
[202 / 681] ArgumentParser
[205 / 682] ArgumentParser
[205 / 683] encuda-product
[209 / 683] encuda-product
In file included from /host/spi-builder-workspace/.build/checkouts/mlx-swift/Source/Cmlx/mlx/mlx/backend/cuda/worker.cpp:3:
In file included from /host/spi-builder-workspace/.build/checkouts/mlx-swift/Source/Cmlx/mlx/mlx/backend/cuda/worker.h:5:
In file included from /host/spi-builder-workspace/.build/checkouts/mlx-swift/Source/Cmlx/mlx/mlx/backend/cuda/event.h:6:
In file included from /host/spi-builder-workspace/.build/checkouts/mlx-swift/Source/Cmlx/mlx/mlx/backend/cuda/utils.h:7:
In file included from /host/spi-builder-workspace/.build/checkouts/mlx-swift/Source/Cmlx/mlx/mlx/array.h:14:
In file included from /host/spi-builder-workspace/.build/checkouts/mlx-swift/Source/Cmlx/mlx/mlx/event.h:8:
/host/spi-builder-workspace/.build/checkouts/mlx-swift/Source/Cmlx/mlx/mlx/error.h:17:5: error: no matching function for call to 'atomic_store'
   17 |     std::atomic_store(&message_, std::move(msg));
      |     ^~~~~~~~~~~~~~~~~
In file included from /host/spi-builder-workspace/.build/checkouts/mlx-swift/Source/Cmlx/mlx/mlx/backend/cuda/worker.cpp:3:
In file included from /host/spi-builder-workspace/.build/checkouts/mlx-swift/Source/Cmlx/mlx/mlx/backend/cuda/worker.h:5:
In file included from /host/spi-builder-workspace/.build/checkouts/mlx-swift/Source/Cmlx/mlx/mlx/backend/cuda/event.h:5:
In file included from /host/spi-builder-workspace/.build/checkouts/mlx-swift/Source/Cmlx/mlx/mlx/allocator.h:6:
In file included from /root/.swiftpm/swift-sdks/swift-6.4.0-RELEASE_wasm.artifactbundle/swift-6.4.0-RELEASE_wasm/wasm32-unknown-wasip1/WASI.sdk/include/c++/v1/functional:557:
In file included from /root/.swiftpm/swift-sdks/swift-6.4.0-RELEASE_wasm.artifactbundle/swift-6.4.0-RELEASE_wasm/wasm32-unknown-wasip1/WASI.sdk/include/c++/v1/__functional/boyer_moore_searcher.h:24:
In file included from /root/.swiftpm/swift-sdks/swift-6.4.0-RELEASE_wasm.artifactbundle/swift-6.4.0-RELEASE_wasm/wasm32-unknown-wasip1/WASI.sdk/include/c++/v1/array:566:
In file included from /root/.swiftpm/swift-sdks/swift-6.4.0-RELEASE_wasm.artifactbundle/swift-6.4.0-RELEASE_wasm/wasm32-unknown-wasip1/WASI.sdk/include/c++/v1/algorithm:2057:
In file included from /root/.swiftpm/swift-sdks/swift-6.4.0-RELEASE_wasm.artifactbundle/swift-6.4.0-RELEASE_wasm/wasm32-unknown-wasip1/WASI.sdk/include/c++/v1/atomic:605:
In file included from /root/.swiftpm/swift-sdks/swift-6.4.0-RELEASE_wasm.artifactbundle/swift-6.4.0-RELEASE_wasm/wasm32-unknown-wasip1/WASI.sdk/include/c++/v1/__atomic/aliases.h:12:
/root/.swiftpm/swift-sdks/swift-6.4.0-RELEASE_wasm.artifactbundle/swift-6.4.0-RELEASE_wasm/wasm32-unknown-wasip1/WASI.sdk/include/c++/v1/__atomic/atomic.h:491:28: note: candidate template ignored: could not match 'atomic' against 'shared_ptr'
  491 | _LIBCPP_HIDE_FROM_ABI void atomic_store(volatile atomic<_Tp>* __o, typename atomic<_Tp>::value_type __d) _NOEXCEPT {
      |                            ^
/root/.swiftpm/swift-sdks/swift-6.4.0-RELEASE_wasm.artifactbundle/swift-6.4.0-RELEASE_wasm/wasm32-unknown-wasip1/WASI.sdk/include/c++/v1/__atomic/atomic.h:496:28: note: candidate template ignored: could not match 'atomic' against 'shared_ptr'
  496 | _LIBCPP_HIDE_FROM_ABI void atomic_store(atomic<_Tp>* __o, typename atomic<_Tp>::value_type __d) _NOEXCEPT {
      |                            ^
In file included from /host/spi-builder-workspace/.build/checkouts/mlx-swift/Source/Cmlx/mlx/mlx/backend/cuda/worker.cpp:3:
In file included from /host/spi-builder-workspace/.build/checkouts/mlx-swift/Source/Cmlx/mlx/mlx/backend/cuda/worker.h:5:
In file included from /host/spi-builder-workspace/.build/checkouts/mlx-swift/Source/Cmlx/mlx/mlx/backend/cuda/event.h:6:
In file included from /host/spi-builder-workspace/.build/checkouts/mlx-swift/Source/Cmlx/mlx/mlx/backend/cuda/utils.h:7:
In file included from /host/spi-builder-workspace/.build/checkouts/mlx-swift/Source/Cmlx/mlx/mlx/array.h:14:
In file included from /host/spi-builder-workspace/.build/checkouts/mlx-swift/Source/Cmlx/mlx/mlx/event.h:8:
/host/spi-builder-workspace/.build/checkouts/mlx-swift/Source/Cmlx/mlx/mlx/error.h:21:16: error: no matching function for call to 'atomic_load'
   21 |     auto msg = std::atomic_load(&message_);
      |                ^~~~~~~~~~~~~~~~
In file included from /host/spi-builder-workspace/.build/checkouts/mlx-swift/Source/Cmlx/mlx/mlx/backend/cuda/worker.cpp:3:
In file included from /host/spi-builder-workspace/.build/checkouts/mlx-swift/Source/Cmlx/mlx/mlx/backend/cuda/worker.h:5:
In file included from /host/spi-builder-workspace/.build/checkouts/mlx-swift/Source/Cmlx/mlx/mlx/backend/cuda/event.h:5:
In file included from /host/spi-builder-workspace/.build/checkouts/mlx-swift/Source/Cmlx/mlx/mlx/allocator.h:6:
In file included from /root/.swiftpm/swift-sdks/swift-6.4.0-RELEASE_wasm.artifactbundle/swift-6.4.0-RELEASE_wasm/wasm32-unknown-wasip1/WASI.sdk/include/c++/v1/functional:557:
In file included from /root/.swiftpm/swift-sdks/swift-6.4.0-RELEASE_wasm.artifactbundle/swift-6.4.0-RELEASE_wasm/wasm32-unknown-wasip1/WASI.sdk/include/c++/v1/__functional/boyer_moore_searcher.h:24:
In file included from /root/.swiftpm/swift-sdks/swift-6.4.0-RELEASE_wasm.artifactbundle/swift-6.4.0-RELEASE_wasm/wasm32-unknown-wasip1/WASI.sdk/include/c++/v1/array:566:
In file included from /root/.swiftpm/swift-sdks/swift-6.4.0-RELEASE_wasm.artifactbundle/swift-6.4.0-RELEASE_wasm/wasm32-unknown-wasip1/WASI.sdk/include/c++/v1/algorithm:2057:
In file included from /root/.swiftpm/swift-sdks/swift-6.4.0-RELEASE_wasm.artifactbundle/swift-6.4.0-RELEASE_wasm/wasm32-unknown-wasip1/WASI.sdk/include/c++/v1/atomic:605:
In file included from /root/.swiftpm/swift-sdks/swift-6.4.0-RELEASE_wasm.artifactbundle/swift-6.4.0-RELEASE_wasm/wasm32-unknown-wasip1/WASI.sdk/include/c++/v1/__atomic/aliases.h:12:
/root/.swiftpm/swift-sdks/swift-6.4.0-RELEASE_wasm.artifactbundle/swift-6.4.0-RELEASE_wasm/wasm32-unknown-wasip1/WASI.sdk/include/c++/v1/__atomic/atomic.h:519:27: note: candidate template ignored: could not match 'atomic' against 'shared_ptr'
  519 | _LIBCPP_HIDE_FROM_ABI _Tp atomic_load(const volatile atomic<_Tp>* __o) _NOEXCEPT {
      |                           ^
/root/.swiftpm/swift-sdks/swift-6.4.0-RELEASE_wasm.artifactbundle/swift-6.4.0-RELEASE_wasm/wasm32-unknown-wasip1/WASI.sdk/include/c++/v1/__atomic/atomic.h:524:27: note: candidate template ignored: could not match 'atomic' against 'shared_ptr'
  524 | _LIBCPP_HIDE_FROM_ABI _Tp atomic_load(const atomic<_Tp>* __o) _NOEXCEPT {
      |                           ^
In file included from /host/spi-builder-workspace/.build/checkouts/mlx-swift/Source/Cmlx/mlx/mlx/backend/cuda/worker.cpp:3:
In file included from /host/spi-builder-workspace/.build/checkouts/mlx-swift/Source/Cmlx/mlx/mlx/backend/cuda/worker.h:5:
In file included from /host/spi-builder-workspace/.build/checkouts/mlx-swift/Source/Cmlx/mlx/mlx/backend/cuda/event.h:6:
In file included from /host/spi-builder-workspace/.build/checkouts/mlx-swift/Source/Cmlx/mlx/mlx/backend/cuda/utils.h:7:
In file included from /host/spi-builder-workspace/.build/checkouts/mlx-swift/Source/Cmlx/mlx/mlx/array.h:14:
In file included from /host/spi-builder-workspace/.build/checkouts/mlx-swift/Source/Cmlx/mlx/mlx/event.h:8:
/host/spi-builder-workspace/.build/checkouts/mlx-swift/Source/Cmlx/mlx/mlx/error.h:28:21: error: no matching function for call to 'atomic_load'
   28 |       Message msg = std::atomic_load(&ptr->message_);
      |                     ^~~~~~~~~~~~~~~~
In file included from /host/spi-builder-workspace/.build/checkouts/mlx-swift/Source/Cmlx/mlx/mlx/backend/cuda/worker.cpp:3:
In file included from /host/spi-builder-workspace/.build/checkouts/mlx-swift/Source/Cmlx/mlx/mlx/backend/cuda/worker.h:5:
In file included from /host/spi-builder-workspace/.build/checkouts/mlx-swift/Source/Cmlx/mlx/mlx/backend/cuda/event.h:5:
In file included from /host/spi-builder-workspace/.build/checkouts/mlx-swift/Source/Cmlx/mlx/mlx/allocator.h:6:
In file included from /root/.swiftpm/swift-sdks/swift-6.4.0-RELEASE_wasm.artifactbundle/swift-6.4.0-RELEASE_wasm/wasm32-unknown-wasip1/WASI.sdk/include/c++/v1/functional:557:
In file included from /root/.swiftpm/swift-sdks/swift-6.4.0-RELEASE_wasm.artifactbundle/swift-6.4.0-RELEASE_wasm/wasm32-unknown-wasip1/WASI.sdk/include/c++/v1/__functional/boyer_moore_searcher.h:24:
In file included from /root/.swiftpm/swift-sdks/swift-6.4.0-RELEASE_wasm.artifactbundle/swift-6.4.0-RELEASE_wasm/wasm32-unknown-wasip1/WASI.sdk/include/c++/v1/array:566:
In file included from /root/.swiftpm/swift-sdks/swift-6.4.0-RELEASE_wasm.artifactbundle/swift-6.4.0-RELEASE_wasm/wasm32-unknown-wasip1/WASI.sdk/include/c++/v1/algorithm:2057:
In file included from /root/.swiftpm/swift-sdks/swift-6.4.0-RELEASE_wasm.artifactbundle/swift-6.4.0-RELEASE_wasm/wasm32-unknown-wasip1/WASI.sdk/include/c++/v1/atomic:605:
In file included from /root/.swiftpm/swift-sdks/swift-6.4.0-RELEASE_wasm.artifactbundle/swift-6.4.0-RELEASE_wasm/wasm32-unknown-wasip1/WASI.sdk/include/c++/v1/__atomic/aliases.h:12:
/root/.swiftpm/swift-sdks/swift-6.4.0-RELEASE_wasm.artifactbundle/swift-6.4.0-RELEASE_wasm/wasm32-unknown-wasip1/WASI.sdk/include/c++/v1/__atomic/atomic.h:519:27: note: candidate template ignored: could not match 'atomic' against 'shared_ptr'
  519 | _LIBCPP_HIDE_FROM_ABI _Tp atomic_load(const volatile atomic<_Tp>* __o) _NOEXCEPT {
      |                           ^
/root/.swiftpm/swift-sdks/swift-6.4.0-RELEASE_wasm.artifactbundle/swift-6.4.0-RELEASE_wasm/wasm32-unknown-wasip1/WASI.sdk/include/c++/v1/__atomic/atomic.h:524:27: note: candidate template ignored: could not match 'atomic' against 'shared_ptr'
  524 | _LIBCPP_HIDE_FROM_ABI _Tp atomic_load(const atomic<_Tp>* __o) _NOEXCEPT {
      |                           ^
In file included from /host/spi-builder-workspace/.build/checkouts/mlx-swift/Source/Cmlx/mlx/mlx/backend/cuda/worker.cpp:3:
In file included from /host/spi-builder-workspace/.build/checkouts/mlx-swift/Source/Cmlx/mlx/mlx/backend/cuda/worker.h:5:
In file included from /host/spi-builder-workspace/.build/checkouts/mlx-swift/Source/Cmlx/mlx/mlx/backend/cuda/event.h:6:
In file included from /host/spi-builder-workspace/.build/checkouts/mlx-swift/Source/Cmlx/mlx/mlx/backend/cuda/utils.h:7:
In file included from /host/spi-builder-workspace/.build/checkouts/mlx-swift/Source/Cmlx/mlx/mlx/array.h:14:
In file included from /host/spi-builder-workspace/.build/checkouts/mlx-swift/Source/Cmlx/mlx/mlx/event.h:8:
/host/spi-builder-workspace/.build/checkouts/mlx-swift/Source/Cmlx/mlx/mlx/error.h:39:16: error: no matching function for call to 'atomic_exchange'
   39 |     auto msg = std::atomic_exchange(&message_, {});
      |                ^~~~~~~~~~~~~~~~~~~~
In file included from /host/spi-builder-workspace/.build/checkouts/mlx-swift/Source/Cmlx/mlx/mlx/backend/cuda/worker.cpp:3:
In file included from /host/spi-builder-workspace/.build/checkouts/mlx-swift/Source/Cmlx/mlx/mlx/backend/cuda/worker.h:5:
In file included from /host/spi-builder-workspace/.build/checkouts/mlx-swift/Source/Cmlx/mlx/mlx/backend/cuda/event.h:5:
In file included from /host/spi-builder-workspace/.build/checkouts/mlx-swift/Source/Cmlx/mlx/mlx/allocator.h:6:
In file included from /root/.swiftpm/swift-sdks/swift-6.4.0-RELEASE_wasm.artifactbundle/swift-6.4.0-RELEASE_wasm/wasm32-unknown-wasip1/WASI.sdk/include/c++/v1/functional:557:
In file included from /root/.swiftpm/swift-sdks/swift-6.4.0-RELEASE_wasm.artifactbundle/swift-6.4.0-RELEASE_wasm/wasm32-unknown-wasip1/WASI.sdk/include/c++/v1/__functional/boyer_moore_searcher.h:24:
In file included from /root/.swiftpm/swift-sdks/swift-6.4.0-RELEASE_wasm.artifactbundle/swift-6.4.0-RELEASE_wasm/wasm32-unknown-wasip1/WASI.sdk/include/c++/v1/array:566:
In file included from /root/.swiftpm/swift-sdks/swift-6.4.0-RELEASE_wasm.artifactbundle/swift-6.4.0-RELEASE_wasm/wasm32-unknown-wasip1/WASI.sdk/include/c++/v1/algorithm:2057:
In file included from /root/.swiftpm/swift-sdks/swift-6.4.0-RELEASE_wasm.artifactbundle/swift-6.4.0-RELEASE_wasm/wasm32-unknown-wasip1/WASI.sdk/include/c++/v1/atomic:605:
In file included from /root/.swiftpm/swift-sdks/swift-6.4.0-RELEASE_wasm.artifactbundle/swift-6.4.0-RELEASE_wasm/wasm32-unknown-wasip1/WASI.sdk/include/c++/v1/__atomic/aliases.h:12:
/root/.swiftpm/swift-sdks/swift-6.4.0-RELEASE_wasm.artifactbundle/swift-6.4.0-RELEASE_wasm/wasm32-unknown-wasip1/WASI.sdk/include/c++/v1/__atomic/atomic.h:545:27: note: candidate template ignored: could not match 'atomic' against 'shared_ptr'
  545 | _LIBCPP_HIDE_FROM_ABI _Tp atomic_exchange(volatile atomic<_Tp>* __o, typename atomic<_Tp>::value_type __d) _NOEXCEPT {
      |                           ^
/root/.swiftpm/swift-sdks/swift-6.4.0-RELEASE_wasm.artifactbundle/swift-6.4.0-RELEASE_wasm/wasm32-unknown-wasip1/WASI.sdk/include/c++/v1/__atomic/atomic.h:550:27: note: candidate template ignored: could not match 'atomic' against 'shared_ptr'
  550 | _LIBCPP_HIDE_FROM_ABI _Tp atomic_exchange(atomic<_Tp>* __o, typename atomic<_Tp>::value_type __d) _NOEXCEPT {
      |                           ^
In file included from /host/spi-builder-workspace/.build/checkouts/mlx-swift/Source/Cmlx/mlx/mlx/backend/cuda/worker.cpp:3:
In file included from /host/spi-builder-workspace/.build/checkouts/mlx-swift/Source/Cmlx/mlx/mlx/backend/cuda/worker.h:5:
In file included from /host/spi-builder-workspace/.build/checkouts/mlx-swift/Source/Cmlx/mlx/mlx/backend/cuda/event.h:6:
In file included from /host/spi-builder-workspace/.build/checkouts/mlx-swift/Source/Cmlx/mlx/mlx/backend/cuda/utils.h:8:
In file included from /host/spi-builder-workspace/.build/checkouts/mlx-swift/Source/Cmlx/mlx/mlx/backend/cuda/allocator.h:7:
/host/spi-builder-workspace/.build/checkouts/mlx-swift/Source/Cmlx/mlx/mlx/backend/cuda/cuda_utils.h:5:10: error: 'cuda.h' file not found with <angled> include; use "quotes" instead
    5 | #include <cuda.h>
      |          ^~~~~~~~
      |          "cuda.h"
/host/spi-builder-workspace/.build/checkouts/mlx-swift/Source/Cmlx/mlx/mlx/backend/cuda/cuda_utils.h:6:10: fatal error: 'cuda_runtime.h' file not found
    6 | #include <cuda_runtime.h>
      |          ^~~~~~~~~~~~~~~~
6 errors generated.
error: CompileC /host/spi-builder-workspace/.build/out/Intermediates.noindex/mlx-swift.build/Debug-webassembly-wasm32/Cmlx-t.build/Objects-normal/wasm32/worker.o /host/spi-builder-workspace/.build/checkouts/mlx-swift/Source/Cmlx/mlx/mlx/backend/cuda/worker.cpp normal wasm32 c++ com.apple.compilers.llvm.clang.1_0.compiler failed with a nonzero exit code. Command line:     cd /host

    Using response file: /host/spi-builder-workspace/.build/out/Intermediates.noindex/mlx-swift.build/Debug-webassembly-wasm32/Cmlx-t.build/Objects-normal/wasm32/11b881b950eb02e21769317df93e9b41d1d7f0348e4e0901ae810dce93ca1a57-common-args.resp

    /usr/bin/clang -x c++ -target wasm32-unknown-wasip1 -fmessage-length\=0 -fdiagnostics-show-note-include-stack -fmacro-backtrace-limit\=0 -fcolor-diagnostics -Wno-trigraphs -Wno-missing-field-initializers -Wno-missing-prototypes -Wno-return-type -Wno-non-virtual-dtor -Wno-overloaded-virtual -Wno-exit-time-destructors -Wno-missing-braces -Wparentheses -Wswitch -Wno-unused-function -Wno-unused-label -Wno-unused-parameter -Wno-unused-variable -Wunused-value -Wno-empty-body -Wno-uninitialized -Wno-unknown-pragmas -w -Wno-shadow -Wno-four-char-constants -Wno-conversion -Wno-constant-conversion -Wno-int-conversion -Wno-bool-conversion -Wno-enum-conversion -Wno-float-conversion -Wno-non-literal-null-conversion -Wno-objc-literal-conversion -Wno-shorten-64-to-32 -Wno-newline-eof -Wno-c++11-extensions -Wno-implicit-fallthrough -fstrict-aliasing -Wdeprecated-declarations -Winvalid-offsetof -Wno-sign-conversion -Wno-infinite-recursion -Wno-move -Wno-comma -Wno-block-capture-autoreleasing -Wno-strict-prototypes -Wno-range-loop-analysis -Wno-semicolon-before-method-body --sysroot /root/.swiftpm/swift-sdks/swift-6.4.0-RELEASE_wasm.artifactbundle/swift-6.4.0-RELEASE_wasm/wasm32-unknown-wasip1/WASI.sdk @/host/spi-builder-workspace/.build/out/Intermediates.noindex/mlx-swift.build/Debug-webassembly-wasm32/Cmlx-t.build/Objects-normal/wasm32/11b881b950eb02e21769317df93e9b41d1d7f0348e4e0901ae810dce93ca1a57-common-args.resp -MMD -MT dependencies -MF /host/spi-builder-workspace/.build/out/Intermediates.noindex/mlx-swift.build/Debug-webassembly-wasm32/Cmlx-t.build/Objects-normal/wasm32/worker.d --serialize-diagnostics /host/spi-builder-workspace/.build/out/Intermediates.noindex/mlx-swift.build/Debug-webassembly-wasm32/Cmlx-t.build/Objects-normal/wasm32/worker.dia -c /host/spi-builder-workspace/.build/checkouts/mlx-swift/Source/Cmlx/mlx/mlx/backend/cuda/worker.cpp -o /host/spi-builder-workspace/.build/out/Intermediates.noindex/mlx-swift.build/Debug-webassembly-wasm32/Cmlx-t.build/Objects-normal/wasm32/worker.o
In file included from /host/spi-builder-workspace/.build/checkouts/mlx-swift/Source/Cmlx/mlx/mlx/scheduler.cpp:6:
In file included from /host/spi-builder-workspace/.build/checkouts/mlx-swift/Source/Cmlx/mlx/mlx/backend/cpu/eval.h:5:
In file included from /host/spi-builder-workspace/.build/checkouts/mlx-swift/Source/Cmlx/mlx/mlx/array.h:14:
In file included from /host/spi-builder-workspace/.build/checkouts/mlx-swift/Source/Cmlx/mlx/mlx/event.h:8:
/host/spi-builder-workspace/.build/checkouts/mlx-swift/Source/Cmlx/mlx/mlx/error.h:17:5: error: no matching function for call to 'atomic_store'
   17 |     std::atomic_store(&message_, std::move(msg));
      |     ^~~~~~~~~~~~~~~~~
In file included from /host/spi-builder-workspace/.build/checkouts/mlx-swift/Source/Cmlx/mlx/mlx/scheduler.cpp:3:
In file included from /root/.swiftpm/swift-sdks/swift-6.4.0-RELEASE_wasm.artifactbundle/swift-6.4.0-RELEASE_wasm/wasm32-unknown-wasip1/WASI.sdk/include/c++/v1/future:2076:
In file included from /root/.swiftpm/swift-sdks/swift-6.4.0-RELEASE_wasm.artifactbundle/swift-6.4.0-RELEASE_wasm/wasm32-unknown-wasip1/WASI.sdk/include/c++/v1/atomic:605:
In file included from /root/.swiftpm/swift-sdks/swift-6.4.0-RELEASE_wasm.artifactbundle/swift-6.4.0-RELEASE_wasm/wasm32-unknown-wasip1/WASI.sdk/include/c++/v1/__atomic/aliases.h:12:
/root/.swiftpm/swift-sdks/swift-6.4.0-RELEASE_wasm.artifactbundle/swift-6.4.0-RELEASE_wasm/wasm32-unknown-wasip1/WASI.sdk/include/c++/v1/__atomic/atomic.h:491:28: note: candidate template ignored: could not match 'atomic' against 'shared_ptr'
  491 | _LIBCPP_HIDE_FROM_ABI void atomic_store(volatile atomic<_Tp>* __o, typename atomic<_Tp>::value_type __d) _NOEXCEPT {
      |                            ^
/root/.swiftpm/swift-sdks/swift-6.4.0-RELEASE_wasm.artifactbundle/swift-6.4.0-RELEASE_wasm/wasm32-unknown-wasip1/WASI.sdk/include/c++/v1/__atomic/atomic.h:496:28: note: candidate template ignored: could not match 'atomic' against 'shared_ptr'
  496 | _LIBCPP_HIDE_FROM_ABI void atomic_store(atomic<_Tp>* __o, typename atomic<_Tp>::value_type __d) _NOEXCEPT {
      |                            ^
In file included from /host/spi-builder-workspace/.build/checkouts/mlx-swift/Source/Cmlx/mlx/mlx/scheduler.cpp:6:
In file included from /host/spi-builder-workspace/.build/checkouts/mlx-swift/Source/Cmlx/mlx/mlx/backend/cpu/eval.h:5:
In file included from /host/spi-builder-workspace/.build/checkouts/mlx-swift/Source/Cmlx/mlx/mlx/array.h:14:
In file included from /host/spi-builder-workspace/.build/checkouts/mlx-swift/Source/Cmlx/mlx/mlx/event.h:8:
/host/spi-builder-workspace/.build/checkouts/mlx-swift/Source/Cmlx/mlx/mlx/error.h:21:16: error: no matching function for call to 'atomic_load'
   21 |     auto msg = std::atomic_load(&message_);
      |                ^~~~~~~~~~~~~~~~
In file included from /host/spi-builder-workspace/.build/checkouts/mlx-swift/Source/Cmlx/mlx/mlx/scheduler.cpp:3:
In file included from /root/.swiftpm/swift-sdks/swift-6.4.0-RELEASE_wasm.artifactbundle/swift-6.4.0-RELEASE_wasm/wasm32-unknown-wasip1/WASI.sdk/include/c++/v1/future:2076:
In file included from /root/.swiftpm/swift-sdks/swift-6.4.0-RELEASE_wasm.artifactbundle/swift-6.4.0-RELEASE_wasm/wasm32-unknown-wasip1/WASI.sdk/include/c++/v1/atomic:605:
In file included from /root/.swiftpm/swift-sdks/swift-6.4.0-RELEASE_wasm.artifactbundle/swift-6.4.0-RELEASE_wasm/wasm32-unknown-wasip1/WASI.sdk/include/c++/v1/__atomic/aliases.h:12:
/root/.swiftpm/swift-sdks/swift-6.4.0-RELEASE_wasm.artifactbundle/swift-6.4.0-RELEASE_wasm/wasm32-unknown-wasip1/WASI.sdk/include/c++/v1/__atomic/atomic.h:519:27: note: candidate template ignored: could not match 'atomic' against 'shared_ptr'
  519 | _LIBCPP_HIDE_FROM_ABI _Tp atomic_load(const volatile atomic<_Tp>* __o) _NOEXCEPT {
      |                           ^
/root/.swiftpm/swift-sdks/swift-6.4.0-RELEASE_wasm.artifactbundle/swift-6.4.0-RELEASE_wasm/wasm32-unknown-wasip1/WASI.sdk/include/c++/v1/__atomic/atomic.h:524:27: note: candidate template ignored: could not match 'atomic' against 'shared_ptr'
  524 | _LIBCPP_HIDE_FROM_ABI _Tp atomic_load(const atomic<_Tp>* __o) _NOEXCEPT {
      |                           ^
In file included from /host/spi-builder-workspace/.build/checkouts/mlx-swift/Source/Cmlx/mlx/mlx/scheduler.cpp:6:
In file included from /host/spi-builder-workspace/.build/checkouts/mlx-swift/Source/Cmlx/mlx/mlx/backend/cpu/eval.h:5:
In file included from /host/spi-builder-workspace/.build/checkouts/mlx-swift/Source/Cmlx/mlx/mlx/array.h:14:
In file included from /host/spi-builder-workspace/.build/checkouts/mlx-swift/Source/Cmlx/mlx/mlx/event.h:8:
/host/spi-builder-workspace/.build/checkouts/mlx-swift/Source/Cmlx/mlx/mlx/error.h:28:21: error: no matching function for call to 'atomic_load'
   28 |       Message msg = std::atomic_load(&ptr->message_);
      |                     ^~~~~~~~~~~~~~~~
In file included from /host/spi-builder-workspace/.build/checkouts/mlx-swift/Source/Cmlx/mlx/mlx/scheduler.cpp:3:
In file included from /root/.swiftpm/swift-sdks/swift-6.4.0-RELEASE_wasm.artifactbundle/swift-6.4.0-RELEASE_wasm/wasm32-unknown-wasip1/WASI.sdk/include/c++/v1/future:2076:
In file included from /root/.swiftpm/swift-sdks/swift-6.4.0-RELEASE_wasm.artifactbundle/swift-6.4.0-RELEASE_wasm/wasm32-unknown-wasip1/WASI.sdk/include/c++/v1/atomic:605:
In file included from /root/.swiftpm/swift-sdks/swift-6.4.0-RELEASE_wasm.artifactbundle/swift-6.4.0-RELEASE_wasm/wasm32-unknown-wasip1/WASI.sdk/include/c++/v1/__atomic/aliases.h:12:
/root/.swiftpm/swift-sdks/swift-6.4.0-RELEASE_wasm.artifactbundle/swift-6.4.0-RELEASE_wasm/wasm32-unknown-wasip1/WASI.sdk/include/c++/v1/__atomic/atomic.h:519:27: note: candidate template ignored: could not match 'atomic' against 'shared_ptr'
  519 | _LIBCPP_HIDE_FROM_ABI _Tp atomic_load(const volatile atomic<_Tp>* __o) _NOEXCEPT {
      |                           ^
/root/.swiftpm/swift-sdks/swift-6.4.0-RELEASE_wasm.artifactbundle/swift-6.4.0-RELEASE_wasm/wasm32-unknown-wasip1/WASI.sdk/include/c++/v1/__atomic/atomic.h:524:27: note: candidate template ignored: could not match 'atomic' against 'shared_ptr'
  524 | _LIBCPP_HIDE_FROM_ABI _Tp atomic_load(const atomic<_Tp>* __o) _NOEXCEPT {
      |                           ^
In file included from /host/spi-builder-workspace/.build/checkouts/mlx-swift/Source/Cmlx/mlx/mlx/scheduler.cpp:6:
In file included from /host/spi-builder-workspace/.build/checkouts/mlx-swift/Source/Cmlx/mlx/mlx/backend/cpu/eval.h:5:
In file included from /host/spi-builder-workspace/.build/checkouts/mlx-swift/Source/Cmlx/mlx/mlx/array.h:14:
In file included from /host/spi-builder-workspace/.build/checkouts/mlx-swift/Source/Cmlx/mlx/mlx/event.h:8:
/host/spi-builder-workspace/.build/checkouts/mlx-swift/Source/Cmlx/mlx/mlx/error.h:39:16: error: no matching function for call to 'atomic_exchange'
   39 |     auto msg = std::atomic_exchange(&message_, {});
      |                ^~~~~~~~~~~~~~~~~~~~
In file included from /host/spi-builder-workspace/.build/checkouts/mlx-swift/Source/Cmlx/mlx/mlx/scheduler.cpp:3:
In file included from /root/.swiftpm/swift-sdks/swift-6.4.0-RELEASE_wasm.artifactbundle/swift-6.4.0-RELEASE_wasm/wasm32-unknown-wasip1/WASI.sdk/include/c++/v1/future:2076:
In file included from /root/.swiftpm/swift-sdks/swift-6.4.0-RELEASE_wasm.artifactbundle/swift-6.4.0-RELEASE_wasm/wasm32-unknown-wasip1/WASI.sdk/include/c++/v1/atomic:605:
In file included from /root/.swiftpm/swift-sdks/swift-6.4.0-RELEASE_wasm.artifactbundle/swift-6.4.0-RELEASE_wasm/wasm32-unknown-wasip1/WASI.sdk/include/c++/v1/__atomic/aliases.h:12:
/root/.swiftpm/swift-sdks/swift-6.4.0-RELEASE_wasm.artifactbundle/swift-6.4.0-RELEASE_wasm/wasm32-unknown-wasip1/WASI.sdk/include/c++/v1/__atomic/atomic.h:545:27: note: candidate template ignored: could not match 'atomic' against 'shared_ptr'
  545 | _LIBCPP_HIDE_FROM_ABI _Tp atomic_exchange(volatile atomic<_Tp>* __o, typename atomic<_Tp>::value_type __d) _NOEXCEPT {
      |                           ^
/root/.swiftpm/swift-sdks/swift-6.4.0-RELEASE_wasm.artifactbundle/swift-6.4.0-RELEASE_wasm/wasm32-unknown-wasip1/WASI.sdk/include/c++/v1/__atomic/atomic.h:550:27: note: candidate template ignored: could not match 'atomic' against 'shared_ptr'
  550 | _LIBCPP_HIDE_FROM_ABI _Tp atomic_exchange(atomic<_Tp>* __o, typename atomic<_Tp>::value_type __d) _NOEXCEPT {
      |                           ^
In file included from /host/spi-builder-workspace/.build/checkouts/mlx-swift/Source/Cmlx/mlx/mlx/scheduler.cpp:9:
In file included from /host/spi-builder-workspace/.build/checkouts/mlx-swift/Source/Cmlx/mlx/mlx/scheduler.h:14:
/host/spi-builder-workspace/.build/checkouts/mlx-swift/Source/Cmlx/mlx/mlx/utils.h:58:8: error: no member named 'thread' in namespace 'std'
   58 |   std::thread::id _owner;
      |   ~~~~~^
/host/spi-builder-workspace/.build/checkouts/mlx-swift/Source/Cmlx/mlx/mlx/utils.h:34:21: error: no member named 'this_thread' in namespace 'std'
   34 |         _owner(std::this_thread::get_id()) {
      |                ~~~~~^
/host/spi-builder-workspace/.build/checkouts/mlx-swift/Source/Cmlx/mlx/mlx/utils.h:47:14: error: no member named 'this_thread' in namespace 'std'
   47 |     if (std::this_thread::get_id() != _owner) {
      |         ~~~~~^
In file included from /host/spi-builder-workspace/.build/checkouts/mlx-swift/Source/Cmlx/mlx/mlx/scheduler.cpp:9:
/host/spi-builder-workspace/.build/checkouts/mlx-swift/Source/Cmlx/mlx/mlx/scheduler.h:73:8: error: no type named 'shared_mutex' in namespace 'std'
   73 |   std::shared_mutex threads_mtx_;
      |   ~~~~~^
/host/spi-builder-workspace/.build/checkouts/mlx-swift/Source/Cmlx/mlx/mlx/scheduler.h:74:8: error: no type named 'condition_variable' in namespace 'std'
   74 |   std::condition_variable completion_cv;
      |   ~~~~~^
/host/spi-builder-workspace/.build/checkouts/mlx-swift/Source/Cmlx/mlx/mlx/scheduler.h:75:8: error: no type named 'mutex' in namespace 'std'
   75 |   std::mutex mtx;
      |   ~~~~~^
/host/spi-builder-workspace/.build/checkouts/mlx-swift/Source/Cmlx/mlx/mlx/scheduler.h:38:28: error: no member named 'mutex' in namespace 'std'
   38 |       std::lock_guard<std::mutex> lk(mtx);
      |                            ^~~~~
/host/spi-builder-workspace/.build/checkouts/mlx-swift/Source/Cmlx/mlx/mlx/scheduler.h:46:28: error: no member named 'mutex' in namespace 'std'
   46 |       std::lock_guard<std::mutex> lk(mtx);
      |                            ^~~~~
/host/spi-builder-workspace/.build/checkouts/mlx-swift/Source/Cmlx/mlx/mlx/scheduler.h:57:27: error: no member named 'mutex' in namespace 'std'
   57 |     std::unique_lock<std::mutex> lk(mtx);
      |                           ^~~~~
/host/spi-builder-workspace/.build/checkouts/mlx-swift/Source/Cmlx/mlx/mlx/scheduler.cpp:16:36: error: no member named 'promise' in namespace 'std'
   16 |     auto p = std::make_shared<std::promise<void>>();
      |                                    ^~~~~~~
/host/spi-builder-workspace/.build/checkouts/mlx-swift/Source/Cmlx/mlx/mlx/scheduler.cpp:16:48: error: expected '(' for function-style cast or type construction
   16 |     auto p = std::make_shared<std::promise<void>>();
      |                                            ~~~~^
/host/spi-builder-workspace/.build/checkouts/mlx-swift/Source/Cmlx/mlx/mlx/scheduler.cpp:16:51: error: expected expression
   16 |     auto p = std::make_shared<std::promise<void>>();
      |                                                   ^
/host/spi-builder-workspace/.build/checkouts/mlx-swift/Source/Cmlx/mlx/mlx/scheduler.cpp:17:10: error: no member named 'future' in namespace 'std'
   17 |     std::future<void> f = p->get_future();
      |          ^~~~~~
/host/spi-builder-workspace/.build/checkouts/mlx-swift/Source/Cmlx/mlx/mlx/scheduler.cpp:17:21: error: expected '(' for function-style cast or type construction
   17 |     std::future<void> f = p->get_future();
      |                 ~~~~^
/host/spi-builder-workspace/.build/checkouts/mlx-swift/Source/Cmlx/mlx/mlx/scheduler.cpp:17:23: error: use of undeclared identifier 'f'
   17 |     std::future<void> f = p->get_future();
      |                       ^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
error: CompileC /host/spi-builder-workspace/.build/out/Intermediates.noindex/mlx-swift.build/Debug-webassembly-wasm32/Cmlx-t.build/Objects-normal/wasm32/scheduler.o /host/spi-builder-workspace/.build/checkouts/mlx-swift/Source/Cmlx/mlx/mlx/scheduler.cpp normal wasm32 c++ com.apple.compilers.llvm.clang.1_0.compiler failed with a nonzero exit code. Command line:     cd /host

    Using response file: /host/spi-builder-workspace/.build/out/Intermediates.noindex/mlx-swift.build/Debug-webassembly-wasm32/Cmlx-t.build/Objects-normal/wasm32/11b881b950eb02e21769317df93e9b41d1d7f0348e4e0901ae810dce93ca1a57-common-args.resp

    /usr/bin/clang -x c++ -target wasm32-unknown-wasip1 -fmessage-length\=0 -fdiagnostics-show-note-include-stack -fmacro-backtrace-limit\=0 -fcolor-diagnostics -Wno-trigraphs -Wno-missing-field-initializers -Wno-missing-prototypes -Wno-return-type -Wno-non-virtual-dtor -Wno-overloaded-virtual -Wno-exit-time-destructors -Wno-missing-braces -Wparentheses -Wswitch -Wno-unused-function -Wno-unused-label -Wno-unused-parameter -Wno-unused-variable -Wunused-value -Wno-empty-body -Wno-uninitialized -Wno-unknown-pragmas -w -Wno-shadow -Wno-four-char-constants -Wno-conversion -Wno-constant-conversion -Wno-int-conversion -Wno-bool-conversion -Wno-enum-conversion -Wno-float-conversion -Wno-non-literal-null-conversion -Wno-objc-literal-conversion -Wno-shorten-64-to-32 -Wno-newline-eof -Wno-c++11-extensions -Wno-implicit-fallthrough -fstrict-aliasing -Wdeprecated-declarations -Winvalid-offsetof -Wno-sign-conversion -Wno-infinite-recursion -Wno-move -Wno-comma -Wno-block-capture-autoreleasing -Wno-strict-prototypes -Wno-range-loop-analysis -Wno-semicolon-before-method-body --sysroot /root/.swiftpm/swift-sdks/swift-6.4.0-RELEASE_wasm.artifactbundle/swift-6.4.0-RELEASE_wasm/wasm32-unknown-wasip1/WASI.sdk @/host/spi-builder-workspace/.build/out/Intermediates.noindex/mlx-swift.build/Debug-webassembly-wasm32/Cmlx-t.build/Objects-normal/wasm32/11b881b950eb02e21769317df93e9b41d1d7f0348e4e0901ae810dce93ca1a57-common-args.resp -MMD -MT dependencies -MF /host/spi-builder-workspace/.build/out/Intermediates.noindex/mlx-swift.build/Debug-webassembly-wasm32/Cmlx-t.build/Objects-normal/wasm32/scheduler.d --serialize-diagnostics /host/spi-builder-workspace/.build/out/Intermediates.noindex/mlx-swift.build/Debug-webassembly-wasm32/Cmlx-t.build/Objects-normal/wasm32/scheduler.dia -c /host/spi-builder-workspace/.build/checkouts/mlx-swift/Source/Cmlx/mlx/mlx/scheduler.cpp -o /host/spi-builder-workspace/.build/out/Intermediates.noindex/mlx-swift.build/Debug-webassembly-wasm32/Cmlx-t.build/Objects-normal/wasm32/scheduler.o
In file included from /host/spi-builder-workspace/.build/checkouts/mlx-swift/Source/Cmlx/mlx/mlx/utils.cpp:10:
In file included from /host/spi-builder-workspace/.build/checkouts/mlx-swift/Source/Cmlx/mlx/mlx/dtype_utils.h:8:
In file included from /host/spi-builder-workspace/.build/checkouts/mlx-swift/Source/Cmlx/mlx/mlx/utils.h:14:
In file included from /host/spi-builder-workspace/.build/checkouts/mlx-swift/Source/Cmlx/mlx/mlx/array.h:14:
In file included from /host/spi-builder-workspace/.build/checkouts/mlx-swift/Source/Cmlx/mlx/mlx/event.h:8:
/host/spi-builder-workspace/.build/checkouts/mlx-swift/Source/Cmlx/mlx/mlx/error.h:17:5: error: no matching function for call to 'atomic_store'
   17 |     std::atomic_store(&message_, std::move(msg));
      |     ^~~~~~~~~~~~~~~~~
In file included from /host/spi-builder-workspace/.build/checkouts/mlx-swift/Source/Cmlx/mlx/mlx/utils.cpp:4:
In file included from /root/.swiftpm/swift-sdks/swift-6.4.0-RELEASE_wasm.artifactbundle/swift-6.4.0-RELEASE_wasm/wasm32-unknown-wasip1/WASI.sdk/include/c++/v1/iomanip:53:
In file included from /root/.swiftpm/swift-sdks/swift-6.4.0-RELEASE_wasm.artifactbundle/swift-6.4.0-RELEASE_wasm/wasm32-unknown-wasip1/WASI.sdk/include/c++/v1/__locale_dir/money.h:17:
In file included from /root/.swiftpm/swift-sdks/swift-6.4.0-RELEASE_wasm.artifactbundle/swift-6.4.0-RELEASE_wasm/wasm32-unknown-wasip1/WASI.sdk/include/c++/v1/__locale:28:
In file included from /root/.swiftpm/swift-sdks/swift-6.4.0-RELEASE_wasm.artifactbundle/swift-6.4.0-RELEASE_wasm/wasm32-unknown-wasip1/WASI.sdk/include/c++/v1/string:654:
In file included from /root/.swiftpm/swift-sdks/swift-6.4.0-RELEASE_wasm.artifactbundle/swift-6.4.0-RELEASE_wasm/wasm32-unknown-wasip1/WASI.sdk/include/c++/v1/string_view:951:
In file included from /root/.swiftpm/swift-sdks/swift-6.4.0-RELEASE_wasm.artifactbundle/swift-6.4.0-RELEASE_wasm/wasm32-unknown-wasip1/WASI.sdk/include/c++/v1/algorithm:2057:
In file included from /root/.swiftpm/swift-sdks/swift-6.4.0-RELEASE_wasm.artifactbundle/swift-6.4.0-RELEASE_wasm/wasm32-unknown-wasip1/WASI.sdk/include/c++/v1/atomic:605:
In file included from /root/.swiftpm/swift-sdks/swift-6.4.0-RELEASE_wasm.artifactbundle/swift-6.4.0-RELEASE_wasm/wasm32-unknown-wasip1/WASI.sdk/include/c++/v1/__atomic/aliases.h:12:
/root/.swiftpm/swift-sdks/swift-6.4.0-RELEASE_wasm.artifactbundle/swift-6.4.0-RELEASE_wasm/wasm32-unknown-wasip1/WASI.sdk/include/c++/v1/__atomic/atomic.h:491:28: note: candidate template ignored: could not match 'atomic' against 'shared_ptr'
  491 | _LIBCPP_HIDE_FROM_ABI void atomic_store(volatile atomic<_Tp>* __o, typename atomic<_Tp>::value_type __d) _NOEXCEPT {
      |                            ^
/root/.swiftpm/swift-sdks/swift-6.4.0-RELEASE_wasm.artifactbundle/swift-6.4.0-RELEASE_wasm/wasm32-unknown-wasip1/WASI.sdk/include/c++/v1/__atomic/atomic.h:496:28: note: candidate template ignored: could not match 'atomic' against 'shared_ptr'
  496 | _LIBCPP_HIDE_FROM_ABI void atomic_store(atomic<_Tp>* __o, typename atomic<_Tp>::value_type __d) _NOEXCEPT {
      |                            ^
In file included from /host/spi-builder-workspace/.build/checkouts/mlx-swift/Source/Cmlx/mlx/mlx/utils.cpp:10:
In file included from /host/spi-builder-workspace/.build/checkouts/mlx-swift/Source/Cmlx/mlx/mlx/dtype_utils.h:8:
In file included from /host/spi-builder-workspace/.build/checkouts/mlx-swift/Source/Cmlx/mlx/mlx/utils.h:14:
In file included from /host/spi-builder-workspace/.build/checkouts/mlx-swift/Source/Cmlx/mlx/mlx/array.h:14:
In file included from /host/spi-builder-workspace/.build/checkouts/mlx-swift/Source/Cmlx/mlx/mlx/event.h:8:
/host/spi-builder-workspace/.build/checkouts/mlx-swift/Source/Cmlx/mlx/mlx/error.h:21:16: error: no matching function for call to 'atomic_load'
   21 |     auto msg = std::atomic_load(&message_);
      |                ^~~~~~~~~~~~~~~~
In file included from /host/spi-builder-workspace/.build/checkouts/mlx-swift/Source/Cmlx/mlx/mlx/utils.cpp:4:
In file included from /root/.swiftpm/swift-sdks/swift-6.4.0-RELEASE_wasm.artifactbundle/swift-6.4.0-RELEASE_wasm/wasm32-unknown-wasip1/WASI.sdk/include/c++/v1/iomanip:53:
In file included from /root/.swiftpm/swift-sdks/swift-6.4.0-RELEASE_wasm.artifactbundle/swift-6.4.0-RELEASE_wasm/wasm32-unknown-wasip1/WASI.sdk/include/c++/v1/__locale_dir/money.h:17:
In file included from /root/.swiftpm/swift-sdks/swift-6.4.0-RELEASE_wasm.artifactbundle/swift-6.4.0-RELEASE_wasm/wasm32-unknown-wasip1/WASI.sdk/include/c++/v1/__locale:28:
In file included from /root/.swiftpm/swift-sdks/swift-6.4.0-RELEASE_wasm.artifactbundle/swift-6.4.0-RELEASE_wasm/wasm32-unknown-wasip1/WASI.sdk/include/c++/v1/string:654:
In file included from /root/.swiftpm/swift-sdks/swift-6.4.0-RELEASE_wasm.artifactbundle/swift-6.4.0-RELEASE_wasm/wasm32-unknown-wasip1/WASI.sdk/include/c++/v1/string_view:951:
In file included from /root/.swiftpm/swift-sdks/swift-6.4.0-RELEASE_wasm.artifactbundle/swift-6.4.0-RELEASE_wasm/wasm32-unknown-wasip1/WASI.sdk/include/c++/v1/algorithm:2057:
In file included from /root/.swiftpm/swift-sdks/swift-6.4.0-RELEASE_wasm.artifactbundle/swift-6.4.0-RELEASE_wasm/wasm32-unknown-wasip1/WASI.sdk/include/c++/v1/atomic:605:
In file included from /root/.swiftpm/swift-sdks/swift-6.4.0-RELEASE_wasm.artifactbundle/swift-6.4.0-RELEASE_wasm/wasm32-unknown-wasip1/WASI.sdk/include/c++/v1/__atomic/aliases.h:12:
/root/.swiftpm/swift-sdks/swift-6.4.0-RELEASE_wasm.artifactbundle/swift-6.4.0-RELEASE_wasm/wasm32-unknown-wasip1/WASI.sdk/include/c++/v1/__atomic/atomic.h:519:27: note: candidate template ignored: could not match 'atomic' against 'shared_ptr'
  519 | _LIBCPP_HIDE_FROM_ABI _Tp atomic_load(const volatile atomic<_Tp>* __o) _NOEXCEPT {
      |                           ^
/root/.swiftpm/swift-sdks/swift-6.4.0-RELEASE_wasm.artifactbundle/swift-6.4.0-RELEASE_wasm/wasm32-unknown-wasip1/WASI.sdk/include/c++/v1/__atomic/atomic.h:524:27: note: candidate template ignored: could not match 'atomic' against 'shared_ptr'
  524 | _LIBCPP_HIDE_FROM_ABI _Tp atomic_load(const atomic<_Tp>* __o) _NOEXCEPT {
      |                           ^
In file included from /host/spi-builder-workspace/.build/checkouts/mlx-swift/Source/Cmlx/mlx/mlx/utils.cpp:10:
In file included from /host/spi-builder-workspace/.build/checkouts/mlx-swift/Source/Cmlx/mlx/mlx/dtype_utils.h:8:
In file included from /host/spi-builder-workspace/.build/checkouts/mlx-swift/Source/Cmlx/mlx/mlx/utils.h:14:
In file included from /host/spi-builder-workspace/.build/checkouts/mlx-swift/Source/Cmlx/mlx/mlx/array.h:14:
In file included from /host/spi-builder-workspace/.build/checkouts/mlx-swift/Source/Cmlx/mlx/mlx/event.h:8:
/host/spi-builder-workspace/.build/checkouts/mlx-swift/Source/Cmlx/mlx/mlx/error.h:28:21: error: no matching function for call to 'atomic_load'
   28 |       Message msg = std::atomic_load(&ptr->message_);
      |                     ^~~~~~~~~~~~~~~~
In file included from /host/spi-builder-workspace/.build/checkouts/mlx-swift/Source/Cmlx/mlx/mlx/utils.cpp:4:
In file included from /root/.swiftpm/swift-sdks/swift-6.4.0-RELEASE_wasm.artifactbundle/swift-6.4.0-RELEASE_wasm/wasm32-unknown-wasip1/WASI.sdk/include/c++/v1/iomanip:53:
In file included from /root/.swiftpm/swift-sdks/swift-6.4.0-RELEASE_wasm.artifactbundle/swift-6.4.0-RELEASE_wasm/wasm32-unknown-wasip1/WASI.sdk/include/c++/v1/__locale_dir/money.h:17:
In file included from /root/.swiftpm/swift-sdks/swift-6.4.0-RELEASE_wasm.artifactbundle/swift-6.4.0-RELEASE_wasm/wasm32-unknown-wasip1/WASI.sdk/include/c++/v1/__locale:28:
In file included from /root/.swiftpm/swift-sdks/swift-6.4.0-RELEASE_wasm.artifactbundle/swift-6.4.0-RELEASE_wasm/wasm32-unknown-wasip1/WASI.sdk/include/c++/v1/string:654:
In file included from /root/.swiftpm/swift-sdks/swift-6.4.0-RELEASE_wasm.artifactbundle/swift-6.4.0-RELEASE_wasm/wasm32-unknown-wasip1/WASI.sdk/include/c++/v1/string_view:951:
In file included from /root/.swiftpm/swift-sdks/swift-6.4.0-RELEASE_wasm.artifactbundle/swift-6.4.0-RELEASE_wasm/wasm32-unknown-wasip1/WASI.sdk/include/c++/v1/algorithm:2057:
In file included from /root/.swiftpm/swift-sdks/swift-6.4.0-RELEASE_wasm.artifactbundle/swift-6.4.0-RELEASE_wasm/wasm32-unknown-wasip1/WASI.sdk/include/c++/v1/atomic:605:
In file included from /root/.swiftpm/swift-sdks/swift-6.4.0-RELEASE_wasm.artifactbundle/swift-6.4.0-RELEASE_wasm/wasm32-unknown-wasip1/WASI.sdk/include/c++/v1/__atomic/aliases.h:12:
/root/.swiftpm/swift-sdks/swift-6.4.0-RELEASE_wasm.artifactbundle/swift-6.4.0-RELEASE_wasm/wasm32-unknown-wasip1/WASI.sdk/include/c++/v1/__atomic/atomic.h:519:27: note: candidate template ignored: could not match 'atomic' against 'shared_ptr'
  519 | _LIBCPP_HIDE_FROM_ABI _Tp atomic_load(const volatile atomic<_Tp>* __o) _NOEXCEPT {
      |                           ^
/root/.swiftpm/swift-sdks/swift-6.4.0-RELEASE_wasm.artifactbundle/swift-6.4.0-RELEASE_wasm/wasm32-unknown-wasip1/WASI.sdk/include/c++/v1/__atomic/atomic.h:524:27: note: candidate template ignored: could not match 'atomic' against 'shared_ptr'
  524 | _LIBCPP_HIDE_FROM_ABI _Tp atomic_load(const atomic<_Tp>* __o) _NOEXCEPT {
      |                           ^
In file included from /host/spi-builder-workspace/.build/checkouts/mlx-swift/Source/Cmlx/mlx/mlx/utils.cpp:10:
In file included from /host/spi-builder-workspace/.build/checkouts/mlx-swift/Source/Cmlx/mlx/mlx/dtype_utils.h:8:
In file included from /host/spi-builder-workspace/.build/checkouts/mlx-swift/Source/Cmlx/mlx/mlx/utils.h:14:
In file included from /host/spi-builder-workspace/.build/checkouts/mlx-swift/Source/Cmlx/mlx/mlx/array.h:14:
In file included from /host/spi-builder-workspace/.build/checkouts/mlx-swift/Source/Cmlx/mlx/mlx/event.h:8:
/host/spi-builder-workspace/.build/checkouts/mlx-swift/Source/Cmlx/mlx/mlx/error.h:39:16: error: no matching function for call to 'atomic_exchange'
   39 |     auto msg = std::atomic_exchange(&message_, {});
      |                ^~~~~~~~~~~~~~~~~~~~
In file included from /host/spi-builder-workspace/.build/checkouts/mlx-swift/Source/Cmlx/mlx/mlx/utils.cpp:4:
In file included from /root/.swiftpm/swift-sdks/swift-6.4.0-RELEASE_wasm.artifactbundle/swift-6.4.0-RELEASE_wasm/wasm32-unknown-wasip1/WASI.sdk/include/c++/v1/iomanip:53:
In file included from /root/.swiftpm/swift-sdks/swift-6.4.0-RELEASE_wasm.artifactbundle/swift-6.4.0-RELEASE_wasm/wasm32-unknown-wasip1/WASI.sdk/include/c++/v1/__locale_dir/money.h:17:
In file included from /root/.swiftpm/swift-sdks/swift-6.4.0-RELEASE_wasm.artifactbundle/swift-6.4.0-RELEASE_wasm/wasm32-unknown-wasip1/WASI.sdk/include/c++/v1/__locale:28:
In file included from /root/.swiftpm/swift-sdks/swift-6.4.0-RELEASE_wasm.artifactbundle/swift-6.4.0-RELEASE_wasm/wasm32-unknown-wasip1/WASI.sdk/include/c++/v1/string:654:
In file included from /root/.swiftpm/swift-sdks/swift-6.4.0-RELEASE_wasm.artifactbundle/swift-6.4.0-RELEASE_wasm/wasm32-unknown-wasip1/WASI.sdk/include/c++/v1/string_view:951:
In file included from /root/.swiftpm/swift-sdks/swift-6.4.0-RELEASE_wasm.artifactbundle/swift-6.4.0-RELEASE_wasm/wasm32-unknown-wasip1/WASI.sdk/include/c++/v1/algorithm:2057:
In file included from /root/.swiftpm/swift-sdks/swift-6.4.0-RELEASE_wasm.artifactbundle/swift-6.4.0-RELEASE_wasm/wasm32-unknown-wasip1/WASI.sdk/include/c++/v1/atomic:605:
In file included from /root/.swiftpm/swift-sdks/swift-6.4.0-RELEASE_wasm.artifactbundle/swift-6.4.0-RELEASE_wasm/wasm32-unknown-wasip1/WASI.sdk/include/c++/v1/__atomic/aliases.h:12:
/root/.swiftpm/swift-sdks/swift-6.4.0-RELEASE_wasm.artifactbundle/swift-6.4.0-RELEASE_wasm/wasm32-unknown-wasip1/WASI.sdk/include/c++/v1/__atomic/atomic.h:545:27: note: candidate template ignored: could not match 'atomic' against 'shared_ptr'
  545 | _LIBCPP_HIDE_FROM_ABI _Tp atomic_exchange(volatile atomic<_Tp>* __o, typename atomic<_Tp>::value_type __d) _NOEXCEPT {
      |                           ^
/root/.swiftpm/swift-sdks/swift-6.4.0-RELEASE_wasm.artifactbundle/swift-6.4.0-RELEASE_wasm/wasm32-unknown-wasip1/WASI.sdk/include/c++/v1/__atomic/atomic.h:550:27: note: candidate template ignored: could not match 'atomic' against 'shared_ptr'
  550 | _LIBCPP_HIDE_FROM_ABI _Tp atomic_exchange(atomic<_Tp>* __o, typename atomic<_Tp>::value_type __d) _NOEXCEPT {
      |                           ^
In file included from /host/spi-builder-workspace/.build/checkouts/mlx-swift/Source/Cmlx/mlx/mlx/utils.cpp:10:
In file included from /host/spi-builder-workspace/.build/checkouts/mlx-swift/Source/Cmlx/mlx/mlx/dtype_utils.h:8:
/host/spi-builder-workspace/.build/checkouts/mlx-swift/Source/Cmlx/mlx/mlx/utils.h:58:8: error: no member named 'thread' in namespace 'std'
   58 |   std::thread::id _owner;
      |   ~~~~~^
/host/spi-builder-workspace/.build/checkouts/mlx-swift/Source/Cmlx/mlx/mlx/utils.h:34:21: error: no member named 'this_thread' in namespace 'std'
   34 |         _owner(std::this_thread::get_id()) {
      |                ~~~~~^
/host/spi-builder-workspace/.build/checkouts/mlx-swift/Source/Cmlx/mlx/mlx/utils.h:47:14: error: no member named 'this_thread' in namespace 'std'
   47 |     if (std::this_thread::get_id() != _owner) {
      |         ~~~~~^
/host/spi-builder-workspace/.build/checkouts/mlx-swift/Source/Cmlx/mlx/mlx/utils.cpp:129:37: error: no member named 'this_thread' in namespace 'std'
  129 |   static auto main_thread_id = std::this_thread::get_id();
      |                                ~~~~~^
/host/spi-builder-workspace/.build/checkouts/mlx-swift/Source/Cmlx/mlx/mlx/utils.cpp:130:33: error: no member named 'this_thread' in namespace 'std'
  130 |   return main_thread_id == std::this_thread::get_id();
      |                            ~~~~~^
9 errors generated.
error: CompileC /host/spi-builder-workspace/.build/out/Intermediates.noindex/mlx-swift.build/Debug-webassembly-wasm32/Cmlx-t.build/Objects-normal/wasm32/utils-e0f161753d1b0014a34190c99b2cabb731acddd3654d7710874b4e135e27a84e.o /host/spi-builder-workspace/.build/checkouts/mlx-swift/Source/Cmlx/mlx/mlx/utils.cpp normal wasm32 c++ com.apple.compilers.llvm.clang.1_0.compiler failed with a nonzero exit code. Command line:     cd /host

    Using response file: /host/spi-builder-workspace/.build/out/Intermediates.noindex/mlx-swift.build/Debug-webassembly-wasm32/Cmlx-t.build/Objects-normal/wasm32/11b881b950eb02e21769317df93e9b41d1d7f0348e4e0901ae810dce93ca1a57-common-args.resp

    /usr/bin/clang -x c++ -target wasm32-unknown-wasip1 -fmessage-length\=0 -fdiagnostics-show-note-include-stack -fmacro-backtrace-limit\=0 -fcolor-diagnostics -Wno-trigraphs -Wno-missing-field-initializers -Wno-missing-prototypes -Wno-return-type -Wno-non-virtual-dtor -Wno-overloaded-virtual -Wno-exit-time-destructors -Wno-missing-braces -Wparentheses -Wswitch -Wno-unused-function -Wno-unused-label -Wno-unused-parameter -Wno-unused-variable -Wunused-value -Wno-empty-body -Wno-uninitialized -Wno-unknown-pragmas -w -Wno-shadow -Wno-four-char-constants -Wno-conversion -Wno-constant-conversion -Wno-int-conversion -Wno-bool-conversion -Wno-enum-conversion -Wno-float-conversion -Wno-non-literal-null-conversion -Wno-objc-literal-conversion -Wno-shorten-64-to-32 -Wno-newline-eof -Wno-c++11-extensions -Wno-implicit-fallthrough -fstrict-aliasing -Wdeprecated-declarations -Winvalid-offsetof -Wno-sign-conversion -Wno-infinite-recursion -Wno-move -Wno-comma -Wno-block-capture-autoreleasing -Wno-strict-prototypes -Wno-range-loop-analysis -Wno-semicolon-before-method-body --sysroot /root/.swiftpm/swift-sdks/swift-6.4.0-RELEASE_wasm.artifactbundle/swift-6.4.0-RELEASE_wasm/wasm32-unknown-wasip1/WASI.sdk @/host/spi-builder-workspace/.build/out/Intermediates.noindex/mlx-swift.build/Debug-webassembly-wasm32/Cmlx-t.build/Objects-normal/wasm32/11b881b950eb02e21769317df93e9b41d1d7f0348e4e0901ae810dce93ca1a57-common-args.resp -MMD -MT dependencies -MF /host/spi-builder-workspace/.build/out/Intermediates.noindex/mlx-swift.build/Debug-webassembly-wasm32/Cmlx-t.build/Objects-normal/wasm32/utils-e0f161753d1b0014a34190c99b2cabb731acddd3654d7710874b4e135e27a84e.d --serialize-diagnostics /host/spi-builder-workspace/.build/out/Intermediates.noindex/mlx-swift.build/Debug-webassembly-wasm32/Cmlx-t.build/Objects-normal/wasm32/utils-e0f161753d1b0014a34190c99b2cabb731acddd3654d7710874b4e135e27a84e.dia -c /host/spi-builder-workspace/.build/checkouts/mlx-swift/Source/Cmlx/mlx/mlx/utils.cpp -o /host/spi-builder-workspace/.build/out/Intermediates.noindex/mlx-swift.build/Debug-webassembly-wasm32/Cmlx-t.build/Objects-normal/wasm32/utils-e0f161753d1b0014a34190c99b2cabb731acddd3654d7710874b4e135e27a84e.o
error: Build failed
BUILD FAILURE 6.4 wasm