The Swift Package Index logo.Swift Package Index

Build Information

Failed to build SwiftCBOR, reference master (bf15f6), with Swift 6.1 for Wasm on 26 Nov 2026 08:45:58 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.1-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 5.1.4
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/valpackett/SwiftCBOR.git
Reference: master
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/valpackett/SwiftCBOR
 * branch            master     -> FETCH_HEAD
 * [new branch]      master     -> origin/master
HEAD is now at bf15f62 fix(cbor): sort Codable map keys deterministically (#165)
Cloned https://github.com/valpackett/SwiftCBOR.git
Revision (git rev-parse @):
bf15f62e078a6264f0ec890dd65b7dbadc0b2ec2
SUCCESS checkout https://github.com/valpackett/SwiftCBOR.git at master
========================================
Build
========================================
Selected platform:         wasm
Swift version:             6.1
Building package at path:  $PWD
https://github.com/valpackett/SwiftCBOR.git
https://github.com/valpackett/SwiftCBOR.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
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.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 saguaro1/spi-images
Digest: sha256:2b61812954062fe290d65f4aab0d63c7eac39321d28a5f7663250a895195bb8e
Status: Image is up to date for registry.gitlab.com/saguaro1/spi-images:wasm-6.1-latest
Building for debugging...
[0/3] Write sources
[1/3] Copying PrivacyInfo.xcprivacy
[2/3] Write swift-version-24593BA9C3E375BF.txt
[4/22] Emitting module SwiftCBOR
[5/24] Compiling SwiftCBOR AnyCodingKey.swift
[6/24] Compiling SwiftCBOR CBOR.swift
[7/24] Compiling SwiftCBOR CBORDecoder.swift
[8/24] Compiling SwiftCBOR Util.swift
[9/24] Compiling SwiftCBOR resource_bundle_accessor.swift
[10/24] Compiling SwiftCBOR UnkeyedDecodingContainer.swift
[11/24] Compiling SwiftCBOR CodableCBOREncoder.swift
[12/24] Compiling SwiftCBOR KeyedEncodingContainer.swift
[13/24] Compiling SwiftCBOR SingleValueEncodingContainer.swift
[14/24] Compiling SwiftCBOR UnkeyedEncodingContainer.swift
[15/24] Compiling SwiftCBOR FixedWidthInteger+Bytes.swift
[16/24] Compiling SwiftCBOR CodableCBORDecoder.swift
[17/24] Compiling SwiftCBOR KeyedDecodingContainer.swift
[18/24] Compiling SwiftCBOR SingleValueDecodingContainer.swift
[19/24] Compiling SwiftCBOR CBORIntegerArrayEncoding.swift
[20/24] Compiling SwiftCBOR CBOROptions.swift
[21/24] Compiling SwiftCBOR CBORWriter.swift
[22/24] Compiling SwiftCBOR CBOREncodable.swift
/host/spi-builder-workspace/Sources/CBOREncoder.swift:362:53: error: cannot find 'NSEC_PER_SEC' in scope
360 |
361 |         let seconds = Int64(integral)
362 |         let nanoseconds = Int32(fractional * Double(NSEC_PER_SEC))
    |                                                     `- error: cannot find 'NSEC_PER_SEC' in scope
363 |
364 |         switch options.dateStrategy {
[23/24] Compiling SwiftCBOR CBOREncoder.swift
/host/spi-builder-workspace/Sources/CBOREncoder.swift:362:53: error: cannot find 'NSEC_PER_SEC' in scope
360 |
361 |         let seconds = Int64(integral)
362 |         let nanoseconds = Int32(fractional * Double(NSEC_PER_SEC))
    |                                                     `- error: cannot find 'NSEC_PER_SEC' in scope
363 |
364 |         switch options.dateStrategy {
[24/24] Compiling SwiftCBOR CBORInputStream.swift
/host/spi-builder-workspace/Sources/CBOREncoder.swift:362:53: error: cannot find 'NSEC_PER_SEC' in scope
360 |
361 |         let seconds = Int64(integral)
362 |         let nanoseconds = Int32(fractional * Double(NSEC_PER_SEC))
    |                                                     `- error: cannot find 'NSEC_PER_SEC' in scope
363 |
364 |         switch options.dateStrategy {
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.1-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1
wasm-6.1-latest: Pulling from saguaro1/spi-images
Digest: sha256:2b61812954062fe290d65f4aab0d63c7eac39321d28a5f7663250a895195bb8e
Status: Image is up to date for registry.gitlab.com/saguaro1/spi-images:wasm-6.1-latest
[0/1] Planning build
Building for debugging...
[0/1] Write swift-version-24593BA9C3E375BF.txt
[2/20] Compiling SwiftCBOR UnkeyedEncodingContainer.swift
[3/20] Compiling SwiftCBOR FixedWidthInteger+Bytes.swift
[4/22] Compiling SwiftCBOR KeyedEncodingContainer.swift
[5/22] Compiling SwiftCBOR SingleValueEncodingContainer.swift
[6/22] Compiling SwiftCBOR Util.swift
[7/22] Compiling SwiftCBOR resource_bundle_accessor.swift
[8/22] Compiling SwiftCBOR CBOREncodable.swift
/host/spi-builder-workspace/Sources/CBOREncoder.swift:362:53: error: cannot find 'NSEC_PER_SEC' in scope
360 |
361 |         let seconds = Int64(integral)
362 |         let nanoseconds = Int32(fractional * Double(NSEC_PER_SEC))
    |                                                     `- error: cannot find 'NSEC_PER_SEC' in scope
363 |
364 |         switch options.dateStrategy {
[9/22] Compiling SwiftCBOR CBOREncoder.swift
/host/spi-builder-workspace/Sources/CBOREncoder.swift:362:53: error: cannot find 'NSEC_PER_SEC' in scope
360 |
361 |         let seconds = Int64(integral)
362 |         let nanoseconds = Int32(fractional * Double(NSEC_PER_SEC))
    |                                                     `- error: cannot find 'NSEC_PER_SEC' in scope
363 |
364 |         switch options.dateStrategy {
[10/22] Compiling SwiftCBOR CBORInputStream.swift
/host/spi-builder-workspace/Sources/CBOREncoder.swift:362:53: error: cannot find 'NSEC_PER_SEC' in scope
360 |
361 |         let seconds = Int64(integral)
362 |         let nanoseconds = Int32(fractional * Double(NSEC_PER_SEC))
    |                                                     `- error: cannot find 'NSEC_PER_SEC' in scope
363 |
364 |         switch options.dateStrategy {
[11/22] Compiling SwiftCBOR UnkeyedDecodingContainer.swift
[12/22] Compiling SwiftCBOR CodableCBOREncoder.swift
[13/22] Compiling SwiftCBOR CBORIntegerArrayEncoding.swift
[14/22] Compiling SwiftCBOR CBOROptions.swift
[15/22] Compiling SwiftCBOR CBORWriter.swift
[16/22] Compiling SwiftCBOR AnyCodingKey.swift
[17/22] Compiling SwiftCBOR CBOR.swift
[18/22] Compiling SwiftCBOR CBORDecoder.swift
[19/22] Emitting module SwiftCBOR
[20/22] Compiling SwiftCBOR CodableCBORDecoder.swift
[21/22] Compiling SwiftCBOR KeyedDecodingContainer.swift
[22/22] Compiling SwiftCBOR SingleValueDecodingContainer.swift
BUILD FAILURE 6.1 wasm