The Swift Package Index logo.Swift Package Index

Build Information

Failed to build mlx-swift, reference 0.32.3 (196012), with Swift 6.3 for Wasm on 3 Oct 2026 20:40:46 UTC.

Build Command

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

Build Log

========================================
RunAll
========================================
Builder version: 5.1.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/ml-explore/mlx-swift.git
Reference: 0.32.3
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/ml-explore/mlx-swift
 * tag               0.32.3     -> FETCH_HEAD
HEAD is now at 1960120 fix MLXLogger (#493)
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/ml-explore/mlx-swift.git
Revision (git rev-parse @):
19601207e9a0de51e03ee6ec0c3c5f3784275075
SPI manifest file found: $PWD/.spi.yml
SUCCESS checkout https://github.com/ml-explore/mlx-swift.git at 0.32.3
========================================
Build
========================================
Selected platform:         wasm
Swift version:             6.3
Building package at path:  $PWD
https://github.com/ml-explore/mlx-swift.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-54344843-3":/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.3-latest swift build --swift-sdk swift-6.3.2-RELEASE_wasm 2>&1
wasm-6.3-latest: Pulling from saguaro1/spi-images
Digest: sha256:253aad7f5b11d25cf9eaef34120b94cd8a325782929c57fb304a7711494a3f9a
Status: Image is up to date for registry.gitlab.com/saguaro1/spi-images:wasm-6.3-latest
Fetching https://github.com/apple/swift-numerics
Fetching https://github.com/apple/swift-argument-parser
[1/6658] Fetching swift-numerics
[867/25684] Fetching swift-numerics, swift-argument-parser
Fetched https://github.com/apple/swift-argument-parser from cache (1.06s)
Fetched https://github.com/apple/swift-numerics from cache (1.07s)
Computing version for https://github.com/apple/swift-numerics
Computed https://github.com/apple/swift-numerics at 1.1.1 (1.51s)
Computing version for https://github.com/apple/swift-argument-parser
Computed https://github.com/apple/swift-argument-parser at 1.8.2 (0.43s)
Creating working copy for https://github.com/apple/swift-numerics
Working copy of https://github.com/apple/swift-numerics 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.8.2
warning: 'spi-builder-workspace': Invalid Exclude '/host/spi-builder-workspace/Source/Cmlx/mlx/build': File not found.
[0/9] Write sources
[3/9] Write swift-version-24593BA9C3E375BF.txt
[5/11] Compiling ArgumentParserToolInfo ToolInfo.swift
[6/11] Emitting module ArgumentParserToolInfo
[7/12] Wrapping AST for ArgumentParserToolInfo for debugging
[9/59] Compiling ArgumentParser ParentCommand.swift
[10/59] Compiling ArgumentParser AsyncParsableCommand.swift
[11/59] Compiling ArgumentParser CommandConfiguration.swift
[12/59] Compiling ArgumentParser CommandGroup.swift
[13/59] Compiling ArgumentParser EnumerableFlag.swift
[14/59] Compiling ArgumentParser ExpressibleByArgument.swift
[15/59] Compiling ArgumentParser ParsableArguments.swift
[16/59] Compiling ArgumentParser Mutex.swift
[17/59] Compiling ArgumentParser Platform.swift
[18/59] Compiling ArgumentParser SequenceExtensions.swift
[19/59] Compiling ArgumentParser StringExtensions.swift
[20/59] Compiling ArgumentParser SwiftExtensions.swift
[21/59] Compiling ArgumentParser Tree.swift
[22/65] Compiling ArgumentParser BashCompletionsGenerator.swift
[23/65] Compiling ArgumentParser CompletionsGenerator.swift
[24/65] Compiling ArgumentParser FishCompletionsGenerator.swift
[25/65] Compiling ArgumentParser ZshCompletionsGenerator.swift
[26/65] Compiling ArgumentParser Argument.swift
[27/65] Compiling ArgumentParser ArgumentDiscussion.swift
[28/65] Compiling ArgumentParser ArgumentHelp.swift
[29/65] Emitting module ArgumentParser
[30/65] Compiling ArgumentParser ArgumentVisibility.swift
[31/65] Compiling ArgumentParser CompletionKind.swift
[32/65] Compiling ArgumentParser Errors.swift
[33/65] Compiling ArgumentParser Flag.swift
[34/65] Compiling ArgumentParser NameSpecification.swift
[35/65] Compiling ArgumentParser Option.swift
[36/65] Compiling ArgumentParser OptionGroup.swift
[37/65] Compiling ArgumentParser HelpCommand.swift
[38/65] Compiling ArgumentParser HelpGenerator.swift
[39/65] Compiling ArgumentParser MessageInfo.swift
[40/65] Compiling ArgumentParser UsageGenerator.swift
[41/65] Compiling ArgumentParser CollectionExtensions.swift
[42/65] Compiling ArgumentParser Foundation.swift
[43/65] Compiling ArgumentParser AsyncCompletionsValidator.swift
[44/65] Compiling ArgumentParser CodingKeyValidator.swift
[45/65] Compiling ArgumentParser NonsenseFlagsValidator.swift
[46/65] Compiling ArgumentParser ParsableArgumentsValidation.swift
[47/65] Compiling ArgumentParser PositionalArgumentsValidator.swift
[48/65] Compiling ArgumentParser UniqueNamesValidator.swift
[49/65] Compiling ArgumentParser ParsableCommand.swift
[50/65] Compiling ArgumentParser ArgumentDecoder.swift
[51/65] Compiling ArgumentParser ArgumentDefinition.swift
[52/65] Compiling ArgumentParser ArgumentSet.swift
[53/65] Compiling ArgumentParser CommandParser.swift
[54/65] Compiling ArgumentParser InputKey.swift
[55/65] Compiling ArgumentParser InputOrigin.swift
[56/65] Compiling ArgumentParser Name.swift
[57/65] Compiling ArgumentParser Parsed.swift
[58/65] Compiling ArgumentParser ParsedValues.swift
[59/65] Compiling ArgumentParser ParserError.swift
[60/65] Compiling ArgumentParser SplitArguments.swift
[61/65] Compiling ArgumentParser DumpHelpGenerator.swift
[62/66] Wrapping AST for ArgumentParser for debugging
[64/72] Compiling encuda encuda.swift
[65/72] Compiling encuda encuda-utils.swift
[66/72] Compiling encuda encuda-error.swift
[67/72] Compiling encuda encuda-link.swift
[68/72] Compiling encuda encuda-compile.swift
[69/72] Emitting module encuda
[70/73] Wrapping AST for encuda for debugging
[71/73] Write Objects.LinkFileList
[72/73] Linking encuda-tool
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/Example1.swift
    /host/spi-builder-workspace/Source/Examples/CustomFunctionExample.swift
    /host/spi-builder-workspace/Source/Examples/CustomFunctionExampleSimple.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/Tutorial.swift
    /host/spi-builder-workspace/Source/Examples/CustomFunctionExampleSimple.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/Example1.swift
    /host/spi-builder-workspace/Source/Examples/Tutorial.swift
    /host/spi-builder-workspace/Source/Examples/CustomFunctionExampleSimple.swift
[1/1] Compiling plugin CudaBuild
[2/2] Compiling plugin GenerateManual
[3/3] Compiling plugin GenerateDoccReference
Building for debugging...
In file included from /host/spi-builder-workspace/Source/Cmlx/mlx-c/mlx/c/linalg.cpp:8:
In file included from /host/spi-builder-workspace/Source/Cmlx/mlx-c/mlx/c/private/mlx.h:4:
In file included from /host/spi-builder-workspace/Source/Cmlx/mlx-c/mlx/c/private/array.h:10:
In file included from /host/spi-builder-workspace/Source/Cmlx/mlx/mlx/mlx.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));
      |     ^~~~~~~~~~~~~~~~~
