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 (ec2a62), with Swift 6.1 for Wasm on 12 Sep 2025 03:23:47 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4606859-0":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" 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.67.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 ec2a626 Pass symbol graph options to swift build to customize the output (#9124)
Cloned https://github.com/swiftlang/swift-package-manager.git
Revision (git rev-parse @):
ec2a626d905c74d71745912ac83ae55ddb179844
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-4606859-0":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" 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:eb0758f51dbd6991fb9e51dedbfbcbec142ffc0d3b9b8ad91fa19d35e5136f0a
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/29217] Fetching swift-llbuild
Fetched https://github.com/swiftlang/swift-llbuild.git from cache (1.98s)
Fetching https://github.com/swiftlang/swift-syntax.git
[1/71913] Fetching swift-syntax
Fetched https://github.com/swiftlang/swift-syntax.git from cache (4.13s)
Fetching https://github.com/swiftlang/swift-tools-support-core.git
[1/6951] Fetching swift-tools-support-core
Fetched https://github.com/swiftlang/swift-tools-support-core.git from cache (0.53s)
Fetching https://github.com/swiftlang/swift-driver.git
[1/35561] Fetching swift-driver
Fetched https://github.com/swiftlang/swift-driver.git from cache (1.99s)
Fetching https://github.com/swiftlang/swift-build.git
[1/15273] Fetching swift-build
Fetched https://github.com/swiftlang/swift-build.git from cache (1.77s)
Fetching https://github.com/swiftlang/swift-toolchain-sqlite
Fetching https://github.com/swiftlang/swift-docc-plugin
Fetching https://github.com/apple/swift-argument-parser.git
Fetching https://github.com/apple/swift-system.git
Fetching https://github.com/apple/swift-collections.git
Fetching https://github.com/apple/swift-certificates.git
[1/2094] Fetching swift-docc-plugin
[232/18020] Fetching swift-docc-plugin, swift-argument-parser
[891/18200] Fetching swift-docc-plugin, swift-argument-parser, swift-toolchain-sqlite
[4462/24783] Fetching swift-docc-plugin, swift-argument-parser, swift-toolchain-sqlite, swift-certificates
[5336/29720] Fetching swift-docc-plugin, swift-argument-parser, swift-toolchain-sqlite, swift-certificates, swift-system
[16757/47173] Fetching swift-docc-plugin, swift-argument-parser, swift-toolchain-sqlite, swift-certificates, swift-system, swift-collections
Fetched https://github.com/apple/swift-certificates.git from cache (0.61s)
Fetching https://github.com/apple/swift-crypto.git
[27316/40590] Fetching swift-docc-plugin, swift-argument-parser, swift-toolchain-sqlite, swift-system, swift-collections
Fetched https://github.com/apple/swift-system.git from cache (0.80s)
[24658/35653] Fetching swift-docc-plugin, swift-argument-parser, swift-toolchain-sqlite, swift-collections
[29895/52517] Fetching swift-docc-plugin, swift-argument-parser, swift-toolchain-sqlite, swift-collections, swift-crypto
Fetched https://github.com/swiftlang/swift-docc-plugin from cache (1.07s)
[30051/50423] Fetching swift-argument-parser, swift-toolchain-sqlite, swift-collections, swift-crypto
Fetched https://github.com/apple/swift-argument-parser.git from cache (1.08s)
Fetched https://github.com/swiftlang/swift-toolchain-sqlite from cache (1.08s)
[14294/34317] Fetching swift-collections, swift-crypto
Fetched https://github.com/apple/swift-collections.git from cache (1.46s)
[2024/16864] Fetching swift-crypto
Fetched https://github.com/apple/swift-crypto.git from cache (1.86s)
Computing version for https://github.com/apple/swift-argument-parser.git
Computed https://github.com/apple/swift-argument-parser.git at 1.5.1 (3.03s)
Computing version for https://github.com/apple/swift-crypto.git
Computed https://github.com/apple/swift-crypto.git at 3.0.0 (0.59s)
Computing version for https://github.com/apple/swift-system.git
Computed https://github.com/apple/swift-system.git at 1.6.2 (0.58s)
Computing version for https://github.com/apple/swift-certificates.git
Computed https://github.com/apple/swift-certificates.git at 1.5.0 (0.62s)
Fetching https://github.com/apple/swift-asn1.git
[1/1629] Fetching swift-asn1
Fetched https://github.com/apple/swift-asn1.git from cache (0.32s)
Computing version for https://github.com/apple/swift-asn1.git
Computed https://github.com/apple/swift-asn1.git at 1.4.0 (0.93s)
Computing version for https://github.com/swiftlang/swift-toolchain-sqlite
Computed https://github.com/swiftlang/swift-toolchain-sqlite at 1.0.6 (0.56s)
Computing version for https://github.com/swiftlang/swift-docc-plugin
Computed https://github.com/swiftlang/swift-docc-plugin at 1.4.5 (0.60s)
Fetching https://github.com/swiftlang/swift-docc-symbolkit
[1/3509] Fetching swift-docc-symbolkit
Fetched https://github.com/swiftlang/swift-docc-symbolkit from cache (0.41s)
Computing version for https://github.com/swiftlang/swift-docc-symbolkit
Computed https://github.com/swiftlang/swift-docc-symbolkit at 1.0.0 (1.01s)
Computing version for https://github.com/apple/swift-collections.git
Computed https://github.com/apple/swift-collections.git at 1.1.6 (0.75s)
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-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-build.git
Working copy of https://github.com/swiftlang/swift-build.git resolved at main (978b179)
Creating working copy for https://github.com/swiftlang/swift-driver.git
Working copy of https://github.com/swiftlang/swift-driver.git resolved at main (7eae6e7)
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.6
Creating working copy for https://github.com/swiftlang/swift-llbuild.git
Working copy of https://github.com/swiftlang/swift-llbuild.git resolved at main (9cd0607)
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.6
Creating working copy for https://github.com/swiftlang/swift-syntax.git
Working copy of https://github.com/swiftlang/swift-syntax.git resolved at main (6df106d)
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 (a00f2e3)
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-asn1.git
Working copy of https://github.com/apple/swift-asn1.git resolved at 1.4.0
Creating working copy for https://github.com/apple/swift-system.git
Working copy of https://github.com/apple/swift-system.git resolved at 1.6.2
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.5
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
warning: 'swift-build': found 1 file(s) which are unhandled; explicitly declare them as resources or exclude from the target
    /host/spi-builder-workspace/.build/checkouts/swift-build/Sources/SWBWindowsPlatform/README.md
