Build Information
Failed to build LocalLLMClient, reference main (257f52
), with Swift 6.2 (beta) for Wasm on 13 Sep 2025 00:23:29 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: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: 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/tattn/LocalLLMClient
* branch main -> FETCH_HEAD
* [new branch] main -> origin/main
HEAD is now at 257f52c Merge pull request #49 from tattn/update-llama-dependency-20250905171955
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 @):
257f52cda8e014d3d33f139dcf9161d8a00b7e31
SUCCESS checkout https://github.com/tattn/LocalLLMClient.git at main
========================================
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-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: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/johnmai-dev/Jinja
Fetching https://github.com/apple/swift-argument-parser.git
Fetching https://github.com/swiftlang/swift-syntax
[1/15957] Fetching swift-argument-parser
[480/16529] Fetching swift-argument-parser, jinja
[16530/88442] Fetching swift-argument-parser, jinja, swift-syntax
Fetched https://github.com/johnmai-dev/Jinja from cache (0.63s)
Fetched https://github.com/apple/swift-argument-parser.git from cache (0.64s)
[9349/71913] Fetching swift-syntax
Fetched https://github.com/swiftlang/swift-syntax from cache (5.20s)
Computing version for https://github.com/apple/swift-argument-parser.git
Computed https://github.com/apple/swift-argument-parser.git at 1.4.0 (6.48s)
Computing version for https://github.com/swiftlang/swift-syntax
Computed https://github.com/swiftlang/swift-syntax at 600.0.1 (3.50s)
Computing version for https://github.com/johnmai-dev/Jinja
Computed https://github.com/johnmai-dev/Jinja at 1.2.4 (0.31s)
Fetching https://github.com/apple/swift-collections.git
[1/17460] Fetching swift-collections
Fetched https://github.com/apple/swift-collections.git from cache (2.56s)
Computing version for https://github.com/apple/swift-collections.git
Computed https://github.com/apple/swift-collections.git at 1.2.1 (3.15s)
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
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/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
[1/1] Compiling plugin GenerateManual
Building for debugging...
[1/93] Write sources
[7/93] Copying json.gbnf
[7/93] Write sources
[21/93] Compiling _SwiftSyntaxCShims dummy.c
[22/93] Compiling LocalLLMClientLlamaC utils.cpp
[23/93] Compiling LocalLLMClientLlamaC mtmd.cpp
/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.
[24/93] Compiling common.cpp
[24/93] Compiling LocalLLMClientLlamaC mtmd-helper.cpp
[24/93] Compiling LocalLLMClientLlamaC clip.cpp
[24/93] Compiling chat-parser.cpp
[24/93] Compiling common.cpp
[24/93] Compiling chat.cpp
[24/93] Compiling LocalLLMClientLlamaC mtmd-audio.cpp
BUILD FAILURE 6.2 wasm