/root/.swiftpm/swift-sdks/swift-6.3.2-RELEASE_wasm.artifactbundle/swift-6.3.2-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.3.2-RELEASE_wasm.artifactbundle/swift-6.3.2-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-c/mlx/c/linalg.cpp:8:
In file included from /host/spi-builder-workspace/Source/Cmlx/mlx-c/mlx/c/private/mlx.h:4:
In file included from /host/spi-builder-workspace/Source/Cmlx/mlx-c/mlx/c/private/array.h:10:
In file included from /host/spi-builder-workspace/Source/Cmlx/mlx/mlx/mlx.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_);
      |                ^~~~~~~~~~~~~~~~
/root/.swiftpm/swift-sdks/swift-6.3.2-RELEASE_wasm.artifactbundle/swift-6.3.2-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.3.2-RELEASE_wasm.artifactbundle/swift-6.3.2-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-c/mlx/c/linalg.cpp:8:
In file included from /host/spi-builder-workspace/Source/Cmlx/mlx-c/mlx/c/private/mlx.h:4:
In file included from /host/spi-builder-workspace/Source/Cmlx/mlx-c/mlx/c/private/array.h:10:
In file included from /host/spi-builder-workspace/Source/Cmlx/mlx/mlx/mlx.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_);
      |                     ^~~~~~~~~~~~~~~~
/root/.swiftpm/swift-sdks/swift-6.3.2-RELEASE_wasm.artifactbundle/swift-6.3.2-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.3.2-RELEASE_wasm.artifactbundle/swift-6.3.2-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-c/mlx/c/linalg.cpp:8:
In file included from /host/spi-builder-workspace/Source/Cmlx/mlx-c/mlx/c/private/mlx.h:4:
In file included from /host/spi-builder-workspace/Source/Cmlx/mlx-c/mlx/c/private/array.h:10:
In file included from /host/spi-builder-workspace/Source/Cmlx/mlx/mlx/mlx.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_, {});
      |                ^~~~~~~~~~~~~~~~~~~~
/root/.swiftpm/swift-sdks/swift-6.3.2-RELEASE_wasm.artifactbundle/swift-6.3.2-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.3.2-RELEASE_wasm.artifactbundle/swift-6.3.2-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-c/mlx/c/linalg.cpp:8:
In file included from /host/spi-builder-workspace/Source/Cmlx/mlx-c/mlx/c/private/mlx.h:4:
In file included from /host/spi-builder-workspace/Source/Cmlx/mlx-c/mlx/c/private/array.h:10:
In file included from /host/spi-builder-workspace/Source/Cmlx/mlx/mlx/mlx.h:14:
In file included from /host/spi-builder-workspace/Source/Cmlx/mlx/mlx/export.h:143:
In file included from /host/spi-builder-workspace/Source/Cmlx/mlx/mlx/export_impl.h:4:
In file included from /host/spi-builder-workspace/Source/Cmlx/mlx/mlx/io/load.h:16:
/host/spi-builder-workspace/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/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/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/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/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/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/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/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/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/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/Source/Cmlx/mlx/mlx/threadpool.h:79:10: error: use of undeclared identifier 'res'
   79 |   return res;
      |          ^~~
