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 OllamaKit, reference 6.0.0-rc.0 (fcf8b3), with Swift 6.2 (beta) for Wasm on 23 Jun 2025 06:21:27 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4606859-2":/host -w "$PWD" 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.64.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/kevinhermawan/OllamaKit.git
Reference: 6.0.0-rc.0
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/kevinhermawan/OllamaKit
 * tag               6.0.0-rc.0 -> FETCH_HEAD
HEAD is now at fcf8b3a refactor: removes `Combine` support (#50)
Cloned https://github.com/kevinhermawan/OllamaKit.git
Revision (git rev-parse @):
fcf8b3a19eef60a06e83b4b32f093aec025df977
SUCCESS checkout https://github.com/kevinhermawan/OllamaKit.git at 6.0.0-rc.0
========================================
Build
========================================
Selected platform:         wasm
Swift version:             6.2
Building package at path:  $PWD
https://github.com/kevinhermawan/OllamaKit.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-2":/host -w "$PWD" 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:44384f43f933eaa0f42803e9ef7c3d8388c5841ccc831a15a5edf63d8c273423
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:wasm-6.2-latest
Fetching https://github.com/apple/swift-docc-plugin.git
[1/2082] Fetching swift-docc-plugin
Fetched https://github.com/apple/swift-docc-plugin.git from cache (0.99s)
Computing version for https://github.com/apple/swift-docc-plugin.git
Computed https://github.com/apple/swift-docc-plugin.git at 1.4.4 (5.04s)
Fetching https://github.com/swiftlang/swift-docc-symbolkit
[1/3415] Fetching swift-docc-symbolkit
Fetched https://github.com/swiftlang/swift-docc-symbolkit from cache (0.76s)
Computing version for https://github.com/swiftlang/swift-docc-symbolkit
Computed https://github.com/swiftlang/swift-docc-symbolkit at 1.0.0 (1.43s)
Creating working copy for https://github.com/swiftlang/swift-docc-symbolkit
Working copy of https://github.com/swiftlang/swift-docc-symbolkit resolved at 1.0.0
Creating working copy for https://github.com/apple/swift-docc-plugin.git
Working copy of https://github.com/apple/swift-docc-plugin.git resolved at 1.4.4
[1/1] Compiling plugin Swift-DocC Preview
[2/2] Compiling plugin Swift-DocC
Building for debugging...
[2/4] Write sources
[3/4] Write swift-version-24593BA9C3E375BF.txt
error: emit-module command failed with exit code 1 (use -v to see invocation)
[5/33] Emitting module OllamaKit
/host/spi-builder-workspace/Sources/OllamaKit/OllamaKit+Chat.swift:8:8: error: no such module 'Foundation'
  6 | //
  7 |
  8 | import Foundation
    |        `- error: no such module 'Foundation'
  9 |
 10 | extension OllamaKit {
[6/36] Compiling OllamaKit OKPullModelResponse.swift
/host/spi-builder-workspace/Sources/OllamaKit/OllamaKit+Chat.swift:8:8: error: no such module 'Foundation'
  6 | //
  7 |
  8 | import Foundation
    |        `- error: no such module 'Foundation'
  9 |
 10 | extension OllamaKit {
[7/36] Compiling OllamaKit JSONDecoder+Default.swift
/host/spi-builder-workspace/Sources/OllamaKit/OllamaKit+Chat.swift:8:8: error: no such module 'Foundation'
  6 | //
  7 |
  8 | import Foundation
    |        `- error: no such module 'Foundation'
  9 |
 10 | extension OllamaKit {
[8/36] Compiling OllamaKit JSONEncoder+Default.swift
/host/spi-builder-workspace/Sources/OllamaKit/OllamaKit+Chat.swift:8:8: error: no such module 'Foundation'
  6 | //
  7 |
  8 | import Foundation
    |        `- error: no such module 'Foundation'
  9 |
 10 | extension OllamaKit {
[9/36] Compiling OllamaKit OKHTTPClient.swift
/host/spi-builder-workspace/Sources/OllamaKit/OllamaKit+Chat.swift:8:8: error: no such module 'Foundation'
  6 | //
  7 |
  8 | import Foundation
    |        `- error: no such module 'Foundation'
  9 |
 10 | extension OllamaKit {
[10/36] Compiling OllamaKit OKJSONValue.swift
/host/spi-builder-workspace/Sources/OllamaKit/OllamaKit+Chat.swift:8:8: error: no such module 'Foundation'
  6 | //
  7 |
  8 | import Foundation
    |        `- error: no such module 'Foundation'
  9 |
 10 | extension OllamaKit {
[11/36] Compiling OllamaKit OKRouter.swift
/host/spi-builder-workspace/Sources/OllamaKit/OllamaKit+Chat.swift:8:8: error: no such module 'Foundation'
  6 | //
  7 |
  8 | import Foundation
    |        `- error: no such module 'Foundation'
  9 |
 10 | extension OllamaKit {
[12/36] Compiling OllamaKit StreamingDelegate.swift
/host/spi-builder-workspace/Sources/OllamaKit/OllamaKit+Chat.swift:8:8: error: no such module 'Foundation'
  6 | //
  7 |
  8 | import Foundation
    |        `- error: no such module 'Foundation'
  9 |
 10 | extension OllamaKit {
[13/36] Compiling OllamaKit OKEmbeddingsResponse.swift
/host/spi-builder-workspace/Sources/OllamaKit/OllamaKit+Chat.swift:8:8: error: no such module 'Foundation'
  6 | //
  7 |
  8 | import Foundation
    |        `- error: no such module 'Foundation'
  9 |
 10 | extension OllamaKit {
[14/36] Compiling OllamaKit OKGenerateResponse.swift
/host/spi-builder-workspace/Sources/OllamaKit/OllamaKit+Chat.swift:8:8: error: no such module 'Foundation'
  6 | //
  7 |
  8 | import Foundation
    |        `- error: no such module 'Foundation'
  9 |
 10 | extension OllamaKit {
[15/36] Compiling OllamaKit OKModelInfoResponse.swift
/host/spi-builder-workspace/Sources/OllamaKit/OllamaKit+Chat.swift:8:8: error: no such module 'Foundation'
  6 | //
  7 |
  8 | import Foundation
    |        `- error: no such module 'Foundation'
  9 |
 10 | extension OllamaKit {
[16/36] Compiling OllamaKit OKModelResponse.swift
/host/spi-builder-workspace/Sources/OllamaKit/OllamaKit+Chat.swift:8:8: error: no such module 'Foundation'
  6 | //
  7 |
  8 | import Foundation
    |        `- error: no such module 'Foundation'
  9 |
 10 | extension OllamaKit {
[17/36] Compiling OllamaKit OKCopyModelRequestData.swift
/host/spi-builder-workspace/Sources/OllamaKit/OllamaKit+Chat.swift:8:8: error: no such module 'Foundation'
  6 | //
  7 |
  8 | import Foundation
    |        `- error: no such module 'Foundation'
  9 |
 10 | extension OllamaKit {
[18/36] Compiling OllamaKit OKDeleteModelRequestData.swift
/host/spi-builder-workspace/Sources/OllamaKit/OllamaKit+Chat.swift:8:8: error: no such module 'Foundation'
  6 | //
  7 |
  8 | import Foundation
    |        `- error: no such module 'Foundation'
  9 |
 10 | extension OllamaKit {
[19/36] Compiling OllamaKit OKEmbeddingsRequestData.swift
/host/spi-builder-workspace/Sources/OllamaKit/OllamaKit+Chat.swift:8:8: error: no such module 'Foundation'
  6 | //
  7 |
  8 | import Foundation
    |        `- error: no such module 'Foundation'
  9 |
 10 | extension OllamaKit {
[20/36] Compiling OllamaKit OKGenerateRequestData.swift
/host/spi-builder-workspace/Sources/OllamaKit/OllamaKit+Chat.swift:8:8: error: no such module 'Foundation'
  6 | //
  7 |
  8 | import Foundation
    |        `- error: no such module 'Foundation'
  9 |
 10 | extension OllamaKit {
[21/36] Compiling OllamaKit OllamaKit+Reachable.swift
/host/spi-builder-workspace/Sources/OllamaKit/OllamaKit+Chat.swift:8:8: error: no such module 'Foundation'
  6 | //
  7 |
  8 | import Foundation
    |        `- error: no such module 'Foundation'
  9 |
 10 | extension OllamaKit {
[22/36] Compiling OllamaKit OllamaKit.swift
/host/spi-builder-workspace/Sources/OllamaKit/OllamaKit+Chat.swift:8:8: error: no such module 'Foundation'
  6 | //
  7 |
  8 | import Foundation
    |        `- error: no such module 'Foundation'
  9 |
 10 | extension OllamaKit {
[23/36] Compiling OllamaKit OKCompletionOptions.swift
/host/spi-builder-workspace/Sources/OllamaKit/OllamaKit+Chat.swift:8:8: error: no such module 'Foundation'
  6 | //
  7 |
  8 | import Foundation
    |        `- error: no such module 'Foundation'
  9 |
 10 | extension OllamaKit {
[24/36] Compiling OllamaKit OKChatRequestData.swift
/host/spi-builder-workspace/Sources/OllamaKit/OllamaKit+Chat.swift:8:8: error: no such module 'Foundation'
  6 | //
  7 |
  8 | import Foundation
    |        `- error: no such module 'Foundation'
  9 |
 10 | extension OllamaKit {
[25/36] Compiling OllamaKit OKModelInfoRequestData.swift
/host/spi-builder-workspace/Sources/OllamaKit/OllamaKit+Chat.swift:8:8: error: no such module 'Foundation'
  6 | //
  7 |
  8 | import Foundation
    |        `- error: no such module 'Foundation'
  9 |
 10 | extension OllamaKit {
[26/36] Compiling OllamaKit OKPullModelRequestData.swift
/host/spi-builder-workspace/Sources/OllamaKit/OllamaKit+Chat.swift:8:8: error: no such module 'Foundation'
  6 | //
  7 |
  8 | import Foundation
    |        `- error: no such module 'Foundation'
  9 |
 10 | extension OllamaKit {
[27/36] Compiling OllamaKit OKCompletionResponse.swift
/host/spi-builder-workspace/Sources/OllamaKit/OllamaKit+Chat.swift:8:8: error: no such module 'Foundation'
  6 | //
  7 |
  8 | import Foundation
    |        `- error: no such module 'Foundation'
  9 |
 10 | extension OllamaKit {
[28/36] Compiling OllamaKit OKChatResponse.swift
/host/spi-builder-workspace/Sources/OllamaKit/OllamaKit+Chat.swift:8:8: error: no such module 'Foundation'
  6 | //
  7 |
  8 | import Foundation
    |        `- error: no such module 'Foundation'
  9 |
 10 | extension OllamaKit {
[29/36] Compiling OllamaKit OllamaKit+Generate.swift
/host/spi-builder-workspace/Sources/OllamaKit/OllamaKit+Chat.swift:8:8: error: no such module 'Foundation'
  6 | //
  7 |
  8 | import Foundation
    |        `- error: no such module 'Foundation'
  9 |
 10 | extension OllamaKit {
[30/36] Compiling OllamaKit OllamaKit+ModelInfo.swift
/host/spi-builder-workspace/Sources/OllamaKit/OllamaKit+Chat.swift:8:8: error: no such module 'Foundation'
  6 | //
  7 |
  8 | import Foundation
    |        `- error: no such module 'Foundation'
  9 |
 10 | extension OllamaKit {
[31/36] Compiling OllamaKit OllamaKit+Models.swift
/host/spi-builder-workspace/Sources/OllamaKit/OllamaKit+Chat.swift:8:8: error: no such module 'Foundation'
  6 | //
  7 |
  8 | import Foundation
    |        `- error: no such module 'Foundation'
  9 |
 10 | extension OllamaKit {
[32/36] Compiling OllamaKit OllamaKit+PullModel.swift
/host/spi-builder-workspace/Sources/OllamaKit/OllamaKit+Chat.swift:8:8: error: no such module 'Foundation'
  6 | //
  7 |
  8 | import Foundation
    |        `- error: no such module 'Foundation'
  9 |
 10 | extension OllamaKit {
[33/36] Compiling OllamaKit OllamaKit+Chat.swift
/host/spi-builder-workspace/Sources/OllamaKit/OllamaKit+Chat.swift:8:8: error: no such module 'Foundation'
  6 | //
  7 |
  8 | import Foundation
    |        `- error: no such module 'Foundation'
  9 |
 10 | extension OllamaKit {
[34/36] Compiling OllamaKit OllamaKit+CopyModel.swift
/host/spi-builder-workspace/Sources/OllamaKit/OllamaKit+Chat.swift:8:8: error: no such module 'Foundation'
  6 | //
  7 |
  8 | import Foundation
    |        `- error: no such module 'Foundation'
  9 |
 10 | extension OllamaKit {
[35/36] Compiling OllamaKit OllamaKit+DeleteModel.swift
/host/spi-builder-workspace/Sources/OllamaKit/OllamaKit+Chat.swift:8:8: error: no such module 'Foundation'
  6 | //
  7 |
  8 | import Foundation
    |        `- error: no such module 'Foundation'
  9 |
 10 | extension OllamaKit {
[36/36] Compiling OllamaKit OllamaKit+Embeddings.swift
/host/spi-builder-workspace/Sources/OllamaKit/OllamaKit+Chat.swift:8:8: error: no such module 'Foundation'
  6 | //
  7 |
  8 | import Foundation
    |        `- error: no such module 'Foundation'
  9 |
 10 | extension OllamaKit {
BUILD FAILURE 6.2 wasm