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 0.4.1 (a57de2), with Swift 6.1 for Wasm on 13 Sep 2025 08:49:54 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4606859-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.1-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.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-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.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:eb0758f51dbd6991fb9e51dedbfbcbec142ffc0d3b9b8ad91fa19d35e5136f0a
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest
Fetching https://github.com/apple/swift-argument-parser.git
Fetching https://github.com/johnmai-dev/Jinja
Fetching https://github.com/swiftlang/swift-syntax
[1/572] Fetching jinja
[573/16529] Fetching jinja, swift-argument-parser
[16530/88443] Fetching jinja, swift-argument-parser, swift-syntax
Fetched https://github.com/johnmai-dev/Jinja from cache (0.68s)
Fetched https://github.com/apple/swift-argument-parser.git from cache (0.69s)
[9349/71914] Fetching swift-syntax
Fetched https://github.com/swiftlang/swift-syntax from cache (4.75s)
Computing version for https://github.com/apple/swift-argument-parser.git
Computed https://github.com/apple/swift-argument-parser.git at 1.4.0 (5.37s)
Computing version for https://github.com/swiftlang/swift-syntax
Computed https://github.com/swiftlang/swift-syntax at 600.0.1 (2.60s)
Computing version for https://github.com/johnmai-dev/Jinja
Computed https://github.com/johnmai-dev/Jinja at 1.2.4 (0.52s)
Fetching https://github.com/apple/swift-collections.git
[1/17460] Fetching swift-collections
Fetched https://github.com/apple/swift-collections.git from cache (1.85s)
Computing version for https://github.com/apple/swift-collections.git
Computed https://github.com/apple/swift-collections.git at 1.2.1 (3.11s)
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/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-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/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...
/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-wasm-6.1-RELEASE-wasm32-unknown-wasi.artifactbundle/6.1-RELEASE-wasm32-unknown-wasi/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.
[1/93] Compiling common.cpp
[1/93] Compiling json-partial.cpp
[1/93] Compiling LocalLLMClientLlamaC clip.cpp
[1/93] Compiling json-partial.cpp
[1/93] Compiling chat.cpp
[1/93] Compiling chat-parser.cpp
[1/93] Compiling common.cpp
[1/93] Compiling chat.cpp
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-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.1-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1
wasm-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:eb0758f51dbd6991fb9e51dedbfbcbec142ffc0d3b9b8ad91fa19d35e5136f0a
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/93] Write sources
[16/93] Copying json.gbnf
[16/93] Write sources
[23/93] Compiling _SwiftSyntaxCShims dummy.c
[24/93] Compiling log.cpp
[25/93] Compiling LocalLLMClientLlamaC mtmd-audio.cpp
[26/93] Compiling LocalLLMClientLlamaC utils.cpp
[27/93] Compiling LocalLLMClientLlamaC mtmd.cpp
[28/93] Compiling regex-partial.cpp
[28/93] Write sources
[33/93] Write swift-version-24593BA9C3E375BF.txt
[33/93] Copying json.gbnf
[33/93] Write sources
[38/93] Compiling common.cpp
[39/93] Compiling LocalLLMClientLlamaC mtmd-helper.cpp
[40/97] Compiling json-partial.cpp
[42/97] Emitting module SwiftSyntax600
[42/99] Compiling LocalLLMClientLlamaC clip.cpp
[43/106] Compiling LocalLLMClientLlamaC utils.cpp
[44/106] Compiling chat-parser.cpp
[46/127] Compiling SwiftSyntax600 Empty.swift
[47/128] Emitting module SwiftSyntax510
[48/128] Compiling SwiftSyntax510 Empty.swift
[49/129] Emitting module InternalCollectionsUtilities
[50/129] Compiling InternalCollectionsUtilities FixedWidthInteger+roundUpToPowerOfTwo.swift
[51/129] Compiling InternalCollectionsUtilities Integer rank.swift
[52/129] Compiling InternalCollectionsUtilities UInt+first and last set bit.swift
[53/129] Compiling InternalCollectionsUtilities UInt+reversed.swift
[54/129] Compiling InternalCollectionsUtilities _UnsafeBitSet.swift
[55/129] Compiling InternalCollectionsUtilities _SortedCollection.swift
[56/129] Compiling InternalCollectionsUtilities _UnsafeBitSet+Index.swift
[57/129] Compiling InternalCollectionsUtilities _UnsafeBitSet+_Word.swift
[58/130] Compiling InternalCollectionsUtilities _UniqueCollection.swift
[59/130] Compiling InternalCollectionsUtilities Debugging.swift
[60/130] Compiling InternalCollectionsUtilities Descriptions.swift
[61/130] Compiling InternalCollectionsUtilities RandomAccessCollection+Offsets.swift
[63/130] Emitting module SwiftSyntax509
[64/130] Compiling SwiftSyntax509 Empty.swift
[65/131] Compiling InternalCollectionsUtilities UnsafeBufferPointer+Extras.swift
[67/131] Wrapping AST for SwiftSyntax600 for debugging
[69/131] Compiling InternalCollectionsUtilities UnsafeMutableBufferPointer+Extras.swift
[69/132] Wrapping AST for SwiftSyntax510 for debugging
[71/172] Wrapping AST for SwiftSyntax509 for debugging
[72/251] Compiling json-schema-to-grammar.cpp
[74/251] Compiling OrderedCollections OrderedSet+Partial SetAlgebra intersection.swift
[75/251] Compiling OrderedCollections OrderedSet+Partial SetAlgebra isDisjoint.swift
[76/251] Compiling OrderedCollections OrderedSet+Partial SetAlgebra isEqualSet.swift
[77/251] Compiling OrderedCollections OrderedSet+Partial SetAlgebra isStrictSubset.swift
[78/251] Compiling OrderedCollections OrderedSet+Partial SetAlgebra isStrictSuperset.swift
[79/251] Compiling OrderedCollections OrderedSet+Partial SetAlgebra isSubset.swift
[80/251] Compiling OrderedCollections OrderedSet+Partial SetAlgebra isSuperset.swift
[81/258] Compiling OrderedCollections OrderedSet+Partial SetAlgebra subtract.swift
[82/258] Compiling OrderedCollections OrderedSet+Partial SetAlgebra subtracting.swift
[83/258] Compiling OrderedCollections OrderedSet+Partial SetAlgebra symmetricDifference.swift
[84/258] Compiling OrderedCollections OrderedSet+Partial SetAlgebra union.swift
[85/258] Compiling OrderedCollections OrderedSet+Partial SetAlgebra+Basics.swift
[86/258] Compiling OrderedCollections OrderedSet+RandomAccessCollection.swift
[87/258] Compiling OrderedCollections OrderedSet+ReserveCapacity.swift
[88/258] Compiling OrderedCollections OrderedDictionary.swift
[89/258] Compiling OrderedCollections OrderedSet+Codable.swift
[90/258] Compiling OrderedCollections OrderedSet+CustomReflectable.swift
[91/258] Compiling OrderedCollections OrderedSet+Descriptions.swift
[92/258] Compiling OrderedCollections OrderedSet+Diffing.swift
[93/258] Compiling OrderedCollections OrderedSet+Equatable.swift
[94/258] Compiling OrderedCollections OrderedSet+ExpressibleByArrayLiteral.swift
[95/258] Compiling OrderedCollections OrderedSet+Hashable.swift
[96/258] Compiling OrderedCollections OrderedSet+Initializers.swift
[97/258] Compiling OrderedCollections OrderedSet+Insertions.swift
[98/258] Compiling OrderedCollections OrderedSet+Invariants.swift
[99/258] Compiling OrderedCollections OrderedSet+Partial MutableCollection.swift
[100/258] Compiling OrderedCollections OrderedSet+Partial RangeReplaceableCollection.swift
[101/258] Compiling OrderedCollections OrderedSet+Partial SetAlgebra formIntersection.swift
[102/258] Compiling OrderedCollections OrderedSet+Partial SetAlgebra formSymmetricDifference.swift
[103/258] Compiling OrderedCollections OrderedSet+Partial SetAlgebra formUnion.swift
[104/258] Compiling OrderedCollections OrderedDictionary+Hashable.swift
[105/258] Compiling OrderedCollections OrderedDictionary+Initializers.swift
[106/258] Compiling OrderedCollections OrderedDictionary+Invariants.swift
[107/258] Compiling OrderedCollections OrderedDictionary+Partial MutableCollection.swift
[108/258] Compiling OrderedCollections OrderedDictionary+Partial RangeReplaceableCollection.swift
[109/258] Compiling OrderedCollections OrderedDictionary+Sendable.swift
[110/258] Compiling OrderedCollections OrderedDictionary+Sequence.swift
[111/258] Compiling OrderedCollections OrderedDictionary+Values.swift
[112/258] Compiling OrderedCollections OrderedDictionary+Codable.swift
[113/258] Compiling OrderedCollections OrderedDictionary+CustomReflectable.swift
[114/258] Compiling OrderedCollections OrderedDictionary+Deprecations.swift
[115/258] Compiling OrderedCollections OrderedDictionary+Descriptions.swift
[116/258] Compiling OrderedCollections OrderedDictionary+Elements.SubSequence.swift
[117/258] Compiling OrderedCollections OrderedDictionary+Elements.swift
[118/258] Compiling OrderedCollections OrderedDictionary+Equatable.swift
[119/258] Compiling OrderedCollections OrderedDictionary+ExpressibleByDictionaryLiteral.swift
[120/258] Compiling LocalLLMClientUtility Lock.swift
[121/258] Compiling LocalLLMClientUtility URL+.swift
[122/258] Compiling OrderedCollections _HashTable+Bucket.swift
[123/258] Compiling OrderedCollections _HashTable+BucketIterator.swift
[124/258] Compiling OrderedCollections _HashTable+Constants.swift
[125/258] Compiling OrderedCollections _HashTable+CustomStringConvertible.swift
[126/258] Compiling OrderedCollections _HashTable+Testing.swift
[127/258] Compiling OrderedCollections _HashTable+UnsafeHandle.swift
[128/258] Compiling OrderedCollections _HashTable.swift
[129/258] Compiling OrderedCollections _Hashtable+Header.swift
[130/258] Compiling LocalLLMClientUtility Downloader.swift
[131/258] Compiling OrderedCollections OrderedSet+Sendable.swift
[132/258] Compiling OrderedCollections OrderedSet+SubSequence.swift
[133/258] Compiling OrderedCollections OrderedSet+Testing.swift
[134/258] Compiling OrderedCollections OrderedSet+UnorderedView.swift
[135/258] Compiling OrderedCollections OrderedSet+UnstableInternals.swift
[136/258] Compiling OrderedCollections OrderedSet.swift
[137/258] Compiling OrderedCollections _UnsafeBitset.swift
[138/258] Emitting module OrderedCollections
[139/259] Compiling LocalLLMClientUtility Globs.swift
[140/259] Compiling LocalLLMClientUtility FileDownloader.swift
[141/259] Emitting module LocalLLMClientUtility
[142/259] Compiling LocalLLMClientUtility HuggingFaceAPI.swift
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.
[144/260] Compiling LocalLLMClientLlamaC mtmd-helper.cpp
[144/260] Compiling regex-partial.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-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;
      |                            ^
[144/260] Compiling LocalLLMClientLlamaC mtmd-audio.cpp
[144/260] Compiling LocalLLMClientLlamaC mtmd.cpp
[144/260] Compiling chat.cpp
BUILD FAILURE 6.1 wasm