Build Information
Failed to build mlx-swift-lm, reference main (7e2b71), with Swift 6.2 for Wasm on 20 Apr 2026 05:49:47 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4606859-0":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/swiftpackageindex/spi-images:wasm-6.2-latest swift build --swift-sdk swift-6.2-RELEASE_wasm 2>&1Build Log
========================================
RunAll
========================================
Builder version: 4.70.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/ml-explore/mlx-swift-lm.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/ml-explore/mlx-swift-lm
* branch main -> FETCH_HEAD
* [new branch] main -> origin/main
HEAD is now at 7e2b710 add fallback links to the readme -- docs are not yet built (#218)
Cloned https://github.com/ml-explore/mlx-swift-lm.git
Revision (git rev-parse @):
7e2b7107be52ffbfe488f3c7987d3f52c1858b4b
SPI manifest file found: $PWD/.spi.yml
SUCCESS checkout https://github.com/ml-explore/mlx-swift-lm.git at main
========================================
Build
========================================
Selected platform: wasm
Swift version: 6.2
Building package at path: $PWD
https://github.com/ml-explore/mlx-swift-lm.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-0":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/swiftpackageindex/spi-images:wasm-6.2-latest swift build --swift-sdk swift-6.2-RELEASE_wasm 2>&1
wasm-6.2-latest: Pulling from swiftpackageindex/spi-images
Digest: sha256:2a8b2d9e022a9894c61e0736af7cdaa1ee64c002dbb133a55c0d7e8980b3ad16
Status: Image is up to date for registry.gitlab.com/swiftpackageindex/spi-images:wasm-6.2-latest
Fetching https://github.com/ml-explore/mlx-swift
Fetching https://github.com/swiftlang/swift-syntax.git
[1/14220] Fetching mlx-swift
[855/89201] Fetching mlx-swift, swift-syntax
Fetched https://github.com/ml-explore/mlx-swift from cache (9.10s)
Fetched https://github.com/swiftlang/swift-syntax.git from cache (9.19s)
Computing version for https://github.com/ml-explore/mlx-swift
Computed https://github.com/ml-explore/mlx-swift at 0.31.3 (12.00s)
Fetching https://github.com/apple/swift-numerics
[1/6416] Fetching swift-numerics
Fetched https://github.com/apple/swift-numerics from cache (0.73s)
Computing version for https://github.com/swiftlang/swift-syntax.git
Computed https://github.com/swiftlang/swift-syntax.git at 603.0.0 (4.42s)
Computing version for https://github.com/apple/swift-numerics
Computed https://github.com/apple/swift-numerics at 1.1.1 (0.36s)
Creating working copy for https://github.com/ml-explore/mlx-swift
Working copy of https://github.com/ml-explore/mlx-swift resolved at 0.31.3
Creating working copy for https://github.com/swiftlang/swift-syntax.git
Working copy of https://github.com/swiftlang/swift-syntax.git resolved at 603.0.0
Creating working copy for https://github.com/apple/swift-numerics
Working copy of https://github.com/apple/swift-numerics resolved at 1.1.1
Building for debugging...
[0/204] Write sources
[28/204] Compiling gemv_masked.cpp
[29/204] Compiling gemm.cpp
[29/204] Write sources
[33/204] Compiling _SwiftSyntaxCShims PlatformMutex.c
[34/204] Compiling gemm_nax.cpp
[35/204] Write swift-version-24593BA9C3E375BF.txt
[36/204] Compiling _NumericsShims _NumericsShims.c
[36/204] Compiling version.cpp
/host/spi-builder-workspace/.build/checkouts/mlx-swift/Source/Cmlx/mlx/mlx/backend/no_gpu/allocator.cpp:53:8: error: no type named 'mutex' in namespace 'std'
53 | std::mutex mutex_;
| ~~~~~^
/host/spi-builder-workspace/.build/checkouts/mlx-swift/Source/Cmlx/mlx/mlx/backend/no_gpu/allocator.cpp:37:21: error: expected ';' after expression
37 | std::unique_lock lk(mutex_);
| ^
| ;
/host/spi-builder-workspace/.build/checkouts/mlx-swift/Source/Cmlx/mlx/mlx/backend/no_gpu/allocator.cpp:37:10: error: no member named 'unique_lock' in namespace 'std'; did you mean 'unique_copy'?
37 | std::unique_lock lk(mutex_);
| ~~~~~^~~~~~~~~~~
| unique_copy
/root/.swiftpm/swift-sdks/swift-6.2-RELEASE_wasm.artifactbundle/swift-6.2-RELEASE_wasm/wasm32-unknown-wasip1/WASI.sdk/include/c++/v1/__algorithm/unique_copy.h:102:1: note: 'unique_copy' declared here
102 | unique_copy(_InputIterator __first, _InputIterator __last, _OutputIterator __result, _BinaryPredicate __pred) {
| ^
/host/spi-builder-workspace/.build/checkouts/mlx-swift/Source/Cmlx/mlx/mlx/backend/no_gpu/allocator.cpp:44:21: error: expected ';' after expression
44 | std::unique_lock lk(mutex_);
| ^
| ;
/host/spi-builder-workspace/.build/checkouts/mlx-swift/Source/Cmlx/mlx/mlx/backend/no_gpu/allocator.cpp:44:10: error: no member named 'unique_lock' in namespace 'std'; did you mean 'unique_copy'?
44 | std::unique_lock lk(mutex_);
| ~~~~~^~~~~~~~~~~
| unique_copy
/root/.swiftpm/swift-sdks/swift-6.2-RELEASE_wasm.artifactbundle/swift-6.2-RELEASE_wasm/wasm32-unknown-wasip1/WASI.sdk/include/c++/v1/__algorithm/unique_copy.h:102:1: note: 'unique_copy' declared here
102 | unique_copy(_InputIterator __first, _InputIterator __last, _OutputIterator __result, _BinaryPredicate __pred) {
| ^
/host/spi-builder-workspace/.build/checkouts/mlx-swift/Source/Cmlx/mlx/mlx/backend/no_gpu/allocator.cpp:69:10: error: non-const lvalue reference to type 'Allocator' cannot bind to a value of unrelated type 'CommonAllocator'
69 | return common_allocator();
| ^~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/mlx-swift/Source/Cmlx/mlx/mlx/backend/no_gpu/allocator.cpp:84:19: error: expected ';' after expression
84 | std::unique_lock lk(mutex_);
| ^
| ;
/host/spi-builder-workspace/.build/checkouts/mlx-swift/Source/Cmlx/mlx/mlx/backend/no_gpu/allocator.cpp:84:8: error: no member named 'unique_lock' in namespace 'std'; did you mean 'unique_copy'?
84 | std::unique_lock lk(mutex_);
| ~~~~~^~~~~~~~~~~
| unique_copy
/root/.swiftpm/swift-sdks/swift-6.2-RELEASE_wasm.artifactbundle/swift-6.2-RELEASE_wasm/wasm32-unknown-wasip1/WASI.sdk/include/c++/v1/__algorithm/unique_copy.h:102:1: note: 'unique_copy' declared here
102 | unique_copy(_InputIterator __first, _InputIterator __last, _OutputIterator __result, _BinaryPredicate __pred) {
| ^
/host/spi-builder-workspace/.build/checkouts/mlx-swift/Source/Cmlx/mlx/mlx/backend/no_gpu/allocator.cpp:93:19: error: expected ';' after expression
93 | std::unique_lock lk(mutex_);
| ^
| ;
/host/spi-builder-workspace/.build/checkouts/mlx-swift/Source/Cmlx/mlx/mlx/backend/no_gpu/allocator.cpp:93:8: error: no member named 'unique_lock' in namespace 'std'; did you mean 'unique_copy'?
93 | std::unique_lock lk(mutex_);
| ~~~~~^~~~~~~~~~~
| unique_copy
/root/.swiftpm/swift-sdks/swift-6.2-RELEASE_wasm.artifactbundle/swift-6.2-RELEASE_wasm/wasm32-unknown-wasip1/WASI.sdk/include/c++/v1/__algorithm/unique_copy.h:102:1: note: 'unique_copy' declared here
102 | unique_copy(_InputIterator __first, _InputIterator __last, _OutputIterator __result, _BinaryPredicate __pred) {
| ^
10 errors generated.
[38/208] Compiling allocator.cpp
[38/208] Compiling utils.cpp
[38/208] Compiling no_metal.cpp
[38/208] Compiling scheduler.cpp
[38/208] Compiling transforms.cpp
[38/208] Compiling primitives.cpp
[39/208] Emitting module SwiftSyntax602
[40/208] Emitting module SwiftSyntax603
BUILD FAILURE 6.2 wasm