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-faiss, reference main (2a4f50), with Swift 6.1 for Linux on 28 Apr 2025 08:20:30 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4606859-3":/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.61.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/jkrukowski/SwiftFaiss.git
Reference: main
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/SwiftFaiss
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at 2a4f50f updated readme
Cloned https://github.com/jkrukowski/SwiftFaiss.git
Revision (git rev-parse @):
2a4f50fe7995ba8746e74fa0c434e0636cf3520d
SPI manifest file found: $PWD/.spi.yml
SUCCESS checkout https://github.com/jkrukowski/SwiftFaiss.git at main
========================================
Build
========================================
Selected platform:         linux
Swift version:             6.1
Building package at path:  $PWD
https://github.com/jkrukowski/SwiftFaiss.git
https://github.com/jkrukowski/SwiftFaiss.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
  "dependencies" : [
    {
      "identity" : "faissmobile",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "0.0.1",
            "upper_bound" : "1.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/jkrukowski/FaissMobile"
    },
    {
      "identity" : "swift-argument-parser",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "1.3.0",
            "upper_bound" : "2.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/apple/swift-argument-parser"
    },
    {
      "identity" : "swiftformat",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "0.50.4",
            "upper_bound" : "1.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/nicklockwood/SwiftFormat"
    },
    {
      "identity" : "swift-log",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "1.5.3",
            "upper_bound" : "2.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/apple/swift-log"
    }
  ],
  "manifest_display_name" : "swift-faiss",
  "name" : "swift-faiss",
  "path" : "/host/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "macos",
      "version" : "14.0"
    },
    {
      "name" : "ios",
      "version" : "17.0"
    },
    {
      "name" : "tvos",
      "version" : "17.0"
    },
    {
      "name" : "watchos",
      "version" : "10.0"
    }
  ],
  "products" : [
    {
      "name" : "SwiftFaiss",
      "targets" : [
        "SwiftFaiss"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    },
    {
      "name" : "swift-faiss",
      "targets" : [
        "SwiftFaissCLI"
      ],
      "type" : {
        "executable" : null
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "SwiftFaissTests",
      "module_type" : "SwiftTarget",
      "name" : "SwiftFaissTests",
      "path" : "Sources/SwiftFaissTests",
      "sources" : [
        "AnyIndexTests.swift",
        "ClusteringTests.swift",
        "FlatIndexTests.swift",
        "IDMapTests.swift",
        "IVFFlatIndexTests.swift",
        "IVFScalarQuantizerIndexTests.swift",
        "IndexIOTests.swift",
        "LSHIndexTests.swift",
        "PreTransformIndexTests.swift",
        "RefineFlatIndexTests.swift",
        "ScalarQuantizerIndexTests.swift",
        "TestUtils.swift",
        "VectorTransformTests.swift"
      ],
      "target_dependencies" : [
        "SwiftFaiss"
      ],
      "type" : "test"
    },
    {
      "c99name" : "SwiftFaissCLI",
      "module_type" : "SwiftTarget",
      "name" : "SwiftFaissCLI",
      "path" : "Sources/SwiftFaissCLI",
      "product_dependencies" : [
        "ArgumentParser",
        "Logging",
        "SwiftFormat"
      ],
      "product_memberships" : [
        "swift-faiss"
      ],
      "resources" : [
        {
          "path" : "/host/spi-builder-workspace/Sources/SwiftFaissCLI/data/embeddings.txt",
          "rule" : {
            "copy" : {
            }
          }
        },
        {
          "path" : "/host/spi-builder-workspace/Sources/SwiftFaissCLI/data/sentences.txt",
          "rule" : {
            "copy" : {
            }
          }
        }
      ],
      "sources" : [
        "ClusteringExample.swift",
        "FlatIndexExample.swift",
        "IVFFlatIndexExample.swift",
        "Main.swift",
        "PQIndexExample.swift",
        "Utils.swift"
      ],
      "target_dependencies" : [
        "SwiftFaiss"
      ],
      "type" : "executable"
    },
    {
      "c99name" : "SwiftFaissC",
      "module_type" : "ClangTarget",
      "name" : "SwiftFaissC",
      "path" : "Sources/SwiftFaissC",
      "product_dependencies" : [
        "FAISS",
        "FAISS_C",
        "OpenMP"
      ],
      "product_memberships" : [
        "SwiftFaiss",
        "swift-faiss"
      ],
      "sources" : [
        "bridge.c"
      ],
      "type" : "library"
    },
    {
      "c99name" : "SwiftFaiss",
      "module_type" : "SwiftTarget",
      "name" : "SwiftFaiss",
      "path" : "Sources/SwiftFaiss",
      "product_dependencies" : [
        "SwiftFormat"
      ],
      "product_memberships" : [
        "SwiftFaiss",
        "swift-faiss"
      ],
      "sources" : [
        "Clustering/AnyClustering.swift",
        "Clustering/BaseClustering.swift",
        "Clustering/ClusteringParameters.swift",
        "IDMap.swift",
        "IDMap2.swift",
        "IDSelector.swift",
        "Index/AnyIndex.swift",
        "Index/BaseIndex.swift",
        "Index/FlatIndex.swift",
        "Index/IVFFlatIndex.swift",
        "Index/IVFIndex.swift",
        "Index/IVFScalarQuantizerIndex.swift",
        "Index/LSHIndex.swift",
        "Index/PreTransformIndex.swift",
        "Index/RefineFlatIndex.swift",
        "Index/ScalarQuantizerIndex.swift",
        "IndexError.swift",
        "IndexIO.swift",
        "IndexPointer.swift",
        "MetricType.swift",
        "QuantizerType.swift",
        "SearchRangeResult.swift",
        "SearchResult.swift",
        "VectorTransform/BaseLinearTransform.swift",
        "VectorTransform/BaseVectorTransform.swift",
        "VectorTransform/CenteringTransform.swift",
        "VectorTransform/ITQMatrixTransform.swift",
        "VectorTransform/ITQTransform.swift",
        "VectorTransform/NormalizationTransform.swift",
        "VectorTransform/OPQMatrixTransform.swift",
        "VectorTransform/PCAMatrixTransform.swift",
        "VectorTransform/RandomRotationMatrixTransform.swift",
        "VectorTransform/RemapDimensionsTransform.swift"
      ],
      "target_dependencies" : [
        "SwiftFaissC"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.9"
}
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-3":/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 -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures 2>&1
basic-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:3bdcac04179f4ed3e5b8e9dbd6e74bbf5ebc0f4fde48bbaad7d1e5c757e65bcb
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.1-latest
Fetching https://github.com/apple/swift-argument-parser
Fetching https://github.com/apple/swift-log
Fetching https://github.com/jkrukowski/FaissMobile
Fetching https://github.com/nicklockwood/SwiftFormat
[1/3836] Fetching swift-log
[3837/3842] Fetching swift-log, faissmobile
[3842/18792] Fetching swift-log, faissmobile, swift-argument-parser
[12513/65522] Fetching swift-log, faissmobile, swift-argument-parser, swiftformat
Fetched https://github.com/apple/swift-log from cache (0.82s)
[19628/61686] Fetching faissmobile, swift-argument-parser, swiftformat
Fetched https://github.com/jkrukowski/FaissMobile from cache (27.11s)
Fetched https://github.com/apple/swift-argument-parser from cache (27.12s)
Fetched https://github.com/nicklockwood/SwiftFormat from cache (27.85s)
Computing version for https://github.com/jkrukowski/FaissMobile
Computed https://github.com/jkrukowski/FaissMobile at 0.0.1 (28.36s)
Computing version for https://github.com/apple/swift-argument-parser
Computed https://github.com/apple/swift-argument-parser at 1.5.0 (0.58s)
Computing version for https://github.com/apple/swift-log
Computed https://github.com/apple/swift-log at 1.6.3 (0.53s)
Computing version for https://github.com/nicklockwood/SwiftFormat
Computed https://github.com/nicklockwood/SwiftFormat at 0.55.5 (2.28s)
Creating working copy for https://github.com/nicklockwood/SwiftFormat
Working copy of https://github.com/nicklockwood/SwiftFormat resolved at 0.55.5
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/jkrukowski/FaissMobile
Working copy of https://github.com/jkrukowski/FaissMobile resolved at 0.0.1
Creating working copy for https://github.com/apple/swift-argument-parser
Working copy of https://github.com/apple/swift-argument-parser resolved at 1.5.0
Downloading binary artifact https://github.com/DeveloperMindset-com/openmp-mobile/releases/download/v16.0.5/openmp.xcframework.zip
Downloading binary artifact https://github.com/DeveloperMindset-com/faiss-mobile/releases/download/v1.7.4/faiss_c.xcframework.zip
Downloading binary artifact https://github.com/DeveloperMindset-com/faiss-mobile/releases/download/v1.7.4/faiss.xcframework.zip
[1397/12549889] Downloading https://github.com/DeveloperMindset-com/faiss-mobile/releases/download/v1.7.4/faiss_c.xcframework.zip
[9824/182918512] Downloading https://github.com/DeveloperMindset-com/faiss-mobile/releases/download/v1.7.4/faiss_c.xcframework.zip, https://github.com/DeveloperMindset-com/faiss-mobile/releases/download/v1.7.4/faiss.xcframework.zip
[190783/201579463] Downloading https://github.com/DeveloperMindset-com/faiss-mobile/releases/download/v1.7.4/faiss_c.xcframework.zip, https://github.com/DeveloperMindset-com/faiss-mobile/releases/download/v1.7.4/faiss.xcframework.zip, https://github.com/DeveloperMindset-com/openmp-mobile/releases/download/v16.0.5/openmp.xcframework.zip
Downloaded https://github.com/DeveloperMindset-com/faiss-mobile/releases/download/v1.7.4/faiss_c.xcframework.zip (4.02s)
Downloaded https://github.com/DeveloperMindset-com/openmp-mobile/releases/download/v16.0.5/openmp.xcframework.zip (4.62s)
Downloaded https://github.com/DeveloperMindset-com/faiss-mobile/releases/download/v1.7.4/faiss.xcframework.zip (19.79s)
[1/1] Compiling plugin SwiftFormatPlugin
[2/2] Compiling plugin GenerateManual
Building for debugging...
[2/20] Write sources
[8/20] Copying sentences.txt
[9/20] Copying embeddings.txt
In file included from /host/spi-builder-workspace/Sources/SwiftFaissC/bridge.c:1:
/host/spi-builder-workspace/Sources/SwiftFaissC/include/bridge.h:1:10: fatal error: 'AutoTune_c.h' file not found
    1 | #include "AutoTune_c.h"
      |          ^~~~~~~~~~~~~~
1 error generated.
[10/20] Compiling SwiftFaissC bridge.c
[10/20] Write swift-version-24593BA9C3E375BF.txt
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-3":/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:3bdcac04179f4ed3e5b8e9dbd6e74bbf5ebc0f4fde48bbaad7d1e5c757e65bcb
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 SwiftFormatPlugin
[2/2] Compiling plugin GenerateManual
Building for debugging...
In file included from /host/spi-builder-workspace/Sources/SwiftFaissC/bridge.c:1:
/host/spi-builder-workspace/Sources/SwiftFaissC/include/bridge.h:1:10: fatal error: 'AutoTune_c.h' file not found
    1 | #include "AutoTune_c.h"
      |          ^~~~~~~~~~~~~~
1 error generated.
[2/12] Compiling SwiftFaissC bridge.c
[2/12] Write swift-version-24593BA9C3E375BF.txt
BUILD FAILURE 6.1 linux