Build Information
Failed to build swift-llama-cpp, reference 1.2.0 (5496bc), with Swift 6.2 for Wasm on 1 Sep 2025 01:25:41 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4609320-0":/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:wasm-6.2-latest swift build --swift-sdk wasm32-unknown-wasi 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: wasm
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-0":/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:wasm-6.2-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1
wasm-6.2-latest: Pulling from finestructure/spi-images
Digest: sha256:3160178686d03086db4c1712d78c1980537bb37521128c64baade7f466b6b4aa
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:wasm-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.20s)
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-24593BA9C3E375BF.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:1:8: error: no such module 'Foundation'
1 | import Foundation
| `- error: no such module 'Foundation'
2 | import llama
3 |
[4/19] Compiling SwiftLlama LlamaLogger.swift
/host/spi-builder-workspace/Sources/SwiftLlama/Llama.swift:1:8: error: no such module 'Foundation'
1 | import Foundation
| `- error: no such module 'Foundation'
2 | import llama
3 |
[5/19] Compiling SwiftLlama LlamaLoraAdapter.swift
/host/spi-builder-workspace/Sources/SwiftLlama/Llama.swift:1:8: error: no such module 'Foundation'
1 | import Foundation
| `- error: no such module 'Foundation'
2 | import llama
3 |
[6/19] Compiling SwiftLlama LlamaMemory.swift
/host/spi-builder-workspace/Sources/SwiftLlama/Llama.swift:1:8: error: no such module 'Foundation'
1 | import Foundation
| `- error: no such module 'Foundation'
2 | import llama
3 |
[7/19] Compiling SwiftLlama LlamaModel.swift
/host/spi-builder-workspace/Sources/SwiftLlama/Llama.swift:1:8: error: no such module 'Foundation'
1 | import Foundation
| `- error: no such module 'Foundation'
2 | import llama
3 |
[8/19] Compiling SwiftLlama LlamaError.swift
/host/spi-builder-workspace/Sources/SwiftLlama/Llama.swift:1:8: error: no such module 'Foundation'
1 | import Foundation
| `- error: no such module 'Foundation'
2 | import llama
3 |
[9/19] Compiling SwiftLlama LlamaGrammarConfig.swift
/host/spi-builder-workspace/Sources/SwiftLlama/Llama.swift:1:8: error: no such module 'Foundation'
1 | import Foundation
| `- error: no such module 'Foundation'
2 | import llama
3 |
[10/19] Compiling SwiftLlama LlamaSamplingConfig.swift
/host/spi-builder-workspace/Sources/SwiftLlama/Llama.swift:1:8: error: no such module 'Foundation'
1 | import Foundation
| `- error: no such module 'Foundation'
2 | import llama
3 |
[11/19] Compiling SwiftLlama LlamaService.swift
/host/spi-builder-workspace/Sources/SwiftLlama/Llama.swift:1:8: error: no such module 'Foundation'
1 | import Foundation
| `- error: no such module 'Foundation'
2 | import llama
3 |
[12/19] Compiling SwiftLlama LlamaRepetitionPenaltyConfig.swift
/host/spi-builder-workspace/Sources/SwiftLlama/Llama.swift:1:8: error: no such module 'Foundation'
1 | import Foundation
| `- error: no such module 'Foundation'
2 | import llama
3 |
[13/19] Compiling SwiftLlama LlamaSampler.swift
/host/spi-builder-workspace/Sources/SwiftLlama/Llama.swift:1:8: error: no such module 'Foundation'
1 | import Foundation
| `- error: no such module 'Foundation'
2 | import llama
3 |
[14/21] Compiling SwiftLlama LlamaChatMessage.swift
/host/spi-builder-workspace/Sources/SwiftLlama/Llama.swift:1:8: error: no such module 'Foundation'
1 | import Foundation
| `- error: no such module 'Foundation'
2 | import llama
3 |
[15/21] Compiling SwiftLlama LlamaConfig.swift
/host/spi-builder-workspace/Sources/SwiftLlama/Llama.swift:1:8: error: no such module 'Foundation'
1 | import Foundation
| `- error: no such module 'Foundation'
2 | import llama
3 |
[16/21] Compiling SwiftLlama LlamaContext.swift
/host/spi-builder-workspace/Sources/SwiftLlama/Llama.swift:1:8: error: no such module 'Foundation'
1 | import Foundation
| `- error: no such module 'Foundation'
2 | import llama
3 |
[17/21] Compiling SwiftLlama Llama.swift
/host/spi-builder-workspace/Sources/SwiftLlama/Llama.swift:1:8: error: no such module 'Foundation'
1 | import Foundation
| `- error: no such module 'Foundation'
2 | import llama
3 |
[18/21] Compiling SwiftLlama LlamaBackend.swift
/host/spi-builder-workspace/Sources/SwiftLlama/Llama.swift:1:8: error: no such module 'Foundation'
1 | import Foundation
| `- error: no such module 'Foundation'
2 | import llama
3 |
[19/21] Compiling SwiftLlama LlamaBatch.swift
/host/spi-builder-workspace/Sources/SwiftLlama/Llama.swift:1:8: error: no such module 'Foundation'
1 | import Foundation
| `- error: no such module 'Foundation'
2 | import llama
3 |
[20/21] Compiling SwiftLlama LlamaTypedJSONGrammarBuilder.swift
/host/spi-builder-workspace/Sources/SwiftLlama/Llama.swift:1:8: error: no such module 'Foundation'
1 | import Foundation
| `- error: no such module 'Foundation'
2 | import llama
3 |
[21/21] Compiling SwiftLlama Task+Extensions.swift
/host/spi-builder-workspace/Sources/SwiftLlama/Llama.swift:1:8: error: no such module 'Foundation'
1 | import Foundation
| `- error: no such module 'Foundation'
2 | import llama
3 |
BUILD FAILURE 6.2 wasm