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 package-datetime, reference 1.0.2 (d12421), with Swift 6.1 for Android on 28 May 2025 17:24:12 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/ordo-one/package-datetime.git
Reference: 1.0.2
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/ordo-one/package-datetime
 * tag               1.0.2      -> FETCH_HEAD
HEAD is now at d124218 Use gmtime. (#15)
Cloned https://github.com/ordo-one/package-datetime.git
Revision (git rev-parse @):
d1242188c9f48aad297e6ca9b717776f8660bc31
SUCCESS checkout https://github.com/ordo-one/package-datetime.git at 1.0.2
========================================
Build
========================================
Selected platform:         android
Swift version:             6.1
Building package at path:  $PWD
https://github.com/ordo-one/package-datetime.git
https://github.com/ordo-one/package-datetime.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
  "dependencies" : [
  ],
  "manifest_display_name" : "package-datetime",
  "name" : "package-datetime",
  "path" : "/host/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "macos",
      "version" : "13.0"
    },
    {
      "name" : "ios",
      "version" : "16.0"
    }
  ],
  "products" : [
    {
      "name" : "DateTime",
      "targets" : [
        "DateTime"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "EpochDateTimeTests",
      "module_type" : "SwiftTarget",
      "name" : "EpochDateTimeTests",
      "path" : "Tests/EpochDateTimeTests",
      "sources" : [
        "EpochDateTimeTests.swift"
      ],
      "target_dependencies" : [
        "DateTime"
      ],
      "type" : "test"
    },
    {
      "c99name" : "DateTimeTests",
      "module_type" : "SwiftTarget",
      "name" : "DateTimeTests",
      "path" : "Tests/DateTimeTests",
      "sources" : [
        "DateTimeTests.swift"
      ],
      "target_dependencies" : [
        "DateTime"
      ],
      "type" : "test"
    },
    {
      "c99name" : "DateTime",
      "module_type" : "SwiftTarget",
      "name" : "DateTime",
      "path" : "Sources/DateTime",
      "product_memberships" : [
        "DateTime"
      ],
      "sources" : [
        "BenchmarkClock.swift",
        "Duration+Convenience.swift",
        "EpochDateTime.swift",
        "FoundationExports.swift",
        "InternalUTCClock.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.7"
}
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/8] Compiling DateTime InternalUTCClock.swift
/host/spi-builder-workspace/Sources/DateTime/InternalUTCClock.swift:21:12: error: Unsupported Platform
 19 |     import Glibc
 20 | #else
 21 |     #error("Unsupported Platform")
    |            `- error: Unsupported Platform
 22 | #endif
 23 |
/host/spi-builder-workspace/Sources/DateTime/InternalUTCClock.swift:98:26: error: cannot find 'timespec' in scope
 96 |     /// The minimum non-zero resolution between any two calls to `now`.
 97 |     public var minimumResolution: Swift.Duration {
 98 |         var resolution = timespec()
    |                          `- error: cannot find 'timespec' in scope
 99 |
100 |         let result = clock_getres(CLOCK_REALTIME, &resolution)
/host/spi-builder-workspace/Sources/DateTime/InternalUTCClock.swift:100:22: error: cannot find 'clock_getres' in scope
 98 |         var resolution = timespec()
 99 |
100 |         let result = clock_getres(CLOCK_REALTIME, &resolution)
    |                      `- error: cannot find 'clock_getres' in scope
101 |
102 |         guard result == 0 else {
/host/spi-builder-workspace/Sources/DateTime/InternalUTCClock.swift:100:35: error: cannot find 'CLOCK_REALTIME' in scope
 98 |         var resolution = timespec()
 99 |
100 |         let result = clock_getres(CLOCK_REALTIME, &resolution)
    |                                   `- error: cannot find 'CLOCK_REALTIME' in scope
101 |
102 |         guard result == 0 else {
/host/spi-builder-workspace/Sources/DateTime/InternalUTCClock.swift:103:94: error: cannot find 'errno' in scope
101 |
102 |         guard result == 0 else {
103 |             fatalError("Failed to get realtime clock resolution in clock_getres(), errno = \(errno)")
    |                                                                                              `- error: cannot find 'errno' in scope
104 |         }
105 |
/host/spi-builder-workspace/Sources/DateTime/InternalUTCClock.swift:114:27: error: cannot find 'timespec' in scope
112 |     /// The current continuous instant.
113 |     public static var now: InternalUTCClock.Instant {
114 |         var currentTime = timespec()
    |                           `- error: cannot find 'timespec' in scope
115 |         let result = clock_gettime(CLOCK_REALTIME, &currentTime)
116 |
/host/spi-builder-workspace/Sources/DateTime/InternalUTCClock.swift:115:22: error: cannot find 'clock_gettime' in scope
113 |     public static var now: InternalUTCClock.Instant {
114 |         var currentTime = timespec()
115 |         let result = clock_gettime(CLOCK_REALTIME, &currentTime)
    |                      `- error: cannot find 'clock_gettime' in scope
116 |
117 |         guard result == 0 else {
/host/spi-builder-workspace/Sources/DateTime/InternalUTCClock.swift:115:36: error: cannot find 'CLOCK_REALTIME' in scope
113 |     public static var now: InternalUTCClock.Instant {
114 |         var currentTime = timespec()
115 |         let result = clock_gettime(CLOCK_REALTIME, &currentTime)
    |                                    `- error: cannot find 'CLOCK_REALTIME' in scope
116 |
117 |         guard result == 0 else {
/host/spi-builder-workspace/Sources/DateTime/InternalUTCClock.swift:118:82: error: cannot find 'errno' in scope
116 |
117 |         guard result == 0 else {
118 |             fatalError("Failed to get current time in clock_gettime(), errno = \(errno)")
    |                                                                                  `- error: cannot find 'errno' in scope
119 |         }
120 |
error: emit-module command failed with exit code 1 (use -v to see invocation)
[4/8] Emitting module DateTime
/host/spi-builder-workspace/Sources/DateTime/BenchmarkClock.swift:22:12: error: Unsupported Platform
 20 |     import Glibc
 21 | #else
 22 |     #error("Unsupported Platform")
    |            `- error: Unsupported Platform
 23 | #endif
 24 |
/host/spi-builder-workspace/Sources/DateTime/InternalUTCClock.swift:21:12: error: Unsupported Platform
 19 |     import Glibc
 20 | #else
 21 |     #error("Unsupported Platform")
    |            `- error: Unsupported Platform
 22 | #endif
 23 |
[5/8] Compiling DateTime Duration+Convenience.swift
[6/8] Compiling DateTime FoundationExports.swift
[7/8] Compiling DateTime EpochDateTime.swift
/host/spi-builder-workspace/Sources/DateTime/EpochDateTime.swift:40:18: error: use of local variable 'tm' before its declaration
38 |     public mutating func convert(timestamp: Int) {
39 |         var timestamp = timestamp
40 |         var tm = tm()
   |             |    `- error: use of local variable 'tm' before its declaration
   |             `- note: 'tm' declared here
41 |         gmtime_r(&timestamp, &tm)
42 |         year = Int(tm.tm_year + 1900)
/host/spi-builder-workspace/Sources/DateTime/EpochDateTime.swift:41:9: error: cannot find 'gmtime_r' in scope
39 |         var timestamp = timestamp
40 |         var tm = tm()
41 |         gmtime_r(&timestamp, &tm)
   |         `- error: cannot find 'gmtime_r' in scope
42 |         year = Int(tm.tm_year + 1900)
43 |         month = Int(tm.tm_mon + 1)
[8/8] Compiling DateTime BenchmarkClock.swift
/host/spi-builder-workspace/Sources/DateTime/BenchmarkClock.swift:22:12: error: Unsupported Platform
 20 |     import Glibc
 21 | #else
 22 |     #error("Unsupported Platform")
    |            `- error: Unsupported Platform
 23 | #endif
 24 |
/host/spi-builder-workspace/Sources/DateTime/BenchmarkClock.swift:71:20: error: Unsupported Platform
 69 |             return Duration(secondsComponent: seconds, attosecondsComponent: attoseconds)
 70 |         #else
 71 |             #error("Unsupported Platform")
    |                    `- error: Unsupported Platform
 72 |         #endif
 73 |     }
/host/spi-builder-workspace/Sources/DateTime/BenchmarkClock.swift:97:20: error: Unsupported Platform
 95 |                                                            attosecondsComponent: Int64(attoseconds)))
 96 |         #else
 97 |             #error("Unsupported Platform")
    |                    `- error: Unsupported Platform
 98 |         #endif
 99 |     }
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
error: emit-module command failed with exit code 1 (use -v to see invocation)
[2/7] Compiling DateTime Duration+Convenience.swift
[3/7] Emitting module DateTime
/host/spi-builder-workspace/Sources/DateTime/BenchmarkClock.swift:22:12: error: Unsupported Platform
 20 |     import Glibc
 21 | #else
 22 |     #error("Unsupported Platform")
    |            `- error: Unsupported Platform
 23 | #endif
 24 |
/host/spi-builder-workspace/Sources/DateTime/InternalUTCClock.swift:21:12: error: Unsupported Platform
 19 |     import Glibc
 20 | #else
 21 |     #error("Unsupported Platform")
    |            `- error: Unsupported Platform
 22 | #endif
 23 |
[4/7] Compiling DateTime BenchmarkClock.swift
/host/spi-builder-workspace/Sources/DateTime/BenchmarkClock.swift:22:12: error: Unsupported Platform
 20 |     import Glibc
 21 | #else
 22 |     #error("Unsupported Platform")
    |            `- error: Unsupported Platform
 23 | #endif
 24 |
/host/spi-builder-workspace/Sources/DateTime/BenchmarkClock.swift:71:20: error: Unsupported Platform
 69 |             return Duration(secondsComponent: seconds, attosecondsComponent: attoseconds)
 70 |         #else
 71 |             #error("Unsupported Platform")
    |                    `- error: Unsupported Platform
 72 |         #endif
 73 |     }
/host/spi-builder-workspace/Sources/DateTime/BenchmarkClock.swift:97:20: error: Unsupported Platform
 95 |                                                            attosecondsComponent: Int64(attoseconds)))
 96 |         #else
 97 |             #error("Unsupported Platform")
    |                    `- error: Unsupported Platform
 98 |         #endif
 99 |     }
[5/7] Compiling DateTime EpochDateTime.swift
/host/spi-builder-workspace/Sources/DateTime/EpochDateTime.swift:40:18: error: use of local variable 'tm' before its declaration
38 |     public mutating func convert(timestamp: Int) {
39 |         var timestamp = timestamp
40 |         var tm = tm()
   |             |    `- error: use of local variable 'tm' before its declaration
   |             `- note: 'tm' declared here
41 |         gmtime_r(&timestamp, &tm)
42 |         year = Int(tm.tm_year + 1900)
/host/spi-builder-workspace/Sources/DateTime/EpochDateTime.swift:41:9: error: cannot find 'gmtime_r' in scope
39 |         var timestamp = timestamp
40 |         var tm = tm()
41 |         gmtime_r(&timestamp, &tm)
   |         `- error: cannot find 'gmtime_r' in scope
42 |         year = Int(tm.tm_year + 1900)
43 |         month = Int(tm.tm_mon + 1)
[6/7] Compiling DateTime FoundationExports.swift
[7/7] Compiling DateTime InternalUTCClock.swift
/host/spi-builder-workspace/Sources/DateTime/InternalUTCClock.swift:21:12: error: Unsupported Platform
 19 |     import Glibc
 20 | #else
 21 |     #error("Unsupported Platform")
    |            `- error: Unsupported Platform
 22 | #endif
 23 |
/host/spi-builder-workspace/Sources/DateTime/InternalUTCClock.swift:98:26: error: cannot find 'timespec' in scope
 96 |     /// The minimum non-zero resolution between any two calls to `now`.
 97 |     public var minimumResolution: Swift.Duration {
 98 |         var resolution = timespec()
    |                          `- error: cannot find 'timespec' in scope
 99 |
100 |         let result = clock_getres(CLOCK_REALTIME, &resolution)
/host/spi-builder-workspace/Sources/DateTime/InternalUTCClock.swift:100:22: error: cannot find 'clock_getres' in scope
 98 |         var resolution = timespec()
 99 |
100 |         let result = clock_getres(CLOCK_REALTIME, &resolution)
    |                      `- error: cannot find 'clock_getres' in scope
101 |
102 |         guard result == 0 else {
/host/spi-builder-workspace/Sources/DateTime/InternalUTCClock.swift:100:35: error: cannot find 'CLOCK_REALTIME' in scope
 98 |         var resolution = timespec()
 99 |
100 |         let result = clock_getres(CLOCK_REALTIME, &resolution)
    |                                   `- error: cannot find 'CLOCK_REALTIME' in scope
101 |
102 |         guard result == 0 else {
/host/spi-builder-workspace/Sources/DateTime/InternalUTCClock.swift:103:94: error: cannot find 'errno' in scope
101 |
102 |         guard result == 0 else {
103 |             fatalError("Failed to get realtime clock resolution in clock_getres(), errno = \(errno)")
    |                                                                                              `- error: cannot find 'errno' in scope
104 |         }
105 |
/host/spi-builder-workspace/Sources/DateTime/InternalUTCClock.swift:114:27: error: cannot find 'timespec' in scope
112 |     /// The current continuous instant.
113 |     public static var now: InternalUTCClock.Instant {
114 |         var currentTime = timespec()
    |                           `- error: cannot find 'timespec' in scope
115 |         let result = clock_gettime(CLOCK_REALTIME, &currentTime)
116 |
/host/spi-builder-workspace/Sources/DateTime/InternalUTCClock.swift:115:22: error: cannot find 'clock_gettime' in scope
113 |     public static var now: InternalUTCClock.Instant {
114 |         var currentTime = timespec()
115 |         let result = clock_gettime(CLOCK_REALTIME, &currentTime)
    |                      `- error: cannot find 'clock_gettime' in scope
116 |
117 |         guard result == 0 else {
/host/spi-builder-workspace/Sources/DateTime/InternalUTCClock.swift:115:36: error: cannot find 'CLOCK_REALTIME' in scope
113 |     public static var now: InternalUTCClock.Instant {
114 |         var currentTime = timespec()
115 |         let result = clock_gettime(CLOCK_REALTIME, &currentTime)
    |                                    `- error: cannot find 'CLOCK_REALTIME' in scope
116 |
117 |         guard result == 0 else {
/host/spi-builder-workspace/Sources/DateTime/InternalUTCClock.swift:118:82: error: cannot find 'errno' in scope
116 |
117 |         guard result == 0 else {
118 |             fatalError("Failed to get current time in clock_gettime(), errno = \(errno)")
    |                                                                                  `- error: cannot find 'errno' in scope
119 |         }
120 |
BUILD FAILURE 6.1 android