Build Information
Failed to build SwiftPM, reference main (0e6ee8), with Swift 6.2 for Wasm on 1 May 2026 20:43:09 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.2-latest swift build --swift-sdk swift-6.2-RELEASE_wasm 2>&1Build Log
========================================
RunAll
========================================
Builder version: 4.70.0
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 0e6ee87 Merge pull request #10009 from owenv/owenv/pluginfix
Cloned https://github.com/swiftlang/swift-package-manager.git
Revision (git rev-parse @):
0e6ee8781409c803bc6522bf07ac746ab8e5af45
SUCCESS checkout https://github.com/swiftlang/swift-package-manager.git at main
========================================
Build
========================================
Selected platform: wasm
Swift version: 6.2
Building package at path: $PWD
https://github.com/swiftlang/swift-package-manager.git
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.2-latest swift build --swift-sdk swift-6.2-RELEASE_wasm 2>&1
wasm-6.2-latest: Pulling from swiftpackageindex/spi-images
Digest: sha256:2a8b2d9e022a9894c61e0736af7cdaa1ee64c002dbb133a55c0d7e8980b3ad16
Status: Image is up to date for registry.gitlab.com/swiftpackageindex/spi-images:wasm-6.2-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.33s)
Fetching https://github.com/swiftlang/swift-syntax.git
[1/75038] Fetching swift-syntax
Fetched https://github.com/swiftlang/swift-syntax.git from cache (6.90s)
Fetching https://github.com/apple/swift-argument-parser.git
[1/17557] Fetching swift-argument-parser
Fetched https://github.com/apple/swift-argument-parser.git from cache (0.88s)
Fetching https://github.com/apple/swift-crypto.git
[1/17457] Fetching swift-crypto
Fetched https://github.com/apple/swift-crypto.git from cache (2.09s)
Fetching https://github.com/apple/swift-system.git
[1/5601] Fetching swift-system
Fetched https://github.com/apple/swift-system.git from cache (0.46s)
Fetching https://github.com/apple/swift-collections.git
[1/23937] Fetching swift-collections
Fetched https://github.com/apple/swift-collections.git from cache (1.99s)
Fetching https://github.com/apple/swift-certificates.git
[1/7266] Fetching swift-certificates
Fetched https://github.com/apple/swift-certificates.git from cache (0.62s)
Fetching https://github.com/swiftlang/swift-toolchain-sqlite.git
[1/285] Fetching swift-toolchain-sqlite
Fetched https://github.com/swiftlang/swift-toolchain-sqlite.git from cache (0.85s)
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.51s)
Fetching https://github.com/swiftlang/swift-driver.git
[1/37937] Fetching swift-driver
Fetched https://github.com/swiftlang/swift-driver.git from cache (2.75s)
Fetching https://github.com/swiftlang/swift-build.git
[1/25425] Fetching swift-build
Fetched https://github.com/swiftlang/swift-build.git from cache (3.11s)
Fetching https://github.com/swiftlang/swift-tools-protocols.git
[1/33101] Fetching swift-tools-protocols
Fetched https://github.com/swiftlang/swift-tools-protocols.git from cache (1.73s)
Fetching https://github.com/apple/swift-asn1.git
Fetching https://github.com/swiftlang/swift-docc-plugin
[1/2287] Fetching swift-docc-plugin
[207/4100] Fetching swift-docc-plugin, swift-asn1
Fetched https://github.com/apple/swift-asn1.git from cache (0.34s)
Fetched https://github.com/swiftlang/swift-docc-plugin from cache (0.40s)
Computing version for https://github.com/apple/swift-asn1.git
Computed https://github.com/apple/swift-asn1.git at 1.7.0 (0.86s)
Computing version for https://github.com/swiftlang/swift-docc-plugin
Computed https://github.com/swiftlang/swift-docc-plugin at 1.5.0 (0.52s)
Fetching https://github.com/swiftlang/swift-docc-symbolkit
[1/3709] Fetching swift-docc-symbolkit
Fetched https://github.com/swiftlang/swift-docc-symbolkit from cache (0.62s)
Computing version for https://github.com/swiftlang/swift-docc-symbolkit
Computed https://github.com/swiftlang/swift-docc-symbolkit at 1.0.0 (1.17s)
Creating working copy for https://github.com/apple/swift-certificates.git
Working copy of https://github.com/apple/swift-certificates.git resolved at 1.10.1 (386001a)
Creating working copy for https://github.com/apple/swift-crypto.git
Working copy of https://github.com/apple/swift-crypto.git resolved at 3.12.5 (d79c573)
Creating working copy for https://github.com/apple/swift-asn1.git
Working copy of https://github.com/apple/swift-asn1.git resolved at 1.7.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.5.0 (61e4ca4)
Creating working copy for https://github.com/swiftlang/swift-build.git
Working copy of https://github.com/swiftlang/swift-build.git resolved at main (b2b2327)
Creating working copy for https://github.com/swiftlang/swift-driver.git
Working copy of https://github.com/swiftlang/swift-driver.git resolved at main (fd498fe)
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 (c11818f)
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-tools-protocols.git
Working copy of https://github.com/swiftlang/swift-tools-protocols.git resolved at main (4967801)
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.6.1 (309a47b)
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-syntax.git
Working copy of https://github.com/swiftlang/swift-syntax.git resolved at main (51c8c23)
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/swiftlang/swift-docc-plugin
Working copy of https://github.com/swiftlang/swift-docc-plugin resolved at 1.5.0
Creating working copy for https://github.com/swiftlang/swift-toolchain-sqlite.git
Working copy of https://github.com/swiftlang/swift-toolchain-sqlite.git resolved at 1.0.7 (b45b80b)
warning: 'spi-builder-workspace': found 1 file(s) which are unhandled; explicitly declare them as resources or exclude from the target
/host/spi-builder-workspace/Sources/swift-package-registry/CMakeLists.txt
warning: 'spi-builder-workspace': found 1 file(s) which are unhandled; explicitly declare them as resources or exclude from the target
/host/spi-builder-workspace/Sources/swift-package-collection/CMakeLists.txt
warning: 'spi-builder-workspace': found 1 file(s) which are unhandled; explicitly declare them as resources or exclude from the target
/host/spi-builder-workspace/Sources/PackageCollectionsCommand/CMakeLists.txt
[1/1] Compiling plugin Swift-DocC Preview
[2/2] Compiling plugin Swift-DocC
[3/3] Compiling plugin GenerateManual
[4/4] Compiling plugin GenerateDoccReference
Building for debugging...
[4/886] Write sources
[27/886] Compiling tsan_utils tsan_utils.c
In file included from /host/spi-builder-workspace/.build/checkouts/swift-llbuild/lib/Basic/Tracing.cpp:13:
In file included from /host/spi-builder-workspace/.build/checkouts/swift-llbuild/lib/Basic/include/llbuild/Basic/Tracing.h:16:
In file included from /host/spi-builder-workspace/.build/checkouts/swift-llbuild/lib/Basic/include/llbuild/Basic/CrossPlatformCompatibility.h:29:
/root/.swiftpm/swift-sdks/swift-6.2-RELEASE_wasm.artifactbundle/swift-6.2-RELEASE_wasm/wasm32-unknown-wasip1/WASI.sdk/include/wasm32-wasip1/sys/resource.h:2:2: error: WASI lacks process-associated clocks; to enable emulation of the `getrusage` function using the wall clock, which isn't sensitive to whether the program is running or suspended, compile with -D_WASI_EMULATED_PROCESS_CLOCKS and link with -lwasi-emulated-process-clocks
2 | #error WASI lacks process-associated clocks; to enable emulation of the `getrusage` function using \
| ^
In file included from /host/spi-builder-workspace/.build/checkouts/swift-llbuild/lib/Basic/Tracing.cpp:13:
In file included from /host/spi-builder-workspace/.build/checkouts/swift-llbuild/lib/Basic/include/llbuild/Basic/Tracing.h:16:
/host/spi-builder-workspace/.build/checkouts/swift-llbuild/lib/Basic/include/llbuild/Basic/CrossPlatformCompatibility.h:46:9: error: unknown type name 'rlim_t'
46 | typedef rlim_t llbuild_rlim_t;
| ^
2 errors generated.
[28/886] Compiling llbuildBasic Tracing.cpp
[28/886] Write swift-version-24593BA9C3E375BF.txt
[28/886] Compiling llvmSupport circular_raw_ostream.cpp
[28/886] Compiling llvmSupport NativeFormatting.cpp
[28/886] Compiling llvmSupport raw_ostream.cpp
[28/886] Compiling llvmSupport Process.cpp
[28/886] Compiling llvmSupport Options.cpp
[28/886] Compiling llvmSupport Path.cpp
BUILD FAILURE 6.2 wasm