Build Information
Failed to build Knit, reference 2.1.6 (644281), with Swift 6.2 for Wasm on 18 Oct 2025 00:16:04 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4609320-3":/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/cashapp/knit.git
Reference: 2.1.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/cashapp/knit
* tag 2.1.6 -> FETCH_HEAD
HEAD is now at 644281f Merge pull request #305 from cashapp/luis/update-swift-syntax-range-602
Cloned https://github.com/cashapp/knit.git
Revision (git rev-parse @):
644281f910015a6a7be2a8cb8476f4afdaee7f2e
SUCCESS checkout https://github.com/cashapp/knit.git at 2.1.6
========================================
Build
========================================
Selected platform: wasm
Swift version: 6.2
Building package at path: $PWD
https://github.com/cashapp/knit.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-3":/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:f6b6b9bdb5d5605d727da337418fc455cd8a0394d3a815b70631008c48829755
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-syntax.git
Fetching https://github.com/apple/swift-argument-parser
[1/16682] Fetching swift-argument-parser
[16683/89258] Fetching swift-argument-parser, swift-syntax
Fetched https://github.com/apple/swift-argument-parser from cache (0.93s)
[12338/72576] Fetching swift-syntax
Fetched https://github.com/apple/swift-syntax.git from cache (7.23s)
Computing version for https://github.com/apple/swift-argument-parser
Computed https://github.com/apple/swift-argument-parser at 1.6.2 (7.76s)
Computing version for https://github.com/apple/swift-syntax.git
Computed https://github.com/apple/swift-syntax.git at 602.0.0 (2.48s)
Creating working copy for https://github.com/apple/swift-syntax.git
Working copy of https://github.com/apple/swift-syntax.git resolved at 602.0.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.6.2
Downloading package prebuilt https://download.swift.org/prebuilts/swift-syntax/602.0.0/swift-6.2-RELEASE-MacroSupport-ubuntu_jammy_x86_64.tar.gz
Downloaded https://download.swift.org/prebuilts/swift-syntax/602.0.0/swift-6.2-RELEASE-MacroSupport-ubuntu_jammy_x86_64.tar.gz (0.56s)
warning: 'spi-builder-workspace': Invalid Exclude '/host/spi-builder-workspace/Sources/Swinject/Resolver.erb': File not found.
warning: 'spi-builder-workspace': Invalid Exclude '/host/spi-builder-workspace/Sources/Swinject/Container.Arguments.erb': File not found.
warning: 'spi-builder-workspace': found 2 file(s) which are unhandled; explicitly declare them as resources or exclude from the target
/host/spi-builder-workspace/Sources/Swinject/SwinjectContainer.Arguments.erb
/host/spi-builder-workspace/Sources/Swinject/SwinjectResolver.erb
[1/1] Compiling plugin KnitBuildPlugin
[2/2] Compiling plugin GenerateManual
[3/3] Compiling plugin GenerateDoccReference
Building for debugging...
[3/81] Write sources
[41/81] Compiling _SwiftSyntaxCShims PlatformMutex.c
[42/81] Write swift-version-24593BA9C3E375BF.txt
[45/131] Emitting module SwiftSyntax510
[46/131] Compiling SwiftSyntax509 Empty.swift
[47/131] Emitting module SwiftSyntax509
[49/132] Compiling SwiftSyntax601 Empty.swift
[50/132] Emitting module SwiftSyntax601
[51/132] Compiling SwiftSyntax602 Empty.swift
[52/132] Emitting module SwiftSyntax602
[53/132] Compiling SwiftSyntax510 Empty.swift
[54/135] Compiling Swinject ServiceKey.swift
[55/135] Compiling Swinject SwinjectContainer.Arguments.swift
[56/137] Emitting module SwiftSyntax600
[57/137] Compiling SwiftSyntax600 Empty.swift
[62/148] Emitting module SwiftSyntax602
[63/148] Emitting module SwiftSyntax509
[64/148] Compiling SwiftSyntax602 Empty.swift
[65/149] Compiling SwiftSyntax509 Empty.swift
[66/150] Emitting module SwiftSyntax601
[67/150] Compiling SwiftSyntax601 Empty.swift
[68/151] Compiling SwiftSyntax600 Empty.swift
[69/151] Emitting module SwiftSyntax600
[70/152] Compiling SwiftSyntax510 Empty.swift
[72/152] Emitting module SwiftSyntax510
[77/153] Compiling Swinject GraphIdentifier.swift
/host/spi-builder-workspace/Sources/Swinject/InstanceStorage.swift:118:50: warning: conditional cast from 'Wrapped' to 'AnyObject' always succeeds
116 | return object as? Wrapped
117 | }
118 | set { object = newValue.flatMap { $0 as? AnyObject } }
| `- warning: conditional cast from 'Wrapped' to 'AnyObject' always succeeds
119 | }
120 |
[78/153] Compiling Swinject InstanceStorage.swift
/host/spi-builder-workspace/Sources/Swinject/InstanceStorage.swift:118:50: warning: conditional cast from 'Wrapped' to 'AnyObject' always succeeds
116 | return object as? Wrapped
117 | }
118 | set { object = newValue.flatMap { $0 as? AnyObject } }
| `- warning: conditional cast from 'Wrapped' to 'AnyObject' always succeeds
119 | }
120 |
[79/153] Compiling Swinject InstanceWrapper.swift
/host/spi-builder-workspace/Sources/Swinject/InstanceStorage.swift:118:50: warning: conditional cast from 'Wrapped' to 'AnyObject' always succeeds
116 | return object as? Wrapped
117 | }
118 | set { object = newValue.flatMap { $0 as? AnyObject } }
| `- warning: conditional cast from 'Wrapped' to 'AnyObject' always succeeds
119 | }
120 |
[80/153] Compiling Swinject Behavior.swift
[81/153] Compiling Swinject DebugHelper.swift
[82/153] Compiling Swinject FunctionType.swift
[83/153] Emitting module Swinject
[83/157] Wrapping AST for SwiftSyntax601 for debugging
[84/157] Wrapping AST for SwiftSyntax602 for debugging
[85/191] Wrapping AST for SwiftSyntax600 for debugging
[86/195] Wrapping AST for SwiftSyntax510 for debugging
[87/275] Wrapping AST for SwiftSyntax602 for debugging
[88/283] Wrapping AST for SwiftSyntax509 for debugging
[89/283] Wrapping AST for SwiftSyntax601 for debugging
[90/283] Wrapping AST for SwiftSyntax600 for debugging
[91/283] Wrapping AST for SwiftSyntax509 for debugging
[92/283] Wrapping AST for SwiftSyntax510 for debugging
[94/283] Emitting module ArgumentParserToolInfo
[95/283] Compiling ArgumentParserToolInfo ToolInfo.swift
[96/284] Wrapping AST for ArgumentParserToolInfo for debugging
[98/328] Compiling ArgumentParser CommandConfiguration.swift
[99/328] Compiling ArgumentParser CommandGroup.swift
[100/328] Compiling ArgumentParser EnumerableFlag.swift
[101/328] Compiling ArgumentParser ArgumentHelp.swift
[102/328] Compiling ArgumentParser OptionGroup.swift
[103/328] Compiling ArgumentParser AsyncParsableCommand.swift
[104/328] Compiling ArgumentParser BashCompletionsGenerator.swift
[105/328] Compiling ArgumentParser CompletionsGenerator.swift
[106/328] Compiling ArgumentParser FishCompletionsGenerator.swift
[107/328] Emitting module Swinject
[108/328] Compiling ArgumentParser ZshCompletionsGenerator.swift
/host/spi-builder-workspace/Sources/Swinject/ReadWriteLock.swift:11:9: error: cannot find 'pthread_rwlock_init' in scope
9 |
10 | init() {
11 | pthread_rwlock_init(&lock, nil)
| `- error: cannot find 'pthread_rwlock_init' in scope
12 | }
13 |
/host/spi-builder-workspace/Sources/Swinject/ReadWriteLock.swift:11:36: error: 'nil' requires a contextual type
9 |
10 | init() {
11 | pthread_rwlock_init(&lock, nil)
| `- error: 'nil' requires a contextual type
12 | }
13 |
/host/spi-builder-workspace/Sources/Swinject/ReadWriteLock.swift:15:9: error: cannot find 'pthread_rwlock_destroy' in scope
13 |
14 | deinit {
15 | pthread_rwlock_destroy(&lock)
| `- error: cannot find 'pthread_rwlock_destroy' in scope
16 | }
17 |
/host/spi-builder-workspace/Sources/Swinject/ReadWriteLock.swift:19:9: error: cannot find 'pthread_rwlock_rdlock' in scope
17 |
18 | @inlinable public func read<T>(_ block: () throws -> T) rethrows -> T {
19 | pthread_rwlock_rdlock(&lock)
| `- error: cannot find 'pthread_rwlock_rdlock' in scope
20 | defer { pthread_rwlock_unlock(&lock) }
21 |
/host/spi-builder-workspace/Sources/Swinject/ReadWriteLock.swift:20:17: error: cannot find 'pthread_rwlock_unlock' in scope
18 | @inlinable public func read<T>(_ block: () throws -> T) rethrows -> T {
19 | pthread_rwlock_rdlock(&lock)
20 | defer { pthread_rwlock_unlock(&lock) }
| `- error: cannot find 'pthread_rwlock_unlock' in scope
21 |
22 | return try block()
/host/spi-builder-workspace/Sources/Swinject/ReadWriteLock.swift:26:9: error: cannot find 'pthread_rwlock_wrlock' in scope
24 |
25 | @inlinable public func write<T>(_ block: () throws -> T) rethrows -> T {
26 | pthread_rwlock_wrlock(&lock)
| `- error: cannot find 'pthread_rwlock_wrlock' in scope
27 | defer { pthread_rwlock_unlock(&lock) }
28 |
/host/spi-builder-workspace/Sources/Swinject/ReadWriteLock.swift:27:17: error: cannot find 'pthread_rwlock_unlock' in scope
25 | @inlinable public func write<T>(_ block: () throws -> T) rethrows -> T {
26 | pthread_rwlock_wrlock(&lock)
27 | defer { pthread_rwlock_unlock(&lock) }
| `- error: cannot find 'pthread_rwlock_unlock' in scope
28 |
29 | return try block()
[109/328] Compiling ArgumentParser Argument.swift
/host/spi-builder-workspace/Sources/Swinject/ReadWriteLock.swift:11:9: error: cannot find 'pthread_rwlock_init' in scope
9 |
10 | init() {
11 | pthread_rwlock_init(&lock, nil)
| `- error: cannot find 'pthread_rwlock_init' in scope
12 | }
13 |
/host/spi-builder-workspace/Sources/Swinject/ReadWriteLock.swift:11:36: error: 'nil' requires a contextual type
9 |
10 | init() {
11 | pthread_rwlock_init(&lock, nil)
| `- error: 'nil' requires a contextual type
12 | }
13 |
/host/spi-builder-workspace/Sources/Swinject/ReadWriteLock.swift:15:9: error: cannot find 'pthread_rwlock_destroy' in scope
13 |
14 | deinit {
15 | pthread_rwlock_destroy(&lock)
| `- error: cannot find 'pthread_rwlock_destroy' in scope
16 | }
17 |
/host/spi-builder-workspace/Sources/Swinject/ReadWriteLock.swift:19:9: error: cannot find 'pthread_rwlock_rdlock' in scope
17 |
18 | @inlinable public func read<T>(_ block: () throws -> T) rethrows -> T {
19 | pthread_rwlock_rdlock(&lock)
| `- error: cannot find 'pthread_rwlock_rdlock' in scope
20 | defer { pthread_rwlock_unlock(&lock) }
21 |
/host/spi-builder-workspace/Sources/Swinject/ReadWriteLock.swift:20:17: error: cannot find 'pthread_rwlock_unlock' in scope
18 | @inlinable public func read<T>(_ block: () throws -> T) rethrows -> T {
19 | pthread_rwlock_rdlock(&lock)
20 | defer { pthread_rwlock_unlock(&lock) }
| `- error: cannot find 'pthread_rwlock_unlock' in scope
21 |
22 | return try block()
/host/spi-builder-workspace/Sources/Swinject/ReadWriteLock.swift:26:9: error: cannot find 'pthread_rwlock_wrlock' in scope
24 |
25 | @inlinable public func write<T>(_ block: () throws -> T) rethrows -> T {
26 | pthread_rwlock_wrlock(&lock)
| `- error: cannot find 'pthread_rwlock_wrlock' in scope
27 | defer { pthread_rwlock_unlock(&lock) }
28 |
/host/spi-builder-workspace/Sources/Swinject/ReadWriteLock.swift:27:17: error: cannot find 'pthread_rwlock_unlock' in scope
25 | @inlinable public func write<T>(_ block: () throws -> T) rethrows -> T {
26 | pthread_rwlock_wrlock(&lock)
27 | defer { pthread_rwlock_unlock(&lock) }
| `- error: cannot find 'pthread_rwlock_unlock' in scope
28 |
29 | return try block()
[110/328] Compiling ArgumentParser ArgumentDiscussion.swift
/host/spi-builder-workspace/Sources/Swinject/ReadWriteLock.swift:11:9: error: cannot find 'pthread_rwlock_init' in scope
9 |
10 | init() {
11 | pthread_rwlock_init(&lock, nil)
| `- error: cannot find 'pthread_rwlock_init' in scope
12 | }
13 |
/host/spi-builder-workspace/Sources/Swinject/ReadWriteLock.swift:11:36: error: 'nil' requires a contextual type
9 |
10 | init() {
11 | pthread_rwlock_init(&lock, nil)
| `- error: 'nil' requires a contextual type
12 | }
13 |
/host/spi-builder-workspace/Sources/Swinject/ReadWriteLock.swift:15:9: error: cannot find 'pthread_rwlock_destroy' in scope
13 |
14 | deinit {
15 | pthread_rwlock_destroy(&lock)
| `- error: cannot find 'pthread_rwlock_destroy' in scope
16 | }
17 |
/host/spi-builder-workspace/Sources/Swinject/ReadWriteLock.swift:19:9: error: cannot find 'pthread_rwlock_rdlock' in scope
17 |
18 | @inlinable public func read<T>(_ block: () throws -> T) rethrows -> T {
19 | pthread_rwlock_rdlock(&lock)
| `- error: cannot find 'pthread_rwlock_rdlock' in scope
20 | defer { pthread_rwlock_unlock(&lock) }
21 |
/host/spi-builder-workspace/Sources/Swinject/ReadWriteLock.swift:20:17: error: cannot find 'pthread_rwlock_unlock' in scope
18 | @inlinable public func read<T>(_ block: () throws -> T) rethrows -> T {
19 | pthread_rwlock_rdlock(&lock)
20 | defer { pthread_rwlock_unlock(&lock) }
| `- error: cannot find 'pthread_rwlock_unlock' in scope
21 |
22 | return try block()
/host/spi-builder-workspace/Sources/Swinject/ReadWriteLock.swift:26:9: error: cannot find 'pthread_rwlock_wrlock' in scope
24 |
25 | @inlinable public func write<T>(_ block: () throws -> T) rethrows -> T {
26 | pthread_rwlock_wrlock(&lock)
| `- error: cannot find 'pthread_rwlock_wrlock' in scope
27 | defer { pthread_rwlock_unlock(&lock) }
28 |
/host/spi-builder-workspace/Sources/Swinject/ReadWriteLock.swift:27:17: error: cannot find 'pthread_rwlock_unlock' in scope
25 | @inlinable public func write<T>(_ block: () throws -> T) rethrows -> T {
26 | pthread_rwlock_wrlock(&lock)
27 | defer { pthread_rwlock_unlock(&lock) }
| `- error: cannot find 'pthread_rwlock_unlock' in scope
28 |
29 | return try block()
[111/328] Compiling ArgumentParser Option.swift
[112/328] Compiling ArgumentParser InputKey.swift
[113/328] Compiling ArgumentParser CompletionKind.swift
[114/328] Compiling ArgumentParser Errors.swift
[115/328] Compiling ArgumentParser Flag.swift
[116/328] Compiling ArgumentParser NameSpecification.swift
[117/328] Emitting module ArgumentParserToolInfo
BUILD FAILURE 6.2 wasm