Build Information
Failed to build LLM, reference main (59da7c
), with Swift 5.9 for Linux on 19 Oct 2024 11:27:03 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: 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.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/ (19.25s)
Fetching https://github.com/kishikawakatsumi/swift-power-assert
[1/5041] Fetching swift-power-assert
Fetched https://github.com/kishikawakatsumi/swift-power-assert (0.40s)
Computing version for https://github.com/kishikawakatsumi/swift-power-assert
Computed https://github.com/kishikawakatsumi/swift-power-assert at 0.12.0 (0.34s)
Fetching https://github.com/apple/swift-syntax.git
[1/65935] Fetching swift-syntax
Fetched https://github.com/apple/swift-syntax.git (3.62s)
Computing version for https://github.com/apple/swift-syntax.git
Computed https://github.com/apple/swift-syntax.git at 509.1.1 (0.48s)
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/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/ggerganov/llama.cpp/
Working copy of https://github.com/ggerganov/llama.cpp/ resolved at master
Building for debugging...
[0/11] Compiling ggml-alloc.c
[1/11] Compiling ggml-backend.cpp
[2/11] Compiling llama-sampling.cpp
[3/11] Compiling llama-grammar.cpp
[4/11] Compiling unicode-data.cpp
[5/11] Compiling ggml-aarch64.c
[6/11] Compiling llama-vocab.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