Build Information
Failed to build Cast, reference stage (9c5ac3), with Swift 6.0 for Linux on 1 May 2026 18:16:02 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:basic-6.0-latest swift build --triple x86_64-unknown-linux-gnu 2>&1Build Log
========================================
RunAll
========================================
Builder version: 4.70.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/jaylann/Cast.git
Reference: stage
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
* branch stage -> FETCH_HEAD
* [new branch] stage -> origin/stage
HEAD is now at 9c5ac3e feat(api): pluggable ModelSource — directory, bundle, endpoint (#101) (#113)
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 @):
9c5ac3e41d399651671f7b1f09611ef3e4e37f22
SUCCESS checkout https://github.com/jaylann/Cast.git at stage
========================================
Build
========================================
Selected platform: linux
Swift version: 6.0
Building package at path: $PWD
https://github.com/jaylann/Cast.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:basic-6.0-latest swift build --triple x86_64-unknown-linux-gnu 2>&1
basic-6.0-latest: Pulling from swiftpackageindex/spi-images
Digest: sha256:6ccbc5e7995f6c524368c1828f9c677d1727c16390a603fc668217aec5f5123a
Status: Image is up to date for registry.gitlab.com/swiftpackageindex/spi-images:basic-6.0-latest
Fetching https://github.com/petrukha-ivan/swift-json-schema.git
Fetching https://github.com/apple/swift-collections.git
Fetching https://github.com/swiftlang/swift-docc-plugin
Fetching https://github.com/swiftlang/swift-syntax.git
Fetching https://github.com/huggingface/swift-transformers.git
Fetching https://github.com/ml-explore/mlx-swift-lm.git
[1/132] Fetching swift-json-schema
[133/6437] Fetching swift-json-schema, swift-transformers
[260/8724] Fetching swift-json-schema, swift-transformers, swift-docc-plugin
[827/32618] Fetching swift-json-schema, swift-transformers, swift-docc-plugin, swift-collections
[4535/40425] Fetching swift-json-schema, swift-transformers, swift-docc-plugin, swift-collections, mlx-swift-lm
[8985/115463] Fetching swift-json-schema, swift-transformers, swift-docc-plugin, swift-collections, mlx-swift-lm, swift-syntax
Fetched https://github.com/huggingface/swift-transformers.git from cache (1.29s)
Fetching https://github.com/ml-explore/mlx-swift.git
[37287/109158] Fetching swift-json-schema, swift-docc-plugin, swift-collections, mlx-swift-lm, swift-syntax
Fetched https://github.com/ml-explore/mlx-swift-lm.git from cache (1.67s)
[36542/101351] Fetching swift-json-schema, swift-docc-plugin, swift-collections, swift-syntax
[42379/115593] Fetching swift-json-schema, swift-docc-plugin, swift-collections, swift-syntax, mlx-swift
Fetched https://github.com/swiftlang/swift-docc-plugin from cache (2.81s)
[74078/113306] Fetching swift-json-schema, swift-collections, swift-syntax, mlx-swift
Fetched https://github.com/petrukha-ivan/swift-json-schema.git from cache (2.82s)
[74982/113174] Fetching swift-collections, swift-syntax, mlx-swift
Fetched https://github.com/apple/swift-collections.git from cache (2.99s)
[58373/89280] Fetching swift-syntax, mlx-swift
Fetched https://github.com/ml-explore/mlx-swift.git from cache (2.77s)
[67535/75038] Fetching swift-syntax
Fetched https://github.com/swiftlang/swift-syntax.git from cache (9.77s)
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 (0.90s)
Computing version for https://github.com/swiftlang/swift-syntax.git
Computed https://github.com/swiftlang/swift-syntax.git at 600.0.1 (3.40s)
Computing version for https://github.com/apple/swift-collections.git
Computed https://github.com/apple/swift-collections.git at 1.4.1 (1.48s)
Computing version for https://github.com/ml-explore/mlx-swift-lm.git
Computed https://github.com/ml-explore/mlx-swift-lm.git at 2.30.6 (1.35s)
Computing version for https://github.com/ml-explore/mlx-swift.git
Computed https://github.com/ml-explore/mlx-swift.git at 0.30.6 (0.82s)
Fetching https://github.com/apple/swift-numerics
[1/6416] Fetching swift-numerics
Fetched https://github.com/apple/swift-numerics from cache (0.50s)
Computing version for https://github.com/huggingface/swift-transformers.git
Computed https://github.com/huggingface/swift-transformers.git at 1.1.9 (0.79s)
Fetching https://github.com/huggingface/swift-jinja.git
Fetching https://github.com/ibireme/yyjson.git
Fetching https://github.com/apple/swift-crypto.git
[1/1063] Fetching swift-jinja
[1064/5506] Fetching swift-jinja, yyjson
[2220/22963] Fetching swift-jinja, yyjson, swift-crypto
Fetched https://github.com/huggingface/swift-jinja.git from cache (1.06s)
[6189/21900] Fetching yyjson, swift-crypto
Fetched https://github.com/ibireme/yyjson.git from cache (2.45s)
Fetched https://github.com/apple/swift-crypto.git from cache (2.51s)
Computing version for https://github.com/ibireme/yyjson.git
Computed https://github.com/ibireme/yyjson.git at 0.12.0 (0.89s)
Computing version for https://github.com/apple/swift-numerics
Computed https://github.com/apple/swift-numerics at 1.1.1 (0.95s)
Computing version for https://github.com/swiftlang/swift-docc-plugin
Computed https://github.com/swiftlang/swift-docc-plugin at 1.5.0 (1.11s)
Fetching https://github.com/swiftlang/swift-docc-symbolkit
[1/3709] Fetching swift-docc-symbolkit
Fetched https://github.com/swiftlang/swift-docc-symbolkit from cache (0.62s)
Computing version for https://github.com/swiftlang/swift-docc-symbolkit
Computed https://github.com/swiftlang/swift-docc-symbolkit at 1.0.0 (1.15s)
Computing version for https://github.com/huggingface/swift-jinja.git
Computed https://github.com/huggingface/swift-jinja.git at 2.3.5 (1.15s)
Computing version for https://github.com/apple/swift-crypto.git
Computed https://github.com/apple/swift-crypto.git at 4.3.1 (5.83s)
Fetching https://github.com/apple/swift-asn1.git
[1/1813] Fetching swift-asn1
Fetched https://github.com/apple/swift-asn1.git from cache (0.80s)
Computing version for https://github.com/apple/swift-asn1.git
Computed https://github.com/apple/swift-asn1.git at 1.6.0 (0.90s)
Creating working copy for https://github.com/apple/swift-collections.git
Working copy of https://github.com/apple/swift-collections.git resolved at 1.4.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.6.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/apple/swift-crypto.git
Working copy of https://github.com/apple/swift-crypto.git resolved at 4.3.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.3.5
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/ibireme/yyjson.git
Working copy of https://github.com/ibireme/yyjson.git resolved at 0.12.0
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/ml-explore/mlx-swift.git
Working copy of https://github.com/ml-explore/mlx-swift.git resolved at 0.30.6
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.30.6
Creating working copy for https://github.com/huggingface/swift-transformers.git
Working copy of https://github.com/huggingface/swift-transformers.git resolved at 1.1.9
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/swiftlang/swift-syntax.git
Working copy of https://github.com/swiftlang/swift-syntax.git resolved at 600.0.1
warning: 'spi-builder-workspace': Invalid Exclude '/host/spi-builder-workspace/Sources/CMLXStructured/xgrammar/cpp/nanobind': File not found.
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
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
[2/2] Compiling plugin Swift-DocC Preview
Building for debugging...
In file included from /host/spi-builder-workspace/Sources/CMLXStructured/tokenizer_info.cpp:2:
/host/spi-builder-workspace/Sources/CMLXStructured/include/mlx_structured/tokenizer_info.h:11:11: error: unknown type name 'int32_t'; did you mean '__int32_t'?
11 | const int32_t* eos_tokens, size_t eos_tokens_size
| ^~~~~~~
| __int32_t
/usr/include/x86_64-linux-gnu/bits/types.h:41:20: note: '__int32_t' declared here
41 | typedef signed int __int32_t;
| ^
1 error generated.
[2/610] Compiling CMLXStructured tokenizer_info.cpp
[2/610] Compiling grammar_printer.cc
[2/610] Compiling grammar_matcher.cc
[2/610] Compiling grammar_functor.cc
[2/610] Compiling yyjson.c
[2/610] Compiling grammar_parser.cc
[2/610] Compiling json_schema_converter_ext.cc
[2/610] Compiling json_schema_converter.cc
BUILD FAILURE 6.0 linux