/host/spi-builder-workspace/Source/Cmlx/mlx/mlx/threadpool.h:100:27: error: no member named 'mutex' in namespace 'std'
  100 |     std::unique_lock<std::mutex> lock(queue_mutex);
      |                           ^~~~~
/host/spi-builder-workspace/Source/Cmlx/mlx/mlx/threadpool.h:104:13: error: no type named 'thread' in namespace 'std'
  104 |   for (std::thread& worker : workers) {
      |        ~~~~~^
/host/spi-builder-workspace/Source/Cmlx/mlx/mlx/threadpool.h:120:33: error: no member named 'mutex' in namespace 'std'
  120 |           std::unique_lock<std::mutex> lock(this->queue_mutex);
      |                                 ^~~~~
18 errors generated.
[3/430] Compiling linalg.cpp
In file included from /host/spi-builder-workspace/Source/Cmlx/mlx-c/mlx/c/compile.cpp:8:
In file included from /host/spi-builder-workspace/Source/Cmlx/mlx-c/mlx/c/private/mlx.h:4:
In file included from /host/spi-builder-workspace/Source/Cmlx/mlx-c/mlx/c/private/array.h:10:
In file included from /host/spi-builder-workspace/Source/Cmlx/mlx/mlx/mlx.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));
      |     ^~~~~~~~~~~~~~~~~
/root/.swiftpm/swift-sdks/swift-6.3.2-RELEASE_wasm.artifactbundle/swift-6.3.2-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.3.2-RELEASE_wasm.artifactbundle/swift-6.3.2-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-c/mlx/c/compile.cpp:8:
In file included from /host/spi-builder-workspace/Source/Cmlx/mlx-c/mlx/c/private/mlx.h:4:
In file included from /host/spi-builder-workspace/Source/Cmlx/mlx-c/mlx/c/private/array.h:10:
In file included from /host/spi-builder-workspace/Source/Cmlx/mlx/mlx/mlx.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_);
      |                ^~~~~~~~~~~~~~~~
/root/.swiftpm/swift-sdks/swift-6.3.2-RELEASE_wasm.artifactbundle/swift-6.3.2-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.3.2-RELEASE_wasm.artifactbundle/swift-6.3.2-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-c/mlx/c/compile.cpp:8:
In file included from /host/spi-builder-workspace/Source/Cmlx/mlx-c/mlx/c/private/mlx.h:4:
In file included from /host/spi-builder-workspace/Source/Cmlx/mlx-c/mlx/c/private/array.h:10:
In file included from /host/spi-builder-workspace/Source/Cmlx/mlx/mlx/mlx.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_);
      |                     ^~~~~~~~~~~~~~~~
/root/.swiftpm/swift-sdks/swift-6.3.2-RELEASE_wasm.artifactbundle/swift-6.3.2-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.3.2-RELEASE_wasm.artifactbundle/swift-6.3.2-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-c/mlx/c/compile.cpp:8:
In file included from /host/spi-builder-workspace/Source/Cmlx/mlx-c/mlx/c/private/mlx.h:4:
In file included from /host/spi-builder-workspace/Source/Cmlx/mlx-c/mlx/c/private/array.h:10:
In file included from /host/spi-builder-workspace/Source/Cmlx/mlx/mlx/mlx.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_, {});
      |                ^~~~~~~~~~~~~~~~~~~~
/root/.swiftpm/swift-sdks/swift-6.3.2-RELEASE_wasm.artifactbundle/swift-6.3.2-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.3.2-RELEASE_wasm.artifactbundle/swift-6.3.2-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-c/mlx/c/compile.cpp:8:
In file included from /host/spi-builder-workspace/Source/Cmlx/mlx-c/mlx/c/private/mlx.h:4:
In file included from /host/spi-builder-workspace/Source/Cmlx/mlx-c/mlx/c/private/array.h:10:
In file included from /host/spi-builder-workspace/Source/Cmlx/mlx/mlx/mlx.h:14:
In file included from /host/spi-builder-workspace/Source/Cmlx/mlx/mlx/export.h:143:
In file included from /host/spi-builder-workspace/Source/Cmlx/mlx/mlx/export_impl.h:4:
In file included from /host/spi-builder-workspace/Source/Cmlx/mlx/mlx/io/load.h:16:
/host/spi-builder-workspace/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/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/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/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/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/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/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/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/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/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/Source/Cmlx/mlx/mlx/threadpool.h:79:10: error: use of undeclared identifier 'res'
   79 |   return res;
      |          ^~~
/host/spi-builder-workspace/Source/Cmlx/mlx/mlx/threadpool.h:100:27: error: no member named 'mutex' in namespace 'std'
  100 |     std::unique_lock<std::mutex> lock(queue_mutex);
      |                           ^~~~~
