Build Information
Failed to build mlx-libraries, reference main (ef1084), with Swift 6.4 for Wasm on 12 Nov 2026 20:15:47 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-54344845-0":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/saguaro1/spi-images:wasm-6.4-latest swift build --swift-sdk swift-6.4.0-RELEASE_wasm 2>&1Build Log
========================================
RunAll
========================================
Builder version: 5.1.4
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/ml-explore/mlx-swift-examples.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-examples
* branch main -> FETCH_HEAD
* [new branch] main -> origin/main
HEAD is now at ef1084d StableDiffusion: migrate from Hub (swift-transformers) to swift-huggingface (#494)
Cloned https://github.com/ml-explore/mlx-swift-examples.git
Revision (git rev-parse @):
ef1084dd5692611a8758b24b07efdad5404ac3ce
SPI manifest file found: $PWD/.spi.yml
SUCCESS checkout https://github.com/ml-explore/mlx-swift-examples.git at main
========================================
Build
========================================
Selected platform: wasm
Swift version: 6.4
Building package at path: $PWD
https://github.com/ml-explore/mlx-swift-examples.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-54344845-0":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/saguaro1/spi-images:wasm-6.4-latest swift build --swift-sdk swift-6.4.0-RELEASE_wasm 2>&1
wasm-6.4-latest: Pulling from saguaro1/spi-images
Digest: sha256:366b789e191e803aab570d7212596991386521d71ea439b0666be689b4886df3
Status: Image is up to date for registry.gitlab.com/saguaro1/spi-images:wasm-6.4-latest
Fetching https://github.com/1024jp/GzipSwift
Fetching https://github.com/ml-explore/mlx-swift
Fetching https://github.com/huggingface/swift-huggingface
[1/1770] Fetching gzipswift
[1771/4880] Fetching gzipswift, swift-huggingface
[4881/22623] Fetching gzipswift, swift-huggingface, mlx-swift
Fetched https://github.com/1024jp/GzipSwift (1.68s)
Fetched https://github.com/huggingface/swift-huggingface (1.68s)
Fetched https://github.com/ml-explore/mlx-swift (1.68s)
Computing version for https://github.com/1024jp/GzipSwift
Computed https://github.com/1024jp/GzipSwift at 6.0.1 (2.58s)
Computing version for https://github.com/ml-explore/mlx-swift
Computed https://github.com/ml-explore/mlx-swift at 0.31.6 (0.23s)
Fetching https://github.com/apple/swift-numerics
Fetching https://github.com/apple/swift-argument-parser
[1/19384] Fetching swift-argument-parser
Fetched https://github.com/apple/swift-argument-parser (0.82s)
[1/6849] Fetching swift-numerics
Fetched https://github.com/apple/swift-numerics (1.11s)
Computing version for https://github.com/apple/swift-numerics
Computed https://github.com/apple/swift-numerics at 1.1.1 (1.27s)
Computing version for https://github.com/huggingface/swift-huggingface
Computed https://github.com/huggingface/swift-huggingface at 0.13.0 (0.17s)
Fetching https://github.com/mattt/EventSource.git
[1/333] Fetching eventsource
Fetching https://github.com/apple/swift-crypto.git
Fetched https://github.com/mattt/EventSource.git (0.34s)
[1/18948] Fetching swift-crypto
Fetched https://github.com/apple/swift-crypto.git (1.35s)
Computing version for https://github.com/mattt/EventSource.git
Computed https://github.com/mattt/EventSource.git at 1.6.0 (1.83s)
Computing version for https://github.com/apple/swift-argument-parser
Computed https://github.com/apple/swift-argument-parser at 1.8.2 (0.15s)
Computing version for https://github.com/apple/swift-crypto.git
Computed https://github.com/apple/swift-crypto.git at 4.5.2 (0.95s)
Fetching https://github.com/apple/swift-asn1.git
[1/2067] Fetching swift-asn1
Fetched https://github.com/apple/swift-asn1.git (0.45s)
Computing version for https://github.com/apple/swift-asn1.git
Computed https://github.com/apple/swift-asn1.git at 1.7.4 (0.66s)
Creating working copy for https://github.com/mattt/EventSource.git
Working copy of https://github.com/mattt/EventSource.git resolved at 1.6.0
Creating working copy for https://github.com/apple/swift-crypto.git
Working copy of https://github.com/apple/swift-crypto.git resolved at 4.5.2
Creating working copy for https://github.com/apple/swift-numerics
Working copy of https://github.com/apple/swift-numerics resolved at 1.1.1
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.6
Creating working copy for https://github.com/huggingface/swift-huggingface
Working copy of https://github.com/huggingface/swift-huggingface resolved at 0.13.0
Creating working copy for https://github.com/apple/swift-asn1.git
Working copy of https://github.com/apple/swift-asn1.git resolved at 1.7.4
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-argument-parser
Working copy of https://github.com/apple/swift-argument-parser resolved at 1.8.2
Building for debugging...
[Computing dependencies]
[Pre-planning 1 / 894]
[Planning 501 / 894]
[Planning 892 / 894]
[Planning deferred tasks]
[Constructing 102 / 2569]
[Constructing 2423 / 2569]
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'
[135 / 995] CXKCP
[142 / 1019] CCryptoBoringSSLShims
[144 / 1019] RealModule
error: SwiftCompile normal wasm32 failed with a nonzero exit code. Command line: cd /host
/host/spi-builder-workspace/.build/checkouts/GzipSwift/Sources/Gzip/Data+Gzip.swift:34:12: [1;31merror: [1;39mno such module 'zlib'[0;0m
[0;36m32 |[0;0m import zlibLinux
[0;36m33 |[0;0m #else
[0;36m34 |[0;0m import zlib
[0;36m|[0;0m `- [1;31merror: [1;39mno such module 'zlib'[0;0m
[0;36m35 |[0;0m #endif
[0;36m36 |[0;0m
Failed frontend command:
/usr/bin/swift-frontend -frontend -emit-module -experimental-skip-non-inlinable-function-bodies-without-types /host/spi-builder-workspace/.build/checkouts/GzipSwift/Sources/Gzip/Data+Gzip.swift -target wasm32-unknown-wasip1 -disable-objc-interop -sdk /root/.swiftpm/swift-sdks/swift-6.4.0-RELEASE_wasm.artifactbundle/swift-6.4.0-RELEASE_wasm/wasm32-unknown-wasip1/WASI.sdk -sysroot /root/.swiftpm/swift-sdks/swift-6.4.0-RELEASE_wasm.artifactbundle/swift-6.4.0-RELEASE_wasm/wasm32-unknown-wasip1/WASI.sdk -I /host/spi-builder-workspace/.build/out/Products/Debug-webassembly-wasm32 -module-cache-path /host/spi-builder-workspace/.build/out/ModuleCache.noindex -color-diagnostics -Xcc -fcolor-diagnostics -enable-testing -g -debug-info-format\=dwarf -dwarf-version\=4 -suppress-warnings -swift-version 5 -Onone -D SWIFT_PACKAGE -D DEBUG -D SWIFT_MODULE_RESOURCE_BUNDLE_UNAVAILABLE -D Xcode -serialize-debugging-options -enable-experimental-feature DebugDescriptionMacro -empty-abi-descriptor -external-plugin-path /usr/lib/swift/host/plugins/testing\#/usr/bin/swift-plugin-server -validate-clang-modules-once -clang-build-session-file /host/spi-builder-workspace/.build/out/ModuleCache.noindex/Session.modulevalidation -Xcc -working-directory -Xcc /host -resource-dir /root/.swiftpm/swift-sdks/swift-6.4.0-RELEASE_wasm.artifactbundle/swift-6.4.0-RELEASE_wasm/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static -use-static-resource-dir -enable-anonymous-context-mangled-names -file-compilation-dir /host -Xcc -resource-dir -Xcc /root/.swiftpm/swift-sdks/swift-6.4.0-RELEASE_wasm.artifactbundle/swift-6.4.0-RELEASE_wasm/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/clang -Xcc -fmodule-map-file\=/host/spi-builder-workspace/.build/checkouts/GzipSwift/Sources/system-zlib/include/module.modulemap -Xcc -D_LIBCPP_HARDENING_MODE\=_LIBCPP_HARDENING_MODE_DEBUG -Xcc -fmodules-prune-interval\=86400 -Xcc -fmodules-prune-after\=345600 -Xcc -I/host/spi-builder-workspace/.build/checkouts/GzipSwift/Sources/system-zlib/include -Xcc -I/host/spi-builder-workspace/.build/out/Products/Debug-webassembly-wasm32/include -Xcc -I/host/spi-builder-workspace/.build/out/Intermediates.noindex/Gzip.build/Debug-webassembly-wasm32/Gzip-t.build/DerivedSources-normal/wasm32 -Xcc -I/host/spi-builder-workspace/.build/out/Intermediates.noindex/Gzip.build/Debug-webassembly-wasm32/Gzip-t.build/DerivedSources/wasm32 -Xcc -I/host/spi-builder-workspace/.build/out/Intermediates.noindex/Gzip.build/Debug-webassembly-wasm32/Gzip-t.build/DerivedSources -Xcc -DSWIFT_PACKAGE -Xcc -DDEBUG\=1 -no-auto-bridging-header-chaining -module-name Gzip -const-gather-protocols-file /host/spi-builder-workspace/.build/out/Intermediates.noindex/Gzip.build/Debug-webassembly-wasm32/Gzip-t.build/Objects-normal/wasm32/Gzip_const_extract_protocols.json -in-process-plugin-server-path /usr/lib/swift/host/libSwiftInProcPluginServer.so -plugin-path /usr/lib/swift/host/plugins -plugin-path /usr/local/lib/swift/host/plugins -emit-module-doc-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/Gzip.build/Debug-webassembly-wasm32/Gzip-t.build/Objects-normal/wasm32/Modules/Gzip.swiftdoc -emit-module-source-info-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/Gzip.build/Debug-webassembly-wasm32/Gzip-t.build/Objects-normal/wasm32/Modules/Gzip.swiftsourceinfo -emit-objc-header-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/Gzip.build/Debug-webassembly-wasm32/Gzip-t.build/Objects-normal/wasm32/Gzip-Swift.h -serialize-diagnostics-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/Gzip.build/Debug-webassembly-wasm32/Gzip-t.build/Objects-normal/wasm32/Gzip-primary-emit-module.dia -emit-dependencies-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/Gzip.build/Debug-webassembly-wasm32/Gzip-t.build/Objects-normal/wasm32/Gzip-primary-emit-module.d -parse-as-library -o /host/spi-builder-workspace/.build/out/Intermediates.noindex/Gzip.build/Debug-webassembly-wasm32/Gzip-t.build/Objects-normal/wasm32/Modules/Gzip.swiftmodule
error: Build failed
BUILD FAILURE 6.4 wasm