Build Information
Failed to build VirtualTerminal, reference main (b3c636
), with Swift 6.1 for Linux on 24 Aug 2025 01:15:14 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4606859-3":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/finestructure/spi-images:basic-6.1-latest swift build --triple x86_64-unknown-linux-gnu 2>&1
Build Log
========================================
RunAll
========================================
Builder version: 4.67.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/compnerd/VirtualTerminal.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/compnerd/VirtualTerminal
* branch main -> FETCH_HEAD
* [new branch] main -> origin/main
HEAD is now at b3c636a Primitives,VirtualTerminal: replace `Atomic` with `Synchronization`
Cloned https://github.com/compnerd/VirtualTerminal.git
Revision (git rev-parse @):
b3c636aabc1cd532e11aecc1eb0f7ab1db30baf0
SUCCESS checkout https://github.com/compnerd/VirtualTerminal.git at main
========================================
Build
========================================
Selected platform: linux
Swift version: 6.1
Building package at path: $PWD
https://github.com/compnerd/VirtualTerminal.git
https://github.com/compnerd/VirtualTerminal.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
error: 'spi-builder-workspace': package 'spi-builder-workspace' is using Swift tools version 6.1.0 but the installed version is 6.0.2
error: fatalError
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-3":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/finestructure/spi-images:basic-6.1-latest swift build --triple x86_64-unknown-linux-gnu -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
basic-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:99ea6d26ace67c023f359493a2ac553a612b92a7f2dee009657225f46f43aa0e
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.1-latest
Fetching https://github.com/compnerd/swift-platform-core.git
[1/107] Fetching swift-platform-core
Fetched https://github.com/compnerd/swift-platform-core.git from cache (0.23s)
Creating working copy for https://github.com/compnerd/swift-platform-core.git
Working copy of https://github.com/compnerd/swift-platform-core.git resolved at main (2c267eb)
Building for debugging...
[0/13] Write sources
[5/13] Write swift-version-24593BA9C3E375BF.txt
[7/25] Compiling Geometry Size.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)
[8/25] Compiling POSIXCore GNU+Overlay.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
[9/25] Compiling POSIXCore Darwin+Overlay.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
[10/25] Emitting module POSIXCore
<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/.build/checkouts/swift-platform-core/Sources/POSIXCore/POSIXError.swift:9:30: error: cannot find 'errno' in scope
7 | internal let code: CInt
8 |
9 | public init(_ code: CInt = errno) {
| `- error: cannot find 'errno' in scope
10 | self.code = code
11 | }
/host/spi-builder-workspace/.build/checkouts/swift-platform-core/Sources/POSIXCore/SignalHandler.swift:22:35: error: cannot find type 'sigaction' in scope
20 |
21 | private var handlers: [CInt:[ObjectIdentifier:Handler]] = [:]
22 | private var dispositions: [CInt:sigaction] = [:]
| `- error: cannot find type 'sigaction' in scope
23 | #if $InlineArray
24 | private nonisolated(unsafe) static var fds = InlineArray<2, CInt>(repeating: -1)
[11/25] Compiling POSIXCore SignalHandler.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/.build/checkouts/swift-platform-core/Sources/POSIXCore/SignalHandler.swift:22:35: error: cannot find type 'sigaction' in scope
20 |
21 | private var handlers: [CInt:[ObjectIdentifier:Handler]] = [:]
22 | private var dispositions: [CInt:sigaction] = [:]
| `- error: cannot find type 'sigaction' in scope
23 | #if $InlineArray
24 | private nonisolated(unsafe) static var fds = InlineArray<2, CInt>(repeating: -1)
/host/spi-builder-workspace/.build/checkouts/swift-platform-core/Sources/POSIXCore/SignalHandler.swift:40:11: error: cannot find 'close' in scope
38 | // Close channel.
39 | if Registry.fds[0] != -1 {
40 | _ = close(Registry.fds[0])
| `- error: cannot find 'close' in scope
41 | }
42 |
/host/spi-builder-workspace/.build/checkouts/swift-platform-core/Sources/POSIXCore/SignalHandler.swift:44:11: error: cannot find 'close' in scope
42 |
43 | if Registry.fds[1] != -1 {
44 | _ = close(Registry.fds[1])
| `- error: cannot find 'close' in scope
45 | }
46 | }
/host/spi-builder-workspace/.build/checkouts/swift-platform-core/Sources/POSIXCore/SignalHandler.swift:52:11: error: cannot find 'pipe' in scope
50 |
51 | // TODO(compnerd): use `signalfd` on Linux
52 | guard pipe(&Registry.fds) == 0 else { throw POSIXError() }
| `- error: cannot find 'pipe' in scope
53 |
54 | // Make the write non-blocking for the handler
/host/spi-builder-workspace/.build/checkouts/swift-platform-core/Sources/POSIXCore/SignalHandler.swift:55:17: error: cannot find 'fcntl' in scope
53 |
54 | // Make the write non-blocking for the handler
55 | let flags = fcntl(Registry.fds[1], F_GETFL)
| `- error: cannot find 'fcntl' in scope
56 | guard flags >= 0, fcntl(Registry.fds[1], F_SETFL, flags | O_NONBLOCK) == 0 else {
57 | throw POSIXError()
/host/spi-builder-workspace/.build/checkouts/swift-platform-core/Sources/POSIXCore/SignalHandler.swift:55:40: error: cannot find 'F_GETFL' in scope
53 |
54 | // Make the write non-blocking for the handler
55 | let flags = fcntl(Registry.fds[1], F_GETFL)
| `- error: cannot find 'F_GETFL' in scope
56 | guard flags >= 0, fcntl(Registry.fds[1], F_SETFL, flags | O_NONBLOCK) == 0 else {
57 | throw POSIXError()
/host/spi-builder-workspace/.build/checkouts/swift-platform-core/Sources/POSIXCore/SignalHandler.swift:56:23: error: cannot find 'fcntl' in scope
54 | // Make the write non-blocking for the handler
55 | let flags = fcntl(Registry.fds[1], F_GETFL)
56 | guard flags >= 0, fcntl(Registry.fds[1], F_SETFL, flags | O_NONBLOCK) == 0 else {
| `- error: cannot find 'fcntl' in scope
57 | throw POSIXError()
58 | }
/host/spi-builder-workspace/.build/checkouts/swift-platform-core/Sources/POSIXCore/SignalHandler.swift:56:46: error: cannot find 'F_SETFL' in scope
54 | // Make the write non-blocking for the handler
55 | let flags = fcntl(Registry.fds[1], F_GETFL)
56 | guard flags >= 0, fcntl(Registry.fds[1], F_SETFL, flags | O_NONBLOCK) == 0 else {
| `- error: cannot find 'F_SETFL' in scope
57 | throw POSIXError()
58 | }
/host/spi-builder-workspace/.build/checkouts/swift-platform-core/Sources/POSIXCore/SignalHandler.swift:56:63: error: cannot find 'O_NONBLOCK' in scope
54 | // Make the write non-blocking for the handler
55 | let flags = fcntl(Registry.fds[1], F_GETFL)
56 | guard flags >= 0, fcntl(Registry.fds[1], F_SETFL, flags | O_NONBLOCK) == 0 else {
| `- error: cannot find 'O_NONBLOCK' in scope
57 | throw POSIXError()
58 | }
/host/spi-builder-workspace/.build/checkouts/swift-platform-core/Sources/POSIXCore/SignalHandler.swift:65:21: error: cannot find 'read' in scope
63 | guard let self else { return }
64 |
65 | let count = read(Registry.fds[0], &buffer, buffer.count)
| `- error: cannot find 'read' in scope
66 | let errno = errno
67 | guard count > 0 else {
/host/spi-builder-workspace/.build/checkouts/swift-platform-core/Sources/POSIXCore/SignalHandler.swift:66:21: error: use of local variable 'errno' before its declaration
64 |
65 | let count = read(Registry.fds[0], &buffer, buffer.count)
66 | let errno = errno
| | `- error: use of local variable 'errno' before its declaration
| `- note: 'errno' declared here
67 | guard count > 0 else {
68 | if errno == EINTR { continue }
/host/spi-builder-workspace/.build/checkouts/swift-platform-core/Sources/POSIXCore/SignalHandler.swift:68:23: error: cannot find 'EINTR' in scope
66 | let errno = errno
67 | guard count > 0 else {
68 | if errno == EINTR { continue }
| `- error: cannot find 'EINTR' in scope
69 | if errno == 0 { return }
70 | fatalError("read failure from signal pipe: \(POSIXError(errno))")
/host/spi-builder-workspace/.build/checkouts/swift-platform-core/Sources/POSIXCore/POSIXError.swift:9:30: error: cannot find 'errno' in scope
7 | internal let code: CInt
8 |
9 | public init(_ code: CInt = errno) {
| `- error: cannot find 'errno' in scope
10 | self.code = code
11 | }
/host/spi-builder-workspace/.build/checkouts/swift-platform-core/Sources/POSIXCore/SignalHandler.swift:91:11: error: cannot find 'close' in scope
89 | // Close channel.
90 | if Registry.fds[0] != -1 {
91 | _ = close(Registry.fds[0])
| `- error: cannot find 'close' in scope
92 | Registry.fds[0] = -1
93 | }
/host/spi-builder-workspace/.build/checkouts/swift-platform-core/Sources/POSIXCore/SignalHandler.swift:96:11: error: cannot find 'close' in scope
94 |
95 | if Registry.fds[1] != -1 {
96 | _ = close(Registry.fds[1])
| `- error: cannot find 'close' in scope
97 | Registry.fds[1] = -1
98 | }
/host/spi-builder-workspace/.build/checkouts/swift-platform-core/Sources/POSIXCore/SignalHandler.swift:129:13: error: cannot find 'sigaction' in scope
127 | if var disposition = dispositions.removeValue(forKey: signal) {
128 | // Ignore errors - there is not much that can be done in the cleanup.
129 | _ = sigaction(signal, &disposition, nil)
| `- error: cannot find 'sigaction' in scope
130 | }
131 | handlers.removeValue(forKey: signal)
/host/spi-builder-workspace/.build/checkouts/swift-platform-core/Sources/POSIXCore/SignalHandler.swift:129:45: error: 'nil' requires a contextual type
127 | if var disposition = dispositions.removeValue(forKey: signal) {
128 | // Ignore errors - there is not much that can be done in the cleanup.
129 | _ = sigaction(signal, &disposition, nil)
| `- error: 'nil' requires a contextual type
130 | }
131 | handlers.removeValue(forKey: signal)
/host/spi-builder-workspace/.build/checkouts/swift-platform-core/Sources/POSIXCore/SignalHandler.swift:144:23: error: cannot find 'sigaction' in scope
142 |
143 | // Save the original signal action
144 | var disposition = sigaction()
| `- error: cannot find 'sigaction' in scope
145 | guard sigaction(signal, nil, &disposition) == 0 else { throw POSIXError() }
146 | dispositions[signal] = disposition
/host/spi-builder-workspace/.build/checkouts/swift-platform-core/Sources/POSIXCore/SignalHandler.swift:145:11: error: cannot find 'sigaction' in scope
143 | // Save the original signal action
144 | var disposition = sigaction()
145 | guard sigaction(signal, nil, &disposition) == 0 else { throw POSIXError() }
| `- error: cannot find 'sigaction' in scope
146 | dispositions[signal] = disposition
147 |
/host/spi-builder-workspace/.build/checkouts/swift-platform-core/Sources/POSIXCore/SignalHandler.swift:145:29: error: 'nil' requires a contextual type
143 | // Save the original signal action
144 | var disposition = sigaction()
145 | guard sigaction(signal, nil, &disposition) == 0 else { throw POSIXError() }
| `- error: 'nil' requires a contextual type
146 | dispositions[signal] = disposition
147 |
/host/spi-builder-workspace/.build/checkouts/swift-platform-core/Sources/POSIXCore/SignalHandler.swift:149:18: error: cannot find 'sigaction' in scope
147 |
148 | // Install minimal signal handler
149 | var action = sigaction()
| `- error: cannot find 'sigaction' in scope
150 | let handler: @convention(c) (CInt) -> Void = { signal in
151 | // Ignore errors - there is not much that can be done safely in the
/host/spi-builder-workspace/.build/checkouts/swift-platform-core/Sources/POSIXCore/SignalHandler.swift:154:11: error: cannot find 'write' in scope
152 | // signal context.
153 | var signal = UInt8(signal)
154 | _ = write(Registry.fds[1], &signal, 1)
| `- error: cannot find 'write' in scope
155 | }
156 | #if os(Linux)
/host/spi-builder-workspace/.build/checkouts/swift-platform-core/Sources/POSIXCore/SignalHandler.swift:161:11: error: cannot find 'sigemptyset' in scope
159 | action.__sigaction_u.__sa_handler = handler
160 | #endif
161 | guard sigemptyset(&action.sa_mask) == 0 else { throw POSIXError() }
| `- error: cannot find 'sigemptyset' in scope
162 | action.sa_flags = SA_RESTART
163 |
/host/spi-builder-workspace/.build/checkouts/swift-platform-core/Sources/POSIXCore/SignalHandler.swift:162:23: error: cannot find 'SA_RESTART' in scope
160 | #endif
161 | guard sigemptyset(&action.sa_mask) == 0 else { throw POSIXError() }
162 | action.sa_flags = SA_RESTART
| `- error: cannot find 'SA_RESTART' in scope
163 |
164 | guard sigaction(signal, &action, nil) == 0 else { throw POSIXError() }
/host/spi-builder-workspace/.build/checkouts/swift-platform-core/Sources/POSIXCore/SignalHandler.swift:164:11: error: cannot find 'sigaction' in scope
162 | action.sa_flags = SA_RESTART
163 |
164 | guard sigaction(signal, &action, nil) == 0 else { throw POSIXError() }
| `- error: cannot find 'sigaction' in scope
165 | }
166 |
/host/spi-builder-workspace/.build/checkouts/swift-platform-core/Sources/POSIXCore/SignalHandler.swift:164:38: error: 'nil' requires a contextual type
162 | action.sa_flags = SA_RESTART
163 |
164 | guard sigaction(signal, &action, nil) == 0 else { throw POSIXError() }
| `- error: 'nil' requires a contextual type
165 | }
166 |
[12/25] Compiling POSIXCore POSIXError.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/.build/checkouts/swift-platform-core/Sources/POSIXCore/POSIXError.swift:9:30: error: cannot find 'errno' in scope
7 | internal let code: CInt
8 |
9 | public init(_ code: CInt = errno) {
| `- error: cannot find 'errno' in scope
10 | self.code = code
11 | }
/host/spi-builder-workspace/.build/checkouts/swift-platform-core/Sources/POSIXCore/POSIXError.swift:17:13: error: cannot find 'strerror_r' in scope
15 | public var description: String {
16 | return withUnsafeTemporaryAllocation(of: CChar.self, capacity: 256) {
17 | guard strerror_r(code, $0.baseAddress, $0.count) == 0,
| `- error: cannot find 'strerror_r' in scope
18 | let baseAddress = $0.baseAddress else {
19 | return "POSIX Error \(code)"
[13/25] Compiling Geometry Rect.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/25] Emitting module Primitives
<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/25] Compiling Primitives RingBuffer.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/26] Compiling POSIXCore SystemInfo+POSIX.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/.build/checkouts/swift-platform-core/Sources/POSIXCore/SystemInfo+POSIX.swift:11:5: error: cannot convert return expression of type '()' to return type 'Int'
9 | return Int(sysconf(_SC_PAGESIZE))
10 | #else
11 | precondition(false, "Unable to query page size on this platform")
| `- error: cannot convert return expression of type '()' to return type 'Int'
12 | #endif
13 | }
[17/26] Compiling Geometry Point.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/26] Emitting module Geometry
<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-4606859-3":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/finestructure/spi-images:basic-6.1-latest swift build --triple x86_64-unknown-linux-gnu 2>&1
basic-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:99ea6d26ace67c023f359493a2ac553a612b92a7f2dee009657225f46f43aa0e
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.1-latest
[0/1] Planning build
Building for debugging...
[0/8] Write swift-version-24593BA9C3E375BF.txt
[2/20] Compiling POSIXCore SystemInfo+POSIX.swift
/host/spi-builder-workspace/.build/checkouts/swift-platform-core/Sources/POSIXCore/SystemInfo+POSIX.swift:11:5: error: cannot convert return expression of type '()' to return type 'Int'
9 | return Int(sysconf(_SC_PAGESIZE))
10 | #else
11 | precondition(false, "Unable to query page size on this platform")
| `- error: cannot convert return expression of type '()' to return type 'Int'
12 | #endif
13 | }
[3/20] Compiling POSIXCore GNU+Overlay.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[4/20] Compiling POSIXCore Darwin+Overlay.swift
[5/20] Emitting module POSIXCore
/host/spi-builder-workspace/.build/checkouts/swift-platform-core/Sources/POSIXCore/POSIXError.swift:9:30: error: cannot find 'errno' in scope
7 | internal let code: CInt
8 |
9 | public init(_ code: CInt = errno) {
| `- error: cannot find 'errno' in scope
10 | self.code = code
11 | }
/host/spi-builder-workspace/.build/checkouts/swift-platform-core/Sources/POSIXCore/SignalHandler.swift:22:35: error: cannot find type 'sigaction' in scope
20 |
21 | private var handlers: [CInt:[ObjectIdentifier:Handler]] = [:]
22 | private var dispositions: [CInt:sigaction] = [:]
| `- error: cannot find type 'sigaction' in scope
23 | #if $InlineArray
24 | private nonisolated(unsafe) static var fds = InlineArray<2, CInt>(repeating: -1)
[6/20] Compiling POSIXCore SignalHandler.swift
/host/spi-builder-workspace/.build/checkouts/swift-platform-core/Sources/POSIXCore/SignalHandler.swift:22:35: error: cannot find type 'sigaction' in scope
20 |
21 | private var handlers: [CInt:[ObjectIdentifier:Handler]] = [:]
22 | private var dispositions: [CInt:sigaction] = [:]
| `- error: cannot find type 'sigaction' in scope
23 | #if $InlineArray
24 | private nonisolated(unsafe) static var fds = InlineArray<2, CInt>(repeating: -1)
/host/spi-builder-workspace/.build/checkouts/swift-platform-core/Sources/POSIXCore/SignalHandler.swift:40:11: error: cannot find 'close' in scope
38 | // Close channel.
39 | if Registry.fds[0] != -1 {
40 | _ = close(Registry.fds[0])
| `- error: cannot find 'close' in scope
41 | }
42 |
/host/spi-builder-workspace/.build/checkouts/swift-platform-core/Sources/POSIXCore/SignalHandler.swift:44:11: error: cannot find 'close' in scope
42 |
43 | if Registry.fds[1] != -1 {
44 | _ = close(Registry.fds[1])
| `- error: cannot find 'close' in scope
45 | }
46 | }
/host/spi-builder-workspace/.build/checkouts/swift-platform-core/Sources/POSIXCore/SignalHandler.swift:52:11: error: cannot find 'pipe' in scope
50 |
51 | // TODO(compnerd): use `signalfd` on Linux
52 | guard pipe(&Registry.fds) == 0 else { throw POSIXError() }
| `- error: cannot find 'pipe' in scope
53 |
54 | // Make the write non-blocking for the handler
/host/spi-builder-workspace/.build/checkouts/swift-platform-core/Sources/POSIXCore/SignalHandler.swift:55:17: error: cannot find 'fcntl' in scope
53 |
54 | // Make the write non-blocking for the handler
55 | let flags = fcntl(Registry.fds[1], F_GETFL)
| `- error: cannot find 'fcntl' in scope
56 | guard flags >= 0, fcntl(Registry.fds[1], F_SETFL, flags | O_NONBLOCK) == 0 else {
57 | throw POSIXError()
/host/spi-builder-workspace/.build/checkouts/swift-platform-core/Sources/POSIXCore/SignalHandler.swift:55:40: error: cannot find 'F_GETFL' in scope
53 |
54 | // Make the write non-blocking for the handler
55 | let flags = fcntl(Registry.fds[1], F_GETFL)
| `- error: cannot find 'F_GETFL' in scope
56 | guard flags >= 0, fcntl(Registry.fds[1], F_SETFL, flags | O_NONBLOCK) == 0 else {
57 | throw POSIXError()
/host/spi-builder-workspace/.build/checkouts/swift-platform-core/Sources/POSIXCore/SignalHandler.swift:56:23: error: cannot find 'fcntl' in scope
54 | // Make the write non-blocking for the handler
55 | let flags = fcntl(Registry.fds[1], F_GETFL)
56 | guard flags >= 0, fcntl(Registry.fds[1], F_SETFL, flags | O_NONBLOCK) == 0 else {
| `- error: cannot find 'fcntl' in scope
57 | throw POSIXError()
58 | }
/host/spi-builder-workspace/.build/checkouts/swift-platform-core/Sources/POSIXCore/SignalHandler.swift:56:46: error: cannot find 'F_SETFL' in scope
54 | // Make the write non-blocking for the handler
55 | let flags = fcntl(Registry.fds[1], F_GETFL)
56 | guard flags >= 0, fcntl(Registry.fds[1], F_SETFL, flags | O_NONBLOCK) == 0 else {
| `- error: cannot find 'F_SETFL' in scope
57 | throw POSIXError()
58 | }
/host/spi-builder-workspace/.build/checkouts/swift-platform-core/Sources/POSIXCore/SignalHandler.swift:56:63: error: cannot find 'O_NONBLOCK' in scope
54 | // Make the write non-blocking for the handler
55 | let flags = fcntl(Registry.fds[1], F_GETFL)
56 | guard flags >= 0, fcntl(Registry.fds[1], F_SETFL, flags | O_NONBLOCK) == 0 else {
| `- error: cannot find 'O_NONBLOCK' in scope
57 | throw POSIXError()
58 | }
/host/spi-builder-workspace/.build/checkouts/swift-platform-core/Sources/POSIXCore/SignalHandler.swift:65:21: error: cannot find 'read' in scope
63 | guard let self else { return }
64 |
65 | let count = read(Registry.fds[0], &buffer, buffer.count)
| `- error: cannot find 'read' in scope
66 | let errno = errno
67 | guard count > 0 else {
/host/spi-builder-workspace/.build/checkouts/swift-platform-core/Sources/POSIXCore/SignalHandler.swift:66:21: error: use of local variable 'errno' before its declaration
64 |
65 | let count = read(Registry.fds[0], &buffer, buffer.count)
66 | let errno = errno
| | `- error: use of local variable 'errno' before its declaration
| `- note: 'errno' declared here
67 | guard count > 0 else {
68 | if errno == EINTR { continue }
/host/spi-builder-workspace/.build/checkouts/swift-platform-core/Sources/POSIXCore/SignalHandler.swift:68:23: error: cannot find 'EINTR' in scope
66 | let errno = errno
67 | guard count > 0 else {
68 | if errno == EINTR { continue }
| `- error: cannot find 'EINTR' in scope
69 | if errno == 0 { return }
70 | fatalError("read failure from signal pipe: \(POSIXError(errno))")
/host/spi-builder-workspace/.build/checkouts/swift-platform-core/Sources/POSIXCore/POSIXError.swift:9:30: error: cannot find 'errno' in scope
7 | internal let code: CInt
8 |
9 | public init(_ code: CInt = errno) {
| `- error: cannot find 'errno' in scope
10 | self.code = code
11 | }
/host/spi-builder-workspace/.build/checkouts/swift-platform-core/Sources/POSIXCore/SignalHandler.swift:91:11: error: cannot find 'close' in scope
89 | // Close channel.
90 | if Registry.fds[0] != -1 {
91 | _ = close(Registry.fds[0])
| `- error: cannot find 'close' in scope
92 | Registry.fds[0] = -1
93 | }
/host/spi-builder-workspace/.build/checkouts/swift-platform-core/Sources/POSIXCore/SignalHandler.swift:96:11: error: cannot find 'close' in scope
94 |
95 | if Registry.fds[1] != -1 {
96 | _ = close(Registry.fds[1])
| `- error: cannot find 'close' in scope
97 | Registry.fds[1] = -1
98 | }
/host/spi-builder-workspace/.build/checkouts/swift-platform-core/Sources/POSIXCore/SignalHandler.swift:129:13: error: cannot find 'sigaction' in scope
127 | if var disposition = dispositions.removeValue(forKey: signal) {
128 | // Ignore errors - there is not much that can be done in the cleanup.
129 | _ = sigaction(signal, &disposition, nil)
| `- error: cannot find 'sigaction' in scope
130 | }
131 | handlers.removeValue(forKey: signal)
/host/spi-builder-workspace/.build/checkouts/swift-platform-core/Sources/POSIXCore/SignalHandler.swift:129:45: error: 'nil' requires a contextual type
127 | if var disposition = dispositions.removeValue(forKey: signal) {
128 | // Ignore errors - there is not much that can be done in the cleanup.
129 | _ = sigaction(signal, &disposition, nil)
| `- error: 'nil' requires a contextual type
130 | }
131 | handlers.removeValue(forKey: signal)
/host/spi-builder-workspace/.build/checkouts/swift-platform-core/Sources/POSIXCore/SignalHandler.swift:144:23: error: cannot find 'sigaction' in scope
142 |
143 | // Save the original signal action
144 | var disposition = sigaction()
| `- error: cannot find 'sigaction' in scope
145 | guard sigaction(signal, nil, &disposition) == 0 else { throw POSIXError() }
146 | dispositions[signal] = disposition
/host/spi-builder-workspace/.build/checkouts/swift-platform-core/Sources/POSIXCore/SignalHandler.swift:145:11: error: cannot find 'sigaction' in scope
143 | // Save the original signal action
144 | var disposition = sigaction()
145 | guard sigaction(signal, nil, &disposition) == 0 else { throw POSIXError() }
| `- error: cannot find 'sigaction' in scope
146 | dispositions[signal] = disposition
147 |
/host/spi-builder-workspace/.build/checkouts/swift-platform-core/Sources/POSIXCore/SignalHandler.swift:145:29: error: 'nil' requires a contextual type
143 | // Save the original signal action
144 | var disposition = sigaction()
145 | guard sigaction(signal, nil, &disposition) == 0 else { throw POSIXError() }
| `- error: 'nil' requires a contextual type
146 | dispositions[signal] = disposition
147 |
/host/spi-builder-workspace/.build/checkouts/swift-platform-core/Sources/POSIXCore/SignalHandler.swift:149:18: error: cannot find 'sigaction' in scope
147 |
148 | // Install minimal signal handler
149 | var action = sigaction()
| `- error: cannot find 'sigaction' in scope
150 | let handler: @convention(c) (CInt) -> Void = { signal in
151 | // Ignore errors - there is not much that can be done safely in the
/host/spi-builder-workspace/.build/checkouts/swift-platform-core/Sources/POSIXCore/SignalHandler.swift:154:11: error: cannot find 'write' in scope
152 | // signal context.
153 | var signal = UInt8(signal)
154 | _ = write(Registry.fds[1], &signal, 1)
| `- error: cannot find 'write' in scope
155 | }
156 | #if os(Linux)
/host/spi-builder-workspace/.build/checkouts/swift-platform-core/Sources/POSIXCore/SignalHandler.swift:161:11: error: cannot find 'sigemptyset' in scope
159 | action.__sigaction_u.__sa_handler = handler
160 | #endif
161 | guard sigemptyset(&action.sa_mask) == 0 else { throw POSIXError() }
| `- error: cannot find 'sigemptyset' in scope
162 | action.sa_flags = SA_RESTART
163 |
/host/spi-builder-workspace/.build/checkouts/swift-platform-core/Sources/POSIXCore/SignalHandler.swift:162:23: error: cannot find 'SA_RESTART' in scope
160 | #endif
161 | guard sigemptyset(&action.sa_mask) == 0 else { throw POSIXError() }
162 | action.sa_flags = SA_RESTART
| `- error: cannot find 'SA_RESTART' in scope
163 |
164 | guard sigaction(signal, &action, nil) == 0 else { throw POSIXError() }
/host/spi-builder-workspace/.build/checkouts/swift-platform-core/Sources/POSIXCore/SignalHandler.swift:164:11: error: cannot find 'sigaction' in scope
162 | action.sa_flags = SA_RESTART
163 |
164 | guard sigaction(signal, &action, nil) == 0 else { throw POSIXError() }
| `- error: cannot find 'sigaction' in scope
165 | }
166 |
/host/spi-builder-workspace/.build/checkouts/swift-platform-core/Sources/POSIXCore/SignalHandler.swift:164:38: error: 'nil' requires a contextual type
162 | action.sa_flags = SA_RESTART
163 |
164 | guard sigaction(signal, &action, nil) == 0 else { throw POSIXError() }
| `- error: 'nil' requires a contextual type
165 | }
166 |
[7/20] Compiling POSIXCore POSIXError.swift
/host/spi-builder-workspace/.build/checkouts/swift-platform-core/Sources/POSIXCore/POSIXError.swift:9:30: error: cannot find 'errno' in scope
7 | internal let code: CInt
8 |
9 | public init(_ code: CInt = errno) {
| `- error: cannot find 'errno' in scope
10 | self.code = code
11 | }
/host/spi-builder-workspace/.build/checkouts/swift-platform-core/Sources/POSIXCore/POSIXError.swift:17:13: error: cannot find 'strerror_r' in scope
15 | public var description: String {
16 | return withUnsafeTemporaryAllocation(of: CChar.self, capacity: 256) {
17 | guard strerror_r(code, $0.baseAddress, $0.count) == 0,
| `- error: cannot find 'strerror_r' in scope
18 | let baseAddress = $0.baseAddress else {
19 | return "POSIX Error \(code)"
[8/20] Emitting module Primitives
BUILD FAILURE 6.1 linux