The Swift Package Index logo.Swift Package Index

Track the adoption of Swift 6 strict concurrency checks for data race safety. How many packages are Ready for Swift 6?

Build Information

Failed to build Kronos, reference 4.3.1 (f33182), with Swift 6.1 for Linux on 28 Apr 2025 21:28:53 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4609320-1":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.1-latest swift build --triple x86_64-unknown-linux-gnu 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.61.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/MobileNativeFoundation/Kronos.git
Reference: 4.3.1
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/MobileNativeFoundation/Kronos
 * tag               4.3.1      -> FETCH_HEAD
HEAD is now at f331821 Include PrivacyInfo.xcprivacy manifest on Krono's target from Kronos.xcodeproj (#117)
Cloned https://github.com/MobileNativeFoundation/Kronos.git
Revision (git rev-parse @):
f331821314f9b35867a18c5c8fc2f918536d79ac
SUCCESS checkout https://github.com/MobileNativeFoundation/Kronos.git at 4.3.1
========================================
Build
========================================
Selected platform:         linux
Swift version:             6.1
Building package at path:  $PWD
https://github.com/MobileNativeFoundation/Kronos.git
https://github.com/MobileNativeFoundation/Kronos.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
  "dependencies" : [
  ],
  "manifest_display_name" : "Kronos",
  "name" : "Kronos",
  "path" : "/host/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "Kronos",
      "targets" : [
        "Kronos"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "KronosTests",
      "module_type" : "SwiftTarget",
      "name" : "KronosTests",
      "path" : "Tests/KronosTests",
      "sources" : [
        "ClockTests.swift",
        "DNSResolverTests.swift",
        "NTPClientTests.swift",
        "NTPPacketTests.swift",
        "TimeStorageTests.swift"
      ],
      "target_dependencies" : [
        "Kronos"
      ],
      "type" : "test"
    },
    {
      "c99name" : "Kronos",
      "module_type" : "SwiftTarget",
      "name" : "Kronos",
      "path" : "Sources",
      "product_memberships" : [
        "Kronos"
      ],
      "resources" : [
        {
          "path" : "/host/spi-builder-workspace/Sources/PrivacyInfo.xcprivacy",
          "rule" : {
            "process" : {
            }
          }
        }
      ],
      "sources" : [
        "Clock.swift",
        "DNSResolver.swift",
        "Data+Bytes.swift",
        "InternetAddress.swift",
        "NSTimer+ClosureKit.swift",
        "NTPClient.swift",
        "NTPPacket.swift",
        "NTPProtocol.swift",
        "TimeFreeze.swift",
        "TimeStorage.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.3"
}
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-1":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.1-latest swift build --triple x86_64-unknown-linux-gnu -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
basic-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:3bdcac04179f4ed3e5b8e9dbd6e74bbf5ebc0f4fde48bbaad7d1e5c757e65bcb
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.1-latest
Building for debugging...
[0/3] Write sources
[0/3] Copying PrivacyInfo.xcprivacy
[2/3] Write swift-version-24593BA9C3E375BF.txt
error: emit-module command failed with exit code 1 (use -v to see invocation)
[4/14] Emitting module Kronos
/host/spi-builder-workspace/Sources/Clock.swift:28:24: warning: static property 'stableTime' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 26 | /// ```
 27 | public struct Clock {
 28 |     private static var stableTime: TimeFreeze? {
    |                        |- warning: static property 'stableTime' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                        |- note: convert 'stableTime' to a 'let' constant to make 'Sendable' shared state immutable
    |                        |- note: add '@MainActor' to make static property 'stableTime' part of global actor 'MainActor'
    |                        `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 29 |         didSet {
 30 |             self.storage.stableTime = self.stableTime
/host/spi-builder-workspace/Sources/Clock.swift:36:23: warning: static property 'storage' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 34 |     /// Determines where the most current stable time is stored. Use TimeStoragePolicy.appGroup to share
 35 |     /// between your app and an extension.
 36 |     public static var storage = TimeStorage(storagePolicy: .standard)
    |                       |- warning: static property 'storage' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: convert 'storage' to a 'let' constant to make 'Sendable' shared state immutable
    |                       |- note: add '@MainActor' to make static property 'storage' part of global actor 'MainActor'
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 37 |
 38 |     /// The most accurate timestamp that we have so far (nil if no synchronization was done yet)
/host/spi-builder-workspace/Sources/DNSResolver.swift:3:53: error: cannot find 'CFAllocatorCopyDescriptionCallBack' in scope
 1 | import Foundation
 2 |
 3 | private let kCopyNoOperation = unsafeBitCast(0, to: CFAllocatorCopyDescriptionCallBack.self)
   |                                                     `- error: cannot find 'CFAllocatorCopyDescriptionCallBack' in scope
 4 | private let kDefaultTimeout = 8.0
 5 |
/host/spi-builder-workspace/Sources/DNSResolver.swift:3:32: error: generic parameter 'U' could not be inferred
 1 | import Foundation
 2 |
 3 | private let kCopyNoOperation = unsafeBitCast(0, to: CFAllocatorCopyDescriptionCallBack.self)
   |                                `- error: generic parameter 'U' could not be inferred
 4 | private let kDefaultTimeout = 8.0
 5 |
Swift.unsafeBitCast:1:24: note: in call to function 'unsafeBitCast(_:to:)'
1 | @inlinable public func unsafeBitCast<T, U>(_ x: T, to type: U.Type) -> U
  |                        `- note: in call to function 'unsafeBitCast(_:to:)'
/host/spi-builder-workspace/Sources/DNSResolver.swift:63:6: error: Objective-C interoperability is disabled
61 |     }
62 |
63 |     @objc
   |      `- error: Objective-C interoperability is disabled
64 |     private func onTimeout() {
65 |         defer {
/host/spi-builder-workspace/Sources/InternetAddress.swift:60:45: error: cannot find type 'CFData' in scope
 58 |     ///
 59 |     /// - returns: An address struct wrapped into a CFData type.
 60 |     func addressData(withPort port: Int) -> CFData {
    |                                             `- error: cannot find type 'CFData' in scope
 61 |         switch self {
 62 |         case .ipv6(var address):
/host/spi-builder-workspace/Sources/NSTimer+ClosureKit.swift:34:6: error: Objective-C interoperability is disabled
32 |     // MARK: Private methods
33 |
34 |     @objc
   |      `- error: Objective-C interoperability is disabled
35 |     class private func invokeFrom(timer: Timer) {
36 |         if let closureWrapper = timer.userInfo as? TimerClosureWrapper {
/host/spi-builder-workspace/Sources/NTPClient.swift:29:25: error: cannot find type 'CFTimeInterval' in scope
 27 |     func query(pool: String = "time.apple.com", version: Int8 = 3, port: Int = 123,
 28 |                numberOfSamples: Int = kDefaultSamples, maximumServers: Int = kMaximumNTPServers,
 29 |                timeout: CFTimeInterval = kDefaultTimeout,
    |                         `- error: cannot find type 'CFTimeInterval' in scope
 30 |                progress: @escaping (TimeInterval?, Int, Int) -> Void)
 31 |     {
/host/spi-builder-workspace/Sources/NTPClient.swift:79:25: error: cannot find type 'CFTimeInterval' in scope
 77 |     /// - parameter completion:      A closure that will be response PDU on success or nil on error.
 78 |     func query(ip: InternetAddress, port: Int = 123, version: Int8 = 3,
 79 |                timeout: CFTimeInterval = kDefaultTimeout, numberOfSamples: Int = kDefaultSamples,
    |                         `- error: cannot find type 'CFTimeInterval' in scope
 80 |                completion: @escaping (NTPPacket?) -> Void)
 81 |     {
/host/spi-builder-workspace/Sources/NTPClient.swift:148:77: error: cannot find type 'CFRunLoopSource' in scope
146 |
147 |     private func sendAsyncUDPQuery(to ip: InternetAddress, port: Int, timeout: TimeInterval,
148 |                                    completion: UnsafeMutableRawPointer) -> (CFRunLoopSource, CFSocket)?
    |                                                                             `- error: cannot find type 'CFRunLoopSource' in scope
149 |     {
150 |         signal(SIGPIPE, SIG_IGN)
/host/spi-builder-workspace/Sources/NTPClient.swift:148:94: error: cannot find type 'CFSocket' in scope
146 |
147 |     private func sendAsyncUDPQuery(to ip: InternetAddress, port: Int, timeout: TimeInterval,
148 |                                    completion: UnsafeMutableRawPointer) -> (CFRunLoopSource, CFSocket)?
    |                                                                                              `- error: cannot find type 'CFSocket' in scope
149 |     {
150 |         signal(SIGPIPE, SIG_IGN)
[5/14] Compiling Kronos NSTimer+ClosureKit.swift
/host/spi-builder-workspace/Sources/NSTimer+ClosureKit.swift:34:6: error: Objective-C interoperability is disabled
32 |     // MARK: Private methods
33 |
34 |     @objc
   |      `- error: Objective-C interoperability is disabled
35 |     class private func invokeFrom(timer: Timer) {
36 |         if let closureWrapper = timer.userInfo as? TimerClosureWrapper {
/host/spi-builder-workspace/Sources/NSTimer+ClosureKit.swift:28:23: error: '#selector' can only be used with the Objective-C runtime
26 |     {
27 |         return Timer.scheduledTimer(timeInterval: interval, target: self,
28 |             selector: #selector(BlockTimer.invokeFrom(timer:)),
   |                       `- error: '#selector' can only be used with the Objective-C runtime
29 |             userInfo: TimerClosureWrapper(handler: handler, repeats: repeated), repeats: repeated)
30 |     }
/host/spi-builder-workspace/Sources/NTPClient.swift:29:25: error: cannot find type 'CFTimeInterval' in scope
 27 |     func query(pool: String = "time.apple.com", version: Int8 = 3, port: Int = 123,
 28 |                numberOfSamples: Int = kDefaultSamples, maximumServers: Int = kMaximumNTPServers,
 29 |                timeout: CFTimeInterval = kDefaultTimeout,
    |                         `- error: cannot find type 'CFTimeInterval' in scope
 30 |                progress: @escaping (TimeInterval?, Int, Int) -> Void)
 31 |     {
/host/spi-builder-workspace/Sources/NTPClient.swift:79:25: error: cannot find type 'CFTimeInterval' in scope
 77 |     /// - parameter completion:      A closure that will be response PDU on success or nil on error.
 78 |     func query(ip: InternetAddress, port: Int = 123, version: Int8 = 3,
 79 |                timeout: CFTimeInterval = kDefaultTimeout, numberOfSamples: Int = kDefaultSamples,
    |                         `- error: cannot find type 'CFTimeInterval' in scope
 80 |                completion: @escaping (NTPPacket?) -> Void)
 81 |     {
/host/spi-builder-workspace/Sources/NTPClient.swift:148:77: error: cannot find type 'CFRunLoopSource' in scope
146 |
147 |     private func sendAsyncUDPQuery(to ip: InternetAddress, port: Int, timeout: TimeInterval,
148 |                                    completion: UnsafeMutableRawPointer) -> (CFRunLoopSource, CFSocket)?
    |                                                                             `- error: cannot find type 'CFRunLoopSource' in scope
149 |     {
150 |         signal(SIGPIPE, SIG_IGN)
/host/spi-builder-workspace/Sources/NTPClient.swift:148:94: error: cannot find type 'CFSocket' in scope
146 |
147 |     private func sendAsyncUDPQuery(to ip: InternetAddress, port: Int, timeout: TimeInterval,
148 |                                    completion: UnsafeMutableRawPointer) -> (CFRunLoopSource, CFSocket)?
    |                                                                                              `- error: cannot find type 'CFSocket' in scope
149 |     {
150 |         signal(SIGPIPE, SIG_IGN)
/host/spi-builder-workspace/Sources/NTPClient.swift:116:17: error: cannot find 'CFSocketInvalidate' in scope
114 |
115 |             if let (source, socket) = sourceAndSocket {
116 |                 CFSocketInvalidate(socket)
    |                 `- error: cannot find 'CFSocketInvalidate' in scope
117 |                 CFRunLoopRemoveSource(CFRunLoopGetMain(), source, CFRunLoopMode.commonModes)
118 |             }
/host/spi-builder-workspace/Sources/NTPClient.swift:117:17: error: cannot find 'CFRunLoopRemoveSource' in scope
115 |             if let (source, socket) = sourceAndSocket {
116 |                 CFSocketInvalidate(socket)
117 |                 CFRunLoopRemoveSource(CFRunLoopGetMain(), source, CFRunLoopMode.commonModes)
    |                 `- error: cannot find 'CFRunLoopRemoveSource' in scope
118 |             }
119 |         }
/host/spi-builder-workspace/Sources/NTPClient.swift:117:39: error: cannot find 'CFRunLoopGetMain' in scope
115 |             if let (source, socket) = sourceAndSocket {
116 |                 CFSocketInvalidate(socket)
117 |                 CFRunLoopRemoveSource(CFRunLoopGetMain(), source, CFRunLoopMode.commonModes)
    |                                       `- error: cannot find 'CFRunLoopGetMain' in scope
118 |             }
119 |         }
/host/spi-builder-workspace/Sources/NTPClient.swift:117:67: error: cannot find 'CFRunLoopMode' in scope
115 |             if let (source, socket) = sourceAndSocket {
116 |                 CFSocketInvalidate(socket)
117 |                 CFRunLoopRemoveSource(CFRunLoopGetMain(), source, CFRunLoopMode.commonModes)
    |                                                                   `- error: cannot find 'CFRunLoopMode' in scope
118 |             }
119 |         }
/host/spi-builder-workspace/Sources/NTPClient.swift:152:23: error: cannot find type 'CFSocketCallBack' in scope
150 |         signal(SIGPIPE, SIG_IGN)
151 |
152 |         let callback: CFSocketCallBack = { socket, callbackType, _, data, info in
    |                       `- error: cannot find type 'CFSocketCallBack' in scope
153 |             if callbackType == .writeCallBack {
154 |                 var packet = NTPPacket()
/host/spi-builder-workspace/Sources/NTPClient.swift:175:21: error: cannot find 'CFSocketCallBackType' in scope
173 |         }
174 |
175 |         let types = CFSocketCallBackType.dataCallBack.rawValue | CFSocketCallBackType.writeCallBack.rawValue
    |                     `- error: cannot find 'CFSocketCallBackType' in scope
176 |         var context = CFSocketContext(version: 0, info: completion, retain: nil, release: nil,
177 |                                       copyDescription: nil)
/host/spi-builder-workspace/Sources/NTPClient.swift:175:66: error: cannot find 'CFSocketCallBackType' in scope
173 |         }
174 |
175 |         let types = CFSocketCallBackType.dataCallBack.rawValue | CFSocketCallBackType.writeCallBack.rawValue
    |                                                                  `- error: cannot find 'CFSocketCallBackType' in scope
176 |         var context = CFSocketContext(version: 0, info: completion, retain: nil, release: nil,
177 |                                       copyDescription: nil)
/host/spi-builder-workspace/Sources/NTPClient.swift:176:23: error: cannot find 'CFSocketContext' in scope
174 |
175 |         let types = CFSocketCallBackType.dataCallBack.rawValue | CFSocketCallBackType.writeCallBack.rawValue
176 |         var context = CFSocketContext(version: 0, info: completion, retain: nil, release: nil,
    |                       `- error: cannot find 'CFSocketContext' in scope
177 |                                       copyDescription: nil)
178 |         guard let socket = CFSocketCreate(nil, ip.family, SOCK_DGRAM, IPPROTO_UDP, types, callback, &context),
/host/spi-builder-workspace/Sources/NTPClient.swift:176:77: error: 'nil' requires a contextual type
174 |
175 |         let types = CFSocketCallBackType.dataCallBack.rawValue | CFSocketCallBackType.writeCallBack.rawValue
176 |         var context = CFSocketContext(version: 0, info: completion, retain: nil, release: nil,
    |                                                                             `- error: 'nil' requires a contextual type
177 |                                       copyDescription: nil)
178 |         guard let socket = CFSocketCreate(nil, ip.family, SOCK_DGRAM, IPPROTO_UDP, types, callback, &context),
/host/spi-builder-workspace/Sources/NTPClient.swift:176:91: error: 'nil' requires a contextual type
174 |
175 |         let types = CFSocketCallBackType.dataCallBack.rawValue | CFSocketCallBackType.writeCallBack.rawValue
176 |         var context = CFSocketContext(version: 0, info: completion, retain: nil, release: nil,
    |                                                                                           `- error: 'nil' requires a contextual type
177 |                                       copyDescription: nil)
178 |         guard let socket = CFSocketCreate(nil, ip.family, SOCK_DGRAM, IPPROTO_UDP, types, callback, &context),
/host/spi-builder-workspace/Sources/NTPClient.swift:177:56: error: 'nil' requires a contextual type
175 |         let types = CFSocketCallBackType.dataCallBack.rawValue | CFSocketCallBackType.writeCallBack.rawValue
176 |         var context = CFSocketContext(version: 0, info: completion, retain: nil, release: nil,
177 |                                       copyDescription: nil)
    |                                                        `- error: 'nil' requires a contextual type
178 |         guard let socket = CFSocketCreate(nil, ip.family, SOCK_DGRAM, IPPROTO_UDP, types, callback, &context),
179 |             CFSocketIsValid(socket) else
/host/spi-builder-workspace/Sources/NTPClient.swift:178:28: error: cannot find 'CFSocketCreate' in scope
176 |         var context = CFSocketContext(version: 0, info: completion, retain: nil, release: nil,
177 |                                       copyDescription: nil)
178 |         guard let socket = CFSocketCreate(nil, ip.family, SOCK_DGRAM, IPPROTO_UDP, types, callback, &context),
    |                            `- error: cannot find 'CFSocketCreate' in scope
179 |             CFSocketIsValid(socket) else
180 |         {
/host/spi-builder-workspace/Sources/NTPClient.swift:178:43: error: 'nil' requires a contextual type
176 |         var context = CFSocketContext(version: 0, info: completion, retain: nil, release: nil,
177 |                                       copyDescription: nil)
178 |         guard let socket = CFSocketCreate(nil, ip.family, SOCK_DGRAM, IPPROTO_UDP, types, callback, &context),
    |                                           `- error: 'nil' requires a contextual type
179 |             CFSocketIsValid(socket) else
180 |         {
/host/spi-builder-workspace/Sources/NTPClient.swift:179:13: error: cannot find 'CFSocketIsValid' in scope
177 |                                       copyDescription: nil)
178 |         guard let socket = CFSocketCreate(nil, ip.family, SOCK_DGRAM, IPPROTO_UDP, types, callback, &context),
179 |             CFSocketIsValid(socket) else
    |             `- error: cannot find 'CFSocketIsValid' in scope
180 |         {
181 |             return nil
/host/spi-builder-workspace/Sources/NTPClient.swift:184:29: error: cannot find 'CFSocketCreateRunLoopSource' in scope
182 |         }
183 |
184 |         let runLoopSource = CFSocketCreateRunLoopSource(kCFAllocatorDefault, socket, 0)
    |                             `- error: cannot find 'CFSocketCreateRunLoopSource' in scope
185 |         CFRunLoopAddSource(CFRunLoopGetMain(), runLoopSource, CFRunLoopMode.commonModes)
186 |         CFSocketConnectToAddress(socket, ip.addressData(withPort: port), timeout)
/host/spi-builder-workspace/Sources/NTPClient.swift:184:57: error: cannot find 'kCFAllocatorDefault' in scope
182 |         }
183 |
184 |         let runLoopSource = CFSocketCreateRunLoopSource(kCFAllocatorDefault, socket, 0)
    |                                                         `- error: cannot find 'kCFAllocatorDefault' in scope
185 |         CFRunLoopAddSource(CFRunLoopGetMain(), runLoopSource, CFRunLoopMode.commonModes)
186 |         CFSocketConnectToAddress(socket, ip.addressData(withPort: port), timeout)
/host/spi-builder-workspace/Sources/NTPClient.swift:185:9: error: cannot find 'CFRunLoopAddSource' in scope
183 |
184 |         let runLoopSource = CFSocketCreateRunLoopSource(kCFAllocatorDefault, socket, 0)
185 |         CFRunLoopAddSource(CFRunLoopGetMain(), runLoopSource, CFRunLoopMode.commonModes)
    |         `- error: cannot find 'CFRunLoopAddSource' in scope
186 |         CFSocketConnectToAddress(socket, ip.addressData(withPort: port), timeout)
187 |         return (runLoopSource!, socket)
/host/spi-builder-workspace/Sources/NTPClient.swift:185:28: error: cannot find 'CFRunLoopGetMain' in scope
183 |
184 |         let runLoopSource = CFSocketCreateRunLoopSource(kCFAllocatorDefault, socket, 0)
185 |         CFRunLoopAddSource(CFRunLoopGetMain(), runLoopSource, CFRunLoopMode.commonModes)
    |                            `- error: cannot find 'CFRunLoopGetMain' in scope
186 |         CFSocketConnectToAddress(socket, ip.addressData(withPort: port), timeout)
187 |         return (runLoopSource!, socket)
/host/spi-builder-workspace/Sources/NTPClient.swift:185:63: error: cannot find 'CFRunLoopMode' in scope
183 |
184 |         let runLoopSource = CFSocketCreateRunLoopSource(kCFAllocatorDefault, socket, 0)
185 |         CFRunLoopAddSource(CFRunLoopGetMain(), runLoopSource, CFRunLoopMode.commonModes)
    |                                                               `- error: cannot find 'CFRunLoopMode' in scope
186 |         CFSocketConnectToAddress(socket, ip.addressData(withPort: port), timeout)
187 |         return (runLoopSource!, socket)
/host/spi-builder-workspace/Sources/NTPClient.swift:186:9: error: cannot find 'CFSocketConnectToAddress' in scope
184 |         let runLoopSource = CFSocketCreateRunLoopSource(kCFAllocatorDefault, socket, 0)
185 |         CFRunLoopAddSource(CFRunLoopGetMain(), runLoopSource, CFRunLoopMode.commonModes)
186 |         CFSocketConnectToAddress(socket, ip.addressData(withPort: port), timeout)
    |         `- error: cannot find 'CFSocketConnectToAddress' in scope
187 |         return (runLoopSource!, socket)
188 |     }
/host/spi-builder-workspace/Sources/InternetAddress.swift:60:45: error: cannot find type 'CFData' in scope
 58 |     ///
 59 |     /// - returns: An address struct wrapped into a CFData type.
 60 |     func addressData(withPort port: Int) -> CFData {
    |                                             `- error: cannot find type 'CFData' in scope
 61 |         switch self {
 62 |         case .ipv6(var address):
[6/14] Compiling Kronos NTPClient.swift
/host/spi-builder-workspace/Sources/NSTimer+ClosureKit.swift:34:6: error: Objective-C interoperability is disabled
32 |     // MARK: Private methods
33 |
34 |     @objc
   |      `- error: Objective-C interoperability is disabled
35 |     class private func invokeFrom(timer: Timer) {
36 |         if let closureWrapper = timer.userInfo as? TimerClosureWrapper {
/host/spi-builder-workspace/Sources/NSTimer+ClosureKit.swift:28:23: error: '#selector' can only be used with the Objective-C runtime
26 |     {
27 |         return Timer.scheduledTimer(timeInterval: interval, target: self,
28 |             selector: #selector(BlockTimer.invokeFrom(timer:)),
   |                       `- error: '#selector' can only be used with the Objective-C runtime
29 |             userInfo: TimerClosureWrapper(handler: handler, repeats: repeated), repeats: repeated)
30 |     }
/host/spi-builder-workspace/Sources/NTPClient.swift:29:25: error: cannot find type 'CFTimeInterval' in scope
 27 |     func query(pool: String = "time.apple.com", version: Int8 = 3, port: Int = 123,
 28 |                numberOfSamples: Int = kDefaultSamples, maximumServers: Int = kMaximumNTPServers,
 29 |                timeout: CFTimeInterval = kDefaultTimeout,
    |                         `- error: cannot find type 'CFTimeInterval' in scope
 30 |                progress: @escaping (TimeInterval?, Int, Int) -> Void)
 31 |     {
/host/spi-builder-workspace/Sources/NTPClient.swift:79:25: error: cannot find type 'CFTimeInterval' in scope
 77 |     /// - parameter completion:      A closure that will be response PDU on success or nil on error.
 78 |     func query(ip: InternetAddress, port: Int = 123, version: Int8 = 3,
 79 |                timeout: CFTimeInterval = kDefaultTimeout, numberOfSamples: Int = kDefaultSamples,
    |                         `- error: cannot find type 'CFTimeInterval' in scope
 80 |                completion: @escaping (NTPPacket?) -> Void)
 81 |     {
/host/spi-builder-workspace/Sources/NTPClient.swift:148:77: error: cannot find type 'CFRunLoopSource' in scope
146 |
147 |     private func sendAsyncUDPQuery(to ip: InternetAddress, port: Int, timeout: TimeInterval,
148 |                                    completion: UnsafeMutableRawPointer) -> (CFRunLoopSource, CFSocket)?
    |                                                                             `- error: cannot find type 'CFRunLoopSource' in scope
149 |     {
150 |         signal(SIGPIPE, SIG_IGN)
/host/spi-builder-workspace/Sources/NTPClient.swift:148:94: error: cannot find type 'CFSocket' in scope
146 |
147 |     private func sendAsyncUDPQuery(to ip: InternetAddress, port: Int, timeout: TimeInterval,
148 |                                    completion: UnsafeMutableRawPointer) -> (CFRunLoopSource, CFSocket)?
    |                                                                                              `- error: cannot find type 'CFSocket' in scope
149 |     {
150 |         signal(SIGPIPE, SIG_IGN)
/host/spi-builder-workspace/Sources/NTPClient.swift:116:17: error: cannot find 'CFSocketInvalidate' in scope
114 |
115 |             if let (source, socket) = sourceAndSocket {
116 |                 CFSocketInvalidate(socket)
    |                 `- error: cannot find 'CFSocketInvalidate' in scope
117 |                 CFRunLoopRemoveSource(CFRunLoopGetMain(), source, CFRunLoopMode.commonModes)
118 |             }
/host/spi-builder-workspace/Sources/NTPClient.swift:117:17: error: cannot find 'CFRunLoopRemoveSource' in scope
115 |             if let (source, socket) = sourceAndSocket {
116 |                 CFSocketInvalidate(socket)
117 |                 CFRunLoopRemoveSource(CFRunLoopGetMain(), source, CFRunLoopMode.commonModes)
    |                 `- error: cannot find 'CFRunLoopRemoveSource' in scope
118 |             }
119 |         }
/host/spi-builder-workspace/Sources/NTPClient.swift:117:39: error: cannot find 'CFRunLoopGetMain' in scope
115 |             if let (source, socket) = sourceAndSocket {
116 |                 CFSocketInvalidate(socket)
117 |                 CFRunLoopRemoveSource(CFRunLoopGetMain(), source, CFRunLoopMode.commonModes)
    |                                       `- error: cannot find 'CFRunLoopGetMain' in scope
118 |             }
119 |         }
/host/spi-builder-workspace/Sources/NTPClient.swift:117:67: error: cannot find 'CFRunLoopMode' in scope
115 |             if let (source, socket) = sourceAndSocket {
116 |                 CFSocketInvalidate(socket)
117 |                 CFRunLoopRemoveSource(CFRunLoopGetMain(), source, CFRunLoopMode.commonModes)
    |                                                                   `- error: cannot find 'CFRunLoopMode' in scope
118 |             }
119 |         }
/host/spi-builder-workspace/Sources/NTPClient.swift:152:23: error: cannot find type 'CFSocketCallBack' in scope
150 |         signal(SIGPIPE, SIG_IGN)
151 |
152 |         let callback: CFSocketCallBack = { socket, callbackType, _, data, info in
    |                       `- error: cannot find type 'CFSocketCallBack' in scope
153 |             if callbackType == .writeCallBack {
154 |                 var packet = NTPPacket()
/host/spi-builder-workspace/Sources/NTPClient.swift:175:21: error: cannot find 'CFSocketCallBackType' in scope
173 |         }
174 |
175 |         let types = CFSocketCallBackType.dataCallBack.rawValue | CFSocketCallBackType.writeCallBack.rawValue
    |                     `- error: cannot find 'CFSocketCallBackType' in scope
176 |         var context = CFSocketContext(version: 0, info: completion, retain: nil, release: nil,
177 |                                       copyDescription: nil)
/host/spi-builder-workspace/Sources/NTPClient.swift:175:66: error: cannot find 'CFSocketCallBackType' in scope
173 |         }
174 |
175 |         let types = CFSocketCallBackType.dataCallBack.rawValue | CFSocketCallBackType.writeCallBack.rawValue
    |                                                                  `- error: cannot find 'CFSocketCallBackType' in scope
176 |         var context = CFSocketContext(version: 0, info: completion, retain: nil, release: nil,
177 |                                       copyDescription: nil)
/host/spi-builder-workspace/Sources/NTPClient.swift:176:23: error: cannot find 'CFSocketContext' in scope
174 |
175 |         let types = CFSocketCallBackType.dataCallBack.rawValue | CFSocketCallBackType.writeCallBack.rawValue
176 |         var context = CFSocketContext(version: 0, info: completion, retain: nil, release: nil,
    |                       `- error: cannot find 'CFSocketContext' in scope
177 |                                       copyDescription: nil)
178 |         guard let socket = CFSocketCreate(nil, ip.family, SOCK_DGRAM, IPPROTO_UDP, types, callback, &context),
/host/spi-builder-workspace/Sources/NTPClient.swift:176:77: error: 'nil' requires a contextual type
174 |
175 |         let types = CFSocketCallBackType.dataCallBack.rawValue | CFSocketCallBackType.writeCallBack.rawValue
176 |         var context = CFSocketContext(version: 0, info: completion, retain: nil, release: nil,
    |                                                                             `- error: 'nil' requires a contextual type
177 |                                       copyDescription: nil)
178 |         guard let socket = CFSocketCreate(nil, ip.family, SOCK_DGRAM, IPPROTO_UDP, types, callback, &context),
/host/spi-builder-workspace/Sources/NTPClient.swift:176:91: error: 'nil' requires a contextual type
174 |
175 |         let types = CFSocketCallBackType.dataCallBack.rawValue | CFSocketCallBackType.writeCallBack.rawValue
176 |         var context = CFSocketContext(version: 0, info: completion, retain: nil, release: nil,
    |                                                                                           `- error: 'nil' requires a contextual type
177 |                                       copyDescription: nil)
178 |         guard let socket = CFSocketCreate(nil, ip.family, SOCK_DGRAM, IPPROTO_UDP, types, callback, &context),
/host/spi-builder-workspace/Sources/NTPClient.swift:177:56: error: 'nil' requires a contextual type
175 |         let types = CFSocketCallBackType.dataCallBack.rawValue | CFSocketCallBackType.writeCallBack.rawValue
176 |         var context = CFSocketContext(version: 0, info: completion, retain: nil, release: nil,
177 |                                       copyDescription: nil)
    |                                                        `- error: 'nil' requires a contextual type
178 |         guard let socket = CFSocketCreate(nil, ip.family, SOCK_DGRAM, IPPROTO_UDP, types, callback, &context),
179 |             CFSocketIsValid(socket) else
/host/spi-builder-workspace/Sources/NTPClient.swift:178:28: error: cannot find 'CFSocketCreate' in scope
176 |         var context = CFSocketContext(version: 0, info: completion, retain: nil, release: nil,
177 |                                       copyDescription: nil)
178 |         guard let socket = CFSocketCreate(nil, ip.family, SOCK_DGRAM, IPPROTO_UDP, types, callback, &context),
    |                            `- error: cannot find 'CFSocketCreate' in scope
179 |             CFSocketIsValid(socket) else
180 |         {
/host/spi-builder-workspace/Sources/NTPClient.swift:178:43: error: 'nil' requires a contextual type
176 |         var context = CFSocketContext(version: 0, info: completion, retain: nil, release: nil,
177 |                                       copyDescription: nil)
178 |         guard let socket = CFSocketCreate(nil, ip.family, SOCK_DGRAM, IPPROTO_UDP, types, callback, &context),
    |                                           `- error: 'nil' requires a contextual type
179 |             CFSocketIsValid(socket) else
180 |         {
/host/spi-builder-workspace/Sources/NTPClient.swift:179:13: error: cannot find 'CFSocketIsValid' in scope
177 |                                       copyDescription: nil)
178 |         guard let socket = CFSocketCreate(nil, ip.family, SOCK_DGRAM, IPPROTO_UDP, types, callback, &context),
179 |             CFSocketIsValid(socket) else
    |             `- error: cannot find 'CFSocketIsValid' in scope
180 |         {
181 |             return nil
/host/spi-builder-workspace/Sources/NTPClient.swift:184:29: error: cannot find 'CFSocketCreateRunLoopSource' in scope
182 |         }
183 |
184 |         let runLoopSource = CFSocketCreateRunLoopSource(kCFAllocatorDefault, socket, 0)
    |                             `- error: cannot find 'CFSocketCreateRunLoopSource' in scope
185 |         CFRunLoopAddSource(CFRunLoopGetMain(), runLoopSource, CFRunLoopMode.commonModes)
186 |         CFSocketConnectToAddress(socket, ip.addressData(withPort: port), timeout)
/host/spi-builder-workspace/Sources/NTPClient.swift:184:57: error: cannot find 'kCFAllocatorDefault' in scope
182 |         }
183 |
184 |         let runLoopSource = CFSocketCreateRunLoopSource(kCFAllocatorDefault, socket, 0)
    |                                                         `- error: cannot find 'kCFAllocatorDefault' in scope
185 |         CFRunLoopAddSource(CFRunLoopGetMain(), runLoopSource, CFRunLoopMode.commonModes)
186 |         CFSocketConnectToAddress(socket, ip.addressData(withPort: port), timeout)
/host/spi-builder-workspace/Sources/NTPClient.swift:185:9: error: cannot find 'CFRunLoopAddSource' in scope
183 |
184 |         let runLoopSource = CFSocketCreateRunLoopSource(kCFAllocatorDefault, socket, 0)
185 |         CFRunLoopAddSource(CFRunLoopGetMain(), runLoopSource, CFRunLoopMode.commonModes)
    |         `- error: cannot find 'CFRunLoopAddSource' in scope
186 |         CFSocketConnectToAddress(socket, ip.addressData(withPort: port), timeout)
187 |         return (runLoopSource!, socket)
/host/spi-builder-workspace/Sources/NTPClient.swift:185:28: error: cannot find 'CFRunLoopGetMain' in scope
183 |
184 |         let runLoopSource = CFSocketCreateRunLoopSource(kCFAllocatorDefault, socket, 0)
185 |         CFRunLoopAddSource(CFRunLoopGetMain(), runLoopSource, CFRunLoopMode.commonModes)
    |                            `- error: cannot find 'CFRunLoopGetMain' in scope
186 |         CFSocketConnectToAddress(socket, ip.addressData(withPort: port), timeout)
187 |         return (runLoopSource!, socket)
/host/spi-builder-workspace/Sources/NTPClient.swift:185:63: error: cannot find 'CFRunLoopMode' in scope
183 |
184 |         let runLoopSource = CFSocketCreateRunLoopSource(kCFAllocatorDefault, socket, 0)
185 |         CFRunLoopAddSource(CFRunLoopGetMain(), runLoopSource, CFRunLoopMode.commonModes)
    |                                                               `- error: cannot find 'CFRunLoopMode' in scope
186 |         CFSocketConnectToAddress(socket, ip.addressData(withPort: port), timeout)
187 |         return (runLoopSource!, socket)
/host/spi-builder-workspace/Sources/NTPClient.swift:186:9: error: cannot find 'CFSocketConnectToAddress' in scope
184 |         let runLoopSource = CFSocketCreateRunLoopSource(kCFAllocatorDefault, socket, 0)
185 |         CFRunLoopAddSource(CFRunLoopGetMain(), runLoopSource, CFRunLoopMode.commonModes)
186 |         CFSocketConnectToAddress(socket, ip.addressData(withPort: port), timeout)
    |         `- error: cannot find 'CFSocketConnectToAddress' in scope
187 |         return (runLoopSource!, socket)
188 |     }
/host/spi-builder-workspace/Sources/InternetAddress.swift:60:45: error: cannot find type 'CFData' in scope
 58 |     ///
 59 |     /// - returns: An address struct wrapped into a CFData type.
 60 |     func addressData(withPort port: Int) -> CFData {
    |                                             `- error: cannot find type 'CFData' in scope
 61 |         switch self {
 62 |         case .ipv6(var address):
[7/14] Compiling Kronos Clock.swift
/host/spi-builder-workspace/Sources/Clock.swift:28:24: warning: static property 'stableTime' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 26 | /// ```
 27 | public struct Clock {
 28 |     private static var stableTime: TimeFreeze? {
    |                        |- warning: static property 'stableTime' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                        |- note: convert 'stableTime' to a 'let' constant to make 'Sendable' shared state immutable
    |                        |- note: add '@MainActor' to make static property 'stableTime' part of global actor 'MainActor'
    |                        `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 29 |         didSet {
 30 |             self.storage.stableTime = self.stableTime
/host/spi-builder-workspace/Sources/Clock.swift:36:23: warning: static property 'storage' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 34 |     /// Determines where the most current stable time is stored. Use TimeStoragePolicy.appGroup to share
 35 |     /// between your app and an extension.
 36 |     public static var storage = TimeStorage(storagePolicy: .standard)
    |                       |- warning: static property 'storage' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: convert 'storage' to a 'let' constant to make 'Sendable' shared state immutable
    |                       |- note: add '@MainActor' to make static property 'storage' part of global actor 'MainActor'
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 37 |
 38 |     /// The most accurate timestamp that we have so far (nil if no synchronization was done yet)
/host/spi-builder-workspace/Sources/NTPClient.swift:29:25: error: cannot find type 'CFTimeInterval' in scope
 27 |     func query(pool: String = "time.apple.com", version: Int8 = 3, port: Int = 123,
 28 |                numberOfSamples: Int = kDefaultSamples, maximumServers: Int = kMaximumNTPServers,
 29 |                timeout: CFTimeInterval = kDefaultTimeout,
    |                         `- error: cannot find type 'CFTimeInterval' in scope
 30 |                progress: @escaping (TimeInterval?, Int, Int) -> Void)
 31 |     {
/host/spi-builder-workspace/Sources/NTPClient.swift:79:25: error: cannot find type 'CFTimeInterval' in scope
 77 |     /// - parameter completion:      A closure that will be response PDU on success or nil on error.
 78 |     func query(ip: InternetAddress, port: Int = 123, version: Int8 = 3,
 79 |                timeout: CFTimeInterval = kDefaultTimeout, numberOfSamples: Int = kDefaultSamples,
    |                         `- error: cannot find type 'CFTimeInterval' in scope
 80 |                completion: @escaping (NTPPacket?) -> Void)
 81 |     {
/host/spi-builder-workspace/Sources/DNSResolver.swift:3:53: error: cannot find 'CFAllocatorCopyDescriptionCallBack' in scope
 1 | import Foundation
 2 |
 3 | private let kCopyNoOperation = unsafeBitCast(0, to: CFAllocatorCopyDescriptionCallBack.self)
   |                                                     `- error: cannot find 'CFAllocatorCopyDescriptionCallBack' in scope
 4 | private let kDefaultTimeout = 8.0
 5 |
/host/spi-builder-workspace/Sources/DNSResolver.swift:3:32: error: generic parameter 'U' could not be inferred
 1 | import Foundation
 2 |
 3 | private let kCopyNoOperation = unsafeBitCast(0, to: CFAllocatorCopyDescriptionCallBack.self)
   |                                `- error: generic parameter 'U' could not be inferred
 4 | private let kDefaultTimeout = 8.0
 5 |
Swift.unsafeBitCast:1:24: note: in call to function 'unsafeBitCast(_:to:)'
1 | @inlinable public func unsafeBitCast<T, U>(_ x: T, to type: U.Type) -> U
  |                        `- note: in call to function 'unsafeBitCast(_:to:)'
/host/spi-builder-workspace/Sources/DNSResolver.swift:63:6: error: Objective-C interoperability is disabled
61 |     }
62 |
63 |     @objc
   |      `- error: Objective-C interoperability is disabled
64 |     private func onTimeout() {
65 |         defer {
/host/spi-builder-workspace/Sources/DNSResolver.swift:22:23: error: cannot find type 'CFHostClientCallBack' in scope
20 |                         completion: @escaping ([InternetAddress]) -> Void)
21 |     {
22 |         let callback: CFHostClientCallBack = { host, _, _, info in
   |                       `- error: cannot find type 'CFHostClientCallBack' in scope
23 |             guard let info = info else {
24 |                 return
/host/spi-builder-workspace/Sources/DNSResolver.swift:50:29: error: cannot find 'CFHostClientContext' in scope
48 |
49 |         let retainedClosure = Unmanaged.passRetained(resolver).toOpaque()
50 |         var clientContext = CFHostClientContext(version: 0, info: UnsafeMutableRawPointer(retainedClosure),
   |                             `- error: cannot find 'CFHostClientContext' in scope
51 |                                                 retain: nil, release: nil, copyDescription: kCopyNoOperation)
52 |
/host/spi-builder-workspace/Sources/DNSResolver.swift:51:57: error: 'nil' requires a contextual type
49 |         let retainedClosure = Unmanaged.passRetained(resolver).toOpaque()
50 |         var clientContext = CFHostClientContext(version: 0, info: UnsafeMutableRawPointer(retainedClosure),
51 |                                                 retain: nil, release: nil, copyDescription: kCopyNoOperation)
   |                                                         `- error: 'nil' requires a contextual type
52 |
53 |         let hostReference = CFHostCreateWithName(kCFAllocatorDefault, host as CFString).takeUnretainedValue()
/host/spi-builder-workspace/Sources/DNSResolver.swift:51:71: error: 'nil' requires a contextual type
49 |         let retainedClosure = Unmanaged.passRetained(resolver).toOpaque()
50 |         var clientContext = CFHostClientContext(version: 0, info: UnsafeMutableRawPointer(retainedClosure),
51 |                                                 retain: nil, release: nil, copyDescription: kCopyNoOperation)
   |                                                                       `- error: 'nil' requires a contextual type
52 |
53 |         let hostReference = CFHostCreateWithName(kCFAllocatorDefault, host as CFString).takeUnretainedValue()
/host/spi-builder-workspace/Sources/DNSResolver.swift:53:29: error: cannot find 'CFHostCreateWithName' in scope
51 |                                                 retain: nil, release: nil, copyDescription: kCopyNoOperation)
52 |
53 |         let hostReference = CFHostCreateWithName(kCFAllocatorDefault, host as CFString).takeUnretainedValue()
   |                             `- error: cannot find 'CFHostCreateWithName' in scope
54 |         resolver.timer = Timer.scheduledTimer(timeInterval: timeout, target: resolver,
55 |                                               selector: #selector(DNSResolver.onTimeout),
/host/spi-builder-workspace/Sources/DNSResolver.swift:53:50: error: cannot find 'kCFAllocatorDefault' in scope
51 |                                                 retain: nil, release: nil, copyDescription: kCopyNoOperation)
52 |
53 |         let hostReference = CFHostCreateWithName(kCFAllocatorDefault, host as CFString).takeUnretainedValue()
   |                                                  `- error: cannot find 'kCFAllocatorDefault' in scope
54 |         resolver.timer = Timer.scheduledTimer(timeInterval: timeout, target: resolver,
55 |                                               selector: #selector(DNSResolver.onTimeout),
/host/spi-builder-workspace/Sources/DNSResolver.swift:53:79: error: cannot find type 'CFString' in scope
51 |                                                 retain: nil, release: nil, copyDescription: kCopyNoOperation)
52 |
53 |         let hostReference = CFHostCreateWithName(kCFAllocatorDefault, host as CFString).takeUnretainedValue()
   |                                                                               `- error: cannot find type 'CFString' in scope
54 |         resolver.timer = Timer.scheduledTimer(timeInterval: timeout, target: resolver,
55 |                                               selector: #selector(DNSResolver.onTimeout),
/host/spi-builder-workspace/Sources/DNSResolver.swift:55:57: error: '#selector' can only be used with the Objective-C runtime
53 |         let hostReference = CFHostCreateWithName(kCFAllocatorDefault, host as CFString).takeUnretainedValue()
54 |         resolver.timer = Timer.scheduledTimer(timeInterval: timeout, target: resolver,
55 |                                               selector: #selector(DNSResolver.onTimeout),
   |                                                         `- error: '#selector' can only be used with the Objective-C runtime
56 |                                               userInfo: hostReference, repeats: false)
57 |
/host/spi-builder-workspace/Sources/DNSResolver.swift:58:9: error: cannot find 'CFHostSetClient' in scope
56 |                                               userInfo: hostReference, repeats: false)
57 |
58 |         CFHostSetClient(hostReference, callback, &clientContext)
   |         `- error: cannot find 'CFHostSetClient' in scope
59 |         CFHostScheduleWithRunLoop(hostReference, CFRunLoopGetMain(), CFRunLoopMode.commonModes.rawValue)
60 |         CFHostStartInfoResolution(hostReference, .addresses, nil)
/host/spi-builder-workspace/Sources/DNSResolver.swift:59:9: error: cannot find 'CFHostScheduleWithRunLoop' in scope
57 |
58 |         CFHostSetClient(hostReference, callback, &clientContext)
59 |         CFHostScheduleWithRunLoop(hostReference, CFRunLoopGetMain(), CFRunLoopMode.commonModes.rawValue)
   |         `- error: cannot find 'CFHostScheduleWithRunLoop' in scope
60 |         CFHostStartInfoResolution(hostReference, .addresses, nil)
61 |     }
/host/spi-builder-workspace/Sources/DNSResolver.swift:59:50: error: cannot find 'CFRunLoopGetMain' in scope
57 |
58 |         CFHostSetClient(hostReference, callback, &clientContext)
59 |         CFHostScheduleWithRunLoop(hostReference, CFRunLoopGetMain(), CFRunLoopMode.commonModes.rawValue)
   |                                                  `- error: cannot find 'CFRunLoopGetMain' in scope
60 |         CFHostStartInfoResolution(hostReference, .addresses, nil)
61 |     }
/host/spi-builder-workspace/Sources/DNSResolver.swift:59:70: error: cannot find 'CFRunLoopMode' in scope
57 |
58 |         CFHostSetClient(hostReference, callback, &clientContext)
59 |         CFHostScheduleWithRunLoop(hostReference, CFRunLoopGetMain(), CFRunLoopMode.commonModes.rawValue)
   |                                                                      `- error: cannot find 'CFRunLoopMode' in scope
60 |         CFHostStartInfoResolution(hostReference, .addresses, nil)
61 |     }
/host/spi-builder-workspace/Sources/DNSResolver.swift:60:9: error: cannot find 'CFHostStartInfoResolution' in scope
58 |         CFHostSetClient(hostReference, callback, &clientContext)
59 |         CFHostScheduleWithRunLoop(hostReference, CFRunLoopGetMain(), CFRunLoopMode.commonModes.rawValue)
60 |         CFHostStartInfoResolution(hostReference, .addresses, nil)
   |         `- error: cannot find 'CFHostStartInfoResolution' in scope
61 |     }
62 |
/host/spi-builder-workspace/Sources/DNSResolver.swift:60:51: error: cannot infer contextual base in reference to member 'addresses'
58 |         CFHostSetClient(hostReference, callback, &clientContext)
59 |         CFHostScheduleWithRunLoop(hostReference, CFRunLoopGetMain(), CFRunLoopMode.commonModes.rawValue)
60 |         CFHostStartInfoResolution(hostReference, .addresses, nil)
   |                                                   `- error: cannot infer contextual base in reference to member 'addresses'
61 |     }
62 |
/host/spi-builder-workspace/Sources/DNSResolver.swift:60:62: error: 'nil' requires a contextual type
58 |         CFHostSetClient(hostReference, callback, &clientContext)
59 |         CFHostScheduleWithRunLoop(hostReference, CFRunLoopGetMain(), CFRunLoopMode.commonModes.rawValue)
60 |         CFHostStartInfoResolution(hostReference, .addresses, nil)
   |                                                              `- error: 'nil' requires a contextual type
61 |     }
62 |
/host/spi-builder-workspace/Sources/DNSResolver.swift:76:70: error: cannot find 'CFHost' in scope
74 |         }
75 |
76 |         let hostReference = unsafeBitCast(userInfo as AnyObject, to: CFHost.self)
   |                                                                      `- error: cannot find 'CFHost' in scope
77 |         CFHostCancelInfoResolution(hostReference, .addresses)
78 |         CFHostUnscheduleFromRunLoop(hostReference, CFRunLoopGetMain(), CFRunLoopMode.commonModes.rawValue)
/host/spi-builder-workspace/Sources/DNSResolver.swift:76:29: error: generic parameter 'U' could not be inferred
74 |         }
75 |
76 |         let hostReference = unsafeBitCast(userInfo as AnyObject, to: CFHost.self)
   |                             `- error: generic parameter 'U' could not be inferred
77 |         CFHostCancelInfoResolution(hostReference, .addresses)
78 |         CFHostUnscheduleFromRunLoop(hostReference, CFRunLoopGetMain(), CFRunLoopMode.commonModes.rawValue)
Swift.unsafeBitCast:1:24: note: in call to function 'unsafeBitCast(_:to:)'
1 | @inlinable public func unsafeBitCast<T, U>(_ x: T, to type: U.Type) -> U
  |                        `- note: in call to function 'unsafeBitCast(_:to:)'
/host/spi-builder-workspace/Sources/DNSResolver.swift:77:9: error: cannot find 'CFHostCancelInfoResolution' in scope
75 |
76 |         let hostReference = unsafeBitCast(userInfo as AnyObject, to: CFHost.self)
77 |         CFHostCancelInfoResolution(hostReference, .addresses)
   |         `- error: cannot find 'CFHostCancelInfoResolution' in scope
78 |         CFHostUnscheduleFromRunLoop(hostReference, CFRunLoopGetMain(), CFRunLoopMode.commonModes.rawValue)
79 |         CFHostSetClient(hostReference, nil, nil)
/host/spi-builder-workspace/Sources/DNSResolver.swift:77:52: error: cannot infer contextual base in reference to member 'addresses'
75 |
76 |         let hostReference = unsafeBitCast(userInfo as AnyObject, to: CFHost.self)
77 |         CFHostCancelInfoResolution(hostReference, .addresses)
   |                                                    `- error: cannot infer contextual base in reference to member 'addresses'
78 |         CFHostUnscheduleFromRunLoop(hostReference, CFRunLoopGetMain(), CFRunLoopMode.commonModes.rawValue)
79 |         CFHostSetClient(hostReference, nil, nil)
/host/spi-builder-workspace/Sources/DNSResolver.swift:78:9: error: cannot find 'CFHostUnscheduleFromRunLoop' in scope
76 |         let hostReference = unsafeBitCast(userInfo as AnyObject, to: CFHost.self)
77 |         CFHostCancelInfoResolution(hostReference, .addresses)
78 |         CFHostUnscheduleFromRunLoop(hostReference, CFRunLoopGetMain(), CFRunLoopMode.commonModes.rawValue)
   |         `- error: cannot find 'CFHostUnscheduleFromRunLoop' in scope
79 |         CFHostSetClient(hostReference, nil, nil)
80 |     }
/host/spi-builder-workspace/Sources/DNSResolver.swift:78:52: error: cannot find 'CFRunLoopGetMain' in scope
76 |         let hostReference = unsafeBitCast(userInfo as AnyObject, to: CFHost.self)
77 |         CFHostCancelInfoResolution(hostReference, .addresses)
78 |         CFHostUnscheduleFromRunLoop(hostReference, CFRunLoopGetMain(), CFRunLoopMode.commonModes.rawValue)
   |                                                    `- error: cannot find 'CFRunLoopGetMain' in scope
79 |         CFHostSetClient(hostReference, nil, nil)
80 |     }
/host/spi-builder-workspace/Sources/DNSResolver.swift:78:72: error: cannot find 'CFRunLoopMode' in scope
76 |         let hostReference = unsafeBitCast(userInfo as AnyObject, to: CFHost.self)
77 |         CFHostCancelInfoResolution(hostReference, .addresses)
78 |         CFHostUnscheduleFromRunLoop(hostReference, CFRunLoopGetMain(), CFRunLoopMode.commonModes.rawValue)
   |                                                                        `- error: cannot find 'CFRunLoopMode' in scope
79 |         CFHostSetClient(hostReference, nil, nil)
80 |     }
/host/spi-builder-workspace/Sources/DNSResolver.swift:79:9: error: cannot find 'CFHostSetClient' in scope
77 |         CFHostCancelInfoResolution(hostReference, .addresses)
78 |         CFHostUnscheduleFromRunLoop(hostReference, CFRunLoopGetMain(), CFRunLoopMode.commonModes.rawValue)
79 |         CFHostSetClient(hostReference, nil, nil)
   |         `- error: cannot find 'CFHostSetClient' in scope
80 |     }
81 | }
/host/spi-builder-workspace/Sources/DNSResolver.swift:79:40: error: 'nil' requires a contextual type
77 |         CFHostCancelInfoResolution(hostReference, .addresses)
78 |         CFHostUnscheduleFromRunLoop(hostReference, CFRunLoopGetMain(), CFRunLoopMode.commonModes.rawValue)
79 |         CFHostSetClient(hostReference, nil, nil)
   |                                        `- error: 'nil' requires a contextual type
80 |     }
81 | }
/host/spi-builder-workspace/Sources/DNSResolver.swift:79:45: error: 'nil' requires a contextual type
77 |         CFHostCancelInfoResolution(hostReference, .addresses)
78 |         CFHostUnscheduleFromRunLoop(hostReference, CFRunLoopGetMain(), CFRunLoopMode.commonModes.rawValue)
79 |         CFHostSetClient(hostReference, nil, nil)
   |                                             `- error: 'nil' requires a contextual type
80 |     }
81 | }
[8/14] Compiling Kronos DNSResolver.swift
/host/spi-builder-workspace/Sources/Clock.swift:28:24: warning: static property 'stableTime' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 26 | /// ```
 27 | public struct Clock {
 28 |     private static var stableTime: TimeFreeze? {
    |                        |- warning: static property 'stableTime' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                        |- note: convert 'stableTime' to a 'let' constant to make 'Sendable' shared state immutable
    |                        |- note: add '@MainActor' to make static property 'stableTime' part of global actor 'MainActor'
    |                        `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 29 |         didSet {
 30 |             self.storage.stableTime = self.stableTime
/host/spi-builder-workspace/Sources/Clock.swift:36:23: warning: static property 'storage' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 34 |     /// Determines where the most current stable time is stored. Use TimeStoragePolicy.appGroup to share
 35 |     /// between your app and an extension.
 36 |     public static var storage = TimeStorage(storagePolicy: .standard)
    |                       |- warning: static property 'storage' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: convert 'storage' to a 'let' constant to make 'Sendable' shared state immutable
    |                       |- note: add '@MainActor' to make static property 'storage' part of global actor 'MainActor'
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 37 |
 38 |     /// The most accurate timestamp that we have so far (nil if no synchronization was done yet)
/host/spi-builder-workspace/Sources/NTPClient.swift:29:25: error: cannot find type 'CFTimeInterval' in scope
 27 |     func query(pool: String = "time.apple.com", version: Int8 = 3, port: Int = 123,
 28 |                numberOfSamples: Int = kDefaultSamples, maximumServers: Int = kMaximumNTPServers,
 29 |                timeout: CFTimeInterval = kDefaultTimeout,
    |                         `- error: cannot find type 'CFTimeInterval' in scope
 30 |                progress: @escaping (TimeInterval?, Int, Int) -> Void)
 31 |     {
/host/spi-builder-workspace/Sources/NTPClient.swift:79:25: error: cannot find type 'CFTimeInterval' in scope
 77 |     /// - parameter completion:      A closure that will be response PDU on success or nil on error.
 78 |     func query(ip: InternetAddress, port: Int = 123, version: Int8 = 3,
 79 |                timeout: CFTimeInterval = kDefaultTimeout, numberOfSamples: Int = kDefaultSamples,
    |                         `- error: cannot find type 'CFTimeInterval' in scope
 80 |                completion: @escaping (NTPPacket?) -> Void)
 81 |     {
/host/spi-builder-workspace/Sources/DNSResolver.swift:3:53: error: cannot find 'CFAllocatorCopyDescriptionCallBack' in scope
 1 | import Foundation
 2 |
 3 | private let kCopyNoOperation = unsafeBitCast(0, to: CFAllocatorCopyDescriptionCallBack.self)
   |                                                     `- error: cannot find 'CFAllocatorCopyDescriptionCallBack' in scope
 4 | private let kDefaultTimeout = 8.0
 5 |
/host/spi-builder-workspace/Sources/DNSResolver.swift:3:32: error: generic parameter 'U' could not be inferred
 1 | import Foundation
 2 |
 3 | private let kCopyNoOperation = unsafeBitCast(0, to: CFAllocatorCopyDescriptionCallBack.self)
   |                                `- error: generic parameter 'U' could not be inferred
 4 | private let kDefaultTimeout = 8.0
 5 |
Swift.unsafeBitCast:1:24: note: in call to function 'unsafeBitCast(_:to:)'
1 | @inlinable public func unsafeBitCast<T, U>(_ x: T, to type: U.Type) -> U
  |                        `- note: in call to function 'unsafeBitCast(_:to:)'
/host/spi-builder-workspace/Sources/DNSResolver.swift:63:6: error: Objective-C interoperability is disabled
61 |     }
62 |
63 |     @objc
   |      `- error: Objective-C interoperability is disabled
64 |     private func onTimeout() {
65 |         defer {
/host/spi-builder-workspace/Sources/DNSResolver.swift:22:23: error: cannot find type 'CFHostClientCallBack' in scope
20 |                         completion: @escaping ([InternetAddress]) -> Void)
21 |     {
22 |         let callback: CFHostClientCallBack = { host, _, _, info in
   |                       `- error: cannot find type 'CFHostClientCallBack' in scope
23 |             guard let info = info else {
24 |                 return
/host/spi-builder-workspace/Sources/DNSResolver.swift:50:29: error: cannot find 'CFHostClientContext' in scope
48 |
49 |         let retainedClosure = Unmanaged.passRetained(resolver).toOpaque()
50 |         var clientContext = CFHostClientContext(version: 0, info: UnsafeMutableRawPointer(retainedClosure),
   |                             `- error: cannot find 'CFHostClientContext' in scope
51 |                                                 retain: nil, release: nil, copyDescription: kCopyNoOperation)
52 |
/host/spi-builder-workspace/Sources/DNSResolver.swift:51:57: error: 'nil' requires a contextual type
49 |         let retainedClosure = Unmanaged.passRetained(resolver).toOpaque()
50 |         var clientContext = CFHostClientContext(version: 0, info: UnsafeMutableRawPointer(retainedClosure),
51 |                                                 retain: nil, release: nil, copyDescription: kCopyNoOperation)
   |                                                         `- error: 'nil' requires a contextual type
52 |
53 |         let hostReference = CFHostCreateWithName(kCFAllocatorDefault, host as CFString).takeUnretainedValue()
/host/spi-builder-workspace/Sources/DNSResolver.swift:51:71: error: 'nil' requires a contextual type
49 |         let retainedClosure = Unmanaged.passRetained(resolver).toOpaque()
50 |         var clientContext = CFHostClientContext(version: 0, info: UnsafeMutableRawPointer(retainedClosure),
51 |                                                 retain: nil, release: nil, copyDescription: kCopyNoOperation)
   |                                                                       `- error: 'nil' requires a contextual type
52 |
53 |         let hostReference = CFHostCreateWithName(kCFAllocatorDefault, host as CFString).takeUnretainedValue()
/host/spi-builder-workspace/Sources/DNSResolver.swift:53:29: error: cannot find 'CFHostCreateWithName' in scope
51 |                                                 retain: nil, release: nil, copyDescription: kCopyNoOperation)
52 |
53 |         let hostReference = CFHostCreateWithName(kCFAllocatorDefault, host as CFString).takeUnretainedValue()
   |                             `- error: cannot find 'CFHostCreateWithName' in scope
54 |         resolver.timer = Timer.scheduledTimer(timeInterval: timeout, target: resolver,
55 |                                               selector: #selector(DNSResolver.onTimeout),
/host/spi-builder-workspace/Sources/DNSResolver.swift:53:50: error: cannot find 'kCFAllocatorDefault' in scope
51 |                                                 retain: nil, release: nil, copyDescription: kCopyNoOperation)
52 |
53 |         let hostReference = CFHostCreateWithName(kCFAllocatorDefault, host as CFString).takeUnretainedValue()
   |                                                  `- error: cannot find 'kCFAllocatorDefault' in scope
54 |         resolver.timer = Timer.scheduledTimer(timeInterval: timeout, target: resolver,
55 |                                               selector: #selector(DNSResolver.onTimeout),
/host/spi-builder-workspace/Sources/DNSResolver.swift:53:79: error: cannot find type 'CFString' in scope
51 |                                                 retain: nil, release: nil, copyDescription: kCopyNoOperation)
52 |
53 |         let hostReference = CFHostCreateWithName(kCFAllocatorDefault, host as CFString).takeUnretainedValue()
   |                                                                               `- error: cannot find type 'CFString' in scope
54 |         resolver.timer = Timer.scheduledTimer(timeInterval: timeout, target: resolver,
55 |                                               selector: #selector(DNSResolver.onTimeout),
/host/spi-builder-workspace/Sources/DNSResolver.swift:55:57: error: '#selector' can only be used with the Objective-C runtime
53 |         let hostReference = CFHostCreateWithName(kCFAllocatorDefault, host as CFString).takeUnretainedValue()
54 |         resolver.timer = Timer.scheduledTimer(timeInterval: timeout, target: resolver,
55 |                                               selector: #selector(DNSResolver.onTimeout),
   |                                                         `- error: '#selector' can only be used with the Objective-C runtime
56 |                                               userInfo: hostReference, repeats: false)
57 |
/host/spi-builder-workspace/Sources/DNSResolver.swift:58:9: error: cannot find 'CFHostSetClient' in scope
56 |                                               userInfo: hostReference, repeats: false)
57 |
58 |         CFHostSetClient(hostReference, callback, &clientContext)
   |         `- error: cannot find 'CFHostSetClient' in scope
59 |         CFHostScheduleWithRunLoop(hostReference, CFRunLoopGetMain(), CFRunLoopMode.commonModes.rawValue)
60 |         CFHostStartInfoResolution(hostReference, .addresses, nil)
/host/spi-builder-workspace/Sources/DNSResolver.swift:59:9: error: cannot find 'CFHostScheduleWithRunLoop' in scope
57 |
58 |         CFHostSetClient(hostReference, callback, &clientContext)
59 |         CFHostScheduleWithRunLoop(hostReference, CFRunLoopGetMain(), CFRunLoopMode.commonModes.rawValue)
   |         `- error: cannot find 'CFHostScheduleWithRunLoop' in scope
60 |         CFHostStartInfoResolution(hostReference, .addresses, nil)
61 |     }
/host/spi-builder-workspace/Sources/DNSResolver.swift:59:50: error: cannot find 'CFRunLoopGetMain' in scope
57 |
58 |         CFHostSetClient(hostReference, callback, &clientContext)
59 |         CFHostScheduleWithRunLoop(hostReference, CFRunLoopGetMain(), CFRunLoopMode.commonModes.rawValue)
   |                                                  `- error: cannot find 'CFRunLoopGetMain' in scope
60 |         CFHostStartInfoResolution(hostReference, .addresses, nil)
61 |     }
/host/spi-builder-workspace/Sources/DNSResolver.swift:59:70: error: cannot find 'CFRunLoopMode' in scope
57 |
58 |         CFHostSetClient(hostReference, callback, &clientContext)
59 |         CFHostScheduleWithRunLoop(hostReference, CFRunLoopGetMain(), CFRunLoopMode.commonModes.rawValue)
   |                                                                      `- error: cannot find 'CFRunLoopMode' in scope
60 |         CFHostStartInfoResolution(hostReference, .addresses, nil)
61 |     }
/host/spi-builder-workspace/Sources/DNSResolver.swift:60:9: error: cannot find 'CFHostStartInfoResolution' in scope
58 |         CFHostSetClient(hostReference, callback, &clientContext)
59 |         CFHostScheduleWithRunLoop(hostReference, CFRunLoopGetMain(), CFRunLoopMode.commonModes.rawValue)
60 |         CFHostStartInfoResolution(hostReference, .addresses, nil)
   |         `- error: cannot find 'CFHostStartInfoResolution' in scope
61 |     }
62 |
/host/spi-builder-workspace/Sources/DNSResolver.swift:60:51: error: cannot infer contextual base in reference to member 'addresses'
58 |         CFHostSetClient(hostReference, callback, &clientContext)
59 |         CFHostScheduleWithRunLoop(hostReference, CFRunLoopGetMain(), CFRunLoopMode.commonModes.rawValue)
60 |         CFHostStartInfoResolution(hostReference, .addresses, nil)
   |                                                   `- error: cannot infer contextual base in reference to member 'addresses'
61 |     }
62 |
/host/spi-builder-workspace/Sources/DNSResolver.swift:60:62: error: 'nil' requires a contextual type
58 |         CFHostSetClient(hostReference, callback, &clientContext)
59 |         CFHostScheduleWithRunLoop(hostReference, CFRunLoopGetMain(), CFRunLoopMode.commonModes.rawValue)
60 |         CFHostStartInfoResolution(hostReference, .addresses, nil)
   |                                                              `- error: 'nil' requires a contextual type
61 |     }
62 |
/host/spi-builder-workspace/Sources/DNSResolver.swift:76:70: error: cannot find 'CFHost' in scope
74 |         }
75 |
76 |         let hostReference = unsafeBitCast(userInfo as AnyObject, to: CFHost.self)
   |                                                                      `- error: cannot find 'CFHost' in scope
77 |         CFHostCancelInfoResolution(hostReference, .addresses)
78 |         CFHostUnscheduleFromRunLoop(hostReference, CFRunLoopGetMain(), CFRunLoopMode.commonModes.rawValue)
/host/spi-builder-workspace/Sources/DNSResolver.swift:76:29: error: generic parameter 'U' could not be inferred
74 |         }
75 |
76 |         let hostReference = unsafeBitCast(userInfo as AnyObject, to: CFHost.self)
   |                             `- error: generic parameter 'U' could not be inferred
77 |         CFHostCancelInfoResolution(hostReference, .addresses)
78 |         CFHostUnscheduleFromRunLoop(hostReference, CFRunLoopGetMain(), CFRunLoopMode.commonModes.rawValue)
Swift.unsafeBitCast:1:24: note: in call to function 'unsafeBitCast(_:to:)'
1 | @inlinable public func unsafeBitCast<T, U>(_ x: T, to type: U.Type) -> U
  |                        `- note: in call to function 'unsafeBitCast(_:to:)'
/host/spi-builder-workspace/Sources/DNSResolver.swift:77:9: error: cannot find 'CFHostCancelInfoResolution' in scope
75 |
76 |         let hostReference = unsafeBitCast(userInfo as AnyObject, to: CFHost.self)
77 |         CFHostCancelInfoResolution(hostReference, .addresses)
   |         `- error: cannot find 'CFHostCancelInfoResolution' in scope
78 |         CFHostUnscheduleFromRunLoop(hostReference, CFRunLoopGetMain(), CFRunLoopMode.commonModes.rawValue)
79 |         CFHostSetClient(hostReference, nil, nil)
/host/spi-builder-workspace/Sources/DNSResolver.swift:77:52: error: cannot infer contextual base in reference to member 'addresses'
75 |
76 |         let hostReference = unsafeBitCast(userInfo as AnyObject, to: CFHost.self)
77 |         CFHostCancelInfoResolution(hostReference, .addresses)
   |                                                    `- error: cannot infer contextual base in reference to member 'addresses'
78 |         CFHostUnscheduleFromRunLoop(hostReference, CFRunLoopGetMain(), CFRunLoopMode.commonModes.rawValue)
79 |         CFHostSetClient(hostReference, nil, nil)
/host/spi-builder-workspace/Sources/DNSResolver.swift:78:9: error: cannot find 'CFHostUnscheduleFromRunLoop' in scope
76 |         let hostReference = unsafeBitCast(userInfo as AnyObject, to: CFHost.self)
77 |         CFHostCancelInfoResolution(hostReference, .addresses)
78 |         CFHostUnscheduleFromRunLoop(hostReference, CFRunLoopGetMain(), CFRunLoopMode.commonModes.rawValue)
   |         `- error: cannot find 'CFHostUnscheduleFromRunLoop' in scope
79 |         CFHostSetClient(hostReference, nil, nil)
80 |     }
/host/spi-builder-workspace/Sources/DNSResolver.swift:78:52: error: cannot find 'CFRunLoopGetMain' in scope
76 |         let hostReference = unsafeBitCast(userInfo as AnyObject, to: CFHost.self)
77 |         CFHostCancelInfoResolution(hostReference, .addresses)
78 |         CFHostUnscheduleFromRunLoop(hostReference, CFRunLoopGetMain(), CFRunLoopMode.commonModes.rawValue)
   |                                                    `- error: cannot find 'CFRunLoopGetMain' in scope
79 |         CFHostSetClient(hostReference, nil, nil)
80 |     }
/host/spi-builder-workspace/Sources/DNSResolver.swift:78:72: error: cannot find 'CFRunLoopMode' in scope
76 |         let hostReference = unsafeBitCast(userInfo as AnyObject, to: CFHost.self)
77 |         CFHostCancelInfoResolution(hostReference, .addresses)
78 |         CFHostUnscheduleFromRunLoop(hostReference, CFRunLoopGetMain(), CFRunLoopMode.commonModes.rawValue)
   |                                                                        `- error: cannot find 'CFRunLoopMode' in scope
79 |         CFHostSetClient(hostReference, nil, nil)
80 |     }
/host/spi-builder-workspace/Sources/DNSResolver.swift:79:9: error: cannot find 'CFHostSetClient' in scope
77 |         CFHostCancelInfoResolution(hostReference, .addresses)
78 |         CFHostUnscheduleFromRunLoop(hostReference, CFRunLoopGetMain(), CFRunLoopMode.commonModes.rawValue)
79 |         CFHostSetClient(hostReference, nil, nil)
   |         `- error: cannot find 'CFHostSetClient' in scope
80 |     }
81 | }
/host/spi-builder-workspace/Sources/DNSResolver.swift:79:40: error: 'nil' requires a contextual type
77 |         CFHostCancelInfoResolution(hostReference, .addresses)
78 |         CFHostUnscheduleFromRunLoop(hostReference, CFRunLoopGetMain(), CFRunLoopMode.commonModes.rawValue)
79 |         CFHostSetClient(hostReference, nil, nil)
   |                                        `- error: 'nil' requires a contextual type
80 |     }
81 | }
/host/spi-builder-workspace/Sources/DNSResolver.swift:79:45: error: 'nil' requires a contextual type
77 |         CFHostCancelInfoResolution(hostReference, .addresses)
78 |         CFHostUnscheduleFromRunLoop(hostReference, CFRunLoopGetMain(), CFRunLoopMode.commonModes.rawValue)
79 |         CFHostSetClient(hostReference, nil, nil)
   |                                             `- error: 'nil' requires a contextual type
80 |     }
81 | }
[9/14] Compiling Kronos Data+Bytes.swift
/host/spi-builder-workspace/Sources/InternetAddress.swift:60:45: error: cannot find type 'CFData' in scope
 58 |     ///
 59 |     /// - returns: An address struct wrapped into a CFData type.
 60 |     func addressData(withPort port: Int) -> CFData {
    |                                             `- error: cannot find type 'CFData' in scope
 61 |         switch self {
 62 |         case .ipv6(var address):
[10/14] Compiling Kronos InternetAddress.swift
/host/spi-builder-workspace/Sources/InternetAddress.swift:60:45: error: cannot find type 'CFData' in scope
 58 |     ///
 59 |     /// - returns: An address struct wrapped into a CFData type.
 60 |     func addressData(withPort port: Int) -> CFData {
    |                                             `- error: cannot find type 'CFData' in scope
 61 |         switch self {
 62 |         case .ipv6(var address):
[11/15] Compiling Kronos NTPPacket.swift
[12/15] Compiling Kronos NTPProtocol.swift
[13/15] Compiling Kronos TimeFreeze.swift
/host/spi-builder-workspace/Sources/TimeFreeze.swift:74:20: error: cannot find 'CTL_KERN' in scope
72 |     /// - returns: An Int measurement of system uptime in microseconds.
73 |     static func systemUptime() -> TimeInterval {
74 |         var mib = [CTL_KERN, KERN_BOOTTIME]
   |                    `- error: cannot find 'CTL_KERN' in scope
75 |         var size = MemoryLayout<timeval>.stride
76 |         var bootTime = timeval()
/host/spi-builder-workspace/Sources/TimeFreeze.swift:74:30: error: cannot find 'KERN_BOOTTIME' in scope
72 |     /// - returns: An Int measurement of system uptime in microseconds.
73 |     static func systemUptime() -> TimeInterval {
74 |         var mib = [CTL_KERN, KERN_BOOTTIME]
   |                              `- error: cannot find 'KERN_BOOTTIME' in scope
75 |         var size = MemoryLayout<timeval>.stride
76 |         var bootTime = timeval()
/host/spi-builder-workspace/Sources/TimeFreeze.swift:78:29: error: cannot find 'sysctl' in scope
76 |         var bootTime = timeval()
77 |
78 |         let bootTimeError = sysctl(&mib, u_int(mib.count), &bootTime, &size, nil, 0) != 0
   |                             `- error: cannot find 'sysctl' in scope
79 |         assert(!bootTimeError, "system clock error: kernel boot time unavailable")
80 |
/host/spi-builder-workspace/Sources/TimeFreeze.swift:78:78: error: 'nil' requires a contextual type
76 |         var bootTime = timeval()
77 |
78 |         let bootTimeError = sysctl(&mib, u_int(mib.count), &bootTime, &size, nil, 0) != 0
   |                                                                              `- error: 'nil' requires a contextual type
79 |         assert(!bootTimeError, "system clock error: kernel boot time unavailable")
80 |
[14/15] Compiling Kronos TimeStorage.swift
/host/spi-builder-workspace/Sources/TimeStorage.swift:32:50: error: value of type 'UserDefaults' has no member 'value'
30 |     var stableTime: TimeFreeze? {
31 |         get {
32 |             guard let stored = self.userDefaults.value(forKey: kDefaultsKey) as? [String: TimeInterval],
   |                                                  `- error: value of type 'UserDefaults' has no member 'value'
33 |                 let previousStableTime = TimeFreeze(from: stored) else
34 |             {
[15/15] Compiling Kronos resource_bundle_accessor.swift
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-1":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.1-latest swift build --triple x86_64-unknown-linux-gnu 2>&1
basic-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:3bdcac04179f4ed3e5b8e9dbd6e74bbf5ebc0f4fde48bbaad7d1e5c757e65bcb
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.1-latest
[0/1] Planning build
Building for debugging...
[0/1] Write swift-version-24593BA9C3E375BF.txt
[2/12] Compiling Kronos TimeStorage.swift
/host/spi-builder-workspace/Sources/TimeStorage.swift:32:50: error: value of type 'UserDefaults' has no member 'value'
30 |     var stableTime: TimeFreeze? {
31 |         get {
32 |             guard let stored = self.userDefaults.value(forKey: kDefaultsKey) as? [String: TimeInterval],
   |                                                  `- error: value of type 'UserDefaults' has no member 'value'
33 |                 let previousStableTime = TimeFreeze(from: stored) else
34 |             {
error: emit-module command failed with exit code 1 (use -v to see invocation)
[3/13] Emitting module Kronos
/host/spi-builder-workspace/Sources/DNSResolver.swift:3:53: error: cannot find 'CFAllocatorCopyDescriptionCallBack' in scope
 1 | import Foundation
 2 |
 3 | private let kCopyNoOperation = unsafeBitCast(0, to: CFAllocatorCopyDescriptionCallBack.self)
   |                                                     `- error: cannot find 'CFAllocatorCopyDescriptionCallBack' in scope
 4 | private let kDefaultTimeout = 8.0
 5 |
/host/spi-builder-workspace/Sources/DNSResolver.swift:3:32: error: generic parameter 'U' could not be inferred
 1 | import Foundation
 2 |
 3 | private let kCopyNoOperation = unsafeBitCast(0, to: CFAllocatorCopyDescriptionCallBack.self)
   |                                `- error: generic parameter 'U' could not be inferred
 4 | private let kDefaultTimeout = 8.0
 5 |
Swift.unsafeBitCast:1:24: note: in call to function 'unsafeBitCast(_:to:)'
1 | @inlinable public func unsafeBitCast<T, U>(_ x: T, to type: U.Type) -> U
  |                        `- note: in call to function 'unsafeBitCast(_:to:)'
/host/spi-builder-workspace/Sources/DNSResolver.swift:63:6: error: Objective-C interoperability is disabled
61 |     }
62 |
63 |     @objc
   |      `- error: Objective-C interoperability is disabled
64 |     private func onTimeout() {
65 |         defer {
/host/spi-builder-workspace/Sources/InternetAddress.swift:60:45: error: cannot find type 'CFData' in scope
 58 |     ///
 59 |     /// - returns: An address struct wrapped into a CFData type.
 60 |     func addressData(withPort port: Int) -> CFData {
    |                                             `- error: cannot find type 'CFData' in scope
 61 |         switch self {
 62 |         case .ipv6(var address):
/host/spi-builder-workspace/Sources/NSTimer+ClosureKit.swift:34:6: error: Objective-C interoperability is disabled
32 |     // MARK: Private methods
33 |
34 |     @objc
   |      `- error: Objective-C interoperability is disabled
35 |     class private func invokeFrom(timer: Timer) {
36 |         if let closureWrapper = timer.userInfo as? TimerClosureWrapper {
/host/spi-builder-workspace/Sources/NTPClient.swift:29:25: error: cannot find type 'CFTimeInterval' in scope
 27 |     func query(pool: String = "time.apple.com", version: Int8 = 3, port: Int = 123,
 28 |                numberOfSamples: Int = kDefaultSamples, maximumServers: Int = kMaximumNTPServers,
 29 |                timeout: CFTimeInterval = kDefaultTimeout,
    |                         `- error: cannot find type 'CFTimeInterval' in scope
 30 |                progress: @escaping (TimeInterval?, Int, Int) -> Void)
 31 |     {
/host/spi-builder-workspace/Sources/NTPClient.swift:79:25: error: cannot find type 'CFTimeInterval' in scope
 77 |     /// - parameter completion:      A closure that will be response PDU on success or nil on error.
 78 |     func query(ip: InternetAddress, port: Int = 123, version: Int8 = 3,
 79 |                timeout: CFTimeInterval = kDefaultTimeout, numberOfSamples: Int = kDefaultSamples,
    |                         `- error: cannot find type 'CFTimeInterval' in scope
 80 |                completion: @escaping (NTPPacket?) -> Void)
 81 |     {
/host/spi-builder-workspace/Sources/NTPClient.swift:148:77: error: cannot find type 'CFRunLoopSource' in scope
146 |
147 |     private func sendAsyncUDPQuery(to ip: InternetAddress, port: Int, timeout: TimeInterval,
148 |                                    completion: UnsafeMutableRawPointer) -> (CFRunLoopSource, CFSocket)?
    |                                                                             `- error: cannot find type 'CFRunLoopSource' in scope
149 |     {
150 |         signal(SIGPIPE, SIG_IGN)
/host/spi-builder-workspace/Sources/NTPClient.swift:148:94: error: cannot find type 'CFSocket' in scope
146 |
147 |     private func sendAsyncUDPQuery(to ip: InternetAddress, port: Int, timeout: TimeInterval,
148 |                                    completion: UnsafeMutableRawPointer) -> (CFRunLoopSource, CFSocket)?
    |                                                                                              `- error: cannot find type 'CFSocket' in scope
149 |     {
150 |         signal(SIGPIPE, SIG_IGN)
[4/13] Compiling Kronos Clock.swift
/host/spi-builder-workspace/Sources/NTPClient.swift:29:25: error: cannot find type 'CFTimeInterval' in scope
 27 |     func query(pool: String = "time.apple.com", version: Int8 = 3, port: Int = 123,
 28 |                numberOfSamples: Int = kDefaultSamples, maximumServers: Int = kMaximumNTPServers,
 29 |                timeout: CFTimeInterval = kDefaultTimeout,
    |                         `- error: cannot find type 'CFTimeInterval' in scope
 30 |                progress: @escaping (TimeInterval?, Int, Int) -> Void)
 31 |     {
/host/spi-builder-workspace/Sources/NTPClient.swift:79:25: error: cannot find type 'CFTimeInterval' in scope
 77 |     /// - parameter completion:      A closure that will be response PDU on success or nil on error.
 78 |     func query(ip: InternetAddress, port: Int = 123, version: Int8 = 3,
 79 |                timeout: CFTimeInterval = kDefaultTimeout, numberOfSamples: Int = kDefaultSamples,
    |                         `- error: cannot find type 'CFTimeInterval' in scope
 80 |                completion: @escaping (NTPPacket?) -> Void)
 81 |     {
/host/spi-builder-workspace/Sources/DNSResolver.swift:3:53: error: cannot find 'CFAllocatorCopyDescriptionCallBack' in scope
 1 | import Foundation
 2 |
 3 | private let kCopyNoOperation = unsafeBitCast(0, to: CFAllocatorCopyDescriptionCallBack.self)
   |                                                     `- error: cannot find 'CFAllocatorCopyDescriptionCallBack' in scope
 4 | private let kDefaultTimeout = 8.0
 5 |
/host/spi-builder-workspace/Sources/DNSResolver.swift:3:32: error: generic parameter 'U' could not be inferred
 1 | import Foundation
 2 |
 3 | private let kCopyNoOperation = unsafeBitCast(0, to: CFAllocatorCopyDescriptionCallBack.self)
   |                                `- error: generic parameter 'U' could not be inferred
 4 | private let kDefaultTimeout = 8.0
 5 |
Swift.unsafeBitCast:1:24: note: in call to function 'unsafeBitCast(_:to:)'
1 | @inlinable public func unsafeBitCast<T, U>(_ x: T, to type: U.Type) -> U
  |                        `- note: in call to function 'unsafeBitCast(_:to:)'
/host/spi-builder-workspace/Sources/DNSResolver.swift:63:6: error: Objective-C interoperability is disabled
61 |     }
62 |
63 |     @objc
   |      `- error: Objective-C interoperability is disabled
64 |     private func onTimeout() {
65 |         defer {
/host/spi-builder-workspace/Sources/DNSResolver.swift:22:23: error: cannot find type 'CFHostClientCallBack' in scope
20 |                         completion: @escaping ([InternetAddress]) -> Void)
21 |     {
22 |         let callback: CFHostClientCallBack = { host, _, _, info in
   |                       `- error: cannot find type 'CFHostClientCallBack' in scope
23 |             guard let info = info else {
24 |                 return
/host/spi-builder-workspace/Sources/DNSResolver.swift:50:29: error: cannot find 'CFHostClientContext' in scope
48 |
49 |         let retainedClosure = Unmanaged.passRetained(resolver).toOpaque()
50 |         var clientContext = CFHostClientContext(version: 0, info: UnsafeMutableRawPointer(retainedClosure),
   |                             `- error: cannot find 'CFHostClientContext' in scope
51 |                                                 retain: nil, release: nil, copyDescription: kCopyNoOperation)
52 |
/host/spi-builder-workspace/Sources/DNSResolver.swift:51:57: error: 'nil' requires a contextual type
49 |         let retainedClosure = Unmanaged.passRetained(resolver).toOpaque()
50 |         var clientContext = CFHostClientContext(version: 0, info: UnsafeMutableRawPointer(retainedClosure),
51 |                                                 retain: nil, release: nil, copyDescription: kCopyNoOperation)
   |                                                         `- error: 'nil' requires a contextual type
52 |
53 |         let hostReference = CFHostCreateWithName(kCFAllocatorDefault, host as CFString).takeUnretainedValue()
/host/spi-builder-workspace/Sources/DNSResolver.swift:51:71: error: 'nil' requires a contextual type
49 |         let retainedClosure = Unmanaged.passRetained(resolver).toOpaque()
50 |         var clientContext = CFHostClientContext(version: 0, info: UnsafeMutableRawPointer(retainedClosure),
51 |                                                 retain: nil, release: nil, copyDescription: kCopyNoOperation)
   |                                                                       `- error: 'nil' requires a contextual type
52 |
53 |         let hostReference = CFHostCreateWithName(kCFAllocatorDefault, host as CFString).takeUnretainedValue()
/host/spi-builder-workspace/Sources/DNSResolver.swift:53:29: error: cannot find 'CFHostCreateWithName' in scope
51 |                                                 retain: nil, release: nil, copyDescription: kCopyNoOperation)
52 |
53 |         let hostReference = CFHostCreateWithName(kCFAllocatorDefault, host as CFString).takeUnretainedValue()
   |                             `- error: cannot find 'CFHostCreateWithName' in scope
54 |         resolver.timer = Timer.scheduledTimer(timeInterval: timeout, target: resolver,
55 |                                               selector: #selector(DNSResolver.onTimeout),
/host/spi-builder-workspace/Sources/DNSResolver.swift:53:50: error: cannot find 'kCFAllocatorDefault' in scope
51 |                                                 retain: nil, release: nil, copyDescription: kCopyNoOperation)
52 |
53 |         let hostReference = CFHostCreateWithName(kCFAllocatorDefault, host as CFString).takeUnretainedValue()
   |                                                  `- error: cannot find 'kCFAllocatorDefault' in scope
54 |         resolver.timer = Timer.scheduledTimer(timeInterval: timeout, target: resolver,
55 |                                               selector: #selector(DNSResolver.onTimeout),
/host/spi-builder-workspace/Sources/DNSResolver.swift:53:79: error: cannot find type 'CFString' in scope
51 |                                                 retain: nil, release: nil, copyDescription: kCopyNoOperation)
52 |
53 |         let hostReference = CFHostCreateWithName(kCFAllocatorDefault, host as CFString).takeUnretainedValue()
   |                                                                               `- error: cannot find type 'CFString' in scope
54 |         resolver.timer = Timer.scheduledTimer(timeInterval: timeout, target: resolver,
55 |                                               selector: #selector(DNSResolver.onTimeout),
/host/spi-builder-workspace/Sources/DNSResolver.swift:55:57: error: '#selector' can only be used with the Objective-C runtime
53 |         let hostReference = CFHostCreateWithName(kCFAllocatorDefault, host as CFString).takeUnretainedValue()
54 |         resolver.timer = Timer.scheduledTimer(timeInterval: timeout, target: resolver,
55 |                                               selector: #selector(DNSResolver.onTimeout),
   |                                                         `- error: '#selector' can only be used with the Objective-C runtime
56 |                                               userInfo: hostReference, repeats: false)
57 |
/host/spi-builder-workspace/Sources/DNSResolver.swift:58:9: error: cannot find 'CFHostSetClient' in scope
56 |                                               userInfo: hostReference, repeats: false)
57 |
58 |         CFHostSetClient(hostReference, callback, &clientContext)
   |         `- error: cannot find 'CFHostSetClient' in scope
59 |         CFHostScheduleWithRunLoop(hostReference, CFRunLoopGetMain(), CFRunLoopMode.commonModes.rawValue)
60 |         CFHostStartInfoResolution(hostReference, .addresses, nil)
/host/spi-builder-workspace/Sources/DNSResolver.swift:59:9: error: cannot find 'CFHostScheduleWithRunLoop' in scope
57 |
58 |         CFHostSetClient(hostReference, callback, &clientContext)
59 |         CFHostScheduleWithRunLoop(hostReference, CFRunLoopGetMain(), CFRunLoopMode.commonModes.rawValue)
   |         `- error: cannot find 'CFHostScheduleWithRunLoop' in scope
60 |         CFHostStartInfoResolution(hostReference, .addresses, nil)
61 |     }
/host/spi-builder-workspace/Sources/DNSResolver.swift:59:50: error: cannot find 'CFRunLoopGetMain' in scope
57 |
58 |         CFHostSetClient(hostReference, callback, &clientContext)
59 |         CFHostScheduleWithRunLoop(hostReference, CFRunLoopGetMain(), CFRunLoopMode.commonModes.rawValue)
   |                                                  `- error: cannot find 'CFRunLoopGetMain' in scope
60 |         CFHostStartInfoResolution(hostReference, .addresses, nil)
61 |     }
/host/spi-builder-workspace/Sources/DNSResolver.swift:59:70: error: cannot find 'CFRunLoopMode' in scope
57 |
58 |         CFHostSetClient(hostReference, callback, &clientContext)
59 |         CFHostScheduleWithRunLoop(hostReference, CFRunLoopGetMain(), CFRunLoopMode.commonModes.rawValue)
   |                                                                      `- error: cannot find 'CFRunLoopMode' in scope
60 |         CFHostStartInfoResolution(hostReference, .addresses, nil)
61 |     }
/host/spi-builder-workspace/Sources/DNSResolver.swift:60:9: error: cannot find 'CFHostStartInfoResolution' in scope
58 |         CFHostSetClient(hostReference, callback, &clientContext)
59 |         CFHostScheduleWithRunLoop(hostReference, CFRunLoopGetMain(), CFRunLoopMode.commonModes.rawValue)
60 |         CFHostStartInfoResolution(hostReference, .addresses, nil)
   |         `- error: cannot find 'CFHostStartInfoResolution' in scope
61 |     }
62 |
/host/spi-builder-workspace/Sources/DNSResolver.swift:60:51: error: cannot infer contextual base in reference to member 'addresses'
58 |         CFHostSetClient(hostReference, callback, &clientContext)
59 |         CFHostScheduleWithRunLoop(hostReference, CFRunLoopGetMain(), CFRunLoopMode.commonModes.rawValue)
60 |         CFHostStartInfoResolution(hostReference, .addresses, nil)
   |                                                   `- error: cannot infer contextual base in reference to member 'addresses'
61 |     }
62 |
/host/spi-builder-workspace/Sources/DNSResolver.swift:60:62: error: 'nil' requires a contextual type
58 |         CFHostSetClient(hostReference, callback, &clientContext)
59 |         CFHostScheduleWithRunLoop(hostReference, CFRunLoopGetMain(), CFRunLoopMode.commonModes.rawValue)
60 |         CFHostStartInfoResolution(hostReference, .addresses, nil)
   |                                                              `- error: 'nil' requires a contextual type
61 |     }
62 |
/host/spi-builder-workspace/Sources/DNSResolver.swift:76:70: error: cannot find 'CFHost' in scope
74 |         }
75 |
76 |         let hostReference = unsafeBitCast(userInfo as AnyObject, to: CFHost.self)
   |                                                                      `- error: cannot find 'CFHost' in scope
77 |         CFHostCancelInfoResolution(hostReference, .addresses)
78 |         CFHostUnscheduleFromRunLoop(hostReference, CFRunLoopGetMain(), CFRunLoopMode.commonModes.rawValue)
/host/spi-builder-workspace/Sources/DNSResolver.swift:76:29: error: generic parameter 'U' could not be inferred
74 |         }
75 |
76 |         let hostReference = unsafeBitCast(userInfo as AnyObject, to: CFHost.self)
   |                             `- error: generic parameter 'U' could not be inferred
77 |         CFHostCancelInfoResolution(hostReference, .addresses)
78 |         CFHostUnscheduleFromRunLoop(hostReference, CFRunLoopGetMain(), CFRunLoopMode.commonModes.rawValue)
Swift.unsafeBitCast:1:24: note: in call to function 'unsafeBitCast(_:to:)'
1 | @inlinable public func unsafeBitCast<T, U>(_ x: T, to type: U.Type) -> U
  |                        `- note: in call to function 'unsafeBitCast(_:to:)'
/host/spi-builder-workspace/Sources/DNSResolver.swift:77:9: error: cannot find 'CFHostCancelInfoResolution' in scope
75 |
76 |         let hostReference = unsafeBitCast(userInfo as AnyObject, to: CFHost.self)
77 |         CFHostCancelInfoResolution(hostReference, .addresses)
   |         `- error: cannot find 'CFHostCancelInfoResolution' in scope
78 |         CFHostUnscheduleFromRunLoop(hostReference, CFRunLoopGetMain(), CFRunLoopMode.commonModes.rawValue)
79 |         CFHostSetClient(hostReference, nil, nil)
/host/spi-builder-workspace/Sources/DNSResolver.swift:77:52: error: cannot infer contextual base in reference to member 'addresses'
75 |
76 |         let hostReference = unsafeBitCast(userInfo as AnyObject, to: CFHost.self)
77 |         CFHostCancelInfoResolution(hostReference, .addresses)
   |                                                    `- error: cannot infer contextual base in reference to member 'addresses'
78 |         CFHostUnscheduleFromRunLoop(hostReference, CFRunLoopGetMain(), CFRunLoopMode.commonModes.rawValue)
79 |         CFHostSetClient(hostReference, nil, nil)
/host/spi-builder-workspace/Sources/DNSResolver.swift:78:9: error: cannot find 'CFHostUnscheduleFromRunLoop' in scope
76 |         let hostReference = unsafeBitCast(userInfo as AnyObject, to: CFHost.self)
77 |         CFHostCancelInfoResolution(hostReference, .addresses)
78 |         CFHostUnscheduleFromRunLoop(hostReference, CFRunLoopGetMain(), CFRunLoopMode.commonModes.rawValue)
   |         `- error: cannot find 'CFHostUnscheduleFromRunLoop' in scope
79 |         CFHostSetClient(hostReference, nil, nil)
80 |     }
/host/spi-builder-workspace/Sources/DNSResolver.swift:78:52: error: cannot find 'CFRunLoopGetMain' in scope
76 |         let hostReference = unsafeBitCast(userInfo as AnyObject, to: CFHost.self)
77 |         CFHostCancelInfoResolution(hostReference, .addresses)
78 |         CFHostUnscheduleFromRunLoop(hostReference, CFRunLoopGetMain(), CFRunLoopMode.commonModes.rawValue)
   |                                                    `- error: cannot find 'CFRunLoopGetMain' in scope
79 |         CFHostSetClient(hostReference, nil, nil)
80 |     }
/host/spi-builder-workspace/Sources/DNSResolver.swift:78:72: error: cannot find 'CFRunLoopMode' in scope
76 |         let hostReference = unsafeBitCast(userInfo as AnyObject, to: CFHost.self)
77 |         CFHostCancelInfoResolution(hostReference, .addresses)
78 |         CFHostUnscheduleFromRunLoop(hostReference, CFRunLoopGetMain(), CFRunLoopMode.commonModes.rawValue)
   |                                                                        `- error: cannot find 'CFRunLoopMode' in scope
79 |         CFHostSetClient(hostReference, nil, nil)
80 |     }
/host/spi-builder-workspace/Sources/DNSResolver.swift:79:9: error: cannot find 'CFHostSetClient' in scope
77 |         CFHostCancelInfoResolution(hostReference, .addresses)
78 |         CFHostUnscheduleFromRunLoop(hostReference, CFRunLoopGetMain(), CFRunLoopMode.commonModes.rawValue)
79 |         CFHostSetClient(hostReference, nil, nil)
   |         `- error: cannot find 'CFHostSetClient' in scope
80 |     }
81 | }
/host/spi-builder-workspace/Sources/DNSResolver.swift:79:40: error: 'nil' requires a contextual type
77 |         CFHostCancelInfoResolution(hostReference, .addresses)
78 |         CFHostUnscheduleFromRunLoop(hostReference, CFRunLoopGetMain(), CFRunLoopMode.commonModes.rawValue)
79 |         CFHostSetClient(hostReference, nil, nil)
   |                                        `- error: 'nil' requires a contextual type
80 |     }
81 | }
/host/spi-builder-workspace/Sources/DNSResolver.swift:79:45: error: 'nil' requires a contextual type
77 |         CFHostCancelInfoResolution(hostReference, .addresses)
78 |         CFHostUnscheduleFromRunLoop(hostReference, CFRunLoopGetMain(), CFRunLoopMode.commonModes.rawValue)
79 |         CFHostSetClient(hostReference, nil, nil)
   |                                             `- error: 'nil' requires a contextual type
80 |     }
81 | }
[5/13] Compiling Kronos DNSResolver.swift
/host/spi-builder-workspace/Sources/NTPClient.swift:29:25: error: cannot find type 'CFTimeInterval' in scope
 27 |     func query(pool: String = "time.apple.com", version: Int8 = 3, port: Int = 123,
 28 |                numberOfSamples: Int = kDefaultSamples, maximumServers: Int = kMaximumNTPServers,
 29 |                timeout: CFTimeInterval = kDefaultTimeout,
    |                         `- error: cannot find type 'CFTimeInterval' in scope
 30 |                progress: @escaping (TimeInterval?, Int, Int) -> Void)
 31 |     {
/host/spi-builder-workspace/Sources/NTPClient.swift:79:25: error: cannot find type 'CFTimeInterval' in scope
 77 |     /// - parameter completion:      A closure that will be response PDU on success or nil on error.
 78 |     func query(ip: InternetAddress, port: Int = 123, version: Int8 = 3,
 79 |                timeout: CFTimeInterval = kDefaultTimeout, numberOfSamples: Int = kDefaultSamples,
    |                         `- error: cannot find type 'CFTimeInterval' in scope
 80 |                completion: @escaping (NTPPacket?) -> Void)
 81 |     {
/host/spi-builder-workspace/Sources/DNSResolver.swift:3:53: error: cannot find 'CFAllocatorCopyDescriptionCallBack' in scope
 1 | import Foundation
 2 |
 3 | private let kCopyNoOperation = unsafeBitCast(0, to: CFAllocatorCopyDescriptionCallBack.self)
   |                                                     `- error: cannot find 'CFAllocatorCopyDescriptionCallBack' in scope
 4 | private let kDefaultTimeout = 8.0
 5 |
/host/spi-builder-workspace/Sources/DNSResolver.swift:3:32: error: generic parameter 'U' could not be inferred
 1 | import Foundation
 2 |
 3 | private let kCopyNoOperation = unsafeBitCast(0, to: CFAllocatorCopyDescriptionCallBack.self)
   |                                `- error: generic parameter 'U' could not be inferred
 4 | private let kDefaultTimeout = 8.0
 5 |
Swift.unsafeBitCast:1:24: note: in call to function 'unsafeBitCast(_:to:)'
1 | @inlinable public func unsafeBitCast<T, U>(_ x: T, to type: U.Type) -> U
  |                        `- note: in call to function 'unsafeBitCast(_:to:)'
/host/spi-builder-workspace/Sources/DNSResolver.swift:63:6: error: Objective-C interoperability is disabled
61 |     }
62 |
63 |     @objc
   |      `- error: Objective-C interoperability is disabled
64 |     private func onTimeout() {
65 |         defer {
/host/spi-builder-workspace/Sources/DNSResolver.swift:22:23: error: cannot find type 'CFHostClientCallBack' in scope
20 |                         completion: @escaping ([InternetAddress]) -> Void)
21 |     {
22 |         let callback: CFHostClientCallBack = { host, _, _, info in
   |                       `- error: cannot find type 'CFHostClientCallBack' in scope
23 |             guard let info = info else {
24 |                 return
/host/spi-builder-workspace/Sources/DNSResolver.swift:50:29: error: cannot find 'CFHostClientContext' in scope
48 |
49 |         let retainedClosure = Unmanaged.passRetained(resolver).toOpaque()
50 |         var clientContext = CFHostClientContext(version: 0, info: UnsafeMutableRawPointer(retainedClosure),
   |                             `- error: cannot find 'CFHostClientContext' in scope
51 |                                                 retain: nil, release: nil, copyDescription: kCopyNoOperation)
52 |
/host/spi-builder-workspace/Sources/DNSResolver.swift:51:57: error: 'nil' requires a contextual type
49 |         let retainedClosure = Unmanaged.passRetained(resolver).toOpaque()
50 |         var clientContext = CFHostClientContext(version: 0, info: UnsafeMutableRawPointer(retainedClosure),
51 |                                                 retain: nil, release: nil, copyDescription: kCopyNoOperation)
   |                                                         `- error: 'nil' requires a contextual type
52 |
53 |         let hostReference = CFHostCreateWithName(kCFAllocatorDefault, host as CFString).takeUnretainedValue()
/host/spi-builder-workspace/Sources/DNSResolver.swift:51:71: error: 'nil' requires a contextual type
49 |         let retainedClosure = Unmanaged.passRetained(resolver).toOpaque()
50 |         var clientContext = CFHostClientContext(version: 0, info: UnsafeMutableRawPointer(retainedClosure),
51 |                                                 retain: nil, release: nil, copyDescription: kCopyNoOperation)
   |                                                                       `- error: 'nil' requires a contextual type
52 |
53 |         let hostReference = CFHostCreateWithName(kCFAllocatorDefault, host as CFString).takeUnretainedValue()
/host/spi-builder-workspace/Sources/DNSResolver.swift:53:29: error: cannot find 'CFHostCreateWithName' in scope
51 |                                                 retain: nil, release: nil, copyDescription: kCopyNoOperation)
52 |
53 |         let hostReference = CFHostCreateWithName(kCFAllocatorDefault, host as CFString).takeUnretainedValue()
   |                             `- error: cannot find 'CFHostCreateWithName' in scope
54 |         resolver.timer = Timer.scheduledTimer(timeInterval: timeout, target: resolver,
55 |                                               selector: #selector(DNSResolver.onTimeout),
/host/spi-builder-workspace/Sources/DNSResolver.swift:53:50: error: cannot find 'kCFAllocatorDefault' in scope
51 |                                                 retain: nil, release: nil, copyDescription: kCopyNoOperation)
52 |
53 |         let hostReference = CFHostCreateWithName(kCFAllocatorDefault, host as CFString).takeUnretainedValue()
   |                                                  `- error: cannot find 'kCFAllocatorDefault' in scope
54 |         resolver.timer = Timer.scheduledTimer(timeInterval: timeout, target: resolver,
55 |                                               selector: #selector(DNSResolver.onTimeout),
/host/spi-builder-workspace/Sources/DNSResolver.swift:53:79: error: cannot find type 'CFString' in scope
51 |                                                 retain: nil, release: nil, copyDescription: kCopyNoOperation)
52 |
53 |         let hostReference = CFHostCreateWithName(kCFAllocatorDefault, host as CFString).takeUnretainedValue()
   |                                                                               `- error: cannot find type 'CFString' in scope
54 |         resolver.timer = Timer.scheduledTimer(timeInterval: timeout, target: resolver,
55 |                                               selector: #selector(DNSResolver.onTimeout),
/host/spi-builder-workspace/Sources/DNSResolver.swift:55:57: error: '#selector' can only be used with the Objective-C runtime
53 |         let hostReference = CFHostCreateWithName(kCFAllocatorDefault, host as CFString).takeUnretainedValue()
54 |         resolver.timer = Timer.scheduledTimer(timeInterval: timeout, target: resolver,
55 |                                               selector: #selector(DNSResolver.onTimeout),
   |                                                         `- error: '#selector' can only be used with the Objective-C runtime
56 |                                               userInfo: hostReference, repeats: false)
57 |
/host/spi-builder-workspace/Sources/DNSResolver.swift:58:9: error: cannot find 'CFHostSetClient' in scope
56 |                                               userInfo: hostReference, repeats: false)
57 |
58 |         CFHostSetClient(hostReference, callback, &clientContext)
   |         `- error: cannot find 'CFHostSetClient' in scope
59 |         CFHostScheduleWithRunLoop(hostReference, CFRunLoopGetMain(), CFRunLoopMode.commonModes.rawValue)
60 |         CFHostStartInfoResolution(hostReference, .addresses, nil)
/host/spi-builder-workspace/Sources/DNSResolver.swift:59:9: error: cannot find 'CFHostScheduleWithRunLoop' in scope
57 |
58 |         CFHostSetClient(hostReference, callback, &clientContext)
59 |         CFHostScheduleWithRunLoop(hostReference, CFRunLoopGetMain(), CFRunLoopMode.commonModes.rawValue)
   |         `- error: cannot find 'CFHostScheduleWithRunLoop' in scope
60 |         CFHostStartInfoResolution(hostReference, .addresses, nil)
61 |     }
/host/spi-builder-workspace/Sources/DNSResolver.swift:59:50: error: cannot find 'CFRunLoopGetMain' in scope
57 |
58 |         CFHostSetClient(hostReference, callback, &clientContext)
59 |         CFHostScheduleWithRunLoop(hostReference, CFRunLoopGetMain(), CFRunLoopMode.commonModes.rawValue)
   |                                                  `- error: cannot find 'CFRunLoopGetMain' in scope
60 |         CFHostStartInfoResolution(hostReference, .addresses, nil)
61 |     }
/host/spi-builder-workspace/Sources/DNSResolver.swift:59:70: error: cannot find 'CFRunLoopMode' in scope
57 |
58 |         CFHostSetClient(hostReference, callback, &clientContext)
59 |         CFHostScheduleWithRunLoop(hostReference, CFRunLoopGetMain(), CFRunLoopMode.commonModes.rawValue)
   |                                                                      `- error: cannot find 'CFRunLoopMode' in scope
60 |         CFHostStartInfoResolution(hostReference, .addresses, nil)
61 |     }
/host/spi-builder-workspace/Sources/DNSResolver.swift:60:9: error: cannot find 'CFHostStartInfoResolution' in scope
58 |         CFHostSetClient(hostReference, callback, &clientContext)
59 |         CFHostScheduleWithRunLoop(hostReference, CFRunLoopGetMain(), CFRunLoopMode.commonModes.rawValue)
60 |         CFHostStartInfoResolution(hostReference, .addresses, nil)
   |         `- error: cannot find 'CFHostStartInfoResolution' in scope
61 |     }
62 |
/host/spi-builder-workspace/Sources/DNSResolver.swift:60:51: error: cannot infer contextual base in reference to member 'addresses'
58 |         CFHostSetClient(hostReference, callback, &clientContext)
59 |         CFHostScheduleWithRunLoop(hostReference, CFRunLoopGetMain(), CFRunLoopMode.commonModes.rawValue)
60 |         CFHostStartInfoResolution(hostReference, .addresses, nil)
   |                                                   `- error: cannot infer contextual base in reference to member 'addresses'
61 |     }
62 |
/host/spi-builder-workspace/Sources/DNSResolver.swift:60:62: error: 'nil' requires a contextual type
58 |         CFHostSetClient(hostReference, callback, &clientContext)
59 |         CFHostScheduleWithRunLoop(hostReference, CFRunLoopGetMain(), CFRunLoopMode.commonModes.rawValue)
60 |         CFHostStartInfoResolution(hostReference, .addresses, nil)
   |                                                              `- error: 'nil' requires a contextual type
61 |     }
62 |
/host/spi-builder-workspace/Sources/DNSResolver.swift:76:70: error: cannot find 'CFHost' in scope
74 |         }
75 |
76 |         let hostReference = unsafeBitCast(userInfo as AnyObject, to: CFHost.self)
   |                                                                      `- error: cannot find 'CFHost' in scope
77 |         CFHostCancelInfoResolution(hostReference, .addresses)
78 |         CFHostUnscheduleFromRunLoop(hostReference, CFRunLoopGetMain(), CFRunLoopMode.commonModes.rawValue)
/host/spi-builder-workspace/Sources/DNSResolver.swift:76:29: error: generic parameter 'U' could not be inferred
74 |         }
75 |
76 |         let hostReference = unsafeBitCast(userInfo as AnyObject, to: CFHost.self)
   |                             `- error: generic parameter 'U' could not be inferred
77 |         CFHostCancelInfoResolution(hostReference, .addresses)
78 |         CFHostUnscheduleFromRunLoop(hostReference, CFRunLoopGetMain(), CFRunLoopMode.commonModes.rawValue)
Swift.unsafeBitCast:1:24: note: in call to function 'unsafeBitCast(_:to:)'
1 | @inlinable public func unsafeBitCast<T, U>(_ x: T, to type: U.Type) -> U
  |                        `- note: in call to function 'unsafeBitCast(_:to:)'
/host/spi-builder-workspace/Sources/DNSResolver.swift:77:9: error: cannot find 'CFHostCancelInfoResolution' in scope
75 |
76 |         let hostReference = unsafeBitCast(userInfo as AnyObject, to: CFHost.self)
77 |         CFHostCancelInfoResolution(hostReference, .addresses)
   |         `- error: cannot find 'CFHostCancelInfoResolution' in scope
78 |         CFHostUnscheduleFromRunLoop(hostReference, CFRunLoopGetMain(), CFRunLoopMode.commonModes.rawValue)
79 |         CFHostSetClient(hostReference, nil, nil)
/host/spi-builder-workspace/Sources/DNSResolver.swift:77:52: error: cannot infer contextual base in reference to member 'addresses'
75 |
76 |         let hostReference = unsafeBitCast(userInfo as AnyObject, to: CFHost.self)
77 |         CFHostCancelInfoResolution(hostReference, .addresses)
   |                                                    `- error: cannot infer contextual base in reference to member 'addresses'
78 |         CFHostUnscheduleFromRunLoop(hostReference, CFRunLoopGetMain(), CFRunLoopMode.commonModes.rawValue)
79 |         CFHostSetClient(hostReference, nil, nil)
/host/spi-builder-workspace/Sources/DNSResolver.swift:78:9: error: cannot find 'CFHostUnscheduleFromRunLoop' in scope
76 |         let hostReference = unsafeBitCast(userInfo as AnyObject, to: CFHost.self)
77 |         CFHostCancelInfoResolution(hostReference, .addresses)
78 |         CFHostUnscheduleFromRunLoop(hostReference, CFRunLoopGetMain(), CFRunLoopMode.commonModes.rawValue)
   |         `- error: cannot find 'CFHostUnscheduleFromRunLoop' in scope
79 |         CFHostSetClient(hostReference, nil, nil)
80 |     }
/host/spi-builder-workspace/Sources/DNSResolver.swift:78:52: error: cannot find 'CFRunLoopGetMain' in scope
76 |         let hostReference = unsafeBitCast(userInfo as AnyObject, to: CFHost.self)
77 |         CFHostCancelInfoResolution(hostReference, .addresses)
78 |         CFHostUnscheduleFromRunLoop(hostReference, CFRunLoopGetMain(), CFRunLoopMode.commonModes.rawValue)
   |                                                    `- error: cannot find 'CFRunLoopGetMain' in scope
79 |         CFHostSetClient(hostReference, nil, nil)
80 |     }
/host/spi-builder-workspace/Sources/DNSResolver.swift:78:72: error: cannot find 'CFRunLoopMode' in scope
76 |         let hostReference = unsafeBitCast(userInfo as AnyObject, to: CFHost.self)
77 |         CFHostCancelInfoResolution(hostReference, .addresses)
78 |         CFHostUnscheduleFromRunLoop(hostReference, CFRunLoopGetMain(), CFRunLoopMode.commonModes.rawValue)
   |                                                                        `- error: cannot find 'CFRunLoopMode' in scope
79 |         CFHostSetClient(hostReference, nil, nil)
80 |     }
/host/spi-builder-workspace/Sources/DNSResolver.swift:79:9: error: cannot find 'CFHostSetClient' in scope
77 |         CFHostCancelInfoResolution(hostReference, .addresses)
78 |         CFHostUnscheduleFromRunLoop(hostReference, CFRunLoopGetMain(), CFRunLoopMode.commonModes.rawValue)
79 |         CFHostSetClient(hostReference, nil, nil)
   |         `- error: cannot find 'CFHostSetClient' in scope
80 |     }
81 | }
/host/spi-builder-workspace/Sources/DNSResolver.swift:79:40: error: 'nil' requires a contextual type
77 |         CFHostCancelInfoResolution(hostReference, .addresses)
78 |         CFHostUnscheduleFromRunLoop(hostReference, CFRunLoopGetMain(), CFRunLoopMode.commonModes.rawValue)
79 |         CFHostSetClient(hostReference, nil, nil)
   |                                        `- error: 'nil' requires a contextual type
80 |     }
81 | }
/host/spi-builder-workspace/Sources/DNSResolver.swift:79:45: error: 'nil' requires a contextual type
77 |         CFHostCancelInfoResolution(hostReference, .addresses)
78 |         CFHostUnscheduleFromRunLoop(hostReference, CFRunLoopGetMain(), CFRunLoopMode.commonModes.rawValue)
79 |         CFHostSetClient(hostReference, nil, nil)
   |                                             `- error: 'nil' requires a contextual type
80 |     }
81 | }
[6/13] Compiling Kronos Data+Bytes.swift
/host/spi-builder-workspace/Sources/InternetAddress.swift:60:45: error: cannot find type 'CFData' in scope
 58 |     ///
 59 |     /// - returns: An address struct wrapped into a CFData type.
 60 |     func addressData(withPort port: Int) -> CFData {
    |                                             `- error: cannot find type 'CFData' in scope
 61 |         switch self {
 62 |         case .ipv6(var address):
[7/13] Compiling Kronos InternetAddress.swift
/host/spi-builder-workspace/Sources/InternetAddress.swift:60:45: error: cannot find type 'CFData' in scope
 58 |     ///
 59 |     /// - returns: An address struct wrapped into a CFData type.
 60 |     func addressData(withPort port: Int) -> CFData {
    |                                             `- error: cannot find type 'CFData' in scope
 61 |         switch self {
 62 |         case .ipv6(var address):
[8/13] Compiling Kronos NTPProtocol.swift
[9/13] Compiling Kronos TimeFreeze.swift
/host/spi-builder-workspace/Sources/TimeFreeze.swift:74:20: error: cannot find 'CTL_KERN' in scope
72 |     /// - returns: An Int measurement of system uptime in microseconds.
73 |     static func systemUptime() -> TimeInterval {
74 |         var mib = [CTL_KERN, KERN_BOOTTIME]
   |                    `- error: cannot find 'CTL_KERN' in scope
75 |         var size = MemoryLayout<timeval>.stride
76 |         var bootTime = timeval()
/host/spi-builder-workspace/Sources/TimeFreeze.swift:74:30: error: cannot find 'KERN_BOOTTIME' in scope
72 |     /// - returns: An Int measurement of system uptime in microseconds.
73 |     static func systemUptime() -> TimeInterval {
74 |         var mib = [CTL_KERN, KERN_BOOTTIME]
   |                              `- error: cannot find 'KERN_BOOTTIME' in scope
75 |         var size = MemoryLayout<timeval>.stride
76 |         var bootTime = timeval()
/host/spi-builder-workspace/Sources/TimeFreeze.swift:78:29: error: cannot find 'sysctl' in scope
76 |         var bootTime = timeval()
77 |
78 |         let bootTimeError = sysctl(&mib, u_int(mib.count), &bootTime, &size, nil, 0) != 0
   |                             `- error: cannot find 'sysctl' in scope
79 |         assert(!bootTimeError, "system clock error: kernel boot time unavailable")
80 |
/host/spi-builder-workspace/Sources/TimeFreeze.swift:78:78: error: 'nil' requires a contextual type
76 |         var bootTime = timeval()
77 |
78 |         let bootTimeError = sysctl(&mib, u_int(mib.count), &bootTime, &size, nil, 0) != 0
   |                                                                              `- error: 'nil' requires a contextual type
79 |         assert(!bootTimeError, "system clock error: kernel boot time unavailable")
80 |
[10/13] Compiling Kronos resource_bundle_accessor.swift
[11/13] Compiling Kronos NTPPacket.swift
[12/13] Compiling Kronos NSTimer+ClosureKit.swift
/host/spi-builder-workspace/Sources/NSTimer+ClosureKit.swift:34:6: error: Objective-C interoperability is disabled
32 |     // MARK: Private methods
33 |
34 |     @objc
   |      `- error: Objective-C interoperability is disabled
35 |     class private func invokeFrom(timer: Timer) {
36 |         if let closureWrapper = timer.userInfo as? TimerClosureWrapper {
/host/spi-builder-workspace/Sources/NSTimer+ClosureKit.swift:28:23: error: '#selector' can only be used with the Objective-C runtime
26 |     {
27 |         return Timer.scheduledTimer(timeInterval: interval, target: self,
28 |             selector: #selector(BlockTimer.invokeFrom(timer:)),
   |                       `- error: '#selector' can only be used with the Objective-C runtime
29 |             userInfo: TimerClosureWrapper(handler: handler, repeats: repeated), repeats: repeated)
30 |     }
/host/spi-builder-workspace/Sources/NTPClient.swift:29:25: error: cannot find type 'CFTimeInterval' in scope
 27 |     func query(pool: String = "time.apple.com", version: Int8 = 3, port: Int = 123,
 28 |                numberOfSamples: Int = kDefaultSamples, maximumServers: Int = kMaximumNTPServers,
 29 |                timeout: CFTimeInterval = kDefaultTimeout,
    |                         `- error: cannot find type 'CFTimeInterval' in scope
 30 |                progress: @escaping (TimeInterval?, Int, Int) -> Void)
 31 |     {
/host/spi-builder-workspace/Sources/NTPClient.swift:79:25: error: cannot find type 'CFTimeInterval' in scope
 77 |     /// - parameter completion:      A closure that will be response PDU on success or nil on error.
 78 |     func query(ip: InternetAddress, port: Int = 123, version: Int8 = 3,
 79 |                timeout: CFTimeInterval = kDefaultTimeout, numberOfSamples: Int = kDefaultSamples,
    |                         `- error: cannot find type 'CFTimeInterval' in scope
 80 |                completion: @escaping (NTPPacket?) -> Void)
 81 |     {
/host/spi-builder-workspace/Sources/NTPClient.swift:148:77: error: cannot find type 'CFRunLoopSource' in scope
146 |
147 |     private func sendAsyncUDPQuery(to ip: InternetAddress, port: Int, timeout: TimeInterval,
148 |                                    completion: UnsafeMutableRawPointer) -> (CFRunLoopSource, CFSocket)?
    |                                                                             `- error: cannot find type 'CFRunLoopSource' in scope
149 |     {
150 |         signal(SIGPIPE, SIG_IGN)
/host/spi-builder-workspace/Sources/NTPClient.swift:148:94: error: cannot find type 'CFSocket' in scope
146 |
147 |     private func sendAsyncUDPQuery(to ip: InternetAddress, port: Int, timeout: TimeInterval,
148 |                                    completion: UnsafeMutableRawPointer) -> (CFRunLoopSource, CFSocket)?
    |                                                                                              `- error: cannot find type 'CFSocket' in scope
149 |     {
150 |         signal(SIGPIPE, SIG_IGN)
/host/spi-builder-workspace/Sources/NTPClient.swift:116:17: error: cannot find 'CFSocketInvalidate' in scope
114 |
115 |             if let (source, socket) = sourceAndSocket {
116 |                 CFSocketInvalidate(socket)
    |                 `- error: cannot find 'CFSocketInvalidate' in scope
117 |                 CFRunLoopRemoveSource(CFRunLoopGetMain(), source, CFRunLoopMode.commonModes)
118 |             }
/host/spi-builder-workspace/Sources/NTPClient.swift:117:17: error: cannot find 'CFRunLoopRemoveSource' in scope
115 |             if let (source, socket) = sourceAndSocket {
116 |                 CFSocketInvalidate(socket)
117 |                 CFRunLoopRemoveSource(CFRunLoopGetMain(), source, CFRunLoopMode.commonModes)
    |                 `- error: cannot find 'CFRunLoopRemoveSource' in scope
118 |             }
119 |         }
/host/spi-builder-workspace/Sources/NTPClient.swift:117:39: error: cannot find 'CFRunLoopGetMain' in scope
115 |             if let (source, socket) = sourceAndSocket {
116 |                 CFSocketInvalidate(socket)
117 |                 CFRunLoopRemoveSource(CFRunLoopGetMain(), source, CFRunLoopMode.commonModes)
    |                                       `- error: cannot find 'CFRunLoopGetMain' in scope
118 |             }
119 |         }
/host/spi-builder-workspace/Sources/NTPClient.swift:117:67: error: cannot find 'CFRunLoopMode' in scope
115 |             if let (source, socket) = sourceAndSocket {
116 |                 CFSocketInvalidate(socket)
117 |                 CFRunLoopRemoveSource(CFRunLoopGetMain(), source, CFRunLoopMode.commonModes)
    |                                                                   `- error: cannot find 'CFRunLoopMode' in scope
118 |             }
119 |         }
/host/spi-builder-workspace/Sources/NTPClient.swift:152:23: error: cannot find type 'CFSocketCallBack' in scope
150 |         signal(SIGPIPE, SIG_IGN)
151 |
152 |         let callback: CFSocketCallBack = { socket, callbackType, _, data, info in
    |                       `- error: cannot find type 'CFSocketCallBack' in scope
153 |             if callbackType == .writeCallBack {
154 |                 var packet = NTPPacket()
/host/spi-builder-workspace/Sources/NTPClient.swift:175:21: error: cannot find 'CFSocketCallBackType' in scope
173 |         }
174 |
175 |         let types = CFSocketCallBackType.dataCallBack.rawValue | CFSocketCallBackType.writeCallBack.rawValue
    |                     `- error: cannot find 'CFSocketCallBackType' in scope
176 |         var context = CFSocketContext(version: 0, info: completion, retain: nil, release: nil,
177 |                                       copyDescription: nil)
/host/spi-builder-workspace/Sources/NTPClient.swift:175:66: error: cannot find 'CFSocketCallBackType' in scope
173 |         }
174 |
175 |         let types = CFSocketCallBackType.dataCallBack.rawValue | CFSocketCallBackType.writeCallBack.rawValue
    |                                                                  `- error: cannot find 'CFSocketCallBackType' in scope
176 |         var context = CFSocketContext(version: 0, info: completion, retain: nil, release: nil,
177 |                                       copyDescription: nil)
/host/spi-builder-workspace/Sources/NTPClient.swift:176:23: error: cannot find 'CFSocketContext' in scope
174 |
175 |         let types = CFSocketCallBackType.dataCallBack.rawValue | CFSocketCallBackType.writeCallBack.rawValue
176 |         var context = CFSocketContext(version: 0, info: completion, retain: nil, release: nil,
    |                       `- error: cannot find 'CFSocketContext' in scope
177 |                                       copyDescription: nil)
178 |         guard let socket = CFSocketCreate(nil, ip.family, SOCK_DGRAM, IPPROTO_UDP, types, callback, &context),
/host/spi-builder-workspace/Sources/NTPClient.swift:176:77: error: 'nil' requires a contextual type
174 |
175 |         let types = CFSocketCallBackType.dataCallBack.rawValue | CFSocketCallBackType.writeCallBack.rawValue
176 |         var context = CFSocketContext(version: 0, info: completion, retain: nil, release: nil,
    |                                                                             `- error: 'nil' requires a contextual type
177 |                                       copyDescription: nil)
178 |         guard let socket = CFSocketCreate(nil, ip.family, SOCK_DGRAM, IPPROTO_UDP, types, callback, &context),
/host/spi-builder-workspace/Sources/NTPClient.swift:176:91: error: 'nil' requires a contextual type
174 |
175 |         let types = CFSocketCallBackType.dataCallBack.rawValue | CFSocketCallBackType.writeCallBack.rawValue
176 |         var context = CFSocketContext(version: 0, info: completion, retain: nil, release: nil,
    |                                                                                           `- error: 'nil' requires a contextual type
177 |                                       copyDescription: nil)
178 |         guard let socket = CFSocketCreate(nil, ip.family, SOCK_DGRAM, IPPROTO_UDP, types, callback, &context),
/host/spi-builder-workspace/Sources/NTPClient.swift:177:56: error: 'nil' requires a contextual type
175 |         let types = CFSocketCallBackType.dataCallBack.rawValue | CFSocketCallBackType.writeCallBack.rawValue
176 |         var context = CFSocketContext(version: 0, info: completion, retain: nil, release: nil,
177 |                                       copyDescription: nil)
    |                                                        `- error: 'nil' requires a contextual type
178 |         guard let socket = CFSocketCreate(nil, ip.family, SOCK_DGRAM, IPPROTO_UDP, types, callback, &context),
179 |             CFSocketIsValid(socket) else
/host/spi-builder-workspace/Sources/NTPClient.swift:178:28: error: cannot find 'CFSocketCreate' in scope
176 |         var context = CFSocketContext(version: 0, info: completion, retain: nil, release: nil,
177 |                                       copyDescription: nil)
178 |         guard let socket = CFSocketCreate(nil, ip.family, SOCK_DGRAM, IPPROTO_UDP, types, callback, &context),
    |                            `- error: cannot find 'CFSocketCreate' in scope
179 |             CFSocketIsValid(socket) else
180 |         {
/host/spi-builder-workspace/Sources/NTPClient.swift:178:43: error: 'nil' requires a contextual type
176 |         var context = CFSocketContext(version: 0, info: completion, retain: nil, release: nil,
177 |                                       copyDescription: nil)
178 |         guard let socket = CFSocketCreate(nil, ip.family, SOCK_DGRAM, IPPROTO_UDP, types, callback, &context),
    |                                           `- error: 'nil' requires a contextual type
179 |             CFSocketIsValid(socket) else
180 |         {
/host/spi-builder-workspace/Sources/NTPClient.swift:179:13: error: cannot find 'CFSocketIsValid' in scope
177 |                                       copyDescription: nil)
178 |         guard let socket = CFSocketCreate(nil, ip.family, SOCK_DGRAM, IPPROTO_UDP, types, callback, &context),
179 |             CFSocketIsValid(socket) else
    |             `- error: cannot find 'CFSocketIsValid' in scope
180 |         {
181 |             return nil
/host/spi-builder-workspace/Sources/NTPClient.swift:184:29: error: cannot find 'CFSocketCreateRunLoopSource' in scope
182 |         }
183 |
184 |         let runLoopSource = CFSocketCreateRunLoopSource(kCFAllocatorDefault, socket, 0)
    |                             `- error: cannot find 'CFSocketCreateRunLoopSource' in scope
185 |         CFRunLoopAddSource(CFRunLoopGetMain(), runLoopSource, CFRunLoopMode.commonModes)
186 |         CFSocketConnectToAddress(socket, ip.addressData(withPort: port), timeout)
/host/spi-builder-workspace/Sources/NTPClient.swift:184:57: error: cannot find 'kCFAllocatorDefault' in scope
182 |         }
183 |
184 |         let runLoopSource = CFSocketCreateRunLoopSource(kCFAllocatorDefault, socket, 0)
    |                                                         `- error: cannot find 'kCFAllocatorDefault' in scope
185 |         CFRunLoopAddSource(CFRunLoopGetMain(), runLoopSource, CFRunLoopMode.commonModes)
186 |         CFSocketConnectToAddress(socket, ip.addressData(withPort: port), timeout)
/host/spi-builder-workspace/Sources/NTPClient.swift:185:9: error: cannot find 'CFRunLoopAddSource' in scope
183 |
184 |         let runLoopSource = CFSocketCreateRunLoopSource(kCFAllocatorDefault, socket, 0)
185 |         CFRunLoopAddSource(CFRunLoopGetMain(), runLoopSource, CFRunLoopMode.commonModes)
    |         `- error: cannot find 'CFRunLoopAddSource' in scope
186 |         CFSocketConnectToAddress(socket, ip.addressData(withPort: port), timeout)
187 |         return (runLoopSource!, socket)
/host/spi-builder-workspace/Sources/NTPClient.swift:185:28: error: cannot find 'CFRunLoopGetMain' in scope
183 |
184 |         let runLoopSource = CFSocketCreateRunLoopSource(kCFAllocatorDefault, socket, 0)
185 |         CFRunLoopAddSource(CFRunLoopGetMain(), runLoopSource, CFRunLoopMode.commonModes)
    |                            `- error: cannot find 'CFRunLoopGetMain' in scope
186 |         CFSocketConnectToAddress(socket, ip.addressData(withPort: port), timeout)
187 |         return (runLoopSource!, socket)
/host/spi-builder-workspace/Sources/NTPClient.swift:185:63: error: cannot find 'CFRunLoopMode' in scope
183 |
184 |         let runLoopSource = CFSocketCreateRunLoopSource(kCFAllocatorDefault, socket, 0)
185 |         CFRunLoopAddSource(CFRunLoopGetMain(), runLoopSource, CFRunLoopMode.commonModes)
    |                                                               `- error: cannot find 'CFRunLoopMode' in scope
186 |         CFSocketConnectToAddress(socket, ip.addressData(withPort: port), timeout)
187 |         return (runLoopSource!, socket)
/host/spi-builder-workspace/Sources/NTPClient.swift:186:9: error: cannot find 'CFSocketConnectToAddress' in scope
184 |         let runLoopSource = CFSocketCreateRunLoopSource(kCFAllocatorDefault, socket, 0)
185 |         CFRunLoopAddSource(CFRunLoopGetMain(), runLoopSource, CFRunLoopMode.commonModes)
186 |         CFSocketConnectToAddress(socket, ip.addressData(withPort: port), timeout)
    |         `- error: cannot find 'CFSocketConnectToAddress' in scope
187 |         return (runLoopSource!, socket)
188 |     }
/host/spi-builder-workspace/Sources/InternetAddress.swift:60:45: error: cannot find type 'CFData' in scope
 58 |     ///
 59 |     /// - returns: An address struct wrapped into a CFData type.
 60 |     func addressData(withPort port: Int) -> CFData {
    |                                             `- error: cannot find type 'CFData' in scope
 61 |         switch self {
 62 |         case .ipv6(var address):
[13/13] Compiling Kronos NTPClient.swift
/host/spi-builder-workspace/Sources/NSTimer+ClosureKit.swift:34:6: error: Objective-C interoperability is disabled
32 |     // MARK: Private methods
33 |
34 |     @objc
   |      `- error: Objective-C interoperability is disabled
35 |     class private func invokeFrom(timer: Timer) {
36 |         if let closureWrapper = timer.userInfo as? TimerClosureWrapper {
/host/spi-builder-workspace/Sources/NSTimer+ClosureKit.swift:28:23: error: '#selector' can only be used with the Objective-C runtime
26 |     {
27 |         return Timer.scheduledTimer(timeInterval: interval, target: self,
28 |             selector: #selector(BlockTimer.invokeFrom(timer:)),
   |                       `- error: '#selector' can only be used with the Objective-C runtime
29 |             userInfo: TimerClosureWrapper(handler: handler, repeats: repeated), repeats: repeated)
30 |     }
/host/spi-builder-workspace/Sources/NTPClient.swift:29:25: error: cannot find type 'CFTimeInterval' in scope
 27 |     func query(pool: String = "time.apple.com", version: Int8 = 3, port: Int = 123,
 28 |                numberOfSamples: Int = kDefaultSamples, maximumServers: Int = kMaximumNTPServers,
 29 |                timeout: CFTimeInterval = kDefaultTimeout,
    |                         `- error: cannot find type 'CFTimeInterval' in scope
 30 |                progress: @escaping (TimeInterval?, Int, Int) -> Void)
 31 |     {
/host/spi-builder-workspace/Sources/NTPClient.swift:79:25: error: cannot find type 'CFTimeInterval' in scope
 77 |     /// - parameter completion:      A closure that will be response PDU on success or nil on error.
 78 |     func query(ip: InternetAddress, port: Int = 123, version: Int8 = 3,
 79 |                timeout: CFTimeInterval = kDefaultTimeout, numberOfSamples: Int = kDefaultSamples,
    |                         `- error: cannot find type 'CFTimeInterval' in scope
 80 |                completion: @escaping (NTPPacket?) -> Void)
 81 |     {
/host/spi-builder-workspace/Sources/NTPClient.swift:148:77: error: cannot find type 'CFRunLoopSource' in scope
146 |
147 |     private func sendAsyncUDPQuery(to ip: InternetAddress, port: Int, timeout: TimeInterval,
148 |                                    completion: UnsafeMutableRawPointer) -> (CFRunLoopSource, CFSocket)?
    |                                                                             `- error: cannot find type 'CFRunLoopSource' in scope
149 |     {
150 |         signal(SIGPIPE, SIG_IGN)
/host/spi-builder-workspace/Sources/NTPClient.swift:148:94: error: cannot find type 'CFSocket' in scope
146 |
147 |     private func sendAsyncUDPQuery(to ip: InternetAddress, port: Int, timeout: TimeInterval,
148 |                                    completion: UnsafeMutableRawPointer) -> (CFRunLoopSource, CFSocket)?
    |                                                                                              `- error: cannot find type 'CFSocket' in scope
149 |     {
150 |         signal(SIGPIPE, SIG_IGN)
/host/spi-builder-workspace/Sources/NTPClient.swift:116:17: error: cannot find 'CFSocketInvalidate' in scope
114 |
115 |             if let (source, socket) = sourceAndSocket {
116 |                 CFSocketInvalidate(socket)
    |                 `- error: cannot find 'CFSocketInvalidate' in scope
117 |                 CFRunLoopRemoveSource(CFRunLoopGetMain(), source, CFRunLoopMode.commonModes)
118 |             }
/host/spi-builder-workspace/Sources/NTPClient.swift:117:17: error: cannot find 'CFRunLoopRemoveSource' in scope
115 |             if let (source, socket) = sourceAndSocket {
116 |                 CFSocketInvalidate(socket)
117 |                 CFRunLoopRemoveSource(CFRunLoopGetMain(), source, CFRunLoopMode.commonModes)
    |                 `- error: cannot find 'CFRunLoopRemoveSource' in scope
118 |             }
119 |         }
/host/spi-builder-workspace/Sources/NTPClient.swift:117:39: error: cannot find 'CFRunLoopGetMain' in scope
115 |             if let (source, socket) = sourceAndSocket {
116 |                 CFSocketInvalidate(socket)
117 |                 CFRunLoopRemoveSource(CFRunLoopGetMain(), source, CFRunLoopMode.commonModes)
    |                                       `- error: cannot find 'CFRunLoopGetMain' in scope
118 |             }
119 |         }
/host/spi-builder-workspace/Sources/NTPClient.swift:117:67: error: cannot find 'CFRunLoopMode' in scope
115 |             if let (source, socket) = sourceAndSocket {
116 |                 CFSocketInvalidate(socket)
117 |                 CFRunLoopRemoveSource(CFRunLoopGetMain(), source, CFRunLoopMode.commonModes)
    |                                                                   `- error: cannot find 'CFRunLoopMode' in scope
118 |             }
119 |         }
/host/spi-builder-workspace/Sources/NTPClient.swift:152:23: error: cannot find type 'CFSocketCallBack' in scope
150 |         signal(SIGPIPE, SIG_IGN)
151 |
152 |         let callback: CFSocketCallBack = { socket, callbackType, _, data, info in
    |                       `- error: cannot find type 'CFSocketCallBack' in scope
153 |             if callbackType == .writeCallBack {
154 |                 var packet = NTPPacket()
/host/spi-builder-workspace/Sources/NTPClient.swift:175:21: error: cannot find 'CFSocketCallBackType' in scope
173 |         }
174 |
175 |         let types = CFSocketCallBackType.dataCallBack.rawValue | CFSocketCallBackType.writeCallBack.rawValue
    |                     `- error: cannot find 'CFSocketCallBackType' in scope
176 |         var context = CFSocketContext(version: 0, info: completion, retain: nil, release: nil,
177 |                                       copyDescription: nil)
/host/spi-builder-workspace/Sources/NTPClient.swift:175:66: error: cannot find 'CFSocketCallBackType' in scope
173 |         }
174 |
175 |         let types = CFSocketCallBackType.dataCallBack.rawValue | CFSocketCallBackType.writeCallBack.rawValue
    |                                                                  `- error: cannot find 'CFSocketCallBackType' in scope
176 |         var context = CFSocketContext(version: 0, info: completion, retain: nil, release: nil,
177 |                                       copyDescription: nil)
/host/spi-builder-workspace/Sources/NTPClient.swift:176:23: error: cannot find 'CFSocketContext' in scope
174 |
175 |         let types = CFSocketCallBackType.dataCallBack.rawValue | CFSocketCallBackType.writeCallBack.rawValue
176 |         var context = CFSocketContext(version: 0, info: completion, retain: nil, release: nil,
    |                       `- error: cannot find 'CFSocketContext' in scope
177 |                                       copyDescription: nil)
178 |         guard let socket = CFSocketCreate(nil, ip.family, SOCK_DGRAM, IPPROTO_UDP, types, callback, &context),
/host/spi-builder-workspace/Sources/NTPClient.swift:176:77: error: 'nil' requires a contextual type
174 |
175 |         let types = CFSocketCallBackType.dataCallBack.rawValue | CFSocketCallBackType.writeCallBack.rawValue
176 |         var context = CFSocketContext(version: 0, info: completion, retain: nil, release: nil,
    |                                                                             `- error: 'nil' requires a contextual type
177 |                                       copyDescription: nil)
178 |         guard let socket = CFSocketCreate(nil, ip.family, SOCK_DGRAM, IPPROTO_UDP, types, callback, &context),
/host/spi-builder-workspace/Sources/NTPClient.swift:176:91: error: 'nil' requires a contextual type
174 |
175 |         let types = CFSocketCallBackType.dataCallBack.rawValue | CFSocketCallBackType.writeCallBack.rawValue
176 |         var context = CFSocketContext(version: 0, info: completion, retain: nil, release: nil,
    |                                                                                           `- error: 'nil' requires a contextual type
177 |                                       copyDescription: nil)
178 |         guard let socket = CFSocketCreate(nil, ip.family, SOCK_DGRAM, IPPROTO_UDP, types, callback, &context),
/host/spi-builder-workspace/Sources/NTPClient.swift:177:56: error: 'nil' requires a contextual type
175 |         let types = CFSocketCallBackType.dataCallBack.rawValue | CFSocketCallBackType.writeCallBack.rawValue
176 |         var context = CFSocketContext(version: 0, info: completion, retain: nil, release: nil,
177 |                                       copyDescription: nil)
    |                                                        `- error: 'nil' requires a contextual type
178 |         guard let socket = CFSocketCreate(nil, ip.family, SOCK_DGRAM, IPPROTO_UDP, types, callback, &context),
179 |             CFSocketIsValid(socket) else
/host/spi-builder-workspace/Sources/NTPClient.swift:178:28: error: cannot find 'CFSocketCreate' in scope
176 |         var context = CFSocketContext(version: 0, info: completion, retain: nil, release: nil,
177 |                                       copyDescription: nil)
178 |         guard let socket = CFSocketCreate(nil, ip.family, SOCK_DGRAM, IPPROTO_UDP, types, callback, &context),
    |                            `- error: cannot find 'CFSocketCreate' in scope
179 |             CFSocketIsValid(socket) else
180 |         {
/host/spi-builder-workspace/Sources/NTPClient.swift:178:43: error: 'nil' requires a contextual type
176 |         var context = CFSocketContext(version: 0, info: completion, retain: nil, release: nil,
177 |                                       copyDescription: nil)
178 |         guard let socket = CFSocketCreate(nil, ip.family, SOCK_DGRAM, IPPROTO_UDP, types, callback, &context),
    |                                           `- error: 'nil' requires a contextual type
179 |             CFSocketIsValid(socket) else
180 |         {
/host/spi-builder-workspace/Sources/NTPClient.swift:179:13: error: cannot find 'CFSocketIsValid' in scope
177 |                                       copyDescription: nil)
178 |         guard let socket = CFSocketCreate(nil, ip.family, SOCK_DGRAM, IPPROTO_UDP, types, callback, &context),
179 |             CFSocketIsValid(socket) else
    |             `- error: cannot find 'CFSocketIsValid' in scope
180 |         {
181 |             return nil
/host/spi-builder-workspace/Sources/NTPClient.swift:184:29: error: cannot find 'CFSocketCreateRunLoopSource' in scope
182 |         }
183 |
184 |         let runLoopSource = CFSocketCreateRunLoopSource(kCFAllocatorDefault, socket, 0)
    |                             `- error: cannot find 'CFSocketCreateRunLoopSource' in scope
185 |         CFRunLoopAddSource(CFRunLoopGetMain(), runLoopSource, CFRunLoopMode.commonModes)
186 |         CFSocketConnectToAddress(socket, ip.addressData(withPort: port), timeout)
/host/spi-builder-workspace/Sources/NTPClient.swift:184:57: error: cannot find 'kCFAllocatorDefault' in scope
182 |         }
183 |
184 |         let runLoopSource = CFSocketCreateRunLoopSource(kCFAllocatorDefault, socket, 0)
    |                                                         `- error: cannot find 'kCFAllocatorDefault' in scope
185 |         CFRunLoopAddSource(CFRunLoopGetMain(), runLoopSource, CFRunLoopMode.commonModes)
186 |         CFSocketConnectToAddress(socket, ip.addressData(withPort: port), timeout)
/host/spi-builder-workspace/Sources/NTPClient.swift:185:9: error: cannot find 'CFRunLoopAddSource' in scope
183 |
184 |         let runLoopSource = CFSocketCreateRunLoopSource(kCFAllocatorDefault, socket, 0)
185 |         CFRunLoopAddSource(CFRunLoopGetMain(), runLoopSource, CFRunLoopMode.commonModes)
    |         `- error: cannot find 'CFRunLoopAddSource' in scope
186 |         CFSocketConnectToAddress(socket, ip.addressData(withPort: port), timeout)
187 |         return (runLoopSource!, socket)
/host/spi-builder-workspace/Sources/NTPClient.swift:185:28: error: cannot find 'CFRunLoopGetMain' in scope
183 |
184 |         let runLoopSource = CFSocketCreateRunLoopSource(kCFAllocatorDefault, socket, 0)
185 |         CFRunLoopAddSource(CFRunLoopGetMain(), runLoopSource, CFRunLoopMode.commonModes)
    |                            `- error: cannot find 'CFRunLoopGetMain' in scope
186 |         CFSocketConnectToAddress(socket, ip.addressData(withPort: port), timeout)
187 |         return (runLoopSource!, socket)
/host/spi-builder-workspace/Sources/NTPClient.swift:185:63: error: cannot find 'CFRunLoopMode' in scope
183 |
184 |         let runLoopSource = CFSocketCreateRunLoopSource(kCFAllocatorDefault, socket, 0)
185 |         CFRunLoopAddSource(CFRunLoopGetMain(), runLoopSource, CFRunLoopMode.commonModes)
    |                                                               `- error: cannot find 'CFRunLoopMode' in scope
186 |         CFSocketConnectToAddress(socket, ip.addressData(withPort: port), timeout)
187 |         return (runLoopSource!, socket)
/host/spi-builder-workspace/Sources/NTPClient.swift:186:9: error: cannot find 'CFSocketConnectToAddress' in scope
184 |         let runLoopSource = CFSocketCreateRunLoopSource(kCFAllocatorDefault, socket, 0)
185 |         CFRunLoopAddSource(CFRunLoopGetMain(), runLoopSource, CFRunLoopMode.commonModes)
186 |         CFSocketConnectToAddress(socket, ip.addressData(withPort: port), timeout)
    |         `- error: cannot find 'CFSocketConnectToAddress' in scope
187 |         return (runLoopSource!, socket)
188 |     }
/host/spi-builder-workspace/Sources/InternetAddress.swift:60:45: error: cannot find type 'CFData' in scope
 58 |     ///
 59 |     /// - returns: An address struct wrapped into a CFData type.
 60 |     func addressData(withPort port: Int) -> CFData {
    |                                             `- error: cannot find type 'CFData' in scope
 61 |         switch self {
 62 |         case .ipv6(var address):
BUILD FAILURE 6.1 linux