/host/spi-builder-workspace/Source/Cmlx/mlx/mlx/threadpool.h:104:13: error: no type named 'thread' in namespace 'std'
  104 |   for (std::thread& worker : workers) {
      |        ~~~~~^
/host/spi-builder-workspace/Source/Cmlx/mlx/mlx/threadpool.h:120:33: error: no member named 'mutex' in namespace 'std'
  120 |           std::unique_lock<std::mutex> lock(this->queue_mutex);
      |                                 ^~~~~
[3/430] Compiling compile.cpp
In file included from /host/spi-builder-workspace/Source/Cmlx/mlx-c/mlx/c/io_types.cpp:7:
In file included from /host/spi-builder-workspace/Source/Cmlx/mlx-c/mlx/c/private/mlx.h:4:
In file included from /host/spi-builder-workspace/Source/Cmlx/mlx-c/mlx/c/private/array.h:10:
In file included from /host/spi-builder-workspace/Source/Cmlx/mlx/mlx/mlx.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));
      |     ^~~~~~~~~~~~~~~~~
/root/.swiftpm/swift-sdks/swift-6.3.2-RELEASE_wasm.artifactbundle/swift-6.3.2-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.3.2-RELEASE_wasm.artifactbundle/swift-6.3.2-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-c/mlx/c/io_types.cpp:7:
In file included from /host/spi-builder-workspace/Source/Cmlx/mlx-c/mlx/c/private/mlx.h:4:
In file included from /host/spi-builder-workspace/Source/Cmlx/mlx-c/mlx/c/private/array.h:10:
In file included from /host/spi-builder-workspace/Source/Cmlx/mlx/mlx/mlx.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_);
      |                ^~~~~~~~~~~~~~~~
/root/.swiftpm/swift-sdks/swift-6.3.2-RELEASE_wasm.artifactbundle/swift-6.3.2-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.3.2-RELEASE_wasm.artifactbundle/swift-6.3.2-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-c/mlx/c/io_types.cpp:7:
In file included from /host/spi-builder-workspace/Source/Cmlx/mlx-c/mlx/c/private/mlx.h:4:
In file included from /host/spi-builder-workspace/Source/Cmlx/mlx-c/mlx/c/private/array.h:10:
In file included from /host/spi-builder-workspace/Source/Cmlx/mlx/mlx/mlx.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_);
      |                     ^~~~~~~~~~~~~~~~
/root/.swiftpm/swift-sdks/swift-6.3.2-RELEASE_wasm.artifactbundle/swift-6.3.2-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.3.2-RELEASE_wasm.artifactbundle/swift-6.3.2-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-c/mlx/c/io_types.cpp:7:
In file included from /host/spi-builder-workspace/Source/Cmlx/mlx-c/mlx/c/private/mlx.h:4:
In file included from /host/spi-builder-workspace/Source/Cmlx/mlx-c/mlx/c/private/array.h:10:
In file included from /host/spi-builder-workspace/Source/Cmlx/mlx/mlx/mlx.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_, {});
      |                ^~~~~~~~~~~~~~~~~~~~
/root/.swiftpm/swift-sdks/swift-6.3.2-RELEASE_wasm.artifactbundle/swift-6.3.2-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.3.2-RELEASE_wasm.artifactbundle/swift-6.3.2-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-c/mlx/c/io_types.cpp:7:
In file included from /host/spi-builder-workspace/Source/Cmlx/mlx-c/mlx/c/private/mlx.h:4:
In file included from /host/spi-builder-workspace/Source/Cmlx/mlx-c/mlx/c/private/array.h:10:
In file included from /host/spi-builder-workspace/Source/Cmlx/mlx/mlx/mlx.h:14:
In file included from /host/spi-builder-workspace/Source/Cmlx/mlx/mlx/export.h:143:
In file included from /host/spi-builder-workspace/Source/Cmlx/mlx/mlx/export_impl.h:4:
In file included from /host/spi-builder-workspace/Source/Cmlx/mlx/mlx/io/load.h:16:
/host/spi-builder-workspace/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/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/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/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/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/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/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/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/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/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/Source/Cmlx/mlx/mlx/threadpool.h:79:10: error: use of undeclared identifier 'res'
   79 |   return res;
      |          ^~~
/host/spi-builder-workspace/Source/Cmlx/mlx/mlx/threadpool.h:100:27: error: no member named 'mutex' in namespace 'std'
  100 |     std::unique_lock<std::mutex> lock(queue_mutex);
      |                           ^~~~~
/host/spi-builder-workspace/Source/Cmlx/mlx/mlx/threadpool.h:104:13: error: no type named 'thread' in namespace 'std'
  104 |   for (std::thread& worker : workers) {
      |        ~~~~~^
/host/spi-builder-workspace/Source/Cmlx/mlx/mlx/threadpool.h:120:33: error: no member named 'mutex' in namespace 'std'
  120 |           std::unique_lock<std::mutex> lock(this->queue_mutex);
      |                                 ^~~~~
[3/430] Compiling io_types.cpp
In file included from /host/spi-builder-workspace/Source/Cmlx/mlx-c/mlx/c/graph_utils.cpp:8:
In file included from /host/spi-builder-workspace/Source/Cmlx/mlx-c/mlx/c/private/mlx.h:4:
In file included from /host/spi-builder-workspace/Source/Cmlx/mlx-c/mlx/c/private/array.h:10:
In file included from /host/spi-builder-workspace/Source/Cmlx/mlx/mlx/mlx.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));
      |     ^~~~~~~~~~~~~~~~~
