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 6.0 for macOS (SPM) on 10 Dec 2024 16:11:17 UTC.

Build Command

env DEVELOPER_DIR=/Applications/Xcode-16.1.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures

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 /Users/admin/builder/spi-builder-workspace/.git/
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
Fetching https://github.com/ggerganov/llama.cpp
[1/133248] Fetching llama.cpp
Fetched https://github.com/ggerganov/llama.cpp from cache (91.34s)
Fetching https://github.com/apple/swift-log.git
[1/3727] Fetching swift-log
Fetched https://github.com/apple/swift-log.git from cache (1.07s)
Computing version for https://github.com/apple/swift-log.git
Computed https://github.com/apple/swift-log.git at 1.6.2 (0.44s)
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
========================================
ResolveProductDependencies
========================================
Resolving dependencies ...
{
  "identity": ".resolve-product-dependencies",
  "name": "resolve-dependencies",
  "url": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies",
  "version": "unspecified",
  "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies",
  "dependencies": [
    {
      "identity": "llama-cpp-swift",
      "name": "LLamaSwift",
      "url": "https://github.com/srgtuszy/llama-cpp-swift.git",
      "version": "unspecified",
      "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/llama-cpp-swift",
      "dependencies": [
        {
          "identity": "llama.cpp",
          "name": "llama",
          "url": "https://github.com/ggerganov/llama.cpp",
          "version": "unspecified",
          "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/llama.cpp",
          "dependencies": [
          ]
        },
        {
          "identity": "swift-log",
          "name": "swift-log",
          "url": "https://github.com/apple/swift-log.git",
          "version": "1.6.2",
          "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/swift-log",
          "dependencies": [
          ]
        }
      ]
    }
  ]
}
Fetching https://github.com/srgtuszy/llama-cpp-swift.git
[3/215] Fetching llama-cpp-swift
Fetched https://github.com/srgtuszy/llama-cpp-swift.git from cache (0.70s)
Fetching https://github.com/ggerganov/llama.cpp from cache
Fetched https://github.com/ggerganov/llama.cpp from cache (1.02s)
Fetching https://github.com/apple/swift-log.git from cache
Fetched https://github.com/apple/swift-log.git from cache (0.51s)
Computing version for https://github.com/apple/swift-log.git
Computed https://github.com/apple/swift-log.git at 1.6.2 (0.02s)
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
Creating working copy for https://github.com/srgtuszy/llama-cpp-swift.git
Working copy of https://github.com/srgtuszy/llama-cpp-swift.git resolved at main (5fff6aa)
Creating working copy for https://github.com/ggerganov/llama.cpp
Working copy of https://github.com/ggerganov/llama.cpp resolved at master (26a8406)
warning: '.resolve-product-dependencies': dependency 'llama-cpp-swift' is not used by any target
Found 2 product dependencies
  - llama
  - swift-log
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.0
Building package at path:  $PWD
https://github.com/srgtuszy/llama-cpp-swift.git
https://github.com/srgtuszy/llama-cpp-swift.git
{
  "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" : "/Users/admin/builder/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"
}
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.1.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures
Building for debugging...
[0/3] Write sources
[2/3] Write swift-version--7754E27361AE5C74.txt
[4/8] Compiling Logging Locks.swift
[5/8] Compiling Logging MetadataProvider.swift
[6/8] Emitting module Logging
[7/8] Compiling Logging Logging.swift
[8/8] Compiling Logging LogHandler.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[9/14] Emitting module LLamaSwift
<module-includes>:1:9: note: in file included from <module-includes>:1:
1 | #import "llama.h"
  |         `- note: in file included from <module-includes>:1:
2 |
/Users/admin/builder/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
1 | #pragma once
2 |
3 | #include <llama.h>
  |          `- error: 'llama.h' file not found with <angled> include; use "quotes" instead
