The Swift Package Index logo.Swift Package Index

Build Information

Failed to build AudienceKit, reference main (c9c2b6), with Swift 6.2 for Android on 1 Dec 2026 21:08:15 UTC.

Build Command

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

Build Log

========================================
RunAll
========================================
Builder version: 5.2.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/lwm-luminx/audience-kit-sdk.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/lwm-luminx/audience-kit-sdk
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at c9c2b6b Node SDK 0.5.7: Browser.AudienceBrowserClient for the audience browser
Cloned https://github.com/lwm-luminx/audience-kit-sdk.git
Revision (git rev-parse @):
c9c2b6b3a5ca404d33653da9b798fc5d380a3a9e
SPI manifest file found: $PWD/.spi.yml
SUCCESS checkout https://github.com/lwm-luminx/audience-kit-sdk.git at main
========================================
Build
========================================
Selected platform:         android
Swift version:             6.2
Building package at path:  $PWD
https://github.com/lwm-luminx/audience-kit-sdk.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-53886769-0":/host -w "$PWD" -e GIT_HTTP_LOW_SPEED_LIMIT="100000" -e GIT_HTTP_LOW_SPEED_TIME="60" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/saguaro1/spi-images:android-6.2-latest swift build --swift-sdk aarch64-unknown-linux-android28 2>&1
android-6.2-latest: Pulling from saguaro1/spi-images
Digest: sha256:9e6a7d9ac971745dce73919c908572285df7f83d0de62cbdea5cbd68df176776
Status: Image is up to date for registry.gitlab.com/saguaro1/spi-images:android-6.2-latest
Building for debugging...
[0/9] Write sources
[8/9] Write swift-version--11D90AFD9DD3AB2.txt
[10/65] Compiling AudienceCore ProposedChanges.swift
[11/65] Compiling AudienceCore PublisherChooser.swift
[12/65] Compiling AudienceCore RequestPacer.swift
[13/65] Compiling AudienceCore ReviewCode.swift
[14/69] Compiling AudienceCore AppAttestAttestor.swift
[15/69] Compiling AudienceCore AppCheck.swift
[18/71] Compiling AudienceCore AppRelease.swift
[19/71] Compiling AudienceCore AppTokenSignIn.swift
[20/71] Compiling AudienceCore AudienceCable.swift
[21/71] Compiling AudienceCore FlaggedMessages.swift
[22/71] Compiling AudienceCore GoogleSignIn.swift
[23/71] Emitting module AudienceCore
[24/71] Compiling AudienceCore AudienceCards.swift
[25/71] Compiling AudienceCore AudienceKitSDK.swift
[26/71] Compiling AudienceCore AudienceSession.swift
[27/71] Compiling AudienceCore Branding.swift
[28/71] Compiling AudienceCore Configuration.swift
[29/71] Compiling AudienceCore ISO8601.swift
[30/71] Compiling AudienceCore ListingCuration.swift
[31/71] Compiling AudienceCore ListingResearch.swift
[32/71] Compiling AudienceCore PickupOrder.swift
[33/71] Compiling AudienceCore PlatformCredit.swift
[34/71] Compiling ArbiterModels WebResearch.swift
[35/71] Compiling AudienceCore Coordinate.swift
[36/71] Compiling AudienceCore Credential.swift
[37/71] Compiling AudienceCore CredentialStore.swift
[38/71] Compiling AudienceCore DeviceAttestation.swift
[39/71] Compiling AudienceCore DiscordConnect.swift
[40/71] Compiling AudienceCore Errors.swift
[43/71] Compiling ArbiterModels SponsoredContent.swift
[52/71] Emitting module ArbiterModels
[55/71] Compiling AudienceCore GraphQLEndpoint.swift
[56/71] Compiling AudienceCore GraphQLMonitor.swift
[57/71] Compiling AudienceCore GraphQLOperationLog.swift
[58/71] Compiling AudienceCore GraphQLValue.swift
[59/71] Compiling AudienceCore GuestAndCodes.swift
[60/71] Compiling ArbiterControl VectorJudge.swift
[61/71] Compiling ArbiterControl ControlSocket.swift
/host/spi-builder-workspace/swift/Sources/ArbiterControl/ControlSocket.swift:40:51: error: cannot find type 'sockaddr_un' in scope
 38 |     static let maxMessage = 4 * 1024 * 1024
 39 |
 40 |     static func address(_ path: String) throws -> sockaddr_un {
    |                                                   `- error: cannot find type 'sockaddr_un' in scope
 41 |         var address = sockaddr_un()
 42 |         address.sun_family = sa_family_t(AF_UNIX)
/host/spi-builder-workspace/swift/Sources/ArbiterControl/ControlSocket.swift:71:43: error: cannot find type 'sockaddr_un' in scope
 69 |     }
 70 |
 71 |     static func withAddress<T>(_ address: sockaddr_un, _ body: (UnsafePointer<sockaddr>, socklen_t) -> T) -> T {
    |                                           `- error: cannot find type 'sockaddr_un' in scope
 72 |         var address = address
 73 |         return withUnsafePointer(to: &address) { pointer in
/host/spi-builder-workspace/swift/Sources/ArbiterControl/ControlSocket.swift:71:79: error: cannot find type 'sockaddr' in scope
 69 |     }
 70 |
 71 |     static func withAddress<T>(_ address: sockaddr_un, _ body: (UnsafePointer<sockaddr>, socklen_t) -> T) -> T {
    |                                                                               `- error: cannot find type 'sockaddr' in scope
 72 |         var address = address
 73 |         return withUnsafePointer(to: &address) { pointer in
/host/spi-builder-workspace/swift/Sources/ArbiterControl/ControlSocket.swift:41:23: error: cannot find 'sockaddr_un' in scope
 39 |
 40 |     static func address(_ path: String) throws -> sockaddr_un {
 41 |         var address = sockaddr_un()
    |                       `- error: cannot find 'sockaddr_un' in scope
 42 |         address.sun_family = sa_family_t(AF_UNIX)
 43 |         let bytes = Array(path.utf8)
/host/spi-builder-workspace/swift/Sources/ArbiterControl/ControlSocket.swift:42:30: error: cannot find 'sa_family_t' in scope
 40 |     static func address(_ path: String) throws -> sockaddr_un {
 41 |         var address = sockaddr_un()
 42 |         address.sun_family = sa_family_t(AF_UNIX)
    |                              `- error: cannot find 'sa_family_t' in scope
 43 |         let bytes = Array(path.utf8)
 44 |         let capacity = MemoryLayout.size(ofValue: address.sun_path)
/host/spi-builder-workspace/swift/Sources/ArbiterControl/ControlSocket.swift:42:42: error: cannot find 'AF_UNIX' in scope
 40 |     static func address(_ path: String) throws -> sockaddr_un {
 41 |         var address = sockaddr_un()
 42 |         address.sun_family = sa_family_t(AF_UNIX)
    |                                          `- error: cannot find 'AF_UNIX' in scope
 43 |         let bytes = Array(path.utf8)
 44 |         let capacity = MemoryLayout.size(ofValue: address.sun_path)
/host/spi-builder-workspace/swift/Sources/ArbiterControl/ControlSocket.swift:60:18: error: cannot find 'socket' in scope
 58 |         let fd = socket(AF_UNIX, SOCK_STREAM, 0)
 59 |         #else
 60 |         let fd = socket(AF_UNIX, Int32(SOCK_STREAM.rawValue), 0)
    |                  `- error: cannot find 'socket' in scope
 61 |         #endif
 62 |         guard fd >= 0 else { throw ControlSocketError.system("socket", errno) }
/host/spi-builder-workspace/swift/Sources/ArbiterControl/ControlSocket.swift:60:25: error: cannot find 'AF_UNIX' in scope
 58 |         let fd = socket(AF_UNIX, SOCK_STREAM, 0)
 59 |         #else
 60 |         let fd = socket(AF_UNIX, Int32(SOCK_STREAM.rawValue), 0)
    |                         `- error: cannot find 'AF_UNIX' in scope
 61 |         #endif
 62 |         guard fd >= 0 else { throw ControlSocketError.system("socket", errno) }
/host/spi-builder-workspace/swift/Sources/ArbiterControl/ControlSocket.swift:60:40: error: cannot find 'SOCK_STREAM' in scope
 58 |         let fd = socket(AF_UNIX, SOCK_STREAM, 0)
 59 |         #else
 60 |         let fd = socket(AF_UNIX, Int32(SOCK_STREAM.rawValue), 0)
    |                                        `- error: cannot find 'SOCK_STREAM' in scope
 61 |         #endif
 62 |         guard fd >= 0 else { throw ControlSocketError.system("socket", errno) }
/host/spi-builder-workspace/swift/Sources/ArbiterControl/ControlSocket.swift:62:72: error: cannot find 'errno' in scope
 60 |         let fd = socket(AF_UNIX, Int32(SOCK_STREAM.rawValue), 0)
 61 |         #endif
 62 |         guard fd >= 0 else { throw ControlSocketError.system("socket", errno) }
    |                                                                        `- error: cannot find 'errno' in scope
 63 |         #if canImport(Darwin)
 64 |         var on: Int32 = 1
/root/.swiftpm/swift-sdks/swift-6.2-RELEASE-android-0.1.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/swift/Sources/ArbiterControl/ControlSocket.swift:67:13: error: cannot find 'fcntl' in scope
 65 |         setsockopt(fd, SOL_SOCKET, SO_NOSIGPIPE, &on, socklen_t(MemoryLayout<Int32>.size))
 66 |         #endif
 67 |         _ = fcntl(fd, F_SETFD, FD_CLOEXEC)
    |             `- error: cannot find 'fcntl' in scope
 68 |         return fd
 69 |     }
/host/spi-builder-workspace/swift/Sources/ArbiterControl/ControlSocket.swift:67:23: error: cannot find 'F_SETFD' in scope
 65 |         setsockopt(fd, SOL_SOCKET, SO_NOSIGPIPE, &on, socklen_t(MemoryLayout<Int32>.size))
 66 |         #endif
 67 |         _ = fcntl(fd, F_SETFD, FD_CLOEXEC)
    |                       `- error: cannot find 'F_SETFD' in scope
 68 |         return fd
 69 |     }
/host/spi-builder-workspace/swift/Sources/ArbiterControl/ControlSocket.swift:67:32: error: cannot find 'FD_CLOEXEC' in scope
 65 |         setsockopt(fd, SOL_SOCKET, SO_NOSIGPIPE, &on, socklen_t(MemoryLayout<Int32>.size))
 66 |         #endif
 67 |         _ = fcntl(fd, F_SETFD, FD_CLOEXEC)
    |                                `- error: cannot find 'FD_CLOEXEC' in scope
 68 |         return fd
 69 |     }
/host/spi-builder-workspace/swift/Sources/ArbiterControl/ControlSocket.swift:74:43: error: cannot find 'sockaddr' in scope
 72 |         var address = address
 73 |         return withUnsafePointer(to: &address) { pointer in
 74 |             pointer.withMemoryRebound(to: sockaddr.self, capacity: 1) { body($0, socklen_t(MemoryLayout<sockaddr_un>.size)) }
    |                                           `- error: cannot find 'sockaddr' in scope
 75 |         }
 76 |     }
