The Swift Package Index logo.Swift Package Index

Build Information

Failed to build LocalLLMClient, reference main (b68f71), with Swift 6.1 for Wasm on 27 Aug 2026 03:30:10 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-53886769-0":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/saguaro1/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 5.0.2
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 b68f712 Allow tools whose schema is only known at runtime (#100)
Submodule path 'Sources/LocalLLMClientLlamaC/exclude/llama.cpp': checked out 'e365e658f07b63371489570dfde597f199b26c23'
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 @):
b68f71244baf308469a190cce4f54edf2fde4887
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
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-53886769-0":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/saguaro1/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 saguaro1/spi-images
Digest: sha256:290f441d1f5b7bf0dbbe61e8b7514208804cdcb507d57b3c762463ad036298f7
Status: Image is up to date for registry.gitlab.com/saguaro1/spi-images:wasm-6.1-latest
Fetching https://github.com/apple/swift-argument-parser.git
Fetching https://github.com/huggingface/swift-jinja
Fetching https://github.com/swiftlang/swift-syntax
[1/18599] Fetching swift-argument-parser
[2/19880] Fetching swift-argument-parser, swift-jinja
[19881/99022] Fetching swift-argument-parser, swift-jinja, swift-syntax
Fetched https://github.com/huggingface/swift-jinja from cache (2.72s)
Fetched https://github.com/apple/swift-argument-parser.git from cache (2.73s)
Fetched https://github.com/swiftlang/swift-syntax from cache (2.74s)
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.98s)
Computing version for https://github.com/huggingface/swift-jinja
Computed https://github.com/huggingface/swift-jinja at 2.4.2 (0.20s)
Fetching https://github.com/apple/swift-collections.git
[1/26970] Fetching swift-collections
Fetched https://github.com/apple/swift-collections.git from cache (1.22s)
Computing version for https://github.com/swiftlang/swift-syntax
Computed https://github.com/swiftlang/swift-syntax at 603.0.2 (2.21s)
Computing version for https://github.com/apple/swift-collections.git
Computed https://github.com/apple/swift-collections.git at 1.6.0 (0.32s)
Creating working copy for https://github.com/swiftlang/swift-syntax
Working copy of https://github.com/swiftlang/swift-syntax resolved at 603.0.2
Creating working copy for https://github.com/huggingface/swift-jinja
Working copy of https://github.com/huggingface/swift-jinja resolved at 2.4.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.6.0
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/181] Compiling build-info.cpp
[3/181] Write sources
[22/181] Copying json.gbnf
[23/181] Write sources
[27/181] Compiling _SwiftSyntaxCShims PlatformMutex.c
/host/spi-builder-workspace/Sources/LocalLLMClientLlamaC/clip.cpp:1557:20: error: implicit instantiation of undefined template 'std::basic_ifstream<char>'
 1557 |         auto fin = std::ifstream(fname, std::ios::binary);
      |                    ^
/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:24:28: note: template is declared here
   24 | class _LIBCPP_TEMPLATE_VIS basic_ifstream;
      |                            ^
