The Swift Package Index logo.Swift Package Index

Build Information

Failed to build DNS, reference 1.2.1 (cf8e22), with Swift 6.2 for Android on 17 Jun 2025 22:03:11 UTC.

Build Command

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

Build Log

========================================
RunAll
========================================
Builder version: 4.64.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/mcfedr/DNS.git
Reference: 1.2.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/mcfedr/DNS
 * tag               1.2.1      -> FETCH_HEAD
HEAD is now at cf8e222 Bump the version
Cloned https://github.com/mcfedr/DNS.git
Revision (git rev-parse @):
cf8e2226a593a1b015013188ace1b5fb9c37690b
SUCCESS checkout https://github.com/mcfedr/DNS.git at 1.2.1
========================================
Build
========================================
Selected platform:         android
Swift version:             6.2
Building package at path:  $PWD
https://github.com/mcfedr/DNS.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-3":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:android-6.2-latest swift build --swift-sdk aarch64-unknown-linux-android28 2>&1
android-6.2-latest: Pulling from finestructure/spi-images
Digest: sha256:b7c4a6b4153ff40ef9277e2157e708f835b8eb011095d53bd8db4594eb2b7798
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:android-6.2-latest
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-8C5A4AE7A8CE2BA.txt
[3/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 |         }
error: emit-module command failed with exit code 1 (use -v to see invocation)
[4/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:52: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
 50 | }
 51 |
 52 | 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
 53 |     public var debugDescription: String {
 54 |         switch self {
/host/spi-builder-workspace/Sources/DNS/Types.swift:121: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
 97 | }
 98 |
 99 | public struct HostRecord<IPType: IP> {
    |                          `- note: 'IPType' previously declared here
100 |     public var name: String
101 |     public var unique: Bool
    :
119 |     }
120 |
121 |     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
122 |         return lhs.name == rhs.name
123 |         // TODO: check equality of IP addresses
[5/9] Compiling DNS Data+Extensions.swift
[6/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) {
[7/9] Compiling DNS Types.swift
/host/spi-builder-workspace/Sources/DNS/Types.swift:52: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
 50 | }
 51 |
 52 | 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
 53 |     public var debugDescription: String {
 54 |         switch self {
/host/spi-builder-workspace/Sources/DNS/Types.swift:121: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
 97 | }
 98 |
 99 | public struct HostRecord<IPType: IP> {
    |                          `- note: 'IPType' previously declared here
100 |     public var name: String
101 |     public var unique: Bool
    :
119 |     }
120 |
121 |     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
122 |         return lhs.name == rhs.name
123 |         // TODO: check equality of IP addresses
[8/9] Compiling DNS Message.swift
[9/9] Compiling DNS Integer+Data.swift
BUILD FAILURE 6.2 android