/root/.swiftpm/swift-sdks/swift-6.3.2-RELEASE_wasm.artifactbundle/swift-6.3.2-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.3.2-RELEASE_wasm.artifactbundle/swift-6.3.2-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-c/mlx/c/graph_utils.cpp:8:
In file included from /host/spi-builder-workspace/Source/Cmlx/mlx-c/mlx/c/private/mlx.h:4:
In file included from /host/spi-builder-workspace/Source/Cmlx/mlx-c/mlx/c/private/array.h:10:
In file included from /host/spi-builder-workspace/Source/Cmlx/mlx/mlx/mlx.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_);
      |                ^~~~~~~~~~~~~~~~
/root/.swiftpm/swift-sdks/swift-6.3.2-RELEASE_wasm.artifactbundle/swift-6.3.2-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.3.2-RELEASE_wasm.artifactbundle/swift-6.3.2-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-c/mlx/c/graph_utils.cpp:8:
In file included from /host/spi-builder-workspace/Source/Cmlx/mlx-c/mlx/c/private/mlx.h:4:
In file included from /host/spi-builder-workspace/Source/Cmlx/mlx-c/mlx/c/private/array.h:10:
In file included from /host/spi-builder-workspace/Source/Cmlx/mlx/mlx/mlx.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_);
      |                     ^~~~~~~~~~~~~~~~
/root/.swiftpm/swift-sdks/swift-6.3.2-RELEASE_wasm.artifactbundle/swift-6.3.2-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.3.2-RELEASE_wasm.artifactbundle/swift-6.3.2-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-c/mlx/c/graph_utils.cpp:8:
In file included from /host/spi-builder-workspace/Source/Cmlx/mlx-c/mlx/c/private/mlx.h:4:
In file included from /host/spi-builder-workspace/Source/Cmlx/mlx-c/mlx/c/private/array.h:10:
In file included from /host/spi-builder-workspace/Source/Cmlx/mlx/mlx/mlx.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_, {});
      |                ^~~~~~~~~~~~~~~~~~~~
/root/.swiftpm/swift-sdks/swift-6.3.2-RELEASE_wasm.artifactbundle/swift-6.3.2-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.3.2-RELEASE_wasm.artifactbundle/swift-6.3.2-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-c/mlx/c/graph_utils.cpp:8:
In file included from /host/spi-builder-workspace/Source/Cmlx/mlx-c/mlx/c/private/mlx.h:4:
In file included from /host/spi-builder-workspace/Source/Cmlx/mlx-c/mlx/c/private/array.h:10:
In file included from /host/spi-builder-workspace/Source/Cmlx/mlx/mlx/mlx.h:14:
In file included from /host/spi-builder-workspace/Source/Cmlx/mlx/mlx/export.h:143:
In file included from /host/spi-builder-workspace/Source/Cmlx/mlx/mlx/export_impl.h:4:
In file included from /host/spi-builder-workspace/Source/Cmlx/mlx/mlx/io/load.h:16:
/host/spi-builder-workspace/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/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/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/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/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/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/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/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/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/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/Source/Cmlx/mlx/mlx/threadpool.h:79:10: error: use of undeclared identifier 'res'
   79 |   return res;
      |          ^~~
/host/spi-builder-workspace/Source/Cmlx/mlx/mlx/threadpool.h:100:27: error: no member named 'mutex' in namespace 'std'
  100 |     std::unique_lock<std::mutex> lock(queue_mutex);
      |                           ^~~~~
/host/spi-builder-workspace/Source/Cmlx/mlx/mlx/threadpool.h:104:13: error: no type named 'thread' in namespace 'std'
  104 |   for (std::thread& worker : workers) {
      |        ~~~~~^
/host/spi-builder-workspace/Source/Cmlx/mlx/mlx/threadpool.h:120:33: error: no member named 'mutex' in namespace 'std'
  120 |           std::unique_lock<std::mutex> lock(this->queue_mutex);
      |                                 ^~~~~
[3/430] Compiling graph_utils.cpp
In file included from /host/spi-builder-workspace/Source/Cmlx/mlx-c/mlx/c/closure.cpp:8:
In file included from /host/spi-builder-workspace/Source/Cmlx/mlx-c/mlx/c/private/mlx.h:4:
In file included from /host/spi-builder-workspace/Source/Cmlx/mlx-c/mlx/c/private/array.h:10:
In file included from /host/spi-builder-workspace/Source/Cmlx/mlx/mlx/mlx.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));
      |     ^~~~~~~~~~~~~~~~~
/root/.swiftpm/swift-sdks/swift-6.3.2-RELEASE_wasm.artifactbundle/swift-6.3.2-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.3.2-RELEASE_wasm.artifactbundle/swift-6.3.2-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-c/mlx/c/closure.cpp:8:
In file included from /host/spi-builder-workspace/Source/Cmlx/mlx-c/mlx/c/private/mlx.h:4:
In file included from /host/spi-builder-workspace/Source/Cmlx/mlx-c/mlx/c/private/array.h:10:
In file included from /host/spi-builder-workspace/Source/Cmlx/mlx/mlx/mlx.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_);
      |                ^~~~~~~~~~~~~~~~
/root/.swiftpm/swift-sdks/swift-6.3.2-RELEASE_wasm.artifactbundle/swift-6.3.2-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.3.2-RELEASE_wasm.artifactbundle/swift-6.3.2-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-c/mlx/c/closure.cpp:8:
In file included from /host/spi-builder-workspace/Source/Cmlx/mlx-c/mlx/c/private/mlx.h:4:
In file included from /host/spi-builder-workspace/Source/Cmlx/mlx-c/mlx/c/private/array.h:10:
In file included from /host/spi-builder-workspace/Source/Cmlx/mlx/mlx/mlx.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_);
      |                     ^~~~~~~~~~~~~~~~
