The Swift Package Index logo.Swift Package Index

Build Information

Failed to build w2ni18n, reference 1.4.0 (6d38b1), with Swift 6.4 for Wasm on 22 Sep 2026 15:45:16 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-54344847-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.4-latest swift build --swift-sdk swift-6.4.x-DEVELOPMENT-SNAPSHOT-2026-09-04-a_wasm 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 5.1.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/bastie/w2ni18n.git
Reference: 1.4.0
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/bastie/w2ni18n
 * tag               1.4.0      -> FETCH_HEAD
HEAD is now at 6d38b13 Create FUNDING.yml
Cloned https://github.com/bastie/w2ni18n.git
Revision (git rev-parse @):
6d38b130666e0632bd840954ba98fa075eb2c28e
SUCCESS checkout https://github.com/bastie/w2ni18n.git at 1.4.0
========================================
Build
========================================
Selected platform:         wasm
Swift version:             6.4
Building package at path:  $PWD
https://github.com/bastie/w2ni18n.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-54344847-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.4-latest swift build --swift-sdk swift-6.4.x-DEVELOPMENT-SNAPSHOT-2026-09-04-a_wasm 2>&1
wasm-6.4-latest: Pulling from saguaro1/spi-images
Digest: sha256:4328fdb43c680d205c1d6761b1e3267aa38277eefdda9ddfb17b6a0f1a77857a
Status: Image is up to date for registry.gitlab.com/saguaro1/spi-images:wasm-6.4-latest
Fetching https://github.com/bastie/JavApi4Swift.git
[1/39185] Fetching javapi4swift
Fetched https://github.com/bastie/JavApi4Swift.git (2.12s)
Computing version for https://github.com/bastie/JavApi4Swift.git
Computed https://github.com/bastie/JavApi4Swift.git at 0.54.0 (2.29s)
Creating working copy for https://github.com/bastie/JavApi4Swift.git
Working copy of https://github.com/bastie/JavApi4Swift.git resolved at 0.54.0
Building for debugging...
[Pre-planning 1 / 125]
[Planning deferred tasks]
[6 / 50]
[36 / 51] JavApi
[45 / 99] JavApi
[47 / 99] JavApi
[49 / 99] JavApi
[51 / 99] JavApi
[52 / 99] JavApi
[53 / 99] JavApi
[54 / 99] JavApi
[55 / 99] JavApi
[57 / 99] JavApi
[58 / 99] JavApi
[59 / 99] JavApi
[60 / 99] JavApi
[61 / 99] JavApi
[63 / 99] JavApi
[68 / 99] JavApi-product
[69 / 99] JavApi-product
[70 / 99] w2ni18n
[72 / 99] w2ni18n
[74 / 99] JavApi
[77 / 99] JavApi
[79 / 99] JavApi
[80 / 99] JavApi
[81 / 99] JavApi
[82 / 99] JavApi
[83 / 99] JavApi
[85 / 99] JavApi
[86 / 99] JavApi
[87 / 99] JavApi
[88 / 99] JavApi
[89 / 99] JavApi
[89 / 99]
[94 / 104] w2ni18n
[99 / 104] JavApi
error: SwiftCompile normal wasm32 /host/spi-builder-workspace/Sources/w2ni18n/W2N.swift failed with a nonzero exit code. Command line:     cd /host
    builtin-SwiftPerFileCompile W2N.swift
