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 main (59da7c), with Swift 5.10 for Linux on 19 Oct 2024 11:24:32 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4609320-0":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-5.10-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: 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/eastriverlee/LLM.swift
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
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 main
========================================
Build
========================================
Selected platform:         linux
Swift version:             5.10
Building package at path:  $PWD
https://github.com/eastriverlee/LLM.swift.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-0":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-5.10-latest swift build --triple x86_64-unknown-linux-gnu 2>&1
basic-5.10-latest: Pulling from finestructure/spi-images
Digest: sha256:5bb17dbcfcf8548eee753b07845b2378de013b2470bb445b58120b16b16ecc2b
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-5.10-latest
Fetching https://github.com/ggerganov/llama.cpp/
[1/121007] Fetching llama.cpp
Fetched https://github.com/ggerganov/llama.cpp/ from cache (23.57s)
Fetching https://github.com/kishikawakatsumi/swift-power-assert
[1/5041] Fetching swift-power-assert
Fetched https://github.com/kishikawakatsumi/swift-power-assert from cache (0.39s)
Computing version for https://github.com/kishikawakatsumi/swift-power-assert
Computed https://github.com/kishikawakatsumi/swift-power-assert at 0.12.0 (0.35s)
Fetching https://github.com/apple/swift-syntax.git
[1/65935] Fetching swift-syntax
Fetched https://github.com/apple/swift-syntax.git from cache (3.97s)
Computing version for https://github.com/apple/swift-syntax.git
Computed https://github.com/apple/swift-syntax.git at 509.1.1 (0.69s)
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
Creating working copy for https://github.com/ggerganov/llama.cpp/
Working copy of https://github.com/ggerganov/llama.cpp/ resolved at master (cda0e4b)
Building for debugging...
[0/13] Compiling ggml-alloc.c
[1/13] Compiling ggml-aarch64.c
[2/13] Compiling ggml-backend.cpp
[3/13] Compiling llama-grammar.cpp
[4/13] Compiling unicode-data.cpp
[4/13] Write sources
[6/13] Compiling llama-sampling.cpp
[7/13] Compiling llama-vocab.cpp
[8/13] Compiling ggml-quants.c
[8/13] Write swift-version-24593BA9C3E375BF.txt
[10/13] Compiling unicode.cpp
[11/13] Compiling ggml.c
[12/13] Compiling llama.cpp
error: emit-module command failed with exit code 1 (use -v to see invocation)
[14/15] Emitting module LLM
<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 {
                ^~~~~~~~~~~~~~~~
[15/15] Compiling LLM LLM.swift
/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.10 linux