Build Information
Failed to build Knit, reference main (3d4afe), with Swift 6.3 for Wasm on 17 Apr 2026 07:05:21 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/swiftpackageindex/spi-images:wasm-6.3-latest swift build --swift-sdk swift-6.3-RELEASE_wasm 2>&1Build Log
========================================
RunAll
========================================
Builder version: 4.70.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/cashapp/knit.git
Reference: main
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
* branch main -> FETCH_HEAD
* [new branch] main -> origin/main
HEAD is now at 3d4afea Merge pull request #317 from cashapp/bradfol/fix-warning
Cloned https://github.com/cashapp/knit.git
Revision (git rev-parse @):
3d4afea562b95a95725f689be819b10ff93351fc
SUCCESS checkout https://github.com/cashapp/knit.git at main
========================================
Build
========================================
Selected platform: wasm
Swift version: 6.3
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/swiftpackageindex/spi-images:wasm-6.3-latest swift build --swift-sdk swift-6.3-RELEASE_wasm 2>&1
wasm-6.3-latest: Pulling from swiftpackageindex/spi-images
Digest: sha256:d69f4e7582c319245442d62a08b2d7c7fd5a0c0c69f5d2ef11d1530cd8d3329b
Status: Image is up to date for registry.gitlab.com/swiftpackageindex/spi-images:wasm-6.3-latest
Fetching https://github.com/apple/swift-argument-parser
Fetching https://github.com/apple/swift-syntax.git
[1/17523] Fetching swift-argument-parser
[16824/92506] Fetching swift-argument-parser, swift-syntax
Fetched https://github.com/apple/swift-argument-parser from cache (18.38s)
Fetched https://github.com/apple/swift-syntax.git from cache (18.58s)
Computing version for https://github.com/apple/swift-syntax.git
Computed https://github.com/apple/swift-syntax.git at 602.0.0 (23.29s)
Computing version for https://github.com/apple/swift-argument-parser
Computed https://github.com/apple/swift-argument-parser at 1.7.1 (1.10s)
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.1
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
Downloading package prebuilt https://download.swift.org/prebuilts/swift-syntax/602.0.0/swift-6.3-RELEASE-ubuntu_jammy_x86_64-MacroSupport.tar.gz
Downloaded https://download.swift.org/prebuilts/swift-syntax/602.0.0/swift-6.3-RELEASE-ubuntu_jammy_x86_64-MacroSupport.tar.gz (0.76s)
[1/1] Compiling plugin KnitBuildPlugin
[2/2] Compiling plugin GenerateManual
[3/3] Compiling plugin GenerateDoccReference
Building for debugging...
[3/91] Write sources
[46/91] Compiling _SwiftSyntaxCShims PlatformMutex.c
[48/91] Write swift-version-24593BA9C3E375BF.txt
[50/139] Emitting module SwiftSyntax602
[51/139] Emitting module SwiftSyntax601
[52/139] Emitting module Swinject
[54/143] Emitting module SwiftSyntax602
[55/143] Compiling SwiftSyntax602 Empty.swift
[57/144] Emitting module SwiftSyntax601
[58/144] Compiling SwiftSyntax601 Empty.swift
[59/145] Compiling Swinject SwinjectResolver.swift
[60/145] Compiling Swinject _Resolver.swift
[61/145] Compiling Swinject Behavior.swift
[62/145] Compiling Swinject DebugHelper.swift
[63/145] Compiling Swinject FunctionType.swift
[66/145] Emitting module SwiftSyntax510
[67/145] Compiling SwiftSyntax510 Empty.swift
[68/145] Compiling SwiftSyntax602 Empty.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 |
/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 |
/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 |
[72/147] Compiling SwiftSyntax601 Empty.swift
[73/147] Emitting module SwiftSyntax600
[74/148] Compiling SwiftSyntax600 Empty.swift
[80/160] Emitting module SwiftSyntax600
[81/160] Compiling SwiftSyntax600 Empty.swift
[83/162] Compiling SwiftSyntax509 Empty.swift
[84/162] Emitting module SwiftSyntax509
[85/162] Emitting module SwiftSyntax510
[86/162] Compiling SwiftSyntax510 Empty.swift
[87/164] Compiling SwiftSyntax509 Empty.swift
[88/164] Emitting module SwiftSyntax509
[91/165] Wrapping AST for SwiftSyntax602 for debugging
[92/165] Wrapping AST for SwiftSyntax600 for debugging
[93/165] Wrapping AST for SwiftSyntax601 for debugging
[94/165] Wrapping AST for SwiftSyntax509 for debugging
[95/165] Wrapping AST for SwiftSyntax510 for debugging
[96/291] Wrapping AST for SwiftSyntax601 for debugging
[97/291] Wrapping AST for SwiftSyntax602 for debugging
[98/291] Wrapping AST for SwiftSyntax600 for debugging
[99/291] Wrapping AST for SwiftSyntax510 for debugging
[100/291] Wrapping AST for SwiftSyntax509 for debugging
[102/291] Compiling ArgumentParserToolInfo ToolInfo.swift
[103/291] Emitting module ArgumentParserToolInfo
[104/292] Wrapping AST for ArgumentParserToolInfo for debugging
[106/292] Compiling ArgumentParserToolInfo ToolInfo.swift
[107/292] Emitting module ArgumentParserToolInfo
[108/293] Compiling SwiftSyntax SyntaxCollection.swift
[109/293] Compiling SwiftSyntax SyntaxHashable.swift
[110/293] Compiling SwiftSyntax Assert.swift
[111/293] Compiling SwiftSyntax BumpPtrAllocator.swift
[112/293] Compiling SwiftSyntax CommonAncestor.swift
[113/293] Compiling SwiftSyntax Convenience.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()
[114/293] Compiling SwiftSyntax CustomTraits.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()
[115/293] Compiling SwiftSyntax EditorPlaceholder.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()
[117/337] Compiling ArgumentParser Errors.swift
[118/337] Compiling ArgumentParser Flag.swift
[119/337] Compiling ArgumentParser OptionGroup.swift
[120/337] Compiling ArgumentParser ParsableCommand.swift
[121/339] Compiling ArgumentParser NameSpecification.swift
[122/339] Compiling ArgumentParser Option.swift
[122/339] Wrapping AST for ArgumentParserToolInfo for debugging
error: cancelled
error: cancelled
error: cancelled
error: cancelled
error: cancelled
error: cancelled
error: cancelled
error: cancelled
error: cancelled
BUILD FAILURE 6.3 wasm