The Swift Package Index logo.Swift Package Index

Build Information

Failed to build Khac, reference master (7e5ed5), with Swift 6.2 for Wasm on 16 Aug 2026 20:19:04 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-54344849-1":/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.2-latest swift build --swift-sdk swift-6.2-RELEASE_wasm 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 5.0.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/nhannht/Khac.git
Reference: master
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/nhannht/Khac
 * branch            master     -> FETCH_HEAD
 * [new branch]      master     -> origin/master
HEAD is now at 7e5ed56 chore: release 0.4.0
Cloned https://github.com/nhannht/Khac.git
Revision (git rev-parse @):
7e5ed5638c0c2f743beb02a2b5181a12f7281ba7
SPI manifest file found: $PWD/.spi.yml
SUCCESS checkout https://github.com/nhannht/Khac.git at master
========================================
Build
========================================
Selected platform:         wasm
Swift version:             6.2
Building package at path:  $PWD
https://github.com/nhannht/Khac.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-54344849-1":/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.2-latest swift build --swift-sdk swift-6.2-RELEASE_wasm 2>&1
wasm-6.2-latest: Pulling from saguaro1/spi-images
Digest: sha256:70428a4f4110aef5b17a27427e965f31cf3855e8cf1dfdc416ed61c780337965
Status: Image is up to date for registry.gitlab.com/saguaro1/spi-images:wasm-6.2-latest
Building for debugging...
[0/9] Write sources
[3/9] Write swift-version-24593BA9C3E375BF.txt
[5/59] Emitting module Khac
[6/65] Compiling Khac MergeDateTimeRefiner.swift
[7/65] Compiling Khac MergeRelativeAnchorRefiner.swift
[8/65] Compiling Khac MergeWeekdayRefiner.swift
[9/65] Compiling Khac MergingRefiner.swift
[10/65] Compiling Khac OverlapFilterRefiner.swift
[11/65] Compiling Khac UnlikelyFilterRefiner.swift
[12/65] Compiling Khac PTLocale.swift
[13/65] Compiling Khac RULocale.swift
[14/65] Compiling Khac RUParsers.swift
[15/65] Compiling Khac SVLocale.swift
[16/65] Compiling Khac UKLocale.swift
[17/65] Compiling Khac UKParsers.swift
[18/65] Compiling Khac VILocale.swift
[19/65] Compiling Khac DELocale.swift
[20/65] Compiling Khac DEParsers.swift
[21/65] Compiling Khac ENLocale.swift
[22/65] Compiling Khac ENParsers.swift
[23/65] Compiling Khac ENRefiners.swift
[24/65] Compiling Khac ESLocale.swift
[25/65] Compiling Khac FILocale.swift
[26/65] Compiling Khac TimeExpressionParser.swift
/host/spi-builder-workspace/Sources/Khac/Parsers/TimeExpressionParser.swift:189:13: warning: variable 'startComponents' was never mutated; consider changing to 'let' constant
187 |         resolveRange(&start, &end)
188 |
189 |         var startComponents = components(context, start)
    |             `- warning: variable 'startComponents' was never mutated; consider changing to 'let' constant
190 |         var endComponents = components(context, end)
191 |
[27/65] Compiling Khac WeekdayParser.swift
/host/spi-builder-workspace/Sources/Khac/Parsers/TimeExpressionParser.swift:189:13: warning: variable 'startComponents' was never mutated; consider changing to 'let' constant
187 |         resolveRange(&start, &end)
188 |
189 |         var startComponents = components(context, start)
    |             `- warning: variable 'startComponents' was never mutated; consider changing to 'let' constant
190 |         var endComponents = components(context, end)
191 |
[28/65] Compiling Khac YearParser.swift
/host/spi-builder-workspace/Sources/Khac/Parsers/TimeExpressionParser.swift:189:13: warning: variable 'startComponents' was never mutated; consider changing to 'let' constant
187 |         resolveRange(&start, &end)
188 |
189 |         var startComponents = components(context, start)
    |             `- warning: variable 'startComponents' was never mutated; consider changing to 'let' constant
190 |         var endComponents = components(context, end)
191 |
[29/65] Compiling Khac ExtractTimezoneOffsetRefiner.swift
/host/spi-builder-workspace/Sources/Khac/Parsers/TimeExpressionParser.swift:189:13: warning: variable 'startComponents' was never mutated; consider changing to 'let' constant
187 |         resolveRange(&start, &end)
188 |
189 |         var startComponents = components(context, start)
    |             `- warning: variable 'startComponents' was never mutated; consider changing to 'let' constant
