The Swift Package Index logo.Swift Package Index

Build Information

Failed to build swift-ssrf-guard, reference main (79438f), with Swift 6.3 for Android on 22 Jul 2026 17:10:25 UTC.

Build Command

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

Build Log

========================================
RunAll
========================================
Builder version: 333316120c8b89ed7d21f1b34865290794301d91
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/ivan-magda/swift-ssrf-guard.git
Reference: main
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/ivan-magda/swift-ssrf-guard
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at 79438fe Update EgressPolicy.swift
Cloned https://github.com/ivan-magda/swift-ssrf-guard.git
Revision (git rev-parse @):
79438fe69dd8e568d93c092dcc648a60408cc660
SPI manifest file found: $PWD/.spi.yml
SUCCESS checkout https://github.com/ivan-magda/swift-ssrf-guard.git at main
========================================
Build
========================================
Selected platform:         android
Swift version:             6.3
Building package at path:  $PWD
https://github.com/ivan-magda/swift-ssrf-guard.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-54344849-3":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/saguaro1/spi-images:android-6.3-latest swift build --swift-sdk aarch64-unknown-linux-android28 2>&1
android-6.3-latest: Pulling from saguaro1/spi-images
Digest: sha256:451958f7df55f9af673f8b0851dc526f2aee3222db374ae53b89fa21ad564bc8
Status: Image is up to date for registry.gitlab.com/saguaro1/spi-images:android-6.3-latest
Fetching https://github.com/swiftlang/swift-docc-plugin
[1/2325] Fetching swift-docc-plugin
Fetched https://github.com/swiftlang/swift-docc-plugin from cache (0.44s)
Computing version for https://github.com/swiftlang/swift-docc-plugin
Computed https://github.com/swiftlang/swift-docc-plugin at 1.5.0 (1.40s)
Fetching https://github.com/swiftlang/swift-docc-symbolkit
[1/3759] Fetching swift-docc-symbolkit
Fetched https://github.com/swiftlang/swift-docc-symbolkit from cache (0.51s)
Computing version for https://github.com/swiftlang/swift-docc-symbolkit
Computed https://github.com/swiftlang/swift-docc-symbolkit at 1.0.0 (0.73s)
Creating working copy for https://github.com/swiftlang/swift-docc-plugin
Working copy of https://github.com/swiftlang/swift-docc-plugin resolved at 1.5.0
Creating working copy for https://github.com/swiftlang/swift-docc-symbolkit
Working copy of https://github.com/swiftlang/swift-docc-symbolkit resolved at 1.0.0
[1/1] Compiling plugin Swift-DocC Preview
[2/2] Compiling plugin Swift-DocC
Building for debugging...
[2/4] Write sources
[3/4] Write swift-version-272D24FF697CF451.txt
[5/12] Compiling SSRFGuard SystemAddressResolver.swift
/host/spi-builder-workspace/Sources/SSRFGuard/Resolver/SystemAddressResolver.swift:34:17: error: cannot find 'addrinfo' in scope
32 |
33 |   private static func blockingResolve(host: String) throws -> [ResolvedAddress] {
34 |     var hints = addrinfo()
   |                 `- error: cannot find 'addrinfo' in scope
35 |     #if canImport(Glibc)
36 |       // Glibc types SOCK_STREAM as the `__socket_type` enum; ai_socktype is a plain CInt.
/host/spi-builder-workspace/Sources/SSRFGuard/Resolver/SystemAddressResolver.swift:42:27: error: cannot find 'SOCK_STREAM' in scope
40 |       hints.ai_socktype = Int32(SOCK_STREAM)
41 |     #else
42 |       hints.ai_socktype = SOCK_STREAM  // Darwin already types SOCK_STREAM as Int32.
   |                           `- error: cannot find 'SOCK_STREAM' in scope
43 |     #endif
44 |
/host/spi-builder-workspace/Sources/SSRFGuard/Resolver/SystemAddressResolver.swift:45:39: error: cannot find type 'addrinfo' in scope
43 |     #endif
44 |
45 |     var results: UnsafeMutablePointer<addrinfo>?
   |                                       `- error: cannot find type 'addrinfo' in scope
46 |     let status = getaddrinfo(host, nil, &hints, &results)
47 |     defer {
/host/spi-builder-workspace/Sources/SSRFGuard/Resolver/SystemAddressResolver.swift:46:18: error: cannot find 'getaddrinfo' in scope
44 |
45 |     var results: UnsafeMutablePointer<addrinfo>?
46 |     let status = getaddrinfo(host, nil, &hints, &results)
   |                  `- error: cannot find 'getaddrinfo' in scope
47 |     defer {
48 |       if let results {
/host/spi-builder-workspace/Sources/SSRFGuard/Resolver/SystemAddressResolver.swift:46:36: error: 'nil' requires a contextual type
44 |
45 |     var results: UnsafeMutablePointer<addrinfo>?
46 |     let status = getaddrinfo(host, nil, &hints, &results)
   |                                    `- error: 'nil' requires a contextual type
47 |     defer {
48 |       if let results {
/host/spi-builder-workspace/Sources/SSRFGuard/Resolver/SystemAddressResolver.swift:49:9: error: cannot find 'freeaddrinfo' in scope
47 |     defer {
48 |       if let results {
49 |         freeaddrinfo(results)
   |         `- error: cannot find 'freeaddrinfo' in scope
50 |       }
51 |     }
/host/spi-builder-workspace/Sources/SSRFGuard/Resolver/SystemAddressResolver.swift:60:36: error: cannot find 'AF_INET' in scope
58 |
59 |     while let info = cursor {
60 |       if info.pointee.ai_family == AF_INET, let rawAddress = info.pointee.ai_addr {
   |                                    `- error: cannot find 'AF_INET' in scope
61 |         rawAddress.withMemoryRebound(to: sockaddr_in.self, capacity: 1) { pointer in
62 |           addresses.append(.ipv4(UInt32(bigEndian: pointer.pointee.sin_addr.s_addr)))
/host/spi-builder-workspace/Sources/SSRFGuard/Resolver/SystemAddressResolver.swift:61:42: error: cannot find 'sockaddr_in' in scope
59 |     while let info = cursor {
60 |       if info.pointee.ai_family == AF_INET, let rawAddress = info.pointee.ai_addr {
61 |         rawAddress.withMemoryRebound(to: sockaddr_in.self, capacity: 1) { pointer in
   |                                          `- error: cannot find 'sockaddr_in' in scope
62 |           addresses.append(.ipv4(UInt32(bigEndian: pointer.pointee.sin_addr.s_addr)))
63 |         }
/host/spi-builder-workspace/Sources/SSRFGuard/Resolver/SystemAddressResolver.swift:64:43: error: cannot find 'AF_INET6' in scope
62 |           addresses.append(.ipv4(UInt32(bigEndian: pointer.pointee.sin_addr.s_addr)))
63 |         }
64 |       } else if info.pointee.ai_family == AF_INET6, let rawAddress = info.pointee.ai_addr {
   |                                           `- error: cannot find 'AF_INET6' in scope
65 |         rawAddress.withMemoryRebound(to: sockaddr_in6.self, capacity: 1) { pointer in
66 |           var v6Address = pointer.pointee.sin6_addr
/host/spi-builder-workspace/Sources/SSRFGuard/Resolver/SystemAddressResolver.swift:65:42: error: cannot find 'sockaddr_in6' in scope
63 |         }
64 |       } else if info.pointee.ai_family == AF_INET6, let rawAddress = info.pointee.ai_addr {
65 |         rawAddress.withMemoryRebound(to: sockaddr_in6.self, capacity: 1) { pointer in
   |                                          `- error: cannot find 'sockaddr_in6' in scope
66 |           var v6Address = pointer.pointee.sin6_addr
67 |           let bytes = withUnsafeBytes(of: &v6Address) { raw in Array(raw) }
[6/12] Compiling SSRFGuard AddressResolving.swift
[7/12] Compiling SSRFGuard Classification.swift
[8/12] Compiling SSRFGuard EgressPolicy.swift
[9/12] Compiling SSRFGuard EgressClassifier.swift
[10/12] Compiling SSRFGuard CIDR.swift
[11/12] Emitting module SSRFGuard
[12/12] Compiling SSRFGuard ResolvedAddress.swift
/host/spi-builder-workspace/Sources/SSRFGuard/Address/ResolvedAddress.swift:19:21: error: cannot find 'in_addr' in scope
17 |   /// Parses a textual IPv4/IPv6 literal via `inet_pton`; nil for anything else.
18 |   public static func parse(_ text: String) -> ResolvedAddress? {
19 |     var v4Address = in_addr()
   |                     `- error: cannot find 'in_addr' in scope
20 |     if inet_pton(AF_INET, text, &v4Address) == 1 {
21 |       return .ipv4(UInt32(bigEndian: v4Address.s_addr))
/host/spi-builder-workspace/Sources/SSRFGuard/Address/ResolvedAddress.swift:20:8: error: cannot find 'inet_pton' in scope
18 |   public static func parse(_ text: String) -> ResolvedAddress? {
19 |     var v4Address = in_addr()
20 |     if inet_pton(AF_INET, text, &v4Address) == 1 {
   |        `- error: cannot find 'inet_pton' in scope
21 |       return .ipv4(UInt32(bigEndian: v4Address.s_addr))
22 |     }
/host/spi-builder-workspace/Sources/SSRFGuard/Address/ResolvedAddress.swift:20:18: error: cannot find 'AF_INET' in scope
18 |   public static func parse(_ text: String) -> ResolvedAddress? {
19 |     var v4Address = in_addr()
20 |     if inet_pton(AF_INET, text, &v4Address) == 1 {
   |                  `- error: cannot find 'AF_INET' in scope
21 |       return .ipv4(UInt32(bigEndian: v4Address.s_addr))
22 |     }
/host/spi-builder-workspace/Sources/SSRFGuard/Address/ResolvedAddress.swift:24:21: error: cannot find 'in6_addr' in scope
22 |     }
23 |
24 |     var v6Address = in6_addr()
   |                     `- error: cannot find 'in6_addr' in scope
25 |     if inet_pton(AF_INET6, text, &v6Address) == 1 {
26 |       let bytes = withUnsafeBytes(of: &v6Address) { raw in Array(raw) }
/host/spi-builder-workspace/Sources/SSRFGuard/Address/ResolvedAddress.swift:25:8: error: cannot find 'inet_pton' in scope
23 |
24 |     var v6Address = in6_addr()
25 |     if inet_pton(AF_INET6, text, &v6Address) == 1 {
   |        `- error: cannot find 'inet_pton' in scope
26 |       let bytes = withUnsafeBytes(of: &v6Address) { raw in Array(raw) }
27 |       return .ipv6(bytes)
/host/spi-builder-workspace/Sources/SSRFGuard/Address/ResolvedAddress.swift:25:18: error: cannot find 'AF_INET6' in scope
23 |
24 |     var v6Address = in6_addr()
25 |     if inet_pton(AF_INET6, text, &v6Address) == 1 {
   |                  `- error: cannot find 'AF_INET6' in scope
26 |       let bytes = withUnsafeBytes(of: &v6Address) { raw in Array(raw) }
27 |       return .ipv6(bytes)
/host/spi-builder-workspace/Sources/SSRFGuard/Address/ResolvedAddress.swift:44:21: error: cannot find 'in_addr' in scope
42 |     }
43 |
44 |     var v4Address = in_addr()
   |                     `- error: cannot find 'in_addr' in scope
45 |     return host.withCString { pointer in
46 |       inet_aton(pointer, &v4Address) != 0
/host/spi-builder-workspace/Sources/SSRFGuard/Address/ResolvedAddress.swift:46:7: error: cannot find 'inet_aton' in scope
44 |     var v4Address = in_addr()
45 |     return host.withCString { pointer in
46 |       inet_aton(pointer, &v4Address) != 0
   |       `- error: cannot find 'inet_aton' in scope
47 |     }
48 |   }
/host/spi-builder-workspace/Sources/SSRFGuard/Address/ResolvedAddress.swift:57:17: error: cannot find 'in_addr' in scope
55 |     switch self {
56 |     case .ipv4(let value):
57 |       var raw = in_addr(s_addr: value.bigEndian)
   |                 `- error: cannot find 'in_addr' in scope
58 |       var buffer = [CChar](repeating: 0, count: Int(INET_ADDRSTRLEN))
59 |
/host/spi-builder-workspace/Sources/SSRFGuard/Address/ResolvedAddress.swift:58:53: error: cannot find 'INET_ADDRSTRLEN' in scope
56 |     case .ipv4(let value):
57 |       var raw = in_addr(s_addr: value.bigEndian)
58 |       var buffer = [CChar](repeating: 0, count: Int(INET_ADDRSTRLEN))
   |                                                     `- error: cannot find 'INET_ADDRSTRLEN' in scope
59 |
60 |       guard inet_ntop(AF_INET, &raw, &buffer, socklen_t(INET_ADDRSTRLEN)) != nil else {
/host/spi-builder-workspace/Sources/SSRFGuard/Address/ResolvedAddress.swift:60:13: error: cannot find 'inet_ntop' in scope
58 |       var buffer = [CChar](repeating: 0, count: Int(INET_ADDRSTRLEN))
59 |
60 |       guard inet_ntop(AF_INET, &raw, &buffer, socklen_t(INET_ADDRSTRLEN)) != nil else {
   |             `- error: cannot find 'inet_ntop' in scope
61 |         return "invalid-ipv4"
62 |       }
/host/spi-builder-workspace/Sources/SSRFGuard/Address/ResolvedAddress.swift:60:23: error: cannot find 'AF_INET' in scope
58 |       var buffer = [CChar](repeating: 0, count: Int(INET_ADDRSTRLEN))
59 |
60 |       guard inet_ntop(AF_INET, &raw, &buffer, socklen_t(INET_ADDRSTRLEN)) != nil else {
   |                       `- error: cannot find 'AF_INET' in scope
61 |         return "invalid-ipv4"
62 |       }
/host/spi-builder-workspace/Sources/SSRFGuard/Address/ResolvedAddress.swift:60:57: error: cannot find 'INET_ADDRSTRLEN' in scope
58 |       var buffer = [CChar](repeating: 0, count: Int(INET_ADDRSTRLEN))
59 |
60 |       guard inet_ntop(AF_INET, &raw, &buffer, socklen_t(INET_ADDRSTRLEN)) != nil else {
   |                                                         `- error: cannot find 'INET_ADDRSTRLEN' in scope
61 |         return "invalid-ipv4"
62 |       }
/host/spi-builder-workspace/Sources/SSRFGuard/Address/ResolvedAddress.swift:75:17: error: cannot find 'in6_addr' in scope
73 |       }
74 |
75 |       var raw = in6_addr()
   |                 `- error: cannot find 'in6_addr' in scope
76 |       withUnsafeMutableBytes(of: &raw) { destination in
77 |         destination.copyBytes(from: bytes)
/host/spi-builder-workspace/Sources/SSRFGuard/Address/ResolvedAddress.swift:80:53: error: cannot find 'INET6_ADDRSTRLEN' in scope
78 |       }
79 |
80 |       var buffer = [CChar](repeating: 0, count: Int(INET6_ADDRSTRLEN))
   |                                                     `- error: cannot find 'INET6_ADDRSTRLEN' in scope
81 |       guard inet_ntop(AF_INET6, &raw, &buffer, socklen_t(INET6_ADDRSTRLEN)) != nil else {
82 |         return "invalid-ipv6"
/host/spi-builder-workspace/Sources/SSRFGuard/Address/ResolvedAddress.swift:81:13: error: cannot find 'inet_ntop' in scope
79 |
80 |       var buffer = [CChar](repeating: 0, count: Int(INET6_ADDRSTRLEN))
81 |       guard inet_ntop(AF_INET6, &raw, &buffer, socklen_t(INET6_ADDRSTRLEN)) != nil else {
   |             `- error: cannot find 'inet_ntop' in scope
82 |         return "invalid-ipv6"
83 |       }
/host/spi-builder-workspace/Sources/SSRFGuard/Address/ResolvedAddress.swift:81:23: error: cannot find 'AF_INET6' in scope
79 |
80 |       var buffer = [CChar](repeating: 0, count: Int(INET6_ADDRSTRLEN))
81 |       guard inet_ntop(AF_INET6, &raw, &buffer, socklen_t(INET6_ADDRSTRLEN)) != nil else {
   |                       `- error: cannot find 'AF_INET6' in scope
82 |         return "invalid-ipv6"
83 |       }
/host/spi-builder-workspace/Sources/SSRFGuard/Address/ResolvedAddress.swift:81:58: error: cannot find 'INET6_ADDRSTRLEN' in scope
79 |
80 |       var buffer = [CChar](repeating: 0, count: Int(INET6_ADDRSTRLEN))
81 |       guard inet_ntop(AF_INET6, &raw, &buffer, socklen_t(INET6_ADDRSTRLEN)) != nil else {
   |                                                          `- error: cannot find 'INET6_ADDRSTRLEN' in scope
82 |         return "invalid-ipv6"
83 |       }
BUILD FAILURE 6.3 android