Build Information
Failed to build LocalLLMClient, reference 0.4.1 (a57de2
), with Swift 6.2 (beta) for Wasm on 13 Sep 2025 08:48:42 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>&1
Build Log
========================================
RunAll
========================================
Builder version: 4.67.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/tattn/LocalLLMClient.git
Reference: 0.4.1
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/tattn/LocalLLMClient
* tag 0.4.1 -> FETCH_HEAD
HEAD is now at a57de21 Merge pull request #53 from tattn/bugfix/xcode26-rc
Submodule path 'Sources/LocalLLMClientLlamaC/exclude/llama.cpp': checked out '360d6533db39e11577afe9b0aece20c6b5ddaf1f'
Submodule 'Sources/LlamaClientExperimentalC/exclude/llama.cpp' (https://github.com/ggml-org/llama.cpp.git) registered for path 'Sources/LocalLLMClientLlamaC/exclude/llama.cpp'
Cloning into '/host/spi-builder-workspace/Sources/LocalLLMClientLlamaC/exclude/llama.cpp'...
Cloned https://github.com/tattn/LocalLLMClient.git
Revision (git rev-parse @):
a57de2171ad6db826af08e01d2086713ce4fa44b
SUCCESS checkout https://github.com/tattn/LocalLLMClient.git at 0.4.1
========================================
Build
========================================
Selected platform: wasm
Swift version: 6.2
Building package at path: $PWD
https://github.com/tattn/LocalLLMClient.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
Fetching https://github.com/swiftlang/swift-syntax
Fetching https://github.com/johnmai-dev/Jinja
Fetching https://github.com/apple/swift-argument-parser.git
[1/572] Fetching jinja
[573/16529] Fetching jinja, swift-argument-parser
[13818/88443] Fetching jinja, swift-argument-parser, swift-syntax
Fetched https://github.com/johnmai-dev/Jinja from cache (0.80s)
[26745/87871] Fetching swift-argument-parser, swift-syntax
Fetched https://github.com/apple/swift-argument-parser.git from cache (6.72s)
Fetched https://github.com/swiftlang/swift-syntax from cache (6.76s)
Computing version for https://github.com/apple/swift-argument-parser.git
Computed https://github.com/apple/swift-argument-parser.git at 1.4.0 (7.17s)
Computing version for https://github.com/swiftlang/swift-syntax
Computed https://github.com/swiftlang/swift-syntax at 600.0.1 (2.33s)
Computing version for https://github.com/johnmai-dev/Jinja
Computed https://github.com/johnmai-dev/Jinja at 1.2.4 (0.38s)
Fetching https://github.com/apple/swift-collections.git
[175/17460] Fetching swift-collections
Fetched https://github.com/apple/swift-collections.git from cache (1.18s)
Computing version for https://github.com/apple/swift-collections.git
Computed https://github.com/apple/swift-collections.git at 1.2.1 (1.91s)
Creating working copy for https://github.com/johnmai-dev/Jinja
Working copy of https://github.com/johnmai-dev/Jinja resolved at 1.2.4
Creating working copy for https://github.com/apple/swift-argument-parser.git
Working copy of https://github.com/apple/swift-argument-parser.git resolved at 1.4.0
Creating working copy for https://github.com/swiftlang/swift-syntax
Working copy of https://github.com/swiftlang/swift-syntax resolved at 600.0.1
Creating working copy for https://github.com/apple/swift-collections.git
Working copy of https://github.com/apple/swift-collections.git resolved at 1.2.1
[1/1] Compiling plugin GenerateManual
Building for debugging...
[1/93] Compiling LocalLLMClientLlamaC utils.cpp
[2/93] Compiling _SwiftSyntaxCShims dummy.c
[2/93] Write sources
[2/93] Copying json.gbnf
[2/93] Write sources
/host/spi-builder-workspace/Sources/LocalLLMClientLlamaC/common/common.cpp:119:35: error: no member named 'thread' in namespace 'std'
119 | unsigned int n_threads = std::thread::hardware_concurrency();
| ~~~~~^
In file included from /host/spi-builder-workspace/Sources/LocalLLMClientLlamaC/common/common.cpp:224:
/root/.swiftpm/swift-sdks/swift-6.2-DEVELOPMENT-SNAPSHOT-2025-05-30-a_wasm.artifactbundle/swift-6.2-DEVELOPMENT-SNAPSHOT-2025-05-30-a_wasm/wasm32-unknown-wasi/WASI.sdk/include/wasm32-wasi/sys/resource.h:2:2: error: WASI lacks process-associated clocks; to enable emulation of the `getrusage` function using the wall clock, which isn't sensitive to whether the program is running or suspended, compile with -D_WASI_EMULATED_PROCESS_CLOCKS and link with -lwasi-emulated-process-clocks
2 | #error WASI lacks process-associated clocks; to enable emulation of the `getrusage` function using \
| ^
/host/spi-builder-workspace/Sources/LocalLLMClientLlamaC/common/common.cpp:240:22: error: use of undeclared identifier 'PRIO_PROCESS'
240 | if (!setpriority(PRIO_PROCESS, 0, p)) {
| ^
/host/spi-builder-workspace/Sources/LocalLLMClientLlamaC/common/common.cpp:379:25: error: no member named 'thread' in namespace 'std'
379 | os << " / " << std::thread::hardware_concurrency() << " | " << llama_print_system_info();
| ~~~~~^
/host/spi-builder-workspace/Sources/LocalLLMClientLlamaC/common/common.cpp:875:4: error: Unknown architecture
875 | # error Unknown architecture
| ^
5 errors generated.
[23/93] Compiling common.cpp
[23/93] Compiling chat.cpp
[23/93] Compiling common.cpp
[23/93] Compiling chat-parser.cpp
[23/93] Compiling LocalLLMClientLlamaC clip.cpp
[23/93] Compiling chat-parser.cpp
[23/93] Compiling LocalLLMClientLlamaC mtmd.cpp
[23/93] Compiling chat.cpp
BUILD FAILURE 6.2 wasm