The Swift Package Index logo.Swift Package Index

Has it really been five years since Swift Package Index launched? Read our anniversary blog post!

Build Information

Failed to build SwiftCBOR, reference v0.5.0 (04ccff), with Swift 6.1 for Wasm on 29 May 2025 21:44:38 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4609320-0":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.63.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/valpackett/SwiftCBOR.git
Reference: v0.5.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/valpackett/SwiftCBOR
 * tag               v0.5.0     -> FETCH_HEAD
HEAD is now at 04ccff1 Bump to 0.5.0
Cloned https://github.com/valpackett/SwiftCBOR.git
Revision (git rev-parse @):
04ccff117f6549121d5721ec84fdf0162122b90e
SUCCESS checkout https://github.com/valpackett/SwiftCBOR.git at v0.5.0
========================================
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
{
  "dependencies" : [
  ],
  "manifest_display_name" : "SwiftCBOR",
  "name" : "SwiftCBOR",
  "path" : "/host/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "macos",
      "version" : "10.13"
    },
    {
      "name" : "ios",
      "version" : "13.0"
    }
  ],
  "products" : [
    {
      "name" : "SwiftCBOR",
      "targets" : [
        "SwiftCBOR"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "SwiftCBORTests",
      "module_type" : "SwiftTarget",
      "name" : "SwiftCBORTests",
      "path" : "Tests",
      "sources" : [
        "CBORCodableRoundtripTests.swift",
        "CBORDecoderTests.swift",
        "CBOREncodableTests.swift",
        "CBOREncoderTests.swift",
        "CBORTests.swift",
        "CodableCBORDecoderTests.swift",
        "CodableCBOREncoderTests.swift",
        "Helpers.swift"
      ],
      "target_dependencies" : [
        "SwiftCBOR"
      ],
      "type" : "test"
    },
    {
      "c99name" : "SwiftCBOR",
      "module_type" : "SwiftTarget",
      "name" : "SwiftCBOR",
      "path" : "Sources",
      "product_memberships" : [
        "SwiftCBOR"
      ],
      "sources" : [
        "AnyCodingKey.swift",
        "CBOR.swift",
        "CBORDecoder.swift",
        "CBOREncodable.swift",
        "CBOREncoder.swift",
        "CBORInputStream.swift",
        "CBOROptions.swift",
        "Decoder/CodableCBORDecoder.swift",
        "Decoder/KeyedDecodingContainer.swift",
        "Decoder/SingleValueDecodingContainer.swift",
        "Decoder/UnkeyedDecodingContainer.swift",
        "Encoder/CodableCBOREncoder.swift",
        "Encoder/KeyedEncodingContainer.swift",
        "Encoder/SingleValueEncodingContainer.swift",
        "Encoder/UnkeyedEncodingContainer.swift",
        "FixedWidthInteger+Bytes.swift",
        "Util.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.5"
}
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-0":/host -w "$PWD" registry.gitlab.com/finestructure/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 finestructure/spi-images
Digest: sha256:7e37457820e5f17452a98118754f345f2619722c485f2db0d8b666940a83afd2
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-24593BA9C3E375BF.txt
[3/18] Emitting module SwiftCBOR
[4/20] Compiling SwiftCBOR FixedWidthInteger+Bytes.swift
[5/20] Compiling SwiftCBOR Util.swift
[6/20] Compiling SwiftCBOR CBOREncodable.swift
/host/spi-builder-workspace/Sources/CBOREncoder.swift:259:53: error: cannot find 'NSEC_PER_SEC' in scope
257 |
258 |         let seconds = Int64(integral)
259 |         let nanoseconds = Int32(fractional * Double(NSEC_PER_SEC))
    |                                                     `- error: cannot find 'NSEC_PER_SEC' in scope
260 |
261 |         switch options.dateStrategy {
[7/20] Compiling SwiftCBOR CBOREncoder.swift
/host/spi-builder-workspace/Sources/CBOREncoder.swift:259:53: error: cannot find 'NSEC_PER_SEC' in scope
257 |
258 |         let seconds = Int64(integral)
259 |         let nanoseconds = Int32(fractional * Double(NSEC_PER_SEC))
    |                                                     `- error: cannot find 'NSEC_PER_SEC' in scope
260 |
261 |         switch options.dateStrategy {
[8/20] Compiling SwiftCBOR AnyCodingKey.swift
[9/20] Compiling SwiftCBOR CBOR.swift
[10/20] Compiling SwiftCBOR CBORDecoder.swift
[11/20] Compiling SwiftCBOR CodableCBOREncoder.swift
[12/20] Compiling SwiftCBOR KeyedEncodingContainer.swift
[13/20] Compiling SwiftCBOR SingleValueDecodingContainer.swift
[14/20] Compiling SwiftCBOR UnkeyedDecodingContainer.swift
[15/20] Compiling SwiftCBOR CodableCBORDecoder.swift
[16/20] Compiling SwiftCBOR KeyedDecodingContainer.swift
[17/20] Compiling SwiftCBOR CBORInputStream.swift
[18/20] Compiling SwiftCBOR CBOROptions.swift
[19/20] Compiling SwiftCBOR SingleValueEncodingContainer.swift
[20/20] Compiling SwiftCBOR UnkeyedEncodingContainer.swift
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-0":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1
wasm-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:7e37457820e5f17452a98118754f345f2619722c485f2db0d8b666940a83afd2
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest
[0/1] Planning build
Building for debugging...
[0/1] Write swift-version-24593BA9C3E375BF.txt
[2/17] Compiling SwiftCBOR CBOREncodable.swift
/host/spi-builder-workspace/Sources/CBOREncoder.swift:259:53: error: cannot find 'NSEC_PER_SEC' in scope
257 |
258 |         let seconds = Int64(integral)
259 |         let nanoseconds = Int32(fractional * Double(NSEC_PER_SEC))
    |                                                     `- error: cannot find 'NSEC_PER_SEC' in scope
260 |
261 |         switch options.dateStrategy {
[3/17] Compiling SwiftCBOR CBOREncoder.swift
/host/spi-builder-workspace/Sources/CBOREncoder.swift:259:53: error: cannot find 'NSEC_PER_SEC' in scope
257 |
258 |         let seconds = Int64(integral)
259 |         let nanoseconds = Int32(fractional * Double(NSEC_PER_SEC))
    |                                                     `- error: cannot find 'NSEC_PER_SEC' in scope
260 |
261 |         switch options.dateStrategy {
[4/19] Compiling SwiftCBOR SingleValueEncodingContainer.swift
[5/19] Compiling SwiftCBOR UnkeyedEncodingContainer.swift
[6/19] Compiling SwiftCBOR CodableCBOREncoder.swift
[7/19] Compiling SwiftCBOR KeyedEncodingContainer.swift
[8/19] Compiling SwiftCBOR FixedWidthInteger+Bytes.swift
[9/19] Compiling SwiftCBOR Util.swift
[10/19] Emitting module SwiftCBOR
[11/19] Compiling SwiftCBOR AnyCodingKey.swift
[12/19] Compiling SwiftCBOR CBOR.swift
[13/19] Compiling SwiftCBOR CBORDecoder.swift
[14/19] Compiling SwiftCBOR SingleValueDecodingContainer.swift
[15/19] Compiling SwiftCBOR UnkeyedDecodingContainer.swift
[16/19] Compiling SwiftCBOR CBORInputStream.swift
[17/19] Compiling SwiftCBOR CBOROptions.swift
[18/19] Compiling SwiftCBOR CodableCBORDecoder.swift
[19/19] Compiling SwiftCBOR KeyedDecodingContainer.swift
BUILD FAILURE 6.1 wasm