Build Information
Failed to build swift-ai, reference main (46bca4), with Swift 6.4 for Wasm on 23 Sep 2026 04:30:23 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-54344844-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.x-DEVELOPMENT-SNAPSHOT-2026-09-04-a_wasm 2>&1Build Log
========================================
RunAll
========================================
Builder version: 5.1.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/mi12labs/SwiftAI.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/mi12labs/SwiftAI
* branch main -> FETCH_HEAD
* [new branch] main -> origin/main
HEAD is now at 46bca4b Merge pull request #22 from mi12labs/openai-reasoning
Cloned https://github.com/mi12labs/SwiftAI.git
Revision (git rev-parse @):
46bca4bab65fe5635df716db6fb0f0262e32d852
SPI manifest file found: $PWD/.spi.yml
SUCCESS checkout https://github.com/mi12labs/SwiftAI.git at main
========================================
Build
========================================
Selected platform: wasm
Swift version: 6.4
Building package at path: $PWD
https://github.com/mi12labs/SwiftAI.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-54344844-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.x-DEVELOPMENT-SNAPSHOT-2026-09-04-a_wasm 2>&1
wasm-6.4-latest: Pulling from saguaro1/spi-images
Digest: sha256:4328fdb43c680d205c1d6761b1e3267aa38277eefdda9ddfb17b6a0f1a77857a
Status: Image is up to date for registry.gitlab.com/saguaro1/spi-images:wasm-6.4-latest
Fetching https://github.com/MacPaw/OpenAI.git
[1/9084] Fetching openai
Fetched https://github.com/MacPaw/OpenAI.git (0.59s)
Fetching https://github.com/pointfreeco/swift-macro-testing.git
Fetching https://github.com/ml-explore/mlx-swift-examples.git
Fetching https://github.com/apple/swift-openapi-runtime
Fetching https://github.com/apple/swift-collections.git
Fetching https://github.com/swiftlang/swift-format.git
Fetching https://github.com/swiftlang/swift-syntax.git
[1/1002] Fetching swift-macro-testing
[1003/7940] Fetching swift-macro-testing, swift-openapi-runtime
Fetched https://github.com/apple/swift-openapi-runtime (0.57s)
[1/15041] Fetching swift-format
[754/22907] Fetching swift-format, mlx-swift-examples
[5192/50593] Fetching swift-format, mlx-swift-examples, swift-collections
Fetched https://github.com/pointfreeco/swift-macro-testing.git (0.82s)
Fetched https://github.com/ml-explore/mlx-swift-examples.git (0.83s)
[22240/42727] Fetching swift-format, swift-collections
[42728/122734] Fetching swift-format, swift-collections, swift-syntax
Fetched https://github.com/apple/swift-collections.git (1.29s)
[26242/95048] Fetching swift-format, swift-syntax
Fetched https://github.com/swiftlang/swift-format.git (3.38s)
Fetched https://github.com/swiftlang/swift-syntax.git (3.41s)
Computing version for https://github.com/swiftlang/swift-format.git
Computed https://github.com/swiftlang/swift-format.git at 510.1.0 (4.51s)
Fetching https://github.com/apple/swift-argument-parser.git
Fetching https://github.com/apple/swift-markdown.git
[1/7739] Fetching swift-markdown
[5341/26657] Fetching swift-markdown, swift-argument-parser
Fetched https://github.com/apple/swift-markdown.git (0.68s)
[17027/18918] Fetching swift-argument-parser
Fetched https://github.com/apple/swift-argument-parser.git (0.79s)
Computing version for https://github.com/pointfreeco/swift-macro-testing.git
Computed https://github.com/pointfreeco/swift-macro-testing.git at 0.7.0 (0.98s)
Fetching https://github.com/pointfreeco/swift-snapshot-testing
[1/16477] Fetching swift-snapshot-testing
Fetched https://github.com/pointfreeco/swift-snapshot-testing (2.23s)
Computing version for https://github.com/swiftlang/swift-syntax.git
Computed https://github.com/swiftlang/swift-syntax.git at 510.0.3 (2.52s)
Computing version for https://github.com/ml-explore/mlx-swift-examples.git
Computed https://github.com/ml-explore/mlx-swift-examples.git at 2.29.1 (0.21s)
Fetching https://github.com/ml-explore/mlx-swift
Fetching https://github.com/1024jp/GzipSwift
Fetching https://github.com/huggingface/swift-transformers
[1/1762] Fetching gzipswift
[583/8780] Fetching gzipswift, swift-transformers
Fetched https://github.com/1024jp/GzipSwift (0.75s)
Fetched https://github.com/huggingface/swift-transformers (0.76s)
[1/16941] Fetching mlx-swift
Fetched https://github.com/ml-explore/mlx-swift (1.19s)
Computing version for https://github.com/1024jp/GzipSwift
Computed https://github.com/1024jp/GzipSwift at 6.0.1 (1.39s)
Computing version for https://github.com/huggingface/swift-transformers
Computed https://github.com/huggingface/swift-transformers at 1.0.0 (0.17s)
Fetching https://github.com/huggingface/swift-jinja.git
[1/1360] Fetching swift-jinja
Fetched https://github.com/huggingface/swift-jinja.git (0.58s)
Computing version for https://github.com/ml-explore/mlx-swift
Computed https://github.com/ml-explore/mlx-swift at 0.29.1 (0.81s)
Fetching https://github.com/apple/swift-numerics
[1/6640] Fetching swift-numerics
Fetched https://github.com/apple/swift-numerics (0.61s)
Computing version for https://github.com/apple/swift-numerics
Computed https://github.com/apple/swift-numerics at 1.1.1 (0.79s)
Computing version for https://github.com/apple/swift-collections.git
Computed https://github.com/apple/swift-collections.git at 1.7.0 (0.30s)
Computing version for https://github.com/apple/swift-openapi-runtime
Computed https://github.com/apple/swift-openapi-runtime at 1.12.1 (0.20s)
Fetching https://github.com/apple/swift-http-types
[1/1935] Fetching swift-http-types
Fetched https://github.com/apple/swift-http-types (0.50s)
Computing version for https://github.com/apple/swift-markdown.git
Computed https://github.com/apple/swift-markdown.git at 0.9.0 (1.60s)
Fetching https://github.com/swiftlang/swift-cmark.git
[1/18600] Fetching swift-cmark
Fetched https://github.com/swiftlang/swift-cmark.git (0.88s)
Computing version for https://github.com/swiftlang/swift-cmark.git
Computed https://github.com/swiftlang/swift-cmark.git at 0.9.0 (1.10s)
Computing version for https://github.com/apple/swift-http-types
Computed https://github.com/apple/swift-http-types at 1.8.0 (0.22s)
Computing version for https://github.com/apple/swift-argument-parser.git
Computed https://github.com/apple/swift-argument-parser.git at 1.8.2 (0.18s)
Computing version for https://github.com/pointfreeco/swift-snapshot-testing
Computed https://github.com/pointfreeco/swift-snapshot-testing at 1.19.6 (0.18s)
Fetching https://github.com/pointfreeco/swift-custom-dump
[1/5666] Fetching swift-custom-dump
Fetched https://github.com/pointfreeco/swift-custom-dump (0.47s)
Computing version for https://github.com/pointfreeco/swift-custom-dump
Computed https://github.com/pointfreeco/swift-custom-dump at 1.7.3 (0.67s)
Fetching https://github.com/pointfreeco/swift-issue-reporting
[1/6161] Fetching swift-issue-reporting
Fetched https://github.com/pointfreeco/swift-issue-reporting (0.81s)
Computing version for https://github.com/pointfreeco/swift-issue-reporting
Computed https://github.com/pointfreeco/swift-issue-reporting at 2.1.1 (1.08s)
Computing version for https://github.com/huggingface/swift-jinja.git
Computed https://github.com/huggingface/swift-jinja.git at 2.5.1 (0.17s)
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/huggingface/swift-transformers
Working copy of https://github.com/huggingface/swift-transformers resolved at 1.0.0
Creating working copy for https://github.com/MacPaw/OpenAI.git
Working copy of https://github.com/MacPaw/OpenAI.git resolved at 0.4.7 (28884fc)
Creating working copy for https://github.com/apple/swift-argument-parser.git
Working copy of https://github.com/apple/swift-argument-parser.git resolved at 1.8.2
Creating working copy for https://github.com/apple/swift-http-types
Working copy of https://github.com/apple/swift-http-types resolved at 1.8.0
Creating working copy for https://github.com/pointfreeco/swift-snapshot-testing
Working copy of https://github.com/pointfreeco/swift-snapshot-testing resolved at 1.19.6
Creating working copy for https://github.com/swiftlang/swift-syntax.git
Working copy of https://github.com/swiftlang/swift-syntax.git resolved at 510.0.3
Creating working copy for https://github.com/pointfreeco/swift-macro-testing.git
Working copy of https://github.com/pointfreeco/swift-macro-testing.git resolved at 0.7.0
Creating working copy for https://github.com/apple/swift-markdown.git
Working copy of https://github.com/apple/swift-markdown.git resolved at 0.9.0
Creating working copy for https://github.com/pointfreeco/swift-issue-reporting
Working copy of https://github.com/pointfreeco/swift-issue-reporting resolved at 2.1.1
Creating working copy for https://github.com/huggingface/swift-jinja.git
Working copy of https://github.com/huggingface/swift-jinja.git resolved at 2.5.1
Creating working copy for https://github.com/swiftlang/swift-format.git
Working copy of https://github.com/swiftlang/swift-format.git resolved at 510.1.0
Creating working copy for https://github.com/ml-explore/mlx-swift-examples.git
Working copy of https://github.com/ml-explore/mlx-swift-examples.git resolved at 2.29.1
Creating working copy for https://github.com/1024jp/GzipSwift
Working copy of https://github.com/1024jp/GzipSwift resolved at 6.0.1
Creating working copy for https://github.com/apple/swift-collections.git
Working copy of https://github.com/apple/swift-collections.git resolved at 1.7.0
Creating working copy for https://github.com/apple/swift-openapi-runtime
Working copy of https://github.com/apple/swift-openapi-runtime resolved at 1.12.1
Creating working copy for https://github.com/swiftlang/swift-cmark.git
Working copy of https://github.com/swiftlang/swift-cmark.git resolved at 0.9.0
Creating working copy for https://github.com/pointfreeco/swift-custom-dump
Working copy of https://github.com/pointfreeco/swift-custom-dump resolved at 1.7.3
Creating working copy for https://github.com/ml-explore/mlx-swift
Working copy of https://github.com/ml-explore/mlx-swift resolved at 0.29.1
warning: 'swift-format': Conflicting identity for swift-syntax: dependency 'github.com/apple/swift-syntax' and dependency 'github.com/swiftlang/swift-syntax' both point to the same package identity 'swift-syntax'. The dependencies are introduced through the following chains: (A) /host/spi-builder-workspace->github.com/swiftlang/swift-format->github.com/apple/swift-syntax (B) /host/spi-builder-workspace->github.com/swiftlang/swift-syntax. If there are multiple chains that lead to the same dependency, only the first chain is shown here. To see all chains use debug output option. To resolve the conflict, coordinate with the maintainer of the package that introduces the conflicting dependency. This will be escalated to an error in future versions of SwiftPM.
warning: 'swift-format': Conflicting identity for swift-syntax: dependency 'github.com/apple/swift-syntax' and dependency 'github.com/swiftlang/swift-syntax' both point to the same package identity 'swift-syntax'. The dependencies are introduced through the following chains: (A) /host/spi-builder-workspace->github.com/swiftlang/swift-format->github.com/apple/swift-syntax (B) /host/spi-builder-workspace->github.com/swiftlang/swift-syntax. If there are multiple chains that lead to the same dependency, only the first chain is shown here. To see all chains use debug output option. To resolve the conflict, coordinate with the maintainer of the package that introduces the conflicting dependency. This will be escalated to an error in future versions of SwiftPM.
Building for debugging...
[Computing dependencies]
[Provisioning 60 / 76]
[Pre-planning 1 / 1488]
[Planning 802 / 1488]
[Planning deferred tasks]
[Constructing 2885 / 3452]
[15 / 747] cmark-gfm-extensions
warning: no rule to process file '/host/spi-builder-workspace/.build/checkouts/mlx-swift/Source/Cmlx/mlx-generated/metal/arg_reduce.metal' of type 'sourcecode.metal' for architecture 'wasm32'
warning: no rule to process file '/host/spi-builder-workspace/.build/checkouts/mlx-swift/Source/Cmlx/mlx-generated/metal/conv.metal' of type 'sourcecode.metal' for architecture 'wasm32'
warning: no rule to process file '/host/spi-builder-workspace/.build/checkouts/mlx-swift/Source/Cmlx/mlx-generated/metal/gemv.metal' of type 'sourcecode.metal' for architecture 'wasm32'
warning: no rule to process file '/host/spi-builder-workspace/.build/checkouts/mlx-swift/Source/Cmlx/mlx-generated/metal/layer_norm.metal' of type 'sourcecode.metal' for architecture 'wasm32'
warning: no rule to process file '/host/spi-builder-workspace/.build/checkouts/mlx-swift/Source/Cmlx/mlx-generated/metal/random.metal' of type 'sourcecode.metal' for architecture 'wasm32'
warning: no rule to process file '/host/spi-builder-workspace/.build/checkouts/mlx-swift/Source/Cmlx/mlx-generated/metal/rms_norm.metal' of type 'sourcecode.metal' for architecture 'wasm32'
warning: no rule to process file '/host/spi-builder-workspace/.build/checkouts/mlx-swift/Source/Cmlx/mlx-generated/metal/rope.metal' of type 'sourcecode.metal' for architecture 'wasm32'
warning: no rule to process file '/host/spi-builder-workspace/.build/checkouts/mlx-swift/Source/Cmlx/mlx-generated/metal/scaled_dot_product_attention.metal' of type 'sourcecode.metal' for architecture 'wasm32'
warning: no rule to process file '/host/spi-builder-workspace/.build/checkouts/mlx-swift/Source/Cmlx/mlx-generated/metal/steel/attn/kernels/steel_attention.metal' of type 'sourcecode.metal' for architecture 'wasm32'
[208 / 747] MLX
[260 / 753] SwiftSyntax510
[268 / 753] cmark-gfm
[286 / 753] cmark-gfm
[292 / 753] cmark-gfm
[298 / 753] cmark-gfm
[303 / 753]
[311 / 775] HTTPTypes
[314 / 793] cmark-gfm
[315 / 793] InternalCollectionsUtilities
[327 / 793] RealModule
[328 / 793] HTTPTypes
[330 / 793] SwiftSyntax509
[347 / 795] Markdown
[350 / 795] Markdown
[351 / 795] Markdown
[353 / 795] Markdown-product
[354 / 796] Markdown
[355 / 796] RealModule
[357 / 796] RealModule
[359 / 796] RealModule
[360 / 796] RealModule
[361 / 796] InternalCollectionsUtilities
[362 / 796] OrderedCollections
[365 / 796] InternalCollectionsUtilities
[367 / 796] HTTPTypes
[368 / 796] HTTPTypes
[369 / 797] InternalCollectionsUtilities
[374 / 797] InternalCollectionsUtilities
[376 / 797] HTTPTypes
[380 / 798] Cmlx
[383 / 808] Markdown
[384 / 808] Cmlx
[386 / 808] Cmlx
[388 / 808] Cmlx
[390 / 809] Cmlx
In file included from /host/spi-builder-workspace/.build/checkouts/mlx-swift/Source/Cmlx/mlx/mlx/backend/metal/utils.cpp:3:
In file included from /host/spi-builder-workspace/.build/checkouts/mlx-swift/Source/Cmlx/mlx/mlx/backend/metal/utils.h:8:
In file included from /host/spi-builder-workspace/.build/checkouts/mlx-swift/Source/Cmlx/mlx/mlx/backend/metal/device.h:5:
In file included from /host/spi-builder-workspace/.build/checkouts/mlx-swift/Source/Cmlx/metal-cpp/Metal/Metal.hpp:25:
In file included from /host/spi-builder-workspace/.build/checkouts/mlx-swift/Source/Cmlx/metal-cpp/Metal/MTLAccelerationStructure.hpp:24:
In file included from /host/spi-builder-workspace/.build/checkouts/mlx-swift/Source/Cmlx/metal-cpp/Metal/MTLHeaderBridge.hpp:22:
[1m/host/spi-builder-workspace/.build/checkouts/mlx-swift/Source/Cmlx/metal-cpp/Metal/MTLPrivate.hpp:27:10: [0m[0;1;31mfatal error: [0m[1m'objc/runtime.h' file not found[0m
27 | #include <objc/runtime.h>[0m
| [0;1;32m ^~~~~~~~~~~~~~~~
[0m1 error generated.
error: CompileC /host/spi-builder-workspace/.build/out/Intermediates.noindex/mlx-swift.build/Debug-webassembly-wasm32/Cmlx-t.build/Objects-normal/wasm32/utils-f4de9c7612a3482112314170721f5769de678168aef9c1aec5249fdff71318ea.o /host/spi-builder-workspace/.build/checkouts/mlx-swift/Source/Cmlx/mlx/mlx/backend/metal/utils.cpp normal wasm32 c++ com.apple.compilers.llvm.clang.1_0.compiler failed with a nonzero exit code. Command line: cd /host
Using response file: /host/spi-builder-workspace/.build/out/Intermediates.noindex/mlx-swift.build/Debug-webassembly-wasm32/Cmlx-t.build/Objects-normal/wasm32/11b881b950eb02e21769317df93e9b41d1d7f0348e4e0901ae810dce93ca1a57-common-args.resp
/usr/bin/clang -x c++ -target wasm32-unknown-wasip1 -fmessage-length\=0 -fdiagnostics-show-note-include-stack -fmacro-backtrace-limit\=0 -fcolor-diagnostics -Wno-trigraphs -Wno-missing-field-initializers -Wno-missing-prototypes -Wno-return-type -Wno-non-virtual-dtor -Wno-overloaded-virtual -Wno-exit-time-destructors -Wno-missing-braces -Wparentheses -Wswitch -Wno-unused-function -Wno-unused-label -Wno-unused-parameter -Wno-unused-variable -Wunused-value -Wno-empty-body -Wno-uninitialized -Wno-unknown-pragmas -w -Wno-shadow -Wno-four-char-constants -Wno-conversion -Wno-constant-conversion -Wno-int-conversion -Wno-bool-conversion -Wno-enum-conversion -Wno-float-conversion -Wno-non-literal-null-conversion -Wno-objc-literal-conversion -Wno-shorten-64-to-32 -Wno-newline-eof -Wno-c++11-extensions -Wno-implicit-fallthrough -fstrict-aliasing -Wdeprecated-declarations -Winvalid-offsetof -Wno-sign-conversion -Wno-infinite-recursion -Wno-move -Wno-comma -Wno-block-capture-autoreleasing -Wno-strict-prototypes -Wno-range-loop-analysis -Wno-semicolon-before-method-body --sysroot /root/.swiftpm/swift-sdks/swift-6.4.x-DEVELOPMENT-SNAPSHOT-2026-09-04-a_wasm.artifactbundle/swift-6.4.x-DEVELOPMENT-SNAPSHOT-2026-09-04-a_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-f4de9c7612a3482112314170721f5769de678168aef9c1aec5249fdff71318ea.d --serialize-diagnostics /host/spi-builder-workspace/.build/out/Intermediates.noindex/mlx-swift.build/Debug-webassembly-wasm32/Cmlx-t.build/Objects-normal/wasm32/utils-f4de9c7612a3482112314170721f5769de678168aef9c1aec5249fdff71318ea.dia -c /host/spi-builder-workspace/.build/checkouts/mlx-swift/Source/Cmlx/mlx/mlx/backend/metal/utils.cpp -o /host/spi-builder-workspace/.build/out/Intermediates.noindex/mlx-swift.build/Debug-webassembly-wasm32/Cmlx-t.build/Objects-normal/wasm32/utils-f4de9c7612a3482112314170721f5769de678168aef9c1aec5249fdff71318ea.o
In file included from /host/spi-builder-workspace/.build/checkouts/mlx-swift/Source/Cmlx/mlx-c/mlx/c/version.cpp:4:
In file included from /host/spi-builder-workspace/.build/checkouts/mlx-swift/Source/Cmlx/mlx-c/mlx/c/private/mlx.h:4:
In file included from /host/spi-builder-workspace/.build/checkouts/mlx-swift/Source/Cmlx/mlx-c/mlx/c/private/array.h:10:
In file included from /host/spi-builder-workspace/.build/checkouts/mlx-swift/Source/Cmlx/mlx/mlx/mlx.h:14:
In file included from /host/spi-builder-workspace/.build/checkouts/mlx-swift/Source/Cmlx/mlx/mlx/export.h:66:
In file included from /host/spi-builder-workspace/.build/checkouts/mlx-swift/Source/Cmlx/mlx/mlx/export_impl.h:3:
In file included from /host/spi-builder-workspace/.build/checkouts/mlx-swift/Source/Cmlx/mlx/mlx/io/load.h:16:
[1m/host/spi-builder-workspace/.build/checkouts/mlx-swift/Source/Cmlx/mlx/mlx/threadpool.h:40:15: [0m[0;1;31merror: [0m[1mno template named 'future' in namespace 'std'[0m
40 | -> std::future<[0;34mtypename[0m std::invoke_result_t<F, Args...>>;[0m
| [0;1;32m ~~~~~^
[0m[1m/host/spi-builder-workspace/.build/checkouts/mlx-swift/Source/Cmlx/mlx/mlx/threadpool.h:48:20: [0m[0;1;31merror: [0m[1mno member named 'thread' in namespace 'std'[0m
48 | std::vector<std::thread> workers;[0m
| [0;1;32m ^~~~~~
[0m[1m/host/spi-builder-workspace/.build/checkouts/mlx-swift/Source/Cmlx/mlx/mlx/threadpool.h:50:8: [0m[0;1;31merror: [0m[1mno type named 'mutex' in namespace 'std'[0m
50 | std::mutex queue_mutex;[0m
| [0;1;32m ~~~~~^
[0m[1m/host/spi-builder-workspace/.build/checkouts/mlx-swift/Source/Cmlx/mlx/mlx/threadpool.h:51:8: [0m[0;1;31merror: [0m[1mno type named 'condition_variable' in namespace 'std'[0m
51 | std::condition_variable condition;[0m
| [0;1;32m ~~~~~^
[0m[1m/host/spi-builder-workspace/.build/checkouts/mlx-swift/Source/Cmlx/mlx/mlx/threadpool.h:61:13: [0m[0;1;31merror: [0m[1mno template named 'future' in namespace 'std'[0m
61 | -> std::future<[0;34mtypename[0m std::invoke_result_t<F, Args...>> {[0m
| [0;1;32m ~~~~~^
[0m[1m/host/spi-builder-workspace/.build/checkouts/mlx-swift/Source/Cmlx/mlx/mlx/threadpool.h:64:37: [0m[0;1;31merror: [0m[1mno member named 'packaged_task' in namespace 'std'[0m
64 | [0;34mauto[0m task = std::make_shared<std::packaged_task<return_type()>>([0m
| [0;1;32m ^~~~~~~~~~~~~
[0m[1m/host/spi-builder-workspace/.build/checkouts/mlx-swift/Source/Cmlx/mlx/mlx/threadpool.h:67:8: [0m[0;1;31merror: [0m[1mno member named 'future' in namespace 'std'[0m
67 | std::future<return_type> res = task->get_future();[0m
| [0;1;32m ^~~~~~
[0m[1m/host/spi-builder-workspace/.build/checkouts/mlx-swift/Source/Cmlx/mlx/mlx/threadpool.h:67:15: [0m[0;1;31merror: [0m[1munexpected type name 'return_type': expected expression[0m
67 | std::future<return_type> res = task->get_future();[0m
| [0;1;32m ^
[0m[1m/host/spi-builder-workspace/.build/checkouts/mlx-swift/Source/Cmlx/mlx/mlx/threadpool.h:67:28: [0m[0;1;31merror: [0m[1muse of undeclared identifier 'res'[0m
67 | std::future<return_type> res = task->get_future();[0m
| [0;1;32m ^~~
[0m[1m/host/spi-builder-workspace/.build/checkouts/mlx-swift/Source/Cmlx/mlx/mlx/threadpool.h:69:27: [0m[0;1;31merror: [0m[1mno member named 'mutex' in namespace 'std'[0m
69 | std::unique_lock<std::mutex> lock(queue_mutex);[0m
| [0;1;32m ^~~~~
[0m[1m/host/spi-builder-workspace/.build/checkouts/mlx-swift/Source/Cmlx/mlx/mlx/threadpool.h:79:10: [0m[0;1;31merror: [0m[1muse of undeclared identifier 'res'[0m
79 | [0;34mreturn[0m res;[0m
| [0;1;32m ^~~
[0m[1m/host/spi-builder-workspace/.build/checkouts/mlx-swift/Source/Cmlx/mlx/mlx/threadpool.h:100:27: [0m[0;1;31merror: [0m[1mno member named 'mutex' in namespace 'std'[0m
100 | std::unique_lock<std::mutex> lock(queue_mutex);[0m
| [0;1;32m ^~~~~
[0m[1m/host/spi-builder-workspace/.build/checkouts/mlx-swift/Source/Cmlx/mlx/mlx/threadpool.h:104:13: [0m[0;1;31merror: [0m[1mno type named 'thread' in namespace 'std'[0m
104 | [0;34mfor[0m (std::thread& worker : workers) {[0m
| [0;1;32m ~~~~~^
[0m[1m/host/spi-builder-workspace/.build/checkouts/mlx-swift/Source/Cmlx/mlx/mlx/threadpool.h:120:33: [0m[0;1;31merror: [0m[1mno member named 'mutex' in namespace 'std'[0m
120 | std::unique_lock<std::mutex> lock([0;34mthis[0m->queue_mutex);[0m
| [0;1;32m ^~~~~
[0m14 errors generated.
error: CompileC /host/spi-builder-workspace/.build/out/Intermediates.noindex/mlx-swift.build/Debug-webassembly-wasm32/Cmlx-t.build/Objects-normal/wasm32/version-573ae397ff6fe50f2e183546d211c1c69f77b94c0e1639448bb3f7601cfffa94.o /host/spi-builder-workspace/.build/checkouts/mlx-swift/Source/Cmlx/mlx-c/mlx/c/version.cpp normal wasm32 c++ com.apple.compilers.llvm.clang.1_0.compiler failed with a nonzero exit code. Command line: cd /host
Using response file: /host/spi-builder-workspace/.build/out/Intermediates.noindex/mlx-swift.build/Debug-webassembly-wasm32/Cmlx-t.build/Objects-normal/wasm32/11b881b950eb02e21769317df93e9b41d1d7f0348e4e0901ae810dce93ca1a57-common-args.resp
/usr/bin/clang -x c++ -target wasm32-unknown-wasip1 -fmessage-length\=0 -fdiagnostics-show-note-include-stack -fmacro-backtrace-limit\=0 -fcolor-diagnostics -Wno-trigraphs -Wno-missing-field-initializers -Wno-missing-prototypes -Wno-return-type -Wno-non-virtual-dtor -Wno-overloaded-virtual -Wno-exit-time-destructors -Wno-missing-braces -Wparentheses -Wswitch -Wno-unused-function -Wno-unused-label -Wno-unused-parameter -Wno-unused-variable -Wunused-value -Wno-empty-body -Wno-uninitialized -Wno-unknown-pragmas -w -Wno-shadow -Wno-four-char-constants -Wno-conversion -Wno-constant-conversion -Wno-int-conversion -Wno-bool-conversion -Wno-enum-conversion -Wno-float-conversion -Wno-non-literal-null-conversion -Wno-objc-literal-conversion -Wno-shorten-64-to-32 -Wno-newline-eof -Wno-c++11-extensions -Wno-implicit-fallthrough -fstrict-aliasing -Wdeprecated-declarations -Winvalid-offsetof -Wno-sign-conversion -Wno-infinite-recursion -Wno-move -Wno-comma -Wno-block-capture-autoreleasing -Wno-strict-prototypes -Wno-range-loop-analysis -Wno-semicolon-before-method-body --sysroot /root/.swiftpm/swift-sdks/swift-6.4.x-DEVELOPMENT-SNAPSHOT-2026-09-04-a_wasm.artifactbundle/swift-6.4.x-DEVELOPMENT-SNAPSHOT-2026-09-04-a_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/version-573ae397ff6fe50f2e183546d211c1c69f77b94c0e1639448bb3f7601cfffa94.d --serialize-diagnostics /host/spi-builder-workspace/.build/out/Intermediates.noindex/mlx-swift.build/Debug-webassembly-wasm32/Cmlx-t.build/Objects-normal/wasm32/version-573ae397ff6fe50f2e183546d211c1c69f77b94c0e1639448bb3f7601cfffa94.dia -c /host/spi-builder-workspace/.build/checkouts/mlx-swift/Source/Cmlx/mlx-c/mlx/c/version.cpp -o /host/spi-builder-workspace/.build/out/Intermediates.noindex/mlx-swift.build/Debug-webassembly-wasm32/Cmlx-t.build/Objects-normal/wasm32/version-573ae397ff6fe50f2e183546d211c1c69f77b94c0e1639448bb3f7601cfffa94.o
error: Build failed
BUILD FAILURE 6.4 wasm