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-embeddings, reference 0.0.20 (d33723), with Swift 6.2 (beta) for Wasm on 23 Aug 2025 22:53:48 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4609320-1":/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/jkrukowski/swift-embeddings.git
Reference: 0.0.20
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/jkrukowski/swift-embeddings
 * tag               0.0.20     -> FETCH_HEAD
HEAD is now at d33723d added loading models with custom file names
Cloned https://github.com/jkrukowski/swift-embeddings.git
Revision (git rev-parse @):
d33723d31f3ae3dc6183d978ae884ee19ca7ee20
SUCCESS checkout https://github.com/jkrukowski/swift-embeddings.git at 0.0.20
========================================
Build
========================================
Selected platform:         wasm
Swift version:             6.2
Building package at path:  $PWD
https://github.com/jkrukowski/swift-embeddings.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-1":/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/jkrukowski/swift-safetensors.git
Fetching https://github.com/huggingface/swift-transformers.git
Fetching https://github.com/apple/swift-numerics.git
Fetching https://github.com/jkrukowski/swift-sentencepiece
Fetching https://github.com/tuist/Command.git
Fetching https://github.com/apple/swift-argument-parser.git
[1/3543] Fetching swift-transformers
[568/3633] Fetching swift-transformers, swift-sentencepiece
[649/3833] Fetching swift-transformers, swift-sentencepiece, swift-safetensors
[797/5808] Fetching swift-transformers, swift-sentencepiece, swift-safetensors, command
[1620/12150] Fetching swift-transformers, swift-sentencepiece, swift-safetensors, command, swift-numerics
[7282/27839] Fetching swift-transformers, swift-sentencepiece, swift-safetensors, command, swift-numerics, swift-argument-parser
[24972/27639] Fetching swift-transformers, swift-sentencepiece, command, swift-numerics, swift-argument-parser
Fetched https://github.com/jkrukowski/swift-safetensors.git from cache (0.71s)
Fetched https://github.com/tuist/Command.git from cache (0.97s)
Fetched https://github.com/apple/swift-numerics.git from cache (0.97s)
Fetched https://github.com/jkrukowski/swift-sentencepiece from cache (0.98s)
Fetched https://github.com/huggingface/swift-transformers.git from cache (0.98s)
Fetched https://github.com/apple/swift-argument-parser.git from cache (0.98s)
Computing version for https://github.com/tuist/Command.git
Computed https://github.com/tuist/Command.git at 0.13.0 (1.34s)
Fetching https://github.com/tuist/Path
Fetching https://github.com/apple/swift-log
Fetching https://github.com/Kolos65/Mockable
[1/369] Fetching path
[370/4266] Fetching path, swift-log
[2124/6093] Fetching path, swift-log, mockable
Fetched https://github.com/Kolos65/Mockable from cache (0.41s)
Fetched https://github.com/tuist/Path from cache (0.43s)
Fetched https://github.com/apple/swift-log from cache (0.44s)
Computing version for https://github.com/jkrukowski/swift-sentencepiece
Computed https://github.com/jkrukowski/swift-sentencepiece at 0.0.6 (0.79s)
Computing version for https://github.com/tuist/Path
Computed https://github.com/tuist/Path at 0.3.8 (2.34s)
Computing version for https://github.com/jkrukowski/swift-safetensors.git
Computed https://github.com/jkrukowski/swift-safetensors.git at 0.0.8 (0.65s)
Computing version for https://github.com/huggingface/swift-transformers.git
Computed https://github.com/huggingface/swift-transformers.git at 0.1.22 (0.76s)
Fetching https://github.com/johnmai-dev/Jinja
[1/516] Fetching jinja
Fetched https://github.com/johnmai-dev/Jinja from cache (0.36s)
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.04s)
Computing version for https://github.com/apple/swift-numerics.git
Computed https://github.com/apple/swift-numerics.git at 1.0.3 (0.74s)
Computing version for https://github.com/apple/swift-log
Computed https://github.com/apple/swift-log at 1.6.4 (0.72s)
Computing version for https://github.com/Kolos65/Mockable
Computed https://github.com/Kolos65/Mockable at 0.4.0 (0.68s)
Fetching https://github.com/pointfreeco/xctest-dynamic-overlay
Fetching https://github.com/swiftlang/swift-syntax.git
[1/5505] Fetching xctest-dynamic-overlay
[2754/77288] Fetching xctest-dynamic-overlay, swift-syntax
Fetched https://github.com/pointfreeco/xctest-dynamic-overlay from cache (0.94s)
[13639/71783] Fetching swift-syntax
Fetched https://github.com/swiftlang/swift-syntax.git from cache (7.25s)
Computing version for https://github.com/johnmai-dev/Jinja
Computed https://github.com/johnmai-dev/Jinja at 1.2.4 (7.57s)
Fetching https://github.com/apple/swift-collections.git
[1/17354] Fetching swift-collections
Fetched https://github.com/apple/swift-collections.git from cache (1.10s)
Computing version for https://github.com/apple/swift-collections.git
Computed https://github.com/apple/swift-collections.git at 1.2.1 (1.72s)
Computing version for https://github.com/pointfreeco/xctest-dynamic-overlay
Computed https://github.com/pointfreeco/xctest-dynamic-overlay at 1.6.1 (0.33s)
Computing version for https://github.com/swiftlang/swift-syntax.git
Computed https://github.com/swiftlang/swift-syntax.git at 601.0.1 (0.64s)
Creating working copy for https://github.com/apple/swift-numerics.git
Working copy of https://github.com/apple/swift-numerics.git resolved at 1.0.3
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/huggingface/swift-transformers.git
Working copy of https://github.com/huggingface/swift-transformers.git resolved at 0.1.22
Creating working copy for https://github.com/johnmai-dev/Jinja
Working copy of https://github.com/johnmai-dev/Jinja resolved at 1.2.4
Creating working copy for https://github.com/tuist/Command.git
Working copy of https://github.com/tuist/Command.git resolved at 0.13.0
Creating working copy for https://github.com/jkrukowski/swift-safetensors.git
Working copy of https://github.com/jkrukowski/swift-safetensors.git resolved at 0.0.8
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
Creating working copy for https://github.com/jkrukowski/swift-sentencepiece
Working copy of https://github.com/jkrukowski/swift-sentencepiece resolved at 0.0.6
Creating working copy for https://github.com/pointfreeco/xctest-dynamic-overlay
Working copy of https://github.com/pointfreeco/xctest-dynamic-overlay resolved at 1.6.1
Creating working copy for https://github.com/Kolos65/Mockable
Working copy of https://github.com/Kolos65/Mockable resolved at 0.4.0
Creating working copy for https://github.com/apple/swift-log
Working copy of https://github.com/apple/swift-log resolved at 1.6.4
Creating working copy for https://github.com/tuist/Path
Working copy of https://github.com/tuist/Path resolved at 0.3.8
Creating working copy for https://github.com/swiftlang/swift-syntax.git
Working copy of https://github.com/swiftlang/swift-syntax.git resolved at 601.0.1
Downloading binary artifact https://github.com/jkrukowski/swift-sentencepiece/releases/download/0.0.5/sentencepiece.xcframework.zip
[1369/40026617] Downloading https://github.com/jkrukowski/swift-sentencepiece/releases/download/0.0.5/sentencepiece.xcframework.zip
Downloaded https://github.com/jkrukowski/swift-sentencepiece/releases/download/0.0.5/sentencepiece.xcframework.zip (3.81s)
[1/1] Compiling plugin GenerateManual
Building for debugging...
[1/84] Write sources
[1/84] Copying gpt2_tokenizer_config.json
[1/84] Copying t5_tokenizer_config.json
[1/84] Write sources
[41/84] Compiling _SwiftSyntaxCShims dummy.c
[42/84] Compiling _NumericsShims _NumericsShims.c
[43/84] Write swift-version-24593BA9C3E375BF.txt
error: emit-module command failed with exit code 1 (use -v to see invocation)
[45/128] Emitting module SentencepieceTokenizer
/host/spi-builder-workspace/.build/checkouts/swift-sentencepiece/Sources/SentencepieceTokenizer/SentencepieceTokenizer.swift:1:8: error: no such module 'Sentencepiece'
 1 | import Sentencepiece
   |        `- error: no such module 'Sentencepiece'
 2 |
 3 | extension SentencepieceTokenizer {
[46/128] Compiling TensorUtils RepetitionPenaltyWarper.swift
/host/spi-builder-workspace/.build/checkouts/swift-transformers/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/128] Compiling TensorUtils TemperatureLogitsWarper.swift
/host/spi-builder-workspace/.build/checkouts/swift-transformers/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 {
[48/129] Compiling TensorUtils MLShapedArray+Utils.swift
/host/spi-builder-workspace/.build/checkouts/swift-transformers/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 {
[49/129] Emitting module SwiftSyntax601
[50/129] Compiling SwiftSyntax601 Empty.swift
[51/130] Compiling TensorUtils Weights.swift
/host/spi-builder-workspace/.build/checkouts/swift-transformers/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 {
[52/130] Emitting module SwiftSyntax510
[53/130] Compiling SwiftSyntax510 Empty.swift
[54/130] Compiling TensorUtils LogitsProcessor.swift
/host/spi-builder-workspace/.build/checkouts/swift-transformers/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 {
[55/130] Compiling TensorUtils LogitsWarper.swift
/host/spi-builder-workspace/.build/checkouts/swift-transformers/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)
[56/130] Emitting module TensorUtils
/host/spi-builder-workspace/.build/checkouts/swift-transformers/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 {
[57/130] Compiling RealModule Real.swift
[58/131] Emitting module RealModule
[62/132] Compiling TensorUtils TopPLogitsWarper.swift
/host/spi-builder-workspace/.build/checkouts/swift-transformers/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 {
[63/132] Compiling RealModule Float80+Real.swift
[64/132] Emitting module InternalCollectionsUtilities
[65/132] Compiling InternalCollectionsUtilities _UnsafeBitSet+Index.swift
[66/132] Compiling InternalCollectionsUtilities _UnsafeBitSet+_Word.swift
[67/132] Compiling InternalCollectionsUtilities _UnsafeBitSet.swift
[68/132] Compiling InternalCollectionsUtilities _SortedCollection.swift
[69/132] Compiling InternalCollectionsUtilities _UniqueCollection.swift
[70/132] Compiling InternalCollectionsUtilities Debugging.swift
[75/133] Compiling InternalCollectionsUtilities Descriptions.swift
[76/133] Compiling InternalCollectionsUtilities RandomAccessCollection+Offsets.swift
[77/133] Compiling InternalCollectionsUtilities UnsafeBufferPointer+Extras.swift
[80/133] Compiling TensorUtils MLMultiArray+Utils.swift
/host/spi-builder-workspace/.build/checkouts/swift-transformers/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 {
[81/133] Compiling TensorUtils TopKLogitsWarper.swift
/host/spi-builder-workspace/.build/checkouts/swift-transformers/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 {
[82/133] Compiling TensorUtils Math.swift
/host/spi-builder-workspace/.build/checkouts/swift-transformers/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 {
[83/133] Compiling SentencepieceTokenizer SentencepieceTokenizer.swift
/host/spi-builder-workspace/.build/checkouts/swift-sentencepiece/Sources/SentencepieceTokenizer/SentencepieceTokenizer.swift:1:8: error: no such module 'Sentencepiece'
 1 | import Sentencepiece
   |        `- error: no such module 'Sentencepiece'
 2 |
 3 | extension SentencepieceTokenizer {
[85/133] Compiling RealModule RealFunctions.swift
[86/133] Compiling RealModule Float16+Real.swift
[87/133] Emitting module SwiftSyntax600
[88/133] Compiling SwiftSyntax600 Empty.swift
[89/134] Compiling SwiftSyntax509 Empty.swift
[90/134] Emitting module SwiftSyntax509
[91/135] Compiling RealModule Float+Real.swift
[92/135] Compiling RealModule ElementaryFunctions.swift
BUILD FAILURE 6.2 wasm