Build Information
Failed to build swift-utilities, reference 0.7.0 (615c4f), with Swift 6.4 for Wasm on 20 Sep 2026 17:45:59 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-53886770-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.x-DEVELOPMENT-SNAPSHOT-2026-09-04-a_wasm 2>&1Build Log
========================================
RunAll
========================================
Builder version: 5.1.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/danthorpe/swift-utilities.git
Reference: 0.7.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/danthorpe/swift-utilities
* tag 0.7.0 -> FETCH_HEAD
HEAD is now at 615c4fb bot: bump github.com/pointfreeco/swift-dependencies from 1.2.2 to 1.3.0 (#42)
Cloned https://github.com/danthorpe/swift-utilities.git
Revision (git rev-parse @):
615c4fbf115a584057b978b2c18a4c75198f4d61
SUCCESS checkout https://github.com/danthorpe/swift-utilities.git at 0.7.0
========================================
Build
========================================
Selected platform: wasm
Swift version: 6.4
Building package at path: $PWD
https://github.com/danthorpe/swift-utilities.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-53886770-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.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/apple/swift-docc-plugin
Fetching http://github.com/pointfreeco/xctest-dynamic-overlay
Fetching https://github.com/apple/swift-argument-parser
Fetching https://github.com/apple/swift-collections
Fetching https://github.com/pointfreeco/swift-dependencies
[1/2345] Fetching swift-docc-plugin
[2/9936] Fetching swift-docc-plugin, swift-dependencies
[7454/28854] Fetching swift-docc-plugin, swift-dependencies, swift-argument-parser
Fetched https://github.com/apple/swift-docc-plugin (0.59s)
[11564/26509] Fetching swift-dependencies, swift-argument-parser
Fetching https://github.com/pointfreeco/swift-custom-dump
Fetched https://github.com/pointfreeco/swift-dependencies (0.59s)
[4352/18918] Fetching swift-argument-parser
[4353/46270] Fetching swift-argument-parser, swift-collections
[5678/48997] Fetching swift-argument-parser, swift-collections, xctest-dynamic-overlay
Fetching https://github.com/apple/swift-async-algorithms
[48998/54663] Fetching swift-argument-parser, swift-collections, xctest-dynamic-overlay, swift-custom-dump
Fetched https://github.com/pointfreeco/swift-custom-dump (0.54s)
Fetched http://github.com/pointfreeco/xctest-dynamic-overlay (1.17s)
Fetched https://github.com/apple/swift-argument-parser (1.17s)
Fetched https://github.com/apple/swift-collections (1.18s)
[1/6723] Fetching swift-async-algorithms
Fetched https://github.com/apple/swift-async-algorithms (0.58s)
Computing version for https://github.com/apple/swift-docc-plugin
Computed https://github.com/apple/swift-docc-plugin at 1.5.0 (2.45s)
Fetching https://github.com/swiftlang/swift-docc-symbolkit
[1/3824] Fetching swift-docc-symbolkit
Fetched https://github.com/swiftlang/swift-docc-symbolkit (0.58s)
Computing version for https://github.com/swiftlang/swift-docc-symbolkit
Computed https://github.com/swiftlang/swift-docc-symbolkit at 1.0.0 (0.81s)
Computing version for https://github.com/apple/swift-async-algorithms
Computed https://github.com/apple/swift-async-algorithms at 1.1.5 (0.24s)
Computing version for https://github.com/apple/swift-collections
Computed https://github.com/apple/swift-collections at 1.6.0 (0.35s)
Computing version for https://github.com/apple/swift-argument-parser
Computed https://github.com/apple/swift-argument-parser at 1.8.2 (0.22s)
Computing version for https://github.com/pointfreeco/swift-custom-dump
Computed https://github.com/pointfreeco/swift-custom-dump at 1.7.3 (0.24s)
Fetching https://github.com/pointfreeco/swift-issue-reporting
[1/6136] Fetching swift-issue-reporting
Fetched https://github.com/pointfreeco/swift-issue-reporting (0.72s)
Computing version for https://github.com/pointfreeco/swift-issue-reporting
Computed https://github.com/pointfreeco/swift-issue-reporting at 2.1.0 (2.33s)
Computing version for http://github.com/pointfreeco/xctest-dynamic-overlay
Computed http://github.com/pointfreeco/xctest-dynamic-overlay at 1.13.1 (0.34s)
Computing version for https://github.com/pointfreeco/swift-dependencies
Computed https://github.com/pointfreeco/swift-dependencies at 1.17.1 (0.36s)
Fetching https://github.com/pointfreeco/swift-concurrency-extras
Fetching https://github.com/pointfreeco/swift-clocks
Fetching https://github.com/swiftlang/swift-syntax
[1/1058] Fetching swift-concurrency-extras
[1059/2504] Fetching swift-concurrency-extras, swift-clocks
Fetching https://github.com/pointfreeco/combine-schedulers
Fetched https://github.com/pointfreeco/swift-concurrency-extras (0.54s)
[637/1446] Fetching swift-clocks
[1447/4132] Fetching swift-clocks, combine-schedulers
Fetched https://github.com/pointfreeco/combine-schedulers (0.49s)
[1/79986] Fetching swift-syntax
Fetched https://github.com/pointfreeco/swift-clocks (3.07s)
Fetched https://github.com/swiftlang/swift-syntax (3.09s)
Computing version for https://github.com/pointfreeco/swift-clocks
Computed https://github.com/pointfreeco/swift-clocks at 1.1.1 (3.29s)
Computing version for https://github.com/pointfreeco/combine-schedulers
Computed https://github.com/pointfreeco/combine-schedulers at 1.2.2 (0.19s)
Fetching https://github.com/OpenCombine/OpenCombine.git
[1/8284] Fetching opencombine
Fetched https://github.com/OpenCombine/OpenCombine.git (0.68s)
Computing version for https://github.com/OpenCombine/OpenCombine.git
Computed https://github.com/OpenCombine/OpenCombine.git at 0.14.0 (0.91s)
Computing version for https://github.com/pointfreeco/swift-concurrency-extras
Computed https://github.com/pointfreeco/swift-concurrency-extras at 1.4.1 (0.18s)
Computing version for https://github.com/swiftlang/swift-syntax
Computed https://github.com/swiftlang/swift-syntax at 604.0.0 (0.32s)
Creating working copy for https://github.com/apple/swift-argument-parser
Working copy of https://github.com/apple/swift-argument-parser resolved at 1.8.2
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/pointfreeco/swift-concurrency-extras
Working copy of https://github.com/pointfreeco/swift-concurrency-extras resolved at 1.4.1
Creating working copy for https://github.com/OpenCombine/OpenCombine.git
Working copy of https://github.com/OpenCombine/OpenCombine.git resolved at 0.14.0
Creating working copy for https://github.com/apple/swift-async-algorithms
Working copy of https://github.com/apple/swift-async-algorithms resolved at 1.1.5
Creating working copy for https://github.com/pointfreeco/combine-schedulers
Working copy of https://github.com/pointfreeco/combine-schedulers resolved at 1.2.2
Creating working copy for https://github.com/pointfreeco/swift-dependencies
Working copy of https://github.com/pointfreeco/swift-dependencies resolved at 1.17.1
Creating working copy for https://github.com/apple/swift-collections
Working copy of https://github.com/apple/swift-collections resolved at 1.6.0
Creating working copy for https://github.com/pointfreeco/swift-clocks
Working copy of https://github.com/pointfreeco/swift-clocks resolved at 1.1.1
Creating working copy for https://github.com/swiftlang/swift-syntax
Working copy of https://github.com/swiftlang/swift-syntax resolved at 604.0.0
Creating working copy for https://github.com/pointfreeco/swift-custom-dump
Working copy of https://github.com/pointfreeco/swift-custom-dump resolved at 1.7.3
Creating working copy for http://github.com/pointfreeco/xctest-dynamic-overlay
Working copy of http://github.com/pointfreeco/xctest-dynamic-overlay resolved at 1.13.1
Creating working copy for https://github.com/pointfreeco/swift-issue-reporting
Working copy of https://github.com/pointfreeco/swift-issue-reporting resolved at 2.1.0
Creating working copy for https://github.com/apple/swift-docc-plugin
Working copy of https://github.com/apple/swift-docc-plugin resolved at 1.5.0
Building for debugging...
[Computing dependencies]
[Constructing description]
[Pre-planning 1 / 743]
[Planning deferred tasks]
[125 / 284] IssueReporting
[126 / 284] InternalCollectionsUtilities
[137 / 284] IssueReporting
[148 / 284] ConcurrencyExtras
[150 / 284] IssueReporting-product
[151 / 284] IssueReporting-product
[152 / 284] _IssueReporting
[155 / 284] InternalCollectionsUtilities
error: SwiftCompile normal wasm32 /host/spi-builder-workspace/Sources/Protected/Protected.swift failed with a nonzero exit code. Command line: cd /host
builtin-SwiftPerFileCompile Protected.swift
/host/spi-builder-workspace/Sources/Protected/Protected.swift:68:5: [1;31merror: [1;39mcannot find 'pthread_mutexattr_init' in scope[0;0m
[0;36m66 |[0;0m init() {
[0;36m67 |[0;0m var attr: pthread_mutexattr_t = pthread_mutexattr_t()
[0;36m68 |[0;0m [4;39mpthread_mutexattr_init[0;0m(&attr)
[0;36m|[0;0m `- [1;31merror: [1;39mcannot find 'pthread_mutexattr_init' in scope[0;0m
[0;36m69 |[0;0m #if DEBUG
[0;36m70 |[0;0m pthread_mutexattr_settype(&attr, Int32(PTHREAD_MUTEX_RECURSIVE))
/host/spi-builder-workspace/Sources/Protected/Protected.swift:70:5: [1;31merror: [1;39mcannot find 'pthread_mutexattr_settype' in scope[0;0m
[0;36m68 |[0;0m pthread_mutexattr_init(&attr)
[0;36m69 |[0;0m #if DEBUG
[0;36m70 |[0;0m [4;39mpthread_mutexattr_settype[0;0m(&attr, Int32(PTHREAD_MUTEX_RECURSIVE))
[0;36m|[0;0m `- [1;31merror: [1;39mcannot find 'pthread_mutexattr_settype' in scope[0;0m
[0;36m71 |[0;0m #endif
[0;36m72 |[0;0m
/host/spi-builder-workspace/Sources/Protected/Protected.swift:70:44: [1;31merror: [1;39mcannot find 'PTHREAD_MUTEX_RECURSIVE' in scope[0;0m
[0;36m68 |[0;0m pthread_mutexattr_init(&attr)
[0;36m69 |[0;0m #if DEBUG
[0;36m70 |[0;0m pthread_mutexattr_settype(&attr, Int32([4;39mPTHREAD_MUTEX_RECURSIVE[0;0m))
[0;36m|[0;0m `- [1;31merror: [1;39mcannot find 'PTHREAD_MUTEX_RECURSIVE' in scope[0;0m
[0;36m71 |[0;0m #endif
[0;36m72 |[0;0m
/host/spi-builder-workspace/Sources/Protected/Protected.swift:73:15: [1;31merror: [1;39mcannot find 'pthread_mutex_init' in scope[0;0m
[0;36m71 |[0;0m #endif
[0;36m72 |[0;0m
[0;36m73 |[0;0m let err = [4;39mpthread_mutex_init[0;0m(self.mutex, &attr)
[0;36m|[0;0m `- [1;31merror: [1;39mcannot find 'pthread_mutex_init' in scope[0;0m
[0;36m74 |[0;0m precondition(err == 0, "\(#function) failed in pthread_mutex with error \(err)")
[0;36m75 |[0;0m }
/host/spi-builder-workspace/Sources/Protected/Protected.swift:78:15: [1;31merror: [1;39mcannot find 'pthread_mutex_destroy' in scope[0;0m
[0;36m76 |[0;0m
[0;36m77 |[0;0m deinit {
[0;36m78 |[0;0m let err = [4;39mpthread_mutex_destroy[0;0m(self.mutex)
[0;36m|[0;0m `- [1;31merror: [1;39mcannot find 'pthread_mutex_destroy' in scope[0;0m
[0;36m79 |[0;0m precondition(err == 0, "\(#function) failed in pthread_mutex with error \(err)")
[0;36m80 |[0;0m mutex.deallocate()
/host/spi-builder-workspace/Sources/Protected/Protected.swift:84:15: [1;31merror: [1;39mcannot find 'pthread_mutex_lock' in scope[0;0m
[0;36m82 |[0;0m
[0;36m83 |[0;0m fileprivate func lock() {
[0;36m84 |[0;0m let err = [4;39mpthread_mutex_lock[0;0m(self.mutex)
[0;36m|[0;0m `- [1;31merror: [1;39mcannot find 'pthread_mutex_lock' in scope[0;0m
[0;36m85 |[0;0m precondition(err == 0, "\(#function) failed in pthread_mutex with error \(err)")
[0;36m86 |[0;0m }
/host/spi-builder-workspace/Sources/Protected/Protected.swift:89:15: [1;31merror: [1;39mcannot find 'pthread_mutex_unlock' in scope[0;0m
[0;36m87 |[0;0m
[0;36m88 |[0;0m fileprivate func unlock() {
[0;36m89 |[0;0m let err = [4;39mpthread_mutex_unlock[0;0m(self.mutex)
[0;36m|[0;0m `- [1;31merror: [1;39mcannot find 'pthread_mutex_unlock' in scope[0;0m
[0;36m90 |[0;0m precondition(err == 0, "\(#function) failed in pthread_mutex with error \(err)")
[0;36m91 |[0;0m }
Failed frontend command:
/usr/bin/swift-frontend -frontend -c -primary-file /host/spi-builder-workspace/Sources/Protected/Protected.swift -emit-dependencies-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/swift-utilities.build/Debug-webassembly-wasm32/Protected-t.build/Objects-normal/wasm32/Protected.d -emit-const-values-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/swift-utilities.build/Debug-webassembly-wasm32/Protected-t.build/Objects-normal/wasm32/Protected.swiftconstvalues -emit-reference-dependencies-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/swift-utilities.build/Debug-webassembly-wasm32/Protected-t.build/Objects-normal/wasm32/Protected.swiftdeps -serialize-diagnostics-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/swift-utilities.build/Debug-webassembly-wasm32/Protected-t.build/Objects-normal/wasm32/Protected.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 5 -Onone -D SWIFT_PACKAGE -D DEBUG -D SWIFT_MODULE_RESOURCE_BUNDLE_UNAVAILABLE -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/swift-utilities.build/Debug-webassembly-wasm32/Protected-t.build/DerivedSources-normal/wasm32 -Xcc -I/host/spi-builder-workspace/.build/out/Intermediates.noindex/swift-utilities.build/Debug-webassembly-wasm32/Protected-t.build/DerivedSources/wasm32 -Xcc -I/host/spi-builder-workspace/.build/out/Intermediates.noindex/swift-utilities.build/Debug-webassembly-wasm32/Protected-t.build/DerivedSources -Xcc -DSWIFT_PACKAGE -Xcc -DDEBUG\=1 -no-auto-bridging-header-chaining -module-name Protected -const-gather-protocols-file /host/spi-builder-workspace/.build/out/Intermediates.noindex/swift-utilities.build/Debug-webassembly-wasm32/Protected-t.build/Objects-normal/wasm32/Protected_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/swift-utilities.build/Debug-webassembly-wasm32/Protected-t.build/Objects-normal/wasm32/Protected.o -index-unit-output-path /swift-utilities.build/Debug-webassembly-wasm32/Protected-t.build/Objects-normal/wasm32/Protected.o -index-store-path /host/spi-builder-workspace/.build/out -index-system-modules
error: Build failed
BUILD FAILURE 6.4 wasm