1 error generated.
[28/181] Compiling LocalLLMClientLlamaC clip.cpp
[28/181] Compiling LocalLLMClientLlamaC utils.cpp
[28/181] Compiling chat-auto-parser-helpers.cpp
[28/181] Compiling chat-auto-parser-generator.cpp
[28/181] Compiling LocalLLMClientLlamaC mtmd.cpp
[28/181] Compiling LocalLLMClientLlamaC clip.cpp
[28/181] Compiling peg-parser.cpp
[28/181] Compiling chat-peg-parser.cpp
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-53886769-0":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/saguaro1/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1
wasm-6.1-latest: Pulling from saguaro1/spi-images
Digest: sha256:290f441d1f5b7bf0dbbe61e8b7514208804cdcb507d57b3c762463ad036298f7
Status: Image is up to date for registry.gitlab.com/saguaro1/spi-images:wasm-6.1-latest
[0/1] Planning build
[1/1] Compiling plugin GenerateManual
Building for debugging...
[1/154] Write sources
[1/154] Copying json.gbnf
[6/154] Compiling step3vl.cpp
[7/154] Compiling youtuvl.cpp
[7/154] Compiling whisper-enc.cpp
[9/154] Compiling LocalLLMClientLlamaC mtmd-image.cpp
[10/154] Compiling LocalLLMClientLlamaC mtmd-audio.cpp
[11/154] Compiling LocalLLMClientLlamaC mtmd.cpp
[12/154] Compiling siglip.cpp
[12/154] Compiling qwen3vl.cpp
[14/154] Compiling qwen3a.cpp
[15/154] Compiling LocalLLMClientLlamaC utils.cpp
[16/154] Compiling qwen2vl.cpp
[17/154] Compiling pixtral.cpp
[18/154] Compiling LocalLLMClientLlamaC mtmd-helper.cpp
[19/154] Compiling paddleocr.cpp
[20/154] Compiling nemotron-v2-vl.cpp
[21/154] Compiling minicpmv.cpp
[22/154] Compiling mobilenetv5.cpp
[23/154] Compiling llava.cpp
[24/154] Compiling llama4.cpp
[25/154] Compiling kimivl.cpp
[26/154] Compiling kimik25.cpp
[27/154] Compiling internvl.cpp
[28/154] Compiling hunyuanocr.cpp
[29/154] Compiling glm4v.cpp
[30/154] Compiling gemma4v.cpp
[31/154] Compiling gemma4a.cpp
[32/154] Compiling dotsocr.cpp
[33/154] Compiling deepseekocr.cpp
[34/154] Compiling conformer.cpp
[35/154] Compiling cogvlm.cpp
[36/154] Compiling string.cpp
[37/154] Compiling unicode.cpp
[38/154] Compiling lexer.cpp
[39/154] Compiling reasoning-budget.cpp
[40/154] Compiling log.cpp
[41/154] Compiling runtime.cpp
[42/154] Compiling sampling.cpp
[43/154] Compiling parser.cpp
[44/154] Compiling regex-partial.cpp
[45/154] Compiling value.cpp
[46/154] Compiling caps.cpp
[47/154] Compiling common.cpp
[48/154] Compiling json-partial.cpp
[49/154] Compiling json-schema-to-grammar.cpp
[49/154] Write sources
[53/154] Compiling chat-auto-parser-helpers.cpp
[54/154] Write sources
[57/154] Write swift-version-24593BA9C3E375BF.txt
[58/154] Compiling chat-peg-parser.cpp
[59/156] Compiling LocalLLMClientLlamaC clip.cpp
[60/158] Compiling chat-auto-parser-generator.cpp
[61/160] Compiling chat.cpp
[63/160] Emitting module SwiftSyntax601
[63/162] Compiling LocalLLMClientLlamaC mtmd.cpp
[64/164] Compiling LocalLLMClientLlamaC utils.cpp
[65/164] Compiling chat-diff-analyzer.cpp
[66/164] Compiling peg-parser.cpp
[68/180] Emitting module SwiftSyntax509
[69/180] Compiling SwiftSyntax509 Empty.swift
[70/181] Emitting module SwiftSyntax603
[71/181] Compiling SwiftSyntax603 Empty.swift
[72/182] Compiling SwiftSyntax510 Empty.swift
[73/182] Emitting module SwiftSyntax510
[74/182] Emitting module SwiftSyntax600
[75/183] Compiling SwiftSyntax600 Empty.swift
[79/184] Compiling SwiftSyntax601 Empty.swift
[81/185] Emitting module SwiftSyntax602
[82/185] Compiling SwiftSyntax602 Empty.swift
[83/186] Wrapping AST for SwiftSyntax603 for debugging
[84/186] Wrapping AST for SwiftSyntax509 for debugging
[85/186] Wrapping AST for SwiftSyntax510 for debugging
[87/204] Wrapping AST for SwiftSyntax600 for debugging
[88/204] Wrapping AST for SwiftSyntax602 for debugging
[89/204] Wrapping AST for SwiftSyntax601 for debugging
[91/267] Compiling SwiftSyntax Identifier.swift
[92/267] Compiling SwiftSyntax MemoryLayout.swift
[93/267] Compiling SwiftSyntax MissingNodeInitializers.swift
[94/269] Compiling SwiftSyntax SyntaxCollections.swift
[95/269] Compiling SwiftSyntax SyntaxEnum.swift
[96/269] Compiling SwiftSyntax SyntaxAnyVisitor.swift
[97/269] Compiling SwiftSyntax SyntaxBaseNodes.swift
[98/269] Compiling InternalCollectionsUtilities _SortedCollection.swift
[99/269] Compiling InternalCollectionsUtilities _UniqueCollection.swift
[100/269] Emitting module InternalCollectionsUtilities
[101/269] Compiling SwiftSyntax Keyword.swift
[102/269] Compiling SwiftSyntax RenamedChildrenCompatibility.swift
[103/269] Compiling SwiftSyntax RenamedNodesCompatibility.swift
[104/269] Compiling SwiftSyntax SourceEdit.swift
[105/269] Compiling SwiftSyntax ChildNameForKeyPath.swift
[106/269] Compiling SwiftSyntax RawSyntaxLayoutView.swift
[107/269] Compiling SwiftSyntax RawSyntaxNodeProtocol.swift
[108/269] Compiling SwiftSyntax RawSyntaxTokenView.swift
[109/269] Compiling SwiftSyntax RawSyntax.swift
[110/269] Compiling SwiftSyntax RawSyntaxArena.swift
In file included from /host/spi-builder-workspace/Sources/LocalLLMClientLlamaC/mtmd-helper.cpp:30:
/host/spi-builder-workspace/Sources/LocalLLMClientLlamaC/miniaudio/miniaudio.h:3907:22: fatal error: 'pthread.h' file not found
 3907 |             #include <pthread.h>    /* Unfortunate #include, but needed for pthread_t, pthread_mutex_t and pthread_cond_t types. */
      |                      ^~~~~~~~~~~
1 error generated.
[111/270] Compiling LocalLLMClientLlamaC mtmd-helper.cpp
[111/270] Compiling whisper-enc.cpp
[111/270] Compiling youtuvl.cpp
[111/270] Compiling LocalLLMClientLlamaC mtmd-image.cpp
/host/spi-builder-workspace/Sources/LocalLLMClientLlamaC/mtmd-audio.cpp:447:26: error: no member named 'thread' in namespace 'std'; did you mean 'fread'?
  447 |         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:447:21: error: template argument for template type parameter must be a type
  447 |         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:450:22: error: no member named 'thread' in namespace 'std'
  450 |                 std::thread(log_mel_spectrogram_worker_thread, iw + 1, hann, std::cref(samples_padded), n_samples,
      |                 ~~~~~^
/host/spi-builder-workspace/Sources/LocalLLMClientLlamaC/mtmd-audio.cpp:511:23: error: implicit instantiation of undefined template 'std::basic_ofstream<char>'
  511 |         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;
      |                            ^
[111/270] Compiling LocalLLMClientLlamaC mtmd-audio.cpp
BUILD FAILURE 6.1 wasm