Build Information
Failed to build llmfarm_core, reference 0.9.0 (927d67
), with Swift 6.1 for Linux on 28 Apr 2025 07:37:02 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4609320-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/buhe/llmfarm_core.swift.git
Reference: 0.9.0
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/buhe/llmfarm_core.swift
* tag 0.9.0 -> FETCH_HEAD
HEAD is now at 927d670 "Rename ggml/mc to ggml/ggml-backend.m in Sources/llmfarm_core_cpp/ggml."
Cloned https://github.com/buhe/llmfarm_core.swift.git
Revision (git rev-parse @):
927d670751bc8aebbc5eb845afd36fe1eeef4f5a
SUCCESS checkout https://github.com/buhe/llmfarm_core.swift.git at 0.9.0
========================================
Build
========================================
Selected platform: linux
Swift version: 6.1
Building package at path: $PWD
https://github.com/buhe/llmfarm_core.swift.git
https://github.com/buhe/llmfarm_core.swift.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
"cxx_language_standard" : "c++20",
"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"
],
"resources" : [
{
"path" : "/host/spi-builder-workspace/Sources/llmfarm_core_cpp/metal",
"rule" : {
"copy" : {
}
}
},
{
"path" : "/host/spi-builder-workspace/Sources/llmfarm_core_cpp/tokenizers",
"rule" : {
"copy" : {
}
}
}
],
"sources" : [
"exception_helper.mm",
"exception_helper_objc.mm",
"finetune/export-lora.mm",
"finetune/finetune.mm",
"ggml/common.mm",
"ggml/ggml-alloc.m",
"ggml/ggml-alloc_dadbed9.m",
"ggml/ggml-backend.m",
"ggml/ggml-metal.m",
"ggml/ggml-metal_dadbed9.m",
"ggml/ggml-quants.m",
"ggml/ggml.m",
"ggml/ggml_d925ed-alloc.m",
"ggml/ggml_d925ed-metal.m",
"ggml/ggml_d925ed.m",
"ggml/ggml_dadbed9.m",
"ggml/k_quants_dadbed9.m",
"ggml/train.mm",
"gpt2/gpt2.mm",
"gpt_helpers.mm",
"gpt_spm.mm",
"gptneox/gptneox.mm",
"grammar-parser.mm",
"llama/llama.mm",
"llama/llama_dadbed9.mm",
"package_helper.m",
"replit/replit.mm",
"rwkv/rwkv.mm",
"starcoder/starcoder.mm"
],
"type" : "library"
},
{
"c99name" : "llmfarm_core",
"module_type" : "SwiftTarget",
"name" : "llmfarm_core",
"path" : "Sources/llmfarm_core",
"product_memberships" : [
"llmfarm_core"
],
"sources" : [
"AI.swift",
"ArrayExt.swift",
"ByteEncoder.swift",
"Extensions.swift",
"FineTune.swift",
"GPT2.swift",
"GPTNeox.swift",
"LLMBase.swift",
"LLaMA_FineTune.swift",
"LLaMa.swift",
"LLaMa_dadbed9.swift",
"Math/ComputeGraph.swift",
"Math/Math.swift",
"Math/Utils.swift",
"RWKV.swift",
"Replit.swift",
"Starcoder.swift",
"Tasker.swift",
"TokenizeUtils.swift",
"Tokenizer.swift",
"TokenizerConfig.swift"
],
"target_dependencies" : [
"llmfarm_core_cpp"
],
"type" : "library"
}
],
"tools_version" : "5.6"
}
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-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
Building for debugging...
[0/34] Write sources
[1/34] Copying metal
[2/34] Copying tokenizers
In file included from <built-in>:1:
/host/spi-builder-workspace/.build/x86_64-unknown-linux-gnu/debug/llmfarm_core_cpp.build/DerivedSources/resource_bundle_accessor.h:2:9: fatal error: 'Foundation/Foundation.h' file not found
2 | #import <Foundation/Foundation.h>
| ^~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.
[3/34] Compiling llmfarm_core_cpp package_helper.m
In file included from <built-in>:1:
/host/spi-builder-workspace/.build/x86_64-unknown-linux-gnu/debug/llmfarm_core_cpp.build/DerivedSources/resource_bundle_accessor.h:2:9: fatal error: 'Foundation/Foundation.h' file not found
2 | #import <Foundation/Foundation.h>
| ^~~~~~~~~~~~~~~~~~~~~~~~~
[3/34] Compiling llama_dadbed9.mm
In file included from <built-in>:1:
/host/spi-builder-workspace/.build/x86_64-unknown-linux-gnu/debug/llmfarm_core_cpp.build/DerivedSources/resource_bundle_accessor.h:2:9: fatal error: 'Foundation/Foundation.h' file not found
2 | #import <Foundation/Foundation.h>
| ^~~~~~~~~~~~~~~~~~~~~~~~~
[3/34] Compiling llmfarm_core_cpp grammar-parser.mm
In file included from <built-in>:1:
/host/spi-builder-workspace/.build/x86_64-unknown-linux-gnu/debug/llmfarm_core_cpp.build/DerivedSources/resource_bundle_accessor.h:2:9: fatal error: 'Foundation/Foundation.h' file not found
2 | #import <Foundation/Foundation.h>
| ^~~~~~~~~~~~~~~~~~~~~~~~~
[3/34] Compiling rwkv.mm
In file included from <built-in>:1:
/host/spi-builder-workspace/.build/x86_64-unknown-linux-gnu/debug/llmfarm_core_cpp.build/DerivedSources/resource_bundle_accessor.h:2:9: fatal error: 'Foundation/Foundation.h' file not found
2 | #import <Foundation/Foundation.h>
| ^~~~~~~~~~~~~~~~~~~~~~~~~
[3/34] Compiling replit.mm
In file included from <built-in>:1:
/host/spi-builder-workspace/.build/x86_64-unknown-linux-gnu/debug/llmfarm_core_cpp.build/DerivedSources/resource_bundle_accessor.h:2:9: fatal error: 'Foundation/Foundation.h' file not found
2 | #import <Foundation/Foundation.h>
| ^~~~~~~~~~~~~~~~~~~~~~~~~
[3/34] Compiling starcoder.mm
In file included from <built-in>:1:
/host/spi-builder-workspace/.build/x86_64-unknown-linux-gnu/debug/llmfarm_core_cpp.build/DerivedSources/resource_bundle_accessor.h:2:9: fatal error: 'Foundation/Foundation.h' file not found
2 | #import <Foundation/Foundation.h>
| ^~~~~~~~~~~~~~~~~~~~~~~~~
[3/34] Compiling llama.mm
[3/34] Write swift-version-24593BA9C3E375BF.txt
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-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
[0/1] Planning build
Building for debugging...
In file included from <built-in>:1:
/host/spi-builder-workspace/.build/x86_64-unknown-linux-gnu/debug/llmfarm_core_cpp.build/DerivedSources/resource_bundle_accessor.h:2:9: fatal error: 'Foundation/Foundation.h' file not found
2 | #import <Foundation/Foundation.h>
| ^~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.
[0/31] Compiling llmfarm_core_cpp resource_bundle_accessor.m
[0/31] Compiling llama.mm
[0/31] Compiling llmfarm_core_cpp package_helper.m
In file included from <built-in>:1:
/host/spi-builder-workspace/.build/x86_64-unknown-linux-gnu/debug/llmfarm_core_cpp.build/DerivedSources/resource_bundle_accessor.h:2:9: fatal error: 'Foundation/Foundation.h' file not found
2 | #import <Foundation/Foundation.h>
| ^~~~~~~~~~~~~~~~~~~~~~~~~
[0/31] Compiling replit.mm
[0/31] Compiling llama_dadbed9.mm
In file included from <built-in>:1:
/host/spi-builder-workspace/.build/x86_64-unknown-linux-gnu/debug/llmfarm_core_cpp.build/DerivedSources/resource_bundle_accessor.h:2:9: fatal error: 'Foundation/Foundation.h' file not found
2 | #import <Foundation/Foundation.h>
| ^~~~~~~~~~~~~~~~~~~~~~~~~
[0/31] Compiling rwkv.mm
In file included from <built-in>:1:
/host/spi-builder-workspace/.build/x86_64-unknown-linux-gnu/debug/llmfarm_core_cpp.build/DerivedSources/resource_bundle_accessor.h:2:9: fatal error: 'Foundation/Foundation.h' file not found
2 | #import <Foundation/Foundation.h>
| ^~~~~~~~~~~~~~~~~~~~~~~~~
[0/31] Compiling starcoder.mm
[0/31] Write swift-version-24593BA9C3E375BF.txt
BUILD FAILURE 6.1 linux