Build Information
Failed to build llmfarm_core, reference main (ceb345
), with Swift 6.1 for Linux on 28 Apr 2025 07:09:26 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4606859-0":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.1-latest swift build --triple x86_64-unknown-linux-gnu 2>&1
Build Log
========================================
RunAll
========================================
Builder version: 4.61.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/guinmoon/llmfarm_core.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/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 '/host/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 '/host/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: linux
Swift version: 6.1
Building package at path: $PWD
https://github.com/guinmoon/llmfarm_core.swift.git
https://github.com/guinmoon/llmfarm_core.swift.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
"cxx_language_standard" : "c++17",
"dependencies" : [
],
"manifest_display_name" : "llmfarm_core",
"name" : "llmfarm_core",
"path" : "/host/spi-builder-workspace",
"platforms" : [
{
"name" : "macos",
"version" : "11.0"
},
{
"name" : "ios",
"version" : "15.0"
}
],
"products" : [
{
"name" : "llmfarm_core",
"targets" : [
"llmfarm_core"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "llmfarm_core_cpp",
"module_type" : "ClangTarget",
"name" : "llmfarm_core_cpp",
"path" : "Sources/llmfarm_core_cpp",
"product_memberships" : [
"llmfarm_core"
],
"sources" : [
"exception_helper.cpp",
"exception_helper_objc.mm",
"gpt_spm.cpp",
"llama.cpp/common/arg.cpp",
"llama.cpp/common/common.cpp",
"llama.cpp/common/json-schema-to-grammar.cpp",
"llama.cpp/common/log.cpp",
"llama.cpp/common/sampling.cpp",
"llama.cpp/examples/llava/clip.cpp",
"llama.cpp/examples/llava/llava-cli.cpp",
"llama.cpp/examples/llava/llava.cpp",
"llama.cpp/ggml/src/ggml-alloc.c",
"llama.cpp/ggml/src/ggml-backend-reg.cpp",
"llama.cpp/ggml/src/ggml-backend.cpp",
"llama.cpp/ggml/src/ggml-blas/ggml-blas.cpp",
"llama.cpp/ggml/src/ggml-cpu/ggml-cpu-quants.c",
"llama.cpp/ggml/src/ggml-cpu/ggml-cpu-traits.cpp",
"llama.cpp/ggml/src/ggml-cpu/ggml-cpu.c",
"llama.cpp/ggml/src/ggml-cpu/ggml-cpu.cpp",
"llama.cpp/ggml/src/ggml-cpu/llamafile/sgemm.cpp",
"llama.cpp/ggml/src/ggml-metal/ggml-metal.m",
"llama.cpp/ggml/src/ggml-quants.c",
"llama.cpp/ggml/src/ggml-threading.cpp",
"llama.cpp/ggml/src/ggml.c",
"llama.cpp/ggml/src/gguf.cpp",
"llama.cpp/src/llama-adapter.cpp",
"llama.cpp/src/llama-arch.cpp",
"llama.cpp/src/llama-batch.cpp",
"llama.cpp/src/llama-chat.cpp",
"llama.cpp/src/llama-context.cpp",
"llama.cpp/src/llama-cparams.cpp",
"llama.cpp/src/llama-grammar.cpp",
"llama.cpp/src/llama-hparams.cpp",
"llama.cpp/src/llama-impl.cpp",
"llama.cpp/src/llama-kv-cache.cpp",
"llama.cpp/src/llama-mmap.cpp",
"llama.cpp/src/llama-model-loader.cpp",
"llama.cpp/src/llama-model.cpp",
"llama.cpp/src/llama-quant.cpp",
"llama.cpp/src/llama-sampling.cpp",
"llama.cpp/src/llama-vocab.cpp",
"llama.cpp/src/llama.cpp",
"llama.cpp/src/unicode-data.cpp",
"llama.cpp/src/unicode.cpp",
"package_helper.m"
],
"type" : "library"
},
{
"c99name" : "llmfarm_core",
"module_type" : "SwiftTarget",
"name" : "llmfarm_core",
"path" : "Sources/llmfarm_core",
"product_memberships" : [
"llmfarm_core"
],
"sources" : [
"AI.swift",
"FineTune.swift",
"GGJTv3.swift",
"LLMBase.swift",
"LLaMA_FineTune.swift",
"LLaMa.swift",
"LLaMa_MModal.swift",
"RWKV.swift",
"lib/ArrayExt.swift",
"lib/ByteEncoder.swift",
"lib/Extensions.swift",
"lib/Math/ComputeGraph.swift",
"lib/Math/Math.swift",
"lib/Math/Utils.swift",
"lib/TokenizeUtils.swift",
"lib/Tokenizer.swift"
],
"target_dependencies" : [
"llmfarm_core_cpp"
],
"type" : "library"
}
],
"tools_version" : "5.6"
}
warning: 'spi-builder-workspace': Invalid Source '/host/spi-builder-workspace/Sources/llmfarm_core_cpp/llama.cpp/ggml/src/ggml-aarch64.c': File not found.
warning: 'spi-builder-workspace': Invalid Source '/host/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.
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-0":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.1-latest swift build --triple x86_64-unknown-linux-gnu -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 2>&1
basic-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:3bdcac04179f4ed3e5b8e9dbd6e74bbf5ebc0f4fde48bbaad7d1e5c757e65bcb
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.1-latest
warning: 'spi-builder-workspace': Invalid Source '/host/spi-builder-workspace/Sources/llmfarm_core_cpp/llama.cpp/ggml/src/ggml-aarch64.c': File not found.
warning: 'spi-builder-workspace': Invalid Source '/host/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
/host/spi-builder-workspace/Sources/llmfarm_core/LLMBase.back
Building for debugging...
/host/spi-builder-workspace/Sources/llmfarm_core_cpp/exception_helper_objc.mm:8:9: fatal error: 'Foundation/Foundation.h' file not found
8 | #import <Foundation/Foundation.h>
| ^~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.
[0/47] Compiling llmfarm_core_cpp exception_helper_objc.mm
[0/47] Compiling sampling.cpp
[0/47] Compiling arg.cpp
[0/47] Compiling llmfarm_core_cpp gpt_spm.cpp
[0/47] Compiling llmfarm_core_cpp exception_helper.cpp
[0/47] Compiling common.cpp
[0/47] Compiling json-schema-to-grammar.cpp
[0/47] Compiling log.cpp
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-0":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.1-latest swift build --triple x86_64-unknown-linux-gnu 2>&1
basic-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:3bdcac04179f4ed3e5b8e9dbd6e74bbf5ebc0f4fde48bbaad7d1e5c757e65bcb
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.1-latest
warning: 'spi-builder-workspace': Invalid Source '/host/spi-builder-workspace/Sources/llmfarm_core_cpp/llama.cpp/ggml/src/ggml-aarch64.c': File not found.
warning: 'spi-builder-workspace': Invalid Source '/host/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
/host/spi-builder-workspace/Sources/llmfarm_core/LLMBase.back
[0/1] Planning build
Building for debugging...
In file included from /host/spi-builder-workspace/Sources/llmfarm_core_cpp/package_helper.m:1:
/host/spi-builder-workspace/Sources/llmfarm_core_cpp/spm-headers/package_helper.h:1:9: fatal error: 'Foundation/Foundation.h' file not found
1 | #import <Foundation/Foundation.h>
| ^~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.
[0/47] Compiling llmfarm_core_cpp package_helper.m
[0/47] Compiling unicode.cpp
[0/47] Compiling llama-vocab.cpp
[0/47] Compiling unicode-data.cpp
[0/47] Compiling llama.cpp
[0/47] Compiling llama-quant.cpp
[0/47] Write swift-version-24593BA9C3E375BF.txt
[0/47] Compiling llama-sampling.cpp
BUILD FAILURE 6.1 linux