[1/1] Compiling plugin Swift-DocC Preview
[2/2] Compiling plugin Swift-DocC
[3/3] Compiling plugin GenerateManual
Building for debugging...
[3/928] Write sources
[32/928] Compiling tsan_utils tsan_utils.c
[33/928] Write swift-version-24593BA9C3E375BF.txt
[34/928] Compiling llvmSupport Atomic.cpp
[35/928] Compiling llvmSupport Allocator.cpp
[36/928] Compiling llvmSupport Errno.cpp
[37/928] Compiling llvmSupport Valgrind.cpp
[38/928] Compiling llvmSupport circular_raw_ostream.cpp
[39/928] Compiling llvmSupport UnicodeCaseFold.cpp
[40/928] Compiling llbuildNinja Parser.cpp
/host/spi-builder-workspace/.build/checkouts/swift-llbuild/lib/llvm/Support/ErrorHandling.cpp:60:13: error: no type named 'mutex' in namespace 'std'
   60 | static std::mutex ErrorHandlerMutex;
      |        ~~~~~^
/host/spi-builder-workspace/.build/checkouts/swift-llbuild/lib/llvm/Support/ErrorHandling.cpp:61:13: error: no type named 'mutex' in namespace 'std'
   61 | static std::mutex BadAllocErrorHandlerMutex;
      |        ~~~~~^
