The Swift Package Index logo.Swift Package Index

Has it really been five years since Swift Package Index launched? Read our anniversary blog post!

Build Information

Failed to build swift-transformers, reference 0.1.24 (f000aa), with Swift 6.2 (beta) for Wasm on 10 Sep 2025 15:46:53 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4609320-0":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" 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.67.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/huggingface/swift-transformers.git
Reference: 0.1.24
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.24     -> FETCH_HEAD
HEAD is now at f000aa7 upgraded Jinja to 1.3.0 (#226)
Cloned https://github.com/huggingface/swift-transformers.git
Revision (git rev-parse @):
f000aa7aec0e78acd0211685e4094e1fca84cd8b
SPI manifest file found: $PWD/.spi.yml
SUCCESS checkout https://github.com/huggingface/swift-transformers.git at 0.1.24
========================================
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-0":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" 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:3160178686d03086db4c1712d78c1980537bb37521128c64baade7f466b6b4aa
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:wasm-6.2-latest
Fetching https://github.com/apple/swift-argument-parser.git
Fetching https://github.com/johnmai-dev/Jinja
[1/572] Fetching jinja
[573/16486] Fetching jinja, swift-argument-parser
Fetched https://github.com/johnmai-dev/Jinja from cache (0.60s)
Fetched https://github.com/apple/swift-argument-parser.git from cache (0.61s)
Computing version for https://github.com/johnmai-dev/Jinja
Computed https://github.com/johnmai-dev/Jinja at 1.3.0 (0.92s)
Fetching https://github.com/apple/swift-collections.git
[1/17445] Fetching swift-collections
Fetched https://github.com/apple/swift-collections.git from cache (1.19s)
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.58s)
Computing version for https://github.com/apple/swift-collections.git
Computed https://github.com/apple/swift-collections.git at 1.2.1 (0.63s)
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.3.0
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.1
[1/1] Compiling plugin GenerateManual
Building for debugging...
[1/32] Copying gpt2_tokenizer_config.json
[1/32] Write sources
[1/32] Copying t5_tokenizer_config.json
[1/32] Write sources
[15/32] Write swift-version-24593BA9C3E375BF.txt
error: emit-module command failed with exit code 1 (use -v to see invocation)
[17/65] 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).
[18/65] 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).
[19/65] Compiling InternalCollectionsUtilities UnsafeBufferPointer+Extras.swift
[20/65] Compiling InternalCollectionsUtilities Descriptions.swift
[21/65] Compiling InternalCollectionsUtilities RandomAccessCollection+Offsets.swift
[22/65] Compiling InternalCollectionsUtilities _UniqueCollection.swift
[23/65] Compiling InternalCollectionsUtilities Debugging.swift
[24/65] Compiling InternalCollectionsUtilities _UnsafeBitSet.swift
[25/65] Compiling InternalCollectionsUtilities _SortedCollection.swift
[26/65] Compiling TensorUtils RepetitionPenaltyWarper.swift
[27/65] Compiling TensorUtils TemperatureLogitsWarper.swift
[28/65] Compiling InternalCollectionsUtilities _UnsafeBitSet+Index.swift
[29/65] Compiling InternalCollectionsUtilities _UnsafeBitSet+_Word.swift
[30/66] 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 {
[31/66] 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).
[32/66] 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 {
/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 {
[35/66] 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 {
[36/66] 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 {
[37/66] Compiling TensorUtils LogitsProcessor.swift
[38/66] Compiling TensorUtils LogitsWarper.swift
[39/66] Emitting module InternalCollectionsUtilities
/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 {
[42/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 {
error: emit-module command failed with exit code 1 (use -v to see invocation)
[43/66] 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 {
[44/67] Compiling InternalCollectionsUtilities UnsafeMutableBufferPointer+Extras.swift
[46/68] 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/68] 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).
[48/68] 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).
[49/68] Emitting module ArgumentParserToolInfo
[49/68] Wrapping AST for InternalCollectionsUtilities for debugging
BUILD FAILURE 6.2 wasm