Build Information
Failed to build swift-transformers, reference 0.1.21 (c2f302
), with Swift 6.2 (beta) for Wasm on 24 Jun 2025 08:26:06 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4609320-3":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:wasm-6.2-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1
Build Log
========================================
RunAll
========================================
Builder version: 4.64.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/huggingface/swift-transformers.git
Reference: 0.1.21
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/huggingface/swift-transformers
* tag 0.1.21 -> FETCH_HEAD
HEAD is now at c2f302a Prefer `chat_template.jinja` (#205)
Cloned https://github.com/huggingface/swift-transformers.git
Revision (git rev-parse @):
c2f302a74cca59cbde683b1425ab43c05685515a
SPI manifest file found: $PWD/.spi.yml
SUCCESS checkout https://github.com/huggingface/swift-transformers.git at 0.1.21
========================================
Build
========================================
Selected platform: wasm
Swift version: 6.2
Building package at path: $PWD
https://github.com/huggingface/swift-transformers.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-3":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:wasm-6.2-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1
wasm-6.2-latest: Pulling from finestructure/spi-images
Digest: sha256:44384f43f933eaa0f42803e9ef7c3d8388c5841ccc831a15a5edf63d8c273423
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:wasm-6.2-latest
Fetching https://github.com/johnmai-dev/Jinja
Fetching https://github.com/apple/swift-argument-parser.git
[1/393] Fetching jinja
[394/15773] Fetching jinja, swift-argument-parser
Fetched https://github.com/johnmai-dev/Jinja from cache (0.91s)
Fetched https://github.com/apple/swift-argument-parser.git from cache (0.92s)
Computing version for https://github.com/apple/swift-argument-parser.git
Computed https://github.com/apple/swift-argument-parser.git at 1.4.0 (1.30s)
Computing version for https://github.com/johnmai-dev/Jinja
Computed https://github.com/johnmai-dev/Jinja at 1.1.2 (0.31s)
Fetching https://github.com/apple/swift-collections.git
[1/16640] Fetching swift-collections
Fetched https://github.com/apple/swift-collections.git from cache (1.02s)
Computing version for https://github.com/apple/swift-collections.git
Computed https://github.com/apple/swift-collections.git at 1.2.0 (1.73s)
Creating working copy for https://github.com/apple/swift-collections.git
Working copy of https://github.com/apple/swift-collections.git resolved at 1.2.0
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.4.0
Creating working copy for https://github.com/johnmai-dev/Jinja
Working copy of https://github.com/johnmai-dev/Jinja resolved at 1.1.2
[1/1] Compiling plugin GenerateManual
Building for debugging...
[1/32] Write sources
[1/32] Copying gpt2_tokenizer_config.json
[1/32] Copying t5_tokenizer_config.json
[1/32] Write sources
[15/32] Write swift-version-24593BA9C3E375BF.txt
[17/65] Compiling TensorUtils Math.swift
/host/spi-builder-workspace/Sources/TensorUtils/LogitsWarper/LogitsProcessor.swift:1:8: error: no such module 'Foundation'
1 | import Foundation
| `- error: no such module 'Foundation'
2 |
3 | public struct LogitsProcessor {
error: emit-module command failed with exit code 1 (use -v to see invocation)
[18/66] Emitting module Hub
/host/spi-builder-workspace/Sources/Hub/BinaryDistinct.swift:8:8: error: no such module 'Foundation'
6 | //
7 |
8 | import Foundation
| `- error: no such module 'Foundation'
9 |
10 | /// BinaryDistinctString helps to overcome limitations of both String and NSString types. Where the prior is performing unicode normalization and the following is not Sendable. For more reference [Modifying-and-Comparing-Strings](https://developer.apple.com/documentation/swift/string#Modifying-and-Comparing-Strings).
[19/66] Compiling InternalCollectionsUtilities _UnsafeBitSet+Index.swift
/host/spi-builder-workspace/Sources/TensorUtils/LogitsWarper/LogitsProcessor.swift:1:8: error: no such module 'Foundation'
1 | import Foundation
| `- error: no such module 'Foundation'
2 |
3 | public struct LogitsProcessor {
[20/66] Compiling InternalCollectionsUtilities _UnsafeBitSet+_Word.swift
/host/spi-builder-workspace/Sources/TensorUtils/LogitsWarper/LogitsProcessor.swift:1:8: error: no such module 'Foundation'
1 | import Foundation
| `- error: no such module 'Foundation'
2 |
3 | public struct LogitsProcessor {
[21/66] Compiling InternalCollectionsUtilities UnsafeBufferPointer+Extras.swift
[22/66] Compiling TensorUtils TopKLogitsWarper.swift
/host/spi-builder-workspace/Sources/TensorUtils/LogitsWarper/LogitsProcessor.swift:1:8: error: no such module 'Foundation'
1 | import Foundation
| `- error: no such module 'Foundation'
2 |
3 | public struct LogitsProcessor {
[25/67] Compiling InternalCollectionsUtilities FixedWidthInteger+roundUpToPowerOfTwo.swift
[26/67] Compiling InternalCollectionsUtilities Integer rank.swift
[27/67] Emitting module InternalCollectionsUtilities
[28/67] Compiling InternalCollectionsUtilities UInt+first and last set bit.swift
[29/67] Compiling InternalCollectionsUtilities UInt+reversed.swift
[30/67] Compiling Hub resource_bundle_accessor.swift
/host/spi-builder-workspace/Sources/Hub/BinaryDistinct.swift:8:8: error: no such module 'Foundation'
6 | //
7 |
8 | import Foundation
| `- error: no such module 'Foundation'
9 |
10 | /// BinaryDistinctString helps to overcome limitations of both String and NSString types. Where the prior is performing unicode normalization and the following is not Sendable. For more reference [Modifying-and-Comparing-Strings](https://developer.apple.com/documentation/swift/string#Modifying-and-Comparing-Strings).
error: emit-module command failed with exit code 1 (use -v to see invocation)
[31/67] Emitting module TensorUtils
/host/spi-builder-workspace/Sources/TensorUtils/LogitsWarper/LogitsProcessor.swift:1:8: error: no such module 'Foundation'
1 | import Foundation
| `- error: no such module 'Foundation'
2 |
3 | public struct LogitsProcessor {
/host/spi-builder-workspace/Sources/TensorUtils/LogitsWarper/LogitsProcessor.swift:1:8: error: no such module 'Foundation'
1 | import Foundation
| `- error: no such module 'Foundation'
2 |
3 | public struct LogitsProcessor {
/host/spi-builder-workspace/Sources/TensorUtils/LogitsWarper/LogitsProcessor.swift:1:8: error: no such module 'Foundation'
1 | import Foundation
| `- error: no such module 'Foundation'
2 |
3 | public struct LogitsProcessor {
[34/67] Compiling InternalCollectionsUtilities _UniqueCollection.swift
[35/67] Compiling InternalCollectionsUtilities Debugging.swift
[36/67] Compiling InternalCollectionsUtilities _UnsafeBitSet.swift
[37/67] Compiling InternalCollectionsUtilities _SortedCollection.swift
[38/67] Compiling InternalCollectionsUtilities Descriptions.swift
[39/67] Compiling InternalCollectionsUtilities RandomAccessCollection+Offsets.swift
[40/67] Compiling TensorUtils TopPLogitsWarper.swift
/host/spi-builder-workspace/Sources/TensorUtils/LogitsWarper/LogitsProcessor.swift:1:8: error: no such module 'Foundation'
1 | import Foundation
| `- error: no such module 'Foundation'
2 |
3 | public struct LogitsProcessor {
[41/67] Compiling TensorUtils MLMultiArray+Utils.swift
/host/spi-builder-workspace/Sources/TensorUtils/LogitsWarper/LogitsProcessor.swift:1:8: error: no such module 'Foundation'
1 | import Foundation
| `- error: no such module 'Foundation'
2 |
3 | public struct LogitsProcessor {
[42/67] Compiling TensorUtils MLShapedArray+Utils.swift
/host/spi-builder-workspace/Sources/TensorUtils/LogitsWarper/LogitsProcessor.swift:1:8: error: no such module 'Foundation'
1 | import Foundation
| `- error: no such module 'Foundation'
2 |
3 | public struct LogitsProcessor {
[43/67] Compiling Hub BinaryDistinct.swift
/host/spi-builder-workspace/Sources/Hub/BinaryDistinct.swift:8:8: error: no such module 'Foundation'
6 | //
7 |
8 | import Foundation
| `- error: no such module 'Foundation'
9 |
10 | /// BinaryDistinctString helps to overcome limitations of both String and NSString types. Where the prior is performing unicode normalization and the following is not Sendable. For more reference [Modifying-and-Comparing-Strings](https://developer.apple.com/documentation/swift/string#Modifying-and-Comparing-Strings).
[44/67] Compiling Hub Downloader.swift
/host/spi-builder-workspace/Sources/Hub/BinaryDistinct.swift:8:8: error: no such module 'Foundation'
6 | //
7 |
8 | import Foundation
| `- error: no such module 'Foundation'
9 |
10 | /// BinaryDistinctString helps to overcome limitations of both String and NSString types. Where the prior is performing unicode normalization and the following is not Sendable. For more reference [Modifying-and-Comparing-Strings](https://developer.apple.com/documentation/swift/string#Modifying-and-Comparing-Strings).
[45/67] Compiling Hub Config.swift
/host/spi-builder-workspace/Sources/Hub/BinaryDistinct.swift:8:8: error: no such module 'Foundation'
6 | //
7 |
8 | import Foundation
| `- error: no such module 'Foundation'
9 |
10 | /// BinaryDistinctString helps to overcome limitations of both String and NSString types. Where the prior is performing unicode normalization and the following is not Sendable. For more reference [Modifying-and-Comparing-Strings](https://developer.apple.com/documentation/swift/string#Modifying-and-Comparing-Strings).
[46/67] Compiling TensorUtils Weights.swift
/host/spi-builder-workspace/Sources/TensorUtils/LogitsWarper/LogitsProcessor.swift:1:8: error: no such module 'Foundation'
1 | import Foundation
| `- error: no such module 'Foundation'
2 |
3 | public struct LogitsProcessor {
[47/67] Compiling InternalCollectionsUtilities UnsafeMutableBufferPointer+Extras.swift
[49/68] Emitting module ArgumentParserToolInfo
[50/68] Compiling ArgumentParserToolInfo ToolInfo.swift
BUILD FAILURE 6.2 wasm