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

Successful build of LLamaSwift, reference 0.1.3 (887a13), with Swift 6.0 for Linux on 2 Dec 2024 03:46:29 UTC.

Swift 6 data race errors: 0

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4606859-1":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.0-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

Build Log

========================================
RunAll
========================================
Builder version: 4.58.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/srgtuszy/llama-cpp-swift.git
Reference: 0.1.3
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/srgtuszy/llama-cpp-swift
 * tag               0.1.3      -> FETCH_HEAD
HEAD is now at 887a132 Removed custom derived data path from `xcodebuild` invocations
Cloned https://github.com/srgtuszy/llama-cpp-swift.git
Revision (git rev-parse @):
887a132c8746ae650e0c547d4a8efab0b5a3e010
SUCCESS checkout https://github.com/srgtuszy/llama-cpp-swift.git at 0.1.3
========================================
Build
========================================
Selected platform:         linux
Swift version:             6.0
Building package at path:  $PWD
https://github.com/srgtuszy/llama-cpp-swift.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-1":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.0-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.0-latest: Pulling from finestructure/spi-images
Digest: sha256:47d26c99ca4f1ac0a332c85fd5b13ff4390e72115219984a57a68fe9d1063a05
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.0-latest
Fetching https://github.com/ggerganov/llama.cpp
[1/130537] Fetching llama.cpp
Fetched https://github.com/ggerganov/llama.cpp from cache (26.49s)
Fetching https://github.com/apple/swift-log.git
[1/3723] Fetching swift-log
Fetched https://github.com/apple/swift-log.git from cache (0.60s)
Computing version for https://github.com/apple/swift-log.git
Computed https://github.com/apple/swift-log.git at 1.6.2 (0.81s)
Creating working copy for https://github.com/ggerganov/llama.cpp
Working copy of https://github.com/ggerganov/llama.cpp resolved at master (917786f)
Creating working copy for https://github.com/apple/swift-log.git
Working copy of https://github.com/apple/swift-log.git resolved at 1.6.2
Building for debugging...
[0/20] Compiling ggml-alloc.c
[1/20] Compiling ggml-cpu-aarch64.c
[2/20] Compiling ggml-backend.cpp
[3/20] Write swift-version-24593BA9C3E375BF.txt
[4/20] Compiling ggml-backend-reg.cpp
[5/20] Compiling ggml-threading.cpp
[6/20] Compiling unicode-data.cpp
[7/20] Compiling ggml.c
[8/20] Compiling ggml-cpu.cpp
[9/20] Compiling llama-vocab.cpp
[10/20] Compiling llama-grammar.cpp
[11/20] Write sources
[12/25] Compiling ggml-aarch64.c
[13/25] Write sources
[14/25] Compiling llama-sampling.cpp
[15/25] Compiling ggml-cpu-quants.c
[16/25] Compiling ggml-quants.c
[18/25] Compiling Logging MetadataProvider.swift
[19/25] Compiling Logging LogHandler.swift
[20/25] Compiling Logging Locks.swift
[21/25] Compiling Logging Logging.swift
[22/25] Emitting module Logging
[23/26] Compiling unicode.cpp
[24/26] Compiling ggml-cpu.c
[25/26] Compiling llama.cpp
[27/32] Compiling LLamaSwift Logger+LLama.swift
[28/32] Compiling LLamaSwift Model.swift
[29/32] Compiling LLamaSwift LLama.swift
/host/spi-builder-workspace/Sources/llama-cpp-swift/LLama.swift:23:44: warning: 'llama_sampler_init_softmax()' is deprecated: will be removed in the future (see https://github.com/ggerganov/llama.cpp/pull/9896#discussion_r1800920915)
 21 |     self.sampling = llama_sampler_chain_init(sparams)
 22 |     llama_sampler_chain_add(self.sampling, llama_sampler_init_temp(0.8))
 23 |     llama_sampler_chain_add(self.sampling, llama_sampler_init_softmax())
    |                                            `- warning: 'llama_sampler_init_softmax()' is deprecated: will be removed in the future (see https://github.com/ggerganov/llama.cpp/pull/9896#discussion_r1800920915)
 24 |     llama_sampler_chain_add(self.sampling, llama_sampler_init_dist(1234))
 25 |   }
[30/32] Compiling LLamaSwift InitializationError.swift
[31/32] Emitting module LLamaSwift
<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: 0:
<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: 0:
/host/spi-builder-workspace/Sources/llama-cpp-swift/LLama.swift:23:44: warning: 'llama_sampler_init_softmax()' is deprecated: will be removed in the future (see https://github.com/ggerganov/llama.cpp/pull/9896#discussion_r1800920915)
 21 |     self.sampling = llama_sampler_chain_init(sparams)
 22 |     llama_sampler_chain_add(self.sampling, llama_sampler_init_temp(0.8))
 23 |     llama_sampler_chain_add(self.sampling, llama_sampler_init_softmax())
    |                                            `- warning: 'llama_sampler_init_softmax()' is deprecated: will be removed in the future (see https://github.com/ggerganov/llama.cpp/pull/9896#discussion_r1800920915)
 24 |     llama_sampler_chain_add(self.sampling, llama_sampler_init_dist(1234))
 25 |   }
[32/32] Compiling LLamaSwift InferError.swift
Build complete! (80.03s)
Build complete.
{
  "dependencies" : [
    {
      "identity" : "llama.cpp",
      "requirement" : {
        "branch" : [
          "master"
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/ggerganov/llama.cpp"
    },
    {
      "identity" : "swift-log",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "1.6.1",
            "upper_bound" : "2.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/apple/swift-log.git"
    }
  ],
  "manifest_display_name" : "LLamaSwift",
  "name" : "LLamaSwift",
  "path" : "/host/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "macos",
      "version" : "12.0"
    },
    {
      "name" : "ios",
      "version" : "14.0"
    },
    {
      "name" : "watchos",
      "version" : "4.0"
    },
    {
      "name" : "tvos",
      "version" : "14.0"
    },
    {
      "name" : "visionos",
      "version" : "1.0"
    }
  ],
  "products" : [
    {
      "name" : "LLamaSwift",
      "targets" : [
        "LLamaSwift"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "llama_cpp_swiftTests",
      "module_type" : "SwiftTarget",
      "name" : "llama-cpp-swiftTests",
      "path" : "Tests/llama-cpp-swiftTests",
      "sources" : [
        "llama_cpp_swiftTests.swift"
      ],
      "target_dependencies" : [
        "LLamaSwift"
      ],
      "type" : "test"
    },
    {
      "c99name" : "LLamaSwift",
      "module_type" : "SwiftTarget",
      "name" : "LLamaSwift",
      "path" : "Sources",
      "product_dependencies" : [
        "llama",
        "Logging"
      ],
      "product_memberships" : [
        "LLamaSwift"
      ],
      "sources" : [
        "llama-cpp-swift/InferError.swift",
        "llama-cpp-swift/InitializationError.swift",
        "llama-cpp-swift/LLama.swift",
        "llama-cpp-swift/Logger+LLama.swift",
        "llama-cpp-swift/Model.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.9"
}
basic-6.0-latest: Pulling from finestructure/spi-images
Digest: sha256:47d26c99ca4f1ac0a332c85fd5b13ff4390e72115219984a57a68fe9d1063a05
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.0-latest
Done.