/host/spi-builder-workspace/swift/Sources/ArbiterControl/ControlSocket.swift:74:105: error: cannot find type 'sockaddr_un' in scope
 72 |         var address = address
 73 |         return withUnsafePointer(to: &address) { pointer in
 74 |             pointer.withMemoryRebound(to: sockaddr.self, capacity: 1) { body($0, socklen_t(MemoryLayout<sockaddr_un>.size)) }
    |                                                                                                         `- error: cannot find type 'sockaddr_un' in scope
 75 |         }
 76 |     }
/host/spi-builder-workspace/swift/Sources/ArbiterControl/ControlSocket.swift:74:21: error: generic parameter 'T' could not be inferred
 72 |         var address = address
 73 |         return withUnsafePointer(to: &address) { pointer in
 74 |             pointer.withMemoryRebound(to: sockaddr.self, capacity: 1) { body($0, socklen_t(MemoryLayout<sockaddr_un>.size)) }
    |                     `- error: generic parameter 'T' could not be inferred
 75 |         }
 76 |     }
Swift.UnsafePointer.withMemoryRebound:2:13: note: in call to function 'withMemoryRebound(to:capacity:_:)'
1 | generic struct UnsafePointer {
2 | public func withMemoryRebound<T, E, Result>(to type: T.Type, capacity count: Int, _ body: (_ pointer: UnsafePointer<T>) throws(E) -> Result) throws(E) -> Result where E : Error, T : ~Copyable, Result : ~Copyable}
  |             `- note: in call to function 'withMemoryRebound(to:capacity:_:)'
3 |
/host/spi-builder-workspace/swift/Sources/ArbiterControl/ControlSocket.swift:80:9: error: cannot find 'setsockopt' in scope
 78 |     static func setTimeout(_ fd: Int32, seconds: Int) {
 79 |         var time = timeval(tv_sec: seconds, tv_usec: 0)
 80 |         setsockopt(fd, SOL_SOCKET, SO_RCVTIMEO, &time, socklen_t(MemoryLayout<timeval>.size))
    |         `- error: cannot find 'setsockopt' in scope
 81 |         setsockopt(fd, SOL_SOCKET, SO_SNDTIMEO, &time, socklen_t(MemoryLayout<timeval>.size))
 82 |     }