/root/.swiftpm/swift-sdks/swift-6.3.2-RELEASE_wasm.artifactbundle/swift-6.3.2-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.3.2-RELEASE_wasm.artifactbundle/swift-6.3.2-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-c/mlx/c/closure.cpp:8:
In file included from /host/spi-builder-workspace/Source/Cmlx/mlx-c/mlx/c/private/mlx.h:4:
In file included from /host/spi-builder-workspace/Source/Cmlx/mlx-c/mlx/c/private/array.h:10:
In file included from /host/spi-builder-workspace/Source/Cmlx/mlx/mlx/mlx.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_, {});
      |                ^~~~~~~~~~~~~~~~~~~~
/root/.swiftpm/swift-sdks/swift-6.3.2-RELEASE_wasm.artifactbundle/swift-6.3.2-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.3.2-RELEASE_wasm.artifactbundle/swift-6.3.2-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-c/mlx/c/closure.cpp:8:
In file included from /host/spi-builder-workspace/Source/Cmlx/mlx-c/mlx/c/private/mlx.h:4:
In file included from /host/spi-builder-workspace/Source/Cmlx/mlx-c/mlx/c/private/array.h:10:
In file included from /host/spi-builder-workspace/Source/Cmlx/mlx/mlx/mlx.h:14:
In file included from /host/spi-builder-workspace/Source/Cmlx/mlx/mlx/export.h:143:
In file included from /host/spi-builder-workspace/Source/Cmlx/mlx/mlx/export_impl.h:4:
In file included from /host/spi-builder-workspace/Source/Cmlx/mlx/mlx/io/load.h:16:
/host/spi-builder-workspace/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/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/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/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/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/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/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/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/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/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/Source/Cmlx/mlx/mlx/threadpool.h:79:10: error: use of undeclared identifier 'res'
   79 |   return res;
      |          ^~~
/host/spi-builder-workspace/Source/Cmlx/mlx/mlx/threadpool.h:100:27: error: no member named 'mutex' in namespace 'std'
  100 |     std::unique_lock<std::mutex> lock(queue_mutex);
      |                           ^~~~~
/host/spi-builder-workspace/Source/Cmlx/mlx/mlx/threadpool.h:104:13: error: no type named 'thread' in namespace 'std'
  104 |   for (std::thread& worker : workers) {
      |        ~~~~~^
/host/spi-builder-workspace/Source/Cmlx/mlx/mlx/threadpool.h:120:33: error: no member named 'mutex' in namespace 'std'
  120 |           std::unique_lock<std::mutex> lock(this->queue_mutex);
      |                                 ^~~~~
[3/430] Compiling closure.cpp
In file included from /host/spi-builder-workspace/Source/Cmlx/mlx-c/mlx/c/io.cpp:8:
In file included from /host/spi-builder-workspace/Source/Cmlx/mlx-c/mlx/c/private/mlx.h:4:
In file included from /host/spi-builder-workspace/Source/Cmlx/mlx-c/mlx/c/private/array.h:10:
In file included from /host/spi-builder-workspace/Source/Cmlx/mlx/mlx/mlx.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));
      |     ^~~~~~~~~~~~~~~~~
/root/.swiftpm/swift-sdks/swift-6.3.2-RELEASE_wasm.artifactbundle/swift-6.3.2-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.3.2-RELEASE_wasm.artifactbundle/swift-6.3.2-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-c/mlx/c/io.cpp:8:
In file included from /host/spi-builder-workspace/Source/Cmlx/mlx-c/mlx/c/private/mlx.h:4:
In file included from /host/spi-builder-workspace/Source/Cmlx/mlx-c/mlx/c/private/array.h:10:
In file included from /host/spi-builder-workspace/Source/Cmlx/mlx/mlx/mlx.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_);
      |                ^~~~~~~~~~~~~~~~
/root/.swiftpm/swift-sdks/swift-6.3.2-RELEASE_wasm.artifactbundle/swift-6.3.2-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.3.2-RELEASE_wasm.artifactbundle/swift-6.3.2-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-c/mlx/c/io.cpp:8:
In file included from /host/spi-builder-workspace/Source/Cmlx/mlx-c/mlx/c/private/mlx.h:4:
In file included from /host/spi-builder-workspace/Source/Cmlx/mlx-c/mlx/c/private/array.h:10:
In file included from /host/spi-builder-workspace/Source/Cmlx/mlx/mlx/mlx.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_);
      |                     ^~~~~~~~~~~~~~~~
/root/.swiftpm/swift-sdks/swift-6.3.2-RELEASE_wasm.artifactbundle/swift-6.3.2-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.3.2-RELEASE_wasm.artifactbundle/swift-6.3.2-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-c/mlx/c/io.cpp:8:
In file included from /host/spi-builder-workspace/Source/Cmlx/mlx-c/mlx/c/private/mlx.h:4:
In file included from /host/spi-builder-workspace/Source/Cmlx/mlx-c/mlx/c/private/array.h:10:
In file included from /host/spi-builder-workspace/Source/Cmlx/mlx/mlx/mlx.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_, {});
      |                ^~~~~~~~~~~~~~~~~~~~
