Build Information
Failed to build llmfarm_core, reference main (ceb345
), with Swift 5.9 for macOS (SPM) on 27 Jan 2025 13:57:13 UTC.
Build Command
env DEVELOPER_DIR=/Applications/Xcode-15.2.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/guinmoon/llmfarm_core.swift.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/guinmoon/llmfarm_core.swift
* branch main -> FETCH_HEAD
* [new branch] main -> origin/main
HEAD is now at ceb3455 bunny crash fixed
Submodule path 'Sources/llmfarm_core_cpp/llama.cpp': checked out 'cff378ba767f19262fdd10c8022437aeb98c933a'
Submodule path 'Sources/llmfarm_core_cpp/llama.cpp/ggml/src/ggml-kompute/kompute': checked out '4565194ed7c32d1d2efa32ceab4d3c6cae006306'
Submodule 'Sources/llmfarm_core_cpp/llama.cpp' (https://github.com/guinmoon/llama.cpp/) registered for path 'Sources/llmfarm_core_cpp/llama.cpp'
Cloning into '/Users/admin/builder/spi-builder-workspace/Sources/llmfarm_core_cpp/llama.cpp'...
Submodule 'kompute' (https://github.com/nomic-ai/kompute.git) registered for path 'Sources/llmfarm_core_cpp/llama.cpp/ggml/src/ggml-kompute/kompute'
Cloning into '/Users/admin/builder/spi-builder-workspace/Sources/llmfarm_core_cpp/llama.cpp/ggml/src/ggml-kompute/kompute'...
Cloned https://github.com/guinmoon/llmfarm_core.swift.git
Revision (git rev-parse @):
ceb3455d2fb8b3f114fa15eeeb6397debae36d2f
SUCCESS checkout https://github.com/guinmoon/llmfarm_core.swift.git at main
========================================
Build
========================================
Selected platform: macosSpm
Swift version: 5.9
Building package at path: $PWD
https://github.com/guinmoon/llmfarm_core.swift.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-15.2.0.app xcrun swift build --arch arm64
Building for debugging...
[0/45] Compiling llava.cpp
[1/45] Compiling log.cpp
[2/45] Compiling llmfarm_core_cpp gpt_spm.cpp
[3/45] Compiling llava-cli.cpp
[4/45] Compiling sampling.cpp
/Users/admin/builder/spi-builder-workspace/Sources/llmfarm_core_cpp/package_helper.m:6:23: error: use of undeclared identifier 'SWIFTPM_MODULE_BUNDLE'
NSString *path = [SWIFTPM_MODULE_BUNDLE resourcePath];
^
1 error generated.
[5/45] Compiling llmfarm_core_cpp package_helper.m
[5/45] Compiling llama-vocab.cpp
[5/45] Compiling llama-sampling.cpp
[5/45] Compiling unicode-data.cpp
[5/45] Compiling json-schema-to-grammar.cpp
[5/45] Compiling llama.cpp
[5/45] Compiling unicode.cpp
[5/45] Compiling arg.cpp
[5/45] Compiling common.cpp
[5/45] Compiling clip.cpp
warning: 'spi-builder-workspace': Invalid Source '/Users/admin/builder/spi-builder-workspace/Sources/llmfarm_core_cpp/llama.cpp/ggml/src/ggml-aarch64.c': File not found.
warning: 'spi-builder-workspace': Invalid Source '/Users/admin/builder/spi-builder-workspace/Sources/llmfarm_core_cpp/llama.cpp/ggml/src/ggml-cpu/ggml-cpu-aarch64.c': File not found.
warning: 'spi-builder-workspace': Invalid Resource 'llama.cpp/ggml/src/ggml-metal.metal': File not found.
warning: 'spi-builder-workspace': found 1 file(s) which are unhandled; explicitly declare them as resources or exclude from the target
/Users/admin/builder/spi-builder-workspace/Sources/llmfarm_core/LLMBase.back
BUILD FAILURE 5.9 macosSpm