The Swift Package Index logo.Swift Package Index

Build Information

Failed to build pkl-swift, reference main (96bb8d), with Swift 6.4 for Wasm on 18 Oct 2026 00:07:21 UTC.

Build Command

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

Build Log

========================================
RunAll
========================================
Builder version: 5.1.3
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/apple/pkl-swift.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/apple/pkl-swift
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at 96bb8d2 Spawn and tear down pkl child processes via swift-subprocess (#193)
Cloned https://github.com/apple/pkl-swift.git
Revision (git rev-parse @):
96bb8d264e9667508da38432c831267794f1f791
SPI manifest file found: $PWD/.spi.yml
SUCCESS checkout https://github.com/apple/pkl-swift.git at main
========================================
Build
========================================
Selected platform:         wasm
Swift version:             6.4
Building package at path:  $PWD
https://github.com/apple/pkl-swift.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-54344843-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.4-latest swift build --swift-sdk swift-6.4.0-RELEASE_wasm 2>&1
wasm-6.4-latest: Pulling from saguaro1/spi-images
Digest: sha256:7a2e5502d3bb6640f9b2bbb1dadf9967024364ce9ed0ed0bd80cf1b699d193fd
Status: Image is up to date for registry.gitlab.com/saguaro1/spi-images:wasm-6.4-latest
Fetching https://github.com/swiftlang/swift-docc-plugin
Fetching https://github.com/nicklockwood/SwiftFormat
Fetching https://github.com/swiftlang/swift-subprocess
Fetching https://github.com/apple/swift-system
Fetching https://github.com/SwiftPackageIndex/SemanticVersion
[1/442] Fetching semanticversion
[41/2787] Fetching semanticversion, swift-docc-plugin
[678/7774] Fetching semanticversion, swift-docc-plugin, swift-subprocess
[7775/15097] Fetching semanticversion, swift-docc-plugin, swift-subprocess, swift-system
Fetched https://github.com/SwiftPackageIndex/SemanticVersion (0.65s)
Fetched https://github.com/apple/swift-system (0.65s)
Fetched https://github.com/swiftlang/swift-subprocess (0.65s)
[1/61640] Fetching swiftformat
Fetched https://github.com/swiftlang/swift-docc-plugin (22.52s)
Fetched https://github.com/nicklockwood/SwiftFormat (22.77s)
Computing version for https://github.com/swiftlang/swift-subprocess
Computed https://github.com/swiftlang/swift-subprocess at 1.0.2 (22.94s)
Computing version for https://github.com/SwiftPackageIndex/SemanticVersion
Computed https://github.com/SwiftPackageIndex/SemanticVersion at 0.5.3 (0.94s)
Computing version for https://github.com/swiftlang/swift-docc-plugin
Computed https://github.com/swiftlang/swift-docc-plugin at 1.5.0 (0.25s)
Fetching https://github.com/swiftlang/swift-docc-symbolkit
[1/3842] Fetching swift-docc-symbolkit
Fetched https://github.com/swiftlang/swift-docc-symbolkit (0.53s)
Computing version for https://github.com/swiftlang/swift-docc-symbolkit
Computed https://github.com/swiftlang/swift-docc-symbolkit at 1.0.0 (0.75s)
Computing version for https://github.com/apple/swift-system
Computed https://github.com/apple/swift-system at 1.8.1 (0.18s)
Computing version for https://github.com/nicklockwood/SwiftFormat
Computed https://github.com/nicklockwood/SwiftFormat at 0.64.0 (0.17s)
Creating working copy for https://github.com/nicklockwood/SwiftFormat
Working copy of https://github.com/nicklockwood/SwiftFormat resolved at 0.64.0
Creating working copy for https://github.com/swiftlang/swift-docc-plugin
Working copy of https://github.com/swiftlang/swift-docc-plugin resolved at 1.5.0
Creating working copy for https://github.com/SwiftPackageIndex/SemanticVersion
Working copy of https://github.com/SwiftPackageIndex/SemanticVersion resolved at 0.5.3
Creating working copy for https://github.com/swiftlang/swift-docc-symbolkit
Working copy of https://github.com/swiftlang/swift-docc-symbolkit resolved at 1.0.0
Creating working copy for https://github.com/swiftlang/swift-subprocess
Working copy of https://github.com/swiftlang/swift-subprocess resolved at 1.0.2
Creating working copy for https://github.com/apple/swift-system
Working copy of https://github.com/apple/swift-system resolved at 1.8.1
Building for debugging...
[Computing dependencies]
[Pre-planning 1 / 273]
[Constructing 306 / 544]
[45 / 80] SemanticVersion
[54 / 93] SystemPackage
[61 / 93] SystemPackage
[63 / 93] SemanticVersion
[70 / 93] SystemPackage-product
[74 / 103] PklMessagePack
[75 / 103] PklMessagePack
[77 / 103] PklMessagePack
[79 / 104] SystemPackage
[85 / 105] SemanticVersion
[86 / 105]
[92 / 106] PklSwift
[96 / 115] PklSwift
[96 / 115] PklMessagePack
error: SwiftCompile normal wasm32 /host/spi-builder-workspace/Sources/PklSwift/locks.swift failed with a nonzero exit code. Command line:     cd /host
    builtin-SwiftPerFileCompile locks.swift
[98 / 115] PklSwift
/host/spi-builder-workspace/Sources/PklSwift/locks.swift:43:8: error: The concurrency PklLock module was unable to identify your C library.
 41 | import Android
 42 | #else
 43 | #error("The concurrency PklLock module was unable to identify your C library.")
    |        `- error: The concurrency PklLock module was unable to identify your C library.
 44 | #endif
 45 |
/host/spi-builder-workspace/Sources/PklSwift/locks.swift:56:27: error: cannot find type 'pthread_mutex_t' in scope
 54 | #else
 55 | @usableFromInline
 56 | typealias LockPrimitive = pthread_mutex_t
    |                           `- error: cannot find type 'pthread_mutex_t' in scope
 57 | #endif
 58 |
/host/spi-builder-workspace/Sources/PklSwift/locks.swift:89:20: error: cannot find 'pthread_mutexattr_t' in scope
 87 |         precondition(err == 0, "\(#function) failed in pthread_mutex with error \(err)")
 88 |         #else
 89 |         var attr = pthread_mutexattr_t()
    |                    `- error: cannot find 'pthread_mutexattr_t' in scope
 90 |         pthread_mutexattr_init(&attr)
 91 |
/host/spi-builder-workspace/Sources/PklSwift/locks.swift:90:9: error: cannot find 'pthread_mutexattr_init' in scope
 88 |         #else
 89 |         var attr = pthread_mutexattr_t()
 90 |         pthread_mutexattr_init(&attr)
    |         `- error: cannot find 'pthread_mutexattr_init' in scope
 91 |
 92 |         debugOnly {
/host/spi-builder-workspace/Sources/PklSwift/locks.swift:93:13: error: cannot find 'pthread_mutexattr_settype' in scope
 91 |
 92 |         debugOnly {
 93 |             pthread_mutexattr_settype(&attr, .init(PTHREAD_MUTEX_ERRORCHECK))
    |             `- error: cannot find 'pthread_mutexattr_settype' in scope
 94 |         }
 95 |
/host/spi-builder-workspace/Sources/PklSwift/locks.swift:93:52: error: cannot find 'PTHREAD_MUTEX_ERRORCHECK' in scope
 91 |
 92 |         debugOnly {
 93 |             pthread_mutexattr_settype(&attr, .init(PTHREAD_MUTEX_ERRORCHECK))
    |                                                    `- error: cannot find 'PTHREAD_MUTEX_ERRORCHECK' in scope
 94 |         }
 95 |
/host/spi-builder-workspace/Sources/PklSwift/locks.swift:96:19: error: cannot find 'pthread_mutex_init' in scope
 94 |         }
 95 |
 96 |         let err = pthread_mutex_init(mutex, &attr)
    |                   `- error: cannot find 'pthread_mutex_init' in scope
 97 |         precondition(err == 0, "\(#function) failed in pthread_mutex with error \(err)")
 98 |         #endif
/host/spi-builder-workspace/Sources/PklSwift/locks.swift:108:19: error: cannot find 'pthread_mutex_destroy' in scope
106 |         // SRWLOCK does not need to be free'd
107 |         #else
108 |         let err = pthread_mutex_destroy(mutex)
    |                   `- error: cannot find 'pthread_mutex_destroy' in scope
109 |         precondition(err == 0, "\(#function) failed in pthread_mutex with error \(err)")
110 |         #endif
/host/spi-builder-workspace/Sources/PklSwift/locks.swift:120:19: error: cannot find 'pthread_mutex_lock' in scope
118 |         AcquireSRWLockExclusive(mutex)
119 |         #else
120 |         let err = pthread_mutex_lock(mutex)
    |                   `- error: cannot find 'pthread_mutex_lock' in scope
121 |         precondition(err == 0, "\(#function) failed in pthread_mutex with error \(err)")
122 |         #endif
/host/spi-builder-workspace/Sources/PklSwift/locks.swift:132:19: error: cannot find 'pthread_mutex_unlock' in scope
130 |         ReleaseSRWLockExclusive(mutex)
131 |         #else
132 |         let err = pthread_mutex_unlock(mutex)
    |                   `- error: cannot find 'pthread_mutex_unlock' in scope
133 |         precondition(err == 0, "\(#function) failed in pthread_mutex with error \(err)")
134 |         #endif
/host/spi-builder-workspace/Sources/PklSwift/locks.swift:170:27: error: failed to produce diagnostic for expression; please submit a bug report (https://swift.org/contributing/#reporting-bugs)
168 |     @inlinable
169 |     static func create(value: Value) -> Self {
170 |         let buffer = Self.create(minimumCapacity: 1) { _ in
    |                           `- error: failed to produce diagnostic for expression; please submit a bug report (https://swift.org/contributing/#reporting-bugs)
171 |             value
172 |         }
/host/spi-builder-workspace/Sources/PklSwift/locks.swift:184:14: error: failed to produce diagnostic for expression; please submit a bug report (https://swift.org/contributing/#reporting-bugs)
182 |     @inlinable
183 |     func lock() {
184 |         self.withUnsafeMutablePointerToElements { lockPtr in
    |              `- error: failed to produce diagnostic for expression; please submit a bug report (https://swift.org/contributing/#reporting-bugs)
185 |             LockOperations.lock(lockPtr)
186 |         }
/host/spi-builder-workspace/Sources/PklSwift/locks.swift:191:14: error: failed to produce diagnostic for expression; please submit a bug report (https://swift.org/contributing/#reporting-bugs)
189 |     @inlinable
190 |     func unlock() {
191 |         self.withUnsafeMutablePointerToElements { lockPtr in
    |              `- error: failed to produce diagnostic for expression; please submit a bug report (https://swift.org/contributing/#reporting-bugs)
192 |             LockOperations.unlock(lockPtr)
193 |         }
/host/spi-builder-workspace/Sources/PklSwift/locks.swift:198:14: error: failed to produce diagnostic for expression; please submit a bug report (https://swift.org/contributing/#reporting-bugs)
196 |     @inlinable
197 |     deinit {
198 |         self.withUnsafeMutablePointerToElements { lockPtr in
    |              `- error: failed to produce diagnostic for expression; please submit a bug report (https://swift.org/contributing/#reporting-bugs)
199 |             LockOperations.destroy(lockPtr)
200 |         }
/host/spi-builder-workspace/Sources/PklSwift/locks.swift:205:18: error: failed to produce diagnostic for expression; please submit a bug report (https://swift.org/contributing/#reporting-bugs)
203 |     @inlinable
204 |     func withLockPrimitive<T>(_ body: (UnsafeMutablePointer<LockPrimitive>) throws -> T) rethrows -> T {
205 |         try self.withUnsafeMutablePointerToElements { lockPtr in
    |                  `- error: failed to produce diagnostic for expression; please submit a bug report (https://swift.org/contributing/#reporting-bugs)
206 |             try body(lockPtr)
207 |         }
/host/spi-builder-workspace/Sources/PklSwift/locks.swift:212:18: error: failed to produce diagnostic for expression; please submit a bug report (https://swift.org/contributing/#reporting-bugs)
210 |     @inlinable
211 |     func withLockedValue<T>(_ mutate: (inout Value) throws -> T) rethrows -> T {
212 |         try self.withUnsafeMutablePointers { valuePtr, lockPtr in
    |                  `- error: failed to produce diagnostic for expression; please submit a bug report (https://swift.org/contributing/#reporting-bugs)
213 |             LockOperations.lock(lockPtr)
214 |             defer { LockOperations.unlock(lockPtr) }
Failed frontend command:
/usr/bin/swift-frontend -frontend -c /host/spi-builder-workspace/Sources/PklSwift/API/Class.swift /host/spi-builder-workspace/Sources/PklSwift/API/DataSize.swift /host/spi-builder-workspace/Sources/PklSwift/API/Duration.swift /host/spi-builder-workspace/Sources/PklSwift/API/Reference.swift /host/spi-builder-workspace/Sources/PklSwift/API/TypeAlias.swift /host/spi-builder-workspace/Sources/PklSwift/Decoder/PklDecoder.swift /host/spi-builder-workspace/Sources/PklSwift/Decoder/PklMapDecodingContainer.swift /host/spi-builder-workspace/Sources/PklSwift/Decoder/PklSingleValueDecodingContainer.swift /host/spi-builder-workspace/Sources/PklSwift/Decoder/PklTypedDecodingContainer.swift /host/spi-builder-workspace/Sources/PklSwift/Decoder/PklUnkeyedDecodingContainer.swift /host/spi-builder-workspace/Sources/PklSwift/Evaluator.swift /host/spi-builder-workspace/Sources/PklSwift/EvaluatorManager.swift /host/spi-builder-workspace/Sources/PklSwift/EvaluatorOptions.swift /host/spi-builder-workspace/Sources/PklSwift/ExternalReaderClient.swift /host/spi-builder-workspace/Sources/PklSwift/Logger.swift /host/spi-builder-workspace/Sources/PklSwift/Message.swift /host/spi-builder-workspace/Sources/PklSwift/MessageTransport.swift /host/spi-builder-workspace/Sources/PklSwift/ModuleSource.swift /host/spi-builder-workspace/Sources/PklSwift/PklCodingKey.swift /host/spi-builder-workspace/Sources/PklSwift/PklEvaluatorSettings.swift /host/spi-builder-workspace/Sources/PklSwift/Project.swift /host/spi-builder-workspace/Sources/PklSwift/Reader.swift -primary-file /host/spi-builder-workspace/Sources/PklSwift/TypeRegistry.swift -primary-file /host/spi-builder-workspace/Sources/PklSwift/Utils.swift -primary-file /host/spi-builder-workspace/Sources/PklSwift/locks.swift -supplementary-output-file-map /host/spi-builder-workspace/.build/out/Intermediates.noindex/pkl-swift.build/Debug-webassembly-wasm32/PklSwift-t.build/Objects-normal/wasm32/supplementaryOutputs-16 -target wasm32-unknown-wasip1 -disable-objc-interop -sdk /root/.swiftpm/swift-sdks/swift-6.4.0-RELEASE_wasm.artifactbundle/swift-6.4.0-RELEASE_wasm/wasm32-unknown-wasip1/WASI.sdk -sysroot /root/.swiftpm/swift-sdks/swift-6.4.0-RELEASE_wasm.artifactbundle/swift-6.4.0-RELEASE_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_UNAVAILABLE -D Xcode -serialize-debugging-options -enable-upcoming-feature StrictConcurrency -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.0-RELEASE_wasm.artifactbundle/swift-6.4.0-RELEASE_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.0-RELEASE_wasm.artifactbundle/swift-6.4.0-RELEASE_wasm/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/clang -Xcc -fmodule-map-file\=/host/spi-builder-workspace/.build/checkouts/swift-system/Sources/CSystem/include/module.modulemap -Xcc -fmodule-map-file\=/host/spi-builder-workspace/.build/out/Intermediates.noindex/GeneratedModuleMaps-webassembly-wasm32/PklSwiftInternals.modulemap -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/checkouts/swift-system/Sources/CSystem/include -Xcc -I/host/spi-builder-workspace/Sources/PklSwiftInternals/include -Xcc -I/host/spi-builder-workspace/.build/out/Products/Debug-webassembly-wasm32/include -Xcc -I/host/spi-builder-workspace/.build/out/Intermediates.noindex/pkl-swift.build/Debug-webassembly-wasm32/PklSwift-t.build/DerivedSources-normal/wasm32 -Xcc -I/host/spi-builder-workspace/.build/out/Intermediates.noindex/pkl-swift.build/Debug-webassembly-wasm32/PklSwift-t.build/DerivedSources/wasm32 -Xcc -I/host/spi-builder-workspace/.build/out/Intermediates.noindex/pkl-swift.build/Debug-webassembly-wasm32/PklSwift-t.build/DerivedSources -Xcc -DSWIFT_PACKAGE -Xcc -DDEBUG\=1 -no-auto-bridging-header-chaining -module-name PklSwift -package-name spi_builder_workspace -const-gather-protocols-file /host/spi-builder-workspace/.build/out/Intermediates.noindex/pkl-swift.build/Debug-webassembly-wasm32/PklSwift-t.build/Objects-normal/wasm32/PklSwift_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/pkl-swift.build/Debug-webassembly-wasm32/PklSwift-t.build/Objects-normal/wasm32/TypeRegistry.o -o /host/spi-builder-workspace/.build/out/Intermediates.noindex/pkl-swift.build/Debug-webassembly-wasm32/PklSwift-t.build/Objects-normal/wasm32/Utils.o -o /host/spi-builder-workspace/.build/out/Intermediates.noindex/pkl-swift.build/Debug-webassembly-wasm32/PklSwift-t.build/Objects-normal/wasm32/locks.o -index-unit-output-path /pkl-swift.build/Debug-webassembly-wasm32/PklSwift-t.build/Objects-normal/wasm32/TypeRegistry.o -index-unit-output-path /pkl-swift.build/Debug-webassembly-wasm32/PklSwift-t.build/Objects-normal/wasm32/Utils.o -index-unit-output-path /pkl-swift.build/Debug-webassembly-wasm32/PklSwift-t.build/Objects-normal/wasm32/locks.o -index-store-path /host/spi-builder-workspace/.build/out -index-system-modules
error: Build failed
BUILD FAILURE 6.4 wasm