/root/.swiftpm/swift-sdks/swift-6.3.2-RELEASE_wasm.artifactbundle/swift-6.3.2-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.3.2-RELEASE_wasm.artifactbundle/swift-6.3.2-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-c/mlx/c/io.cpp:8:
In file included from /host/spi-builder-workspace/Source/Cmlx/mlx-c/mlx/c/private/mlx.h:4:
In file included from /host/spi-builder-workspace/Source/Cmlx/mlx-c/mlx/c/private/array.h:10:
In file included from /host/spi-builder-workspace/Source/Cmlx/mlx/mlx/mlx.h:14:
In file included from /host/spi-builder-workspace/Source/Cmlx/mlx/mlx/export.h:143:
In file included from /host/spi-builder-workspace/Source/Cmlx/mlx/mlx/export_impl.h:4:
In file included from /host/spi-builder-workspace/Source/Cmlx/mlx/mlx/io/load.h:16:
/host/spi-builder-workspace/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/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/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/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/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/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/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/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/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/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/Source/Cmlx/mlx/mlx/threadpool.h:79:10: error: use of undeclared identifier 'res'
   79 |   return res;
      |          ^~~
/host/spi-builder-workspace/Source/Cmlx/mlx/mlx/threadpool.h:100:27: error: no member named 'mutex' in namespace 'std'
  100 |     std::unique_lock<std::mutex> lock(queue_mutex);
      |                           ^~~~~
/host/spi-builder-workspace/Source/Cmlx/mlx/mlx/threadpool.h:104:13: error: no type named 'thread' in namespace 'std'
  104 |   for (std::thread& worker : workers) {
      |        ~~~~~^
/host/spi-builder-workspace/Source/Cmlx/mlx/mlx/threadpool.h:120:33: error: no member named 'mutex' in namespace 'std'
  120 |           std::unique_lock<std::mutex> lock(this->queue_mutex);
      |                                 ^~~~~
[3/430] Compiling io.cpp
In file included from /host/spi-builder-workspace/Source/Cmlx/mlx-c/mlx/c/version.cpp:4:
In file included from /host/spi-builder-workspace/Source/Cmlx/mlx-c/mlx/c/private/mlx.h:4:
In file included from /host/spi-builder-workspace/Source/Cmlx/mlx-c/mlx/c/private/array.h:10:
In file included from /host/spi-builder-workspace/Source/Cmlx/mlx/mlx/mlx.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));
      |     ^~~~~~~~~~~~~~~~~
/root/.swiftpm/swift-sdks/swift-6.3.2-RELEASE_wasm.artifactbundle/swift-6.3.2-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.3.2-RELEASE_wasm.artifactbundle/swift-6.3.2-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-c/mlx/c/version.cpp:4:
In file included from /host/spi-builder-workspace/Source/Cmlx/mlx-c/mlx/c/private/mlx.h:4:
In file included from /host/spi-builder-workspace/Source/Cmlx/mlx-c/mlx/c/private/array.h:10:
In file included from /host/spi-builder-workspace/Source/Cmlx/mlx/mlx/mlx.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_);
      |                ^~~~~~~~~~~~~~~~
/root/.swiftpm/swift-sdks/swift-6.3.2-RELEASE_wasm.artifactbundle/swift-6.3.2-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.3.2-RELEASE_wasm.artifactbundle/swift-6.3.2-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-c/mlx/c/version.cpp:4:
In file included from /host/spi-builder-workspace/Source/Cmlx/mlx-c/mlx/c/private/mlx.h:4:
In file included from /host/spi-builder-workspace/Source/Cmlx/mlx-c/mlx/c/private/array.h:10:
In file included from /host/spi-builder-workspace/Source/Cmlx/mlx/mlx/mlx.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_);
      |                     ^~~~~~~~~~~~~~~~
/root/.swiftpm/swift-sdks/swift-6.3.2-RELEASE_wasm.artifactbundle/swift-6.3.2-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.3.2-RELEASE_wasm.artifactbundle/swift-6.3.2-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-c/mlx/c/version.cpp:4:
In file included from /host/spi-builder-workspace/Source/Cmlx/mlx-c/mlx/c/private/mlx.h:4:
In file included from /host/spi-builder-workspace/Source/Cmlx/mlx-c/mlx/c/private/array.h:10:
In file included from /host/spi-builder-workspace/Source/Cmlx/mlx/mlx/mlx.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_, {});
      |                ^~~~~~~~~~~~~~~~~~~~
/root/.swiftpm/swift-sdks/swift-6.3.2-RELEASE_wasm.artifactbundle/swift-6.3.2-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.3.2-RELEASE_wasm.artifactbundle/swift-6.3.2-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-c/mlx/c/version.cpp:4:
In file included from /host/spi-builder-workspace/Source/Cmlx/mlx-c/mlx/c/private/mlx.h:4:
In file included from /host/spi-builder-workspace/Source/Cmlx/mlx-c/mlx/c/private/array.h:10:
In file included from /host/spi-builder-workspace/Source/Cmlx/mlx/mlx/mlx.h:14:
In file included from /host/spi-builder-workspace/Source/Cmlx/mlx/mlx/export.h:143:
In file included from /host/spi-builder-workspace/Source/Cmlx/mlx/mlx/export_impl.h:4:
In file included from /host/spi-builder-workspace/Source/Cmlx/mlx/mlx/io/load.h:16:
/host/spi-builder-workspace/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/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/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/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/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/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/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/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/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/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/Source/Cmlx/mlx/mlx/threadpool.h:79:10: error: use of undeclared identifier 'res'
   79 |   return res;
      |          ^~~
