The Swift Package Index logo.Swift Package Index

Has it really been five years since Swift Package Index launched? Read our anniversary blog post!

Build Information

Failed to build swift-platform-core, reference main (f73d89), with Swift 6.1 for Linux on 31 Aug 2025 23:31:47 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4609320-2":/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/swift-platform-core.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/swift-platform-core
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at f73d89d GHA: add some build validation in CI
Cloned https://github.com/compnerd/swift-platform-core.git
Revision (git rev-parse @):
f73d89dfb3963d1509ced797bed2a24bf1c36760
SUCCESS checkout https://github.com/compnerd/swift-platform-core.git at main
========================================
Build
========================================
Selected platform:         linux
Swift version:             6.1
Building package at path:  $PWD
https://github.com/compnerd/swift-platform-core.git
https://github.com/compnerd/swift-platform-core.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-4609320-2":/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
Building for debugging...
[0/3] Write sources
[2/3] Write swift-version-24593BA9C3E375BF.txt
[4/14] Emitting module WindowsCore
<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
[5/14] 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/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/Sources/POSIXCore/POSIXError.swift:18:11: error: cannot find 'strerror_r' in scope
16 |     return withUnsafeTemporaryAllocation(of: CChar.self, capacity: 256) {
17 |       guard let baseAddress = $0.baseAddress,
18 |           strerror_r(code, baseAddress, $0.count) == 0 else {
   |           `- error: cannot find 'strerror_r' in scope
19 |         return "POSIX Error \(code)"
20 |       }
[6/14] Compiling WindowsCore WindowsError.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
[7/14] 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/Sources/POSIXCore/SystemInfo+POSIX.swift:8:16: error: cannot find 'sysconf' in scope
 6 | public enum SystemInfo {
 7 |   public static var PageSize: Int {
 8 |     return Int(sysconf(_SC_PAGESIZE))
   |                `- error: cannot find 'sysconf' in scope
 9 |   }
10 | }
/host/spi-builder-workspace/Sources/POSIXCore/SystemInfo+POSIX.swift:8:24: error: cannot find '_SC_PAGESIZE' in scope
 6 | public enum SystemInfo {
 7 |   public static var PageSize: Int {
 8 |     return Int(sysconf(_SC_PAGESIZE))
   |                        `- error: cannot find '_SC_PAGESIZE' in scope
 9 |   }
10 | }
[8/14] Compiling WindowsCore SystemInfo+Windows.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/14] Compiling WindowsCore NTAPI.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/14] Compiling WindowsCore WinSDK+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
[11/14] 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
[12/15] 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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/Sources/POSIXCore/SignalHandler.swift:164:11: error: cannot find 'sigemptyset' in scope
162 |     action.__sigaction_u.__sa_handler = handler
163 |     #endif
164 |     guard sigemptyset(&action.sa_mask) == 0 else { throw POSIXError() }
    |           `- error: cannot find 'sigemptyset' in scope
165 |     action.sa_flags = SA_RESTART
166 |
/host/spi-builder-workspace/Sources/POSIXCore/SignalHandler.swift:165:23: error: cannot find 'SA_RESTART' in scope
163 |     #endif
164 |     guard sigemptyset(&action.sa_mask) == 0 else { throw POSIXError() }
165 |     action.sa_flags = SA_RESTART
    |                       `- error: cannot find 'SA_RESTART' in scope
166 |
167 |     guard sigaction(signal, &action, nil) == 0 else { throw POSIXError() }
/host/spi-builder-workspace/Sources/POSIXCore/SignalHandler.swift:167:11: error: cannot find 'sigaction' in scope
165 |     action.sa_flags = SA_RESTART
166 |
167 |     guard sigaction(signal, &action, nil) == 0 else { throw POSIXError() }
    |           `- error: cannot find 'sigaction' in scope
168 |   }
169 |
/host/spi-builder-workspace/Sources/POSIXCore/SignalHandler.swift:167:38: error: 'nil' requires a contextual type
165 |     action.sa_flags = SA_RESTART
166 |
167 |     guard sigaction(signal, &action, nil) == 0 else { throw POSIXError() }
    |                                      `- error: 'nil' requires a contextual type
168 |   }
169 |
error: emit-module command failed with exit code 1 (use -v to see invocation)
[14/15] 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
[15/15] 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/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/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)
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-2":/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/1] Write swift-version-24593BA9C3E375BF.txt
[2/12] Compiling POSIXCore SystemInfo+POSIX.swift
/host/spi-builder-workspace/Sources/POSIXCore/SystemInfo+POSIX.swift:8:16: error: cannot find 'sysconf' in scope
 6 | public enum SystemInfo {
 7 |   public static var PageSize: Int {
 8 |     return Int(sysconf(_SC_PAGESIZE))
   |                `- error: cannot find 'sysconf' in scope
 9 |   }
