Build Information
Failed to build swift-llama-cpp, reference 1.2.0 (5496bc), with Swift 6.2 for Android on 1 Sep 2025 01:24:07 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4609320-2":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/finestructure/spi-images:android-6.2-latest swift build --swift-sdk aarch64-unknown-linux-android28 2>&1Build Log
========================================
RunAll
========================================
Builder version: 4.67.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/pgorzelany/swift-llama-cpp.git
Reference: 1.2.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/pgorzelany/swift-llama-cpp
* tag 1.2.0 -> FETCH_HEAD
HEAD is now at 5496bc7 Added more tests
Cloned https://github.com/pgorzelany/swift-llama-cpp.git
Revision (git rev-parse @):
5496bc7c9820f04bba7268dc8a271235deae436d
SUCCESS checkout https://github.com/pgorzelany/swift-llama-cpp.git at 1.2.0
========================================
Build
========================================
Selected platform: android
Swift version: 6.2
Building package at path: $PWD
https://github.com/pgorzelany/swift-llama-cpp.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-2":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/finestructure/spi-images:android-6.2-latest swift build --swift-sdk aarch64-unknown-linux-android28 2>&1
android-6.2-latest: Pulling from finestructure/spi-images
Digest: sha256:b7c4a6b4153ff40ef9277e2157e708f835b8eb011095d53bd8db4594eb2b7798
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:android-6.2-latest
Downloading binary artifact https://github.com/ggml-org/llama.cpp/releases/download/b6102/llama-b6102-xcframework.zip
[1369/92162585] Downloading https://github.com/ggml-org/llama.cpp/releases/download/b6102/llama-b6102-xcframework.zip
Downloaded https://github.com/ggml-org/llama.cpp/releases/download/b6102/llama-b6102-xcframework.zip (8.31s)
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-8C5A4AE7A8CE2BA.txt
error: emit-module command failed with exit code 1 (use -v to see invocation)
[3/19] Emitting module SwiftLlama
/host/spi-builder-workspace/Sources/SwiftLlama/Llama.swift:2:8: error: no such module 'llama'
1 | import Foundation
2 | import llama
| `- error: no such module 'llama'
3 |
4 | enum NextToken {
[4/21] Compiling SwiftLlama Llama.swift
/host/spi-builder-workspace/Sources/SwiftLlama/Llama.swift:2:8: error: no such module 'llama'
1 | import Foundation
2 | import llama
| `- error: no such module 'llama'
3 |
4 | enum NextToken {
[5/21] Compiling SwiftLlama LlamaBackend.swift
/host/spi-builder-workspace/Sources/SwiftLlama/Llama.swift:2:8: error: no such module 'llama'
1 | import Foundation
2 | import llama
| `- error: no such module 'llama'
3 |
4 | enum NextToken {
[6/21] Compiling SwiftLlama LlamaBatch.swift
/host/spi-builder-workspace/Sources/SwiftLlama/Llama.swift:2:8: error: no such module 'llama'
1 | import Foundation
2 | import llama
| `- error: no such module 'llama'
3 |
4 | enum NextToken {
[7/21] Compiling SwiftLlama LlamaSamplingConfig.swift
/host/spi-builder-workspace/Sources/SwiftLlama/Llama.swift:2:8: error: no such module 'llama'
1 | import Foundation
2 | import llama
| `- error: no such module 'llama'
3 |
4 | enum NextToken {
[8/21] Compiling SwiftLlama LlamaService.swift
/host/spi-builder-workspace/Sources/SwiftLlama/Llama.swift:2:8: error: no such module 'llama'
1 | import Foundation
2 | import llama
| `- error: no such module 'llama'
3 |
4 | enum NextToken {
[9/21] Compiling SwiftLlama LlamaError.swift
/host/spi-builder-workspace/Sources/SwiftLlama/Llama.swift:2:8: error: no such module 'llama'
1 | import Foundation
2 | import llama
| `- error: no such module 'llama'
3 |
4 | enum NextToken {
[10/21] Compiling SwiftLlama LlamaGrammarConfig.swift
/host/spi-builder-workspace/Sources/SwiftLlama/Llama.swift:2:8: error: no such module 'llama'
1 | import Foundation
2 | import llama
| `- error: no such module 'llama'
3 |
4 | enum NextToken {
[11/21] Compiling SwiftLlama LlamaRepetitionPenaltyConfig.swift
/host/spi-builder-workspace/Sources/SwiftLlama/Llama.swift:2:8: error: no such module 'llama'
1 | import Foundation
2 | import llama
| `- error: no such module 'llama'
3 |
4 | enum NextToken {
[12/21] Compiling SwiftLlama LlamaSampler.swift
/host/spi-builder-workspace/Sources/SwiftLlama/Llama.swift:2:8: error: no such module 'llama'
1 | import Foundation
2 | import llama
| `- error: no such module 'llama'
3 |
4 | enum NextToken {
[13/21] Compiling SwiftLlama LlamaChatMessage.swift
/host/spi-builder-workspace/Sources/SwiftLlama/Llama.swift:2:8: error: no such module 'llama'
1 | import Foundation
2 | import llama
| `- error: no such module 'llama'
3 |
4 | enum NextToken {
[14/21] Compiling SwiftLlama LlamaConfig.swift
/host/spi-builder-workspace/Sources/SwiftLlama/Llama.swift:2:8: error: no such module 'llama'
1 | import Foundation
2 | import llama
| `- error: no such module 'llama'
3 |
4 | enum NextToken {
[15/21] Compiling SwiftLlama LlamaContext.swift
/host/spi-builder-workspace/Sources/SwiftLlama/Llama.swift:2:8: error: no such module 'llama'
1 | import Foundation
2 | import llama
| `- error: no such module 'llama'
3 |
4 | enum NextToken {
[16/21] Compiling SwiftLlama LlamaMemory.swift
/host/spi-builder-workspace/Sources/SwiftLlama/Llama.swift:2:8: error: no such module 'llama'
1 | import Foundation
2 | import llama
| `- error: no such module 'llama'
3 |
4 | enum NextToken {
[17/21] Compiling SwiftLlama LlamaModel.swift
/host/spi-builder-workspace/Sources/SwiftLlama/Llama.swift:2:8: error: no such module 'llama'
1 | import Foundation
2 | import llama
| `- error: no such module 'llama'
3 |
4 | enum NextToken {
[18/21] Compiling SwiftLlama LlamaLogger.swift
/host/spi-builder-workspace/Sources/SwiftLlama/Llama.swift:2:8: error: no such module 'llama'
1 | import Foundation
2 | import llama
| `- error: no such module 'llama'
3 |
4 | enum NextToken {
[19/21] Compiling SwiftLlama LlamaLoraAdapter.swift
/host/spi-builder-workspace/Sources/SwiftLlama/Llama.swift:2:8: error: no such module 'llama'
1 | import Foundation
2 | import llama
| `- error: no such module 'llama'
3 |
4 | enum NextToken {
[20/21] Compiling SwiftLlama LlamaTypedJSONGrammarBuilder.swift
/host/spi-builder-workspace/Sources/SwiftLlama/Llama.swift:2:8: error: no such module 'llama'
1 | import Foundation
2 | import llama
| `- error: no such module 'llama'
3 |
4 | enum NextToken {
[21/21] Compiling SwiftLlama Task+Extensions.swift
/host/spi-builder-workspace/Sources/SwiftLlama/Llama.swift:2:8: error: no such module 'llama'
1 | import Foundation
2 | import llama
| `- error: no such module 'llama'
3 |
4 | enum NextToken {
BUILD FAILURE 6.2 android