The Swift Package Index logo.Swift Package Index

Has it really been five years since Swift Package Index launched? Read our anniversary blog post!

Build Information

Failed to build LocalLLMClient, reference main (ff3a9e), with Swift 6.2 for Wasm on 27 Nov 2025 17:12:38 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4606859-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-wasip1 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.68.0
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 ff3a9ee Merge pull request #85 from james-333i/fix/mlx-dependencies
Submodule path 'Sources/LocalLLMClientLlamaC/exclude/llama.cpp': checked out '9a3ea685b937c0f0cbfda2e50004ea54bf187512'
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 @):
ff3a9ee35d6136224aadf9346ded5aad2382a3be
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-4606859-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-wasip1 2>&1
wasm-6.2-latest: Pulling from finestructure/spi-images
Digest: sha256:302e3f347c593123f3d337e3da1bfe6e802bb8867614e9dfa745c72e13ca8eeb
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:wasm-6.2-latest
warning: multiple Swift SDKs match target triple `wasm32-unknown-wasip1` and host triple x86_64-unknown-linux-gnu, selected one at /root/.swiftpm/swift-sdks/swift-6.2-RELEASE_wasm.artifactbundle/swift-6.2-RELEASE_wasm/wasm32-unknown-wasip1/swift-sdk.json
Fetching https://github.com/huggingface/swift-jinja
Fetching https://github.com/swiftlang/swift-syntax
Fetching https://github.com/apple/swift-argument-parser.git
[1/783] Fetching swift-jinja
[784/17643] Fetching swift-jinja, swift-argument-parser
[17644/90626] Fetching swift-jinja, swift-argument-parser, swift-syntax
Fetched https://github.com/huggingface/swift-jinja from cache (0.97s)
Fetched https://github.com/apple/swift-argument-parser.git from cache (0.99s)
[9488/72983] Fetching swift-syntax
Fetched https://github.com/swiftlang/swift-syntax from cache (9.09s)
Computing version for https://github.com/apple/swift-argument-parser.git
Computed https://github.com/apple/swift-argument-parser.git at 1.4.0 (9.52s)
Computing version for https://github.com/swiftlang/swift-syntax
Computed https://github.com/swiftlang/swift-syntax at 600.0.1 (2.71s)
Computing version for https://github.com/huggingface/swift-jinja
Computed https://github.com/huggingface/swift-jinja at 2.0.2 (1.39s)
Fetching https://github.com/apple/swift-collections.git
[1/18314] Fetching swift-collections
Fetched https://github.com/apple/swift-collections.git from cache (1.47s)
Computing version for https://github.com/apple/swift-collections.git
Computed https://github.com/apple/swift-collections.git at 1.3.0 (2.09s)
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.3.0
Creating working copy for https://github.com/huggingface/swift-jinja
Working copy of https://github.com/huggingface/swift-jinja resolved at 2.0.2
Downloading package prebuilt https://download.swift.org/prebuilts/swift-syntax/600.0.1/swift-6.2-RELEASE-MacroSupport-ubuntu_jammy_x86_64.tar.gz
Downloaded https://download.swift.org/prebuilts/swift-syntax/600.0.1/swift-6.2-RELEASE-MacroSupport-ubuntu_jammy_x86_64.tar.gz (0.53s)
[1/1] Compiling plugin GenerateManual
Building for debugging...
[1/64] Write sources
[1/64] Copying json.gbnf
[1/64] Write sources
[7/64] Compiling LocalLLMClientLlamaC mtmd-audio.cpp
[8/64] Compiling LocalLLMClientLlamaC utils.cpp
[9/64] Compiling log.cpp
[10/64] Compiling LocalLLMClientLlamaC mtmd.cpp
[11/64] Compiling LocalLLMClientLlamaC clip.cpp
[12/64] Compiling LocalLLMClientLlamaC mtmd-helper.cpp
[12/64] Write sources
[18/64] Compiling LocalLLMClientLlamaC clip.cpp
[19/64] Write sources
[19/64] Copying json.gbnf
[19/64] Write sources
[24/64] Compiling common.cpp
[25/64] Compiling chat-parser.cpp
[26/64] Compiling regex-partial.cpp
[27/64] Compiling LocalLLMClientLlamaC utils.cpp
[28/64] Write swift-version-24593BA9C3E375BF.txt
[29/64] Compiling log.cpp
/host/spi-builder-workspace/Sources/LocalLLMClientLlamaC/mtmd-audio.cpp:233:26: error: no member named 'thread' in namespace 'std'; did you mean 'fread'?
  233 |         std::vector<std::thread> workers(n_threads - 1);
      |                     ~~~~~^~~~~~
      |                          fread
/root/.swiftpm/swift-sdks/swift-6.2-RELEASE_wasm.artifactbundle/swift-6.2-RELEASE_wasm/wasm32-unknown-wasip1/WASI.sdk/include/c++/v1/cstdio:141:9: note: 'fread' declared here
  141 | using ::fread _LIBCPP_USING_IF_EXISTS;
      |         ^
/host/spi-builder-workspace/Sources/LocalLLMClientLlamaC/mtmd-audio.cpp:233:21: error: template argument for template type parameter must be a type
  233 |         std::vector<std::thread> workers(n_threads - 1);
      |                     ^~~~~~~~~~~
/root/.swiftpm/swift-sdks/swift-6.2-RELEASE_wasm.artifactbundle/swift-6.2-RELEASE_wasm/wasm32-unknown-wasip1/WASI.sdk/include/c++/v1/vector:388:17: note: template parameter is declared here
  388 | template <class _Tp, class _Allocator /* = allocator<_Tp> */>
      |                 ^
/host/spi-builder-workspace/Sources/LocalLLMClientLlamaC/mtmd-audio.cpp:235:32: error: no member named 'thread' in namespace 'std'
  235 |             workers[iw] = std::thread(
      |                           ~~~~~^
3 errors generated.
[30/71] Compiling LocalLLMClientLlamaC mtmd-audio.cpp
[30/71] Compiling LocalLLMClientLlamaC mtmd.cpp
In file included from /host/spi-builder-workspace/Sources/LocalLLMClientLlamaC/mtmd-helper.cpp:30:
/host/spi-builder-workspace/Sources/LocalLLMClientLlamaC/miniaudio/miniaudio.h:17614:31: error: use of undeclared identifier 'sched_get_priority_min'
 17614 |             int priorityMin = sched_get_priority_min(scheduler);
       |                               ^
/host/spi-builder-workspace/Sources/LocalLLMClientLlamaC/miniaudio/miniaudio.h:17615:31: error: use of undeclared identifier 'sched_get_priority_max'
 17615 |             int priorityMax = sched_get_priority_max(scheduler);
       |                               ^
/host/spi-builder-workspace/Sources/LocalLLMClientLlamaC/miniaudio/miniaudio.h:17618:32: error: variable has incomplete type 'struct sched_param'
 17618 |             struct sched_param sched;
       |                                ^
/host/spi-builder-workspace/Sources/LocalLLMClientLlamaC/miniaudio/miniaudio.h:17618:20: note: forward declaration of 'sched_param'
 17618 |             struct sched_param sched;
       |                    ^
[30/71] Compiling LocalLLMClientLlamaC mtmd-helper.cpp
[30/71] Compiling regex-partial.cpp
[30/71] Compiling chat.cpp
[30/71] Compiling json-schema-to-grammar.cpp
[30/71] Compiling json-partial.cpp
BUILD FAILURE 6.2 wasm