Build Information
Failed to build Typesense, reference v2.0.0-rc.1 (0d9335), with Swift 6.2 for Wasm on 19 Dec 2025 09:11:57 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>&1Build Log
========================================
RunAll
========================================
Builder version: 4.68.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/typesense/typesense-swift.git
Reference: v2.0.0-rc.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/typesense/typesense-swift
* tag v2.0.0-rc.1 -> FETCH_HEAD
HEAD is now at 0d93356 Merge pull request #48 from haydenhoang/v2
Cloned https://github.com/typesense/typesense-swift.git
Revision (git rev-parse @):
0d9335697a73d19a25a21e14678e8251314a33af
SUCCESS checkout https://github.com/typesense/typesense-swift.git at v2.0.0-rc.1
========================================
Build
========================================
Selected platform: wasm
Swift version: 6.2
Building package at path: $PWD
https://github.com/typesense/typesense-swift.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:ea378e7d7954b9ce813c0ebc8f6bc113436e2b3d5aa4fd45225da8bf07e6be73
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/apple/swift-argument-parser
Fetching https://github.com/Flight-School/AnyCodable
Fetching https://github.com/jpsim/Yams.git
[1/782] Fetching anycodable
[783/17769] Fetching anycodable, swift-argument-parser
[1803/29041] Fetching anycodable, swift-argument-parser, yams
Fetched https://github.com/Flight-School/AnyCodable from cache (0.84s)
Fetched https://github.com/apple/swift-argument-parser from cache (0.85s)
[7102/11272] Fetching yams
Fetched https://github.com/jpsim/Yams.git from cache (2.44s)
Computing version for https://github.com/Flight-School/AnyCodable
Computed https://github.com/Flight-School/AnyCodable at 0.6.7 (5.70s)
Computing version for https://github.com/apple/swift-argument-parser
Computed https://github.com/apple/swift-argument-parser at 1.7.0 (0.52s)
Computing version for https://github.com/jpsim/Yams.git
Computed https://github.com/jpsim/Yams.git at 5.4.0 (1.16s)
Creating working copy for https://github.com/Flight-School/AnyCodable
Working copy of https://github.com/Flight-School/AnyCodable resolved at 0.6.7
Creating working copy for https://github.com/jpsim/Yams.git
Working copy of https://github.com/jpsim/Yams.git resolved at 5.4.0
Creating working copy for https://github.com/apple/swift-argument-parser
Working copy of https://github.com/apple/swift-argument-parser resolved at 1.7.0
[1/1] Compiling plugin GenerateManual
[2/2] Compiling plugin GenerateDoccReference
Building for debugging...
[2/21] Write sources
[8/21] Compiling reader.c
[9/21] Compiling writer.c
[10/21] Compiling api.c
[11/21] Compiling parser.c
[11/21] Write swift-version-24593BA9C3E375BF.txt
[13/27] Compiling emitter.c
[14/27] Compiling scanner.c
[16/47] Compiling Yams Tag.swift
[17/47] Compiling Yams YamlAnchorProviding.swift
[18/49] Compiling Yams Mark.swift
[19/49] Compiling Yams Node.Alias.swift
[20/49] Compiling Yams Node.Mapping.swift
[21/49] Emitting module ArgumentParserToolInfo
[22/49] Compiling ArgumentParserToolInfo ToolInfo.swift
[23/50] Wrapping AST for ArgumentParserToolInfo for debugging
[25/96] Emitting module ArgumentParser
[26/102] Compiling ArgumentParser Foundation.swift
[27/102] Compiling ArgumentParser Mutex.swift
[28/102] Compiling ArgumentParser Platform.swift
[29/102] Compiling ArgumentParser SequenceExtensions.swift
[30/102] Compiling ArgumentParser StringExtensions.swift
[31/102] Compiling ArgumentParser SwiftExtensions.swift
[32/102] Compiling ArgumentParser ExpressibleByArgument.swift
/host/spi-builder-workspace/.build/checkouts/Yams/Sources/Yams/Representer.swift:307:45: error: cannot find 'DBL_DECIMAL_DIG' in scope
305 | // Since `NumberFormatter` creates a string with insufficient precision for Decode,
306 | // it uses with `String(format:...)`
307 | let string = String(format: "%.*g", DBL_DECIMAL_DIG, self)
| `- error: cannot find 'DBL_DECIMAL_DIG' in scope
308 | // "%*.g" does not use scientific notation if the exponent is less than –4.
309 | // So fallback to using `NumberFormatter` if string does not uses scientific notation.
[33/102] Compiling ArgumentParser ParsableArguments.swift
/host/spi-builder-workspace/.build/checkouts/Yams/Sources/Yams/Representer.swift:307:45: error: cannot find 'DBL_DECIMAL_DIG' in scope
305 | // Since `NumberFormatter` creates a string with insufficient precision for Decode,
306 | // it uses with `String(format:...)`
307 | let string = String(format: "%.*g", DBL_DECIMAL_DIG, self)
| `- error: cannot find 'DBL_DECIMAL_DIG' in scope
308 | // "%*.g" does not use scientific notation if the exponent is less than –4.
309 | // So fallback to using `NumberFormatter` if string does not uses scientific notation.
[34/102] Compiling ArgumentParser ArgumentVisibility.swift
/host/spi-builder-workspace/.build/checkouts/Yams/Sources/Yams/Representer.swift:307:45: error: cannot find 'DBL_DECIMAL_DIG' in scope
305 | // Since `NumberFormatter` creates a string with insufficient precision for Decode,
306 | // it uses with `String(format:...)`
307 | let string = String(format: "%.*g", DBL_DECIMAL_DIG, self)
| `- error: cannot find 'DBL_DECIMAL_DIG' in scope
308 | // "%*.g" does not use scientific notation if the exponent is less than –4.
309 | // So fallback to using `NumberFormatter` if string does not uses scientific notation.
[35/102] Compiling ArgumentParser CommandConfiguration.swift
[36/102] Compiling ArgumentParser CommandGroup.swift
[37/102] Compiling ArgumentParser EnumerableFlag.swift
[38/102] Compiling ArgumentParser Option.swift
[39/102] Compiling ArgumentParser OptionGroup.swift
[40/102] Compiling ArgumentParser CompletionKind.swift
[41/102] Compiling ArgumentParser Errors.swift
[42/102] Emitting module AnyCodable
[43/102] Compiling AnyCodable AnyCodable.swift
[44/102] Compiling ArgumentParser BashCompletionsGenerator.swift
[45/102] Compiling ArgumentParser CompletionsGenerator.swift
[46/102] Compiling ArgumentParser FishCompletionsGenerator.swift
[47/102] Emitting module Yams
[48/102] Compiling ArgumentParser ZshCompletionsGenerator.swift
[49/102] Compiling ArgumentParser Argument.swift
[50/102] Compiling ArgumentParser ArgumentDiscussion.swift
[51/102] Compiling AnyCodable AnyDecodable.swift
[52/102] Compiling AnyCodable AnyEncodable.swift
BUILD FAILURE 6.2 wasm