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 ggml, reference master (7b08f4), with Swift 5.10 for macOS (SPM) on 7 Mar 2025 23:25:23 UTC.

Build Command

env DEVELOPER_DIR=/Applications/Xcode-15.4.0.app xcrun swift build --arch arm64

Build Log

========================================
RunAll
========================================
Builder version: 4.60.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/ggml-org/ggml.git
Reference: master
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/ggml-org/ggml
 * branch            master     -> FETCH_HEAD
 * [new branch]      master     -> origin/master
HEAD is now at 7b08f4c sync : llama.cpp
Submodule path 'src/ggml-kompute/kompute': checked out '4565194ed7c32d1d2efa32ceab4d3c6cae006306'
Submodule 'kompute' (https://github.com/nomic-ai/kompute.git) registered for path 'src/ggml-kompute/kompute'
Cloning into '/Users/admin/builder/spi-builder-workspace/src/ggml-kompute/kompute'...
Cloned https://github.com/ggml-org/ggml.git
Revision (git rev-parse @):
7b08f4cd9e32781e769a52cf0dcaeb2c556632c3
SUCCESS checkout https://github.com/ggml-org/ggml.git at master
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             5.10
Building package at path:  $PWD
https://github.com/ggml-org/ggml.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-15.4.0.app xcrun swift build --arch arm64
Building for debugging...
In file included from /Users/admin/builder/spi-builder-workspace/src/ggml.c:5:
/Users/admin/builder/spi-builder-workspace/src/ggml-impl.h:6:10: fatal error: 'gguf.h' file not found
#include "gguf.h"
         ^~~~~~~~
1 error generated.
[0/4] Compiling ggml.c
[0/4] Compiling ggml-quants.c
In file included from /Users/admin/builder/spi-builder-workspace/src/ggml-alloc.c:4:
/Users/admin/builder/spi-builder-workspace/src/ggml-impl.h:6:10: fatal error: 'gguf.h' file not found
#include "gguf.h"
         ^~~~~~~~
[0/4] Compiling ggml-alloc.c
In file included from /Users/admin/builder/spi-builder-workspace/src/ggml-backend.cpp:14:
/Users/admin/builder/spi-builder-workspace/src/ggml-impl.h:6:10: fatal error: 'gguf.h' file not found
#include "gguf.h"
         ^~~~~~~~
[0/4] Compiling ggml-backend.cpp
warning: 'spi-builder-workspace': Invalid Source '/Users/admin/builder/spi-builder-workspace/src/ggml-metal.m': File not found.
warning: 'spi-builder-workspace': Invalid Resource 'src/ggml-metal.metal': File not found.
BUILD FAILURE 5.10 macosSpm