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 (32ef15), with Swift 6.1 for Wasm on 28 Jun 2025 09:49:57 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4606859-3":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.64.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 32ef156 Merge pull request #33 from tattn/feature/interoperabilityModeCpp
Submodule path 'Sources/LocalLLMClientLlamaC/exclude/llama.cpp': checked out 'bb16041caef45cd4348cd6f84906b5dfec7a1f6a'
Submodule path 'Sources/LocalLLMClientLlamaC/exclude/llama.cpp/ggml/src/ggml-kompute/kompute': checked out '4565194ed7c32d1d2efa32ceab4d3c6cae006306'
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'...
Submodule 'kompute' (https://github.com/nomic-ai/kompute.git) registered for path 'Sources/LocalLLMClientLlamaC/exclude/llama.cpp/ggml/src/ggml-kompute/kompute'
Cloning into '/host/spi-builder-workspace/Sources/LocalLLMClientLlamaC/exclude/llama.cpp/ggml/src/ggml-kompute/kompute'...
Cloned https://github.com/tattn/LocalLLMClient.git
Revision (git rev-parse @):
32ef156c4ed9cfd30cfa28fe93419be07152f3e0
SUCCESS checkout https://github.com/tattn/LocalLLMClient.git at main
========================================
Build
========================================
Selected platform:         wasm
Swift version:             6.1
Building package at path:  $PWD
https://github.com/tattn/LocalLLMClient.git
https://github.com/tattn/LocalLLMClient.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
error: 'spi-builder-workspace': package 'spi-builder-workspace' is using Swift tools version 6.1.0 but the installed version is 6.0.2
error: fatalError
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-3":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures 2>&1
wasm-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:8f9255989265d824b88e7d572b1a334a0dc9b701075ede1970390db95d315c35
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest
Fetching https://github.com/johnmai-dev/Jinja
Fetching https://github.com/apple/swift-argument-parser.git
[1/393] Fetching jinja
[391/15812] Fetching jinja, swift-argument-parser
Fetched https://github.com/johnmai-dev/Jinja from cache (1.33s)
Fetched https://github.com/apple/swift-argument-parser.git from cache (1.35s)
Computing version for https://github.com/apple/swift-argument-parser.git
Computed https://github.com/apple/swift-argument-parser.git at 1.4.0 (2.56s)
Computing version for https://github.com/johnmai-dev/Jinja
Computed https://github.com/johnmai-dev/Jinja at 1.1.2 (1.06s)
Fetching https://github.com/apple/swift-collections.git
[1/16715] Fetching swift-collections
Fetched https://github.com/apple/swift-collections.git from cache (1.61s)
Computing version for https://github.com/apple/swift-collections.git
Computed https://github.com/apple/swift-collections.git at 1.2.0 (2.82s)
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/johnmai-dev/Jinja
Working copy of https://github.com/johnmai-dev/Jinja resolved at 1.1.2
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.0
[1/1] Compiling plugin GenerateManual
Building for debugging...
[1/27] Write sources
[1/27] Copying json.gbnf
[1/27] Write sources
/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-wasm-6.1-RELEASE-wasm32-unknown-wasi.artifactbundle/6.1-RELEASE-wasm32-unknown-wasi/wasm32-unknown-wasi/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-wasm-6.1-RELEASE-wasm32-unknown-wasi.artifactbundle/6.1-RELEASE-wasm32-unknown-wasi/wasm32-unknown-wasi/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(
      |                           ~~~~~^
/host/spi-builder-workspace/Sources/LocalLLMClientLlamaC/mtmd-audio.cpp:269:23: error: implicit instantiation of undefined template 'std::basic_ofstream<char>'
  269 |         std::ofstream outFile("log_mel_spectrogram.json");
      |                       ^
/root/.swiftpm/swift-sdks/swift-wasm-6.1-RELEASE-wasm32-unknown-wasi.artifactbundle/6.1-RELEASE-wasm32-unknown-wasi/wasm32-unknown-wasi/WASI.sdk/include/c++/v1/__fwd/fstream.h:26:28: note: template is declared here
   26 | class _LIBCPP_TEMPLATE_VIS basic_ofstream;
      |                            ^
4 errors generated.
[11/27] Compiling LocalLLMClientLlamaC mtmd-audio.cpp
[11/27] Compiling LocalLLMClientLlamaC clip.cpp
In file included from /host/spi-builder-workspace/Sources/LocalLLMClientLlamaC/mtmd-helper.cpp:30:
/host/spi-builder-workspace/Sources/LocalLLMClientLlamaC/miniaudio/miniaudio.h:3883:18: fatal error: 'pthread.h' file not found
 3883 |         #include <pthread.h>    /* Unfortunate #include, but needed for pthread_t, pthread_mutex_t and pthread_cond_t types. */
      |                  ^~~~~~~~~~~
[11/27] Compiling LocalLLMClientLlamaC mtmd-helper.cpp
[11/27] Compiling LocalLLMClientLlamaC mtmd.cpp
[11/27] Write swift-version-24593BA9C3E375BF.txt
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-3":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1
wasm-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:8f9255989265d824b88e7d572b1a334a0dc9b701075ede1970390db95d315c35
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest
[0/1] Planning build
[1/1] Compiling plugin GenerateManual
Building for debugging...
[1/17] Write swift-version-24593BA9C3E375BF.txt
[3/40] Emitting module InternalCollectionsUtilities
In file included from /host/spi-builder-workspace/Sources/LocalLLMClientLlamaC/mtmd-helper.cpp:30:
/host/spi-builder-workspace/Sources/LocalLLMClientLlamaC/miniaudio/miniaudio.h:3883:18: fatal error: 'pthread.h' file not found
 3883 |         #include <pthread.h>    /* Unfortunate #include, but needed for pthread_t, pthread_mutex_t and pthread_cond_t types. */
      |                  ^~~~~~~~~~~
1 error generated.
[3/41] Compiling LocalLLMClientLlamaC mtmd-helper.cpp
[3/41] Compiling LocalLLMClientLlamaC mtmd.cpp
[3/41] Compiling LocalLLMClientLlamaC mtmd-audio.cpp
[3/41] Compiling LocalLLMClientLlamaC clip.cpp
[4/41] Emitting module ArgumentParserToolInfo
BUILD FAILURE 6.1 wasm