The Swift Package Index logo.Swift Package Index

Build Information

Failed to build mlx-swift, reference main (b4f768), with Swift 6.4 for Wasm on 16 Oct 2026 02:35:47 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-54344843-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.4-latest swift build --swift-sdk swift-6.4.0-RELEASE_wasm 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 5.1.3
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/crabel99/mlx-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/crabel99/mlx-swift
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at b4f7684 Fix attention mask for `float16` (#496)
Submodule path 'Source/Cmlx/mlx': checked out '1f8e74e3f12f31365464a6867c6579f0e9b29d85'
Submodule path 'Source/Cmlx/mlx-c': checked out 'ebc88f10caa1b625e6b581437a8dea6df8a70085'
Submodule 'submodules/mlx' (https://github.com/ml-explore/mlx) registered for path 'Source/Cmlx/mlx'
Submodule 'submodules/mlx-c' (https://github.com/ml-explore/mlx-c) registered for path 'Source/Cmlx/mlx-c'
Cloning into '/host/spi-builder-workspace/Source/Cmlx/mlx'...
Cloning into '/host/spi-builder-workspace/Source/Cmlx/mlx-c'...
Cloned https://github.com/crabel99/mlx-swift.git
Revision (git rev-parse @):
b4f768435b15f9d6f09ca02a0037a36f9bd3690e
SPI manifest file found: $PWD/.spi.yml
SUCCESS checkout https://github.com/crabel99/mlx-swift.git at main
========================================
Build
========================================
Selected platform:         wasm
Swift version:             6.4
Building package at path:  $PWD
https://github.com/crabel99/mlx-swift.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-54344843-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.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:7a2e5502d3bb6640f9b2bbb1dadf9967024364ce9ed0ed0bd80cf1b699d193fd
Status: Image is up to date for registry.gitlab.com/saguaro1/spi-images:wasm-6.4-latest
Fetching https://github.com/apple/swift-argument-parser
Fetching https://github.com/apple/swift-numerics
[1/6756] Fetching swift-numerics
[6757/25870] Fetching swift-numerics, swift-argument-parser
Fetched https://github.com/apple/swift-numerics (0.98s)
Fetched https://github.com/apple/swift-argument-parser (0.98s)
Computing version for https://github.com/apple/swift-numerics
Computed https://github.com/apple/swift-numerics at 1.1.1 (1.15s)
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/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
warning: 'spi-builder-workspace': Invalid Exclude '/host/spi-builder-workspace/Source/Cmlx/mlx/build': File not found.
warning: 'spi-builder-workspace': Invalid Exclude '/host/spi-builder-workspace/Source/Cmlx/mlx/build': File not found.
warning: 'spi-builder-workspace': found 3 file(s) which are unhandled; explicitly declare them as resources or exclude from the target
    /host/spi-builder-workspace/Source/Examples/CustomFunctionExample.swift
    /host/spi-builder-workspace/Source/Examples/CustomFunctionExampleSimple.swift
    /host/spi-builder-workspace/Source/Examples/Example1.swift
warning: 'spi-builder-workspace': found 3 file(s) which are unhandled; explicitly declare them as resources or exclude from the target
    /host/spi-builder-workspace/Source/Examples/CustomFunctionExample.swift
    /host/spi-builder-workspace/Source/Examples/CustomFunctionExampleSimple.swift
    /host/spi-builder-workspace/Source/Examples/Tutorial.swift
warning: 'spi-builder-workspace': found 3 file(s) which are unhandled; explicitly declare them as resources or exclude from the target
    /host/spi-builder-workspace/Source/Examples/CustomFunctionExample.swift
    /host/spi-builder-workspace/Source/Examples/Example1.swift
    /host/spi-builder-workspace/Source/Examples/Tutorial.swift
warning: 'spi-builder-workspace': found 3 file(s) which are unhandled; explicitly declare them as resources or exclude from the target
    /host/spi-builder-workspace/Source/Examples/CustomFunctionExampleSimple.swift
    /host/spi-builder-workspace/Source/Examples/Example1.swift
    /host/spi-builder-workspace/Source/Examples/Tutorial.swift
Building for debugging...
[Computing dependencies]
[Constructing description]
[Pre-planning 1 / 882]
[Planning deferred tasks]
[Starting]
warning: no rule to process file '/host/spi-builder-workspace/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/Source/Cmlx/mlx-generated/metal/conv.metal' of type 'sourcecode.metal' for architecture 'wasm32'
warning: no rule to process file '/host/spi-builder-workspace/Source/Cmlx/mlx-generated/metal/dot.metal' of type 'sourcecode.metal' for architecture 'wasm32'
warning: no rule to process file '/host/spi-builder-workspace/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/Source/Cmlx/mlx-generated/metal/random.metal' of type 'sourcecode.metal' for architecture 'wasm32'
warning: no rule to process file '/host/spi-builder-workspace/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/Source/Cmlx/mlx-generated/metal/rope.metal' of type 'sourcecode.metal' for architecture 'wasm32'
warning: no rule to process file '/host/spi-builder-workspace/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/Source/Cmlx/mlx-generated/metal/searchsorted.metal' of type 'sourcecode.metal' for architecture 'wasm32'
warning: no rule to process file '/host/spi-builder-workspace/Source/Cmlx/mlx-generated/metal/steel/attn/kernels/steel_attention.metal' of type 'sourcecode.metal' for architecture 'wasm32'
[55 / 605] MLXOptimizers-product
[128 / 618] cLogSupport
[129 / 618] RealModule
[140 / 618] RealModule
[146 / 628] ComplexModule
[149 / 628] ComplexModule
[152 / 629]
[166 / 642] ArgumentParser
[175 / 644] Numerics
[184 / 645] ArgumentParserToolInfo
[185 / 645] ArgumentParserToolInfo
[192 / 652] ArgumentParser
[194 / 652] encuda-product
[198 / 652] encuda-product
[199 / 652] ArgumentParser
[199 / 652] encuda-product
[206 / 654] encuda-product
In file included from /host/spi-builder-workspace/Source/Cmlx/mlx/mlx/scheduler.cpp:6:
In file included from /host/spi-builder-workspace/Source/Cmlx/mlx/mlx/backend/cpu/eval.h:5:
In file included from /host/spi-builder-workspace/Source/Cmlx/mlx/mlx/array.h:13:
In file included from /host/spi-builder-workspace/Source/Cmlx/mlx/mlx/event.h:8:
/host/spi-builder-workspace/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/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/Source/Cmlx/mlx/mlx/scheduler.cpp:6:
In file included from /host/spi-builder-workspace/Source/Cmlx/mlx/mlx/backend/cpu/eval.h:5:
In file included from /host/spi-builder-workspace/Source/Cmlx/mlx/mlx/array.h:13:
In file included from /host/spi-builder-workspace/Source/Cmlx/mlx/mlx/event.h:8:
/host/spi-builder-workspace/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/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/Source/Cmlx/mlx/mlx/scheduler.cpp:6:
In file included from /host/spi-builder-workspace/Source/Cmlx/mlx/mlx/backend/cpu/eval.h:5:
In file included from /host/spi-builder-workspace/Source/Cmlx/mlx/mlx/array.h:13:
In file included from /host/spi-builder-workspace/Source/Cmlx/mlx/mlx/event.h:8:
/host/spi-builder-workspace/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/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/Source/Cmlx/mlx/mlx/scheduler.cpp:6:
In file included from /host/spi-builder-workspace/Source/Cmlx/mlx/mlx/backend/cpu/eval.h:5:
In file included from /host/spi-builder-workspace/Source/Cmlx/mlx/mlx/array.h:13:
In file included from /host/spi-builder-workspace/Source/Cmlx/mlx/mlx/event.h:8:
/host/spi-builder-workspace/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/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/Source/Cmlx/mlx/mlx/scheduler.cpp:9:
/host/spi-builder-workspace/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/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/Source/Cmlx/mlx/mlx/scheduler.h:75:8: error: no type named 'mutex' in namespace 'std'
   75 |   std::mutex mtx;
      |   ~~~~~^
/host/spi-builder-workspace/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/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/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/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/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/Source/Cmlx/mlx/mlx/scheduler.cpp:16:51: error: expected expression
   16 |     auto p = std::make_shared<std::promise<void>>();
      |                                                   ^
/host/spi-builder-workspace/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/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/Source/Cmlx/mlx/mlx/scheduler.cpp:17:23: error: use of undeclared identifier 'f'
   17 |     std::future<void> f = p->get_future();
      |                       ^
/host/spi-builder-workspace/Source/Cmlx/mlx/mlx/scheduler.cpp:19:5: error: use of undeclared identifier 'f'
   19 |     f.wait();
      |     ^
/host/spi-builder-workspace/Source/Cmlx/mlx/mlx/scheduler.cpp:43:8: error: no type named 'mutex' in namespace 'std'
   43 |   std::mutex mtx;
      |   ~~~~~^
/host/spi-builder-workspace/Source/Cmlx/mlx/mlx/scheduler.cpp:45:8: error: no type named 'condition_variable' in namespace 'std'
   45 |   std::condition_variable cond;
      |   ~~~~~^
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/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 -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/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/Source/Cmlx/mlx/mlx/utils.cpp:10:
In file included from /host/spi-builder-workspace/Source/Cmlx/mlx/mlx/dtype_utils.h:8:
In file included from /host/spi-builder-workspace/Source/Cmlx/mlx/mlx/utils.h:13:
In file included from /host/spi-builder-workspace/Source/Cmlx/mlx/mlx/array.h:13:
In file included from /host/spi-builder-workspace/Source/Cmlx/mlx/mlx/event.h:8:
/host/spi-builder-workspace/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/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/Source/Cmlx/mlx/mlx/utils.cpp:10:
In file included from /host/spi-builder-workspace/Source/Cmlx/mlx/mlx/dtype_utils.h:8:
In file included from /host/spi-builder-workspace/Source/Cmlx/mlx/mlx/utils.h:13:
In file included from /host/spi-builder-workspace/Source/Cmlx/mlx/mlx/array.h:13:
In file included from /host/spi-builder-workspace/Source/Cmlx/mlx/mlx/event.h:8:
/host/spi-builder-workspace/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/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/Source/Cmlx/mlx/mlx/utils.cpp:10:
In file included from /host/spi-builder-workspace/Source/Cmlx/mlx/mlx/dtype_utils.h:8:
In file included from /host/spi-builder-workspace/Source/Cmlx/mlx/mlx/utils.h:13:
In file included from /host/spi-builder-workspace/Source/Cmlx/mlx/mlx/array.h:13:
In file included from /host/spi-builder-workspace/Source/Cmlx/mlx/mlx/event.h:8:
/host/spi-builder-workspace/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/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/Source/Cmlx/mlx/mlx/utils.cpp:10:
In file included from /host/spi-builder-workspace/Source/Cmlx/mlx/mlx/dtype_utils.h:8:
In file included from /host/spi-builder-workspace/Source/Cmlx/mlx/mlx/utils.h:13:
In file included from /host/spi-builder-workspace/Source/Cmlx/mlx/mlx/array.h:13:
In file included from /host/spi-builder-workspace/Source/Cmlx/mlx/mlx/event.h:8:
/host/spi-builder-workspace/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/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 {
      |                           ^
/host/spi-builder-workspace/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/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();
      |                            ~~~~~^
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/utils-f92b45d4028b5f8f69e91efba766c5c40884cddbf2d0369f98e43ef1b7bf50ae.o /host/spi-builder-workspace/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 -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-f92b45d4028b5f8f69e91efba766c5c40884cddbf2d0369f98e43ef1b7bf50ae.d --serialize-diagnostics /host/spi-builder-workspace/.build/out/Intermediates.noindex/mlx-swift.build/Debug-webassembly-wasm32/Cmlx-t.build/Objects-normal/wasm32/utils-f92b45d4028b5f8f69e91efba766c5c40884cddbf2d0369f98e43ef1b7bf50ae.dia -c /host/spi-builder-workspace/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-f92b45d4028b5f8f69e91efba766c5c40884cddbf2d0369f98e43ef1b7bf50ae.o
error: Build failed
BUILD FAILURE 6.4 wasm