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.19 (fb9f15), with Swift 6.1 for Linux on 11 Jun 2025 12:55:22 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4609320-0":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.1-latest swift build --triple x86_64-unknown-linux-gnu 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.63.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/jkrukowski/swift-embeddings.git
Reference: 0.0.19
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.19     -> FETCH_HEAD
HEAD is now at fb9f15a added support for
Cloned https://github.com/jkrukowski/swift-embeddings.git
Revision (git rev-parse @):
fb9f15a631ec4bfac9e18857c19b5020302c8889
SUCCESS checkout https://github.com/jkrukowski/swift-embeddings.git at 0.0.19
========================================
Build
========================================
Selected platform:         linux
Swift version:             6.1
Building package at path:  $PWD
https://github.com/jkrukowski/swift-embeddings.git
https://github.com/jkrukowski/swift-embeddings.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
  "dependencies" : [
    {
      "identity" : "swift-numerics",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "1.0.2",
            "upper_bound" : "2.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/apple/swift-numerics.git"
    },
    {
      "identity" : "swift-transformers",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "0.1.21",
            "upper_bound" : "1.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/huggingface/swift-transformers.git"
    },
    {
      "identity" : "swift-safetensors",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "0.0.7",
            "upper_bound" : "1.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/jkrukowski/swift-safetensors.git"
    },
    {
      "identity" : "swift-argument-parser",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "1.4.0",
            "upper_bound" : "2.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/apple/swift-argument-parser.git"
    },
    {
      "identity" : "swift-sentencepiece",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "0.0.6",
            "upper_bound" : "1.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/jkrukowski/swift-sentencepiece"
    },
    {
      "identity" : "command",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "0.13.0",
            "upper_bound" : "1.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/tuist/Command.git"
    }
  ],
  "manifest_display_name" : "swift-embeddings",
  "name" : "swift-embeddings",
  "path" : "/host/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "macos",
      "version" : "14.0"
    },
    {
      "name" : "ios",
      "version" : "17.0"
    },
    {
      "name" : "tvos",
      "version" : "17.0"
    },
    {
      "name" : "visionos",
      "version" : "1.0"
    },
    {
      "name" : "watchos",
      "version" : "10.0"
    }
  ],
  "products" : [
    {
      "name" : "embeddings-cli",
      "targets" : [
        "EmbeddingsCLI"
      ],
      "type" : {
        "executable" : null
      }
    },
    {
      "name" : "Embeddings",
      "targets" : [
        "Embeddings"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    },
    {
      "name" : "MLTensorUtils",
      "targets" : [
        "MLTensorUtils"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "TestingUtils",
      "module_type" : "SwiftTarget",
      "name" : "TestingUtils",
      "path" : "Sources/TestingUtils",
      "product_dependencies" : [
        "Numerics"
      ],
      "sources" : [
        "TestingUtils.swift"
      ],
      "type" : "library"
    },
    {
      "c99name" : "MLTensorUtilsTests",
      "module_type" : "SwiftTarget",
      "name" : "MLTensorUtilsTests",
      "path" : "Tests/MLTensorUtilsTests",
      "sources" : [
        "ActivationTests.swift",
        "FunctionTests.swift",
        "LayerTests.swift"
      ],
      "target_dependencies" : [
        "MLTensorUtils",
        "TestingUtils"
      ],
      "type" : "test"
    },
    {
      "c99name" : "MLTensorUtils",
      "module_type" : "SwiftTarget",
      "name" : "MLTensorUtils",
      "path" : "Sources/MLTensorUtils",
      "product_memberships" : [
        "embeddings-cli",
        "Embeddings",
        "MLTensorUtils"
      ],
      "sources" : [
        "Activations.swift",
        "Functions.swift",
        "Layers.swift"
      ],
      "type" : "library"
    },
    {
      "c99name" : "EmbeddingsTests",
      "module_type" : "SwiftTarget",
      "name" : "EmbeddingsTests",
      "path" : "Tests/EmbeddingsTests",
      "product_dependencies" : [
        "Safetensors"
      ],
      "resources" : [
        {
          "path" : "/host/spi-builder-workspace/Tests/EmbeddingsTests/Resources",
          "rule" : {
            "copy" : {
            }
          }
        }
      ],
      "sources" : [
        "BertTests.swift",
        "Model2VecTests.swift",
        "StaticEmbeddingsTests.swift",
        "TokenizerTests.swift",
        "UtilsTests.swift",
        "Word2VecTests.swift"
      ],
      "target_dependencies" : [
        "Embeddings",
        "MLTensorUtils",
        "TestingUtils"
      ],
      "type" : "test"
    },
    {
      "c99name" : "EmbeddingsCLI",
      "module_type" : "SwiftTarget",
      "name" : "EmbeddingsCLI",
      "path" : "Sources/EmbeddingsCLI",
      "product_dependencies" : [
        "Safetensors",
        "ArgumentParser"
      ],
      "product_memberships" : [
        "embeddings-cli"
      ],
      "sources" : [
        "Commands/BertCommand.swift",
        "Commands/ClipCommand.swift",
        "Commands/Model2VecCommand.swift",
        "Commands/RobertaCommand.swift",
        "Commands/StaticEmbeddingsCommad.swift",
        "Commands/Word2VecCommand.swift",
        "Commands/XLMRobertaCommand.swift",
        "EmbeddingsCLI.swift"
      ],
      "target_dependencies" : [
        "Embeddings",
        "MLTensorUtils"
      ],
      "type" : "executable"
    },
    {
      "c99name" : "Embeddings",
      "module_type" : "SwiftTarget",
      "name" : "Embeddings",
      "path" : "Sources/Embeddings",
      "product_dependencies" : [
        "Safetensors",
        "Transformers",
        "SentencepieceTokenizer"
      ],
      "product_memberships" : [
        "embeddings-cli",
        "Embeddings"
      ],
      "sources" : [
        "Bert/BertModel.swift",
        "Bert/BertUtils.swift",
        "Clip/ClipModel.swift",
        "Clip/ClipUtils.swift",
        "EmbeddingsUtils.swift",
        "Model2Vec/Model2VecModel.swift",
        "Model2Vec/Model2VecUtils.swift",
        "Roberta/RobertaModel.swift",
        "Roberta/RobertaUtils.swift",
        "StaticEmbeddings/StaticEmbeddingsModel.swift",
        "StaticEmbeddings/StaticEmbeddingsUtils.swift",
        "Tokenizer/ClipTokenizer.swift",
        "Tokenizer/TextTokenizer.swift",
        "Tokenizer/XLMRobetaTokenizer.swift",
        "Word2Vec/Word2VecModel.swift",
        "Word2Vec/Word2VecUtils.swift",
        "XLMRoberta/XLMRobertaModel.swift",
        "XLMRoberta/XLMRobertaUtils.swift"
      ],
      "target_dependencies" : [
        "MLTensorUtils"
      ],
      "type" : "library"
    },
    {
      "c99name" : "AccuracyTests",
      "module_type" : "SwiftTarget",
      "name" : "AccuracyTests",
      "path" : "Tests/AccuracyTests",
      "product_dependencies" : [
        "Command"
      ],
      "resources" : [
        {
          "path" : "/host/spi-builder-workspace/Tests/AccuracyTests/Scripts",
          "rule" : {
            "copy" : {
            }
          }
        }
      ],
      "sources" : [
        "AccuracyTests.swift"
      ],
      "target_dependencies" : [
        "Embeddings",
        "TestingUtils"
      ],
      "type" : "test"
    }
  ],
  "tools_version" : "6.0"
}
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-0":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.1-latest swift build --triple x86_64-unknown-linux-gnu -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats 2>&1
basic-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:2b296aa7156f49efc57252cdf9ed4bb21d0f92fc98d88800e255491ba2db3116
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.1-latest
Fetching https://github.com/jkrukowski/swift-sentencepiece
Fetching https://github.com/apple/swift-argument-parser.git
Fetching https://github.com/tuist/Command.git
Fetching https://github.com/jkrukowski/swift-safetensors.git
Fetching https://github.com/huggingface/swift-transformers.git
Fetching https://github.com/apple/swift-numerics.git
[1/87] Fetching swift-sentencepiece
[79/2058] Fetching swift-sentencepiece, command
[375/7807] Fetching swift-sentencepiece, command, swift-numerics
[5672/11110] Fetching swift-sentencepiece, command, swift-numerics, swift-transformers
[8766/26490] Fetching swift-sentencepiece, command, swift-numerics, swift-transformers, swift-argument-parser
[24953/26690] Fetching swift-sentencepiece, command, swift-numerics, swift-transformers, swift-argument-parser, swift-safetensors
Fetched https://github.com/apple/swift-numerics.git from cache (0.65s)
Fetched https://github.com/jkrukowski/swift-safetensors.git from cache (0.79s)
Fetched https://github.com/tuist/Command.git from cache (0.79s)
Fetched https://github.com/jkrukowski/swift-sentencepiece from cache (0.79s)
Fetched https://github.com/huggingface/swift-transformers.git from cache (0.80s)
Fetched https://github.com/apple/swift-argument-parser.git from cache (0.80s)
Computing version for https://github.com/tuist/Command.git
Computed https://github.com/tuist/Command.git at 0.13.0 (1.25s)
Fetching https://github.com/apple/swift-log
Fetching https://github.com/tuist/Path
Fetching https://github.com/Kolos65/Mockable
[1/3836] Fetching swift-log
Fetched https://github.com/apple/swift-log from cache (0.35s)
[1/354] Fetching path
[355/2144] Fetching path, mockable
Fetched https://github.com/tuist/Path from cache (0.89s)
Fetched https://github.com/Kolos65/Mockable from cache (0.89s)
Computing version for https://github.com/jkrukowski/swift-sentencepiece
Computed https://github.com/jkrukowski/swift-sentencepiece at 0.0.6 (1.33s)
Computing version for https://github.com/huggingface/swift-transformers.git
Computed https://github.com/huggingface/swift-transformers.git at 0.1.21 (0.47s)
Fetching https://github.com/johnmai-dev/Jinja
[1/393] Fetching jinja
Fetched https://github.com/johnmai-dev/Jinja from cache (0.25s)
Computing version for https://github.com/apple/swift-argument-parser.git
Computed https://github.com/apple/swift-argument-parser.git at 1.4.0 (0.70s)
Computing version for https://github.com/tuist/Path
Computed https://github.com/tuist/Path at 0.3.8 (1.93s)
Computing version for https://github.com/jkrukowski/swift-safetensors.git
Computed https://github.com/jkrukowski/swift-safetensors.git at 0.0.8 (0.44s)
Computing version for https://github.com/apple/swift-numerics.git
Computed https://github.com/apple/swift-numerics.git at 1.0.3 (0.49s)
Computing version for https://github.com/apple/swift-log
Computed https://github.com/apple/swift-log at 1.6.3 (0.45s)
Computing version for https://github.com/johnmai-dev/Jinja
Computed https://github.com/johnmai-dev/Jinja at 1.1.2 (0.42s)
Fetching https://github.com/apple/swift-collections.git
[1/16591] Fetching swift-collections
Fetched https://github.com/apple/swift-collections.git from cache (1.97s)
Computing version for https://github.com/apple/swift-collections.git
Computed https://github.com/apple/swift-collections.git at 1.2.0 (2.60s)
Computing version for https://github.com/Kolos65/Mockable
Computed https://github.com/Kolos65/Mockable at 0.4.0 (0.60s)
Fetching https://github.com/swiftlang/swift-syntax.git
Fetching https://github.com/pointfreeco/xctest-dynamic-overlay
[1/5458] Fetching xctest-dynamic-overlay
[3167/76234] Fetching xctest-dynamic-overlay, swift-syntax
Fetched https://github.com/pointfreeco/xctest-dynamic-overlay from cache (0.99s)
[12740/70776] Fetching swift-syntax
Fetched https://github.com/swiftlang/swift-syntax.git from cache (4.38s)
Computing version for https://github.com/pointfreeco/xctest-dynamic-overlay
Computed https://github.com/pointfreeco/xctest-dynamic-overlay at 1.5.2 (5.75s)
Computing version for https://github.com/swiftlang/swift-syntax.git
Computed https://github.com/swiftlang/swift-syntax.git at 601.0.1 (0.72s)
Creating working copy for https://github.com/pointfreeco/xctest-dynamic-overlay
Working copy of https://github.com/pointfreeco/xctest-dynamic-overlay resolved at 1.5.2
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/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/apple/swift-log
Working copy of https://github.com/apple/swift-log resolved at 1.6.3
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/jkrukowski/swift-sentencepiece
Working copy of https://github.com/jkrukowski/swift-sentencepiece resolved at 0.0.6
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
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/johnmai-dev/Jinja
Working copy of https://github.com/johnmai-dev/Jinja resolved at 1.1.2
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/huggingface/swift-transformers.git
Working copy of https://github.com/huggingface/swift-transformers.git resolved at 0.1.21
Creating working copy for https://github.com/Kolos65/Mockable
Working copy of https://github.com/Kolos65/Mockable resolved at 0.4.0
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.64s)
[1/1] Compiling plugin GenerateManual
Building for debugging...
[1/88] Write sources
[7/88] Copying t5_tokenizer_config.json
[7/88] Write sources
[24/88] Copying gpt2_tokenizer_config.json
[27/88] Write sources
[43/88] Compiling _NumericsShims _NumericsShims.c
[43/88] Compiling _SwiftSyntaxCShims dummy.c
[45/88] Write swift-version-24593BA9C3E375BF.txt
[47/137] Emitting module SwiftSyntax601
[48/137] Emitting module SwiftSyntax509
[49/137] Emitting module SwiftSyntax510
error: emit-module command failed with exit code 1 (use -v to see invocation)
[50/137] Emitting module Hub
/host/spi-builder-workspace/.build/checkouts/swift-transformers/Sources/Hub/Downloader.swift:9:8: error: no such module 'Combine'
  7 | //
  8 |
  9 | import Combine
    |        `- error: no such module 'Combine'
 10 | import Foundation
 11 |
[51/137] Compiling RealModule AlgebraicField.swift
[52/137] Compiling RealModule ApproximateEquality.swift
[53/137] Compiling RealModule AugmentedArithmetic.swift
[54/137] Compiling RealModule Double+Real.swift
[55/138] Compiling InternalCollectionsUtilities _UniqueCollection.swift
[56/138] Compiling InternalCollectionsUtilities Debugging.swift
[57/138] Compiling InternalCollectionsUtilities _UnsafeBitSet.swift
[58/138] Compiling InternalCollectionsUtilities _SortedCollection.swift
[59/138] Emitting module InternalCollectionsUtilities
[60/138] Compiling InternalCollectionsUtilities FixedWidthInteger+roundUpToPowerOfTwo.swift
[61/138] Compiling InternalCollectionsUtilities Integer rank.swift
[62/138] Compiling InternalCollectionsUtilities Descriptions.swift
[63/138] Compiling InternalCollectionsUtilities RandomAccessCollection+Offsets.swift
[64/138] Compiling RealModule ElementaryFunctions.swift
[65/138] Compiling InternalCollectionsUtilities UnsafeBufferPointer+Extras.swift
[66/139] Compiling SwiftSyntax601 Empty.swift
[67/139] Compiling SwiftSyntax510 Empty.swift
[68/141] Emitting module RealModule
[73/141] Compiling RealModule Float16+Real.swift
[74/141] Compiling RealModule Float+Real.swift
[75/141] Compiling SwiftSyntax509 Empty.swift
[76/142] Emitting module SwiftSyntax600
[77/142] Compiling SwiftSyntax600 Empty.swift
[78/142] Compiling RealModule Float80+Real.swift
[79/142] Compiling RealModule Real.swift
[82/143] Compiling RealModule RealFunctions.swift
[86/144] Compiling InternalCollectionsUtilities UnsafeMutableBufferPointer+Extras.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[88/228] 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 {
[89/228] 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 {
[90/228] Emitting module Path
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-0":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.1-latest swift build --triple x86_64-unknown-linux-gnu 2>&1
basic-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:2b296aa7156f49efc57252cdf9ed4bb21d0f92fc98d88800e255491ba2db3116
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.1-latest
[0/1] Planning build
[1/1] Compiling plugin GenerateManual
Building for debugging...
[1/44] Write swift-version-24593BA9C3E375BF.txt
[3/83] Compiling SwiftSyntax510 Empty.swift
[4/85] Emitting module SwiftSyntax510
[6/86] Emitting module SwiftSyntax600
[7/86] Compiling SwiftSyntax600 Empty.swift
[8/86] Compiling TensorUtils MLShapedArray+Utils.swift
/host/spi-builder-workspace/.build/checkouts/swift-transformers/Sources/TensorUtils/LogitsWarper/TopKLogitsWarper.swift:1:8: error: no such module 'Accelerate'
 1 | import Accelerate
   |        `- error: no such module 'Accelerate'
 2 | import Foundation
 3 |
[10/88] Emitting module SwiftSyntax509
[11/88] Compiling SwiftSyntax509 Empty.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[12/89] 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 {
[13/89] 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 {
[14/89] Compiling SwiftSyntax601 Empty.swift
[15/89] Emitting module SwiftSyntax601
[16/89] Compiling RealModule Real.swift
[17/89] Compiling TensorUtils Weights.swift
/host/spi-builder-workspace/.build/checkouts/swift-transformers/Sources/TensorUtils/LogitsWarper/TopKLogitsWarper.swift:1:8: error: no such module 'Accelerate'
 1 | import Accelerate
   |        `- error: no such module 'Accelerate'
 2 | import Foundation
 3 |
[20/91] Compiling RealModule RealFunctions.swift
[21/91] Compiling TensorUtils LogitsProcessor.swift
[22/91] Compiling TensorUtils LogitsWarper.swift
[23/91] Compiling RealModule ElementaryFunctions.swift
[24/91] Compiling TensorUtils RepetitionPenaltyWarper.swift
[25/91] Compiling TensorUtils TemperatureLogitsWarper.swift
BUILD FAILURE 6.1 linux