Build Information
Failed to build AudienceKit, reference main (c9c2b6), with Swift 6.1 for Android on 1 Dec 2026 16:54:55 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-54344844-2":/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.1-latest swift build --swift-sdk aarch64-unknown-linux-android24 2>&1Build 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.1
Building package at path: $PWD
https://github.com/lwm-luminx/audience-kit-sdk.git
https://github.com/lwm-luminx/audience-kit-sdk.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-54344844-2":/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.1-latest swift build --swift-sdk aarch64-unknown-linux-android24 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures 2>&1
android-6.1-latest: Pulling from saguaro1/spi-images
Digest: sha256:5d7a343117074333c7f916a1928f0c3b988485830be18626931a4319bae86a8f
Status: Image is up to date for registry.gitlab.com/saguaro1/spi-images:android-6.1-latest
Building for debugging...
[0/9] Write sources
[8/9] Write swift-version-24593BA9C3E375BF.txt
[10/65] Emitting module AudienceCore
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[11/69] Compiling AudienceCore GraphQLEndpoint.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[12/69] Compiling AudienceCore GraphQLMonitor.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[13/69] Compiling AudienceCore GraphQLOperationLog.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[14/69] Compiling AudienceCore GraphQLValue.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[15/69] Compiling AudienceCore GuestAndCodes.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[16/69] Compiling AudienceCore ProposedChanges.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[17/69] Compiling AudienceCore PublisherChooser.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[18/69] Compiling AudienceCore RequestPacer.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[19/69] Compiling AudienceCore ReviewCode.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[22/71] Compiling ArbiterControl ControlFormat.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[23/71] Compiling ArbiterControl ControlCommandLine.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[24/71] Emitting module ArbiterModels
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[27/71] Compiling AudienceCore RoomDrawing.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[28/71] Compiling AudienceCore SoapboxAds.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[29/71] Compiling AudienceCore StaffApp.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[30/71] Compiling AudienceCore VisitedLocales.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[31/71] Compiling AudienceCore DiscordConnect.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[32/71] Compiling AudienceCore Errors.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[33/71] Compiling AudienceCore FlaggedMessages.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[34/71] Compiling AudienceCore GoogleSignIn.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[35/71] Compiling AudienceCore GraphQLCache.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[36/71] Compiling AudienceCore ISO8601.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[37/71] Compiling AudienceCore ListingCuration.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[38/71] Compiling AudienceCore ListingResearch.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[39/71] Compiling AudienceCore PickupOrder.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[40/71] Compiling AudienceCore PlatformCredit.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[41/71] Compiling ArbiterControl ControlProtocol.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[42/71] Compiling AudienceCore ContactHashing.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[43/71] Compiling AudienceCore Coordinate.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[44/71] Compiling AudienceCore Credential.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[45/71] Compiling AudienceCore CredentialStore.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
error: emit-module command failed with exit code 1 (use -v to see invocation)
[46/71] Emitting module ArbiterControl
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
/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
[47/71] Compiling ArbiterControl ControlSocket.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
/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.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-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.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-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.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-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.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-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.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-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.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-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.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-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.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-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.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-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.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-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)
[48/71] Compiling ArbiterControl VectorJudge.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[49/71] Compiling AudienceCore AudienceKitSDK.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[50/71] Compiling AudienceCore AudienceSession.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[55/71] Compiling ArbiterModels SponsoredContent.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[56/71] Compiling AudienceCore Branding.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[57/71] Compiling AudienceCore Configuration.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[59/71] Compiling AudienceCore AudienceCards.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-54344844-2":/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.1-latest swift build --swift-sdk aarch64-unknown-linux-android24 2>&1
android-6.1-latest: Pulling from saguaro1/spi-images
Digest: sha256:5d7a343117074333c7f916a1928f0c3b988485830be18626931a4319bae86a8f
Status: Image is up to date for registry.gitlab.com/saguaro1/spi-images:android-6.1-latest
[0/1] Planning build
Building for debugging...
[0/1] Write swift-version-24593BA9C3E375BF.txt
[2/57] Compiling ArbiterControl ControlFormat.swift
[3/57] Compiling ArbiterModels Network.swift
[4/57] Compiling ArbiterModels Research.swift
[5/57] Compiling ArbiterModels GlamFastLane.swift
[6/57] Compiling ArbiterModels JSONValue.swift
[7/59] Compiling ArbiterModels ArbiterPrompts.swift
[8/59] Compiling ArbiterModels Checks.swift
[9/59] Compiling ArbiterControl VectorJudge.swift
[10/59] 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.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-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.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-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.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-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.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-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.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-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.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-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.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-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.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-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.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-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.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-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)
[11/59] Compiling ArbiterModels AIWorkers.swift
[12/59] Compiling ArbiterModels Applets.swift
[13/59] Emitting module ArbiterModels
[14/59] Compiling AudienceCore GraphQLEndpoint.swift
[15/59] Compiling AudienceCore GraphQLMonitor.swift
[16/59] Compiling AudienceCore GraphQLOperationLog.swift
[17/59] Compiling AudienceCore GraphQLValue.swift
[18/59] Compiling AudienceCore GuestAndCodes.swift
[19/63] Emitting module AudienceCore
[20/63] Compiling ArbiterModels Decisions.swift
[21/63] Compiling ArbiterModels EmbeddingCatalogData.swift
[22/63] Compiling ArbiterModels Embeddings.swift
[23/63] Compiling ArbiterModels EngineSettings.swift
[24/63] Compiling ArbiterModels Glam.swift
[25/63] Compiling ArbiterModels GlamCopyText.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[26/63] 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
[27/63] Compiling ArbiterControl ControlCommandLine.swift
[28/63] Compiling ArbiterControl ControlProtocol.swift
BUILD FAILURE 6.1 android