/host/spi-builder-workspace/Sources/w2ni18n/W2N.swift:96:15: error: failed to produce diagnostic for expression; please submit a bug report (https://swift.org/contributing/#reporting-bugs)
 94 |           }
 95 |           else if (key.startsWith("measure:")) {
 96 |             _ = sortedMeasureValues.add(Int64(val.toString().trim())!) // maybe throws error
    |               `- error: failed to produce diagnostic for expression; please submit a bug report (https://swift.org/contributing/#reporting-bugs)
 97 |           }
 98 |           else if ("point".equals(key)) {
/host/spi-builder-workspace/Sources/w2ni18n/W2N.swift:105:35: error: value of type '[String]' has no member 'add'
103 |           }
104 |           if (zeroToNine<10) {
105 |             _ = self.decimalWords.add(key)
    |                                   `- error: value of type '[String]' has no member 'add'
106 |             zeroToNine += 1
107 |           }
/host/spi-builder-workspace/Sources/w2ni18n/W2N.swift:114:23: error: type 'Throwable' has no member 'RuntimeException'
112 |     }
113 |     catch  {
114 |       throw Throwable.RuntimeException(error.localizedDescription);
    |                       `- error: type 'Throwable' has no member 'RuntimeException'
115 |     }
116 |   }
/host/spi-builder-workspace/Sources/w2ni18n/W2N.swift:128:25: error: value of type '[Int]' has no member 'add'
126 |     for word in numberWords {
127 |       let nextNumberCandidat : Int = Int(self.numberSystem.get(word)!);
128 |         _ = digitValues.add(nextNumberCandidat);
    |                         `- error: value of type '[Int]' has no member 'add'
129 |     }
130 |
/host/spi-builder-workspace/Sources/w2ni18n/W2N.swift:226:28: error: value of type '[String]' has no member 'add'
224 |       for word in splitWords {
225 |         if (self.numberSystem.containsKey(word)) {
226 |           _ = cleanNumbers.add(word);
    |                            `- error: value of type '[String]' has no member 'add'
227 |         }
228 |         else if (word.equals(self.localizedPointName)){
/host/spi-builder-workspace/Sources/w2ni18n/W2N.swift:229:28: error: value of type '[String]' has no member 'add'
227 |         }
228 |         else if (word.equals(self.localizedPointName)){
229 |           _ = cleanNumbers.add(word);
    |                            `- error: value of type '[String]' has no member 'add'
230 |         }
231 |       }
/host/spi-builder-workspace/Sources/w2ni18n/W2N.swift:235:25: error: type 'Throwable' has no member 'NumberFormatException'
233 |       // Error message if the user enters invalid input!
234 |       if (cleanNumbers.count == 0) {
235 |         throw Throwable.NumberFormatException("No valid number words found! Please enter a valid number word (eg. two million twenty three thousand and forty nine)")
    |                         `- error: type 'Throwable' has no member 'NumberFormatException'
236 |       }
237 |
/host/spi-builder-workspace/Sources/w2ni18n/W2N.swift:240:25: error: type 'Throwable' has no member 'NumberFormatException'
238 |       let toMuchPoints = cleanNumbers.indexOf(self.localizedPointName) != cleanNumbers.lastIndexOf(localizedPointName);
239 |       if (toMuchPoints) {
240 |         throw Throwable.NumberFormatException("Redundant point word \(localizedPointName)! Please enter a valid number word (eg. two million twenty three thousand and forty nine)")
    |                         `- error: type 'Throwable' has no member 'NumberFormatException'
241 |       }
242 |
/host/spi-builder-workspace/Sources/w2ni18n/W2N.swift:263:38: error: value of type '[Int]' has no member 'add'
261 |           // save index for next check
262 |           if (-1 != getIndexForNumber(measureValueDoubleCheck,cleanNumbers)){
263 |             _ = measureWordsSequence.add(getIndexForNumber(measureValueDoubleCheck,cleanNumbers))
    |                                      `- error: value of type '[Int]' has no member 'add'
264 |           }
265 |         }
/host/spi-builder-workspace/Sources/w2ni18n/W2N.swift:272:27: error: type 'Throwable' has no member 'NumberFormatException'
270 |       for i in 0..<measureWordsSequence.count {
271 |         if (measureWordsSequence[i] != sortedMeasureWordsSequence[i]) {
272 |           throw Throwable.NumberFormatException ("Malformed number in result of false measure word sequence eg. trillion after thousand! Please enter a valid number word (eg. two million twenty three thousand and forty nine)");
    |                           `- error: type 'Throwable' has no member 'NumberFormatException'
273 |         }
274 |       }
/host/spi-builder-workspace/Sources/w2ni18n/W2N.swift:281:26: error: value of type '[String]' has no member 'add'
279 |       var measureNames = [String]()
280 |       for value in sortedMeasureValues {
281 |         _ = measureNames.add(getNameByNumberValue(value)!);
    |                          `- error: value of type '[String]' has no member 'add'
282 |       }
283 |       for nextPart in cleanNumbers {
/host/spi-builder-workspace/Sources/w2ni18n/W2N.swift:285:38: error: value of type '[String]' has no member 'add'
283 |       for nextPart in cleanNumbers {
284 |         if (measureNames.contains(nextPart) && lastWasMeasureWord) {
285 |           _ = normalizedCleanNumbers.add(self.getNameByNumberValue(1)!);
    |                                      `- error: value of type '[String]' has no member 'add'
286 |           lastWasMeasureWord = true;
287 |         }
/host/spi-builder-workspace/Sources/w2ni18n/W2N.swift:291:36: error: value of type '[String]' has no member 'add'
289 |           lastWasMeasureWord = measureNames.contains(nextPart);
290 |         }
291 |         _ = normalizedCleanNumbers.add(nextPart);
    |                                    `- error: value of type '[String]' has no member 'add'
292 |       }
293 |       cleanNumbers = normalizedCleanNumbers;
/host/spi-builder-workspace/Sources/w2ni18n/W2N.swift:300:27: error: type 'Throwable' has no member 'NumberFormatException'
298 |         let measure_name = getNameByNumberValue(measureValue)!
299 |         if (cleanDecimalNumbers.contains(measure_name)) {
300 |           throw Throwable.NumberFormatException ("Malformed number in result of false measure word after point eg. trillion after thousand! Please enter a valid number word (eg. two million twenty three thousand and forty nine)")
    |                           `- error: type 'Throwable' has no member 'NumberFormatException'
