The Swift Package Index logo.Swift Package Index

Has it really been five years since Swift Package Index launched? Read our anniversary blog post!

Build Information

Failed to build SwiftPM, reference main (1335dd), with Swift 6.1 for Wasm on 16 Jun 2025 19:42:07 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4609320-3":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.63.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/swiftlang/swift-package-manager.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/swiftlang/swift-package-manager
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at 1335dd3 Tests: Convert Build Command Tests to Swift Testing
Cloned https://github.com/swiftlang/swift-package-manager.git
Revision (git rev-parse @):
1335dd3b571abd0022b0916fa096440a24fa0ca8
SUCCESS checkout https://github.com/swiftlang/swift-package-manager.git at main
========================================
Build
========================================
Selected platform:         wasm
Swift version:             6.1
Building package at path:  $PWD
https://github.com/swiftlang/swift-package-manager.git
https://github.com/swiftlang/swift-package-manager.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
error: 'spi-builder-workspace': package 'spi-builder-workspace' is using Swift tools version 6.1.0 but the installed version is 6.0.2
error: fatalError
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-3":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures 2>&1
wasm-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:8f9255989265d824b88e7d572b1a334a0dc9b701075ede1970390db95d315c35
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest
Fetching https://github.com/swiftlang/swift-llbuild.git
[1/29037] Fetching swift-llbuild
Fetched https://github.com/swiftlang/swift-llbuild.git from cache (3.33s)
Fetching https://github.com/swiftlang/swift-syntax.git
[1/70832] Fetching swift-syntax
Fetched https://github.com/swiftlang/swift-syntax.git from cache (7.70s)
Fetching https://github.com/swiftlang/swift-tools-support-core.git
[1/6853] Fetching swift-tools-support-core
Fetched https://github.com/swiftlang/swift-tools-support-core.git from cache (0.72s)
Fetching https://github.com/swiftlang/swift-driver.git
[1/34947] Fetching swift-driver
Fetched https://github.com/swiftlang/swift-driver.git from cache (2.95s)
Fetching https://github.com/swiftlang/swift-build.git
[1/11787] Fetching swift-build
Fetched https://github.com/swiftlang/swift-build.git from cache (5.40s)
Fetching https://github.com/apple/swift-system.git
Fetching https://github.com/apple/swift-certificates.git
Fetching https://github.com/apple/swift-collections.git
Fetching https://github.com/swiftlang/swift-toolchain-sqlite
Fetching https://github.com/apple/swift-argument-parser.git
Fetching https://github.com/swiftlang/swift-docc-plugin
[1/4428] Fetching swift-system
[179/21034] Fetching swift-system, swift-collections
[2393/23116] Fetching swift-system, swift-collections, swift-docc-plugin
[2936/23251] Fetching swift-system, swift-collections, swift-docc-plugin, swift-toolchain-sqlite
[4880/29435] Fetching swift-system, swift-collections, swift-docc-plugin, swift-toolchain-sqlite, swift-certificates
[16978/44815] Fetching swift-system, swift-collections, swift-docc-plugin, swift-toolchain-sqlite, swift-certificates, swift-argument-parser
Fetched https://github.com/swiftlang/swift-docc-plugin from cache (1.79s)
Fetched https://github.com/swiftlang/swift-toolchain-sqlite from cache (1.80s)
Fetched https://github.com/apple/swift-argument-parser.git from cache (1.81s)
Fetching https://github.com/apple/swift-crypto.git
[1/14981] Fetching swift-crypto
Fetched https://github.com/apple/swift-certificates.git from cache (2.19s)
Fetched https://github.com/apple/swift-system.git from cache (2.19s)
Fetched https://github.com/apple/swift-collections.git from cache (2.22s)
Fetched https://github.com/apple/swift-crypto.git from cache (3.81s)
Computing version for https://github.com/apple/swift-argument-parser.git
Computed https://github.com/apple/swift-argument-parser.git at 1.5.1 (6.48s)
Computing version for https://github.com/apple/swift-system.git
Computed https://github.com/apple/swift-system.git at 1.5.0 (0.76s)
Computing version for https://github.com/apple/swift-crypto.git
Computed https://github.com/apple/swift-crypto.git at 3.0.0 (0.94s)
Computing version for https://github.com/swiftlang/swift-toolchain-sqlite
Computed https://github.com/swiftlang/swift-toolchain-sqlite at 1.0.4 (0.95s)
Computing version for https://github.com/apple/swift-certificates.git
Computed https://github.com/apple/swift-certificates.git at 1.5.0 (1.00s)
Fetching https://github.com/apple/swift-asn1.git
[1/1590] Fetching swift-asn1
Fetched https://github.com/apple/swift-asn1.git from cache (0.81s)
Computing version for https://github.com/apple/swift-asn1.git
Computed https://github.com/apple/swift-asn1.git at 1.3.2 (1.78s)
Computing version for https://github.com/swiftlang/swift-docc-plugin
Computed https://github.com/swiftlang/swift-docc-plugin at 1.4.4 (0.93s)
Fetching https://github.com/swiftlang/swift-docc-symbolkit
[1/3411] Fetching swift-docc-symbolkit
Fetched https://github.com/swiftlang/swift-docc-symbolkit from cache (0.61s)
Computing version for https://github.com/swiftlang/swift-docc-symbolkit
Computed https://github.com/swiftlang/swift-docc-symbolkit at 1.0.0 (1.64s)
Computing version for https://github.com/apple/swift-collections.git
Computed https://github.com/apple/swift-collections.git at 1.1.4 (1.19s)
Creating working copy for https://github.com/apple/swift-crypto.git
Working copy of https://github.com/apple/swift-crypto.git resolved at 3.0.0
Creating working copy for https://github.com/apple/swift-collections.git
Working copy of https://github.com/apple/swift-collections.git resolved at 1.1.4
Creating working copy for https://github.com/swiftlang/swift-llbuild.git
Working copy of https://github.com/swiftlang/swift-llbuild.git resolved at main (f3b9649)
Creating working copy for https://github.com/swiftlang/swift-syntax.git
Working copy of https://github.com/swiftlang/swift-syntax.git resolved at main (3274aaa)
Creating working copy for https://github.com/swiftlang/swift-toolchain-sqlite
Working copy of https://github.com/swiftlang/swift-toolchain-sqlite resolved at 1.0.4
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-docc-plugin
Working copy of https://github.com/swiftlang/swift-docc-plugin resolved at 1.4.4
Creating working copy for https://github.com/swiftlang/swift-build.git
Working copy of https://github.com/swiftlang/swift-build.git resolved at main (62bd4c6)
Creating working copy for https://github.com/swiftlang/swift-driver.git
Working copy of https://github.com/swiftlang/swift-driver.git resolved at main (d2236ee)
Creating working copy for https://github.com/apple/swift-certificates.git
Working copy of https://github.com/apple/swift-certificates.git resolved at 1.5.0
Creating working copy for https://github.com/apple/swift-asn1.git
Working copy of https://github.com/apple/swift-asn1.git resolved at 1.3.2
Creating working copy for https://github.com/apple/swift-argument-parser.git
Working copy of https://github.com/apple/swift-argument-parser.git resolved at 1.5.1
Creating working copy for https://github.com/swiftlang/swift-tools-support-core.git
Working copy of https://github.com/swiftlang/swift-tools-support-core.git resolved at main (f9b4010)
Creating working copy for https://github.com/apple/swift-system.git
Working copy of https://github.com/apple/swift-system.git resolved at 1.5.0
[1/1] Compiling plugin Swift-DocC Preview
[2/2] Compiling plugin Swift-DocC
[3/3] Compiling plugin GenerateManual
Building for debugging...
[3/925] Write sources
[15/925] Compiling llvmSupport Valgrind.cpp
[16/925] Compiling llvmSupport UnicodeCaseFold.cpp
[17/925] Compiling tsan_utils tsan_utils.c
[18/925] Write swift-version-24593BA9C3E375BF.txt
[19/925] Compiling llvmSupport TargetParser.cpp
[20/925] Compiling llvmSupport circular_raw_ostream.cpp
[21/925] Compiling llvmSupport Unicode.cpp
[22/925] Compiling llvmSupport Twine.cpp
/host/spi-builder-workspace/.build/checkouts/swift-llbuild/lib/llvm/Support/Threading.cpp:72:17: error: no member named 'thread' in namespace 'std'
   72 |     return std::thread::hardware_concurrency();
      |            ~~~~~^
