Build Information
Failed to build Cast, reference v0.1.0 (4243d1), with Swift 6.2 for Wasm on 27 Jun 2026 01:05:00 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-53886769-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.2-latest swift build --swift-sdk swift-6.2-RELEASE_wasm 2>&1Build Log
========================================
RunAll
========================================
Builder version: 0e64495ecc1688c3b3e031a5ef1348b5c05091ae
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/jaylann/Cast.git
Reference: v0.1.0
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/jaylann/Cast
* tag v0.1.0 -> FETCH_HEAD
HEAD is now at 4243d1b test(ci): skip MLX runtime tests on CI; pin README install to v0.1.0 (#76)
Submodule path 'Sources/CMLXStructured/xgrammar': checked out 'd68df627908376f3ed5e0a989395a03cc41894cd'
Submodule path 'Sources/CMLXStructured/xgrammar/3rdparty/cpptrace': checked out '6689d14c203eed390ae7bb64f56a983cfd7dff9c'
Submodule path 'Sources/CMLXStructured/xgrammar/3rdparty/dlpack': checked out 'bbd2f4d32427e548797929af08cfe2a9cbb3cf12'
Submodule path 'Sources/CMLXStructured/xgrammar/3rdparty/googletest': checked out 'df1544bcee0c7ce35cd5ea0b3eb8cc81855a4140'
Submodule 'Sources/CMLXStructured/xgrammar' (https://github.com/mlc-ai/xgrammar) registered for path 'Sources/CMLXStructured/xgrammar'
Cloning into '/host/spi-builder-workspace/Sources/CMLXStructured/xgrammar'...
Submodule '3rdparty/cpptrace' (https://github.com/jeremy-rifkin/cpptrace.git) registered for path 'Sources/CMLXStructured/xgrammar/3rdparty/cpptrace'
Submodule '3rdparty/dlpack' (https://github.com/dmlc/dlpack.git) registered for path 'Sources/CMLXStructured/xgrammar/3rdparty/dlpack'
Submodule '3rdparty/googletest' (https://github.com/google/googletest.git) registered for path 'Sources/CMLXStructured/xgrammar/3rdparty/googletest'
Cloning into '/host/spi-builder-workspace/Sources/CMLXStructured/xgrammar/3rdparty/cpptrace'...
Cloning into '/host/spi-builder-workspace/Sources/CMLXStructured/xgrammar/3rdparty/dlpack'...
Cloning into '/host/spi-builder-workspace/Sources/CMLXStructured/xgrammar/3rdparty/googletest'...
Cloned https://github.com/jaylann/Cast.git
Revision (git rev-parse @):
4243d1bdb37adc78f84f3157111fe6bfed7282c2
SUCCESS checkout https://github.com/jaylann/Cast.git at v0.1.0
========================================
Build
========================================
Selected platform: wasm
Swift version: 6.2
Building package at path: $PWD
https://github.com/jaylann/Cast.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-53886769-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.2-latest swift build --swift-sdk swift-6.2-RELEASE_wasm 2>&1
wasm-6.2-latest: Pulling from saguaro1/spi-images
Digest: sha256:dc8dffc38f1d92eca7ee5312617822470123661393ed20672e77964f9dcaaffb
Status: Image is up to date for registry.gitlab.com/saguaro1/spi-images:wasm-6.2-latest
Fetching https://github.com/petrukha-ivan/swift-json-schema.git
Fetching https://github.com/swiftlang/swift-docc-plugin
Fetching https://github.com/swiftlang/swift-syntax.git
Fetching https://github.com/apple/swift-collections.git
Fetching https://github.com/huggingface/swift-transformers.git
Fetching https://github.com/ml-explore/mlx-swift.git
[1/132] Fetching swift-json-schema
[133/2457] Fetching swift-json-schema, swift-docc-plugin
[366/9251] Fetching swift-json-schema, swift-docc-plugin, swift-transformers
Fetched https://github.com/swiftlang/swift-docc-plugin from cache (0.50s)
Fetching https://github.com/ml-explore/mlx-swift-lm.git
[1084/6926] Fetching swift-json-schema, swift-transformers
[2308/32165] Fetching swift-json-schema, swift-transformers, swift-collections
[8694/47208] Fetching swift-json-schema, swift-transformers, swift-collections, mlx-swift
[22197/122958] Fetching swift-json-schema, swift-transformers, swift-collections, mlx-swift, swift-syntax
Fetched https://github.com/petrukha-ivan/swift-json-schema.git from cache (1.08s)
Fetched https://github.com/huggingface/swift-transformers.git from cache (1.08s)
[67552/116032] Fetching swift-collections, mlx-swift, swift-syntax
Fetched https://github.com/ml-explore/mlx-swift.git from cache (1.08s)
[53267/100989] Fetching swift-collections, swift-syntax
[57813/112236] Fetching swift-collections, swift-syntax, mlx-swift-lm
Fetched https://github.com/ml-explore/mlx-swift-lm.git from cache (1.78s)
Fetched https://github.com/apple/swift-collections.git from cache (2.66s)
Fetched https://github.com/swiftlang/swift-syntax.git from cache (2.66s)
Computing version for https://github.com/petrukha-ivan/swift-json-schema.git
Computed https://github.com/petrukha-ivan/swift-json-schema.git at 2.0.2 (2.81s)
Computing version for https://github.com/swiftlang/swift-syntax.git
Computed https://github.com/swiftlang/swift-syntax.git at 600.0.1 (0.91s)
Computing version for https://github.com/ml-explore/mlx-swift-lm.git
Computed https://github.com/ml-explore/mlx-swift-lm.git at 2.31.3 (0.16s)
Computing version for https://github.com/huggingface/swift-transformers.git
Computed https://github.com/huggingface/swift-transformers.git at 1.2.1 (0.13s)
Fetching https://github.com/huggingface/swift-jinja.git
Fetching https://github.com/ibireme/yyjson.git
Fetching https://github.com/huggingface/swift-huggingface.git
Fetching https://github.com/apple/swift-crypto.git
[1/1136] Fetching swift-jinja
[1137/3557] Fetching swift-jinja, swift-huggingface
[1234/8155] Fetching swift-jinja, swift-huggingface, yyjson
[3469/25916] Fetching swift-jinja, swift-huggingface, yyjson, swift-crypto
Fetched https://github.com/huggingface/swift-jinja.git from cache (1.37s)
Fetched https://github.com/huggingface/swift-huggingface.git from cache (1.37s)
Fetched https://github.com/ibireme/yyjson.git from cache (1.37s)
Fetched https://github.com/apple/swift-crypto.git from cache (1.38s)
Computing version for https://github.com/ibireme/yyjson.git
Computed https://github.com/ibireme/yyjson.git at 0.12.0 (1.54s)
Computing version for https://github.com/ml-explore/mlx-swift.git
Computed https://github.com/ml-explore/mlx-swift.git at 0.31.4 (0.17s)
Fetching https://github.com/apple/swift-numerics
[1/6429] Fetching swift-numerics
Fetched https://github.com/apple/swift-numerics from cache (0.88s)
Computing version for https://github.com/huggingface/swift-huggingface.git
Computed https://github.com/huggingface/swift-huggingface.git at 0.9.0 (1.02s)
Fetching https://github.com/mattt/EventSource.git
[1/271] Fetching eventsource
Fetched https://github.com/mattt/EventSource.git from cache (0.39s)
Computing version for https://github.com/apple/swift-collections.git
Computed https://github.com/apple/swift-collections.git at 1.6.0 (0.61s)
Computing version for https://github.com/apple/swift-numerics
Computed https://github.com/apple/swift-numerics at 1.1.1 (0.12s)
Computing version for https://github.com/swiftlang/swift-docc-plugin
Computed https://github.com/swiftlang/swift-docc-plugin at 1.5.0 (0.15s)
Fetching https://github.com/swiftlang/swift-docc-symbolkit
[1/3749] Fetching swift-docc-symbolkit
Fetched https://github.com/swiftlang/swift-docc-symbolkit from cache (0.49s)
Computing version for https://github.com/swiftlang/swift-docc-symbolkit
Computed https://github.com/swiftlang/swift-docc-symbolkit at 1.0.0 (0.67s)
Computing version for https://github.com/mattt/EventSource.git
Computed https://github.com/mattt/EventSource.git at 1.4.1 (0.13s)
Fetching https://github.com/apple/swift-nio.git
[1/84154] Fetching swift-nio
Fetched https://github.com/apple/swift-nio.git from cache (2.78s)
Computing version for https://github.com/huggingface/swift-jinja.git
Computed https://github.com/huggingface/swift-jinja.git at 2.3.6 (2.91s)
Computing version for https://github.com/apple/swift-nio.git
Computed https://github.com/apple/swift-nio.git at 2.101.2 (0.32s)
Fetching https://github.com/apple/swift-system.git
Fetching https://github.com/apple/swift-atomics.git
[1/1868] Fetching swift-atomics
[1869/7803] Fetching swift-atomics, swift-system
Fetched https://github.com/apple/swift-atomics.git from cache (0.57s)
Fetched https://github.com/apple/swift-system.git from cache (0.57s)
Computing version for https://github.com/apple/swift-atomics.git
Computed https://github.com/apple/swift-atomics.git at 1.3.1 (0.71s)
Computing version for https://github.com/apple/swift-system.git
Computed https://github.com/apple/swift-system.git at 1.7.2 (0.16s)
Computing version for https://github.com/apple/swift-crypto.git
Computed https://github.com/apple/swift-crypto.git at 4.5.0 (1.13s)
Fetching https://github.com/apple/swift-asn1.git
[1/1905] Fetching swift-asn1
Fetched https://github.com/apple/swift-asn1.git from cache (0.75s)
Computing version for https://github.com/apple/swift-asn1.git
Computed https://github.com/apple/swift-asn1.git at 1.7.1 (0.92s)
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.0
Creating working copy for https://github.com/apple/swift-nio.git
Working copy of https://github.com/apple/swift-nio.git resolved at 2.101.2
Creating working copy for https://github.com/petrukha-ivan/swift-json-schema.git
Working copy of https://github.com/petrukha-ivan/swift-json-schema.git resolved at 2.0.2
Creating working copy for https://github.com/huggingface/swift-transformers.git
Working copy of https://github.com/huggingface/swift-transformers.git resolved at 1.2.1
Creating working copy for https://github.com/apple/swift-system.git
Working copy of https://github.com/apple/swift-system.git resolved at 1.7.2
Creating working copy for https://github.com/huggingface/swift-jinja.git
Working copy of https://github.com/huggingface/swift-jinja.git resolved at 2.3.6
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/mattt/EventSource.git
Working copy of https://github.com/mattt/EventSource.git resolved at 1.4.1
Creating working copy for https://github.com/swiftlang/swift-docc-symbolkit
Working copy of https://github.com/swiftlang/swift-docc-symbolkit resolved at 1.0.0
Creating working copy for https://github.com/swiftlang/swift-docc-plugin
Working copy of https://github.com/swiftlang/swift-docc-plugin resolved at 1.5.0
Creating working copy for https://github.com/ibireme/yyjson.git
Working copy of https://github.com/ibireme/yyjson.git resolved at 0.12.0
Creating working copy for https://github.com/ml-explore/mlx-swift-lm.git
Working copy of https://github.com/ml-explore/mlx-swift-lm.git resolved at 2.31.3
Creating working copy for https://github.com/apple/swift-atomics.git
Working copy of https://github.com/apple/swift-atomics.git resolved at 1.3.1
Creating working copy for https://github.com/ml-explore/mlx-swift.git
Working copy of https://github.com/ml-explore/mlx-swift.git resolved at 0.31.4
Creating working copy for https://github.com/apple/swift-collections.git
Working copy of https://github.com/apple/swift-collections.git resolved at 1.6.0
Creating working copy for https://github.com/swiftlang/swift-syntax.git
Working copy of https://github.com/swiftlang/swift-syntax.git resolved at 600.0.1
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.1
Creating working copy for https://github.com/huggingface/swift-huggingface.git
Working copy of https://github.com/huggingface/swift-huggingface.git resolved at 0.9.0
Downloading package prebuilt https://download.swift.org/prebuilts/swift-syntax/600.0.1/swift-6.2-RELEASE-MacroSupport-ubuntu_jammy_x86_64.tar.gz
Downloaded https://download.swift.org/prebuilts/swift-syntax/600.0.1/swift-6.2-RELEASE-MacroSupport-ubuntu_jammy_x86_64.tar.gz (0.18s)
warning: 'spi-builder-workspace': Invalid Exclude '/host/spi-builder-workspace/Sources/CMLXStructured/xgrammar/cpp/nanobind': File not found.
warning: 'spi-builder-workspace': dependency 'swift-transformers' is not used by any target
warning: 'spi-builder-workspace': found 1 file(s) which are unhandled; explicitly declare them as resources or exclude from the target
/host/spi-builder-workspace/Sources/CastMacros/CLAUDE.md
warning: 'spi-builder-workspace': found 1 file(s) which are unhandled; explicitly declare them as resources or exclude from the target
/host/spi-builder-workspace/Sources/MLXStructured/CLAUDE.md
[1/1] Compiling plugin Swift-DocC Preview
[2/2] Compiling plugin Swift-DocC
Building for debugging...
[2/1193] Write sources
[2/1193] Copying gpt2_tokenizer_config.json
[2/1193] Copying t5_tokenizer_config.json
[2/1193] Write sources
[30/1193] Compiling version.cpp
[30/1193] Compiling _NumericsShims _NumericsShims.c
[30/1193] Write sources
[37/1193] Compiling _AtomicsShims.c
[38/1193] Compiling yyjson.c
[39/1193] Compiling utils.cpp
[40/1193] Compiling scheduler.cpp
[41/1193] Compiling earley_parser.cc
[42/1193] Compiling random.cpp
[43/1193] Compiling no_gguf.cpp
[44/1193] Compiling transforms.cpp
[45/1193] Compiling linalg.cpp
[46/1193] Compiling primitives.cpp
[47/1193] Compiling graph_utils.cpp
[48/1193] Compiling load.cpp
[49/1193] Compiling fft.cpp
[50/1193] Compiling dtype.cpp
[51/1193] Compiling dtype_utils.cpp
[52/1193] Compiling safetensors.cpp
[53/1193] Compiling utils.cpp
[54/1193] Compiling einsum.cpp
[55/1193] Compiling no_ring.cpp
[56/1193] Compiling fast.cpp
[57/1193] Compiling ops.cpp
[58/1193] Compiling no_nccl.cpp
[59/1193] Compiling primitives.cpp
[60/1193] Compiling no_mpi.cpp
[61/1193] Compiling no_jaccl.cpp
[62/1193] Compiling device.cpp
[63/1193] Compiling distributed.cpp
[64/1193] Compiling ops.cpp
[65/1193] Compiling device_info.cpp
[66/1193] Compiling allocator.cpp
[67/1193] Compiling fence.cpp
[68/1193] Compiling eval.cpp
[69/1193] Compiling event.cpp
[70/1193] Compiling threefry.cpp
[71/1193] Compiling primitives.cpp
[72/1193] Compiling no_metal.cpp
[73/1193] Compiling no_cuda.cpp
In file included from /host/spi-builder-workspace/.build/checkouts/mlx-swift/Source/Cmlx/mlx/mlx/backend/cpu/svd.cpp:6:
/host/spi-builder-workspace/.build/checkouts/mlx-swift/Source/Cmlx/mlx/mlx/backend/cpu/lapack.h:17:10: fatal error: 'cblas.h' file not found
17 | #include <cblas.h>
| ^~~~~~~~~
1 error generated.
[74/1193] Compiling compile.cpp
[75/1193] Compiling svd.cpp
[75/1193] Compiling reduce.cpp
[75/1193] Compiling softmax.cpp
[75/1193] Compiling select.cpp
[75/1193] Compiling scan.cpp
[75/1193] Compiling unary.cpp
[75/1193] Compiling sort.cpp
[75/1193] Compiling export.cpp
BUILD FAILURE 6.2 wasm