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

Failed to build LLamaSwift, reference main (5fff6a), with Swift 5.10 for Linux on 10 Dec 2024 16:09:45 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.10-latest swift build --triple x86_64-unknown-linux-gnu 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.58.5
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 5fff6aa Fixed sampler chain not being freed
Cloned https://github.com/srgtuszy/llama-cpp-swift.git
Revision (git rev-parse @):
5fff6aaeae60df84b03f7d0aa246745290fdc65f
SUCCESS checkout https://github.com/srgtuszy/llama-cpp-swift.git at main
========================================
Build
========================================
Selected platform:         linux
Swift version:             5.10
Building package at path:  $PWD
https://github.com/srgtuszy/llama-cpp-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.10-latest swift build --triple x86_64-unknown-linux-gnu 2>&1
basic-5.10-latest: Pulling from finestructure/spi-images
Digest: sha256:bbf8567030a4fa53b55a34fff1a818ffa3e86e892fedc5d8aa9c6958f48fdf8a
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/133248] Fetching llama.cpp
Fetched https://github.com/ggerganov/llama.cpp from cache (27.60s)
Fetching https://github.com/apple/swift-log.git
[1/3727] Fetching swift-log
Fetched https://github.com/apple/swift-log.git from cache (0.38s)
Computing version for https://github.com/apple/swift-log.git
Computed https://github.com/apple/swift-log.git at 1.6.2 (0.32s)
Creating working copy for https://github.com/ggerganov/llama.cpp
Working copy of https://github.com/ggerganov/llama.cpp resolved at master (26a8406)
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
warning: couldn't find pc file for llama
Building for debugging...
[0/3] Write sources
[2/3] Write swift-version-24593BA9C3E375BF.txt
[4/8] Emitting module Logging
[5/8] Compiling Logging MetadataProvider.swift
[6/8] Compiling Logging LogHandler.swift
[7/8] Compiling Logging Locks.swift
[8/8] Compiling Logging Logging.swift
[10/15] Compiling LLamaSwift Model.swift
<module-includes>:1:10: note: in file included from <module-includes>:1:
#include "llama.h"
         ^
/host/spi-builder-workspace/.build/checkouts/llama.cpp/Sources/llama/llama.h:3:10: error: 'llama.h' file not found with <angled> include; use "quotes" instead
#include <llama.h>
         ^
/host/spi-builder-workspace/Sources/llama-cpp-swift/LLama.swift:3:8: error: could not build C module 'llama'
import llama
       ^
error: emit-module command failed with exit code 1 (use -v to see invocation)
[11/15] Emitting module LLamaSwift
<module-includes>:1:10: note: in file included from <module-includes>:1:
#include "llama.h"
         ^
/host/spi-builder-workspace/.build/checkouts/llama.cpp/Sources/llama/llama.h:3:10: error: 'llama.h' file not found with <angled> include; use "quotes" instead
#include <llama.h>
         ^
/host/spi-builder-workspace/Sources/llama-cpp-swift/LLama.swift:3:8: error: could not build C module 'llama'
import llama
       ^
[12/15] Compiling LLamaSwift InitializationError.swift
<module-includes>:1:10: note: in file included from <module-includes>:1:
#include "llama.h"
         ^
/host/spi-builder-workspace/.build/checkouts/llama.cpp/Sources/llama/llama.h:3:10: error: 'llama.h' file not found with <angled> include; use "quotes" instead
#include <llama.h>
         ^
/host/spi-builder-workspace/Sources/llama-cpp-swift/LLama.swift:3:8: error: could not build C module 'llama'
import llama
       ^
[13/15] Compiling LLamaSwift InferError.swift
<module-includes>:1:10: note: in file included from <module-includes>:1:
#include "llama.h"
         ^
/host/spi-builder-workspace/.build/checkouts/llama.cpp/Sources/llama/llama.h:3:10: error: 'llama.h' file not found with <angled> include; use "quotes" instead
#include <llama.h>
         ^
/host/spi-builder-workspace/Sources/llama-cpp-swift/LLama.swift:3:8: error: could not build C module 'llama'
import llama
       ^
[14/15] Compiling LLamaSwift Logger+LLama.swift
<module-includes>:1:10: note: in file included from <module-includes>:1:
#include "llama.h"
         ^
/host/spi-builder-workspace/.build/checkouts/llama.cpp/Sources/llama/llama.h:3:10: error: 'llama.h' file not found with <angled> include; use "quotes" instead
#include <llama.h>
         ^
/host/spi-builder-workspace/Sources/llama-cpp-swift/LLama.swift:3:8: error: could not build C module 'llama'
import llama
       ^
[15/15] Compiling LLamaSwift LLama.swift
<module-includes>:1:10: note: in file included from <module-includes>:1:
#include "llama.h"
         ^
/host/spi-builder-workspace/.build/checkouts/llama.cpp/Sources/llama/llama.h:3:10: error: 'llama.h' file not found with <angled> include; use "quotes" instead
#include <llama.h>
         ^
/host/spi-builder-workspace/Sources/llama-cpp-swift/LLama.swift:3:8: error: could not build C module 'llama'
import llama
       ^
error: fatalError
BUILD FAILURE 5.10 linux