The Swift Package Index logo.Swift Package Index

Build Information

Failed to build Regex, reference 0.3.0 (69946a), with Swift 6.4 for Wasm on 15 Sep 2026 21:47:22 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-53886769-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/davidskrundz/regex.git
Reference: 0.3.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/davidskrundz/regex
 * tag               0.3.0      -> FETCH_HEAD
HEAD is now at 69946aa Update to Swift 4.1
Cloned https://github.com/davidskrundz/regex.git
Revision (git rev-parse @):
69946aa32a1de7ac4663398e53b1017ddd2691e7
SUCCESS checkout https://github.com/davidskrundz/regex.git at 0.3.0
========================================
Build
========================================
Selected platform:         wasm
Swift version:             6.4
Building package at path:  $PWD
https://github.com/davidskrundz/regex.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-53886769-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/DavidSkrundz/Collections.git
[1/203] Fetching collections
Fetched https://github.com/DavidSkrundz/Collections.git (0.47s)
Computing version for https://github.com/DavidSkrundz/Collections.git
Computed https://github.com/DavidSkrundz/Collections.git at 1.1.2 (0.67s)
Creating working copy for https://github.com/DavidSkrundz/Collections.git
Working copy of https://github.com/DavidSkrundz/Collections.git resolved at 1.1.2
Building for debugging...
[Pre-planning 1 / 154]
[34 / 51] Generator
[35 / 51] Generator
/host/spi-builder-workspace/Sources/Regex/Lexer/LexerState.swift:7:6: warning: cannot use generic struct 'Generator' in a property declaration member of a type not marked '@_implementationOnly'; 'Generator' was not imported by this file
 5 |
 6 | internal struct LexerState {
 7 | 	var generator = "".generator()
   |      `- warning: cannot use generic struct 'Generator' in a property declaration member of a type not marked '@_implementationOnly'; 'Generator' was not imported by this file
 8 | 	var isCaseInsensitive = false
 9 |
/host/spi-builder-workspace/.build/checkouts/Collections/Sources/Generator/Generator.swift:10:15: note: generic struct declared here
 8 | ///
 9 | /// - Author: David Skrundz
10 | public struct Generator<Container: Collection> {
   |               `- note: generic struct declared here
11 | 	public typealias Index = Container.Index
12 |
/host/spi-builder-workspace/Sources/Regex/Parser/ParserState.swift:7:15: warning: cannot use generic struct 'Generator' in a property declaration member of a type not marked '@_implementationOnly'; 'Generator' was not imported by this file
 5 |
 6 | internal struct ParserState {
 7 | 	internal var generator = [Token]().generator()
   |               `- warning: cannot use generic struct 'Generator' in a property declaration member of a type not marked '@_implementationOnly'; 'Generator' was not imported by this file
 8 | 	internal var groupCount = 0
 9 | 	internal var alternating  = false // Set to true if loop should stop
/host/spi-builder-workspace/.build/checkouts/Collections/Sources/Generator/Generator.swift:10:15: note: generic struct declared here
 8 | ///
 9 | /// - Author: David Skrundz
10 | public struct Generator<Container: Collection> {
   |               `- note: generic struct declared here
11 | 	public typealias Index = Container.Index
12 |
/host/spi-builder-workspace/Sources/Regex/VM/Thread.swift:25:6: warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'Thread' to 'Hashable' by implementing 'hash(into:)' instead [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration\DeprecatedDeclaration]8;;\]
23 | /// - Note: Only cares about `instructionPointer` and `startStringPointer`
24 | extension Thread: Hashable {
25 | 	var hashValue: Int {
   |      `- warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'Thread' to 'Hashable' by implementing 'hash(into:)' instead [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration\DeprecatedDeclaration]8;;\]
26 | 		return Int(Double((instructionPointer + startStringPointer) * (instructionPointer + startStringPointer + 1)) / 2.0) + startStringPointer
27 | 	}
[#DeprecatedDeclaration]: <https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration>
[43 / 61] Regex
/host/spi-builder-workspace/Sources/Regex/VM/Thread.swift:25:6: warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'Thread' to 'Hashable' by implementing 'hash(into:)' instead [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration\DeprecatedDeclaration]8;;\]
23 | /// - Note: Only cares about `instructionPointer` and `startStringPointer`
24 | extension Thread: Hashable {
25 | 	var hashValue: Int {
   |      `- warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'Thread' to 'Hashable' by implementing 'hash(into:)' instead [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration\DeprecatedDeclaration]8;;\]
26 | 		return Int(Double((instructionPointer + startStringPointer) * (instructionPointer + startStringPointer + 1)) / 2.0) + startStringPointer
27 | 	}
[#DeprecatedDeclaration]: <https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration>
[51 / 61] sRegex-product
[54 / 61] Generator
/host/spi-builder-workspace/Sources/Regex/Parser/ParserState.swift:7:15: warning: cannot use generic struct 'Generator' in a property declaration member of a type not marked '@_implementationOnly'; 'Generator' was not imported by this file
 5 |
 6 | internal struct ParserState {
 7 | 	internal var generator = [Token]().generator()
   |               `- warning: cannot use generic struct 'Generator' in a property declaration member of a type not marked '@_implementationOnly'; 'Generator' was not imported by this file
 8 | 	internal var groupCount = 0
 9 | 	internal var alternating  = false // Set to true if loop should stop
/host/spi-builder-workspace/.build/checkouts/Collections/Sources/Generator/Generator.swift:10:15: note: generic struct declared here
 8 | ///
 9 | /// - Author: David Skrundz
10 | public struct Generator<Container: Collection> {
   |               `- note: generic struct declared here
11 | 	public typealias Index = Container.Index
12 |
[57 / 62] Regex
/host/spi-builder-workspace/Sources/Regex/Lexer/LexerState.swift:7:6: warning: cannot use generic struct 'Generator' in a property declaration member of a type not marked '@_implementationOnly'; 'Generator' was not imported by this file
 5 |
 6 | internal struct LexerState {
 7 | 	var generator = "".generator()
   |      `- warning: cannot use generic struct 'Generator' in a property declaration member of a type not marked '@_implementationOnly'; 'Generator' was not imported by this file
 8 | 	var isCaseInsensitive = false
 9 |
/host/spi-builder-workspace/.build/checkouts/Collections/Sources/Generator/Generator.swift:10:15: note: generic struct declared here
 8 | ///
 9 | /// - Author: David Skrundz
10 | public struct Generator<Container: Collection> {
   |               `- note: generic struct declared here
11 | 	public typealias Index = Container.Index
12 |
error: unknown argument: '-shared'
error: Ld /host/spi-builder-workspace/.build/out/Products/Debug-webassembly-wasm32/libdRegex.wasm normal failed with a nonzero exit code. Command line:     cd /host/spi-builder-workspace
    /usr/bin/swiftc -target wasm32-unknown-wasip1 -shared -emit-library -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 -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 -Xclang-linker -resource-dir -Xclang-linker /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 -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 -L/host/spi-builder-workspace/.build/out/Intermediates.noindex/EagerLinkingTBDs/Debug-webassembly-wasm32 -L/host/spi-builder-workspace/.build/out/Products/Debug-webassembly-wasm32 @/host/spi-builder-workspace/.build/out/Intermediates.noindex/Regex.build/Debug-webassembly-wasm32/dRegex-product-t.build/Objects-normal/wasm32/dRegex.LinkFileList -Xlinker --gc-sections -Xclang-linker -rdynamic -L/usr/lib/swift -static-stdlib @/host/spi-builder-workspace/.build/out/Products/Debug-webassembly-wasm32/Regex.objlib/args.resp @/host/spi-builder-workspace/.build/out/Products/Debug-webassembly-wasm32/Generator.objlib/args.resp -o /host/spi-builder-workspace/.build/out/Products/Debug-webassembly-wasm32/libdRegex.wasm
error: Build failed
BUILD FAILURE 6.4 wasm