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

Failed to build LLM, reference v1.5.4 (59da7c), with Swift 5.9 for Linux on 19 Oct 2024 11:24:35 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4609320-1":/host -w "$PWD" 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.55.2
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/eastriverlee/LLM.swift.git
Reference: v1.5.4
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/eastriverlee/LLM.swift
 * tag               v1.5.4     -> FETCH_HEAD
HEAD is now at 59da7ca Merge pull request #37 from eastriverlee/35-package-is-broken-due-to-llamacpp-sampling-v2-api-change
Cloned https://github.com/eastriverlee/LLM.swift.git
Revision (git rev-parse @):
59da7ca14c78e039b426f871893e5dfd10e02cfc
SUCCESS checkout https://github.com/eastriverlee/LLM.swift.git at v1.5.4
========================================
Build
========================================
Selected platform:         linux
Swift version:             5.9
Building package at path:  $PWD
https://github.com/eastriverlee/LLM.swift.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-1":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-5.9-latest swift build --triple x86_64-unknown-linux-gnu 2>&1
basic-5.9-latest: Pulling from finestructure/spi-images
Digest: sha256:5a47d9d39a5702cbfa0ba55458353b9ccb6eb7cde0581792bc757a518ca63386
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-5.9-latest
Fetching https://github.com/ggerganov/llama.cpp/
[1/121007] Fetching llama.cpp
Fetched https://github.com/ggerganov/llama.cpp/ (23.69s)
Fetching https://github.com/kishikawakatsumi/swift-power-assert
[1/5041] Fetching swift-power-assert
Fetched https://github.com/kishikawakatsumi/swift-power-assert (0.43s)
Computing version for https://github.com/kishikawakatsumi/swift-power-assert
Computed https://github.com/kishikawakatsumi/swift-power-assert at 0.12.0 (0.36s)
Fetching https://github.com/apple/swift-syntax.git
[1/65935] Fetching swift-syntax
Fetched https://github.com/apple/swift-syntax.git (4.26s)
Computing version for https://github.com/apple/swift-syntax.git
Computed https://github.com/apple/swift-syntax.git at 509.1.1 (0.50s)
Creating working copy for https://github.com/ggerganov/llama.cpp/
Working copy of https://github.com/ggerganov/llama.cpp/ resolved at master
Creating working copy for https://github.com/apple/swift-syntax.git
Working copy of https://github.com/apple/swift-syntax.git resolved at 509.1.1
Creating working copy for https://github.com/kishikawakatsumi/swift-power-assert
Working copy of https://github.com/kishikawakatsumi/swift-power-assert resolved at 0.12.0
Building for debugging...
[0/11] Compiling unicode-data.cpp
[1/11] Compiling llama-grammar.cpp
[2/11] Compiling llama-sampling.cpp
[3/11] Compiling llama-vocab.cpp
[4/11] Compiling ggml-alloc.c
[5/11] Compiling ggml-aarch64.c
[6/11] Compiling ggml-backend.cpp
[7/11] Compiling ggml-quants.c
[8/11] Compiling unicode.cpp
[9/11] Compiling ggml.c
[10/11] Compiling llama.cpp
error: emit-module command failed with exit code 1 (use -v to see invocation)
[12/13] Emitting module LLM
/host/spi-builder-workspace/Sources/LLM/LLM.swift:44:6: error: unknown attribute 'Published'
    @Published public private(set) var output = ""
     ^
/host/spi-builder-workspace/Sources/LLM/LLM.swift:12:17: error: cannot find type 'ObservableObject' in scope
open class LLM: ObservableObject {
                ^~~~~~~~~~~~~~~~
[13/13] Compiling LLM LLM.swift
<module-includes>:1:10: note: in file included from <module-includes>:1:
#include "/host/spi-builder-workspace/.build/checkouts/llama.cpp/spm-headers/llama.h"
         ^
/host/spi-builder-workspace/.build/checkouts/llama.cpp/spm-headers/llama.h:1245:1: warning: umbrella header for module 'llama' does not include header 'ggml-metal.h'
^
/host/spi-builder-workspace/Sources/LLM/LLM.swift:44:6: error: unknown attribute 'Published'
    @Published public private(set) var output = ""
     ^
/host/spi-builder-workspace/Sources/LLM/LLM.swift:12:17: error: cannot find type 'ObservableObject' in scope
open class LLM: ObservableObject {
                ^~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/LLM/LLM.swift:78:36: error: 'ProcessInfo' initializer is inaccessible due to 'internal' protection level
        let processorCount = Int32(ProcessInfo().processorCount)
                                   ^
Foundation.ProcessInfo (internal):3:23: note: 'init()' declared here
    override internal init()
                      ^
/host/spi-builder-workspace/Sources/LLM/LLM.swift:668:53: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
        let (data, response) = try await URLSession.shared.data(from: self)
                                         ~~~~~~~~~~ ^~~~~~
/host/spi-builder-workspace/Sources/LLM/LLM.swift:669:57: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
        let statusCode = (response as! HTTPURLResponse).statusCode
                         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^~~~~~~~~~
/host/spi-builder-workspace/Sources/LLM/LLM.swift:674:26: error: cannot find type 'NSKeyValueObservation' in scope
        var observation: NSKeyValueObservation!
                         ^~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/LLM/LLM.swift:676:35: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
            let task = URLSession.shared.downloadTask(with: self) { url, response, error in
                       ~~~~~~~~~~ ^~~~~~
/host/spi-builder-workspace/Sources/LLM/LLM.swift:679:65: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
                let statusCode = (response as! HTTPURLResponse).statusCode
                                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^~~~~~~~~~
/host/spi-builder-workspace/Sources/LLM/LLM.swift:676:35: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
            let task = URLSession.shared.downloadTask(with: self) { url, response, error in
                       ~~~~~~~~~~ ^~~~~~
/host/spi-builder-workspace/Sources/LLM/LLM.swift:679:65: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
                let statusCode = (response as! HTTPURLResponse).statusCode
                                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^~~~~~~~~~
error: fatalError
BUILD FAILURE 5.9 linux