The Swift Package Index logo.Swift Package Index

Build Information

Failed to build SwiftExecutionTimer, reference main (9b91dc), with Swift 6.3 for Wasm on 16 Apr 2026 06:45:56 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.3-latest swift build --swift-sdk swift-6.3-RELEASE_wasm 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.70.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/MichK1/SwiftExecutionTimer.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/MichK1/SwiftExecutionTimer
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at 9b91dc9 Added examples
Cloned https://github.com/MichK1/SwiftExecutionTimer.git
Revision (git rev-parse @):
9b91dc9bb6fadde0c90bd8d53740290fa47c4bcf
SUCCESS checkout https://github.com/MichK1/SwiftExecutionTimer.git at main
========================================
Build
========================================
Selected platform:         wasm
Swift version:             6.3
Building package at path:  $PWD
https://github.com/MichK1/SwiftExecutionTimer.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.3-latest swift build --swift-sdk swift-6.3-RELEASE_wasm 2>&1
wasm-6.3-latest: Pulling from swiftpackageindex/spi-images
Digest: sha256:d69f4e7582c319245442d62a08b2d7c7fd5a0c0c69f5d2ef11d1530cd8d3329b
Status: Image is up to date for registry.gitlab.com/swiftpackageindex/spi-images:wasm-6.3-latest
Building for debugging...
[0/15] Write sources
[4/15] Write swift-version-24593BA9C3E375BF.txt
[6/25] Compiling SwiftExecutionTimer TimePoint.swift
[7/26] Compiling SwiftExecutionTimer CPUUtilizationTimePointSource.swift
/host/spi-builder-workspace/Sources/SwiftExecutionTimer/TimePointSource/CPUUtilizationTimePointSource.swift:14:21: error: cannot find 'rusage' in scope
12 | final class CPUUtilizationTimePointSource: TimePointSource  {
13 |     var timePointNow: Double {
14 |         var usage = rusage()
   |                     `- error: cannot find 'rusage' in scope
15 | #if os(Linux)
16 |         getrusage(RUSAGE_SELF.rawValue, &usage)
/host/spi-builder-workspace/Sources/SwiftExecutionTimer/TimePointSource/CPUUtilizationTimePointSource.swift:18:9: error: cannot find 'getrusage' in scope
16 |         getrusage(RUSAGE_SELF.rawValue, &usage)
17 | #else
18 |         getrusage(RUSAGE_SELF, &usage)
   |         `- error: cannot find 'getrusage' in scope
19 | #endif
20 |         return Double(usage.ru_utime.tv_sec) + Double(usage.ru_utime.tv_usec) / 1_000_000
/host/spi-builder-workspace/Sources/SwiftExecutionTimer/TimePointSource/CPUUtilizationTimePointSource.swift:18:19: error: cannot find 'RUSAGE_SELF' in scope
16 |         getrusage(RUSAGE_SELF.rawValue, &usage)
17 | #else
18 |         getrusage(RUSAGE_SELF, &usage)
   |                   `- error: cannot find 'RUSAGE_SELF' in scope
19 | #endif
20 |         return Double(usage.ru_utime.tv_sec) + Double(usage.ru_utime.tv_usec) / 1_000_000
[8/26] Compiling SwiftExecutionTimer MonotonicTimePointSource.swift
/host/spi-builder-workspace/Sources/SwiftExecutionTimer/TimePointSource/MonotonicTimePointSource.swift:19:23: error: cannot find 'DispatchTime' in scope
17 |         return Double(ts.tv_sec) + Double(ts.tv_nsec) / 1_000_000_000
18 | #else
19 |         return Double(DispatchTime.now().uptimeNanoseconds) / 1_000_000_000
   |                       `- error: cannot find 'DispatchTime' in scope
20 | #endif
21 |     }
[9/26] Compiling SwiftExecutionTimer DurationFilter.swift
[10/26] Compiling SwiftExecutionTimer TimePointsContainer.swift
[11/26] Compiling SwiftExecutionTimer TimePointSource.swift
[12/26] Emitting module SwiftExecutionTimer
[13/26] Compiling SwiftExecutionTimer Helpers.swift
[14/26] Compiling SwiftExecutionTimer Duration.swift
[15/26] Compiling SwiftExecutionTimer ExecutionTimer.swift
[16/26] Compiling SwiftExecutionTimer ExecutionTimerDependencies.swift
BUILD FAILURE 6.3 wasm