The Swift Package Index logo.Swift Package Index

Build Information

Failed to build DNS, reference master (d04ab5), with Swift 6.3 for Android on 10 Apr 2026 12:12:17 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4606859-3":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/swiftpackageindex/spi-images:android-6.3-latest swift build --swift-sdk aarch64-unknown-linux-android28 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.70.0
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.3
Building package at path:  $PWD
https://github.com/bouke/dns.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-3":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/swiftpackageindex/spi-images:android-6.3-latest swift build --swift-sdk aarch64-unknown-linux-android28 2>&1
android-6.3-latest: Pulling from swiftpackageindex/spi-images
Digest: sha256:9008270ea37a55e78725e6225015adb5eff8582da520c5232bf0499f32c36dc4
Status: Image is up to date for registry.gitlab.com/swiftpackageindex/spi-images:android-6.3-latest
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version--4F562202D5529B1.txt
error: emit-module command failed with exit code 1 (use -v to see invocation)
[3/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
[4/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) {
[5/9] Compiling DNS Data+Extensions.swift
[6/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 |         }
[7/9] Compiling DNS Message.swift
[8/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
[9/9] Compiling DNS Integer+Data.swift
BUILD FAILURE 6.3 android