/host/spi-builder-workspace/swift/Sources/ArbiterControl/ControlSocket.swift:80:24: error: cannot find 'SOL_SOCKET' in scope
 78 |     static func setTimeout(_ fd: Int32, seconds: Int) {
 79 |         var time = timeval(tv_sec: seconds, tv_usec: 0)
 80 |         setsockopt(fd, SOL_SOCKET, SO_RCVTIMEO, &time, socklen_t(MemoryLayout<timeval>.size))
    |                        `- error: cannot find 'SOL_SOCKET' in scope
 81 |         setsockopt(fd, SOL_SOCKET, SO_SNDTIMEO, &time, socklen_t(MemoryLayout<timeval>.size))
 82 |     }
/host/spi-builder-workspace/swift/Sources/ArbiterControl/ControlSocket.swift:80:36: error: cannot find 'SO_RCVTIMEO' in scope
 78 |     static func setTimeout(_ fd: Int32, seconds: Int) {
 79 |         var time = timeval(tv_sec: seconds, tv_usec: 0)
 80 |         setsockopt(fd, SOL_SOCKET, SO_RCVTIMEO, &time, socklen_t(MemoryLayout<timeval>.size))
    |                                    `- error: cannot find 'SO_RCVTIMEO' in scope
 81 |         setsockopt(fd, SOL_SOCKET, SO_SNDTIMEO, &time, socklen_t(MemoryLayout<timeval>.size))
 82 |     }
