The Swift Package Index logo.Swift Package Index

Build Information

Failed to build swift-driver, reference main (302fc8), with Swift 6.1 for Wasm on 2 May 2026 01:05:52 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4606859-1":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/swiftpackageindex/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.70.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/swiftlang/swift-driver.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-driver
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at 302fc81 SwiftDriver: always pass `-sysroot` flag if specified
Cloned https://github.com/swiftlang/swift-driver.git
Revision (git rev-parse @):
302fc811f4557302aa7be961321a4ae6053be0d1
SUCCESS checkout https://github.com/swiftlang/swift-driver.git at main
========================================
Build
========================================
Selected platform:         wasm
Swift version:             6.1
Building package at path:  $PWD
https://github.com/swiftlang/swift-driver.git
https://github.com/swiftlang/swift-driver.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-1":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/swiftpackageindex/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 swiftpackageindex/spi-images
Digest: sha256:276d66a16377d3ee059b2e3429cbc1154d9f01e42871e5d702fd5d8b9044d93d
Status: Image is up to date for registry.gitlab.com/swiftpackageindex/spi-images:wasm-6.1-latest
Fetching https://github.com/swiftlang/swift-llbuild.git
[1/29511] Fetching swift-llbuild
Fetched https://github.com/swiftlang/swift-llbuild.git from cache (3.08s)
Fetching https://github.com/swiftlang/swift-tools-support-core.git
[1/7226] Fetching swift-tools-support-core
Fetched https://github.com/swiftlang/swift-tools-support-core.git from cache (0.59s)
Fetching https://github.com/swiftlang/swift-toolchain-sqlite
Fetching https://github.com/apple/swift-argument-parser.git
[1/285] Fetching swift-toolchain-sqlite
[10/17842] Fetching swift-toolchain-sqlite, swift-argument-parser
Fetched https://github.com/apple/swift-argument-parser.git from cache (1.92s)
Fetched https://github.com/swiftlang/swift-toolchain-sqlite from cache (2.19s)
Computing version for https://github.com/apple/swift-argument-parser.git
Computed https://github.com/apple/swift-argument-parser.git at 1.7.1 (3.47s)
Computing version for https://github.com/swiftlang/swift-toolchain-sqlite
Computed https://github.com/swiftlang/swift-toolchain-sqlite at 1.0.9 (1.41s)
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 (c8832dc)
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.9
Creating working copy for https://github.com/swiftlang/swift-llbuild.git
Working copy of https://github.com/swiftlang/swift-llbuild.git resolved at main (fd2284d)
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.7.1
[1/1] Compiling plugin GenerateManual
[2/2] Compiling plugin GenerateDoccReference
Building for debugging...
[2/135] Write sources
[8/135] Compiling makeOptions main.cpp
[9/135] Compiling CSwiftScan CSwiftScanImpl.c
[10/135] Compiling llvmSupport Valgrind.cpp
[11/135] Compiling llvmSupport UnicodeCaseFold.cpp
[12/135] Compiling llvmSupport circular_raw_ostream.cpp
[13/135] Write swift-version-24593BA9C3E375BF.txt
/host/spi-builder-workspace/Sources/makeOptions/makeOptions.cpp:428:2: warning: "Unable to include 'swift/Option/Options.inc', `makeOptions` will not be usable" [-W#warnings]
  428 | #warning "Unable to include 'swift/Option/Options.inc', `makeOptions` will not be usable"
      |  ^
1 warning generated.
[14/135] Compiling makeOptions makeOptions.cpp
[15/135] Compiling llvmSupport Twine.cpp
[16/135] Write Objects.LinkFileList
[17/135] Compiling llvmSupport Unicode.cpp
error: link command failed with exit code 1 (use -v to see invocation)
wasm-ld: error: /root/.swiftpm/swift-sdks/swift-wasm-6.1-RELEASE-wasm32-unknown-wasi.artifactbundle/6.1-RELEASE-wasm32-unknown-wasi/wasm32-unknown-wasi/swift.xctoolchain/usr/lib/swift_static/wasi/wasm32/swiftrt.o: undefined symbol: swift_addNewDSOImage
clang: error: linker command failed with exit code 1 (use -v to see invocation)
[18/135] Linking makeOptions.wasm
[18/135] Compiling llvmSupport Threading.cpp
[18/135] Compiling llvmSupport TargetParser.cpp
[18/135] Compiling llvmSupport Triple.cpp
[18/135] Compiling llvmSupport StringSaver.cpp
[18/135] Compiling llvmSupport YAMLParser.cpp
[18/135] Compiling llvmSupport raw_ostream.cpp
[18/135] Compiling llvmSupport StringRef.cpp
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-1":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/swiftpackageindex/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1
wasm-6.1-latest: Pulling from swiftpackageindex/spi-images
Digest: sha256:276d66a16377d3ee059b2e3429cbc1154d9f01e42871e5d702fd5d8b9044d93d
Status: Image is up to date for registry.gitlab.com/swiftpackageindex/spi-images:wasm-6.1-latest
[0/1] Planning build
[1/1] Compiling plugin GenerateManual
[2/2] Compiling plugin GenerateDoccReference
Building for debugging...
[2/119] Write sources
[8/120] Compiling llvmSupport raw_ostream.cpp
error: link command failed with exit code 1 (use -v to see invocation)
wasm-ld: error: /root/.swiftpm/swift-sdks/swift-wasm-6.1-RELEASE-wasm32-unknown-wasi.artifactbundle/6.1-RELEASE-wasm32-unknown-wasi/wasm32-unknown-wasi/swift.xctoolchain/usr/lib/swift_static/wasi/wasm32/swiftrt.o: undefined symbol: swift_addNewDSOImage
clang: error: linker command failed with exit code 1 (use -v to see invocation)
[9/120] Linking makeOptions.wasm
[9/120] Compiling llvmSupport TargetParser.cpp
[9/120] Compiling llvmSupport StringSaver.cpp
[9/120] Compiling llvmSupport YAMLParser.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>
      |          ^~~~~~~~~~~
[9/120] Compiling llvmSupport Threading.cpp
[9/120] Compiling llvmSupport Triple.cpp
[9/120] Compiling llvmSupport StringRef.cpp
[9/120] Compiling llvmSupport StringMap.cpp
BUILD FAILURE 6.1 wasm