The Swift Package Index logo.Swift Package Index

Build Information

Failed to build swift-utilities, reference main (79aa88), with Swift 6.4 for Wasm on 20 Sep 2026 17:45:57 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.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/danthorpe/swift-utilities.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/danthorpe/swift-utilities
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at 79aa888 bot: bump github.com/pointfreeco/xctest-dynamic-overlay from 1.5.1 to 1.5.2 (#63)
Cloned https://github.com/danthorpe/swift-utilities.git
Revision (git rev-parse @):
79aa8887a2549c0dfea61952c2b69a0438c38279
SUCCESS checkout https://github.com/danthorpe/swift-utilities.git at main
========================================
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-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.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/pointfreeco/swift-dependencies
Fetching https://github.com/pointfreeco/swift-concurrency-extras
Fetching http://github.com/pointfreeco/xctest-dynamic-overlay
Fetching https://github.com/pointfreeco/swift-custom-dump
Fetching https://github.com/apple/swift-docc-plugin
Fetching https://github.com/apple/swift-collections
[1/7591] Fetching swift-dependencies
[3493/13257] Fetching swift-dependencies, swift-custom-dump
[8159/14315] Fetching swift-dependencies, swift-custom-dump, swift-concurrency-extras
Fetched https://github.com/pointfreeco/swift-dependencies (0.50s)
[6185/6724] Fetching swift-custom-dump, swift-concurrency-extras
Fetching https://github.com/apple/swift-argument-parser
[6725/9069] Fetching swift-custom-dump, swift-concurrency-extras, swift-docc-plugin
[6960/11796] Fetching swift-custom-dump, swift-concurrency-extras, swift-docc-plugin, xctest-dynamic-overlay
[8464/39148] Fetching swift-custom-dump, swift-concurrency-extras, swift-docc-plugin, xctest-dynamic-overlay, swift-collections
Fetched https://github.com/apple/swift-docc-plugin (0.63s)
[11285/36803] Fetching swift-custom-dump, swift-concurrency-extras, xctest-dynamic-overlay, swift-collections
Fetching https://github.com/apple/swift-async-algorithms
Fetched https://github.com/pointfreeco/swift-concurrency-extras (0.68s)
Fetched https://github.com/pointfreeco/swift-custom-dump (0.68s)
Fetched http://github.com/pointfreeco/xctest-dynamic-overlay (0.68s)
[6018/27352] Fetching swift-collections
[27353/46270] Fetching swift-collections, swift-argument-parser
[31137/52993] Fetching swift-collections, swift-argument-parser, swift-async-algorithms
Fetched https://github.com/apple/swift-collections (1.13s)
[8487/25641] Fetching swift-argument-parser, swift-async-algorithms
Fetched https://github.com/apple/swift-async-algorithms (0.57s)
Fetched https://github.com/apple/swift-argument-parser (0.79s)
Computing version for https://github.com/pointfreeco/swift-concurrency-extras
Computed https://github.com/pointfreeco/swift-concurrency-extras at 1.4.1 (1.51s)
Computing version for https://github.com/apple/swift-docc-plugin
Computed https://github.com/apple/swift-docc-plugin at 1.5.0 (1.12s)
Fetching https://github.com/swiftlang/swift-docc-symbolkit
[1/3824] Fetching swift-docc-symbolkit
Fetched https://github.com/swiftlang/swift-docc-symbolkit (0.59s)
Computing version for https://github.com/swiftlang/swift-docc-symbolkit
Computed https://github.com/swiftlang/swift-docc-symbolkit at 1.0.0 (0.82s)
Computing version for https://github.com/apple/swift-async-algorithms
Computed https://github.com/apple/swift-async-algorithms at 1.1.5 (0.22s)
Computing version for https://github.com/apple/swift-collections
Computed https://github.com/apple/swift-collections at 1.6.0 (0.29s)
Computing version for http://github.com/pointfreeco/xctest-dynamic-overlay
Computed http://github.com/pointfreeco/xctest-dynamic-overlay at 1.13.1 (1.25s)
Fetching https://github.com/pointfreeco/swift-issue-reporting
[1/6136] Fetching swift-issue-reporting
Fetched https://github.com/pointfreeco/swift-issue-reporting (0.76s)
Computing version for https://github.com/pointfreeco/swift-issue-reporting
Computed https://github.com/pointfreeco/swift-issue-reporting at 2.1.0 (1.01s)
Computing version for https://github.com/apple/swift-argument-parser
Computed https://github.com/apple/swift-argument-parser at 1.8.2 (0.17s)
Computing version for https://github.com/pointfreeco/swift-dependencies
Computed https://github.com/pointfreeco/swift-dependencies at 1.17.1 (0.23s)
Fetching https://github.com/swiftlang/swift-syntax
Fetching https://github.com/pointfreeco/combine-schedulers
Fetching https://github.com/pointfreeco/swift-clocks
[1/2686] Fetching combine-schedulers
[2687/4132] Fetching combine-schedulers, swift-clocks
Fetched https://github.com/pointfreeco/swift-clocks (0.57s)
[1/79986] Fetching swift-syntax
Fetched https://github.com/pointfreeco/combine-schedulers (2.86s)
Fetched https://github.com/swiftlang/swift-syntax (2.88s)
Computing version for https://github.com/pointfreeco/swift-clocks
Computed https://github.com/pointfreeco/swift-clocks at 1.1.1 (3.07s)
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.67s)
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/swiftlang/swift-syntax
Computed https://github.com/swiftlang/swift-syntax at 604.0.0 (0.32s)
Computing version for https://github.com/pointfreeco/swift-custom-dump
Computed https://github.com/pointfreeco/swift-custom-dump at 1.7.3 (0.18s)
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/pointfreeco/swift-dependencies
Working copy of https://github.com/pointfreeco/swift-dependencies resolved at 1.17.1
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/apple/swift-docc-plugin
Working copy of https://github.com/apple/swift-docc-plugin resolved at 1.5.0
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/pointfreeco/swift-clocks
Working copy of https://github.com/pointfreeco/swift-clocks resolved at 1.1.1
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/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-collections
Working copy of https://github.com/apple/swift-collections resolved at 1.6.0
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/combine-schedulers
Working copy of https://github.com/pointfreeco/combine-schedulers resolved at 1.2.2
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/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/pointfreeco/swift-custom-dump
Working copy of https://github.com/pointfreeco/swift-custom-dump resolved at 1.7.3
warning: 'spi-builder-workspace': dependency 'swift-concurrency-extras' is not used by any target
warning: 'spi-builder-workspace': dependency 'swift-concurrency-extras' is not used by any target
Building for debugging...
[Computing dependencies]
[Constructing description]
[Pre-planning 1 / 1444]
[Planning deferred tasks]
[Starting]
[74 / 539] SwiftSyntax510
[260 / 561] SwiftSyntax509
[302 / 563] SwiftSyntax
[303 / 563] SwiftSyntax604
[316 / 570] SwiftSyntax510
[318 / 571] SwiftSyntax510
[326 / 573]
[339 / 605] IssueReportingTestSupport
[347 / 605] IssueReporting
[360 / 605] IssueReporting
[365 / 605] IssueReporting-product
[366 / 605] _IssueReporting
[367 / 605] IssueReporting
[369 / 605] OrderedCollections
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: error: cannot find 'pthread_mutexattr_init' in scope
 66 |   init() {
 67 |     var attr: pthread_mutexattr_t = pthread_mutexattr_t()
 68 |     pthread_mutexattr_init(&attr)
    |     `- error: cannot find 'pthread_mutexattr_init' in scope
 69 |     #if DEBUG
 70 |     pthread_mutexattr_settype(&attr, Int32(PTHREAD_MUTEX_RECURSIVE))
/host/spi-builder-workspace/Sources/Protected/Protected.swift:70:5: error: cannot find 'pthread_mutexattr_settype' in scope
 68 |     pthread_mutexattr_init(&attr)
 69 |     #if DEBUG
 70 |     pthread_mutexattr_settype(&attr, Int32(PTHREAD_MUTEX_RECURSIVE))
    |     `- error: cannot find 'pthread_mutexattr_settype' in scope
 71 |     #endif
 72 |
/host/spi-builder-workspace/Sources/Protected/Protected.swift:70:44: error: cannot find 'PTHREAD_MUTEX_RECURSIVE' in scope
 68 |     pthread_mutexattr_init(&attr)
 69 |     #if DEBUG
 70 |     pthread_mutexattr_settype(&attr, Int32(PTHREAD_MUTEX_RECURSIVE))
    |                                            `- error: cannot find 'PTHREAD_MUTEX_RECURSIVE' in scope
 71 |     #endif
 72 |
/host/spi-builder-workspace/Sources/Protected/Protected.swift:73:15: error: cannot find 'pthread_mutex_init' in scope
 71 |     #endif
 72 |
 73 |     let err = pthread_mutex_init(self.mutex, &attr)
    |               `- error: cannot find 'pthread_mutex_init' in scope
 74 |     precondition(err == 0, "\(#function) failed in pthread_mutex with error \(err)")
 75 |   }