/host/spi-builder-workspace/.build/checkouts/swift-llbuild/lib/llvm/Support/Threading.cpp:83:27: error: no member named 'thread' in namespace 'std'
   83 |   if (unsigned Val = std::thread::hardware_concurrency())
      |                      ~~~~~^
In file included from /host/spi-builder-workspace/.build/checkouts/swift-llbuild/lib/llvm/Support/Threading.cpp:90:
/host/spi-builder-workspace/.build/checkouts/swift-llbuild/lib/llvm/Support/Unix/Threading.inc:22:10: fatal error: 'pthread.h' file not found
   22 | #include <pthread.h>
      |          ^~~~~~~~~~~
3 errors generated.
[23/925] Compiling llvmSupport Threading.cpp
[23/925] Compiling llvmSupport StringRef.cpp
[23/925] Compiling llvmSupport raw_ostream.cpp
[23/925] Compiling llvmSupport StringExtras.cpp
[23/925] Compiling llvmSupport Triple.cpp
[23/925] Compiling llvmSupport StringSaver.cpp
[23/925] Compiling llvmSupport StringMap.cpp
[23/925] Compiling llvmSupport YAMLParser.cpp
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-3":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1
wasm-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:8f9255989265d824b88e7d572b1a334a0dc9b701075ede1970390db95d315c35
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest
[0/1] Planning build
[1/1] Compiling plugin Swift-DocC Preview
[2/2] Compiling plugin Swift-DocC
[3/3] Compiling plugin GenerateManual
Building for debugging...
[3/905] Copying WindowsLibtool.xcspec
[3/905] Copying Info.plist
[3/905] Copying WindowsLd.xcspec
[3/905] Copying WindowsCompile.xcspec
[3/905] Copying Windows.xcspec
[3/905] Copying WebAssembly.xcspec
[3/905] Copying WasmCompile.xcspec
[3/905] Copying WasmLd.xcspec
[3/905] Write sources
[3/905] Copying swift-stdlib-tool.xcspec
[3/905] Copying Info.plist
[3/905] Copying WasmLibtool.xcspec
/host/spi-builder-workspace/.build/checkouts/swift-llbuild/lib/llvm/Support/Threading.cpp:72:17: error: no member named 'thread' in namespace 'std'
   72 |     return std::thread::hardware_concurrency();
      |            ~~~~~^
/host/spi-builder-workspace/.build/checkouts/swift-llbuild/lib/llvm/Support/Threading.cpp:83:27: error: no member named 'thread' in namespace 'std'
   83 |   if (unsigned Val = std::thread::hardware_concurrency())
      |                      ~~~~~^
In file included from /host/spi-builder-workspace/.build/checkouts/swift-llbuild/lib/llvm/Support/Threading.cpp:90:
/host/spi-builder-workspace/.build/checkouts/swift-llbuild/lib/llvm/Support/Unix/Threading.inc:22:10: fatal error: 'pthread.h' file not found
   22 | #include <pthread.h>
      |          ^~~~~~~~~~~
3 errors generated.
[15/906] Compiling llvmSupport Threading.cpp
[15/906] Compiling llvmSupport StringSaver.cpp
[15/906] Compiling llvmSupport StringMap.cpp
[15/906] Compiling llvmSupport StringExtras.cpp
[15/906] Compiling llvmSupport YAMLParser.cpp
[15/906] Compiling llvmSupport Triple.cpp
[15/906] Compiling llvmSupport raw_ostream.cpp
[15/906] Compiling llvmSupport StringRef.cpp
BUILD FAILURE 6.1 wasm