190 |         var endComponents = components(context, end)
191 |
[30/65] Compiling Khac ExtractYearSuffixRefiner.swift
/host/spi-builder-workspace/Sources/Khac/Parsers/TimeExpressionParser.swift:189:13: warning: variable 'startComponents' was never mutated; consider changing to 'let' constant
187 |         resolveRange(&start, &end)
188 |
189 |         var startComponents = components(context, start)
    |             `- warning: variable 'startComponents' was never mutated; consider changing to 'let' constant
190 |         var endComponents = components(context, end)
191 |
[31/65] Compiling Khac ForwardDateRefiner.swift
/host/spi-builder-workspace/Sources/Khac/Parsers/TimeExpressionParser.swift:189:13: warning: variable 'startComponents' was never mutated; consider changing to 'let' constant
187 |         resolveRange(&start, &end)
188 |
189 |         var startComponents = components(context, start)
    |             `- warning: variable 'startComponents' was never mutated; consider changing to 'let' constant
190 |         var endComponents = components(context, end)
191 |
[32/65] Compiling Khac MergeDateRangeRefiner.swift
/host/spi-builder-workspace/Sources/Khac/Parsers/TimeExpressionParser.swift:189:13: warning: variable 'startComponents' was never mutated; consider changing to 'let' constant
187 |         resolveRange(&start, &end)
188 |
189 |         var startComponents = components(context, start)
    |             `- warning: variable 'startComponents' was never mutated; consider changing to 'let' constant
190 |         var endComponents = components(context, end)
191 |
[33/65] Compiling Khac FIParsers.swift
[34/65] Compiling Khac FRLocale.swift
[35/65] Compiling Khac ITLocale.swift
[36/65] Compiling Khac JALocale.swift
[37/65] Compiling Khac JAParsers.swift
[38/65] Compiling Khac Locale.swift
[39/65] Compiling Khac NLLocale.swift
[40/65] Compiling Khac ZHLocale.swift
[41/65] Compiling Khac ZHParsers.swift
[42/65] Compiling Khac CasualDateParser.swift
[43/65] Compiling Khac ISOParser.swift
[44/65] Compiling Khac MonthNameParser.swift
[45/65] Compiling Khac NumericDateParser.swift
[46/65] Compiling Khac RelativeUnitParser.swift
[47/65] Compiling Khac Engine.swift
/host/spi-builder-workspace/Sources/Khac/Core/Engine.swift:74:17: warning: initialization of immutable value 'locale' was never used; consider replacing with assignment to '_' or removing it [#no-usage]
 72 |
 73 |         for (localeIndex, prepared) in locales.enumerated() {
 74 |             let locale = prepared.locale
    |                 `- warning: initialization of immutable value 'locale' was never used; consider replacing with assignment to '_' or removing it [#no-usage]
 75 |             let context = ParsingContext(reference: reference, options: options, prepared: prepared, normalization: normalization)
 76 |             lastContext = context
[48/65] Compiling Khac Options.swift
/host/spi-builder-workspace/Sources/Khac/Core/Engine.swift:74:17: warning: initialization of immutable value 'locale' was never used; consider replacing with assignment to '_' or removing it [#no-usage]
 72 |
 73 |         for (localeIndex, prepared) in locales.enumerated() {
 74 |             let locale = prepared.locale
    |                 `- warning: initialization of immutable value 'locale' was never used; consider replacing with assignment to '_' or removing it [#no-usage]
 75 |             let context = ParsingContext(reference: reference, options: options, prepared: prepared, normalization: normalization)
 76 |             lastContext = context
[49/65] Compiling Khac ParsedResult.swift
/host/spi-builder-workspace/Sources/Khac/Core/Engine.swift:74:17: warning: initialization of immutable value 'locale' was never used; consider replacing with assignment to '_' or removing it [#no-usage]
 72 |
 73 |         for (localeIndex, prepared) in locales.enumerated() {
 74 |             let locale = prepared.locale
    |                 `- warning: initialization of immutable value 'locale' was never used; consider replacing with assignment to '_' or removing it [#no-usage]
 75 |             let context = ParsingContext(reference: reference, options: options, prepared: prepared, normalization: normalization)
 76 |             lastContext = context
[50/65] Compiling Khac ParsingComponents.swift
/host/spi-builder-workspace/Sources/Khac/Core/Engine.swift:74:17: warning: initialization of immutable value 'locale' was never used; consider replacing with assignment to '_' or removing it [#no-usage]
 72 |
 73 |         for (localeIndex, prepared) in locales.enumerated() {
 74 |             let locale = prepared.locale
    |                 `- warning: initialization of immutable value 'locale' was never used; consider replacing with assignment to '_' or removing it [#no-usage]
 75 |             let context = ParsingContext(reference: reference, options: options, prepared: prepared, normalization: normalization)
 76 |             lastContext = context
[51/65] Compiling Khac ParsingContext.swift
/host/spi-builder-workspace/Sources/Khac/Core/Engine.swift:74:17: warning: initialization of immutable value 'locale' was never used; consider replacing with assignment to '_' or removing it [#no-usage]
 72 |
 73 |         for (localeIndex, prepared) in locales.enumerated() {
 74 |             let locale = prepared.locale
    |                 `- warning: initialization of immutable value 'locale' was never used; consider replacing with assignment to '_' or removing it [#no-usage]
 75 |             let context = ParsingContext(reference: reference, options: options, prepared: prepared, normalization: normalization)
 76 |             lastContext = context
[52/65] Compiling Khac PreparedLocale.swift
/host/spi-builder-workspace/Sources/Khac/Core/Engine.swift:74:17: warning: initialization of immutable value 'locale' was never used; consider replacing with assignment to '_' or removing it [#no-usage]
 72 |
 73 |         for (localeIndex, prepared) in locales.enumerated() {
 74 |             let locale = prepared.locale
    |                 `- warning: initialization of immutable value 'locale' was never used; consider replacing with assignment to '_' or removing it [#no-usage]
 75 |             let context = ParsingContext(reference: reference, options: options, prepared: prepared, normalization: normalization)
 76 |             lastContext = context
[53/65] Compiling Khac ReferencePoint.swift
/host/spi-builder-workspace/Sources/Khac/Core/Engine.swift:74:17: warning: initialization of immutable value 'locale' was never used; consider replacing with assignment to '_' or removing it [#no-usage]
 72 |
 73 |         for (localeIndex, prepared) in locales.enumerated() {
 74 |             let locale = prepared.locale
    |                 `- warning: initialization of immutable value 'locale' was never used; consider replacing with assignment to '_' or removing it [#no-usage]
 75 |             let context = ParsingContext(reference: reference, options: options, prepared: prepared, normalization: normalization)
 76 |             lastContext = context
[54/65] Compiling Khac Regex.swift
[55/65] Compiling Khac ParserSupport.swift
[56/65] Compiling Khac PrecedingText.swift
[57/65] Compiling Khac RelativeDuration.swift
[58/65] Compiling Khac Normalization.swift
[59/65] Compiling Khac Khac.swift
[60/65] Compiling Khac CJKNumerals.swift
[61/66] Wrapping AST for Khac for debugging
[63/73] Compiling KhacCLICore Run.swift
[64/73] Compiling KhacCLICore SourceLoader.swift
[65/73] Compiling KhacCLICore Output.swift
[66/73] Compiling KhacCLICore LineIndex.swift
/host/spi-builder-workspace/Sources/KhacCLICore/LineIndex.swift:228:27: error: subscript 'subscript(_:)' requires the types 'String.Index' and 'Int' be equivalent
226 |         let head = windowStart > 0 ? "..." : ""
227 |         let tail = windowEnd < text.count ? "..." : ""
228 |         return head + text[lower ..< upper] + tail
    |                           `- error: subscript 'subscript(_:)' requires the types 'String.Index' and 'Int' be equivalent
229 |     }
230 | }
Swift.String.subscript:3:10: note: where 'R.Bound' = 'String.Index'
1 | struct String {
2 | @available(*, unavailable, message: "cannot subscript String with an integer range, use a String.Index range instead.")
3 |   public subscript<R>(bounds: R) -> String where R : RangeExpression, R.Bound == Int { get }}
  |          `- note: where 'R.Bound' = 'String.Index'
4 |
[67/73] Compiling KhacCLICore Event.swift
[68/73] Emitting module KhacCLICore
[69/73] Compiling KhacCLICore Arguments.swift
BUILD FAILURE 6.2 wasm