10 | }
/host/spi-builder-workspace/Sources/POSIXCore/SystemInfo+POSIX.swift:8:24: error: cannot find '_SC_PAGESIZE' in scope
 6 | public enum SystemInfo {
 7 |   public static var PageSize: Int {
 8 |     return Int(sysconf(_SC_PAGESIZE))
   |                        `- error: cannot find '_SC_PAGESIZE' in scope
 9 |   }
10 | }
[3/12] Emitting module WindowsCore
[4/12] Compiling WindowsCore WindowsError.swift
[5/12] Compiling WindowsCore SystemInfo+Windows.swift
[6/12] Compiling WindowsCore NTAPI.swift
[7/12] Compiling WindowsCore WinSDK+Overlay.swift
[8/13] Compiling POSIXCore GNU+Overlay.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[9/13] Compiling POSIXCore Darwin+Overlay.swift
[10/13] Compiling POSIXCore POSIXError.swift
/host/spi-builder-workspace/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/Sources/POSIXCore/POSIXError.swift:18:11: error: cannot find 'strerror_r' in scope
16 |     return withUnsafeTemporaryAllocation(of: CChar.self, capacity: 256) {
17 |       guard let baseAddress = $0.baseAddress,
18 |           strerror_r(code, baseAddress, $0.count) == 0 else {
   |           `- error: cannot find 'strerror_r' in scope
19 |         return "POSIX Error \(code)"
20 |       }
[11/13] Compiling POSIXCore SignalHandler.swift
/host/spi-builder-workspace/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/Sources/POSIXCore/SignalHandler.swift:164:11: error: cannot find 'sigemptyset' in scope
162 |     action.__sigaction_u.__sa_handler = handler
163 |     #endif
164 |     guard sigemptyset(&action.sa_mask) == 0 else { throw POSIXError() }
    |           `- error: cannot find 'sigemptyset' in scope
165 |     action.sa_flags = SA_RESTART
166 |
/host/spi-builder-workspace/Sources/POSIXCore/SignalHandler.swift:165:23: error: cannot find 'SA_RESTART' in scope
163 |     #endif
164 |     guard sigemptyset(&action.sa_mask) == 0 else { throw POSIXError() }
165 |     action.sa_flags = SA_RESTART
    |                       `- error: cannot find 'SA_RESTART' in scope
166 |
167 |     guard sigaction(signal, &action, nil) == 0 else { throw POSIXError() }
/host/spi-builder-workspace/Sources/POSIXCore/SignalHandler.swift:167:11: error: cannot find 'sigaction' in scope
165 |     action.sa_flags = SA_RESTART
166 |
167 |     guard sigaction(signal, &action, nil) == 0 else { throw POSIXError() }
    |           `- error: cannot find 'sigaction' in scope
168 |   }
169 |
/host/spi-builder-workspace/Sources/POSIXCore/SignalHandler.swift:167:38: error: 'nil' requires a contextual type
165 |     action.sa_flags = SA_RESTART
166 |
167 |     guard sigaction(signal, &action, nil) == 0 else { throw POSIXError() }
    |                                      `- error: 'nil' requires a contextual type
168 |   }
169 |
[12/13] Emitting module POSIXCore
/host/spi-builder-workspace/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/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)
BUILD FAILURE 6.1 linux