/host/spi-builder-workspace/swift/Sources/ArbiterControl/ControlSocket.swift:81:9: error: cannot find 'setsockopt' in scope
 79 |         var time = timeval(tv_sec: seconds, tv_usec: 0)
 80 |         setsockopt(fd, SOL_SOCKET, SO_RCVTIMEO, &time, socklen_t(MemoryLayout<timeval>.size))
 81 |         setsockopt(fd, SOL_SOCKET, SO_SNDTIMEO, &time, socklen_t(MemoryLayout<timeval>.size))
    |         `- error: cannot find 'setsockopt' in scope
 82 |     }
 83 |
/host/spi-builder-workspace/swift/Sources/ArbiterControl/ControlSocket.swift:81:24: error: cannot find 'SOL_SOCKET' in scope
 79 |         var time = timeval(tv_sec: seconds, tv_usec: 0)
 80 |         setsockopt(fd, SOL_SOCKET, SO_RCVTIMEO, &time, socklen_t(MemoryLayout<timeval>.size))
 81 |         setsockopt(fd, SOL_SOCKET, SO_SNDTIMEO, &time, socklen_t(MemoryLayout<timeval>.size))
    |                        `- error: cannot find 'SOL_SOCKET' in scope
 82 |     }
 83 |
/host/spi-builder-workspace/swift/Sources/ArbiterControl/ControlSocket.swift:81:36: error: cannot find 'SO_SNDTIMEO' in scope
 79 |         var time = timeval(tv_sec: seconds, tv_usec: 0)
 80 |         setsockopt(fd, SOL_SOCKET, SO_RCVTIMEO, &time, socklen_t(MemoryLayout<timeval>.size))
 81 |         setsockopt(fd, SOL_SOCKET, SO_SNDTIMEO, &time, socklen_t(MemoryLayout<timeval>.size))
    |                                    `- error: cannot find 'SO_SNDTIMEO' in scope
 82 |     }
 83 |
/host/spi-builder-workspace/swift/Sources/ArbiterControl/ControlSocket.swift:92:29: error: cannot find 'send' in scope
 90 |                 let wrote = write(fd, pointer, left)
 91 |                 #else
 92 |                 let wrote = send(fd, pointer, left, Int32(MSG_NOSIGNAL))
    |                             `- error: cannot find 'send' in scope
 93 |                 #endif
 94 |                 if wrote < 0 {
/host/spi-builder-workspace/swift/Sources/ArbiterControl/ControlSocket.swift:92:59: error: cannot find 'MSG_NOSIGNAL' in scope
 90 |                 let wrote = write(fd, pointer, left)
 91 |                 #else
 92 |                 let wrote = send(fd, pointer, left, Int32(MSG_NOSIGNAL))
    |                                                           `- error: cannot find 'MSG_NOSIGNAL' in scope
 93 |                 #endif
 94 |                 if wrote < 0 {
/host/spi-builder-workspace/swift/Sources/ArbiterControl/ControlSocket.swift:95:24: error: cannot find 'errno' in scope
 93 |                 #endif
 94 |                 if wrote < 0 {
 95 |                     if errno == EINTR { continue }
    |                        `- error: cannot find 'errno' in scope
 96 |                     throw ControlSocketError.system("write", errno)
 97 |                 }