/host/spi-builder-workspace/Sources/Protected/Protected.swift:78:15: error: cannot find 'pthread_mutex_destroy' in scope
 76 |
 77 |   deinit {
 78 |     let err = pthread_mutex_destroy(self.mutex)
    |               `- error: cannot find 'pthread_mutex_destroy' in scope
 79 |     precondition(err == 0, "\(#function) failed in pthread_mutex with error \(err)")
 80 |     mutex.deallocate()
/host/spi-builder-workspace/Sources/Protected/Protected.swift:84:15: error: cannot find 'pthread_mutex_lock' in scope
 82 |
 83 |   fileprivate func lock() {
 84 |     let err = pthread_mutex_lock(self.mutex)
    |               `- error: cannot find 'pthread_mutex_lock' in scope
 85 |     precondition(err == 0, "\(#function) failed in pthread_mutex with error \(err)")
 86 |   }
/host/spi-builder-workspace/Sources/Protected/Protected.swift:89:15: error: cannot find 'pthread_mutex_unlock' in scope
 87 |
 88 |   fileprivate func unlock() {
 89 |     let err = pthread_mutex_unlock(self.mutex)
    |               `- error: cannot find 'pthread_mutex_unlock' in scope
 90 |     precondition(err == 0, "\(#function) failed in pthread_mutex with error \(err)")
 91 |   }
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 6 -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 -package-name spi_builder_workspace -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