Build Information
Failed to build FoundationRadar, reference v0.1.0 (3f5a46), with Swift 6.3 for Wasm on 16 Jul 2026 04:57:04 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-54344846-1":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/saguaro1/spi-images:wasm-6.3-latest swift build --swift-sdk swift-6.3.2-RELEASE_wasm 2>&1Build Log
========================================
RunAll
========================================
Builder version: 333316120c8b89ed7d21f1b34865290794301d91
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/NagaYu/FoundationRadar.git
Reference: v0.1.0
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/NagaYu/FoundationRadar
* tag v0.1.0 -> FETCH_HEAD
HEAD is now at 3f5a466 Set 0.1.0 release date
Cloned https://github.com/NagaYu/FoundationRadar.git
Revision (git rev-parse @):
3f5a466095d846c840efaf01cde9d3c79e87bcd0
SUCCESS checkout https://github.com/NagaYu/FoundationRadar.git at v0.1.0
========================================
Build
========================================
Selected platform: wasm
Swift version: 6.3
Building package at path: $PWD
https://github.com/NagaYu/FoundationRadar.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-54344846-1":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/saguaro1/spi-images:wasm-6.3-latest swift build --swift-sdk swift-6.3.2-RELEASE_wasm 2>&1
wasm-6.3-latest: Pulling from saguaro1/spi-images
Digest: sha256:501b6bfc4ca8a27c305c68f9d5c778f996de82635741ab45476a03ffa6fa26d2
Status: Image is up to date for registry.gitlab.com/saguaro1/spi-images:wasm-6.3-latest
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/Examples/RadarCLI/README.md
Building for debugging...
[0/7] Write sources
[2/7] Write swift-version-24593BA9C3E375BF.txt
[4/15] Compiling FoundationRadar FoundationRadar.swift
[5/16] Compiling FoundationRadar LatencyBenchmark.swift
[6/16] Compiling FoundationRadar PCCSignals.swift
[7/16] Compiling FoundationRadar ContextMeasurement.swift
[8/16] Compiling FoundationRadar Availability.swift
[9/16] Emitting module FoundationRadar
[10/16] Compiling FoundationRadar RadarError.swift
[11/16] Compiling FoundationRadar History.swift
/host/spi-builder-workspace/Sources/FoundationRadar/History.swift:66:15: error: cannot find 'sysctlbyname' in scope
64 | static func string(for key: String) -> String? {
65 | var size = 0
66 | guard sysctlbyname(key, nil, &size, nil, 0) == 0, size > 0 else { return nil }
| `- error: cannot find 'sysctlbyname' in scope
67 | var buffer = [CChar](repeating: 0, count: size)
68 | guard sysctlbyname(key, &buffer, &size, nil, 0) == 0 else { return nil }
/host/spi-builder-workspace/Sources/FoundationRadar/History.swift:66:33: error: 'nil' requires a contextual type
64 | static func string(for key: String) -> String? {
65 | var size = 0
66 | guard sysctlbyname(key, nil, &size, nil, 0) == 0, size > 0 else { return nil }
| `- error: 'nil' requires a contextual type
67 | var buffer = [CChar](repeating: 0, count: size)
68 | guard sysctlbyname(key, &buffer, &size, nil, 0) == 0 else { return nil }
/host/spi-builder-workspace/Sources/FoundationRadar/History.swift:66:45: error: 'nil' requires a contextual type
64 | static func string(for key: String) -> String? {
65 | var size = 0
66 | guard sysctlbyname(key, nil, &size, nil, 0) == 0, size > 0 else { return nil }
| `- error: 'nil' requires a contextual type
67 | var buffer = [CChar](repeating: 0, count: size)
68 | guard sysctlbyname(key, &buffer, &size, nil, 0) == 0 else { return nil }
/host/spi-builder-workspace/Sources/FoundationRadar/History.swift:68:15: error: cannot find 'sysctlbyname' in scope
66 | guard sysctlbyname(key, nil, &size, nil, 0) == 0, size > 0 else { return nil }
67 | var buffer = [CChar](repeating: 0, count: size)
68 | guard sysctlbyname(key, &buffer, &size, nil, 0) == 0 else { return nil }
| `- error: cannot find 'sysctlbyname' in scope
69 | return buffer.withUnsafeBufferPointer { pointer in
70 | guard let base = pointer.baseAddress else { return nil }
/host/spi-builder-workspace/Sources/FoundationRadar/History.swift:68:49: error: 'nil' requires a contextual type
66 | guard sysctlbyname(key, nil, &size, nil, 0) == 0, size > 0 else { return nil }
67 | var buffer = [CChar](repeating: 0, count: size)
68 | guard sysctlbyname(key, &buffer, &size, nil, 0) == 0 else { return nil }
| `- error: 'nil' requires a contextual type
69 | return buffer.withUnsafeBufferPointer { pointer in
70 | guard let base = pointer.baseAddress else { return nil }
/host/spi-builder-workspace/Sources/FoundationRadar/History.swift:167:51: error: 'atomic' is unavailable: atomic writing is unavailable in WASI because temporary files are not supported
165 | at: directory, withIntermediateDirectories: true
166 | )
167 | try data.write(to: fileURL, options: .atomic)
| `- error: 'atomic' is unavailable: atomic writing is unavailable in WASI because temporary files are not supported
168 | } catch {
169 | throw RadarError.historyIO(String(describing: error))
FoundationEssentials.Data.WritingOptions.atomic:4:23: note: 'atomic' has been explicitly marked unavailable here
2 | struct WritingOptions {
3 | @available(*, unavailable, message: "atomic writing is unavailable in WASI because temporary files are not supported")
4 | public static let atomic: Data.WritingOptions }
| `- note: 'atomic' has been explicitly marked unavailable here
5 | }
6 |
[12/16] Compiling FoundationRadar Report.swift
BUILD FAILURE 6.3 wasm