/host/spi-builder-workspace/Source/Cmlx/mlx/mlx/threadpool.h:100:27: error: no member named 'mutex' in namespace 'std'
  100 |     std::unique_lock<std::mutex> lock(queue_mutex);
      |                           ^~~~~
/host/spi-builder-workspace/Source/Cmlx/mlx/mlx/threadpool.h:104:13: error: no type named 'thread' in namespace 'std'
  104 |   for (std::thread& worker : workers) {
      |        ~~~~~^
/host/spi-builder-workspace/Source/Cmlx/mlx/mlx/threadpool.h:120:33: error: no member named 'mutex' in namespace 'std'
  120 |           std::unique_lock<std::mutex> lock(this->queue_mutex);
      |                                 ^~~~~
[3/430] Compiling version.cpp
In file included from /host/spi-builder-workspace/Source/Cmlx/mlx-c/mlx/c/array.cpp:7:
In file included from /host/spi-builder-workspace/Source/Cmlx/mlx-c/mlx/c/private/mlx.h:4:
In file included from /host/spi-builder-workspace/Source/Cmlx/mlx-c/mlx/c/private/array.h:10:
In file included from /host/spi-builder-workspace/Source/Cmlx/mlx/mlx/mlx.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));
      |     ^~~~~~~~~~~~~~~~~
/root/.swiftpm/swift-sdks/swift-6.3.2-RELEASE_wasm.artifactbundle/swift-6.3.2-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.3.2-RELEASE_wasm.artifactbundle/swift-6.3.2-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-c/mlx/c/array.cpp:7:
In file included from /host/spi-builder-workspace/Source/Cmlx/mlx-c/mlx/c/private/mlx.h:4:
In file included from /host/spi-builder-workspace/Source/Cmlx/mlx-c/mlx/c/private/array.h:10:
In file included from /host/spi-builder-workspace/Source/Cmlx/mlx/mlx/mlx.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_);
      |                ^~~~~~~~~~~~~~~~
/root/.swiftpm/swift-sdks/swift-6.3.2-RELEASE_wasm.artifactbundle/swift-6.3.2-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.3.2-RELEASE_wasm.artifactbundle/swift-6.3.2-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-c/mlx/c/array.cpp:7:
In file included from /host/spi-builder-workspace/Source/Cmlx/mlx-c/mlx/c/private/mlx.h:4:
In file included from /host/spi-builder-workspace/Source/Cmlx/mlx-c/mlx/c/private/array.h:10:
In file included from /host/spi-builder-workspace/Source/Cmlx/mlx/mlx/mlx.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_);
      |                     ^~~~~~~~~~~~~~~~
/root/.swiftpm/swift-sdks/swift-6.3.2-RELEASE_wasm.artifactbundle/swift-6.3.2-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.3.2-RELEASE_wasm.artifactbundle/swift-6.3.2-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-c/mlx/c/array.cpp:7:
In file included from /host/spi-builder-workspace/Source/Cmlx/mlx-c/mlx/c/private/mlx.h:4:
In file included from /host/spi-builder-workspace/Source/Cmlx/mlx-c/mlx/c/private/array.h:10:
In file included from /host/spi-builder-workspace/Source/Cmlx/mlx/mlx/mlx.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_, {});
      |                ^~~~~~~~~~~~~~~~~~~~
/root/.swiftpm/swift-sdks/swift-6.3.2-RELEASE_wasm.artifactbundle/swift-6.3.2-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.3.2-RELEASE_wasm.artifactbundle/swift-6.3.2-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-c/mlx/c/array.cpp:7:
In file included from /host/spi-builder-workspace/Source/Cmlx/mlx-c/mlx/c/private/mlx.h:4:
In file included from /host/spi-builder-workspace/Source/Cmlx/mlx-c/mlx/c/private/array.h:10:
In file included from /host/spi-builder-workspace/Source/Cmlx/mlx/mlx/mlx.h:14:
In file included from /host/spi-builder-workspace/Source/Cmlx/mlx/mlx/export.h:143:
In file included from /host/spi-builder-workspace/Source/Cmlx/mlx/mlx/export_impl.h:4:
In file included from /host/spi-builder-workspace/Source/Cmlx/mlx/mlx/io/load.h:16:
/host/spi-builder-workspace/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/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/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/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/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/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/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/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/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/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/Source/Cmlx/mlx/mlx/threadpool.h:79:10: error: use of undeclared identifier 'res'
   79 |   return res;
      |          ^~~
/host/spi-builder-workspace/Source/Cmlx/mlx/mlx/threadpool.h:100:27: error: no member named 'mutex' in namespace 'std'
  100 |     std::unique_lock<std::mutex> lock(queue_mutex);
      |                           ^~~~~
/host/spi-builder-workspace/Source/Cmlx/mlx/mlx/threadpool.h:104:13: error: no type named 'thread' in namespace 'std'
  104 |   for (std::thread& worker : workers) {
      |        ~~~~~^
/host/spi-builder-workspace/Source/Cmlx/mlx/mlx/threadpool.h:120:33: error: no member named 'mutex' in namespace 'std'
  120 |           std::unique_lock<std::mutex> lock(this->queue_mutex);
      |                                 ^~~~~
[3/430] Compiling array.cpp
BUILD FAILURE 6.3 wasm