Build Information
Failed to build SimilaritySearchKit with Swift 5.9 for Linux.
Build Command
bash -c docker run --rm -v "checkouts-4606859-1":/host -w "$workDir" registry.gitlab.com/finestructure/spi-images:basic-5.9-latest swift build --triple x86_64-unknown-linux-gnu 2>&1
Build Log
========================================
RunAll
========================================
Builder version: 4.40.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/ZachNagengast/similarity-search-kit.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/ZachNagengast/similarity-search-kit
* branch main -> FETCH_HEAD
* [new branch] main -> origin/main
HEAD is now at 9bec547 Formatting, and replace precondition with default value to prevent crashing
Updating files: 75% (82/109)
Updating files: 76% (83/109)
Updating files: 77% (84/109)
Updating files: 78% (86/109)
Updating files: 79% (87/109)
Updating files: 80% (88/109)
Updating files: 81% (89/109)
Updating files: 82% (90/109)
Updating files: 83% (91/109)
Updating files: 84% (92/109)
Updating files: 85% (93/109)
Updating files: 86% (94/109)
Updating files: 87% (95/109)
Updating files: 88% (96/109)
Updating files: 89% (98/109)
Updating files: 90% (99/109)
Updating files: 91% (100/109)
Updating files: 92% (101/109)
Updating files: 93% (102/109)
Updating files: 94% (103/109)
Updating files: 95% (104/109)
Updating files: 96% (105/109)
Updating files: 97% (106/109)
Updating files: 98% (107/109)
Updating files: 99% (108/109)
Updating files: 100% (109/109)
Updating files: 100% (109/109), done.
Cloned https://github.com/ZachNagengast/similarity-search-kit.git
Revision (git rev-parse @):
9bec54706c8124bb9b20a3a06d566066a9f55712
SUCCESS checkout https://github.com/ZachNagengast/similarity-search-kit.git at main
========================================
Build
========================================
Selected platform: linux
Swift version: 5.9
Building package at path: $workDir
https://github.com/ZachNagengast/similarity-search-kit.git
Running build ...
bash -c docker run --rm -v "checkouts-4606859-1":/host -w "$workDir" registry.gitlab.com/finestructure/spi-images:basic-5.9-latest swift build --triple x86_64-unknown-linux-gnu 2>&1
warning: 'spi-builder-workspace': found 5 file(s) which are unhandled; explicitly declare them as resources or exclude from the target
/host/spi-builder-workspace/Sources/SimilaritySearchKit/AddOns/Embeddings/MiniLMMultiQA/multi-qa-MiniLM-L6-cos-v1.mlpackage/Data/com.apple.CoreML/model.mlmodel
/host/spi-builder-workspace/Sources/SimilaritySearchKit/AddOns/Embeddings/MiniLMMultiQA/multi-qa-MiniLM-L6-cos-v1.mlpackage/Data/com.apple.CoreML/weights/weight.bin
/host/spi-builder-workspace/Sources/SimilaritySearchKit/AddOns/Embeddings/MiniLMMultiQA/multi-qa-MiniLM-L6-cos-v1.mlpackage/Manifest.json
/host/spi-builder-workspace/Sources/SimilaritySearchKit/AddOns/Embeddings/MiniLMMultiQA/multi-qa-MiniLM-L6-cos-v1.mlpackage/Data/com.apple.CoreML/Metadata.json
/host/spi-builder-workspace/Sources/SimilaritySearchKit/AddOns/Embeddings/MiniLMMultiQA/multi-qa-MiniLM-L6-cos-v1.mlpackage/Data/com.apple.CoreML/FeatureDescriptions.json
warning: 'spi-builder-workspace': found 5 file(s) which are unhandled; explicitly declare them as resources or exclude from the target
/host/spi-builder-workspace/Sources/SimilaritySearchKit/AddOns/Embeddings/MiniLMAll/all-MiniLM-L6-v2.mlpackage/Data/com.apple.CoreML/Metadata.json
/host/spi-builder-workspace/Sources/SimilaritySearchKit/AddOns/Embeddings/MiniLMAll/all-MiniLM-L6-v2.mlpackage/Data/com.apple.CoreML/FeatureDescriptions.json
/host/spi-builder-workspace/Sources/SimilaritySearchKit/AddOns/Embeddings/MiniLMAll/all-MiniLM-L6-v2.mlpackage/Data/com.apple.CoreML/model.mlmodel
/host/spi-builder-workspace/Sources/SimilaritySearchKit/AddOns/Embeddings/MiniLMAll/all-MiniLM-L6-v2.mlpackage/Data/com.apple.CoreML/weights/weight.bin
/host/spi-builder-workspace/Sources/SimilaritySearchKit/AddOns/Embeddings/MiniLMAll/all-MiniLM-L6-v2.mlpackage/Manifest.json
warning: 'spi-builder-workspace': found 5 file(s) which are unhandled; explicitly declare them as resources or exclude from the target
/host/spi-builder-workspace/Sources/SimilaritySearchKit/AddOns/Embeddings/Distilbert/msmarco_distilbert_base_tas_b_512_single_quantized.mlpackage/Data/com.apple.CoreML/Metadata.json
/host/spi-builder-workspace/Sources/SimilaritySearchKit/AddOns/Embeddings/Distilbert/msmarco_distilbert_base_tas_b_512_single_quantized.mlpackage/Manifest.json
/host/spi-builder-workspace/Sources/SimilaritySearchKit/AddOns/Embeddings/Distilbert/msmarco_distilbert_base_tas_b_512_single_quantized.mlpackage/Data/com.apple.CoreML/weights/weight.bin
/host/spi-builder-workspace/Sources/SimilaritySearchKit/AddOns/Embeddings/Distilbert/msmarco_distilbert_base_tas_b_512_single_quantized.mlpackage/Data/com.apple.CoreML/FeatureDescriptions.json
/host/spi-builder-workspace/Sources/SimilaritySearchKit/AddOns/Embeddings/Distilbert/msmarco_distilbert_base_tas_b_512_single_quantized.mlpackage/Data/com.apple.CoreML/model.mlmodel
Building for debugging...
[0/1] Copying bert_tokenizer_vocab.txt
error: emit-module command failed with exit code 1 (use -v to see invocation)
[2/18] Emitting module SimilaritySearchKit
/host/spi-builder-workspace/Sources/SimilaritySearchKit/Core/Embeddings/EmbeddingProtocols.swift:9:8: error: no such module 'CoreML'
import CoreML
^
[3/20] Compiling SimilaritySearchKit JsonStore.swift
/host/spi-builder-workspace/Sources/SimilaritySearchKit/Core/Embeddings/EmbeddingProtocols.swift:9:8: error: no such module 'CoreML'
import CoreML
^
[4/20] Compiling SimilaritySearchKit MLModelStore.swift
/host/spi-builder-workspace/Sources/SimilaritySearchKit/Core/Embeddings/EmbeddingProtocols.swift:9:8: error: no such module 'CoreML'
import CoreML
^
[5/20] Compiling SimilaritySearchKit VectorStoreProtocol.swift
/host/spi-builder-workspace/Sources/SimilaritySearchKit/Core/Embeddings/EmbeddingProtocols.swift:9:8: error: no such module 'CoreML'
import CoreML
^
[6/20] Compiling SimilaritySearchKit resource_bundle_accessor.swift
/host/spi-builder-workspace/Sources/SimilaritySearchKit/Core/Embeddings/EmbeddingProtocols.swift:9:8: error: no such module 'CoreML'
import CoreML
^
[7/20] Compiling SimilaritySearchKit RecursiveTokenSplitter.swift
/host/spi-builder-workspace/Sources/SimilaritySearchKit/Core/Embeddings/EmbeddingProtocols.swift:9:8: error: no such module 'CoreML'
import CoreML
^
[8/20] Compiling SimilaritySearchKit TokenSplitter.swift
/host/spi-builder-workspace/Sources/SimilaritySearchKit/Core/Embeddings/EmbeddingProtocols.swift:9:8: error: no such module 'CoreML'
import CoreML
^
[9/20] Compiling SimilaritySearchKit BertTokenizer.swift
/host/spi-builder-workspace/Sources/SimilaritySearchKit/Core/Embeddings/EmbeddingProtocols.swift:9:8: error: no such module 'CoreML'
import CoreML
^
[10/20] Compiling SimilaritySearchKit NativeTokenizer.swift
/host/spi-builder-workspace/Sources/SimilaritySearchKit/Core/Embeddings/EmbeddingProtocols.swift:9:8: error: no such module 'CoreML'
import CoreML
^
[11/20] Compiling SimilaritySearchKit CharacterSplitter.swift
/host/spi-builder-workspace/Sources/SimilaritySearchKit/Core/Embeddings/EmbeddingProtocols.swift:9:8: error: no such module 'CoreML'
import CoreML
^
[12/20] Compiling SimilaritySearchKit RecursiveCharacterSplitter.swift
/host/spi-builder-workspace/Sources/SimilaritySearchKit/Core/Embeddings/EmbeddingProtocols.swift:9:8: error: no such module 'CoreML'
import CoreML
^
[13/20] Compiling SimilaritySearchKit SimilarityIndex.swift
/host/spi-builder-workspace/Sources/SimilaritySearchKit/Core/Embeddings/EmbeddingProtocols.swift:9:8: error: no such module 'CoreML'
import CoreML
^
[14/20] Compiling SimilaritySearchKit BinaryStore.swift
/host/spi-builder-workspace/Sources/SimilaritySearchKit/Core/Embeddings/EmbeddingProtocols.swift:9:8: error: no such module 'CoreML'
import CoreML
^
[15/20] Compiling SimilaritySearchKit TopK.swift
/host/spi-builder-workspace/Sources/SimilaritySearchKit/Core/Embeddings/EmbeddingProtocols.swift:9:8: error: no such module 'CoreML'
import CoreML
^
[16/20] Compiling SimilaritySearchKit NativeContextualEmbeddings.swift
/host/spi-builder-workspace/Sources/SimilaritySearchKit/Core/Embeddings/EmbeddingProtocols.swift:9:8: error: no such module 'CoreML'
import CoreML
^
[17/20] Compiling SimilaritySearchKit NativeEmbeddings.swift
/host/spi-builder-workspace/Sources/SimilaritySearchKit/Core/Embeddings/EmbeddingProtocols.swift:9:8: error: no such module 'CoreML'
import CoreML
^
[18/20] Compiling SimilaritySearchKit EmbeddingProtocols.swift
/host/spi-builder-workspace/Sources/SimilaritySearchKit/Core/Embeddings/EmbeddingProtocols.swift:9:8: error: no such module 'CoreML'
import CoreML
^
[19/20] Compiling SimilaritySearchKit Files.swift
/host/spi-builder-workspace/Sources/SimilaritySearchKit/Core/Embeddings/EmbeddingProtocols.swift:9:8: error: no such module 'CoreML'
import CoreML
^
[20/20] Compiling SimilaritySearchKit DistanceMetrics.swift
/host/spi-builder-workspace/Sources/SimilaritySearchKit/Core/Embeddings/EmbeddingProtocols.swift:9:8: error: no such module 'CoreML'
import CoreML
^
error: fatalError
BUILD FAILURE 5.9 linux