Build Information
Failed to build LocalLLMClient, reference 0.4.6 (ff3a9e), with Swift 6.2 for Wasm on 27 Nov 2025 17:13:13 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.2-latest swift build --swift-sdk wasm32-unknown-wasip1 2>&1Build Log
========================================
RunAll
========================================
Builder version: 4.68.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/tattn/LocalLLMClient.git
Reference: 0.4.6
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.6 -> FETCH_HEAD
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 0.4.6
========================================
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-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.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
[291/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.77s)
Fetched https://github.com/apple/swift-argument-parser.git from cache (0.78s)
[10218/72983] Fetching swift-syntax
Fetched https://github.com/swiftlang/swift-syntax from cache (6.89s)
Computing version for https://github.com/apple/swift-argument-parser.git
Computed https://github.com/apple/swift-argument-parser.git at 1.4.0 (7.72s)
Computing version for https://github.com/swiftlang/swift-syntax
Computed https://github.com/swiftlang/swift-syntax at 600.0.1 (3.21s)
Computing version for https://github.com/huggingface/swift-jinja
Computed https://github.com/huggingface/swift-jinja at 2.0.2 (0.43s)
Fetching https://github.com/apple/swift-collections.git
[1/18314] Fetching swift-collections
Fetched https://github.com/apple/swift-collections.git from cache (1.49s)
Computing version for https://github.com/apple/swift-collections.git
Computed https://github.com/apple/swift-collections.git at 1.3.0 (2.37s)
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/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/huggingface/swift-jinja
Working copy of https://github.com/huggingface/swift-jinja resolved at 2.0.2
Creating working copy for https://github.com/swiftlang/swift-syntax
Working copy of https://github.com/swiftlang/swift-syntax resolved at 600.0.1
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.63s)
[1/1] Compiling plugin GenerateManual
Building for debugging...
[1/64] Write sources
[3/64] Copying json.gbnf
[4/64] Write sources
[7/64] Compiling LocalLLMClientLlamaC utils.cpp
[8/64] Compiling LocalLLMClientLlamaC mtmd.cpp
[9/64] Compiling LocalLLMClientLlamaC clip.cpp
[10/64] Compiling LocalLLMClientLlamaC mtmd-audio.cpp
[11/64] Compiling log.cpp
[12/64] Compiling LocalLLMClientLlamaC clip.cpp
[13/64] Compiling chat-parser.cpp
[15/64] Write sources
[20/64] Write swift-version-24593BA9C3E375BF.txt
[20/64] Write sources
[20/64] Copying json.gbnf
[20/64] Write sources
[26/64] Compiling LocalLLMClientLlamaC mtmd-helper.cpp
[27/71] Compiling regex-partial.cpp
[28/78] Compiling LocalLLMClientLlamaC utils.cpp
[29/84] Compiling common.cpp
[30/100] Compiling json-partial.cpp
[32/100] Compiling InternalCollectionsUtilities LifetimeOverride.swift
[33/100] Compiling InternalCollectionsUtilities RandomAccessCollection+Offsets.swift
[34/102] Compiling InternalCollectionsUtilities _UnsafeBitSet+_Word.swift
[35/102] Compiling InternalCollectionsUtilities _UnsafeBitSet.swift
[36/102] Compiling InternalCollectionsUtilities UInt+reversed.swift
[37/102] Compiling InternalCollectionsUtilities _UnsafeBitSet+Index.swift
[38/102] Compiling InternalCollectionsUtilities UnsafeBufferPointer+Extras.swift
[39/102] Compiling InternalCollectionsUtilities UnsafeMutableBufferPointer+Extras.swift
[40/102] Compiling InternalCollectionsUtilities Debugging.swift
[41/102] Compiling InternalCollectionsUtilities Descriptions.swift
[42/102] Compiling InternalCollectionsUtilities _SortedCollection.swift
[43/102] Compiling InternalCollectionsUtilities _UniqueCollection.swift
[44/102] Compiling LocalLLMClientMacrosPlugin ToolArgumentEnumMacro.swift
[45/102] Compiling LocalLLMClientMacrosPlugin ToolArgumentMacro.swift
[46/102] Compiling InternalCollectionsUtilities UnsafeMutableRawBufferPointer+Extras.swift
[47/102] Compiling InternalCollectionsUtilities UnsafeRawBufferPointer+Extras.swift
[47/102] Compiling json-schema-to-grammar.cpp
[49/102] Compiling LocalLLMClientMacrosPlugin LocalLLMClientMacrosPlugin.swift
[50/102] Compiling InternalCollectionsUtilities FixedWidthInteger+roundUpToPowerOfTwo.swift
[51/102] Compiling InternalCollectionsUtilities Integer rank.swift
[52/102] Compiling InternalCollectionsUtilities UInt+first and last set bit.swift
[53/102] Emitting module InternalCollectionsUtilities
[55/103] Compiling LocalLLMClientMacrosPlugin ToolMacro.swift
[56/103] Compiling LocalLLMClientUtility Lock.swift
[57/103] Compiling LocalLLMClientUtility URL+.swift
[58/103] Emitting module LocalLLMClientMacrosPlugin
[59/103] Compiling LocalLLMClientMacrosPlugin ToolArgumentsMacro.swift
[60/104] Compiling LocalLLMClientUtility HuggingFaceAPI.swift
[61/104] Compiling LocalLLMClientUtility Globs.swift
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;
| ^
3 errors generated.
[62/104] Compiling LocalLLMClientLlamaC mtmd-helper.cpp
[63/104] Emitting module LocalLLMClientUtility
[63/104] Compiling LocalLLMClientLlamaC mtmd-audio.cpp
[64/104] Compiling LocalLLMClientUtility Downloader.swift
[64/104] Compiling LocalLLMClientLlamaC mtmd.cpp
[65/104] Compiling LocalLLMClientUtility Globs.swift
/host/spi-builder-workspace/Sources/LocalLLMClientUtility/Lock.swift:4:8: error: no such module 'Glibc'
2 | import os
3 | #else
4 | import Glibc
| `- error: no such module 'Glibc'
5 | #endif
6 |
[65/104] Compiling chat.cpp
BUILD FAILURE 6.2 wasm