/host/spi-builder-workspace/.build/checkouts/swift-llbuild/lib/llvm/Support/ErrorHandling.cpp:67:24: error: no member named 'mutex' in namespace 'std'
   67 |   std::lock_guard<std::mutex> Lock(ErrorHandlerMutex);
      |                   ~~~~~^
/host/spi-builder-workspace/.build/checkouts/swift-llbuild/lib/llvm/Support/ErrorHandling.cpp:76:24: error: no member named 'mutex' in namespace 'std'
   76 |   std::lock_guard<std::mutex> Lock(ErrorHandlerMutex);
      |                   ~~~~~^
/host/spi-builder-workspace/.build/checkouts/swift-llbuild/lib/llvm/Support/ErrorHandling.cpp:101:26: error: no member named 'mutex' in namespace 'std'
  101 |     std::lock_guard<std::mutex> Lock(ErrorHandlerMutex);
      |                     ~~~~~^
/host/spi-builder-workspace/.build/checkouts/swift-llbuild/lib/llvm/Support/ErrorHandling.cpp:132:24: error: no member named 'mutex' in namespace 'std'
  132 |   std::lock_guard<std::mutex> Lock(BadAllocErrorHandlerMutex);
      |                   ~~~~~^
/host/spi-builder-workspace/.build/checkouts/swift-llbuild/lib/llvm/Support/ErrorHandling.cpp:141:24: error: no member named 'mutex' in namespace 'std'
  141 |   std::lock_guard<std::mutex> Lock(BadAllocErrorHandlerMutex);
      |                   ~~~~~^
/host/spi-builder-workspace/.build/checkouts/swift-llbuild/lib/llvm/Support/ErrorHandling.cpp:154:26: error: no member named 'mutex' in namespace 'std'
  154 |     std::lock_guard<std::mutex> Lock(BadAllocErrorHandlerMutex);
      |                     ~~~~~^
8 errors generated.
[41/928] Compiling llvmSupport ErrorHandling.cpp
[41/928] Compiling llvmSupport Threading.cpp
[41/928] Compiling llvmSupport Triple.cpp
[41/928] Compiling llvmSupport Unicode.cpp
[41/928] Compiling llvmSupport Twine.cpp
[41/928] Compiling llvmSupport YAMLParser.cpp
[41/928] Compiling llvmSupport raw_ostream.cpp
[41/928] Compiling llvmSupport Chrono.cpp
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-0":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" 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:eb0758f51dbd6991fb9e51dedbfbcbec142ffc0d3b9b8ad91fa19d35e5136f0a
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest
warning: 'swift-build': found 1 file(s) which are unhandled; explicitly declare them as resources or exclude from the target
    /host/spi-builder-workspace/.build/checkouts/swift-build/Sources/SWBWindowsPlatform/README.md
[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/890] Copying WindowsLd.xcspec
[3/890] Copying Info.plist
[3/890] Copying Windows.xcspec
[3/890] Copying WindowsCompile.xcspec
[3/890] Copying WasmLibtool.xcspec
[3/890] Copying WebAssembly.xcspec
[3/890] Copying WindowsLibtool.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.
[10/891] Compiling llvmSupport Threading.cpp
[10/891] Compiling llvmSupport Twine.cpp
[10/891] Compiling llvmSupport TargetParser.cpp
[10/891] Compiling llvmSupport Unicode.cpp
[10/891] Compiling llvmSupport YAMLParser.cpp
[10/891] Compiling llvmSupport StringSaver.cpp
[10/891] Compiling llvmSupport raw_ostream.cpp
[10/891] Compiling llvmSupport Triple.cpp
BUILD FAILURE 6.1 wasm