The Swift Package Index logo.Swift Package Index

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

Build Information

Failed to build DNS, reference master (d04ab5), with Swift 6.1 for Android on 27 May 2025 08:23:11 UTC.

Build Command

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

Build Log

========================================
RunAll
========================================
Builder version: 4.63.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/bouke/dns.git
Reference: master
Initialized empty Git repository in /host/spi-builder-workspace/.git/
hint: Using 'master' as the name for the initial branch. This default branch name
hint: is subject to change. To configure the initial branch name to use in all
hint: of your new repositories, which will suppress this warning, call:
hint:
hint: 	git config --global init.defaultBranch <name>
hint:
hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and
hint: 'development'. The just-created branch can be renamed via this command:
hint:
hint: 	git branch -m <name>
From https://github.com/bouke/dns
 * branch            master     -> FETCH_HEAD
 * [new branch]      master     -> origin/master
HEAD is now at d04ab56 Add support for MX records (#32)
Cloned https://github.com/bouke/dns.git
Revision (git rev-parse @):
d04ab56ce1e4d889c920b9dcc1f30b3fb4880837
SUCCESS checkout https://github.com/bouke/dns.git at master
========================================
Build
========================================
Selected platform:         android
Swift version:             6.1
Building package at path:  $PWD
https://github.com/bouke/dns.git
https://github.com/bouke/dns.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
  "dependencies" : [
  ],
  "manifest_display_name" : "DNS",
  "name" : "DNS",
  "path" : "/host/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "DNS",
      "targets" : [
        "DNS"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "swift_languages_versions" : [
    "4",
    "5"
  ],
  "targets" : [
    {
      "c99name" : "DNSTests",
      "module_type" : "SwiftTarget",
      "name" : "DNSTests",
      "path" : "Tests/DNSTests",
      "sources" : [
        "DNSTests.swift",
        "FuzzTests.swift",
        "IPTests.swift"
      ],
      "target_dependencies" : [
        "DNS"
      ],
      "type" : "test"
    },
    {
      "c99name" : "DNS",
      "module_type" : "SwiftTarget",
      "name" : "DNS",
      "path" : "Sources/DNS",
      "product_memberships" : [
        "DNS"
      ],
      "sources" : [
        "Bytes.swift",
        "Data+Extensions.swift",
        "IP.swift",
        "Integer+Data.swift",
        "Message.swift",
        "Types.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "4.0"
}
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-3":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:android-6.1-latest swift build --swift-sdk aarch64-unknown-linux-android24 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures 2>&1
android-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:9f3c606dcd2a4f06d17ba472aa533c43685ba7ba19a5c9bc23518a066eb7f86a
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:android-6.1-latest
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-24593BA9C3E375BF.txt
[3/9] Compiling DNS Message.swift
[4/9] Compiling DNS Types.swift
/host/spi-builder-workspace/Sources/DNS/Types.swift:55:1: warning: extension declares a conformance of imported type 'UInt16' to imported protocol 'CustomDebugStringConvertible'; this will not behave correctly if the owners of 'Swift' introduce this conformance in the future
 53 | }
 54 |
 55 | extension ResourceRecordType: CustomDebugStringConvertible {
    | |- warning: extension declares a conformance of imported type 'UInt16' to imported protocol 'CustomDebugStringConvertible'; this will not behave correctly if the owners of 'Swift' introduce this conformance in the future
    | `- note: add '@retroactive' to silence this warning
 56 |     public var debugDescription: String {
 57 |         switch self {
/host/spi-builder-workspace/Sources/DNS/Types.swift:182:27: warning: generic parameter 'IPType' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
158 | }
159 |
160 | public struct HostRecord<IPType: IP> {
    |                          `- note: 'IPType' previously declared here
161 |     public var name: String
162 |     public var unique: Bool
    :
180 |     }
181 |
182 |     public static func ==<IPType> (lhs: HostRecord<IPType>, rhs: HostRecord<IPType>) -> Bool {
    |                           `- warning: generic parameter 'IPType' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
183 |         return lhs.name == rhs.name
184 |         // TODO: check equality of IP addresses
[5/9] Compiling DNS Integer+Data.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[6/9] Compiling DNS Data+Extensions.swift
[7/9] Emitting module DNS
/host/spi-builder-workspace/Sources/DNS/IP.swift:31:25: error: cannot find type 'in_addr' in scope
 29 | public struct IPv4: IP {
 30 |     /// IPv4 address in network-byte-order
 31 |     public let address: in_addr
    |                         `- error: cannot find type 'in_addr' in scope
 32 |
 33 |     public init(address: in_addr) {
/host/spi-builder-workspace/Sources/DNS/IP.swift:33:26: error: cannot find type 'in_addr' in scope
 31 |     public let address: in_addr
 32 |
 33 |     public init(address: in_addr) {
    |                          `- error: cannot find type 'in_addr' in scope
 34 |         self.address = address
 35 |     }
/host/spi-builder-workspace/Sources/DNS/IP.swift:98:25: error: cannot find type 'in6_addr' in scope
 96 |
 97 | public struct IPv6: IP {
 98 |     public let address: in6_addr
    |                         `- error: cannot find type 'in6_addr' in scope
 99 |
100 |     public init(address: in6_addr) {
/host/spi-builder-workspace/Sources/DNS/IP.swift:100:26: error: cannot find type 'in6_addr' in scope
 98 |     public let address: in6_addr
 99 |
100 |     public init(address: in6_addr) {
    |                          `- error: cannot find type 'in6_addr' in scope
101 |         self.address = address
102 |     }
/host/spi-builder-workspace/Sources/DNS/Types.swift:55:1: warning: extension declares a conformance of imported type 'UInt16' to imported protocol 'CustomDebugStringConvertible'; this will not behave correctly if the owners of 'Swift' introduce this conformance in the future
 53 | }
 54 |
 55 | extension ResourceRecordType: CustomDebugStringConvertible {
    | |- warning: extension declares a conformance of imported type 'UInt16' to imported protocol 'CustomDebugStringConvertible'; this will not behave correctly if the owners of 'Swift' introduce this conformance in the future
    | `- note: add '@retroactive' to silence this warning
 56 |     public var debugDescription: String {
 57 |         switch self {
/host/spi-builder-workspace/Sources/DNS/Types.swift:182:27: warning: generic parameter 'IPType' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
158 | }
159 |
160 | public struct HostRecord<IPType: IP> {
    |                          `- note: 'IPType' previously declared here
161 |     public var name: String
162 |     public var unique: Bool
    :
180 |     }
181 |
182 |     public static func ==<IPType> (lhs: HostRecord<IPType>, rhs: HostRecord<IPType>) -> Bool {
    |                           `- warning: generic parameter 'IPType' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
183 |         return lhs.name == rhs.name
184 |         // TODO: check equality of IP addresses
[8/9] Compiling DNS IP.swift
/host/spi-builder-workspace/Sources/DNS/IP.swift:31:25: error: cannot find type 'in_addr' in scope
 29 | public struct IPv4: IP {
 30 |     /// IPv4 address in network-byte-order
 31 |     public let address: in_addr
    |                         `- error: cannot find type 'in_addr' in scope
 32 |
 33 |     public init(address: in_addr) {
/host/spi-builder-workspace/Sources/DNS/IP.swift:33:26: error: cannot find type 'in_addr' in scope
 31 |     public let address: in_addr
 32 |
 33 |     public init(address: in_addr) {
    |                          `- error: cannot find type 'in_addr' in scope
 34 |         self.address = address
 35 |     }
/host/spi-builder-workspace/Sources/DNS/IP.swift:98:25: error: cannot find type 'in6_addr' in scope
 96 |
 97 | public struct IPv6: IP {
 98 |     public let address: in6_addr
    |                         `- error: cannot find type 'in6_addr' in scope
 99 |
100 |     public init(address: in6_addr) {
/host/spi-builder-workspace/Sources/DNS/IP.swift:100:26: error: cannot find type 'in6_addr' in scope
 98 |     public let address: in6_addr
 99 |
100 |     public init(address: in6_addr) {
    |                          `- error: cannot find type 'in6_addr' in scope
101 |         self.address = address
102 |     }
/host/spi-builder-workspace/Sources/DNS/IP.swift:38:23: error: cannot find 'in_addr' in scope
 36 |
 37 |     public init?(_ presentation: String) {
 38 |         var address = in_addr()
    |                       `- error: cannot find 'in_addr' in scope
 39 |         guard inet_pton(AF_INET, presentation, &address) == 1 else {
 40 |             return nil
/host/spi-builder-workspace/Sources/DNS/IP.swift:39:15: error: cannot find 'inet_pton' in scope
 37 |     public init?(_ presentation: String) {
 38 |         var address = in_addr()
 39 |         guard inet_pton(AF_INET, presentation, &address) == 1 else {
    |               `- error: cannot find 'inet_pton' in scope
 40 |             return nil
 41 |         }
/host/spi-builder-workspace/Sources/DNS/IP.swift:39:25: error: cannot find 'AF_INET' in scope
 37 |     public init?(_ presentation: String) {
 38 |         var address = in_addr()
 39 |         guard inet_pton(AF_INET, presentation, &address) == 1 else {
    |                         `- error: cannot find 'AF_INET' in scope
 40 |             return nil
 41 |         }
/host/spi-builder-workspace/Sources/DNS/IP.swift:50:24: error: cannot find 'in_addr' in scope
 48 |             return nil
 49 |         }
 50 |         self.address = in_addr(s_addr: UInt32(bytes: bytes.reversed()))
    |                        `- error: cannot find 'in_addr' in scope
 51 |     }
 52 |
/host/spi-builder-workspace/Sources/DNS/IP.swift:55:24: error: cannot find 'in_addr' in scope
 53 |     /// host order
 54 |     public init(_ address: UInt32) {
 55 |         self.address = in_addr(s_addr: htonl(address))
    |                        `- error: cannot find 'in_addr' in scope
 56 |     }
 57 |
/host/spi-builder-workspace/Sources/DNS/IP.swift:60:26: error: cannot find 'INET_ADDRSTRLEN' in scope
 58 |     /// Format this IPv4 address using common `a.b.c.d` notation.
 59 |     public var presentationString: String? {
 60 |         let length = Int(INET_ADDRSTRLEN)
    |                          `- error: cannot find 'INET_ADDRSTRLEN' in scope
 61 |         var presentationBytes = [CChar](repeating: 0, count: length)
 62 |         var addr = self.address
/host/spi-builder-workspace/Sources/DNS/IP.swift:63:15: error: cannot find 'inet_ntop' in scope
 61 |         var presentationBytes = [CChar](repeating: 0, count: length)
 62 |         var addr = self.address
 63 |         guard inet_ntop(AF_INET, &addr, &presentationBytes, socklen_t(length)) != nil else {
    |               `- error: cannot find 'inet_ntop' in scope
 64 |             return nil
 65 |         }
/host/spi-builder-workspace/Sources/DNS/IP.swift:63:25: error: cannot find 'AF_INET' in scope
 61 |         var presentationBytes = [CChar](repeating: 0, count: length)
 62 |         var addr = self.address
 63 |         guard inet_ntop(AF_INET, &addr, &presentationBytes, socklen_t(length)) != nil else {
    |                         `- error: cannot find 'AF_INET' in scope
 64 |             return nil
 65 |         }
/host/spi-builder-workspace/Sources/DNS/IP.swift:105:23: error: cannot find 'in6_addr' in scope
103 |
104 |     public init?(_ presentation: String) {
105 |         var address = in6_addr()
    |                       `- error: cannot find 'in6_addr' in scope
106 |         guard inet_pton(AF_INET6, presentation, &address) == 1 else {
107 |             return nil
/host/spi-builder-workspace/Sources/DNS/IP.swift:106:15: error: cannot find 'inet_pton' in scope
104 |     public init?(_ presentation: String) {
105 |         var address = in6_addr()
106 |         guard inet_pton(AF_INET6, presentation, &address) == 1 else {
    |               `- error: cannot find 'inet_pton' in scope
107 |             return nil
108 |         }
/host/spi-builder-workspace/Sources/DNS/IP.swift:106:25: error: cannot find 'AF_INET6' in scope
104 |     public init?(_ presentation: String) {
105 |         var address = in6_addr()
106 |         guard inet_pton(AF_INET6, presentation, &address) == 1 else {
    |                         `- error: cannot find 'AF_INET6' in scope
107 |             return nil
108 |         }
/host/spi-builder-workspace/Sources/DNS/IP.swift:113:43: error: cannot find type 'in6_addr' in scope
111 |
112 |     public init?(networkBytes bytes: Data) {
113 |         guard bytes.count == MemoryLayout<in6_addr>.size else {
    |                                           `- error: cannot find type 'in6_addr' in scope
114 |             return nil
115 |         }
/host/spi-builder-workspace/Sources/DNS/IP.swift:121:59: error: cannot find 'in6_addr' in scope
119 |             // Convert UnsafeBufferPointer<UInt8> to UnsafePointer<UInt8>
120 |             if let bytesPointer = bufferPointer.baseAddress?.withMemoryRebound(to: UInt8.self, capacity: bytes.count, { return $0 }) {
121 |                 return bytesPointer.withMemoryRebound(to: in6_addr.self, capacity: 1) { $0.pointee }
    |                                                           `- error: cannot find 'in6_addr' in scope
122 |             }
123 |             return in6_addr()
/host/spi-builder-workspace/Sources/DNS/IP.swift:123:20: error: cannot find 'in6_addr' in scope
121 |                 return bytesPointer.withMemoryRebound(to: in6_addr.self, capacity: 1) { $0.pointee }
122 |             }
123 |             return in6_addr()
    |                    `- error: cannot find 'in6_addr' in scope
124 |         })
125 |     }
/host/spi-builder-workspace/Sources/DNS/IP.swift:116:89: error: cannot find type 'in6_addr' in scope
114 |             return nil
115 |         }
116 |         address = bytes.withUnsafeBytes({ (rawBufferPointer: UnsafeRawBufferPointer) -> in6_addr in
    |                                                                                         `- error: cannot find type 'in6_addr' in scope
117 |             // Convert UnsafeRawBufferPointer to UnsafeBufferPointer<UInt8>
118 |             let bufferPointer = rawBufferPointer.bindMemory(to: UInt8.self)
/host/spi-builder-workspace/Sources/DNS/IP.swift:129:26: error: cannot find 'INET6_ADDRSTRLEN' in scope
127 |     /// Format this IPv6 address using common `a:b:c:d:e:f:g:h` notation.
128 |     public var presentationString: String? {
129 |         let length = Int(INET6_ADDRSTRLEN)
    |                          `- error: cannot find 'INET6_ADDRSTRLEN' in scope
130 |         var presentationBytes = [CChar](repeating: 0, count: length)
131 |         var addr = self.address
/host/spi-builder-workspace/Sources/DNS/IP.swift:132:15: error: cannot find 'inet_ntop' in scope
130 |         var presentationBytes = [CChar](repeating: 0, count: length)
131 |         var addr = self.address
132 |         guard inet_ntop(AF_INET6, &addr, &presentationBytes, socklen_t(length)) != nil else {
    |               `- error: cannot find 'inet_ntop' in scope
133 |             return nil
134 |         }
/host/spi-builder-workspace/Sources/DNS/IP.swift:132:25: error: cannot find 'AF_INET6' in scope
130 |         var presentationBytes = [CChar](repeating: 0, count: length)
131 |         var addr = self.address
132 |         guard inet_ntop(AF_INET6, &addr, &presentationBytes, socklen_t(length)) != nil else {
    |                         `- error: cannot find 'AF_INET6' in scope
133 |             return nil
134 |         }
[9/9] Compiling DNS Bytes.swift
/host/spi-builder-workspace/Sources/DNS/IP.swift:31:25: error: cannot find type 'in_addr' in scope
 29 | public struct IPv4: IP {
 30 |     /// IPv4 address in network-byte-order
 31 |     public let address: in_addr
    |                         `- error: cannot find type 'in_addr' in scope
 32 |
 33 |     public init(address: in_addr) {
/host/spi-builder-workspace/Sources/DNS/IP.swift:98:25: error: cannot find type 'in6_addr' in scope
 96 |
 97 | public struct IPv6: IP {
 98 |     public let address: in6_addr
    |                         `- error: cannot find type 'in6_addr' in scope
 99 |
100 |     public init(address: in6_addr) {
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-3":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:android-6.1-latest swift build --swift-sdk aarch64-unknown-linux-android24 2>&1
android-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:9f3c606dcd2a4f06d17ba472aa533c43685ba7ba19a5c9bc23518a066eb7f86a
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:android-6.1-latest
[0/1] Planning build
Building for debugging...
[0/1] Write swift-version-24593BA9C3E375BF.txt
[2/8] Compiling DNS Integer+Data.swift
[3/8] Compiling DNS IP.swift
/host/spi-builder-workspace/Sources/DNS/IP.swift:31:25: error: cannot find type 'in_addr' in scope
 29 | public struct IPv4: IP {
 30 |     /// IPv4 address in network-byte-order
 31 |     public let address: in_addr
    |                         `- error: cannot find type 'in_addr' in scope
 32 |
 33 |     public init(address: in_addr) {
/host/spi-builder-workspace/Sources/DNS/IP.swift:33:26: error: cannot find type 'in_addr' in scope
 31 |     public let address: in_addr
 32 |
 33 |     public init(address: in_addr) {
    |                          `- error: cannot find type 'in_addr' in scope
 34 |         self.address = address
 35 |     }
/host/spi-builder-workspace/Sources/DNS/IP.swift:98:25: error: cannot find type 'in6_addr' in scope
 96 |
 97 | public struct IPv6: IP {
 98 |     public let address: in6_addr
    |                         `- error: cannot find type 'in6_addr' in scope
 99 |
100 |     public init(address: in6_addr) {
/host/spi-builder-workspace/Sources/DNS/IP.swift:100:26: error: cannot find type 'in6_addr' in scope
 98 |     public let address: in6_addr
 99 |
100 |     public init(address: in6_addr) {
    |                          `- error: cannot find type 'in6_addr' in scope
101 |         self.address = address
102 |     }
/host/spi-builder-workspace/Sources/DNS/IP.swift:38:23: error: cannot find 'in_addr' in scope
 36 |
 37 |     public init?(_ presentation: String) {
 38 |         var address = in_addr()
    |                       `- error: cannot find 'in_addr' in scope
 39 |         guard inet_pton(AF_INET, presentation, &address) == 1 else {
 40 |             return nil
/host/spi-builder-workspace/Sources/DNS/IP.swift:39:15: error: cannot find 'inet_pton' in scope
 37 |     public init?(_ presentation: String) {
 38 |         var address = in_addr()
 39 |         guard inet_pton(AF_INET, presentation, &address) == 1 else {
    |               `- error: cannot find 'inet_pton' in scope
 40 |             return nil
 41 |         }
/host/spi-builder-workspace/Sources/DNS/IP.swift:39:25: error: cannot find 'AF_INET' in scope
 37 |     public init?(_ presentation: String) {
 38 |         var address = in_addr()
 39 |         guard inet_pton(AF_INET, presentation, &address) == 1 else {
    |                         `- error: cannot find 'AF_INET' in scope
 40 |             return nil
 41 |         }
/host/spi-builder-workspace/Sources/DNS/IP.swift:50:24: error: cannot find 'in_addr' in scope
 48 |             return nil
 49 |         }
 50 |         self.address = in_addr(s_addr: UInt32(bytes: bytes.reversed()))
    |                        `- error: cannot find 'in_addr' in scope
 51 |     }
 52 |
/host/spi-builder-workspace/Sources/DNS/IP.swift:55:24: error: cannot find 'in_addr' in scope
 53 |     /// host order
 54 |     public init(_ address: UInt32) {
 55 |         self.address = in_addr(s_addr: htonl(address))
    |                        `- error: cannot find 'in_addr' in scope
 56 |     }
 57 |
/host/spi-builder-workspace/Sources/DNS/IP.swift:60:26: error: cannot find 'INET_ADDRSTRLEN' in scope
 58 |     /// Format this IPv4 address using common `a.b.c.d` notation.
 59 |     public var presentationString: String? {
 60 |         let length = Int(INET_ADDRSTRLEN)
    |                          `- error: cannot find 'INET_ADDRSTRLEN' in scope
 61 |         var presentationBytes = [CChar](repeating: 0, count: length)
 62 |         var addr = self.address
/host/spi-builder-workspace/Sources/DNS/IP.swift:63:15: error: cannot find 'inet_ntop' in scope
 61 |         var presentationBytes = [CChar](repeating: 0, count: length)
 62 |         var addr = self.address
 63 |         guard inet_ntop(AF_INET, &addr, &presentationBytes, socklen_t(length)) != nil else {
    |               `- error: cannot find 'inet_ntop' in scope
 64 |             return nil
 65 |         }
/host/spi-builder-workspace/Sources/DNS/IP.swift:63:25: error: cannot find 'AF_INET' in scope
 61 |         var presentationBytes = [CChar](repeating: 0, count: length)
 62 |         var addr = self.address
 63 |         guard inet_ntop(AF_INET, &addr, &presentationBytes, socklen_t(length)) != nil else {
    |                         `- error: cannot find 'AF_INET' in scope
 64 |             return nil
 65 |         }
/host/spi-builder-workspace/Sources/DNS/IP.swift:105:23: error: cannot find 'in6_addr' in scope
103 |
104 |     public init?(_ presentation: String) {
105 |         var address = in6_addr()
    |                       `- error: cannot find 'in6_addr' in scope
106 |         guard inet_pton(AF_INET6, presentation, &address) == 1 else {
107 |             return nil
/host/spi-builder-workspace/Sources/DNS/IP.swift:106:15: error: cannot find 'inet_pton' in scope
104 |     public init?(_ presentation: String) {
105 |         var address = in6_addr()
106 |         guard inet_pton(AF_INET6, presentation, &address) == 1 else {
    |               `- error: cannot find 'inet_pton' in scope
107 |             return nil
108 |         }
/host/spi-builder-workspace/Sources/DNS/IP.swift:106:25: error: cannot find 'AF_INET6' in scope
104 |     public init?(_ presentation: String) {
105 |         var address = in6_addr()
106 |         guard inet_pton(AF_INET6, presentation, &address) == 1 else {
    |                         `- error: cannot find 'AF_INET6' in scope
107 |             return nil
108 |         }
/host/spi-builder-workspace/Sources/DNS/IP.swift:113:43: error: cannot find type 'in6_addr' in scope
111 |
112 |     public init?(networkBytes bytes: Data) {
113 |         guard bytes.count == MemoryLayout<in6_addr>.size else {
    |                                           `- error: cannot find type 'in6_addr' in scope
114 |             return nil
115 |         }
/host/spi-builder-workspace/Sources/DNS/IP.swift:121:59: error: cannot find 'in6_addr' in scope
119 |             // Convert UnsafeBufferPointer<UInt8> to UnsafePointer<UInt8>
120 |             if let bytesPointer = bufferPointer.baseAddress?.withMemoryRebound(to: UInt8.self, capacity: bytes.count, { return $0 }) {
121 |                 return bytesPointer.withMemoryRebound(to: in6_addr.self, capacity: 1) { $0.pointee }
    |                                                           `- error: cannot find 'in6_addr' in scope
122 |             }
123 |             return in6_addr()
/host/spi-builder-workspace/Sources/DNS/IP.swift:123:20: error: cannot find 'in6_addr' in scope
121 |                 return bytesPointer.withMemoryRebound(to: in6_addr.self, capacity: 1) { $0.pointee }
122 |             }
123 |             return in6_addr()
    |                    `- error: cannot find 'in6_addr' in scope
124 |         })
125 |     }
/host/spi-builder-workspace/Sources/DNS/IP.swift:116:89: error: cannot find type 'in6_addr' in scope
114 |             return nil
115 |         }
116 |         address = bytes.withUnsafeBytes({ (rawBufferPointer: UnsafeRawBufferPointer) -> in6_addr in
    |                                                                                         `- error: cannot find type 'in6_addr' in scope
117 |             // Convert UnsafeRawBufferPointer to UnsafeBufferPointer<UInt8>
118 |             let bufferPointer = rawBufferPointer.bindMemory(to: UInt8.self)
/host/spi-builder-workspace/Sources/DNS/IP.swift:129:26: error: cannot find 'INET6_ADDRSTRLEN' in scope
127 |     /// Format this IPv6 address using common `a:b:c:d:e:f:g:h` notation.
128 |     public var presentationString: String? {
129 |         let length = Int(INET6_ADDRSTRLEN)
    |                          `- error: cannot find 'INET6_ADDRSTRLEN' in scope
130 |         var presentationBytes = [CChar](repeating: 0, count: length)
131 |         var addr = self.address
/host/spi-builder-workspace/Sources/DNS/IP.swift:132:15: error: cannot find 'inet_ntop' in scope
130 |         var presentationBytes = [CChar](repeating: 0, count: length)
131 |         var addr = self.address
132 |         guard inet_ntop(AF_INET6, &addr, &presentationBytes, socklen_t(length)) != nil else {
    |               `- error: cannot find 'inet_ntop' in scope
133 |             return nil
134 |         }
/host/spi-builder-workspace/Sources/DNS/IP.swift:132:25: error: cannot find 'AF_INET6' in scope
130 |         var presentationBytes = [CChar](repeating: 0, count: length)
131 |         var addr = self.address
132 |         guard inet_ntop(AF_INET6, &addr, &presentationBytes, socklen_t(length)) != nil else {
    |                         `- error: cannot find 'AF_INET6' in scope
133 |             return nil
134 |         }
[4/8] Compiling DNS Message.swift
[5/8] Compiling DNS Types.swift
/host/spi-builder-workspace/Sources/DNS/Types.swift:55:1: warning: extension declares a conformance of imported type 'UInt16' to imported protocol 'CustomDebugStringConvertible'; this will not behave correctly if the owners of 'Swift' introduce this conformance in the future
 53 | }
 54 |
 55 | extension ResourceRecordType: CustomDebugStringConvertible {
    | |- warning: extension declares a conformance of imported type 'UInt16' to imported protocol 'CustomDebugStringConvertible'; this will not behave correctly if the owners of 'Swift' introduce this conformance in the future
    | `- note: add '@retroactive' to silence this warning
 56 |     public var debugDescription: String {
 57 |         switch self {
/host/spi-builder-workspace/Sources/DNS/Types.swift:182:27: warning: generic parameter 'IPType' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
158 | }
159 |
160 | public struct HostRecord<IPType: IP> {
    |                          `- note: 'IPType' previously declared here
161 |     public var name: String
162 |     public var unique: Bool
    :
180 |     }
181 |
182 |     public static func ==<IPType> (lhs: HostRecord<IPType>, rhs: HostRecord<IPType>) -> Bool {
    |                           `- warning: generic parameter 'IPType' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
183 |         return lhs.name == rhs.name
184 |         // TODO: check equality of IP addresses
error: emit-module command failed with exit code 1 (use -v to see invocation)
[6/8] Compiling DNS Data+Extensions.swift
[7/8] Emitting module DNS
/host/spi-builder-workspace/Sources/DNS/IP.swift:31:25: error: cannot find type 'in_addr' in scope
 29 | public struct IPv4: IP {
 30 |     /// IPv4 address in network-byte-order
 31 |     public let address: in_addr
    |                         `- error: cannot find type 'in_addr' in scope
 32 |
 33 |     public init(address: in_addr) {
/host/spi-builder-workspace/Sources/DNS/IP.swift:33:26: error: cannot find type 'in_addr' in scope
 31 |     public let address: in_addr
 32 |
 33 |     public init(address: in_addr) {
    |                          `- error: cannot find type 'in_addr' in scope
 34 |         self.address = address
 35 |     }
/host/spi-builder-workspace/Sources/DNS/IP.swift:98:25: error: cannot find type 'in6_addr' in scope
 96 |
 97 | public struct IPv6: IP {
 98 |     public let address: in6_addr
    |                         `- error: cannot find type 'in6_addr' in scope
 99 |
100 |     public init(address: in6_addr) {
/host/spi-builder-workspace/Sources/DNS/IP.swift:100:26: error: cannot find type 'in6_addr' in scope
 98 |     public let address: in6_addr
 99 |
100 |     public init(address: in6_addr) {
    |                          `- error: cannot find type 'in6_addr' in scope
101 |         self.address = address
102 |     }
/host/spi-builder-workspace/Sources/DNS/Types.swift:55:1: warning: extension declares a conformance of imported type 'UInt16' to imported protocol 'CustomDebugStringConvertible'; this will not behave correctly if the owners of 'Swift' introduce this conformance in the future
 53 | }
 54 |
 55 | extension ResourceRecordType: CustomDebugStringConvertible {
    | |- warning: extension declares a conformance of imported type 'UInt16' to imported protocol 'CustomDebugStringConvertible'; this will not behave correctly if the owners of 'Swift' introduce this conformance in the future
    | `- note: add '@retroactive' to silence this warning
 56 |     public var debugDescription: String {
 57 |         switch self {
/host/spi-builder-workspace/Sources/DNS/Types.swift:182:27: warning: generic parameter 'IPType' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
158 | }
159 |
160 | public struct HostRecord<IPType: IP> {
    |                          `- note: 'IPType' previously declared here
161 |     public var name: String
162 |     public var unique: Bool
    :
180 |     }
181 |
182 |     public static func ==<IPType> (lhs: HostRecord<IPType>, rhs: HostRecord<IPType>) -> Bool {
    |                           `- warning: generic parameter 'IPType' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
183 |         return lhs.name == rhs.name
184 |         // TODO: check equality of IP addresses
[8/8] Compiling DNS Bytes.swift
/host/spi-builder-workspace/Sources/DNS/IP.swift:31:25: error: cannot find type 'in_addr' in scope
 29 | public struct IPv4: IP {
 30 |     /// IPv4 address in network-byte-order
 31 |     public let address: in_addr
    |                         `- error: cannot find type 'in_addr' in scope
 32 |
 33 |     public init(address: in_addr) {
/host/spi-builder-workspace/Sources/DNS/IP.swift:98:25: error: cannot find type 'in6_addr' in scope
 96 |
 97 | public struct IPv6: IP {
 98 |     public let address: in6_addr
    |                         `- error: cannot find type 'in6_addr' in scope
 99 |
100 |     public init(address: in6_addr) {
BUILD FAILURE 6.1 android