The Swift Package Index logo.Swift Package Index

Build Information

Failed to build DNS, reference 1.2.0 (78bbd1), with Swift 6.3 for Android on 10 Apr 2026 12:12:18 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4606859-0":/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: 1.2.0
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
 * tag               1.2.0      -> FETCH_HEAD
HEAD is now at 78bbd15 Version 1.2.0
Cloned https://github.com/bouke/dns.git
Revision (git rev-parse @):
78bbd1589890a90b202d11d5f9e1297050cf0eb2
SUCCESS checkout https://github.com/bouke/dns.git at 1.2.0
========================================
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-0":/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
[3/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:101:25: error: cannot find type 'in6_addr' in scope
 99 |
100 | public struct IPv6: IP {
101 |     public let address: in6_addr
    |                         `- error: cannot find type 'in6_addr' in scope
102 |
103 |     public init(address: in6_addr) {
error: emit-module command failed with exit code 1 (use -v to see invocation)
[4/9] Compiling DNS Data+Extensions.swift
[5/9] Compiling DNS Integer+Data.swift
[6/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:101:25: error: cannot find type 'in6_addr' in scope
 99 |
100 | public struct IPv6: IP {
101 |     public let address: in6_addr
    |                         `- error: cannot find type 'in6_addr' in scope
102 |
103 |     public init(address: in6_addr) {
/host/spi-builder-workspace/Sources/DNS/IP.swift:103:26: error: cannot find type 'in6_addr' in scope
101 |     public let address: in6_addr
102 |
103 |     public init(address: in6_addr) {
    |                          `- error: cannot find type 'in6_addr' in scope
104 |         self.address = address
105 |     }
/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
[7/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:101:25: error: cannot find type 'in6_addr' in scope
 99 |
100 | public struct IPv6: IP {
101 |     public let address: in6_addr
    |                         `- error: cannot find type 'in6_addr' in scope
102 |
103 |     public init(address: in6_addr) {
/host/spi-builder-workspace/Sources/DNS/IP.swift:103:26: error: cannot find type 'in6_addr' in scope
101 |     public let address: in6_addr
102 |
103 |     public init(address: in6_addr) {
    |                          `- error: cannot find type 'in6_addr' in scope
104 |         self.address = address
105 |     }
/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:38: error: cannot find 'INET_ADDRSTRLEN' in scope
 58 |     /// Format this IPv4 address using common `a.b.c.d` notation.
 59 |     public var presentation: String {
 60 |         var output = Data(count: Int(INET_ADDRSTRLEN))
    |                                      `- error: cannot find 'INET_ADDRSTRLEN' in scope
 61 |         var address = self.address
 62 |         guard let presentationBytes = output.withUnsafeMutableBytes({ (rawBufferPointer: UnsafeMutableRawBufferPointer) -> UnsafePointer<CChar>? in
/host/spi-builder-workspace/Sources/DNS/IP.swift:66:113: error: cannot find 'INET_ADDRSTRLEN' in scope
 64 |             let charBufferPointer = rawBufferPointer.bindMemory(to: CChar.self)
 65 |             // Convert UnsafeMutableBufferPointer<CChar> to UnsafeMutablePointer<CChar>
 66 |             if let charPointer = charBufferPointer.baseAddress?.withMemoryRebound(to: CChar.self, capacity: Int(INET_ADDRSTRLEN), { return $0 }) {
    |                                                                                                                 `- error: cannot find 'INET_ADDRSTRLEN' in scope
 67 |                 return inet_ntop(AF_INET, &address, charPointer, socklen_t(INET_ADDRSTRLEN))
 68 |             }
/host/spi-builder-workspace/Sources/DNS/IP.swift:67:24: error: cannot find 'inet_ntop' in scope
 65 |             // Convert UnsafeMutableBufferPointer<CChar> to UnsafeMutablePointer<CChar>
 66 |             if let charPointer = charBufferPointer.baseAddress?.withMemoryRebound(to: CChar.self, capacity: Int(INET_ADDRSTRLEN), { return $0 }) {
 67 |                 return inet_ntop(AF_INET, &address, charPointer, socklen_t(INET_ADDRSTRLEN))
    |                        `- error: cannot find 'inet_ntop' in scope
 68 |             }
 69 |             return nil
/host/spi-builder-workspace/Sources/DNS/IP.swift:67:34: error: cannot find 'AF_INET' in scope
 65 |             // Convert UnsafeMutableBufferPointer<CChar> to UnsafeMutablePointer<CChar>
 66 |             if let charPointer = charBufferPointer.baseAddress?.withMemoryRebound(to: CChar.self, capacity: Int(INET_ADDRSTRLEN), { return $0 }) {
 67 |                 return inet_ntop(AF_INET, &address, charPointer, socklen_t(INET_ADDRSTRLEN))
    |                                  `- error: cannot find 'AF_INET' in scope
 68 |             }
 69 |             return nil
/host/spi-builder-workspace/Sources/DNS/IP.swift:67:76: error: cannot find 'INET_ADDRSTRLEN' in scope
 65 |             // Convert UnsafeMutableBufferPointer<CChar> to UnsafeMutablePointer<CChar>
 66 |             if let charPointer = charBufferPointer.baseAddress?.withMemoryRebound(to: CChar.self, capacity: Int(INET_ADDRSTRLEN), { return $0 }) {
 67 |                 return inet_ntop(AF_INET, &address, charPointer, socklen_t(INET_ADDRSTRLEN))
    |                                                                            `- error: cannot find 'INET_ADDRSTRLEN' in scope
 68 |             }
 69 |             return nil
/host/spi-builder-workspace/Sources/DNS/IP.swift:108:23: error: cannot find 'in6_addr' in scope
106 |
107 |     public init?(_ presentation: String) {
108 |         var address = in6_addr()
    |                       `- error: cannot find 'in6_addr' in scope
109 |         guard inet_pton(AF_INET6, presentation, &address) == 1 else {
110 |             return nil
/host/spi-builder-workspace/Sources/DNS/IP.swift:109:15: error: cannot find 'inet_pton' in scope
107 |     public init?(_ presentation: String) {
108 |         var address = in6_addr()
109 |         guard inet_pton(AF_INET6, presentation, &address) == 1 else {
    |               `- error: cannot find 'inet_pton' in scope
110 |             return nil
111 |         }
/host/spi-builder-workspace/Sources/DNS/IP.swift:109:25: error: cannot find 'AF_INET6' in scope
107 |     public init?(_ presentation: String) {
108 |         var address = in6_addr()
109 |         guard inet_pton(AF_INET6, presentation, &address) == 1 else {
    |                         `- error: cannot find 'AF_INET6' in scope
110 |             return nil
111 |         }
/host/spi-builder-workspace/Sources/DNS/IP.swift:116:43: error: cannot find type 'in6_addr' in scope
114 |
115 |     public init?(networkBytes bytes: Data) {
116 |         guard bytes.count == MemoryLayout<in6_addr>.size else {
    |                                           `- error: cannot find type 'in6_addr' in scope
117 |             return nil
118 |         }
/host/spi-builder-workspace/Sources/DNS/IP.swift:124:59: error: cannot find 'in6_addr' in scope
122 |             // Convert UnsafeBufferPointer<UInt8> to UnsafePointer<UInt8>
123 |             if let bytesPointer = bufferPointer.baseAddress?.withMemoryRebound(to: UInt8.self, capacity: bytes.count, { return $0 }) {
124 |                 return bytesPointer.withMemoryRebound(to: in6_addr.self, capacity: 1) { $0.pointee }
    |                                                           `- error: cannot find 'in6_addr' in scope
125 |             }
126 |             return in6_addr()
/host/spi-builder-workspace/Sources/DNS/IP.swift:126:20: error: cannot find 'in6_addr' in scope
124 |                 return bytesPointer.withMemoryRebound(to: in6_addr.self, capacity: 1) { $0.pointee }
125 |             }
126 |             return in6_addr()
    |                    `- error: cannot find 'in6_addr' in scope
127 |         })
128 |     }
/host/spi-builder-workspace/Sources/DNS/IP.swift:119:89: error: cannot find type 'in6_addr' in scope
117 |             return nil
118 |         }
119 |         address = bytes.withUnsafeBytes({ (rawBufferPointer: UnsafeRawBufferPointer) -> in6_addr in
    |                                                                                         `- error: cannot find type 'in6_addr' in scope
120 |             // Convert UnsafeRawBufferPointer to UnsafeBufferPointer<UInt8>
121 |             let bufferPointer = rawBufferPointer.bindMemory(to: UInt8.self)
/host/spi-builder-workspace/Sources/DNS/IP.swift:132:38: error: cannot find 'INET6_ADDRSTRLEN' in scope
130 |     /// Format this IPv6 address using common `a:b:c:d:e:f:g:h` notation.
131 |     public var presentation: String {
132 |         var output = Data(count: Int(INET6_ADDRSTRLEN))
    |                                      `- error: cannot find 'INET6_ADDRSTRLEN' in scope
133 |         var address = self.address
134 |         guard let presentationBytes = output.withUnsafeMutableBytes({ (rawBufferPointer: UnsafeMutableRawBufferPointer) -> UnsafePointer<CChar>? in
/host/spi-builder-workspace/Sources/DNS/IP.swift:138:113: error: cannot find 'INET6_ADDRSTRLEN' in scope
136 |             let charBufferPointer = rawBufferPointer.bindMemory(to: CChar.self)
137 |             // Convert UnsafeMutableBufferPointer<CChar> to UnsafeMutablePointer<CChar>
138 |             if let charPointer = charBufferPointer.baseAddress?.withMemoryRebound(to: CChar.self, capacity: Int(INET6_ADDRSTRLEN), { return $0 }) {
    |                                                                                                                 `- error: cannot find 'INET6_ADDRSTRLEN' in scope
139 |                 return inet_ntop(AF_INET6, &address, charPointer, socklen_t(INET6_ADDRSTRLEN))
140 |             }
/host/spi-builder-workspace/Sources/DNS/IP.swift:139:24: error: cannot find 'inet_ntop' in scope
137 |             // Convert UnsafeMutableBufferPointer<CChar> to UnsafeMutablePointer<CChar>
138 |             if let charPointer = charBufferPointer.baseAddress?.withMemoryRebound(to: CChar.self, capacity: Int(INET6_ADDRSTRLEN), { return $0 }) {
139 |                 return inet_ntop(AF_INET6, &address, charPointer, socklen_t(INET6_ADDRSTRLEN))
    |                        `- error: cannot find 'inet_ntop' in scope
140 |             }
141 |             return nil
/host/spi-builder-workspace/Sources/DNS/IP.swift:139:34: error: cannot find 'AF_INET6' in scope
137 |             // Convert UnsafeMutableBufferPointer<CChar> to UnsafeMutablePointer<CChar>
138 |             if let charPointer = charBufferPointer.baseAddress?.withMemoryRebound(to: CChar.self, capacity: Int(INET6_ADDRSTRLEN), { return $0 }) {
139 |                 return inet_ntop(AF_INET6, &address, charPointer, socklen_t(INET6_ADDRSTRLEN))
    |                                  `- error: cannot find 'AF_INET6' in scope
140 |             }
141 |             return nil
/host/spi-builder-workspace/Sources/DNS/IP.swift:139:77: error: cannot find 'INET6_ADDRSTRLEN' in scope
137 |             // Convert UnsafeMutableBufferPointer<CChar> to UnsafeMutablePointer<CChar>
138 |             if let charPointer = charBufferPointer.baseAddress?.withMemoryRebound(to: CChar.self, capacity: Int(INET6_ADDRSTRLEN), { return $0 }) {
139 |                 return inet_ntop(AF_INET6, &address, charPointer, socklen_t(INET6_ADDRSTRLEN))
    |                                                                             `- error: cannot find 'INET6_ADDRSTRLEN' in scope
140 |             }
141 |             return nil
[8/9] Compiling DNS Message.swift
[9/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
BUILD FAILURE 6.3 android