4 |
5 |
/Users/admin/builder/spi-builder-workspace/Sources/llama-cpp-swift/LLama.swift:3:8: error: could not build Objective-C module 'llama'
  1 | import Foundation
  2 | import Logging
  3 | import llama
    |        `- error: could not build Objective-C module 'llama'
  4 |
  5 | /// An actor that handles inference using the LLama language model.
[10/14] Compiling LLamaSwift LLama.swift
<module-includes>:1:9: note: in file included from <module-includes>:1:
1 | #import "llama.h"
  |         `- note: in file included from <module-includes>:1:
2 |
/Users/admin/builder/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
1 | #pragma once
2 |
3 | #include <llama.h>
  |          `- error: 'llama.h' file not found with <angled> include; use "quotes" instead
4 |
5 |
/Users/admin/builder/spi-builder-workspace/Sources/llama-cpp-swift/LLama.swift:3:8: error: could not build Objective-C module 'llama'
  1 | import Foundation
  2 | import Logging
  3 | import llama
    |        `- error: could not build Objective-C module 'llama'
  4 |
  5 | /// An actor that handles inference using the LLama language model.
[11/14] Compiling LLamaSwift InitializationError.swift
<module-includes>:1:9: note: in file included from <module-includes>:1:
1 | #import "llama.h"
  |         `- note: in file included from <module-includes>:1:
2 |
/Users/admin/builder/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
1 | #pragma once
2 |
3 | #include <llama.h>
  |          `- error: 'llama.h' file not found with <angled> include; use "quotes" instead
4 |
5 |
/Users/admin/builder/spi-builder-workspace/Sources/llama-cpp-swift/LLama.swift:3:8: error: could not build Objective-C module 'llama'
  1 | import Foundation
  2 | import Logging
  3 | import llama
    |        `- error: could not build Objective-C module 'llama'
  4 |
  5 | /// An actor that handles inference using the LLama language model.
[12/14] Compiling LLamaSwift Logger+LLama.swift
<module-includes>:1:9: note: in file included from <module-includes>:1:
1 | #import "llama.h"
  |         `- note: in file included from <module-includes>:1:
2 |
/Users/admin/builder/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
1 | #pragma once
2 |
3 | #include <llama.h>
  |          `- error: 'llama.h' file not found with <angled> include; use "quotes" instead
4 |
5 |
/Users/admin/builder/spi-builder-workspace/Sources/llama-cpp-swift/LLama.swift:3:8: error: could not build Objective-C module 'llama'
  1 | import Foundation
  2 | import Logging
  3 | import llama
    |        `- error: could not build Objective-C module 'llama'
  4 |
  5 | /// An actor that handles inference using the LLama language model.
[13/14] Compiling LLamaSwift Model.swift
<module-includes>:1:9: note: in file included from <module-includes>:1:
1 | #import "llama.h"
  |         `- note: in file included from <module-includes>:1:
2 |
/Users/admin/builder/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
1 | #pragma once
2 |
3 | #include <llama.h>
  |          `- error: 'llama.h' file not found with <angled> include; use "quotes" instead
4 |
5 |
/Users/admin/builder/spi-builder-workspace/Sources/llama-cpp-swift/LLama.swift:3:8: error: could not build Objective-C module 'llama'
  1 | import Foundation
  2 | import Logging
  3 | import llama
    |        `- error: could not build Objective-C module 'llama'
  4 |
  5 | /// An actor that handles inference using the LLama language model.
[14/14] Compiling LLamaSwift InferError.swift
<module-includes>:1:9: note: in file included from <module-includes>:1:
1 | #import "llama.h"
  |         `- note: in file included from <module-includes>:1:
2 |
/Users/admin/builder/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
1 | #pragma once
2 |
3 | #include <llama.h>
  |          `- error: 'llama.h' file not found with <angled> include; use "quotes" instead
4 |
5 |
/Users/admin/builder/spi-builder-workspace/Sources/llama-cpp-swift/LLama.swift:3:8: error: could not build Objective-C module 'llama'
  1 | import Foundation
  2 | import Logging
  3 | import llama
    |        `- error: could not build Objective-C module 'llama'
  4 |
  5 | /// An actor that handles inference using the LLama language model.
warning: failed to retrieve search paths with pkg-config; maybe pkg-config is not installed
warning: couldn't find pc file for llama
BUILD FAILURE 6.0 macosSpm