301 |         }
302 |       }
/host/spi-builder-workspace/Sources/w2ni18n/W2N.swift:346:54: error: value of type 'java.util.HashMap<String, String>' has no member 'delegate'
344 |     // for examples: both is right "vingt et un" and "vingt-et-un"
345 |     // we change this to composed value "vingt-et-un" over the localized data file "replace:" entry
346 |     for nonComposedNumberValue in self.normalizeData.delegate.keys {
    |                                                      `- error: value of type 'java.util.HashMap<String, String>' has no member 'delegate'
347 |       if (nonComposedNumberValue.contains(" ")) {
348 |         let composedNumberValue = self.normalizeData.get(nonComposedNumberValue);
/host/spi-builder-workspace/Sources/w2ni18n/W2N.swift:384:23: error: type 'Throwable' has no member 'NumberFormatException'
382 |     let countGreaterOne = cleanNumbers.indexOf(localizedName) != cleanNumbers.lastIndexOf(localizedName);
383 |     if (countGreaterOne) {
384 |       throw Throwable.NumberFormatException ("Redundant number word (\(localizedName ?? "???")) in! Please enter a valid number word (eg. two million twenty three thousand and forty nine)")
    |                       `- error: type 'Throwable' has no member 'NumberFormatException'
385 |     }
386 |   }
/host/spi-builder-workspace/Sources/w2ni18n/W2N.swift:398:17: error: value of type '[String]' has no member 'add'
396 |     var param = Array(cleanNumbers[0..<measureIndex])
397 |     if (param.isEmpty) {
398 |       _ = param.add(self.getNameByNumberValue(Int64(1))!); // maybe Int128 ?
    |                 `- error: value of type '[String]' has no member 'add'
399 |     }
400 |     let multiplier : Int64 = Int64(self.numberFormation(param));
/host/spi-builder-workspace/Sources/w2ni18n/W2N.swift:410:34: error: value of type 'java.util.HashMap<String, Int64>' has no member 'delegate'
408 |    */
409 |   public func getNameByNumberValue (_ newNumber : Int64) -> String?{
410 |     for key in self.numberSystem.delegate.keys {
    |                                  `- error: value of type 'java.util.HashMap<String, Int64>' has no member 'delegate'
411 |       if (newNumber == self.numberSystem.get(key)) {
412 |         return key;
Failed frontend command:
/usr/bin/swift-frontend -frontend -c /host/spi-builder-workspace/.build/out/Intermediates.noindex/w2ni18n.build/Debug-webassembly-wasm32/w2ni18n-t.build/DerivedSources/resource_bundle_accessor.swift -primary-file /host/spi-builder-workspace/Sources/w2ni18n/W2N.swift /host/spi-builder-workspace/Sources/w2ni18n/w2ni18n.swift -emit-dependencies-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/w2ni18n.build/Debug-webassembly-wasm32/w2ni18n-t.build/Objects-normal/wasm32/W2N.d -emit-const-values-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/w2ni18n.build/Debug-webassembly-wasm32/w2ni18n-t.build/Objects-normal/wasm32/W2N.swiftconstvalues -emit-reference-dependencies-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/w2ni18n.build/Debug-webassembly-wasm32/w2ni18n-t.build/Objects-normal/wasm32/W2N.swiftdeps -serialize-diagnostics-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/w2ni18n.build/Debug-webassembly-wasm32/w2ni18n-t.build/Objects-normal/wasm32/W2N.dia -target wasm32-unknown-wasip1 -disable-objc-interop -sdk /root/.swiftpm/swift-sdks/swift-6.4.x-DEVELOPMENT-SNAPSHOT-2026-09-04-a_wasm.artifactbundle/swift-6.4.x-DEVELOPMENT-SNAPSHOT-2026-09-04-a_wasm/wasm32-unknown-wasip1/WASI.sdk -sysroot /root/.swiftpm/swift-sdks/swift-6.4.x-DEVELOPMENT-SNAPSHOT-2026-09-04-a_wasm.artifactbundle/swift-6.4.x-DEVELOPMENT-SNAPSHOT-2026-09-04-a_wasm/wasm32-unknown-wasip1/WASI.sdk -I /host/spi-builder-workspace/.build/out/Products/Debug-webassembly-wasm32 -module-cache-path /host/spi-builder-workspace/.build/out/ModuleCache.noindex -color-diagnostics -Xcc -fcolor-diagnostics -enable-testing -g -debug-info-format\=dwarf -dwarf-version\=4 -swift-version 6 -Onone -D SWIFT_PACKAGE -D DEBUG -D SWIFT_MODULE_RESOURCE_BUNDLE_AVAILABLE -D Xcode -serialize-debugging-options -enable-experimental-feature DebugDescriptionMacro -empty-abi-descriptor -external-plugin-path /usr/lib/swift/host/plugins/testing\#/usr/bin/swift-plugin-server -validate-clang-modules-once -clang-build-session-file /host/spi-builder-workspace/.build/out/ModuleCache.noindex/Session.modulevalidation -Xcc -working-directory -Xcc /host -resource-dir /root/.swiftpm/swift-sdks/swift-6.4.x-DEVELOPMENT-SNAPSHOT-2026-09-04-a_wasm.artifactbundle/swift-6.4.x-DEVELOPMENT-SNAPSHOT-2026-09-04-a_wasm/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static -use-static-resource-dir -enable-anonymous-context-mangled-names -file-compilation-dir /host -Xcc -resource-dir -Xcc /root/.swiftpm/swift-sdks/swift-6.4.x-DEVELOPMENT-SNAPSHOT-2026-09-04-a_wasm.artifactbundle/swift-6.4.x-DEVELOPMENT-SNAPSHOT-2026-09-04-a_wasm/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/clang -Xcc -D_LIBCPP_HARDENING_MODE\=_LIBCPP_HARDENING_MODE_DEBUG -Xcc -fmodules-prune-interval\=86400 -Xcc -fmodules-prune-after\=345600 -Xcc -I/host/spi-builder-workspace/.build/out/Products/Debug-webassembly-wasm32/include -Xcc -I/host/spi-builder-workspace/.build/out/Intermediates.noindex/w2ni18n.build/Debug-webassembly-wasm32/w2ni18n-t.build/DerivedSources-normal/wasm32 -Xcc -I/host/spi-builder-workspace/.build/out/Intermediates.noindex/w2ni18n.build/Debug-webassembly-wasm32/w2ni18n-t.build/DerivedSources/wasm32 -Xcc -I/host/spi-builder-workspace/.build/out/Intermediates.noindex/w2ni18n.build/Debug-webassembly-wasm32/w2ni18n-t.build/DerivedSources -Xcc -DSWIFT_PACKAGE -Xcc -DDEBUG\=1 -no-auto-bridging-header-chaining -module-name w2ni18n -package-name spi_builder_workspace -const-gather-protocols-file /host/spi-builder-workspace/.build/out/Intermediates.noindex/w2ni18n.build/Debug-webassembly-wasm32/w2ni18n-t.build/Objects-normal/wasm32/w2ni18n_const_extract_protocols.json -in-process-plugin-server-path /usr/lib/swift/host/libSwiftInProcPluginServer.so -plugin-path /usr/lib/swift/host/plugins -plugin-path /usr/local/lib/swift/host/plugins -parse-as-library -o /host/spi-builder-workspace/.build/out/Intermediates.noindex/w2ni18n.build/Debug-webassembly-wasm32/w2ni18n-t.build/Objects-normal/wasm32/W2N.o -index-unit-output-path /w2ni18n.build/Debug-webassembly-wasm32/w2ni18n-t.build/Objects-normal/wasm32/W2N.o -index-store-path /host/spi-builder-workspace/.build/out -index-system-modules
error: Build failed
BUILD FAILURE 6.4 wasm