/root/.swiftpm/swift-sdks/swift-6.2-RELEASE-android-0.1.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/swift/Sources/ArbiterControl/ControlSocket.swift:96:62: error: cannot find 'errno' in scope
 94 |                 if wrote < 0 {
 95 |                     if errno == EINTR { continue }
 96 |                     throw ControlSocketError.system("write", errno)
    |                                                              `- error: cannot find 'errno' in scope
 97 |                 }
 98 |                 left -= wrote
/root/.swiftpm/swift-sdks/swift-6.2-RELEASE-android-0.1.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/swift/Sources/ArbiterControl/ControlSocket.swift:109:57: error: cannot find 'read' in scope
107 |         var buffer = [UInt8](repeating: 0, count: 64 * 1024)
108 |         while true {
109 |             let count = buffer.withUnsafeMutableBytes { read(fd, $0.baseAddress, $0.count) }
    |                                                         `- error: cannot find 'read' in scope
110 |             if count < 0 {
111 |                 if errno == EINTR { continue }
/host/spi-builder-workspace/swift/Sources/ArbiterControl/ControlSocket.swift:111:20: error: cannot find 'errno' in scope
109 |             let count = buffer.withUnsafeMutableBytes { read(fd, $0.baseAddress, $0.count) }
110 |             if count < 0 {
111 |                 if errno == EINTR { continue }
    |                    `- error: cannot find 'errno' in scope
112 |                 throw ControlSocketError.system("read", errno)
113 |             }
/root/.swiftpm/swift-sdks/swift-6.2-RELEASE-android-0.1.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/swift/Sources/ArbiterControl/ControlSocket.swift:112:57: error: cannot find 'errno' in scope
110 |             if count < 0 {
111 |                 if errno == EINTR { continue }
112 |                 throw ControlSocketError.system("read", errno)
    |                                                         `- error: cannot find 'errno' in scope
113 |             }
114 |             if count == 0 { return data }
/root/.swiftpm/swift-sdks/swift-6.2-RELEASE-android-0.1.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/swift/Sources/ArbiterControl/ControlSocket.swift:133:59: error: cannot find 'getsockopt' in scope
131 |         var credentials = [UInt32](repeating: 0, count: 3)
132 |         var length = socklen_t(MemoryLayout<UInt32>.size * 3)
133 |         let result = credentials.withUnsafeMutableBytes { getsockopt(fd, SOL_SOCKET, 17, $0.baseAddress, &length) }
    |                                                           `- error: cannot find 'getsockopt' in scope
134 |         return result == 0 ? uid_t(credentials[1]) : nil
135 |         #endif
/host/spi-builder-workspace/swift/Sources/ArbiterControl/ControlSocket.swift:133:74: error: cannot find 'SOL_SOCKET' in scope
131 |         var credentials = [UInt32](repeating: 0, count: 3)
132 |         var length = socklen_t(MemoryLayout<UInt32>.size * 3)
133 |         let result = credentials.withUnsafeMutableBytes { getsockopt(fd, SOL_SOCKET, 17, $0.baseAddress, &length) }
    |                                                                          `- error: cannot find 'SOL_SOCKET' in scope
134 |         return result == 0 ? uid_t(credentials[1]) : nil
135 |         #endif
/host/spi-builder-workspace/swift/Sources/ArbiterControl/ControlSocket.swift:170:9: error: cannot find 'unlink' in scope
168 |                                                 attributes: [.posixPermissions: 0o700])
169 |         if ControlClient.answers(path: path) { throw ControlSocketError.alreadyRunning(path) }
170 |         unlink(path)
    |         `- error: cannot find 'unlink' in scope
171 |         let fd = try ControlSocket.makeSocket()
172 |         // Made with 0600 from the start: no moment where another user could connect.
/host/spi-builder-workspace/swift/Sources/ArbiterControl/ControlSocket.swift:173:20: error: cannot find 'umask' in scope
171 |         let fd = try ControlSocket.makeSocket()
172 |         // Made with 0600 from the start: no moment where another user could connect.
173 |         let mask = umask(0o177)
    |                    `- error: cannot find 'umask' in scope
174 |         let bound = ControlSocket.withAddress(address) { bind(fd, $0, $1) }
175 |         umask(mask)
/host/spi-builder-workspace/swift/Sources/ArbiterControl/ControlSocket.swift:174:58: error: cannot find 'bind' in scope
172 |         // Made with 0600 from the start: no moment where another user could connect.
173 |         let mask = umask(0o177)
174 |         let bound = ControlSocket.withAddress(address) { bind(fd, $0, $1) }
    |                                                          `- error: cannot find 'bind' in scope
175 |         umask(mask)
176 |         guard bound == 0 else {
/host/spi-builder-workspace/swift/Sources/ArbiterControl/ControlSocket.swift:175:9: error: cannot find 'umask' in scope
173 |         let mask = umask(0o177)
174 |         let bound = ControlSocket.withAddress(address) { bind(fd, $0, $1) }
175 |         umask(mask)
    |         `- error: cannot find 'umask' in scope
176 |         guard bound == 0 else {
177 |             let code = errno
/host/spi-builder-workspace/swift/Sources/ArbiterControl/ControlSocket.swift:177:24: error: cannot find 'errno' in scope
175 |         umask(mask)
176 |         guard bound == 0 else {
177 |             let code = errno
    |                        `- error: cannot find 'errno' in scope
178 |             close(fd)
179 |             throw ControlSocketError.system("bind", code)
/root/.swiftpm/swift-sdks/swift-6.2-RELEASE-android-0.1.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/swift/Sources/ArbiterControl/ControlSocket.swift:178:13: error: cannot find 'close' in scope
176 |         guard bound == 0 else {
177 |             let code = errno
178 |             close(fd)
    |             `- error: cannot find 'close' in scope
179 |             throw ControlSocketError.system("bind", code)
180 |         }
/host/spi-builder-workspace/swift/Sources/ArbiterControl/ControlSocket.swift:181:9: error: cannot find 'chmod' in scope
179 |             throw ControlSocketError.system("bind", code)
180 |         }
181 |         chmod(path, 0o600)
    |         `- error: cannot find 'chmod' in scope
182 |         guard listen(fd, 16) == 0 else {
183 |             let code = errno
/host/spi-builder-workspace/swift/Sources/ArbiterControl/ControlSocket.swift:182:15: error: cannot find 'listen' in scope
180 |         }
181 |         chmod(path, 0o600)
182 |         guard listen(fd, 16) == 0 else {
    |               `- error: cannot find 'listen' in scope
183 |             let code = errno
184 |             close(fd)
/host/spi-builder-workspace/swift/Sources/ArbiterControl/ControlSocket.swift:183:24: error: cannot find 'errno' in scope
181 |         chmod(path, 0o600)
182 |         guard listen(fd, 16) == 0 else {
183 |             let code = errno
    |                        `- error: cannot find 'errno' in scope
184 |             close(fd)
185 |             unlink(path)
/root/.swiftpm/swift-sdks/swift-6.2-RELEASE-android-0.1.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/swift/Sources/ArbiterControl/ControlSocket.swift:184:13: error: cannot find 'close' in scope
182 |         guard listen(fd, 16) == 0 else {
183 |             let code = errno
184 |             close(fd)
    |             `- error: cannot find 'close' in scope
185 |             unlink(path)
186 |             throw ControlSocketError.system("listen", code)
/host/spi-builder-workspace/swift/Sources/ArbiterControl/ControlSocket.swift:185:13: error: cannot find 'unlink' in scope
183 |             let code = errno
184 |             close(fd)
185 |             unlink(path)
    |             `- error: cannot find 'unlink' in scope
186 |             throw ControlSocketError.system("listen", code)
187 |         }
/host/spi-builder-workspace/swift/Sources/ArbiterControl/ControlSocket.swift:206:9: error: cannot find 'shutdown' in scope
204 |         lock.unlock()
205 |         guard wasRunning else { return }
206 |         shutdown(fd, 2) // SHUT_RDWR on macOS and Linux: wakes the accept loop
    |         `- error: cannot find 'shutdown' in scope
207 |         close(fd)
208 |         unlink(path)
/host/spi-builder-workspace/swift/Sources/ArbiterControl/ControlSocket.swift:207:9: error: cannot find 'close' in scope
205 |         guard wasRunning else { return }
206 |         shutdown(fd, 2) // SHUT_RDWR on macOS and Linux: wakes the accept loop
207 |         close(fd)
    |         `- error: cannot find 'close' in scope
208 |         unlink(path)
209 |     }
/host/spi-builder-workspace/swift/Sources/ArbiterControl/ControlSocket.swift:208:9: error: cannot find 'unlink' in scope
206 |         shutdown(fd, 2) // SHUT_RDWR on macOS and Linux: wakes the accept loop
207 |         close(fd)
208 |         unlink(path)
    |         `- error: cannot find 'unlink' in scope
209 |     }
210 |
/host/spi-builder-workspace/swift/Sources/ArbiterControl/ControlSocket.swift:218:30: error: cannot find 'accept' in scope
216 |     private func acceptLoop(_ fd: Int32) {
217 |         while !isStopped {
218 |             let connection = accept(fd, nil, nil)
    |                              `- error: cannot find 'accept' in scope
219 |             if connection < 0 {
220 |                 if errno == EINTR || errno == ECONNABORTED { continue }
/host/spi-builder-workspace/swift/Sources/ArbiterControl/ControlSocket.swift:218:41: error: 'nil' requires a contextual type
216 |     private func acceptLoop(_ fd: Int32) {
217 |         while !isStopped {
218 |             let connection = accept(fd, nil, nil)
    |                                         `- error: 'nil' requires a contextual type
219 |             if connection < 0 {
220 |                 if errno == EINTR || errno == ECONNABORTED { continue }
/host/spi-builder-workspace/swift/Sources/ArbiterControl/ControlSocket.swift:218:46: error: 'nil' requires a contextual type
216 |     private func acceptLoop(_ fd: Int32) {
217 |         while !isStopped {
218 |             let connection = accept(fd, nil, nil)
    |                                              `- error: 'nil' requires a contextual type
219 |             if connection < 0 {
220 |                 if errno == EINTR || errno == ECONNABORTED { continue }
/host/spi-builder-workspace/swift/Sources/ArbiterControl/ControlSocket.swift:220:20: error: cannot find 'errno' in scope
218 |             let connection = accept(fd, nil, nil)
219 |             if connection < 0 {
220 |                 if errno == EINTR || errno == ECONNABORTED { continue }
    |                    `- error: cannot find 'errno' in scope
221 |                 return
222 |             }
/root/.swiftpm/swift-sdks/swift-6.2-RELEASE-android-0.1.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/swift/Sources/ArbiterControl/ControlSocket.swift:220:38: error: cannot find 'errno' in scope
218 |             let connection = accept(fd, nil, nil)
219 |             if connection < 0 {
220 |                 if errno == EINTR || errno == ECONNABORTED { continue }
    |                                      `- error: cannot find 'errno' in scope
221 |                 return
222 |             }
/root/.swiftpm/swift-sdks/swift-6.2-RELEASE-android-0.1.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/swift/Sources/ArbiterControl/ControlSocket.swift:229:52: error: cannot find 'getuid' in scope
227 |     private func serve(_ connection: Int32) {
228 |         ControlSocket.setTimeout(connection, seconds: 10)
229 |         guard ControlSocket.peerUID(connection) == getuid() else {
    |                                                    `- error: cannot find 'getuid' in scope
230 |             // Another user's process: no answer at all.
231 |             close(connection)
/host/spi-builder-workspace/swift/Sources/ArbiterControl/ControlSocket.swift:231:13: error: cannot find 'close' in scope
229 |         guard ControlSocket.peerUID(connection) == getuid() else {
230 |             // Another user's process: no answer at all.
231 |             close(connection)
    |             `- error: cannot find 'close' in scope
232 |             return
233 |         }
/host/spi-builder-workspace/swift/Sources/ArbiterControl/ControlSocket.swift:257:13: error: cannot find 'close' in scope
255 |                 try? ControlSocket.writeAll(connection, data)
256 |             }
257 |             close(connection)
    |             `- error: cannot find 'close' in scope
258 |         }
259 |     }
/host/spi-builder-workspace/swift/Sources/ArbiterControl/ControlSocket.swift:272:17: error: cannot find 'close' in scope
270 |     public static func send(_ request: ControlRequest, path: String, timeout: Int = 60) throws -> ControlResponse {
271 |         let fd = try connect(path: path)
272 |         defer { close(fd) }
    |                 `- error: cannot find 'close' in scope
273 |         ControlSocket.setTimeout(fd, seconds: timeout)
274 |         var data = try ControlSocket.encoder.encode(request)
/host/spi-builder-workspace/swift/Sources/ArbiterControl/ControlSocket.swift:289:9: error: cannot find 'close' in scope
287 |     public static func answers(path: String) -> Bool {
288 |         guard let fd = try? connect(path: path) else { return false }
289 |         close(fd)
    |         `- error: cannot find 'close' in scope
290 |         return true
291 |     }
/host/spi-builder-workspace/swift/Sources/ArbiterControl/ControlSocket.swift:299:59: error: cannot find 'Glibc' in scope
297 |         let result = ControlSocket.withAddress(address) { Darwin.connect(fd, $0, $1) }
298 |         #else
299 |         let result = ControlSocket.withAddress(address) { Glibc.connect(fd, $0, $1) }
    |                                                           `- error: cannot find 'Glibc' in scope
300 |         #endif
301 |         if result != 0 {
/host/spi-builder-workspace/swift/Sources/ArbiterControl/ControlSocket.swift:302:24: error: cannot find 'errno' in scope
300 |         #endif
301 |         if result != 0 {
302 |             let code = errno
    |                        `- error: cannot find 'errno' in scope
303 |             close(fd)
304 |             if code == ENOENT || code == ECONNREFUSED || code == ENOTDIR { throw ControlSocketError.notRunning(path) }
/root/.swiftpm/swift-sdks/swift-6.2-RELEASE-android-0.1.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/swift/Sources/ArbiterControl/ControlSocket.swift:303:13: error: cannot find 'close' in scope
301 |         if result != 0 {
302 |             let code = errno
303 |             close(fd)
    |             `- error: cannot find 'close' in scope
304 |             if code == ENOENT || code == ECONNREFUSED || code == ENOTDIR { throw ControlSocketError.notRunning(path) }
305 |             throw ControlSocketError.system("connect", code)
[62/71] Compiling ArbiterControl ControlFormat.swift
[63/71] Compiling ArbiterControl ControlCommandLine.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[64/71] Emitting module ArbiterControl
/host/spi-builder-workspace/swift/Sources/ArbiterControl/ControlSocket.swift:40:51: error: cannot find type 'sockaddr_un' in scope
 38 |     static let maxMessage = 4 * 1024 * 1024
 39 |
 40 |     static func address(_ path: String) throws -> sockaddr_un {
    |                                                   `- error: cannot find type 'sockaddr_un' in scope
 41 |         var address = sockaddr_un()
 42 |         address.sun_family = sa_family_t(AF_UNIX)
/host/spi-builder-workspace/swift/Sources/ArbiterControl/ControlSocket.swift:71:43: error: cannot find type 'sockaddr_un' in scope
 69 |     }
 70 |
 71 |     static func withAddress<T>(_ address: sockaddr_un, _ body: (UnsafePointer<sockaddr>, socklen_t) -> T) -> T {
    |                                           `- error: cannot find type 'sockaddr_un' in scope
 72 |         var address = address
 73 |         return withUnsafePointer(to: &address) { pointer in
/host/spi-builder-workspace/swift/Sources/ArbiterControl/ControlSocket.swift:71:79: error: cannot find type 'sockaddr' in scope
 69 |     }
 70 |
 71 |     static func withAddress<T>(_ address: sockaddr_un, _ body: (UnsafePointer<sockaddr>, socklen_t) -> T) -> T {
    |                                                                               `- error: cannot find type 'sockaddr' in scope
 72 |         var address = address
 73 |         return withUnsafePointer(to: &address) { pointer in
[65/71] Compiling ArbiterControl ControlProtocol.swift
BUILD FAILURE 6.2 android