The Swift Package Index logo.Swift Package Index

Track the adoption of Swift 6 strict concurrency checks for data race safety. How many packages are Ready for Swift 6?

Build Information

Successful build of LLamaSwift, reference main (887a13), with Swift 6.0 for Linux on 6 Nov 2024 16:17:44 UTC.

Swift 6 data race errors: 0

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4606859-0":/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 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.56.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/srgtuszy/llama-cpp-swift.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/srgtuszy/llama-cpp-swift
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
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 main
========================================
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-0":/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 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/124566] Fetching llama.cpp
Fetched https://github.com/ggerganov/llama.cpp from cache (27.09s)
Fetching https://github.com/apple/swift-log.git
[1/3671] Fetching swift-log
Fetched https://github.com/apple/swift-log.git from cache (0.36s)
Computing version for https://github.com/apple/swift-log.git
Computed https://github.com/apple/swift-log.git at 1.6.1 (0.42s)
Creating working copy for https://github.com/ggerganov/llama.cpp
Working copy of https://github.com/ggerganov/llama.cpp resolved at master (b11f9ba)
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.1
Building for debugging...
[0/15] Compiling unicode-data.cpp
[0/15] Write swift-version-24593BA9C3E375BF.txt
[2/15] Compiling llama-sampling.cpp
[3/15] Compiling llama-grammar.cpp
[4/15] Compiling ggml.c
[5/15] Compiling ggml-alloc.c
[6/15] Write sources
[7/15] Compiling llama-vocab.cpp
[7/15] Write sources
[9/20] Compiling ggml-aarch64.c
[10/20] Compiling ggml-backend.cpp
[12/20] Emitting module Logging
[13/20] Compiling Logging LogHandler.swift
[14/20] Compiling Logging Logging.swift
[15/20] Compiling Logging MetadataProvider.swift
[16/20] Compiling Logging Locks.swift
[17/21] Compiling ggml-quants.c
[18/21] Compiling unicode.cpp
[19/21] Compiling ggml-cpu.c
[20/21] Compiling llama.cpp
[22/27] Compiling LLamaSwift Logger+LLama.swift
[23/27] Compiling LLamaSwift Model.swift
[24/27] Compiling LLamaSwift InferError.swift
[25/27] Emitting module LLamaSwift
/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 |   }
[26/27] Compiling LLamaSwift LLama.swift
<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 |   }
[27/27] Compiling LLamaSwift InitializationError.swift
Build complete! (85.29s)
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.