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 SwiftLlama, reference main (792181), with Swift 6.1 for Android on 26 Aug 2025 09:41:02 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4609320-0":/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:android-6.1-latest swift build --swift-sdk aarch64-unknown-linux-android24 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.67.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/ShenghaiWang/SwiftLlama.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/ShenghaiWang/SwiftLlama
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at 7921814 Merge pull request #22 from gpotari/main
Cloned https://github.com/ShenghaiWang/SwiftLlama.git
Revision (git rev-parse @):
792181492beff9edba52314a040032cefb19edd6
SUCCESS checkout https://github.com/ShenghaiWang/SwiftLlama.git at main
========================================
Build
========================================
Selected platform:         android
Swift version:             6.1
Building package at path:  $PWD
https://github.com/ShenghaiWang/SwiftLlama.git
https://github.com/ShenghaiWang/SwiftLlama.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
  "dependencies" : [
    {
      "identity" : "llama.cpp",
      "requirement" : {
        "revision" : [
          "b6d6c5289f1c9c677657c380591201ddb210b649"
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/ggerganov/llama.cpp.git"
    }
  ],
  "manifest_display_name" : "SwiftLlama",
  "name" : "SwiftLlama",
  "path" : "/host/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "macos",
      "version" : "15.0"
    },
    {
      "name" : "ios",
      "version" : "18.0"
    },
    {
      "name" : "watchos",
      "version" : "11.0"
    },
    {
      "name" : "tvos",
      "version" : "18.0"
    },
    {
      "name" : "visionos",
      "version" : "2.0"
    }
  ],
  "products" : [
    {
      "name" : "SwiftLlama",
      "targets" : [
        "SwiftLlama"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "SwiftLlamaTests",
      "module_type" : "SwiftTarget",
      "name" : "SwiftLlamaTests",
      "path" : "Tests/SwiftLlamaTests",
      "sources" : [
        "SwiftLlamaTests.swift"
      ],
      "target_dependencies" : [
        "SwiftLlama"
      ],
      "type" : "test"
    },
    {
      "c99name" : "SwiftLlama",
      "module_type" : "SwiftTarget",
      "name" : "SwiftLlama",
      "path" : "Sources/SwiftLlama",
      "product_dependencies" : [
        "llama"
      ],
      "product_memberships" : [
        "SwiftLlama"
      ],
      "sources" : [
        "LlamaModel.swift",
        "Models/Batch.swift",
        "Models/Chat.swift",
        "Models/Configuration.swift",
        "Models/Prompt.swift",
        "Models/Session.swift",
        "Models/StopToken.swift",
        "Models/SwiftLlamaError.swift",
        "Models/TypeAlias.swift",
        "Swiftllama.swift",
        "SwiftllamaActor.swift"
      ],
      "target_dependencies" : [
        "LlamaFramework"
      ],
      "type" : "library"
    },
    {
      "c99name" : "LlamaFramework",
      "module_type" : "BinaryTarget",
      "name" : "LlamaFramework",
      "path" : "remote/archive/llama-b5046-xcframework.zip",
      "product_memberships" : [
        "SwiftLlama"
      ],
      "sources" : [
      ],
      "type" : "binary"
    }
  ],
  "tools_version" : "6.0"
}
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-0":/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:android-6.1-latest swift build --swift-sdk aarch64-unknown-linux-android24 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats 2>&1
android-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:8106a39f56f5bb7aad9f0d9a94f1e5362f9a40b692f7bc17efe17b7b91dc65fc
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:android-6.1-latest
Fetching https://github.com/ggerganov/llama.cpp.git
[1/218368] Fetching llama.cpp
Fetched https://github.com/ggerganov/llama.cpp.git from cache (41.32s)
Creating working copy for https://github.com/ggerganov/llama.cpp.git
Working copy of https://github.com/ggerganov/llama.cpp.git resolved at b6d6c5289f1c9c677657c380591201ddb210b649
Downloading binary artifact https://github.com/ggml-org/llama.cpp/releases/download/b5046/llama-b5046-xcframework.zip
[1369/74944281] Downloading https://github.com/ggml-org/llama.cpp/releases/download/b5046/llama-b5046-xcframework.zip
Downloaded https://github.com/ggml-org/llama.cpp/releases/download/b5046/llama-b5046-xcframework.zip (6.86s)
Building for debugging...
[0/13] Compiling ggml-backend.cpp
[1/13] Compiling llama-sampling.cpp
[2/13] Compiling llama-vocab.cpp
[3/13] Compiling ggml-alloc.c
[4/13] Compiling ggml-aarch64.c
[5/13] Write sources
[6/13] Compiling llama-grammar.cpp
[7/13] Compiling ggml.c
[8/13] Write swift-version-24593BA9C3E375BF.txt
[9/13] Compiling unicode.cpp
[10/13] Compiling ggml-quants.c
[11/13] Compiling unicode-data.cpp
[12/13] Compiling llama.cpp
[14/24] Compiling SwiftLlama Prompt.swift
/host/spi-builder-workspace/Sources/SwiftLlama/Swiftllama.swift:3:8: error: no such module 'Combine'
  1 | import Foundation
  2 | import llama
  3 | import Combine
    |        `- error: no such module 'Combine'
  4 |
  5 | public class SwiftLlama {
[15/24] Compiling SwiftLlama Session.swift
/host/spi-builder-workspace/Sources/SwiftLlama/Swiftllama.swift:3:8: error: no such module 'Combine'
  1 | import Foundation
  2 | import llama
  3 | import Combine
    |        `- error: no such module 'Combine'
  4 |
  5 | public class SwiftLlama {
error: emit-module command failed with exit code 1 (use -v to see invocation)
[16/25] Emitting module SwiftLlama
<module-includes>:1:10: note: in file included from <module-includes>:1:
1 | #include "/host/spi-builder-workspace/.build/checkouts/llama.cpp/spm-headers/llama.h"
  |          `- note: in file included from <module-includes>:1:
2 |
/host/spi-builder-workspace/.build/checkouts/llama.cpp/spm-headers/llama.h:1218:1: warning: umbrella header for module 'llama' does not include header 'ggml-metal.h'
1216 |
1217 | #endif // LLAMA_H
1218 |
     | `- warning: umbrella header for module 'llama' does not include header 'ggml-metal.h'
/host/spi-builder-workspace/Sources/SwiftLlama/Swiftllama.swift:3:8: error: no such module 'Combine'
  1 | import Foundation
  2 | import llama
  3 | import Combine
    |        `- error: no such module 'Combine'
  4 |
  5 | public class SwiftLlama {
[17/25] Compiling SwiftLlama LlamaModel.swift
/host/spi-builder-workspace/Sources/SwiftLlama/Swiftllama.swift:3:8: error: no such module 'Combine'
  1 | import Foundation
  2 | import llama
  3 | import Combine
    |        `- error: no such module 'Combine'
  4 |
  5 | public class SwiftLlama {
[18/25] Compiling SwiftLlama Batch.swift
/host/spi-builder-workspace/Sources/SwiftLlama/Swiftllama.swift:3:8: error: no such module 'Combine'
  1 | import Foundation
  2 | import llama
  3 | import Combine
    |        `- error: no such module 'Combine'
  4 |
  5 | public class SwiftLlama {
[19/25] Compiling SwiftLlama Chat.swift
/host/spi-builder-workspace/Sources/SwiftLlama/Swiftllama.swift:3:8: error: no such module 'Combine'
  1 | import Foundation
  2 | import llama
  3 | import Combine
    |        `- error: no such module 'Combine'
  4 |
  5 | public class SwiftLlama {
[20/25] Compiling SwiftLlama Configuration.swift
/host/spi-builder-workspace/Sources/SwiftLlama/Swiftllama.swift:3:8: error: no such module 'Combine'
  1 | import Foundation
  2 | import llama
  3 | import Combine
    |        `- error: no such module 'Combine'
  4 |
  5 | public class SwiftLlama {
[21/25] Compiling SwiftLlama SwiftLlamaError.swift
/host/spi-builder-workspace/Sources/SwiftLlama/Swiftllama.swift:3:8: error: no such module 'Combine'
  1 | import Foundation
  2 | import llama
  3 | import Combine
    |        `- error: no such module 'Combine'
  4 |
  5 | public class SwiftLlama {
[22/25] Compiling SwiftLlama Swiftllama.swift
/host/spi-builder-workspace/Sources/SwiftLlama/Swiftllama.swift:3:8: error: no such module 'Combine'
  1 | import Foundation
  2 | import llama
  3 | import Combine
    |        `- error: no such module 'Combine'
  4 |
  5 | public class SwiftLlama {
[23/25] Compiling SwiftLlama StopToken.swift
/host/spi-builder-workspace/Sources/SwiftLlama/Swiftllama.swift:3:8: error: no such module 'Combine'
  1 | import Foundation
  2 | import llama
  3 | import Combine
    |        `- error: no such module 'Combine'
  4 |
  5 | public class SwiftLlama {
[24/25] Compiling SwiftLlama TypeAlias.swift
/host/spi-builder-workspace/Sources/SwiftLlama/Swiftllama.swift:3:8: error: no such module 'Combine'
  1 | import Foundation
  2 | import llama
  3 | import Combine
    |        `- error: no such module 'Combine'
  4 |
  5 | public class SwiftLlama {
[25/25] Compiling SwiftLlama SwiftllamaActor.swift
/host/spi-builder-workspace/Sources/SwiftLlama/Swiftllama.swift:3:8: error: no such module 'Combine'
  1 | import Foundation
  2 | import llama
  3 | import Combine
    |        `- error: no such module 'Combine'
  4 |
  5 | public class SwiftLlama {
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-0":/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:android-6.1-latest swift build --swift-sdk aarch64-unknown-linux-android24 2>&1
android-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:8106a39f56f5bb7aad9f0d9a94f1e5362f9a40b692f7bc17efe17b7b91dc65fc
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:android-6.1-latest
[0/1] Planning build
Building for debugging...
[0/1] Write swift-version-24593BA9C3E375BF.txt
[2/12] Compiling SwiftLlama SwiftLlamaError.swift
/host/spi-builder-workspace/Sources/SwiftLlama/Swiftllama.swift:3:8: error: no such module 'Combine'
  1 | import Foundation
  2 | import llama
  3 | import Combine
    |        `- error: no such module 'Combine'
  4 |
  5 | public class SwiftLlama {
[3/12] Compiling SwiftLlama TypeAlias.swift
/host/spi-builder-workspace/Sources/SwiftLlama/Swiftllama.swift:3:8: error: no such module 'Combine'
  1 | import Foundation
  2 | import llama
  3 | import Combine
    |        `- error: no such module 'Combine'
  4 |
  5 | public class SwiftLlama {
[4/13] Compiling SwiftLlama Swiftllama.swift
/host/spi-builder-workspace/Sources/SwiftLlama/Swiftllama.swift:3:8: error: no such module 'Combine'
  1 | import Foundation
  2 | import llama
  3 | import Combine
    |        `- error: no such module 'Combine'
  4 |
  5 | public class SwiftLlama {
[5/13] Compiling SwiftLlama StopToken.swift
/host/spi-builder-workspace/Sources/SwiftLlama/Swiftllama.swift:3:8: error: no such module 'Combine'
  1 | import Foundation
  2 | import llama
  3 | import Combine
    |        `- error: no such module 'Combine'
  4 |
  5 | public class SwiftLlama {
[6/13] Compiling SwiftLlama Prompt.swift
/host/spi-builder-workspace/Sources/SwiftLlama/Swiftllama.swift:3:8: error: no such module 'Combine'
  1 | import Foundation
  2 | import llama
  3 | import Combine
    |        `- error: no such module 'Combine'
  4 |
  5 | public class SwiftLlama {
[7/13] Compiling SwiftLlama Session.swift
/host/spi-builder-workspace/Sources/SwiftLlama/Swiftllama.swift:3:8: error: no such module 'Combine'
  1 | import Foundation
  2 | import llama
  3 | import Combine
    |        `- error: no such module 'Combine'
  4 |
  5 | public class SwiftLlama {
error: emit-module command failed with exit code 1 (use -v to see invocation)
[8/13] Emitting module SwiftLlama
/host/spi-builder-workspace/Sources/SwiftLlama/Swiftllama.swift:3:8: error: no such module 'Combine'
  1 | import Foundation
  2 | import llama
  3 | import Combine
    |        `- error: no such module 'Combine'
  4 |
  5 | public class SwiftLlama {
[9/13] Compiling SwiftLlama Chat.swift
/host/spi-builder-workspace/Sources/SwiftLlama/Swiftllama.swift:3:8: error: no such module 'Combine'
  1 | import Foundation
  2 | import llama
  3 | import Combine
    |        `- error: no such module 'Combine'
  4 |
  5 | public class SwiftLlama {
[10/13] Compiling SwiftLlama Configuration.swift
/host/spi-builder-workspace/Sources/SwiftLlama/Swiftllama.swift:3:8: error: no such module 'Combine'
  1 | import Foundation
  2 | import llama
  3 | import Combine
    |        `- error: no such module 'Combine'
  4 |
  5 | public class SwiftLlama {
[11/13] Compiling SwiftLlama LlamaModel.swift
/host/spi-builder-workspace/Sources/SwiftLlama/Swiftllama.swift:3:8: error: no such module 'Combine'
  1 | import Foundation
  2 | import llama
  3 | import Combine
    |        `- error: no such module 'Combine'
  4 |
  5 | public class SwiftLlama {
[12/13] Compiling SwiftLlama Batch.swift
/host/spi-builder-workspace/Sources/SwiftLlama/Swiftllama.swift:3:8: error: no such module 'Combine'
  1 | import Foundation
  2 | import llama
  3 | import Combine
    |        `- error: no such module 'Combine'
  4 |
  5 | public class SwiftLlama {
[13/13] Compiling SwiftLlama SwiftllamaActor.swift
/host/spi-builder-workspace/Sources/SwiftLlama/Swiftllama.swift:3:8: error: no such module 'Combine'
  1 | import Foundation
  2 | import llama
  3 | import Combine
    |        `- error: no such module 'Combine'
  4 |
  5 | public class SwiftLlama {
BUILD FAILURE 6.1 android