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 Android on 29 May 2025 21:44:26 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4606859-2":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:android-6.1-latest swift build --swift-sdk aarch64-unknown-linux-android24 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:         android
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-4606859-2":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:android-6.1-latest swift build --swift-sdk aarch64-unknown-linux-android24 -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
android-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:fe1962677657b2408c217cb5cceb3c09bc1d91486e360cebbc6eee461a5945d8
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:android-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 SingleValueEncodingContainer.swift
[7/20] Compiling SwiftCBOR UnkeyedEncodingContainer.swift
[8/20] Compiling SwiftCBOR SingleValueDecodingContainer.swift
[9/20] Compiling SwiftCBOR UnkeyedDecodingContainer.swift
[10/20] Compiling SwiftCBOR CodableCBOREncoder.swift
[11/20] Compiling SwiftCBOR KeyedEncodingContainer.swift
[12/20] Compiling SwiftCBOR CBORInputStream.swift
[13/20] Compiling SwiftCBOR CBOROptions.swift
[14/20] Compiling SwiftCBOR CodableCBORDecoder.swift
[15/20] Compiling SwiftCBOR KeyedDecodingContainer.swift
[16/20] Compiling SwiftCBOR AnyCodingKey.swift
[17/20] Compiling SwiftCBOR CBOR.swift
[18/20] Compiling SwiftCBOR CBORDecoder.swift
[19/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 {
[20/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 {
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-2":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:android-6.1-latest swift build --swift-sdk aarch64-unknown-linux-android24 2>&1
android-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:fe1962677657b2408c217cb5cceb3c09bc1d91486e360cebbc6eee461a5945d8
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:android-6.1-latest
[0/1] Planning build
Building for debugging...
[0/1] Write swift-version-24593BA9C3E375BF.txt
[2/17] Compiling SwiftCBOR SingleValueEncodingContainer.swift
[3/17] Compiling SwiftCBOR UnkeyedEncodingContainer.swift
[4/19] Emitting module SwiftCBOR
[5/19] Compiling SwiftCBOR CodableCBORDecoder.swift
[6/19] Compiling SwiftCBOR KeyedDecodingContainer.swift
[7/19] Compiling SwiftCBOR CodableCBOREncoder.swift
[8/19] Compiling SwiftCBOR KeyedEncodingContainer.swift
[9/19] Compiling SwiftCBOR CBORInputStream.swift
[10/19] Compiling SwiftCBOR CBOROptions.swift
[11/19] 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 {
[12/19] 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 {
[13/19] Compiling SwiftCBOR SingleValueDecodingContainer.swift
[14/19] Compiling SwiftCBOR UnkeyedDecodingContainer.swift
[15/19] Compiling SwiftCBOR FixedWidthInteger+Bytes.swift
[16/19] Compiling SwiftCBOR Util.swift
[17/19] Compiling SwiftCBOR AnyCodingKey.swift
[18/19] Compiling SwiftCBOR CBOR.swift
[19/19] Compiling SwiftCBOR CBORDecoder.swift
BUILD FAILURE 6.1 android