Build Information
Failed to build swift-signal-handling, reference 1.1.4 (c50ae0), with Swift 6.1 for Wasm on 20 Nov 2025 18:38:26 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4609320-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:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1Build Log
| `- error: cannot find 'SIGEMT' in scope
91 | #endif
92 | public static let badSystemCall = Signal(rawValue: SIGSYS)
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Signal.swift:92:62: error: cannot find 'SIGSYS' in scope
90 | public static let emulatorTrap = Signal(rawValue: SIGEMT)
91 | #endif
92 | public static let badSystemCall = Signal(rawValue: SIGSYS)
| `- error: cannot find 'SIGSYS' in scope
93 |
94 | /* *** Termination Signals *** */
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Signal.swift:113:50: error: cannot find 'SIGKILL' in scope
111 | /** Used to quit w/ generation of a core dump. Usually `Ctrl-\`. */
112 | public static let quit = Signal(rawValue: SIGQUIT)
113 | public static let killed = Signal(rawValue: SIGKILL)
| `- error: cannot find 'SIGKILL' in scope
114 | /** The user’s terminal disconnected. */
115 | public static let hangup = Signal(rawValue: SIGHUP)
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Signal.swift:115:50: error: cannot find 'SIGHUP' in scope
113 | public static let killed = Signal(rawValue: SIGKILL)
114 | /** The user’s terminal disconnected. */
115 | public static let hangup = Signal(rawValue: SIGHUP)
| `- error: cannot find 'SIGHUP' in scope
116 |
117 | /* *** Alarm Signals *** */
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Signal.swift:128:61: error: cannot find 'SIGALRM' in scope
126 | }
127 |
128 | public static let alarmClock = Signal(rawValue: SIGALRM)
| `- error: cannot find 'SIGALRM' in scope
129 | public static let virtualTimerExpired = Signal(rawValue: SIGVTALRM)
130 | public static let profilingTimerExpired = Signal(rawValue: SIGPROF)
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Signal.swift:129:61: error: cannot find 'SIGVTALRM' in scope
127 |
128 | public static let alarmClock = Signal(rawValue: SIGALRM)
129 | public static let virtualTimerExpired = Signal(rawValue: SIGVTALRM)
| `- error: cannot find 'SIGVTALRM' in scope
130 | public static let profilingTimerExpired = Signal(rawValue: SIGPROF)
131 |
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Signal.swift:130:61: error: cannot find 'SIGPROF' in scope
128 | public static let alarmClock = Signal(rawValue: SIGALRM)
129 | public static let virtualTimerExpired = Signal(rawValue: SIGVTALRM)
130 | public static let profilingTimerExpired = Signal(rawValue: SIGPROF)
| `- error: cannot find 'SIGPROF' in scope
131 |
132 | /* *** Asynchronous I/O Signals *** */
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Signal.swift:143:57: error: cannot find 'SIGIO' in scope
141 | }
142 |
143 | public static let ioPossible = Signal(rawValue: SIGIO)
| `- error: cannot find 'SIGIO' in scope
144 | public static let urgentIOCondition = Signal(rawValue: SIGURG)
145 | #if os(Linux)
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Signal.swift:144:57: error: cannot find 'SIGURG' in scope
142 |
143 | public static let ioPossible = Signal(rawValue: SIGIO)
144 | public static let urgentIOCondition = Signal(rawValue: SIGURG)
| `- error: cannot find 'SIGURG' in scope
145 | #if os(Linux)
146 | /** System V signal name, similar to SIGIO. */
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Signal.swift:164:57: error: cannot find 'SIGCHLD' in scope
162 | }
163 |
164 | public static let childExited = Signal(rawValue: SIGCHLD)
| `- error: cannot find 'SIGCHLD' in scope
165 | /* Obsolete name for SIGCHLD. */
166 | // public static let cildExited = Signal(rawValue: SIGCLD)
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Signal.swift:169:57: error: cannot find 'SIGSTOP' in scope
167 | public static let continued = Signal(rawValue: SIGCONT)
168 | /** Suspends the program. Cannot be handled, ignored or blocked. */
169 | public static let suspendedBySignal = Signal(rawValue: SIGSTOP)
| `- error: cannot find 'SIGSTOP' in scope
170 | /** Suspends the program but can be handled and ignored. Usually `Ctrl-Z`. */
171 | public static let suspended = Signal(rawValue: SIGTSTP)
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Signal.swift:172:57: error: cannot find 'SIGTTIN' in scope
170 | /** Suspends the program but can be handled and ignored. Usually `Ctrl-Z`. */
171 | public static let suspended = Signal(rawValue: SIGTSTP)
172 | public static let stoppedTTYInput = Signal(rawValue: SIGTTIN)
| `- error: cannot find 'SIGTTIN' in scope
173 | public static let stoppedTTYOutput = Signal(rawValue: SIGTTOU)
174 |
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Signal.swift:173:57: error: cannot find 'SIGTTOU' in scope
171 | public static let suspended = Signal(rawValue: SIGTSTP)
172 | public static let stoppedTTYInput = Signal(rawValue: SIGTTIN)
173 | public static let stoppedTTYOutput = Signal(rawValue: SIGTTOU)
| `- error: cannot find 'SIGTTOU' in scope
174 |
175 | /* *** Operation Error Signals *** */
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Signal.swift:186:61: error: cannot find 'SIGPIPE' in scope
184 | }
185 |
186 | public static let brokenPipe = Signal(rawValue: SIGPIPE)
| `- error: cannot find 'SIGPIPE' in scope
187 | // public static let resourceLost = Signal(rawValue: SIGLOST)
188 | public static let cputimeLimitExceeded = Signal(rawValue: SIGXCPU)
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Signal.swift:188:61: error: cannot find 'SIGXCPU' in scope
186 | public static let brokenPipe = Signal(rawValue: SIGPIPE)
187 | // public static let resourceLost = Signal(rawValue: SIGLOST)
188 | public static let cputimeLimitExceeded = Signal(rawValue: SIGXCPU)
| `- error: cannot find 'SIGXCPU' in scope
189 | public static let filesizeLimitExceeded = Signal(rawValue: SIGXFSZ)
190 |
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Signal.swift:189:61: error: cannot find 'SIGXFSZ' in scope
187 | // public static let resourceLost = Signal(rawValue: SIGLOST)
188 | public static let cputimeLimitExceeded = Signal(rawValue: SIGXCPU)
189 | public static let filesizeLimitExceeded = Signal(rawValue: SIGXFSZ)
| `- error: cannot find 'SIGXFSZ' in scope
190 |
191 | /* *** Miscellaneous Signals *** */
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Signal.swift:208:58: error: cannot find 'SIGUSR1' in scope
206 | }
207 |
208 | public static let userDefinedSignal1 = Signal(rawValue: SIGUSR1)
| `- error: cannot find 'SIGUSR1' in scope
209 | public static let userDefinedSignal2 = Signal(rawValue: SIGUSR2)
210 | public static let windowSizeChanges = Signal(rawValue: SIGWINCH)
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Signal.swift:209:58: error: cannot find 'SIGUSR2' in scope
207 |
208 | public static let userDefinedSignal1 = Signal(rawValue: SIGUSR1)
209 | public static let userDefinedSignal2 = Signal(rawValue: SIGUSR2)
| `- error: cannot find 'SIGUSR2' in scope
210 | public static let windowSizeChanges = Signal(rawValue: SIGWINCH)
211 | #if !os(Linux)
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Signal.swift:210:58: error: cannot find 'SIGWINCH' in scope
208 | public static let userDefinedSignal1 = Signal(rawValue: SIGUSR1)
209 | public static let userDefinedSignal2 = Signal(rawValue: SIGUSR2)
210 | public static let windowSizeChanges = Signal(rawValue: SIGWINCH)
| `- error: cannot find 'SIGWINCH' in scope
211 | #if !os(Linux)
212 | public static let informationRequest = Signal(rawValue: SIGINFO)
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Signal.swift:212:58: error: cannot find 'SIGINFO' in scope
210 | public static let windowSizeChanges = Signal(rawValue: SIGWINCH)
211 | #if !os(Linux)
212 | public static let informationRequest = Signal(rawValue: SIGINFO)
| `- error: cannot find 'SIGINFO' in scope
213 | #endif
214 |
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Signal.swift:237:3: error: cannot find 'sigemptyset' in scope
235 | public static let emptySigset: sigset_t = {
236 | var sigset = sigset_t()
237 | sigemptyset(&sigset)
| `- error: cannot find 'sigemptyset' in scope
238 | return sigset
239 | }()
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Signal.swift:247:3: error: cannot find 'sigfillset' in scope
245 | public static let fullSigset: sigset_t = {
246 | var sigset = sigset_t()
247 | sigfillset(&sigset)
| `- error: cannot find 'sigfillset' in scope
248 | return sigset
249 | }()
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Signal.swift:13:15: error: cannot find 'NSIG' in scope
11 | * It is simply a special value that can be used by kill to check if a signal can be sent to a given PID. */
12 | public static var allCases: [Signal] {
13 | return (1..<NSIG).map{ Signal(rawValue: CInt($0)) }
| `- error: cannot find 'NSIG' in scope
14 | }
15 |
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Signal.swift:232:19: error: cannot find 'NSIG' in scope
230 | public static func set(from sigset: sigset_t) -> Set<Signal> {
231 | var sigset = sigset
232 | return Set((1..<NSIG).filter{ sigismember(&sigset, $0) != 0 }.map{ Signal(rawValue: $0) })
| `- error: cannot find 'NSIG' in scope
233 | }
234 |
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Signal.swift:232:33: error: cannot find 'sigismember' in scope
230 | public static func set(from sigset: sigset_t) -> Set<Signal> {
231 | var sigset = sigset
232 | return Set((1..<NSIG).filter{ sigismember(&sigset, $0) != 0 }.map{ Signal(rawValue: $0) })
| `- error: cannot find 'sigismember' in scope
233 | }
234 |
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Signal.swift:253:3: error: cannot find 'sigemptyset' in scope
251 | public static func sigset(from setOfSignals: Set<Signal>) -> sigset_t {
252 | var sigset = sigset_t()
253 | sigemptyset(&sigset)
| `- error: cannot find 'sigemptyset' in scope
254 | for s in setOfSignals {sigaddset(&sigset, s.rawValue)}
255 | return sigset
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Signal.swift:254:26: error: cannot find 'sigaddset' in scope
252 | var sigset = sigset_t()
253 | sigemptyset(&sigset)
254 | for s in setOfSignals {sigaddset(&sigset, s.rawValue)}
| `- error: cannot find 'sigaddset' in scope
255 | return sigset
256 | }
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Signal.swift:262:3: error: cannot find 'sigemptyset' in scope
260 | public var sigset: sigset_t {
261 | var sigset = sigset_t()
262 | sigemptyset(&sigset)
| `- error: cannot find 'sigemptyset' in scope
263 | sigaddset(&sigset, rawValue)
264 | return sigset
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Signal.swift:263:3: error: cannot find 'sigaddset' in scope
261 | var sigset = sigset_t()
262 | sigemptyset(&sigset)
263 | sigaddset(&sigset, rawValue)
| `- error: cannot find 'sigaddset' in scope
264 | return sigset
265 | }
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Signal.swift:274:37: error: cannot find 'NSIG' in scope
272 | public var signalName: String? {
273 | #if !os(Linux)
274 | guard rawValue >= 0 && rawValue < NSIG else {
| `- error: cannot find 'NSIG' in scope
275 | return nil
276 | }
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Signal.swift:278:32: error: cannot find 'sys_signame' in scope
276 | }
277 |
278 | return withUnsafePointer(to: sys_signame, { siglistPtr in
| `- error: cannot find 'sys_signame' in scope
279 | return siglistPtr.withMemoryRebound(to: UnsafePointer<UInt8>?.self, capacity: Int(NSIG), { siglistPtrAsPointerToCStrings in
280 | return siglistPtrAsPointerToCStrings.advanced(by: Int(rawValue)).pointee.flatMap{ String(cString: $0) }
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Signal.swift:279:86: error: cannot find 'NSIG' in scope
277 |
278 | return withUnsafePointer(to: sys_signame, { siglistPtr in
279 | return siglistPtr.withMemoryRebound(to: UnsafePointer<UInt8>?.self, capacity: Int(NSIG), { siglistPtrAsPointerToCStrings in
| `- error: cannot find 'NSIG' in scope
280 | return siglistPtrAsPointerToCStrings.advanced(by: Int(rawValue)).pointee.flatMap{ String(cString: $0) }
281 | })
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Signal.swift:301:37: error: cannot find 'NSIG' in scope
299 | public var signalDescription: String? {
300 | #if !os(Linux)
301 | guard rawValue >= 0 && rawValue < NSIG else {
| `- error: cannot find 'NSIG' in scope
302 | return nil
303 | }
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Signal.swift:305:32: error: cannot find 'sys_siglist' in scope
303 | }
304 |
305 | return withUnsafePointer(to: sys_siglist, { siglistPtr in
| `- error: cannot find 'sys_siglist' in scope
306 | return siglistPtr.withMemoryRebound(to: UnsafePointer<UInt8>?.self, capacity: Int(NSIG), { siglistPtrAsPointerToCStrings in
307 | return siglistPtrAsPointerToCStrings.advanced(by: Int(rawValue)).pointee.flatMap{ String(cString: $0) }
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Signal.swift:306:86: error: cannot find 'NSIG' in scope
304 |
305 | return withUnsafePointer(to: sys_siglist, { siglistPtr in
306 | return siglistPtr.withMemoryRebound(to: UnsafePointer<UInt8>?.self, capacity: Int(NSIG), { siglistPtrAsPointerToCStrings in
| `- error: cannot find 'NSIG' in scope
307 | return siglistPtrAsPointerToCStrings.advanced(by: Int(rawValue)).pointee.flatMap{ String(cString: $0) }
308 | })
[73/138] Compiling CLTLogger EmojiSet.swift
[74/138] Compiling SignalHandling SigactionDelayer_Unsig.swift
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/SigactionHandler.swift:19:80: error: cannot find type 'siginfo_t' in scope
17 |
18 | case ansiC(@convention(c) (_ signalID: Int32) -> Void)
19 | case posix(@convention(c) (_ signalID: Int32, _ siginfo: UnsafeMutablePointer<siginfo_t>?, _ userThreadContext: UnsafeMutableRawPointer?) -> Void)
| `- error: cannot find type 'siginfo_t' in scope
20 |
21 | public static func ==(lhs: SigactionHandler, rhs: SigactionHandler) -> Bool {
/host/spi-builder-workspace/Sources/SignalHandling/DelayedSigaction/SigactionDelayer_Unsig.swift:128:21: error: cannot find 'NSConditionLock' in scope
126 | }
127 |
128 | static let lock = NSConditionLock(condition: Self.nothingToDo.rawValue)
| `- error: cannot find 'NSConditionLock' in scope
129 |
130 | static var action: Action = .nop
/host/spi-builder-workspace/Sources/SignalHandling/DelayedSigaction/SigactionDelayer_Unsig.swift:130:14: warning: static property 'action' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
128 | static let lock = NSConditionLock(condition: Self.nothingToDo.rawValue)
129 |
130 | static var action: Action = .nop
| |- warning: static property 'action' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'action' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'action' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
131 | static var completionResult: ErrorAndLogs?
132 |
/host/spi-builder-workspace/Sources/SignalHandling/DelayedSigaction/SigactionDelayer_Unsig.swift:131:14: warning: static property 'completionResult' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
129 |
130 | static var action: Action = .nop
131 | static var completionResult: ErrorAndLogs?
| |- warning: static property 'completionResult' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'completionResult' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'completionResult' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
132 |
133 | case nothingToDo
/host/spi-builder-workspace/Sources/SignalHandling/DelayedSigaction/SigactionDelayer_Unsig.swift:143:23: error: cannot find type 'DispatchSourceSignal' in scope
141 | var originalSigaction: Sigaction
142 |
143 | var dispatchSource: DispatchSourceSignal
| `- error: cannot find type 'DispatchSourceSignal' in scope
144 | var handlers = [DelayedSigaction: DelayedSigactionHandler]()
145 |
/host/spi-builder-workspace/Sources/SignalHandling/DelayedSigaction/SigactionDelayer_Unsig.swift:148:45: error: cannot find 'DispatchQueue' in scope
146 | }
147 |
148 | private static let signalProcessingQueue = DispatchQueue(label: "com.xcode-actions.unsigactioned-signals-processing-queue")
| `- error: cannot find 'DispatchQueue' in scope
149 |
150 | private static var hasCreatedProcessingThread = false
/host/spi-builder-workspace/Sources/SignalHandling/DelayedSigaction/SigactionDelayer_Unsig.swift:150:21: warning: static property 'hasCreatedProcessingThread' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
148 | private static let signalProcessingQueue = DispatchQueue(label: "com.xcode-actions.unsigactioned-signals-processing-queue")
149 |
150 | private static var hasCreatedProcessingThread = false
| |- warning: static property 'hasCreatedProcessingThread' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'hasCreatedProcessingThread' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'hasCreatedProcessingThread' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
151 | private static var unsigactionedSignals = [Signal: UnsigactionedSignal]()
152 |
/host/spi-builder-workspace/Sources/SignalHandling/DelayedSigaction/SigactionDelayer_Unsig.swift:151:21: warning: static property 'unsigactionedSignals' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
149 |
150 | private static var hasCreatedProcessingThread = false
151 | private static var unsigactionedSignals = [Signal: UnsigactionedSignal]()
| |- warning: static property 'unsigactionedSignals' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'unsigactionedSignals' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'unsigactionedSignals' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
152 |
153 | private static func executeOnThread(_ action: ThreadSync.Action) throws {
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Sigaction.swift:43:24: error: cannot find type 'sigaction' in scope
41 | If the handler of the sigaction is `SIG_IGN` or `SIG_DFL`, we check the `sa_flags` not to contains the `SA_SIGINFO` bit.
42 | If they do, we log an error, as this is invalid. */
43 | public init(rawValue: sigaction) {
| `- error: cannot find type 'sigaction' in scope
44 | self.mask = Signal.set(from: rawValue.sa_mask)
45 | self.flags = SigactionFlags(rawValue: rawValue.sa_flags)
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Sigaction.swift:78:23: error: cannot find type 'sigaction' in scope
76 | }
77 |
78 | public var rawValue: sigaction {
| `- error: cannot find type 'sigaction' in scope
79 | if !isValid {
80 | SignalHandlingConfig.logger?.warning("Getting sigaction from an invalid Sigaction.")
/host/spi-builder-workspace/Sources/SignalHandling/DelayedSigaction/SigactionDelayer_Unsig.swift:86:21: error: type 'Sigaction' does not conform to protocol 'RawRepresentable'
84 |
85 | - Returns: The previous sigaction if there was an unsigaction registered for the given signal, `nil` otherwise. */
86 | public static func updateOriginalSigaction(for signal: Signal, to sigaction: Sigaction) -> Sigaction? {
| `- error: type 'Sigaction' does not conform to protocol 'RawRepresentable'
87 | return signalProcessingQueue.sync{
88 | let previous = unsigactionedSignals[signal]?.originalSigaction
/host/spi-builder-workspace/Sources/SignalHandling/DelayedSigaction/SigactionDelayer_Unsig.swift:206:31: error: cannot find 'DispatchSource' in scope
204 | }
205 | } else {
206 | let dispatchSourceSignal = DispatchSource.makeSignalSource(signal: signal.rawValue, queue: signalProcessingQueue)
| `- error: cannot find 'DispatchSource' in scope
207 | /* Apparently the dispatchSourceSignal does not need to be weak in the handler because the handler is released when the source is canceled.
208 | * I manually tested this and found no confirmation or infirmation of this in the documentation. */
/host/spi-builder-workspace/Sources/SignalHandling/DelayedSigaction/SigactionDelayer_Unsig.swift:268:16: error: cannot find 'DispatchGroup' in scope
266 |
267 | for _ in 0..<count {
268 | let group = DispatchGroup()
| `- error: cannot find 'DispatchGroup' in scope
269 | var runOriginalHandlerFinal = true
270 | for (_, handler) in unsigactionedSignal.handlers {
/host/spi-builder-workspace/Sources/SignalHandling/DelayedSigaction/SigactionDelayer_Unsig.swift:293:15: error: cannot find 'DispatchGroup' in scope
291 |
292 | var error: Error?
293 | let group = DispatchGroup()
| `- error: cannot find 'DispatchGroup' in scope
294 | group.enter()
295 | Thread.detachNewThread{
/host/spi-builder-workspace/Sources/SignalHandling/DelayedSigaction/SigactionDelayer_Unsig.swift:295:3: error: cannot find 'Thread' in scope
293 | let group = DispatchGroup()
294 | group.enter()
295 | Thread.detachNewThread{
| `- error: cannot find 'Thread' in scope
296 | Thread.current.name = "com.xcode-actions.unsigactioned-signals-thread"
297 |
/host/spi-builder-workspace/Sources/SignalHandling/DelayedSigaction/SigactionDelayer_Unsig.swift:296:4: error: cannot find 'Thread' in scope
294 | group.enter()
295 | Thread.detachNewThread{
296 | Thread.current.name = "com.xcode-actions.unsigactioned-signals-thread"
| `- error: cannot find 'Thread' in scope
297 |
298 | /* Unblock all signals in this thread. */
/host/spi-builder-workspace/Sources/SignalHandling/DelayedSigaction/SigactionDelayer_Unsig.swift:300:14: error: cannot find 'pthread_sigmask' in scope
298 | /* Unblock all signals in this thread. */
299 | var noSignals = Signal.emptySigset
300 | let ret = pthread_sigmask(SIG_SETMASK, &noSignals, nil /* old signals */)
| `- error: cannot find 'pthread_sigmask' in scope
301 | if ret != 0 {
302 | error = SignalHandlingError.destructiveSystemError(Errno(rawValue: ret))
/host/spi-builder-workspace/Sources/SignalHandling/DelayedSigaction/SigactionDelayer_Unsig.swift:300:30: error: cannot find 'SIG_SETMASK' in scope
298 | /* Unblock all signals in this thread. */
299 | var noSignals = Signal.emptySigset
300 | let ret = pthread_sigmask(SIG_SETMASK, &noSignals, nil /* old signals */)
| `- error: cannot find 'SIG_SETMASK' in scope
301 | if ret != 0 {
302 | error = SignalHandlingError.destructiveSystemError(Errno(rawValue: ret))
/host/spi-builder-workspace/Sources/SignalHandling/DelayedSigaction/SigactionDelayer_Unsig.swift:371:20: error: cannot find 'pthread_self' in scope
369 | * Anyway, we need to reinstall the sigaction handler after the signal has been sent and processed,
370 | * so we need to have some control, which `raise` does not give. */
371 | let thread = pthread_self()
| `- error: cannot find 'pthread_self' in scope
372 | // let killResult = raise(signal.rawValue)
373 | let killResult = pthread_kill(thread, signal.rawValue)
/host/spi-builder-workspace/Sources/SignalHandling/DelayedSigaction/SigactionDelayer_Unsig.swift:373:24: error: cannot find 'pthread_kill' in scope
371 | let thread = pthread_self()
372 | // let killResult = raise(signal.rawValue)
373 | let killResult = pthread_kill(thread, signal.rawValue)
| `- error: cannot find 'pthread_kill' in scope
374 | if killResult != 0 {
375 | completionResult.errorLogs.append(("Cannot send signal to unsigactioned thread.", ["signal": "\(signal)", "kill_result": "\(killResult)"]))
/host/spi-builder-workspace/Sources/SignalHandling/DelayedSigaction/SigactionDelayer_Unsig.swift:379:27: error: cannot find 'pthread_sigmask' in scope
377 |
378 | /* Re-unblock all signals (in case a handler blocked one). */
379 | let sigmaskResult = pthread_sigmask(SIG_SETMASK, &emptyMask, nil)
| `- error: cannot find 'pthread_sigmask' in scope
380 | if sigmaskResult != 0 {
381 | completionResult.errorLogs.append((
/host/spi-builder-workspace/Sources/SignalHandling/DelayedSigaction/SigactionDelayer_Unsig.swift:379:43: error: cannot find 'SIG_SETMASK' in scope
377 |
378 | /* Re-unblock all signals (in case a handler blocked one). */
379 | let sigmaskResult = pthread_sigmask(SIG_SETMASK, &emptyMask, nil)
| `- error: cannot find 'SIG_SETMASK' in scope
380 | if sigmaskResult != 0 {
381 | completionResult.errorLogs.append((
/host/spi-builder-workspace/Sources/SignalHandling/DelayedSigaction/SigactionDelayer_Unsig.swift:379:68: error: 'nil' requires a contextual type
377 |
378 | /* Re-unblock all signals (in case a handler blocked one). */
379 | let sigmaskResult = pthread_sigmask(SIG_SETMASK, &emptyMask, nil)
| `- error: 'nil' requires a contextual type
380 | if sigmaskResult != 0 {
381 | completionResult.errorLogs.append((
[75/138] Compiling CLTLogger Scanner+OldOS.swift
[80/138] Compiling ArgumentParser CollectionExtensions.swift
[81/138] Compiling ArgumentParser Mutex.swift
[82/138] Compiling ArgumentParser Platform.swift
[83/138] Compiling ArgumentParser SequenceExtensions.swift
[84/138] Compiling ArgumentParser StringExtensions.swift
[85/138] Compiling ArgumentParser SwiftExtensions.swift
[86/138] Compiling CLTLogger String+Utils.swift
[87/138] Compiling CLTLogger OutputEnvironment.swift
[88/138] Compiling CLTLogger NSLock+withLock.swift
[89/138] Compiling CLTLogger SGR.swift
[91/139] Compiling ArgumentParser Tree.swift
[92/139] Compiling ArgumentParser CodingKeyValidator.swift
[93/139] Compiling ArgumentParser NonsenseFlagsValidator.swift
[94/139] Compiling ArgumentParser ParsableArgumentsValidation.swift
[95/139] Compiling ArgumentParser PositionalArgumentsValidator.swift
[96/139] Compiling ArgumentParser UniqueNamesValidator.swift
[103/139] Compiling ArgumentParser ArgumentHelp.swift
[110/139] Compiling ArgumentParser OptionGroup.swift
[111/139] Compiling ArgumentParser AsyncParsableCommand.swift
[112/139] Compiling ArgumentParser CommandConfiguration.swift
[127/139] Compiling ArgumentParser ParserError.swift
[128/139] Compiling ArgumentParser SplitArguments.swift
[129/139] Compiling ArgumentParser DumpHelpGenerator.swift
[130/139] Compiling ArgumentParser HelpCommand.swift
[131/139] Compiling ArgumentParser HelpGenerator.swift
[132/139] Compiling ArgumentParser MessageInfo.swift
[133/139] Compiling ArgumentParser UsageGenerator.swift
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-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:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1
wasm-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:4dfe22dedd7a52399668938cbd466a34545eff77bced906005dc4032a6549d90
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest
[0/1] Planning build
[1/1] Compiling plugin GenerateManual
[2/2] Compiling plugin GenerateDoccReference
Building for debugging...
[2/12] Write swift-version-24593BA9C3E375BF.txt
[4/50] Compiling Logging MetadataProvider.swift
[5/50] Compiling Logging Locks.swift
[6/50] Emitting module Logging
[7/50] Compiling SystemPackage IORing.swift
[8/50] Compiling SystemPackage RawIORequest.swift
[9/50] Compiling SystemPackage Backcompat.swift
[10/50] Compiling SystemPackage CInterop.swift
[11/54] Compiling SystemPackage Syscalls.swift
[12/54] Compiling SystemPackage WindowsSyscallAdapters.swift
[13/54] Compiling SystemPackage MachPort.swift
[14/54] Compiling SystemPackage PlatformString.swift
[15/54] Compiling SystemPackage FilePathWindows.swift
[16/54] Compiling SystemPackage FilePermissions.swift
[17/54] Compiling SystemPackage IOCompletion.swift
[18/54] Compiling SystemPackage IORequest.swift
[19/54] Compiling SystemPackage FilePathSyntax.swift
[20/54] Compiling SystemPackage FilePathTemp.swift
[21/54] Compiling SystemPackage FilePathTempPosix.swift
[22/54] Compiling SystemPackage FilePathTempWindows.swift
[23/54] Compiling SystemPackage Constants.swift
[24/54] Compiling SystemPackage Exports.swift
[25/54] Compiling SystemPackage Mocking.swift
[26/54] Compiling SystemPackage RawBuffer.swift
[27/54] Compiling SystemPackage SystemString.swift
[28/54] Compiling SystemPackage Util+StringArray.swift
[29/54] Compiling SystemPackage Util.swift
[30/54] Compiling SystemPackage UtilConsumers.swift
[31/54] Compiling Logging LogHandler.swift
[32/54] Compiling Logging Logging.swift
[34/55] Emitting module ArgumentParserToolInfo
[35/55] Compiling ArgumentParserToolInfo ToolInfo.swift
[36/56] Compiling SystemPackage Errno.swift
[37/56] Compiling SystemPackage ErrnoWindows.swift
[38/56] Compiling SystemPackage FileDescriptor.swift
[39/56] Compiling SystemPackage FileHelpers.swift
[40/56] Compiling SystemPackage FileOperations.swift
[41/56] Emitting module SystemPackage
[42/56] Compiling SystemPackage FilePath.swift
[43/56] Compiling SystemPackage FilePathComponentView.swift
[44/56] Compiling SystemPackage FilePathComponents.swift
[45/56] Compiling SystemPackage FilePathParsing.swift
[46/56] Compiling SystemPackage FilePathString.swift
[48/77] Wrapping AST for SystemPackage for debugging
[49/77] Wrapping AST for Logging for debugging
[51/121] Compiling SignalHandling SignalHandlingConfig.swift
/host/spi-builder-workspace/Sources/SignalHandling/SignalHandlingConfig.swift:9:20: warning: static property 'logger' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
7 | public enum SignalHandlingConfig {
8 |
9 | public static var logger: Logging.Logger? = {
| |- warning: static property 'logger' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'logger' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'logger' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
10 | return Logger(label: "com.xcode-actions.signal-handling")
11 | }()
[52/121] Compiling SignalHandling SignalHandlingError.swift
[53/122] Compiling CLTLogger Scanner+OldOS.swift
[54/123] Compiling ArgumentParser OptionGroup.swift
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Sigaction.swift:43:24: error: cannot find type 'sigaction' in scope
41 | If the handler of the sigaction is `SIG_IGN` or `SIG_DFL`, we check the `sa_flags` not to contains the `SA_SIGINFO` bit.
42 | If they do, we log an error, as this is invalid. */
43 | public init(rawValue: sigaction) {
| `- error: cannot find type 'sigaction' in scope
44 | self.mask = Signal.set(from: rawValue.sa_mask)
45 | self.flags = SigactionFlags(rawValue: rawValue.sa_flags)
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Sigaction.swift:78:23: error: cannot find type 'sigaction' in scope
76 | }
77 |
78 | public var rawValue: sigaction {
| `- error: cannot find type 'sigaction' in scope
79 | if !isValid {
80 | SignalHandlingConfig.logger?.warning("Getting sigaction from an invalid Sigaction.")
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Sigaction.swift:9:20: warning: static property 'ignoreAction' is not concurrency-safe because non-'Sendable' type 'Sigaction' may have shared mutable state; this is an error in the Swift 6 language mode
5 |
6 |
7 | public struct Sigaction : Equatable, RawRepresentable {
| `- note: consider making struct 'Sigaction' conform to the 'Sendable' protocol
8 |
9 | public static let ignoreAction = Sigaction(handler: .ignoreHandler)
| |- warning: static property 'ignoreAction' is not concurrency-safe because non-'Sendable' type 'Sigaction' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'ignoreAction' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
10 | public static let defaultAction = Sigaction(handler: .defaultHandler)
11 |
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Sigaction.swift:10:20: warning: static property 'defaultAction' is not concurrency-safe because non-'Sendable' type 'Sigaction' may have shared mutable state; this is an error in the Swift 6 language mode
5 |
6 |
7 | public struct Sigaction : Equatable, RawRepresentable {
| `- note: consider making struct 'Sigaction' conform to the 'Sendable' protocol
8 |
9 | public static let ignoreAction = Sigaction(handler: .ignoreHandler)
10 | public static let defaultAction = Sigaction(handler: .defaultHandler)
| |- warning: static property 'defaultAction' is not concurrency-safe because non-'Sendable' type 'Sigaction' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'defaultAction' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
11 |
12 | /**
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/SigactionHandler.swift:19:80: error: cannot find type 'siginfo_t' in scope
17 |
18 | case ansiC(@convention(c) (_ signalID: Int32) -> Void)
19 | case posix(@convention(c) (_ signalID: Int32, _ siginfo: UnsafeMutablePointer<siginfo_t>?, _ userThreadContext: UnsafeMutableRawPointer?) -> Void)
| `- error: cannot find type 'siginfo_t' in scope
20 |
21 | public static func ==(lhs: SigactionHandler, rhs: SigactionHandler) -> Bool {
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Sigaction.swift:7:15: error: type 'Sigaction' does not conform to protocol 'RawRepresentable'
5 |
6 |
7 | public struct Sigaction : Equatable, RawRepresentable {
| |- error: type 'Sigaction' does not conform to protocol 'RawRepresentable'
| `- note: add stubs for conformance
8 |
9 | public static let ignoreAction = Sigaction(handler: .ignoreHandler)
Swift.RawRepresentable.RawValue:2:16: note: protocol requires nested type 'RawValue'
1 | protocol RawRepresentable {
2 | associatedtype RawValue}
| `- note: protocol requires nested type 'RawValue'
3 |
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/SigactionFlag.swift:40:55: error: cannot find 'SA_SIGINFO' in scope
38 | and should match the matching prototype.
39 | This bit should not be set when assigning `SIG_DFL` or `SIG_IGN`. */
40 | public static let siginfo = SigactionFlags(rawValue: SA_SIGINFO)
| `- error: cannot find 'SA_SIGINFO' in scope
41 |
42 | public let rawValue: CInt
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Sigaction.swift:49:49: error: cannot find 'SIG_IGN' in scope
47 | #if !os(Linux)
48 | switch OpaquePointer(bitPattern: unsafeBitCast(rawValue.__sigaction_u.__sa_handler, to: Int.self)) {
49 | case OpaquePointer(bitPattern: unsafeBitCast(SIG_IGN, to: Int.self)): self.handler = .ignoreHandler
| `- error: cannot find 'SIG_IGN' in scope
50 | case OpaquePointer(bitPattern: unsafeBitCast(SIG_DFL, to: Int.self)): self.handler = .defaultHandler
51 | default:
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Sigaction.swift:50:49: error: cannot find 'SIG_DFL' in scope
48 | switch OpaquePointer(bitPattern: unsafeBitCast(rawValue.__sigaction_u.__sa_handler, to: Int.self)) {
49 | case OpaquePointer(bitPattern: unsafeBitCast(SIG_IGN, to: Int.self)): self.handler = .ignoreHandler
50 | case OpaquePointer(bitPattern: unsafeBitCast(SIG_DFL, to: Int.self)): self.handler = .defaultHandler
| `- error: cannot find 'SIG_DFL' in scope
51 | default:
52 | if flags.contains(.siginfo) {self.handler = .posix(rawValue.__sigaction_u.__sa_sigaction)}
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Sigaction.swift:71:16: error: cannot find 'sigaction' in scope
69 |
70 | public init(signal: Signal) throws {
71 | var action = sigaction()
| `- error: cannot find 'sigaction' in scope
72 | guard sigaction(signal.rawValue, nil, &action) == 0 else {
73 | throw SignalHandlingError.nonDestructiveSystemError(Errno(rawValue: errno))
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Sigaction.swift:72:9: error: cannot find 'sigaction' in scope
70 | public init(signal: Signal) throws {
71 | var action = sigaction()
72 | guard sigaction(signal.rawValue, nil, &action) == 0 else {
| `- error: cannot find 'sigaction' in scope
73 | throw SignalHandlingError.nonDestructiveSystemError(Errno(rawValue: errno))
74 | }
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Sigaction.swift:72:36: error: 'nil' requires a contextual type
70 | public init(signal: Signal) throws {
71 | var action = sigaction()
72 | guard sigaction(signal.rawValue, nil, &action) == 0 else {
| `- error: 'nil' requires a contextual type
73 | throw SignalHandlingError.nonDestructiveSystemError(Errno(rawValue: errno))
74 | }
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Sigaction.swift:75:8: error: no exact matches in call to initializer
27 | public var handler: SigactionHandler
28 |
29 | public init(handler: SigactionHandler) {
| `- note: incorrect labels for candidate (have: '(rawValue:)', expected: '(handler:)')
30 | self.mask = []
31 | switch handler {
:
68 | }
69 |
70 | public init(signal: Signal) throws {
| `- note: incorrect labels for candidate (have: '(rawValue:)', expected: '(signal:)')
71 | var action = sigaction()
72 | guard sigaction(signal.rawValue, nil, &action) == 0 else {
73 | throw SignalHandlingError.nonDestructiveSystemError(Errno(rawValue: errno))
74 | }
75 | self.init(rawValue: action)
| `- error: no exact matches in call to initializer
76 | }
77 |
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Sigaction.swift:83:13: error: cannot find 'sigaction' in scope
81 | }
82 |
83 | var ret = sigaction()
| `- error: cannot find 'sigaction' in scope
84 | ret.sa_mask = Signal.sigset(from: mask)
85 | ret.sa_flags = flags.rawValue
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Sigaction.swift:89:59: error: cannot find 'SIG_IGN' in scope
87 | #if !os(Linux)
88 | switch handler {
89 | case .ignoreHandler: ret.__sigaction_u.__sa_handler = SIG_IGN
| `- error: cannot find 'SIG_IGN' in scope
90 | case .defaultHandler: ret.__sigaction_u.__sa_handler = SIG_DFL
91 | case .ansiC(let h): ret.__sigaction_u.__sa_handler = h
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Sigaction.swift:90:59: error: cannot find 'SIG_DFL' in scope
88 | switch handler {
89 | case .ignoreHandler: ret.__sigaction_u.__sa_handler = SIG_IGN
90 | case .defaultHandler: ret.__sigaction_u.__sa_handler = SIG_DFL
| `- error: cannot find 'SIG_DFL' in scope
91 | case .ansiC(let h): ret.__sigaction_u.__sa_handler = h
92 | case .posix(let h): ret.__sigaction_u.__sa_sigaction = h
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Sigaction.swift:128:20: error: cannot find 'sigaction' in scope
126 | }
127 |
128 | var oldCAction = sigaction()
| `- error: cannot find 'sigaction' in scope
129 | var newCAction = self.rawValue
130 | guard sigaction(signal.rawValue, &newCAction, &oldCAction) == 0 else {
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Sigaction.swift:130:9: error: cannot find 'sigaction' in scope
128 | var oldCAction = sigaction()
129 | var newCAction = self.rawValue
130 | guard sigaction(signal.rawValue, &newCAction, &oldCAction) == 0 else {
| `- error: cannot find 'sigaction' in scope
131 | throw SignalHandlingError.nonDestructiveSystemError(Errno(rawValue: errno))
132 | }
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Sigaction.swift:133:22: error: no exact matches in call to initializer
27 | public var handler: SigactionHandler
28 |
29 | public init(handler: SigactionHandler) {
| `- note: incorrect labels for candidate (have: '(rawValue:)', expected: '(handler:)')
30 | self.mask = []
31 | switch handler {
:
68 | }
69 |
70 | public init(signal: Signal) throws {
| `- note: incorrect labels for candidate (have: '(rawValue:)', expected: '(signal:)')
71 | var action = sigaction()
72 | guard sigaction(signal.rawValue, nil, &action) == 0 else {
:
131 | throw SignalHandlingError.nonDestructiveSystemError(Errno(rawValue: errno))
132 | }
133 | let oldSigaction = Sigaction(rawValue: oldCAction)
| `- error: no exact matches in call to initializer
134 | if revertIfIgnored && oldSigaction == .ignoreAction {
135 | guard sigaction(signal.rawValue, &oldCAction, nil) == 0 else {
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Sigaction.swift:135:10: error: cannot find 'sigaction' in scope
133 | let oldSigaction = Sigaction(rawValue: oldCAction)
134 | if revertIfIgnored && oldSigaction == .ignoreAction {
135 | guard sigaction(signal.rawValue, &oldCAction, nil) == 0 else {
| `- error: cannot find 'sigaction' in scope
136 | throw SignalHandlingError.destructiveSystemError(Errno(rawValue: errno))
137 | }
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Sigaction.swift:135:50: error: 'nil' requires a contextual type
133 | let oldSigaction = Sigaction(rawValue: oldCAction)
134 | if revertIfIgnored && oldSigaction == .ignoreAction {
135 | guard sigaction(signal.rawValue, &oldCAction, nil) == 0 else {
| `- error: 'nil' requires a contextual type
136 | throw SignalHandlingError.destructiveSystemError(Errno(rawValue: errno))
137 | }
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/SigactionFlag.swift:11:59: error: cannot find 'SA_NOCLDSTOP' in scope
9 | If this bit is set when installing a catching function for the `SIGCHLD` signal,
10 | the `SIGCHLD` signal will be generated only when a child process exits, not when a child process stops. */
11 | public static let noChildStop = SigactionFlags(rawValue: SA_NOCLDSTOP)
| `- error: cannot find 'SA_NOCLDSTOP' in scope
12 |
13 | /**
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/SigactionFlag.swift:19:59: error: cannot find 'SA_NOCLDWAIT' in scope
17 | it blocks until all of the calling process’s child processes terminate,
18 | and then returns a value of -1 with errno set to ECHILD. */
19 | public static let noChildWait = SigactionFlags(rawValue: SA_NOCLDWAIT)
| `- error: cannot find 'SA_NOCLDWAIT' in scope
20 |
21 | /**
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/SigactionFlag.swift:23:55: error: cannot find 'SA_ONSTACK' in scope
21 | /**
22 | If this bit is set, the system will deliver the signal to the process on a signal stack, specified with `sigaltstack(2)`. */
23 | public static let onStack = SigactionFlags(rawValue: SA_ONSTACK)
| `- error: cannot find 'SA_ONSTACK' in scope
24 |
25 | /**
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/SigactionFlag.swift:27:55: error: cannot find 'SA_NODEFER' in scope
25 | /**
26 | If this bit is set, further occurrences of the delivered signal are not masked during the execution of the handler. */
27 | public static let noDefer = SigactionFlags(rawValue: SA_NODEFER)
| `- error: cannot find 'SA_NODEFER' in scope
28 |
29 | /**
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/SigactionFlag.swift:31:65: error: cannot find 'SA_RESETHAND' in scope
29 | /**
30 | If this bit is set, the handler is reset back to `SIG_DFL` at the moment the signal is delivered. */
31 | public static let resetHandler = SigactionFlags(rawValue: CInt(SA_RESETHAND) /* On Linux, an UInt32 instead of Int32, so we cast… */)
| `- error: cannot find 'SA_RESETHAND' in scope
32 |
33 | /** See `sigaction(2)`. */
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/SigactionFlag.swift:34:55: error: cannot find 'SA_RESTART' in scope
32 |
33 | /** See `sigaction(2)`. */
34 | public static let restart = SigactionFlags(rawValue: SA_RESTART)
| `- error: cannot find 'SA_RESTART' in scope
35 |
36 | /**
[55/123] Compiling ArgumentParser AsyncParsableCommand.swift
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Sigaction.swift:43:24: error: cannot find type 'sigaction' in scope
41 | If the handler of the sigaction is `SIG_IGN` or `SIG_DFL`, we check the `sa_flags` not to contains the `SA_SIGINFO` bit.
42 | If they do, we log an error, as this is invalid. */
43 | public init(rawValue: sigaction) {
| `- error: cannot find type 'sigaction' in scope
44 | self.mask = Signal.set(from: rawValue.sa_mask)
45 | self.flags = SigactionFlags(rawValue: rawValue.sa_flags)
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Sigaction.swift:78:23: error: cannot find type 'sigaction' in scope
76 | }
77 |
78 | public var rawValue: sigaction {
| `- error: cannot find type 'sigaction' in scope
79 | if !isValid {
80 | SignalHandlingConfig.logger?.warning("Getting sigaction from an invalid Sigaction.")
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Sigaction.swift:9:20: warning: static property 'ignoreAction' is not concurrency-safe because non-'Sendable' type 'Sigaction' may have shared mutable state; this is an error in the Swift 6 language mode
5 |
6 |
7 | public struct Sigaction : Equatable, RawRepresentable {
| `- note: consider making struct 'Sigaction' conform to the 'Sendable' protocol
8 |
9 | public static let ignoreAction = Sigaction(handler: .ignoreHandler)
| |- warning: static property 'ignoreAction' is not concurrency-safe because non-'Sendable' type 'Sigaction' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'ignoreAction' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
10 | public static let defaultAction = Sigaction(handler: .defaultHandler)
11 |
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Sigaction.swift:10:20: warning: static property 'defaultAction' is not concurrency-safe because non-'Sendable' type 'Sigaction' may have shared mutable state; this is an error in the Swift 6 language mode
5 |
6 |
7 | public struct Sigaction : Equatable, RawRepresentable {
| `- note: consider making struct 'Sigaction' conform to the 'Sendable' protocol
8 |
9 | public static let ignoreAction = Sigaction(handler: .ignoreHandler)
10 | public static let defaultAction = Sigaction(handler: .defaultHandler)
| |- warning: static property 'defaultAction' is not concurrency-safe because non-'Sendable' type 'Sigaction' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'defaultAction' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
11 |
12 | /**
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/SigactionHandler.swift:19:80: error: cannot find type 'siginfo_t' in scope
17 |
18 | case ansiC(@convention(c) (_ signalID: Int32) -> Void)
19 | case posix(@convention(c) (_ signalID: Int32, _ siginfo: UnsafeMutablePointer<siginfo_t>?, _ userThreadContext: UnsafeMutableRawPointer?) -> Void)
| `- error: cannot find type 'siginfo_t' in scope
20 |
21 | public static func ==(lhs: SigactionHandler, rhs: SigactionHandler) -> Bool {
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Sigaction.swift:7:15: error: type 'Sigaction' does not conform to protocol 'RawRepresentable'
5 |
6 |
7 | public struct Sigaction : Equatable, RawRepresentable {
| |- error: type 'Sigaction' does not conform to protocol 'RawRepresentable'
| `- note: add stubs for conformance
8 |
9 | public static let ignoreAction = Sigaction(handler: .ignoreHandler)
Swift.RawRepresentable.RawValue:2:16: note: protocol requires nested type 'RawValue'
1 | protocol RawRepresentable {
2 | associatedtype RawValue}
| `- note: protocol requires nested type 'RawValue'
3 |
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/SigactionFlag.swift:40:55: error: cannot find 'SA_SIGINFO' in scope
38 | and should match the matching prototype.
39 | This bit should not be set when assigning `SIG_DFL` or `SIG_IGN`. */
40 | public static let siginfo = SigactionFlags(rawValue: SA_SIGINFO)
| `- error: cannot find 'SA_SIGINFO' in scope
41 |
42 | public let rawValue: CInt
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Sigaction.swift:49:49: error: cannot find 'SIG_IGN' in scope
47 | #if !os(Linux)
48 | switch OpaquePointer(bitPattern: unsafeBitCast(rawValue.__sigaction_u.__sa_handler, to: Int.self)) {
49 | case OpaquePointer(bitPattern: unsafeBitCast(SIG_IGN, to: Int.self)): self.handler = .ignoreHandler
| `- error: cannot find 'SIG_IGN' in scope
50 | case OpaquePointer(bitPattern: unsafeBitCast(SIG_DFL, to: Int.self)): self.handler = .defaultHandler
51 | default:
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Sigaction.swift:50:49: error: cannot find 'SIG_DFL' in scope
48 | switch OpaquePointer(bitPattern: unsafeBitCast(rawValue.__sigaction_u.__sa_handler, to: Int.self)) {
49 | case OpaquePointer(bitPattern: unsafeBitCast(SIG_IGN, to: Int.self)): self.handler = .ignoreHandler
50 | case OpaquePointer(bitPattern: unsafeBitCast(SIG_DFL, to: Int.self)): self.handler = .defaultHandler
| `- error: cannot find 'SIG_DFL' in scope
51 | default:
52 | if flags.contains(.siginfo) {self.handler = .posix(rawValue.__sigaction_u.__sa_sigaction)}
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Sigaction.swift:71:16: error: cannot find 'sigaction' in scope
69 |
70 | public init(signal: Signal) throws {
71 | var action = sigaction()
| `- error: cannot find 'sigaction' in scope
72 | guard sigaction(signal.rawValue, nil, &action) == 0 else {
73 | throw SignalHandlingError.nonDestructiveSystemError(Errno(rawValue: errno))
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Sigaction.swift:72:9: error: cannot find 'sigaction' in scope
70 | public init(signal: Signal) throws {
71 | var action = sigaction()
72 | guard sigaction(signal.rawValue, nil, &action) == 0 else {
| `- error: cannot find 'sigaction' in scope
73 | throw SignalHandlingError.nonDestructiveSystemError(Errno(rawValue: errno))
74 | }
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Sigaction.swift:72:36: error: 'nil' requires a contextual type
70 | public init(signal: Signal) throws {
71 | var action = sigaction()
72 | guard sigaction(signal.rawValue, nil, &action) == 0 else {
| `- error: 'nil' requires a contextual type
73 | throw SignalHandlingError.nonDestructiveSystemError(Errno(rawValue: errno))
74 | }
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Sigaction.swift:75:8: error: no exact matches in call to initializer
27 | public var handler: SigactionHandler
28 |
29 | public init(handler: SigactionHandler) {
| `- note: incorrect labels for candidate (have: '(rawValue:)', expected: '(handler:)')
30 | self.mask = []
31 | switch handler {
:
68 | }
69 |
70 | public init(signal: Signal) throws {
| `- note: incorrect labels for candidate (have: '(rawValue:)', expected: '(signal:)')
71 | var action = sigaction()
72 | guard sigaction(signal.rawValue, nil, &action) == 0 else {
73 | throw SignalHandlingError.nonDestructiveSystemError(Errno(rawValue: errno))
74 | }
75 | self.init(rawValue: action)
| `- error: no exact matches in call to initializer
76 | }
77 |
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Sigaction.swift:83:13: error: cannot find 'sigaction' in scope
81 | }
82 |
83 | var ret = sigaction()
| `- error: cannot find 'sigaction' in scope
84 | ret.sa_mask = Signal.sigset(from: mask)
85 | ret.sa_flags = flags.rawValue
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Sigaction.swift:89:59: error: cannot find 'SIG_IGN' in scope
87 | #if !os(Linux)
88 | switch handler {
89 | case .ignoreHandler: ret.__sigaction_u.__sa_handler = SIG_IGN
| `- error: cannot find 'SIG_IGN' in scope
90 | case .defaultHandler: ret.__sigaction_u.__sa_handler = SIG_DFL
91 | case .ansiC(let h): ret.__sigaction_u.__sa_handler = h
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Sigaction.swift:90:59: error: cannot find 'SIG_DFL' in scope
88 | switch handler {
89 | case .ignoreHandler: ret.__sigaction_u.__sa_handler = SIG_IGN
90 | case .defaultHandler: ret.__sigaction_u.__sa_handler = SIG_DFL
| `- error: cannot find 'SIG_DFL' in scope
91 | case .ansiC(let h): ret.__sigaction_u.__sa_handler = h
92 | case .posix(let h): ret.__sigaction_u.__sa_sigaction = h
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Sigaction.swift:128:20: error: cannot find 'sigaction' in scope
126 | }
127 |
128 | var oldCAction = sigaction()
| `- error: cannot find 'sigaction' in scope
129 | var newCAction = self.rawValue
130 | guard sigaction(signal.rawValue, &newCAction, &oldCAction) == 0 else {
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Sigaction.swift:130:9: error: cannot find 'sigaction' in scope
128 | var oldCAction = sigaction()
129 | var newCAction = self.rawValue
130 | guard sigaction(signal.rawValue, &newCAction, &oldCAction) == 0 else {
| `- error: cannot find 'sigaction' in scope
131 | throw SignalHandlingError.nonDestructiveSystemError(Errno(rawValue: errno))
132 | }
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Sigaction.swift:133:22: error: no exact matches in call to initializer
27 | public var handler: SigactionHandler
28 |
29 | public init(handler: SigactionHandler) {
| `- note: incorrect labels for candidate (have: '(rawValue:)', expected: '(handler:)')
30 | self.mask = []
31 | switch handler {
:
68 | }
69 |
70 | public init(signal: Signal) throws {
| `- note: incorrect labels for candidate (have: '(rawValue:)', expected: '(signal:)')
71 | var action = sigaction()
72 | guard sigaction(signal.rawValue, nil, &action) == 0 else {
:
131 | throw SignalHandlingError.nonDestructiveSystemError(Errno(rawValue: errno))
132 | }
133 | let oldSigaction = Sigaction(rawValue: oldCAction)
| `- error: no exact matches in call to initializer
134 | if revertIfIgnored && oldSigaction == .ignoreAction {
135 | guard sigaction(signal.rawValue, &oldCAction, nil) == 0 else {
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Sigaction.swift:135:10: error: cannot find 'sigaction' in scope
133 | let oldSigaction = Sigaction(rawValue: oldCAction)
134 | if revertIfIgnored && oldSigaction == .ignoreAction {
135 | guard sigaction(signal.rawValue, &oldCAction, nil) == 0 else {
| `- error: cannot find 'sigaction' in scope
136 | throw SignalHandlingError.destructiveSystemError(Errno(rawValue: errno))
137 | }
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Sigaction.swift:135:50: error: 'nil' requires a contextual type
133 | let oldSigaction = Sigaction(rawValue: oldCAction)
134 | if revertIfIgnored && oldSigaction == .ignoreAction {
135 | guard sigaction(signal.rawValue, &oldCAction, nil) == 0 else {
| `- error: 'nil' requires a contextual type
136 | throw SignalHandlingError.destructiveSystemError(Errno(rawValue: errno))
137 | }
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/SigactionFlag.swift:11:59: error: cannot find 'SA_NOCLDSTOP' in scope
9 | If this bit is set when installing a catching function for the `SIGCHLD` signal,
10 | the `SIGCHLD` signal will be generated only when a child process exits, not when a child process stops. */
11 | public static let noChildStop = SigactionFlags(rawValue: SA_NOCLDSTOP)
| `- error: cannot find 'SA_NOCLDSTOP' in scope
12 |
13 | /**
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/SigactionFlag.swift:19:59: error: cannot find 'SA_NOCLDWAIT' in scope
17 | it blocks until all of the calling process’s child processes terminate,
18 | and then returns a value of -1 with errno set to ECHILD. */
19 | public static let noChildWait = SigactionFlags(rawValue: SA_NOCLDWAIT)
| `- error: cannot find 'SA_NOCLDWAIT' in scope
20 |
21 | /**
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/SigactionFlag.swift:23:55: error: cannot find 'SA_ONSTACK' in scope
21 | /**
22 | If this bit is set, the system will deliver the signal to the process on a signal stack, specified with `sigaltstack(2)`. */
23 | public static let onStack = SigactionFlags(rawValue: SA_ONSTACK)
| `- error: cannot find 'SA_ONSTACK' in scope
24 |
25 | /**
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/SigactionFlag.swift:27:55: error: cannot find 'SA_NODEFER' in scope
25 | /**
26 | If this bit is set, further occurrences of the delivered signal are not masked during the execution of the handler. */
27 | public static let noDefer = SigactionFlags(rawValue: SA_NODEFER)
| `- error: cannot find 'SA_NODEFER' in scope
28 |
29 | /**
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/SigactionFlag.swift:31:65: error: cannot find 'SA_RESETHAND' in scope
29 | /**
30 | If this bit is set, the handler is reset back to `SIG_DFL` at the moment the signal is delivered. */
31 | public static let resetHandler = SigactionFlags(rawValue: CInt(SA_RESETHAND) /* On Linux, an UInt32 instead of Int32, so we cast… */)
| `- error: cannot find 'SA_RESETHAND' in scope
32 |
33 | /** See `sigaction(2)`. */
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/SigactionFlag.swift:34:55: error: cannot find 'SA_RESTART' in scope
32 |
33 | /** See `sigaction(2)`. */
34 | public static let restart = SigactionFlags(rawValue: SA_RESTART)
| `- error: cannot find 'SA_RESTART' in scope
35 |
36 | /**
[56/123] Compiling CLTLogger EmojiSet.swift
[57/123] Compiling ArgumentParser CommandConfiguration.swift
[58/123] Compiling ArgumentParser CommandGroup.swift
[59/123] Compiling ArgumentParser EnumerableFlag.swift
/host/spi-builder-workspace/Sources/SignalHandling/DelayedSigaction/DelayedSigaction.swift:10:21: warning: static property 'latestID' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
8 | public struct DelayedSigaction : Hashable {
9 |
10 | private static var latestID = 0
| |- warning: static property 'latestID' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'latestID' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'latestID' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
11 |
12 | internal var id: Int
[60/123] Compiling ArgumentParser ExpressibleByArgument.swift
/host/spi-builder-workspace/Sources/SignalHandling/DelayedSigaction/DelayedSigaction.swift:10:21: warning: static property 'latestID' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
8 | public struct DelayedSigaction : Hashable {
9 |
10 | private static var latestID = 0
| |- warning: static property 'latestID' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'latestID' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'latestID' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
11 |
12 | internal var id: Int
[61/123] Compiling SignalHandling SigactionDelayer_Block.swift
/host/spi-builder-workspace/Sources/SignalHandling/DelayedSigaction/SigactionDelayer_Block.swift:171:21: error: cannot find 'NSConditionLock' in scope
169 | }
170 |
171 | static let lock = NSConditionLock(condition: Self.nothingToDo.rawValue)
| `- error: cannot find 'NSConditionLock' in scope
172 |
173 | static var action: Action = .nop
/host/spi-builder-workspace/Sources/SignalHandling/DelayedSigaction/SigactionDelayer_Block.swift:173:14: warning: static property 'action' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
171 | static let lock = NSConditionLock(condition: Self.nothingToDo.rawValue)
172 |
173 | static var action: Action = .nop
| |- warning: static property 'action' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'action' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'action' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
174 | static var error: Error?
175 |
/host/spi-builder-workspace/Sources/SignalHandling/DelayedSigaction/SigactionDelayer_Block.swift:174:14: warning: static property 'error' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
172 |
173 | static var action: Action = .nop
174 | static var error: Error?
| |- warning: static property 'error' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'error' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'error' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
175 |
176 | case nothingToDo
/host/spi-builder-workspace/Sources/SignalHandling/DelayedSigaction/SigactionDelayer_Block.swift:184:23: error: cannot find type 'DispatchSourceSignal' in scope
182 | private struct BlockedSignal {
183 |
184 | var dispatchSource: DispatchSourceSignal
| `- error: cannot find type 'DispatchSourceSignal' in scope
185 | var handlers = [DelayedSigaction: DelayedSigactionHandler]()
186 |
/host/spi-builder-workspace/Sources/SignalHandling/DelayedSigaction/SigactionDelayer_Block.swift:189:45: error: cannot find 'DispatchQueue' in scope
187 | }
188 |
189 | private static let signalProcessingQueue = DispatchQueue(label: "com.xcode-actions.blocked-signals-processing-queue")
| `- error: cannot find 'DispatchQueue' in scope
190 |
191 | private static var bootstrapDone = false
/host/spi-builder-workspace/Sources/SignalHandling/DelayedSigaction/SigactionDelayer_Block.swift:191:21: warning: static property 'bootstrapDone' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
189 | private static let signalProcessingQueue = DispatchQueue(label: "com.xcode-actions.blocked-signals-processing-queue")
190 |
191 | private static var bootstrapDone = false
| |- warning: static property 'bootstrapDone' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'bootstrapDone' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'bootstrapDone' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
192 | private static var blockedSignals = [Signal: BlockedSignal]()
193 |
/host/spi-builder-workspace/Sources/SignalHandling/DelayedSigaction/SigactionDelayer_Block.swift:192:21: warning: static property 'blockedSignals' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
190 |
191 | private static var bootstrapDone = false
192 | private static var blockedSignals = [Signal: BlockedSignal]()
| |- warning: static property 'blockedSignals' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'blockedSignals' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'blockedSignals' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
193 |
194 | private static func executeOnThread(_ action: ThreadSync.Action) throws {
/host/spi-builder-workspace/Sources/SignalHandling/DelayedSigaction/SigactionDelayer_Block.swift:67:13: error: cannot find 'pthread_sigmask' in scope
65 |
66 | var signalsSigset = Signal.sigset(from: signals)
67 | let ret = pthread_sigmask(SIG_SETMASK, &signalsSigset, nil /* old signals */)
| `- error: cannot find 'pthread_sigmask' in scope
68 | if ret != 0 {
69 | throw SignalHandlingError.nonDestructiveSystemError(Errno(rawValue: ret))
/host/spi-builder-workspace/Sources/SignalHandling/DelayedSigaction/SigactionDelayer_Block.swift:67:29: error: cannot find 'SIG_SETMASK' in scope
65 |
66 | var signalsSigset = Signal.sigset(from: signals)
67 | let ret = pthread_sigmask(SIG_SETMASK, &signalsSigset, nil /* old signals */)
| `- error: cannot find 'SIG_SETMASK' in scope
68 | if ret != 0 {
69 | throw SignalHandlingError.nonDestructiveSystemError(Errno(rawValue: ret))
/host/spi-builder-workspace/Sources/SignalHandling/DelayedSigaction/SigactionDelayer_Block.swift:67:58: error: 'nil' requires a contextual type
65 |
66 | var signalsSigset = Signal.sigset(from: signals)
67 | let ret = pthread_sigmask(SIG_SETMASK, &signalsSigset, nil /* old signals */)
| `- error: 'nil' requires a contextual type
68 | if ret != 0 {
69 | throw SignalHandlingError.nonDestructiveSystemError(Errno(rawValue: ret))
/host/spi-builder-workspace/Sources/SignalHandling/DelayedSigaction/SigactionDelayer_Block.swift:73:15: error: cannot find 'DispatchGroup' in scope
71 |
72 | var error: Error?
73 | let group = DispatchGroup()
| `- error: cannot find 'DispatchGroup' in scope
74 | group.enter()
75 | Thread.detachNewThread{
/host/spi-builder-workspace/Sources/SignalHandling/DelayedSigaction/SigactionDelayer_Block.swift:75:3: error: cannot find 'Thread' in scope
73 | let group = DispatchGroup()
74 | group.enter()
75 | Thread.detachNewThread{
| `- error: cannot find 'Thread' in scope
76 | Thread.current.name = "com.xcode-actions.blocked-signals-thread"
77 |
/host/spi-builder-workspace/Sources/SignalHandling/DelayedSigaction/SigactionDelayer_Block.swift:76:4: error: cannot find 'Thread' in scope
74 | group.enter()
75 | Thread.detachNewThread{
76 | Thread.current.name = "com.xcode-actions.blocked-signals-thread"
| `- error: cannot find 'Thread' in scope
77 |
78 | /* Unblock all signals in this thread. */
/host/spi-builder-workspace/Sources/SignalHandling/DelayedSigaction/SigactionDelayer_Block.swift:80:14: error: cannot find 'pthread_sigmask' in scope
78 | /* Unblock all signals in this thread. */
79 | var noSignals = Signal.emptySigset
80 | let ret = pthread_sigmask(SIG_SETMASK, &noSignals, nil /* old signals */)
| `- error: cannot find 'pthread_sigmask' in scope
81 | if ret != 0 {
82 | error = SignalHandlingError.destructiveSystemError(Errno(rawValue: ret))
/host/spi-builder-workspace/Sources/SignalHandling/DelayedSigaction/SigactionDelayer_Block.swift:80:30: error: cannot find 'SIG_SETMASK' in scope
78 | /* Unblock all signals in this thread. */
79 | var noSignals = Signal.emptySigset
80 | let ret = pthread_sigmask(SIG_SETMASK, &noSignals, nil /* old signals */)
| `- error: cannot find 'SIG_SETMASK' in scope
81 | if ret != 0 {
82 | error = SignalHandlingError.destructiveSystemError(Errno(rawValue: ret))
/host/spi-builder-workspace/Sources/SignalHandling/DelayedSigaction/SigactionDelayer_Block.swift:241:31: error: cannot find 'DispatchSource' in scope
239 | try executeOnThread(.block(signal))
240 |
241 | let dispatchSourceSignal = DispatchSource.makeSignalSource(signal: signal.rawValue, queue: signalProcessingQueue)
| `- error: cannot find 'DispatchSource' in scope
242 | /* Apparently the dispatchSourceSignal does not need to be weak in the handler because the handler is released when the source is canceled.
243 | * I manually tested this and found no confirmation or infirmation of this in the documentation. */
/host/spi-builder-workspace/Sources/SignalHandling/DelayedSigaction/SigactionDelayer_Block.swift:321:16: error: cannot find 'DispatchGroup' in scope
319 |
320 | for _ in 0..<count {
321 | let group = DispatchGroup()
| `- error: cannot find 'DispatchGroup' in scope
322 | var runOriginalHandlerFinal = true
323 | for (_, handler) in blockedSignal.handlers {
/host/spi-builder-workspace/Sources/SignalHandling/DelayedSigaction/SigactionDelayer_Block.swift:375:17: error: cannot find 'pthread_sigmask' in scope
373 | // loggerLessThreadSafeDebugLog("🧵 Processing block action for \(signal)…")
374 | var sigset = signal.sigset
375 | let ret = pthread_sigmask(SIG_BLOCK, &sigset, nil /* old signals */)
| `- error: cannot find 'pthread_sigmask' in scope
376 | if ret != 0 {
377 | throw SignalHandlingError.destructiveSystemError(Errno(rawValue: ret))
/host/spi-builder-workspace/Sources/SignalHandling/DelayedSigaction/SigactionDelayer_Block.swift:375:33: error: cannot find 'SIG_BLOCK' in scope
373 | // loggerLessThreadSafeDebugLog("🧵 Processing block action for \(signal)…")
374 | var sigset = signal.sigset
375 | let ret = pthread_sigmask(SIG_BLOCK, &sigset, nil /* old signals */)
| `- error: cannot find 'SIG_BLOCK' in scope
376 | if ret != 0 {
377 | throw SignalHandlingError.destructiveSystemError(Errno(rawValue: ret))
/host/spi-builder-workspace/Sources/SignalHandling/DelayedSigaction/SigactionDelayer_Block.swift:375:53: error: 'nil' requires a contextual type
373 | // loggerLessThreadSafeDebugLog("🧵 Processing block action for \(signal)…")
374 | var sigset = signal.sigset
375 | let ret = pthread_sigmask(SIG_BLOCK, &sigset, nil /* old signals */)
| `- error: 'nil' requires a contextual type
376 | if ret != 0 {
377 | throw SignalHandlingError.destructiveSystemError(Errno(rawValue: ret))
/host/spi-builder-workspace/Sources/SignalHandling/DelayedSigaction/SigactionDelayer_Block.swift:383:17: error: cannot find 'pthread_sigmask' in scope
381 | // loggerLessThreadSafeDebugLog("🧵 Processing unblock action for \(signal)…")
382 | var sigset = signal.sigset
383 | let ret = pthread_sigmask(SIG_UNBLOCK, &sigset, nil /* old signals */)
| `- error: cannot find 'pthread_sigmask' in scope
384 | if ret != 0 {
385 | throw SignalHandlingError.destructiveSystemError(Errno(rawValue: ret))
/host/spi-builder-workspace/Sources/SignalHandling/DelayedSigaction/SigactionDelayer_Block.swift:383:33: error: cannot find 'SIG_UNBLOCK' in scope
381 | // loggerLessThreadSafeDebugLog("🧵 Processing unblock action for \(signal)…")
382 | var sigset = signal.sigset
383 | let ret = pthread_sigmask(SIG_UNBLOCK, &sigset, nil /* old signals */)
| `- error: cannot find 'SIG_UNBLOCK' in scope
384 | if ret != 0 {
385 | throw SignalHandlingError.destructiveSystemError(Errno(rawValue: ret))
/host/spi-builder-workspace/Sources/SignalHandling/DelayedSigaction/SigactionDelayer_Block.swift:383:55: error: 'nil' requires a contextual type
381 | // loggerLessThreadSafeDebugLog("🧵 Processing unblock action for \(signal)…")
382 | var sigset = signal.sigset
383 | let ret = pthread_sigmask(SIG_UNBLOCK, &sigset, nil /* old signals */)
| `- error: 'nil' requires a contextual type
384 | if ret != 0 {
385 | throw SignalHandlingError.destructiveSystemError(Errno(rawValue: ret))
/host/spi-builder-workspace/Sources/SignalHandling/DelayedSigaction/SigactionDelayer_Block.swift:395:18: error: cannot find 'pthread_sigmask' in scope
393 | /* We update the sigset only when signal is not ignored
394 | * because it is used only in that case and this is getting the current sigmask can fail. */
395 | let ret = pthread_sigmask(SIG_SETMASK, nil /* new signals */, &sigset)
| `- error: cannot find 'pthread_sigmask' in scope
396 | if ret != 0 {
397 | throw SignalHandlingError.nonDestructiveSystemError(Errno(rawValue: ret))
/host/spi-builder-workspace/Sources/SignalHandling/DelayedSigaction/SigactionDelayer_Block.swift:395:34: error: cannot find 'SIG_SETMASK' in scope
393 | /* We update the sigset only when signal is not ignored
394 | * because it is used only in that case and this is getting the current sigmask can fail. */
395 | let ret = pthread_sigmask(SIG_SETMASK, nil /* new signals */, &sigset)
| `- error: cannot find 'SIG_SETMASK' in scope
396 | if ret != 0 {
397 | throw SignalHandlingError.nonDestructiveSystemError(Errno(rawValue: ret))
/host/spi-builder-workspace/Sources/SignalHandling/DelayedSigaction/SigactionDelayer_Block.swift:395:47: error: 'nil' requires a contextual type
393 | /* We update the sigset only when signal is not ignored
394 | * because it is used only in that case and this is getting the current sigmask can fail. */
395 | let ret = pthread_sigmask(SIG_SETMASK, nil /* new signals */, &sigset)
| `- error: 'nil' requires a contextual type
396 | if ret != 0 {
397 | throw SignalHandlingError.nonDestructiveSystemError(Errno(rawValue: ret))
/host/spi-builder-workspace/Sources/SignalHandling/DelayedSigaction/SigactionDelayer_Block.swift:399:8: error: cannot find 'sigdelset' in scope
397 | throw SignalHandlingError.nonDestructiveSystemError(Errno(rawValue: ret))
398 | }
399 | sigdelset(&sigset, signal.rawValue)
| `- error: cannot find 'sigdelset' in scope
400 | }
401 | /* Let’s get the pending signals on this thread. */
/host/spi-builder-workspace/Sources/SignalHandling/DelayedSigaction/SigactionDelayer_Block.swift:403:17: error: cannot find 'sigpending' in scope
401 | /* Let’s get the pending signals on this thread. */
402 | var pendingSignals = sigset_t()
403 | let ret = sigpending(&pendingSignals)
| `- error: cannot find 'sigpending' in scope
404 | /* If sigpending failed, we assume the signal is pending. */
405 | if ret != 0 || !Signal.set(from: pendingSignals).contains(signal) {
/host/spi-builder-workspace/Sources/SignalHandling/DelayedSigaction/SigactionDelayer_Block.swift:409:8: error: cannot find 'pthread_kill' in scope
407 | * Which mean it is probably pending on some other thread, forever. */
408 | // loggerLessThreadSafeDebugLog("🧵 Resending signal to manager thread \(signal)…")
409 | pthread_kill(pthread_self(), signal.rawValue)
| `- error: cannot find 'pthread_kill' in scope
410 | }
411 | if !isIgnored {
/host/spi-builder-workspace/Sources/SignalHandling/DelayedSigaction/SigactionDelayer_Block.swift:409:21: error: cannot find 'pthread_self' in scope
407 | * Which mean it is probably pending on some other thread, forever. */
408 | // loggerLessThreadSafeDebugLog("🧵 Resending signal to manager thread \(signal)…")
409 | pthread_kill(pthread_self(), signal.rawValue)
| `- error: cannot find 'pthread_self' in scope
410 | }
411 | if !isIgnored {
/host/spi-builder-workspace/Sources/SignalHandling/DelayedSigaction/SigactionDelayer_Block.swift:415:8: error: cannot find 'sigsuspend' in scope
413 | * I know there is a race condition. */
414 | // loggerLessThreadSafeDebugLog("🧵 Calling sigsuspend for \(signal)…")
415 | sigsuspend(&sigset)
| `- error: cannot find 'sigsuspend' in scope
416 | }
417 |
/host/spi-builder-workspace/Sources/SignalHandling/DelayedSigaction/SigactionDelayer_Block.swift:421:17: error: cannot find 'pthread_sigmask' in scope
419 | // loggerLessThreadSafeDebugLog("🧵 Processing drop action for \(signal)…")
420 | var sigset = sigset_t()
421 | let ret = pthread_sigmask(SIG_SETMASK, nil /* new signals */, &sigset)
| `- error: cannot find 'pthread_sigmask' in scope
422 | if ret != 0 {
423 | throw SignalHandlingError.nonDestructiveSystemError(Errno(rawValue: ret))
/host/spi-builder-workspace/Sources/SignalHandling/DelayedSigaction/SigactionDelayer_Block.swift:421:33: error: cannot find 'SIG_SETMASK' in scope
419 | // loggerLessThreadSafeDebugLog("🧵 Processing drop action for \(signal)…")
420 | var sigset = sigset_t()
421 | let ret = pthread_sigmask(SIG_SETMASK, nil /* new signals */, &sigset)
| `- error: cannot find 'SIG_SETMASK' in scope
422 | if ret != 0 {
423 | throw SignalHandlingError.nonDestructiveSystemError(Errno(rawValue: ret))
/host/spi-builder-workspace/Sources/SignalHandling/DelayedSigaction/SigactionDelayer_Block.swift:421:46: error: 'nil' requires a contextual type
419 | // loggerLessThreadSafeDebugLog("🧵 Processing drop action for \(signal)…")
420 | var sigset = sigset_t()
421 | let ret = pthread_sigmask(SIG_SETMASK, nil /* new signals */, &sigset)
| `- error: 'nil' requires a contextual type
422 | if ret != 0 {
423 | throw SignalHandlingError.nonDestructiveSystemError(Errno(rawValue: ret))
/host/spi-builder-workspace/Sources/SignalHandling/DelayedSigaction/SigactionDelayer_Block.swift:425:7: error: cannot find 'sigdelset' in scope
423 | throw SignalHandlingError.nonDestructiveSystemError(Errno(rawValue: ret))
424 | }
425 | sigdelset(&sigset, signal.rawValue)
| `- error: cannot find 'sigdelset' in scope
426 |
427 | let oldAction = try Sigaction.ignoreAction.install(on: signal, revertIfIgnored: false, updateUnsigRegistrations: false)
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Sigaction.swift:43:24: error: cannot find type 'sigaction' in scope
41 | If the handler of the sigaction is `SIG_IGN` or `SIG_DFL`, we check the `sa_flags` not to contains the `SA_SIGINFO` bit.
42 | If they do, we log an error, as this is invalid. */
43 | public init(rawValue: sigaction) {
| `- error: cannot find type 'sigaction' in scope
44 | self.mask = Signal.set(from: rawValue.sa_mask)
45 | self.flags = SigactionFlags(rawValue: rawValue.sa_flags)
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Sigaction.swift:78:23: error: cannot find type 'sigaction' in scope
76 | }
77 |
78 | public var rawValue: sigaction {
| `- error: cannot find type 'sigaction' in scope
79 | if !isValid {
80 | SignalHandlingConfig.logger?.warning("Getting sigaction from an invalid Sigaction.")
/host/spi-builder-workspace/Sources/SignalHandling/DelayedSigaction/SigactionDelayer_Block.swift:427:7: error: type 'Sigaction' does not conform to protocol 'RawRepresentable'
425 | sigdelset(&sigset, signal.rawValue)
426 |
427 | let oldAction = try Sigaction.ignoreAction.install(on: signal, revertIfIgnored: false, updateUnsigRegistrations: false)
| `- error: type 'Sigaction' does not conform to protocol 'RawRepresentable'
428 | /* Will not hurt, the signal is ignore anyway (yes, there is a race condition, I know). */
429 | pthread_kill(pthread_self(), signal.rawValue)
/host/spi-builder-workspace/Sources/SignalHandling/DelayedSigaction/SigactionDelayer_Block.swift:429:7: error: cannot find 'pthread_kill' in scope
427 | let oldAction = try Sigaction.ignoreAction.install(on: signal, revertIfIgnored: false, updateUnsigRegistrations: false)
428 | /* Will not hurt, the signal is ignore anyway (yes, there is a race condition, I know). */
429 | pthread_kill(pthread_self(), signal.rawValue)
| `- error: cannot find 'pthread_kill' in scope
430 | /* No sigsuspend. Would block because signal is ignored. */
431 | if let oldAction = oldAction {
/host/spi-builder-workspace/Sources/SignalHandling/DelayedSigaction/SigactionDelayer_Block.swift:429:20: error: cannot find 'pthread_self' in scope
427 | let oldAction = try Sigaction.ignoreAction.install(on: signal, revertIfIgnored: false, updateUnsigRegistrations: false)
428 | /* Will not hurt, the signal is ignore anyway (yes, there is a race condition, I know). */
429 | pthread_kill(pthread_self(), signal.rawValue)
| `- error: cannot find 'pthread_self' in scope
430 | /* No sigsuspend. Would block because signal is ignored. */
431 | if let oldAction = oldAction {
error: emit-module command failed with exit code 1 (use -v to see invocation)
[62/123] Emitting module SignalHandling
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Sigaction.swift:43:24: error: cannot find type 'sigaction' in scope
41 | If the handler of the sigaction is `SIG_IGN` or `SIG_DFL`, we check the `sa_flags` not to contains the `SA_SIGINFO` bit.
42 | If they do, we log an error, as this is invalid. */
43 | public init(rawValue: sigaction) {
| `- error: cannot find type 'sigaction' in scope
44 | self.mask = Signal.set(from: rawValue.sa_mask)
45 | self.flags = SigactionFlags(rawValue: rawValue.sa_flags)
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Sigaction.swift:78:23: error: cannot find type 'sigaction' in scope
76 | }
77 |
78 | public var rawValue: sigaction {
| `- error: cannot find type 'sigaction' in scope
79 | if !isValid {
80 | SignalHandlingConfig.logger?.warning("Getting sigaction from an invalid Sigaction.")
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Sigaction.swift:9:20: warning: static property 'ignoreAction' is not concurrency-safe because non-'Sendable' type 'Sigaction' may have shared mutable state; this is an error in the Swift 6 language mode
5 |
6 |
7 | public struct Sigaction : Equatable, RawRepresentable {
| `- note: consider making struct 'Sigaction' conform to the 'Sendable' protocol
8 |
9 | public static let ignoreAction = Sigaction(handler: .ignoreHandler)
| |- warning: static property 'ignoreAction' is not concurrency-safe because non-'Sendable' type 'Sigaction' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'ignoreAction' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
10 | public static let defaultAction = Sigaction(handler: .defaultHandler)
11 |
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Sigaction.swift:10:20: warning: static property 'defaultAction' is not concurrency-safe because non-'Sendable' type 'Sigaction' may have shared mutable state; this is an error in the Swift 6 language mode
5 |
6 |
7 | public struct Sigaction : Equatable, RawRepresentable {
| `- note: consider making struct 'Sigaction' conform to the 'Sendable' protocol
8 |
9 | public static let ignoreAction = Sigaction(handler: .ignoreHandler)
10 | public static let defaultAction = Sigaction(handler: .defaultHandler)
| |- warning: static property 'defaultAction' is not concurrency-safe because non-'Sendable' type 'Sigaction' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'defaultAction' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
11 |
12 | /**
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/SigactionHandler.swift:19:80: error: cannot find type 'siginfo_t' in scope
17 |
18 | case ansiC(@convention(c) (_ signalID: Int32) -> Void)
19 | case posix(@convention(c) (_ signalID: Int32, _ siginfo: UnsafeMutablePointer<siginfo_t>?, _ userThreadContext: UnsafeMutableRawPointer?) -> Void)
| `- error: cannot find type 'siginfo_t' in scope
20 |
21 | public static func ==(lhs: SigactionHandler, rhs: SigactionHandler) -> Bool {
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Sigaction.swift:7:15: error: type 'Sigaction' does not conform to protocol 'RawRepresentable'
5 |
6 |
7 | public struct Sigaction : Equatable, RawRepresentable {
| |- error: type 'Sigaction' does not conform to protocol 'RawRepresentable'
| `- note: add stubs for conformance
8 |
9 | public static let ignoreAction = Sigaction(handler: .ignoreHandler)
Swift.RawRepresentable.RawValue:2:16: note: protocol requires nested type 'RawValue'
1 | protocol RawRepresentable {
2 | associatedtype RawValue}
| `- note: protocol requires nested type 'RawValue'
3 |
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/SigactionFlag.swift:11:59: error: cannot find 'SA_NOCLDSTOP' in scope
9 | If this bit is set when installing a catching function for the `SIGCHLD` signal,
10 | the `SIGCHLD` signal will be generated only when a child process exits, not when a child process stops. */
11 | public static let noChildStop = SigactionFlags(rawValue: SA_NOCLDSTOP)
| `- error: cannot find 'SA_NOCLDSTOP' in scope
12 |
13 | /**
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/SigactionFlag.swift:19:59: error: cannot find 'SA_NOCLDWAIT' in scope
17 | it blocks until all of the calling process’s child processes terminate,
18 | and then returns a value of -1 with errno set to ECHILD. */
19 | public static let noChildWait = SigactionFlags(rawValue: SA_NOCLDWAIT)
| `- error: cannot find 'SA_NOCLDWAIT' in scope
20 |
21 | /**
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/SigactionFlag.swift:23:55: error: cannot find 'SA_ONSTACK' in scope
21 | /**
22 | If this bit is set, the system will deliver the signal to the process on a signal stack, specified with `sigaltstack(2)`. */
23 | public static let onStack = SigactionFlags(rawValue: SA_ONSTACK)
| `- error: cannot find 'SA_ONSTACK' in scope
24 |
25 | /**
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/SigactionFlag.swift:27:55: error: cannot find 'SA_NODEFER' in scope
25 | /**
26 | If this bit is set, further occurrences of the delivered signal are not masked during the execution of the handler. */
27 | public static let noDefer = SigactionFlags(rawValue: SA_NODEFER)
| `- error: cannot find 'SA_NODEFER' in scope
28 |
29 | /**
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/SigactionFlag.swift:31:65: error: cannot find 'SA_RESETHAND' in scope
29 | /**
30 | If this bit is set, the handler is reset back to `SIG_DFL` at the moment the signal is delivered. */
31 | public static let resetHandler = SigactionFlags(rawValue: CInt(SA_RESETHAND) /* On Linux, an UInt32 instead of Int32, so we cast… */)
| `- error: cannot find 'SA_RESETHAND' in scope
32 |
33 | /** See `sigaction(2)`. */
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/SigactionFlag.swift:34:55: error: cannot find 'SA_RESTART' in scope
32 |
33 | /** See `sigaction(2)`. */
34 | public static let restart = SigactionFlags(rawValue: SA_RESTART)
| `- error: cannot find 'SA_RESTART' in scope
35 |
36 | /**
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/SigactionFlag.swift:40:55: error: cannot find 'SA_SIGINFO' in scope
38 | and should match the matching prototype.
39 | This bit should not be set when assigning `SIG_DFL` or `SIG_IGN`. */
40 | public static let siginfo = SigactionFlags(rawValue: SA_SIGINFO)
| `- error: cannot find 'SA_SIGINFO' in scope
41 |
42 | public let rawValue: CInt
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Signal.swift:34:20: warning: static property 'killingSignals' is not concurrency-safe because non-'Sendable' type 'Set<Signal>' may have shared mutable state; this is an error in the Swift 6 language mode
5 | /* Could be an enum?
6 | * I’d say no to be able to represent signals we don’t know are a part of the system. */
7 | public struct Signal : RawRepresentable, Hashable, Codable, CaseIterable, CustomStringConvertible {
| `- note: consider making struct 'Signal' conform to the 'Sendable' protocol
8 |
9 | /* Signal 0 is not considered.
:
32 |
33 | - Important: As previously mentionned, this list is hand-crafted and might be missing signals or having too many of them. */
34 | public static let killingSignals: Set<Signal> = {
| |- warning: static property 'killingSignals' is not concurrency-safe because non-'Sendable' type 'Set<Signal>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'killingSignals' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
35 | return Set(arrayLiteral:
36 | .terminated, /* Default kill */
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Signal.swift:108:50: error: cannot find 'SIGTERM' in scope
106 |
107 | /** “Normal” kill signal. */
108 | public static let terminated = Signal(rawValue: SIGTERM)
| `- error: cannot find 'SIGTERM' in scope
109 | /** Usually `Ctrl-C`. */
110 | public static let interrupt = Signal(rawValue: SIGINT)
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Signal.swift:110:50: error: cannot find 'SIGINT' in scope
108 | public static let terminated = Signal(rawValue: SIGTERM)
109 | /** Usually `Ctrl-C`. */
110 | public static let interrupt = Signal(rawValue: SIGINT)
| `- error: cannot find 'SIGINT' in scope
111 | /** Used to quit w/ generation of a core dump. Usually `Ctrl-\`. */
112 | public static let quit = Signal(rawValue: SIGQUIT)
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Signal.swift:112:50: error: cannot find 'SIGQUIT' in scope
110 | public static let interrupt = Signal(rawValue: SIGINT)
111 | /** Used to quit w/ generation of a core dump. Usually `Ctrl-\`. */
112 | public static let quit = Signal(rawValue: SIGQUIT)
| `- error: cannot find 'SIGQUIT' in scope
113 | public static let killed = Signal(rawValue: SIGKILL)
114 | /** The user’s terminal disconnected. */
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Signal.swift:48:20: warning: static property 'toForwardToSubprocesses' is not concurrency-safe because non-'Sendable' type 'Set<Signal>' may have shared mutable state; this is an error in the Swift 6 language mode
5 | /* Could be an enum?
6 | * I’d say no to be able to represent signals we don’t know are a part of the system. */
7 | public struct Signal : RawRepresentable, Hashable, Codable, CaseIterable, CustomStringConvertible {
| `- note: consider making struct 'Signal' conform to the 'Sendable' protocol
8 |
9 | /* Signal 0 is not considered.
:
46 | - Important: As previously mentionned, this list is hand-crafted and does not correspond to any system development notion,
47 | or anything that I know of. */
48 | public static let toForwardToSubprocesses: Set<Signal> = {
| |- warning: static property 'toForwardToSubprocesses' is not concurrency-safe because non-'Sendable' type 'Set<Signal>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'toForwardToSubprocesses' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
49 | return Set(arrayLiteral:
50 | .suspended, /* Ctrl-Z */
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Signal.swift:171:57: error: cannot find 'SIGTSTP' in scope
169 | public static let suspendedBySignal = Signal(rawValue: SIGSTOP)
170 | /** Suspends the program but can be handled and ignored. Usually `Ctrl-Z`. */
171 | public static let suspended = Signal(rawValue: SIGTSTP)
| `- error: cannot find 'SIGTSTP' in scope
172 | public static let stoppedTTYInput = Signal(rawValue: SIGTTIN)
173 | public static let stoppedTTYOutput = Signal(rawValue: SIGTTOU)
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Signal.swift:167:57: error: cannot find 'SIGCONT' in scope
165 | /* Obsolete name for SIGCHLD. */
166 | // public static let cildExited = Signal(rawValue: SIGCLD)
167 | public static let continued = Signal(rawValue: SIGCONT)
| `- error: cannot find 'SIGCONT' in scope
168 | /** Suspends the program. Cannot be handled, ignored or blocked. */
169 | public static let suspendedBySignal = Signal(rawValue: SIGSTOP)
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Signal.swift:79:62: error: cannot find 'SIGFPE' in scope
77 | /**
78 | - Note: FPE means Floating-Point Exception but this signal is sent for any arithmetic error. */
79 | public static let arithmeticError = Signal(rawValue: SIGFPE)
| `- error: cannot find 'SIGFPE' in scope
80 | @available(*, unavailable, renamed: "arithmeticError")
81 | public static let floatingPointException = Signal(rawValue: SIGFPE)
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Signal.swift:81:62: error: cannot find 'SIGFPE' in scope
79 | public static let arithmeticError = Signal(rawValue: SIGFPE)
80 | @available(*, unavailable, renamed: "arithmeticError")
81 | public static let floatingPointException = Signal(rawValue: SIGFPE)
| `- error: cannot find 'SIGFPE' in scope
82 | public static let illegalInstruction = Signal(rawValue: SIGILL)
83 | public static let segmentationFault = Signal(rawValue: SIGSEGV)
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Signal.swift:82:62: error: cannot find 'SIGILL' in scope
80 | @available(*, unavailable, renamed: "arithmeticError")
81 | public static let floatingPointException = Signal(rawValue: SIGFPE)
82 | public static let illegalInstruction = Signal(rawValue: SIGILL)
| `- error: cannot find 'SIGILL' in scope
83 | public static let segmentationFault = Signal(rawValue: SIGSEGV)
84 | public static let busError = Signal(rawValue: SIGBUS)
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Signal.swift:83:62: error: cannot find 'SIGSEGV' in scope
81 | public static let floatingPointException = Signal(rawValue: SIGFPE)
82 | public static let illegalInstruction = Signal(rawValue: SIGILL)
83 | public static let segmentationFault = Signal(rawValue: SIGSEGV)
| `- error: cannot find 'SIGSEGV' in scope
84 | public static let busError = Signal(rawValue: SIGBUS)
85 | public static let abortTrap = Signal(rawValue: SIGABRT)
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Signal.swift:84:62: error: cannot find 'SIGBUS' in scope
82 | public static let illegalInstruction = Signal(rawValue: SIGILL)
83 | public static let segmentationFault = Signal(rawValue: SIGSEGV)
84 | public static let busError = Signal(rawValue: SIGBUS)
| `- error: cannot find 'SIGBUS' in scope
85 | public static let abortTrap = Signal(rawValue: SIGABRT)
86 | /** Usually the same as `abortTrap`. */
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Signal.swift:85:62: error: cannot find 'SIGABRT' in scope
83 | public static let segmentationFault = Signal(rawValue: SIGSEGV)
84 | public static let busError = Signal(rawValue: SIGBUS)
85 | public static let abortTrap = Signal(rawValue: SIGABRT)
| `- error: cannot find 'SIGABRT' in scope
86 | /** Usually the same as `abortTrap`. */
87 | public static let iot = Signal(rawValue: SIGIOT)
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Signal.swift:87:62: error: cannot find 'SIGIOT' in scope
85 | public static let abortTrap = Signal(rawValue: SIGABRT)
86 | /** Usually the same as `abortTrap`. */
87 | public static let iot = Signal(rawValue: SIGIOT)
| `- error: cannot find 'SIGIOT' in scope
88 | public static let traceBreakpointTrap = Signal(rawValue: SIGTRAP)
89 | #if !os(Linux)
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Signal.swift:88:62: error: cannot find 'SIGTRAP' in scope
86 | /** Usually the same as `abortTrap`. */
87 | public static let iot = Signal(rawValue: SIGIOT)
88 | public static let traceBreakpointTrap = Signal(rawValue: SIGTRAP)
| `- error: cannot find 'SIGTRAP' in scope
89 | #if !os(Linux)
90 | public static let emulatorTrap = Signal(rawValue: SIGEMT)
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Signal.swift:90:62: error: cannot find 'SIGEMT' in scope
88 | public static let traceBreakpointTrap = Signal(rawValue: SIGTRAP)
89 | #if !os(Linux)
90 | public static let emulatorTrap = Signal(rawValue: SIGEMT)
| `- error: cannot find 'SIGEMT' in scope
91 | #endif
92 | public static let badSystemCall = Signal(rawValue: SIGSYS)
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Signal.swift:92:62: error: cannot find 'SIGSYS' in scope
90 | public static let emulatorTrap = Signal(rawValue: SIGEMT)
91 | #endif
92 | public static let badSystemCall = Signal(rawValue: SIGSYS)
| `- error: cannot find 'SIGSYS' in scope
93 |
94 | /* *** Termination Signals *** */
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Signal.swift:113:50: error: cannot find 'SIGKILL' in scope
111 | /** Used to quit w/ generation of a core dump. Usually `Ctrl-\`. */
112 | public static let quit = Signal(rawValue: SIGQUIT)
113 | public static let killed = Signal(rawValue: SIGKILL)
| `- error: cannot find 'SIGKILL' in scope
114 | /** The user’s terminal disconnected. */
115 | public static let hangup = Signal(rawValue: SIGHUP)
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Signal.swift:115:50: error: cannot find 'SIGHUP' in scope
113 | public static let killed = Signal(rawValue: SIGKILL)
114 | /** The user’s terminal disconnected. */
115 | public static let hangup = Signal(rawValue: SIGHUP)
| `- error: cannot find 'SIGHUP' in scope
116 |
117 | /* *** Alarm Signals *** */
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Signal.swift:128:61: error: cannot find 'SIGALRM' in scope
126 | }
127 |
128 | public static let alarmClock = Signal(rawValue: SIGALRM)
| `- error: cannot find 'SIGALRM' in scope
129 | public static let virtualTimerExpired = Signal(rawValue: SIGVTALRM)
130 | public static let profilingTimerExpired = Signal(rawValue: SIGPROF)
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Signal.swift:129:61: error: cannot find 'SIGVTALRM' in scope
127 |
128 | public static let alarmClock = Signal(rawValue: SIGALRM)
129 | public static let virtualTimerExpired = Signal(rawValue: SIGVTALRM)
| `- error: cannot find 'SIGVTALRM' in scope
130 | public static let profilingTimerExpired = Signal(rawValue: SIGPROF)
131 |
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Signal.swift:130:61: error: cannot find 'SIGPROF' in scope
128 | public static let alarmClock = Signal(rawValue: SIGALRM)
129 | public static let virtualTimerExpired = Signal(rawValue: SIGVTALRM)
130 | public static let profilingTimerExpired = Signal(rawValue: SIGPROF)
| `- error: cannot find 'SIGPROF' in scope
131 |
132 | /* *** Asynchronous I/O Signals *** */
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Signal.swift:143:57: error: cannot find 'SIGIO' in scope
141 | }
142 |
143 | public static let ioPossible = Signal(rawValue: SIGIO)
| `- error: cannot find 'SIGIO' in scope
144 | public static let urgentIOCondition = Signal(rawValue: SIGURG)
145 | #if os(Linux)
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Signal.swift:144:57: error: cannot find 'SIGURG' in scope
142 |
143 | public static let ioPossible = Signal(rawValue: SIGIO)
144 | public static let urgentIOCondition = Signal(rawValue: SIGURG)
| `- error: cannot find 'SIGURG' in scope
145 | #if os(Linux)
146 | /** System V signal name, similar to SIGIO. */
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Signal.swift:164:57: error: cannot find 'SIGCHLD' in scope
162 | }
163 |
164 | public static let childExited = Signal(rawValue: SIGCHLD)
| `- error: cannot find 'SIGCHLD' in scope
165 | /* Obsolete name for SIGCHLD. */
166 | // public static let cildExited = Signal(rawValue: SIGCLD)
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Signal.swift:169:57: error: cannot find 'SIGSTOP' in scope
167 | public static let continued = Signal(rawValue: SIGCONT)
168 | /** Suspends the program. Cannot be handled, ignored or blocked. */
169 | public static let suspendedBySignal = Signal(rawValue: SIGSTOP)
| `- error: cannot find 'SIGSTOP' in scope
170 | /** Suspends the program but can be handled and ignored. Usually `Ctrl-Z`. */
171 | public static let suspended = Signal(rawValue: SIGTSTP)
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Signal.swift:172:57: error: cannot find 'SIGTTIN' in scope
170 | /** Suspends the program but can be handled and ignored. Usually `Ctrl-Z`. */
171 | public static let suspended = Signal(rawValue: SIGTSTP)
172 | public static let stoppedTTYInput = Signal(rawValue: SIGTTIN)
| `- error: cannot find 'SIGTTIN' in scope
173 | public static let stoppedTTYOutput = Signal(rawValue: SIGTTOU)
174 |
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Signal.swift:173:57: error: cannot find 'SIGTTOU' in scope
171 | public static let suspended = Signal(rawValue: SIGTSTP)
172 | public static let stoppedTTYInput = Signal(rawValue: SIGTTIN)
173 | public static let stoppedTTYOutput = Signal(rawValue: SIGTTOU)
| `- error: cannot find 'SIGTTOU' in scope
174 |
175 | /* *** Operation Error Signals *** */
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Signal.swift:186:61: error: cannot find 'SIGPIPE' in scope
184 | }
185 |
186 | public static let brokenPipe = Signal(rawValue: SIGPIPE)
| `- error: cannot find 'SIGPIPE' in scope
187 | // public static let resourceLost = Signal(rawValue: SIGLOST)
188 | public static let cputimeLimitExceeded = Signal(rawValue: SIGXCPU)
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Signal.swift:188:61: error: cannot find 'SIGXCPU' in scope
186 | public static let brokenPipe = Signal(rawValue: SIGPIPE)
187 | // public static let resourceLost = Signal(rawValue: SIGLOST)
188 | public static let cputimeLimitExceeded = Signal(rawValue: SIGXCPU)
| `- error: cannot find 'SIGXCPU' in scope
189 | public static let filesizeLimitExceeded = Signal(rawValue: SIGXFSZ)
190 |
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Signal.swift:189:61: error: cannot find 'SIGXFSZ' in scope
187 | // public static let resourceLost = Signal(rawValue: SIGLOST)
188 | public static let cputimeLimitExceeded = Signal(rawValue: SIGXCPU)
189 | public static let filesizeLimitExceeded = Signal(rawValue: SIGXFSZ)
| `- error: cannot find 'SIGXFSZ' in scope
190 |
191 | /* *** Miscellaneous Signals *** */
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Signal.swift:208:58: error: cannot find 'SIGUSR1' in scope
206 | }
207 |
208 | public static let userDefinedSignal1 = Signal(rawValue: SIGUSR1)
| `- error: cannot find 'SIGUSR1' in scope
209 | public static let userDefinedSignal2 = Signal(rawValue: SIGUSR2)
210 | public static let windowSizeChanges = Signal(rawValue: SIGWINCH)
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Signal.swift:209:58: error: cannot find 'SIGUSR2' in scope
207 |
208 | public static let userDefinedSignal1 = Signal(rawValue: SIGUSR1)
209 | public static let userDefinedSignal2 = Signal(rawValue: SIGUSR2)
| `- error: cannot find 'SIGUSR2' in scope
210 | public static let windowSizeChanges = Signal(rawValue: SIGWINCH)
211 | #if !os(Linux)
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Signal.swift:210:58: error: cannot find 'SIGWINCH' in scope
208 | public static let userDefinedSignal1 = Signal(rawValue: SIGUSR1)
209 | public static let userDefinedSignal2 = Signal(rawValue: SIGUSR2)
210 | public static let windowSizeChanges = Signal(rawValue: SIGWINCH)
| `- error: cannot find 'SIGWINCH' in scope
211 | #if !os(Linux)
212 | public static let informationRequest = Signal(rawValue: SIGINFO)
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Signal.swift:212:58: error: cannot find 'SIGINFO' in scope
210 | public static let windowSizeChanges = Signal(rawValue: SIGWINCH)
211 | #if !os(Linux)
212 | public static let informationRequest = Signal(rawValue: SIGINFO)
| `- error: cannot find 'SIGINFO' in scope
213 | #endif
214 |
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Signal.swift:237:3: error: cannot find 'sigemptyset' in scope
235 | public static let emptySigset: sigset_t = {
236 | var sigset = sigset_t()
237 | sigemptyset(&sigset)
| `- error: cannot find 'sigemptyset' in scope
238 | return sigset
239 | }()
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Signal.swift:247:3: error: cannot find 'sigfillset' in scope
245 | public static let fullSigset: sigset_t = {
246 | var sigset = sigset_t()
247 | sigfillset(&sigset)
| `- error: cannot find 'sigfillset' in scope
248 | return sigset
249 | }()
/host/spi-builder-workspace/Sources/SignalHandling/DelayedSigaction/DelayedSigaction.swift:10:21: warning: static property 'latestID' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
8 | public struct DelayedSigaction : Hashable {
9 |
10 | private static var latestID = 0
| |- warning: static property 'latestID' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'latestID' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'latestID' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
11 |
12 | internal var id: Int
/host/spi-builder-workspace/Sources/SignalHandling/DelayedSigaction/SigactionDelayer_Block.swift:171:21: error: cannot find 'NSConditionLock' in scope
169 | }
170 |
171 | static let lock = NSConditionLock(condition: Self.nothingToDo.rawValue)
| `- error: cannot find 'NSConditionLock' in scope
172 |
173 | static var action: Action = .nop
/host/spi-builder-workspace/Sources/SignalHandling/DelayedSigaction/SigactionDelayer_Block.swift:173:14: warning: static property 'action' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
171 | static let lock = NSConditionLock(condition: Self.nothingToDo.rawValue)
172 |
173 | static var action: Action = .nop
| |- warning: static property 'action' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'action' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'action' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
174 | static var error: Error?
175 |
/host/spi-builder-workspace/Sources/SignalHandling/DelayedSigaction/SigactionDelayer_Block.swift:174:14: warning: static property 'error' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
172 |
173 | static var action: Action = .nop
174 | static var error: Error?
| |- warning: static property 'error' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'error' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'error' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
175 |
176 | case nothingToDo
/host/spi-builder-workspace/Sources/SignalHandling/DelayedSigaction/SigactionDelayer_Block.swift:184:23: error: cannot find type 'DispatchSourceSignal' in scope
182 | private struct BlockedSignal {
183 |
184 | var dispatchSource: DispatchSourceSignal
| `- error: cannot find type 'DispatchSourceSignal' in scope
185 | var handlers = [DelayedSigaction: DelayedSigactionHandler]()
186 |
/host/spi-builder-workspace/Sources/SignalHandling/DelayedSigaction/SigactionDelayer_Block.swift:189:45: error: cannot find 'DispatchQueue' in scope
187 | }
188 |
189 | private static let signalProcessingQueue = DispatchQueue(label: "com.xcode-actions.blocked-signals-processing-queue")
| `- error: cannot find 'DispatchQueue' in scope
190 |
191 | private static var bootstrapDone = false
/host/spi-builder-workspace/Sources/SignalHandling/DelayedSigaction/SigactionDelayer_Block.swift:191:21: warning: static property 'bootstrapDone' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
189 | private static let signalProcessingQueue = DispatchQueue(label: "com.xcode-actions.blocked-signals-processing-queue")
190 |
191 | private static var bootstrapDone = false
| |- warning: static property 'bootstrapDone' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'bootstrapDone' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'bootstrapDone' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
192 | private static var blockedSignals = [Signal: BlockedSignal]()
193 |
/host/spi-builder-workspace/Sources/SignalHandling/DelayedSigaction/SigactionDelayer_Block.swift:192:21: warning: static property 'blockedSignals' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
190 |
191 | private static var bootstrapDone = false
192 | private static var blockedSignals = [Signal: BlockedSignal]()
| |- warning: static property 'blockedSignals' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'blockedSignals' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'blockedSignals' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
193 |
194 | private static func executeOnThread(_ action: ThreadSync.Action) throws {
/host/spi-builder-workspace/Sources/SignalHandling/DelayedSigaction/SigactionDelayer_Unsig.swift:128:21: error: cannot find 'NSConditionLock' in scope
126 | }
127 |
128 | static let lock = NSConditionLock(condition: Self.nothingToDo.rawValue)
| `- error: cannot find 'NSConditionLock' in scope
129 |
130 | static var action: Action = .nop
/host/spi-builder-workspace/Sources/SignalHandling/DelayedSigaction/SigactionDelayer_Unsig.swift:130:14: warning: static property 'action' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
128 | static let lock = NSConditionLock(condition: Self.nothingToDo.rawValue)
129 |
130 | static var action: Action = .nop
| |- warning: static property 'action' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'action' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'action' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
131 | static var completionResult: ErrorAndLogs?
132 |
/host/spi-builder-workspace/Sources/SignalHandling/DelayedSigaction/SigactionDelayer_Unsig.swift:131:14: warning: static property 'completionResult' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
129 |
130 | static var action: Action = .nop
131 | static var completionResult: ErrorAndLogs?
| |- warning: static property 'completionResult' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'completionResult' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'completionResult' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
132 |
133 | case nothingToDo
/host/spi-builder-workspace/Sources/SignalHandling/DelayedSigaction/SigactionDelayer_Unsig.swift:143:23: error: cannot find type 'DispatchSourceSignal' in scope
141 | var originalSigaction: Sigaction
142 |
143 | var dispatchSource: DispatchSourceSignal
| `- error: cannot find type 'DispatchSourceSignal' in scope
144 | var handlers = [DelayedSigaction: DelayedSigactionHandler]()
145 |
/host/spi-builder-workspace/Sources/SignalHandling/DelayedSigaction/SigactionDelayer_Unsig.swift:148:45: error: cannot find 'DispatchQueue' in scope
146 | }
147 |
148 | private static let signalProcessingQueue = DispatchQueue(label: "com.xcode-actions.unsigactioned-signals-processing-queue")
| `- error: cannot find 'DispatchQueue' in scope
149 |
150 | private static var hasCreatedProcessingThread = false
/host/spi-builder-workspace/Sources/SignalHandling/DelayedSigaction/SigactionDelayer_Unsig.swift:150:21: warning: static property 'hasCreatedProcessingThread' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
148 | private static let signalProcessingQueue = DispatchQueue(label: "com.xcode-actions.unsigactioned-signals-processing-queue")
149 |
150 | private static var hasCreatedProcessingThread = false
| |- warning: static property 'hasCreatedProcessingThread' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'hasCreatedProcessingThread' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'hasCreatedProcessingThread' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
151 | private static var unsigactionedSignals = [Signal: UnsigactionedSignal]()
152 |
/host/spi-builder-workspace/Sources/SignalHandling/DelayedSigaction/SigactionDelayer_Unsig.swift:151:21: warning: static property 'unsigactionedSignals' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
149 |
150 | private static var hasCreatedProcessingThread = false
151 | private static var unsigactionedSignals = [Signal: UnsigactionedSignal]()
| |- warning: static property 'unsigactionedSignals' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'unsigactionedSignals' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'unsigactionedSignals' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
152 |
153 | private static func executeOnThread(_ action: ThreadSync.Action) throws {
/host/spi-builder-workspace/Sources/SignalHandling/SignalHandlingConfig.swift:9:20: warning: static property 'logger' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
7 | public enum SignalHandlingConfig {
8 |
9 | public static var logger: Logging.Logger? = {
| |- warning: static property 'logger' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'logger' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'logger' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
10 | return Logger(label: "com.xcode-actions.signal-handling")
11 | }()
[63/123] Compiling SignalHandling SigactionDelayer_Unsig.swift
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/SigactionHandler.swift:19:80: error: cannot find type 'siginfo_t' in scope
17 |
18 | case ansiC(@convention(c) (_ signalID: Int32) -> Void)
19 | case posix(@convention(c) (_ signalID: Int32, _ siginfo: UnsafeMutablePointer<siginfo_t>?, _ userThreadContext: UnsafeMutableRawPointer?) -> Void)
| `- error: cannot find type 'siginfo_t' in scope
20 |
21 | public static func ==(lhs: SigactionHandler, rhs: SigactionHandler) -> Bool {
/host/spi-builder-workspace/Sources/SignalHandling/DelayedSigaction/SigactionDelayer_Unsig.swift:128:21: error: cannot find 'NSConditionLock' in scope
126 | }
127 |
128 | static let lock = NSConditionLock(condition: Self.nothingToDo.rawValue)
| `- error: cannot find 'NSConditionLock' in scope
129 |
130 | static var action: Action = .nop
/host/spi-builder-workspace/Sources/SignalHandling/DelayedSigaction/SigactionDelayer_Unsig.swift:130:14: warning: static property 'action' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
128 | static let lock = NSConditionLock(condition: Self.nothingToDo.rawValue)
129 |
130 | static var action: Action = .nop
| |- warning: static property 'action' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'action' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'action' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
131 | static var completionResult: ErrorAndLogs?
132 |
/host/spi-builder-workspace/Sources/SignalHandling/DelayedSigaction/SigactionDelayer_Unsig.swift:131:14: warning: static property 'completionResult' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
129 |
130 | static var action: Action = .nop
131 | static var completionResult: ErrorAndLogs?
| |- warning: static property 'completionResult' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'completionResult' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'completionResult' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
132 |
133 | case nothingToDo
/host/spi-builder-workspace/Sources/SignalHandling/DelayedSigaction/SigactionDelayer_Unsig.swift:143:23: error: cannot find type 'DispatchSourceSignal' in scope
141 | var originalSigaction: Sigaction
142 |
143 | var dispatchSource: DispatchSourceSignal
| `- error: cannot find type 'DispatchSourceSignal' in scope
144 | var handlers = [DelayedSigaction: DelayedSigactionHandler]()
145 |
/host/spi-builder-workspace/Sources/SignalHandling/DelayedSigaction/SigactionDelayer_Unsig.swift:148:45: error: cannot find 'DispatchQueue' in scope
146 | }
147 |
148 | private static let signalProcessingQueue = DispatchQueue(label: "com.xcode-actions.unsigactioned-signals-processing-queue")
| `- error: cannot find 'DispatchQueue' in scope
149 |
150 | private static var hasCreatedProcessingThread = false
/host/spi-builder-workspace/Sources/SignalHandling/DelayedSigaction/SigactionDelayer_Unsig.swift:150:21: warning: static property 'hasCreatedProcessingThread' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
148 | private static let signalProcessingQueue = DispatchQueue(label: "com.xcode-actions.unsigactioned-signals-processing-queue")
149 |
150 | private static var hasCreatedProcessingThread = false
| |- warning: static property 'hasCreatedProcessingThread' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'hasCreatedProcessingThread' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'hasCreatedProcessingThread' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
151 | private static var unsigactionedSignals = [Signal: UnsigactionedSignal]()
152 |
/host/spi-builder-workspace/Sources/SignalHandling/DelayedSigaction/SigactionDelayer_Unsig.swift:151:21: warning: static property 'unsigactionedSignals' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
149 |
150 | private static var hasCreatedProcessingThread = false
151 | private static var unsigactionedSignals = [Signal: UnsigactionedSignal]()
| |- warning: static property 'unsigactionedSignals' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'unsigactionedSignals' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'unsigactionedSignals' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
152 |
153 | private static func executeOnThread(_ action: ThreadSync.Action) throws {
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Sigaction.swift:43:24: error: cannot find type 'sigaction' in scope
41 | If the handler of the sigaction is `SIG_IGN` or `SIG_DFL`, we check the `sa_flags` not to contains the `SA_SIGINFO` bit.
42 | If they do, we log an error, as this is invalid. */
43 | public init(rawValue: sigaction) {
| `- error: cannot find type 'sigaction' in scope
44 | self.mask = Signal.set(from: rawValue.sa_mask)
45 | self.flags = SigactionFlags(rawValue: rawValue.sa_flags)
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Sigaction.swift:78:23: error: cannot find type 'sigaction' in scope
76 | }
77 |
78 | public var rawValue: sigaction {
| `- error: cannot find type 'sigaction' in scope
79 | if !isValid {
80 | SignalHandlingConfig.logger?.warning("Getting sigaction from an invalid Sigaction.")
/host/spi-builder-workspace/Sources/SignalHandling/DelayedSigaction/SigactionDelayer_Unsig.swift:86:21: error: type 'Sigaction' does not conform to protocol 'RawRepresentable'
84 |
85 | - Returns: The previous sigaction if there was an unsigaction registered for the given signal, `nil` otherwise. */
86 | public static func updateOriginalSigaction(for signal: Signal, to sigaction: Sigaction) -> Sigaction? {
| `- error: type 'Sigaction' does not conform to protocol 'RawRepresentable'
87 | return signalProcessingQueue.sync{
88 | let previous = unsigactionedSignals[signal]?.originalSigaction
/host/spi-builder-workspace/Sources/SignalHandling/DelayedSigaction/SigactionDelayer_Unsig.swift:206:31: error: cannot find 'DispatchSource' in scope
204 | }
205 | } else {
206 | let dispatchSourceSignal = DispatchSource.makeSignalSource(signal: signal.rawValue, queue: signalProcessingQueue)
| `- error: cannot find 'DispatchSource' in scope
207 | /* Apparently the dispatchSourceSignal does not need to be weak in the handler because the handler is released when the source is canceled.
208 | * I manually tested this and found no confirmation or infirmation of this in the documentation. */
/host/spi-builder-workspace/Sources/SignalHandling/DelayedSigaction/SigactionDelayer_Unsig.swift:268:16: error: cannot find 'DispatchGroup' in scope
266 |
267 | for _ in 0..<count {
268 | let group = DispatchGroup()
| `- error: cannot find 'DispatchGroup' in scope
269 | var runOriginalHandlerFinal = true
270 | for (_, handler) in unsigactionedSignal.handlers {
/host/spi-builder-workspace/Sources/SignalHandling/DelayedSigaction/SigactionDelayer_Unsig.swift:293:15: error: cannot find 'DispatchGroup' in scope
291 |
292 | var error: Error?
293 | let group = DispatchGroup()
| `- error: cannot find 'DispatchGroup' in scope
294 | group.enter()
295 | Thread.detachNewThread{
/host/spi-builder-workspace/Sources/SignalHandling/DelayedSigaction/SigactionDelayer_Unsig.swift:295:3: error: cannot find 'Thread' in scope
293 | let group = DispatchGroup()
294 | group.enter()
295 | Thread.detachNewThread{
| `- error: cannot find 'Thread' in scope
296 | Thread.current.name = "com.xcode-actions.unsigactioned-signals-thread"
297 |
/host/spi-builder-workspace/Sources/SignalHandling/DelayedSigaction/SigactionDelayer_Unsig.swift:296:4: error: cannot find 'Thread' in scope
294 | group.enter()
295 | Thread.detachNewThread{
296 | Thread.current.name = "com.xcode-actions.unsigactioned-signals-thread"
| `- error: cannot find 'Thread' in scope
297 |
298 | /* Unblock all signals in this thread. */
/host/spi-builder-workspace/Sources/SignalHandling/DelayedSigaction/SigactionDelayer_Unsig.swift:300:14: error: cannot find 'pthread_sigmask' in scope
298 | /* Unblock all signals in this thread. */
299 | var noSignals = Signal.emptySigset
300 | let ret = pthread_sigmask(SIG_SETMASK, &noSignals, nil /* old signals */)
| `- error: cannot find 'pthread_sigmask' in scope
301 | if ret != 0 {
302 | error = SignalHandlingError.destructiveSystemError(Errno(rawValue: ret))
/host/spi-builder-workspace/Sources/SignalHandling/DelayedSigaction/SigactionDelayer_Unsig.swift:300:30: error: cannot find 'SIG_SETMASK' in scope
298 | /* Unblock all signals in this thread. */
299 | var noSignals = Signal.emptySigset
300 | let ret = pthread_sigmask(SIG_SETMASK, &noSignals, nil /* old signals */)
| `- error: cannot find 'SIG_SETMASK' in scope
301 | if ret != 0 {
302 | error = SignalHandlingError.destructiveSystemError(Errno(rawValue: ret))
/host/spi-builder-workspace/Sources/SignalHandling/DelayedSigaction/SigactionDelayer_Unsig.swift:371:20: error: cannot find 'pthread_self' in scope
369 | * Anyway, we need to reinstall the sigaction handler after the signal has been sent and processed,
370 | * so we need to have some control, which `raise` does not give. */
371 | let thread = pthread_self()
| `- error: cannot find 'pthread_self' in scope
372 | // let killResult = raise(signal.rawValue)
373 | let killResult = pthread_kill(thread, signal.rawValue)
/host/spi-builder-workspace/Sources/SignalHandling/DelayedSigaction/SigactionDelayer_Unsig.swift:373:24: error: cannot find 'pthread_kill' in scope
371 | let thread = pthread_self()
372 | // let killResult = raise(signal.rawValue)
373 | let killResult = pthread_kill(thread, signal.rawValue)
| `- error: cannot find 'pthread_kill' in scope
374 | if killResult != 0 {
375 | completionResult.errorLogs.append(("Cannot send signal to unsigactioned thread.", ["signal": "\(signal)", "kill_result": "\(killResult)"]))
/host/spi-builder-workspace/Sources/SignalHandling/DelayedSigaction/SigactionDelayer_Unsig.swift:379:27: error: cannot find 'pthread_sigmask' in scope
377 |
378 | /* Re-unblock all signals (in case a handler blocked one). */
379 | let sigmaskResult = pthread_sigmask(SIG_SETMASK, &emptyMask, nil)
| `- error: cannot find 'pthread_sigmask' in scope
380 | if sigmaskResult != 0 {
381 | completionResult.errorLogs.append((
/host/spi-builder-workspace/Sources/SignalHandling/DelayedSigaction/SigactionDelayer_Unsig.swift:379:43: error: cannot find 'SIG_SETMASK' in scope
377 |
378 | /* Re-unblock all signals (in case a handler blocked one). */
379 | let sigmaskResult = pthread_sigmask(SIG_SETMASK, &emptyMask, nil)
| `- error: cannot find 'SIG_SETMASK' in scope
380 | if sigmaskResult != 0 {
381 | completionResult.errorLogs.append((
/host/spi-builder-workspace/Sources/SignalHandling/DelayedSigaction/SigactionDelayer_Unsig.swift:379:68: error: 'nil' requires a contextual type
377 |
378 | /* Re-unblock all signals (in case a handler blocked one). */
379 | let sigmaskResult = pthread_sigmask(SIG_SETMASK, &emptyMask, nil)
| `- error: 'nil' requires a contextual type
380 | if sigmaskResult != 0 {
381 | completionResult.errorLogs.append((
[64/123] Compiling SignalHandling Utils.swift
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/SigactionHandler.swift:19:80: error: cannot find type 'siginfo_t' in scope
17 |
18 | case ansiC(@convention(c) (_ signalID: Int32) -> Void)
19 | case posix(@convention(c) (_ signalID: Int32, _ siginfo: UnsafeMutablePointer<siginfo_t>?, _ userThreadContext: UnsafeMutableRawPointer?) -> Void)
| `- error: cannot find type 'siginfo_t' in scope
20 |
21 | public static func ==(lhs: SigactionHandler, rhs: SigactionHandler) -> Bool {
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/SigactionHandler.swift:38:73: error: cannot find 'SIG_IGN' in scope
36 | var asOpaquePointer: OpaquePointer? {
37 | switch self {
38 | case .ignoreHandler: return OpaquePointer(bitPattern: unsafeBitCast(SIG_IGN, to: Int.self))
| `- error: cannot find 'SIG_IGN' in scope
39 | case .defaultHandler: return OpaquePointer(bitPattern: unsafeBitCast(SIG_DFL, to: Int.self))
40 | case .ansiC(let h): return OpaquePointer(bitPattern: unsafeBitCast(h, to: Int.self))
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/SigactionHandler.swift:39:73: error: cannot find 'SIG_DFL' in scope
37 | switch self {
38 | case .ignoreHandler: return OpaquePointer(bitPattern: unsafeBitCast(SIG_IGN, to: Int.self))
39 | case .defaultHandler: return OpaquePointer(bitPattern: unsafeBitCast(SIG_DFL, to: Int.self))
| `- error: cannot find 'SIG_DFL' in scope
40 | case .ansiC(let h): return OpaquePointer(bitPattern: unsafeBitCast(h, to: Int.self))
41 | case .posix(let h): return OpaquePointer(bitPattern: unsafeBitCast(h, to: Int.self))
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Signal.swift:34:20: warning: static property 'killingSignals' is not concurrency-safe because non-'Sendable' type 'Set<Signal>' may have shared mutable state; this is an error in the Swift 6 language mode
5 | /* Could be an enum?
6 | * I’d say no to be able to represent signals we don’t know are a part of the system. */
7 | public struct Signal : RawRepresentable, Hashable, Codable, CaseIterable, CustomStringConvertible {
| `- note: consider making struct 'Signal' conform to the 'Sendable' protocol
8 |
9 | /* Signal 0 is not considered.
:
32 |
33 | - Important: As previously mentionned, this list is hand-crafted and might be missing signals or having too many of them. */
34 | public static let killingSignals: Set<Signal> = {
| |- warning: static property 'killingSignals' is not concurrency-safe because non-'Sendable' type 'Set<Signal>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'killingSignals' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
35 | return Set(arrayLiteral:
36 | .terminated, /* Default kill */
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Signal.swift:108:50: error: cannot find 'SIGTERM' in scope
106 |
107 | /** “Normal” kill signal. */
108 | public static let terminated = Signal(rawValue: SIGTERM)
| `- error: cannot find 'SIGTERM' in scope
109 | /** Usually `Ctrl-C`. */
110 | public static let interrupt = Signal(rawValue: SIGINT)
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Signal.swift:110:50: error: cannot find 'SIGINT' in scope
108 | public static let terminated = Signal(rawValue: SIGTERM)
109 | /** Usually `Ctrl-C`. */
110 | public static let interrupt = Signal(rawValue: SIGINT)
| `- error: cannot find 'SIGINT' in scope
111 | /** Used to quit w/ generation of a core dump. Usually `Ctrl-\`. */
112 | public static let quit = Signal(rawValue: SIGQUIT)
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Signal.swift:112:50: error: cannot find 'SIGQUIT' in scope
110 | public static let interrupt = Signal(rawValue: SIGINT)
111 | /** Used to quit w/ generation of a core dump. Usually `Ctrl-\`. */
112 | public static let quit = Signal(rawValue: SIGQUIT)
| `- error: cannot find 'SIGQUIT' in scope
113 | public static let killed = Signal(rawValue: SIGKILL)
114 | /** The user’s terminal disconnected. */
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Signal.swift:48:20: warning: static property 'toForwardToSubprocesses' is not concurrency-safe because non-'Sendable' type 'Set<Signal>' may have shared mutable state; this is an error in the Swift 6 language mode
5 | /* Could be an enum?
6 | * I’d say no to be able to represent signals we don’t know are a part of the system. */
7 | public struct Signal : RawRepresentable, Hashable, Codable, CaseIterable, CustomStringConvertible {
| `- note: consider making struct 'Signal' conform to the 'Sendable' protocol
8 |
9 | /* Signal 0 is not considered.
:
46 | - Important: As previously mentionned, this list is hand-crafted and does not correspond to any system development notion,
47 | or anything that I know of. */
48 | public static let toForwardToSubprocesses: Set<Signal> = {
| |- warning: static property 'toForwardToSubprocesses' is not concurrency-safe because non-'Sendable' type 'Set<Signal>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'toForwardToSubprocesses' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
49 | return Set(arrayLiteral:
50 | .suspended, /* Ctrl-Z */
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Signal.swift:171:57: error: cannot find 'SIGTSTP' in scope
169 | public static let suspendedBySignal = Signal(rawValue: SIGSTOP)
170 | /** Suspends the program but can be handled and ignored. Usually `Ctrl-Z`. */
171 | public static let suspended = Signal(rawValue: SIGTSTP)
| `- error: cannot find 'SIGTSTP' in scope
172 | public static let stoppedTTYInput = Signal(rawValue: SIGTTIN)
173 | public static let stoppedTTYOutput = Signal(rawValue: SIGTTOU)
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Signal.swift:167:57: error: cannot find 'SIGCONT' in scope
165 | /* Obsolete name for SIGCHLD. */
166 | // public static let cildExited = Signal(rawValue: SIGCLD)
167 | public static let continued = Signal(rawValue: SIGCONT)
| `- error: cannot find 'SIGCONT' in scope
168 | /** Suspends the program. Cannot be handled, ignored or blocked. */
169 | public static let suspendedBySignal = Signal(rawValue: SIGSTOP)
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Signal.swift:79:62: error: cannot find 'SIGFPE' in scope
77 | /**
78 | - Note: FPE means Floating-Point Exception but this signal is sent for any arithmetic error. */
79 | public static let arithmeticError = Signal(rawValue: SIGFPE)
| `- error: cannot find 'SIGFPE' in scope
80 | @available(*, unavailable, renamed: "arithmeticError")
81 | public static let floatingPointException = Signal(rawValue: SIGFPE)
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Signal.swift:81:62: error: cannot find 'SIGFPE' in scope
79 | public static let arithmeticError = Signal(rawValue: SIGFPE)
80 | @available(*, unavailable, renamed: "arithmeticError")
81 | public static let floatingPointException = Signal(rawValue: SIGFPE)
| `- error: cannot find 'SIGFPE' in scope
82 | public static let illegalInstruction = Signal(rawValue: SIGILL)
83 | public static let segmentationFault = Signal(rawValue: SIGSEGV)
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Signal.swift:82:62: error: cannot find 'SIGILL' in scope
80 | @available(*, unavailable, renamed: "arithmeticError")
81 | public static let floatingPointException = Signal(rawValue: SIGFPE)
82 | public static let illegalInstruction = Signal(rawValue: SIGILL)
| `- error: cannot find 'SIGILL' in scope
83 | public static let segmentationFault = Signal(rawValue: SIGSEGV)
84 | public static let busError = Signal(rawValue: SIGBUS)
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Signal.swift:83:62: error: cannot find 'SIGSEGV' in scope
81 | public static let floatingPointException = Signal(rawValue: SIGFPE)
82 | public static let illegalInstruction = Signal(rawValue: SIGILL)
83 | public static let segmentationFault = Signal(rawValue: SIGSEGV)
| `- error: cannot find 'SIGSEGV' in scope
84 | public static let busError = Signal(rawValue: SIGBUS)
85 | public static let abortTrap = Signal(rawValue: SIGABRT)
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Signal.swift:84:62: error: cannot find 'SIGBUS' in scope
82 | public static let illegalInstruction = Signal(rawValue: SIGILL)
83 | public static let segmentationFault = Signal(rawValue: SIGSEGV)
84 | public static let busError = Signal(rawValue: SIGBUS)
| `- error: cannot find 'SIGBUS' in scope
85 | public static let abortTrap = Signal(rawValue: SIGABRT)
86 | /** Usually the same as `abortTrap`. */
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Signal.swift:85:62: error: cannot find 'SIGABRT' in scope
83 | public static let segmentationFault = Signal(rawValue: SIGSEGV)
84 | public static let busError = Signal(rawValue: SIGBUS)
85 | public static let abortTrap = Signal(rawValue: SIGABRT)
| `- error: cannot find 'SIGABRT' in scope
86 | /** Usually the same as `abortTrap`. */
87 | public static let iot = Signal(rawValue: SIGIOT)
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Signal.swift:87:62: error: cannot find 'SIGIOT' in scope
85 | public static let abortTrap = Signal(rawValue: SIGABRT)
86 | /** Usually the same as `abortTrap`. */
87 | public static let iot = Signal(rawValue: SIGIOT)
| `- error: cannot find 'SIGIOT' in scope
88 | public static let traceBreakpointTrap = Signal(rawValue: SIGTRAP)
89 | #if !os(Linux)
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Signal.swift:88:62: error: cannot find 'SIGTRAP' in scope
86 | /** Usually the same as `abortTrap`. */
87 | public static let iot = Signal(rawValue: SIGIOT)
88 | public static let traceBreakpointTrap = Signal(rawValue: SIGTRAP)
| `- error: cannot find 'SIGTRAP' in scope
89 | #if !os(Linux)
90 | public static let emulatorTrap = Signal(rawValue: SIGEMT)
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Signal.swift:90:62: error: cannot find 'SIGEMT' in scope
88 | public static let traceBreakpointTrap = Signal(rawValue: SIGTRAP)
89 | #if !os(Linux)
90 | public static let emulatorTrap = Signal(rawValue: SIGEMT)
| `- error: cannot find 'SIGEMT' in scope
91 | #endif
92 | public static let badSystemCall = Signal(rawValue: SIGSYS)
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Signal.swift:92:62: error: cannot find 'SIGSYS' in scope
90 | public static let emulatorTrap = Signal(rawValue: SIGEMT)
91 | #endif
92 | public static let badSystemCall = Signal(rawValue: SIGSYS)
| `- error: cannot find 'SIGSYS' in scope
93 |
94 | /* *** Termination Signals *** */
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Signal.swift:113:50: error: cannot find 'SIGKILL' in scope
111 | /** Used to quit w/ generation of a core dump. Usually `Ctrl-\`. */
112 | public static let quit = Signal(rawValue: SIGQUIT)
113 | public static let killed = Signal(rawValue: SIGKILL)
| `- error: cannot find 'SIGKILL' in scope
114 | /** The user’s terminal disconnected. */
115 | public static let hangup = Signal(rawValue: SIGHUP)
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Signal.swift:115:50: error: cannot find 'SIGHUP' in scope
113 | public static let killed = Signal(rawValue: SIGKILL)
114 | /** The user’s terminal disconnected. */
115 | public static let hangup = Signal(rawValue: SIGHUP)
| `- error: cannot find 'SIGHUP' in scope
116 |
117 | /* *** Alarm Signals *** */
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Signal.swift:128:61: error: cannot find 'SIGALRM' in scope
126 | }
127 |
128 | public static let alarmClock = Signal(rawValue: SIGALRM)
| `- error: cannot find 'SIGALRM' in scope
129 | public static let virtualTimerExpired = Signal(rawValue: SIGVTALRM)
130 | public static let profilingTimerExpired = Signal(rawValue: SIGPROF)
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Signal.swift:129:61: error: cannot find 'SIGVTALRM' in scope
127 |
128 | public static let alarmClock = Signal(rawValue: SIGALRM)
129 | public static let virtualTimerExpired = Signal(rawValue: SIGVTALRM)
| `- error: cannot find 'SIGVTALRM' in scope
130 | public static let profilingTimerExpired = Signal(rawValue: SIGPROF)
131 |
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Signal.swift:130:61: error: cannot find 'SIGPROF' in scope
128 | public static let alarmClock = Signal(rawValue: SIGALRM)
129 | public static let virtualTimerExpired = Signal(rawValue: SIGVTALRM)
130 | public static let profilingTimerExpired = Signal(rawValue: SIGPROF)
| `- error: cannot find 'SIGPROF' in scope
131 |
132 | /* *** Asynchronous I/O Signals *** */
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Signal.swift:143:57: error: cannot find 'SIGIO' in scope
141 | }
142 |
143 | public static let ioPossible = Signal(rawValue: SIGIO)
| `- error: cannot find 'SIGIO' in scope
144 | public static let urgentIOCondition = Signal(rawValue: SIGURG)
145 | #if os(Linux)
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Signal.swift:144:57: error: cannot find 'SIGURG' in scope
142 |
143 | public static let ioPossible = Signal(rawValue: SIGIO)
144 | public static let urgentIOCondition = Signal(rawValue: SIGURG)
| `- error: cannot find 'SIGURG' in scope
145 | #if os(Linux)
146 | /** System V signal name, similar to SIGIO. */
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Signal.swift:164:57: error: cannot find 'SIGCHLD' in scope
162 | }
163 |
164 | public static let childExited = Signal(rawValue: SIGCHLD)
| `- error: cannot find 'SIGCHLD' in scope
165 | /* Obsolete name for SIGCHLD. */
166 | // public static let cildExited = Signal(rawValue: SIGCLD)
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Signal.swift:169:57: error: cannot find 'SIGSTOP' in scope
167 | public static let continued = Signal(rawValue: SIGCONT)
168 | /** Suspends the program. Cannot be handled, ignored or blocked. */
169 | public static let suspendedBySignal = Signal(rawValue: SIGSTOP)
| `- error: cannot find 'SIGSTOP' in scope
170 | /** Suspends the program but can be handled and ignored. Usually `Ctrl-Z`. */
171 | public static let suspended = Signal(rawValue: SIGTSTP)
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Signal.swift:172:57: error: cannot find 'SIGTTIN' in scope
170 | /** Suspends the program but can be handled and ignored. Usually `Ctrl-Z`. */
171 | public static let suspended = Signal(rawValue: SIGTSTP)
172 | public static let stoppedTTYInput = Signal(rawValue: SIGTTIN)
| `- error: cannot find 'SIGTTIN' in scope
173 | public static let stoppedTTYOutput = Signal(rawValue: SIGTTOU)
174 |
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Signal.swift:173:57: error: cannot find 'SIGTTOU' in scope
171 | public static let suspended = Signal(rawValue: SIGTSTP)
172 | public static let stoppedTTYInput = Signal(rawValue: SIGTTIN)
173 | public static let stoppedTTYOutput = Signal(rawValue: SIGTTOU)
| `- error: cannot find 'SIGTTOU' in scope
174 |
175 | /* *** Operation Error Signals *** */
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Signal.swift:186:61: error: cannot find 'SIGPIPE' in scope
184 | }
185 |
186 | public static let brokenPipe = Signal(rawValue: SIGPIPE)
| `- error: cannot find 'SIGPIPE' in scope
187 | // public static let resourceLost = Signal(rawValue: SIGLOST)
188 | public static let cputimeLimitExceeded = Signal(rawValue: SIGXCPU)
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Signal.swift:188:61: error: cannot find 'SIGXCPU' in scope
186 | public static let brokenPipe = Signal(rawValue: SIGPIPE)
187 | // public static let resourceLost = Signal(rawValue: SIGLOST)
188 | public static let cputimeLimitExceeded = Signal(rawValue: SIGXCPU)
| `- error: cannot find 'SIGXCPU' in scope
189 | public static let filesizeLimitExceeded = Signal(rawValue: SIGXFSZ)
190 |
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Signal.swift:189:61: error: cannot find 'SIGXFSZ' in scope
187 | // public static let resourceLost = Signal(rawValue: SIGLOST)
188 | public static let cputimeLimitExceeded = Signal(rawValue: SIGXCPU)
189 | public static let filesizeLimitExceeded = Signal(rawValue: SIGXFSZ)
| `- error: cannot find 'SIGXFSZ' in scope
190 |
191 | /* *** Miscellaneous Signals *** */
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Signal.swift:208:58: error: cannot find 'SIGUSR1' in scope
206 | }
207 |
208 | public static let userDefinedSignal1 = Signal(rawValue: SIGUSR1)
| `- error: cannot find 'SIGUSR1' in scope
209 | public static let userDefinedSignal2 = Signal(rawValue: SIGUSR2)
210 | public static let windowSizeChanges = Signal(rawValue: SIGWINCH)
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Signal.swift:209:58: error: cannot find 'SIGUSR2' in scope
207 |
208 | public static let userDefinedSignal1 = Signal(rawValue: SIGUSR1)
209 | public static let userDefinedSignal2 = Signal(rawValue: SIGUSR2)
| `- error: cannot find 'SIGUSR2' in scope
210 | public static let windowSizeChanges = Signal(rawValue: SIGWINCH)
211 | #if !os(Linux)
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Signal.swift:210:58: error: cannot find 'SIGWINCH' in scope
208 | public static let userDefinedSignal1 = Signal(rawValue: SIGUSR1)
209 | public static let userDefinedSignal2 = Signal(rawValue: SIGUSR2)
210 | public static let windowSizeChanges = Signal(rawValue: SIGWINCH)
| `- error: cannot find 'SIGWINCH' in scope
211 | #if !os(Linux)
212 | public static let informationRequest = Signal(rawValue: SIGINFO)
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Signal.swift:212:58: error: cannot find 'SIGINFO' in scope
210 | public static let windowSizeChanges = Signal(rawValue: SIGWINCH)
211 | #if !os(Linux)
212 | public static let informationRequest = Signal(rawValue: SIGINFO)
| `- error: cannot find 'SIGINFO' in scope
213 | #endif
214 |
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Signal.swift:237:3: error: cannot find 'sigemptyset' in scope
235 | public static let emptySigset: sigset_t = {
236 | var sigset = sigset_t()
237 | sigemptyset(&sigset)
| `- error: cannot find 'sigemptyset' in scope
238 | return sigset
239 | }()
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Signal.swift:247:3: error: cannot find 'sigfillset' in scope
245 | public static let fullSigset: sigset_t = {
246 | var sigset = sigset_t()
247 | sigfillset(&sigset)
| `- error: cannot find 'sigfillset' in scope
248 | return sigset
249 | }()
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Signal.swift:13:15: error: cannot find 'NSIG' in scope
11 | * It is simply a special value that can be used by kill to check if a signal can be sent to a given PID. */
12 | public static var allCases: [Signal] {
13 | return (1..<NSIG).map{ Signal(rawValue: CInt($0)) }
| `- error: cannot find 'NSIG' in scope
14 | }
15 |
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Signal.swift:232:19: error: cannot find 'NSIG' in scope
230 | public static func set(from sigset: sigset_t) -> Set<Signal> {
231 | var sigset = sigset
232 | return Set((1..<NSIG).filter{ sigismember(&sigset, $0) != 0 }.map{ Signal(rawValue: $0) })
| `- error: cannot find 'NSIG' in scope
233 | }
234 |
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Signal.swift:232:33: error: cannot find 'sigismember' in scope
230 | public static func set(from sigset: sigset_t) -> Set<Signal> {
231 | var sigset = sigset
232 | return Set((1..<NSIG).filter{ sigismember(&sigset, $0) != 0 }.map{ Signal(rawValue: $0) })
| `- error: cannot find 'sigismember' in scope
233 | }
234 |
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Signal.swift:253:3: error: cannot find 'sigemptyset' in scope
251 | public static func sigset(from setOfSignals: Set<Signal>) -> sigset_t {
252 | var sigset = sigset_t()
253 | sigemptyset(&sigset)
| `- error: cannot find 'sigemptyset' in scope
254 | for s in setOfSignals {sigaddset(&sigset, s.rawValue)}
255 | return sigset
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Signal.swift:254:26: error: cannot find 'sigaddset' in scope
252 | var sigset = sigset_t()
253 | sigemptyset(&sigset)
254 | for s in setOfSignals {sigaddset(&sigset, s.rawValue)}
| `- error: cannot find 'sigaddset' in scope
255 | return sigset
256 | }
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Signal.swift:262:3: error: cannot find 'sigemptyset' in scope
260 | public var sigset: sigset_t {
261 | var sigset = sigset_t()
262 | sigemptyset(&sigset)
| `- error: cannot find 'sigemptyset' in scope
263 | sigaddset(&sigset, rawValue)
264 | return sigset
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Signal.swift:263:3: error: cannot find 'sigaddset' in scope
261 | var sigset = sigset_t()
262 | sigemptyset(&sigset)
263 | sigaddset(&sigset, rawValue)
| `- error: cannot find 'sigaddset' in scope
264 | return sigset
265 | }
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Signal.swift:274:37: error: cannot find 'NSIG' in scope
272 | public var signalName: String? {
273 | #if !os(Linux)
274 | guard rawValue >= 0 && rawValue < NSIG else {
| `- error: cannot find 'NSIG' in scope
275 | return nil
276 | }
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Signal.swift:278:32: error: cannot find 'sys_signame' in scope
276 | }
277 |
278 | return withUnsafePointer(to: sys_signame, { siglistPtr in
| `- error: cannot find 'sys_signame' in scope
279 | return siglistPtr.withMemoryRebound(to: UnsafePointer<UInt8>?.self, capacity: Int(NSIG), { siglistPtrAsPointerToCStrings in
280 | return siglistPtrAsPointerToCStrings.advanced(by: Int(rawValue)).pointee.flatMap{ String(cString: $0) }
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Signal.swift:279:86: error: cannot find 'NSIG' in scope
277 |
278 | return withUnsafePointer(to: sys_signame, { siglistPtr in
279 | return siglistPtr.withMemoryRebound(to: UnsafePointer<UInt8>?.self, capacity: Int(NSIG), { siglistPtrAsPointerToCStrings in
| `- error: cannot find 'NSIG' in scope
280 | return siglistPtrAsPointerToCStrings.advanced(by: Int(rawValue)).pointee.flatMap{ String(cString: $0) }
281 | })
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Signal.swift:301:37: error: cannot find 'NSIG' in scope
299 | public var signalDescription: String? {
300 | #if !os(Linux)
301 | guard rawValue >= 0 && rawValue < NSIG else {
| `- error: cannot find 'NSIG' in scope
302 | return nil
303 | }
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Signal.swift:305:32: error: cannot find 'sys_siglist' in scope
303 | }
304 |
305 | return withUnsafePointer(to: sys_siglist, { siglistPtr in
| `- error: cannot find 'sys_siglist' in scope
306 | return siglistPtr.withMemoryRebound(to: UnsafePointer<UInt8>?.self, capacity: Int(NSIG), { siglistPtrAsPointerToCStrings in
307 | return siglistPtrAsPointerToCStrings.advanced(by: Int(rawValue)).pointee.flatMap{ String(cString: $0) }
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Signal.swift:306:86: error: cannot find 'NSIG' in scope
304 |
305 | return withUnsafePointer(to: sys_siglist, { siglistPtr in
306 | return siglistPtr.withMemoryRebound(to: UnsafePointer<UInt8>?.self, capacity: Int(NSIG), { siglistPtrAsPointerToCStrings in
| `- error: cannot find 'NSIG' in scope
307 | return siglistPtrAsPointerToCStrings.advanced(by: Int(rawValue)).pointee.flatMap{ String(cString: $0) }
308 | })
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/SigactionHandler.swift:19:80: error: cannot find type 'siginfo_t' in scope
17 |
18 | case ansiC(@convention(c) (_ signalID: Int32) -> Void)
19 | case posix(@convention(c) (_ signalID: Int32, _ siginfo: UnsafeMutablePointer<siginfo_t>?, _ userThreadContext: UnsafeMutableRawPointer?) -> Void)
| `- error: cannot find type 'siginfo_t' in scope
20 |
21 | public static func ==(lhs: SigactionHandler, rhs: SigactionHandler) -> Bool {
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/SigactionHandler.swift:38:73: error: cannot find 'SIG_IGN' in scope
36 | var asOpaquePointer: OpaquePointer? {
37 | switch self {
38 | case .ignoreHandler: return OpaquePointer(bitPattern: unsafeBitCast(SIG_IGN, to: Int.self))
| `- error: cannot find 'SIG_IGN' in scope
39 | case .defaultHandler: return OpaquePointer(bitPattern: unsafeBitCast(SIG_DFL, to: Int.self))
40 | case .ansiC(let h): return OpaquePointer(bitPattern: unsafeBitCast(h, to: Int.self))
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/SigactionHandler.swift:39:73: error: cannot find 'SIG_DFL' in scope
37 | switch self {
38 | case .ignoreHandler: return OpaquePointer(bitPattern: unsafeBitCast(SIG_IGN, to: Int.self))
39 | case .defaultHandler: return OpaquePointer(bitPattern: unsafeBitCast(SIG_DFL, to: Int.self))
| `- error: cannot find 'SIG_DFL' in scope
40 | case .ansiC(let h): return OpaquePointer(bitPattern: unsafeBitCast(h, to: Int.self))
41 | case .posix(let h): return OpaquePointer(bitPattern: unsafeBitCast(h, to: Int.self))
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Signal.swift:34:20: warning: static property 'killingSignals' is not concurrency-safe because non-'Sendable' type 'Set<Signal>' may have shared mutable state; this is an error in the Swift 6 language mode
5 | /* Could be an enum?
6 | * I’d say no to be able to represent signals we don’t know are a part of the system. */
7 | public struct Signal : RawRepresentable, Hashable, Codable, CaseIterable, CustomStringConvertible {
| `- note: consider making struct 'Signal' conform to the 'Sendable' protocol
8 |
9 | /* Signal 0 is not considered.
:
32 |
33 | - Important: As previously mentionned, this list is hand-crafted and might be missing signals or having too many of them. */
34 | public static let killingSignals: Set<Signal> = {
| |- warning: static property 'killingSignals' is not concurrency-safe because non-'Sendable' type 'Set<Signal>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'killingSignals' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
35 | return Set(arrayLiteral:
36 | .terminated, /* Default kill */
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Signal.swift:108:50: error: cannot find 'SIGTERM' in scope
106 |
107 | /** “Normal” kill signal. */
108 | public static let terminated = Signal(rawValue: SIGTERM)
| `- error: cannot find 'SIGTERM' in scope
109 | /** Usually `Ctrl-C`. */
110 | public static let interrupt = Signal(rawValue: SIGINT)
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Signal.swift:110:50: error: cannot find 'SIGINT' in scope
108 | public static let terminated = Signal(rawValue: SIGTERM)
109 | /** Usually `Ctrl-C`. */
110 | public static let interrupt = Signal(rawValue: SIGINT)
| `- error: cannot find 'SIGINT' in scope
111 | /** Used to quit w/ generation of a core dump. Usually `Ctrl-\`. */
112 | public static let quit = Signal(rawValue: SIGQUIT)
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Signal.swift:112:50: error: cannot find 'SIGQUIT' in scope
110 | public static let interrupt = Signal(rawValue: SIGINT)
111 | /** Used to quit w/ generation of a core dump. Usually `Ctrl-\`. */
112 | public static let quit = Signal(rawValue: SIGQUIT)
| `- error: cannot find 'SIGQUIT' in scope
113 | public static let killed = Signal(rawValue: SIGKILL)
114 | /** The user’s terminal disconnected. */
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Signal.swift:48:20: warning: static property 'toForwardToSubprocesses' is not concurrency-safe because non-'Sendable' type 'Set<Signal>' may have shared mutable state; this is an error in the Swift 6 language mode
5 | /* Could be an enum?
6 | * I’d say no to be able to represent signals we don’t know are a part of the system. */
7 | public struct Signal : RawRepresentable, Hashable, Codable, CaseIterable, CustomStringConvertible {
| `- note: consider making struct 'Signal' conform to the 'Sendable' protocol
8 |
9 | /* Signal 0 is not considered.
:
46 | - Important: As previously mentionned, this list is hand-crafted and does not correspond to any system development notion,
47 | or anything that I know of. */
48 | public static let toForwardToSubprocesses: Set<Signal> = {
| |- warning: static property 'toForwardToSubprocesses' is not concurrency-safe because non-'Sendable' type 'Set<Signal>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'toForwardToSubprocesses' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
49 | return Set(arrayLiteral:
50 | .suspended, /* Ctrl-Z */
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Signal.swift:171:57: error: cannot find 'SIGTSTP' in scope
169 | public static let suspendedBySignal = Signal(rawValue: SIGSTOP)
170 | /** Suspends the program but can be handled and ignored. Usually `Ctrl-Z`. */
171 | public static let suspended = Signal(rawValue: SIGTSTP)
| `- error: cannot find 'SIGTSTP' in scope
172 | public static let stoppedTTYInput = Signal(rawValue: SIGTTIN)
173 | public static let stoppedTTYOutput = Signal(rawValue: SIGTTOU)
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Signal.swift:167:57: error: cannot find 'SIGCONT' in scope
165 | /* Obsolete name for SIGCHLD. */
166 | // public static let cildExited = Signal(rawValue: SIGCLD)
167 | public static let continued = Signal(rawValue: SIGCONT)
| `- error: cannot find 'SIGCONT' in scope
168 | /** Suspends the program. Cannot be handled, ignored or blocked. */
169 | public static let suspendedBySignal = Signal(rawValue: SIGSTOP)
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Signal.swift:79:62: error: cannot find 'SIGFPE' in scope
77 | /**
78 | - Note: FPE means Floating-Point Exception but this signal is sent for any arithmetic error. */
79 | public static let arithmeticError = Signal(rawValue: SIGFPE)
| `- error: cannot find 'SIGFPE' in scope
80 | @available(*, unavailable, renamed: "arithmeticError")
81 | public static let floatingPointException = Signal(rawValue: SIGFPE)
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Signal.swift:81:62: error: cannot find 'SIGFPE' in scope
79 | public static let arithmeticError = Signal(rawValue: SIGFPE)
80 | @available(*, unavailable, renamed: "arithmeticError")
81 | public static let floatingPointException = Signal(rawValue: SIGFPE)
| `- error: cannot find 'SIGFPE' in scope
82 | public static let illegalInstruction = Signal(rawValue: SIGILL)
83 | public static let segmentationFault = Signal(rawValue: SIGSEGV)
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Signal.swift:82:62: error: cannot find 'SIGILL' in scope
80 | @available(*, unavailable, renamed: "arithmeticError")
81 | public static let floatingPointException = Signal(rawValue: SIGFPE)
82 | public static let illegalInstruction = Signal(rawValue: SIGILL)
| `- error: cannot find 'SIGILL' in scope
83 | public static let segmentationFault = Signal(rawValue: SIGSEGV)
84 | public static let busError = Signal(rawValue: SIGBUS)
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Signal.swift:83:62: error: cannot find 'SIGSEGV' in scope
81 | public static let floatingPointException = Signal(rawValue: SIGFPE)
82 | public static let illegalInstruction = Signal(rawValue: SIGILL)
83 | public static let segmentationFault = Signal(rawValue: SIGSEGV)
| `- error: cannot find 'SIGSEGV' in scope
84 | public static let busError = Signal(rawValue: SIGBUS)
85 | public static let abortTrap = Signal(rawValue: SIGABRT)
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Signal.swift:84:62: error: cannot find 'SIGBUS' in scope
82 | public static let illegalInstruction = Signal(rawValue: SIGILL)
83 | public static let segmentationFault = Signal(rawValue: SIGSEGV)
84 | public static let busError = Signal(rawValue: SIGBUS)
| `- error: cannot find 'SIGBUS' in scope
85 | public static let abortTrap = Signal(rawValue: SIGABRT)
86 | /** Usually the same as `abortTrap`. */
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Signal.swift:85:62: error: cannot find 'SIGABRT' in scope
83 | public static let segmentationFault = Signal(rawValue: SIGSEGV)
84 | public static let busError = Signal(rawValue: SIGBUS)
85 | public static let abortTrap = Signal(rawValue: SIGABRT)
| `- error: cannot find 'SIGABRT' in scope
86 | /** Usually the same as `abortTrap`. */
87 | public static let iot = Signal(rawValue: SIGIOT)
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Signal.swift:87:62: error: cannot find 'SIGIOT' in scope
85 | public static let abortTrap = Signal(rawValue: SIGABRT)
86 | /** Usually the same as `abortTrap`. */
87 | public static let iot = Signal(rawValue: SIGIOT)
| `- error: cannot find 'SIGIOT' in scope
88 | public static let traceBreakpointTrap = Signal(rawValue: SIGTRAP)
89 | #if !os(Linux)
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Signal.swift:88:62: error: cannot find 'SIGTRAP' in scope
86 | /** Usually the same as `abortTrap`. */
87 | public static let iot = Signal(rawValue: SIGIOT)
88 | public static let traceBreakpointTrap = Signal(rawValue: SIGTRAP)
| `- error: cannot find 'SIGTRAP' in scope
89 | #if !os(Linux)
90 | public static let emulatorTrap = Signal(rawValue: SIGEMT)
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Signal.swift:90:62: error: cannot find 'SIGEMT' in scope
88 | public static let traceBreakpointTrap = Signal(rawValue: SIGTRAP)
89 | #if !os(Linux)
90 | public static let emulatorTrap = Signal(rawValue: SIGEMT)
| `- error: cannot find 'SIGEMT' in scope
91 | #endif
92 | public static let badSystemCall = Signal(rawValue: SIGSYS)
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Signal.swift:92:62: error: cannot find 'SIGSYS' in scope
90 | public static let emulatorTrap = Signal(rawValue: SIGEMT)
91 | #endif
92 | public static let badSystemCall = Signal(rawValue: SIGSYS)
| `- error: cannot find 'SIGSYS' in scope
93 |
94 | /* *** Termination Signals *** */
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Signal.swift:113:50: error: cannot find 'SIGKILL' in scope
111 | /** Used to quit w/ generation of a core dump. Usually `Ctrl-\`. */
112 | public static let quit = Signal(rawValue: SIGQUIT)
113 | public static let killed = Signal(rawValue: SIGKILL)
| `- error: cannot find 'SIGKILL' in scope
114 | /** The user’s terminal disconnected. */
115 | public static let hangup = Signal(rawValue: SIGHUP)
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Signal.swift:115:50: error: cannot find 'SIGHUP' in scope
113 | public static let killed = Signal(rawValue: SIGKILL)
114 | /** The user’s terminal disconnected. */
115 | public static let hangup = Signal(rawValue: SIGHUP)
| `- error: cannot find 'SIGHUP' in scope
116 |
117 | /* *** Alarm Signals *** */
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Signal.swift:128:61: error: cannot find 'SIGALRM' in scope
126 | }
127 |
128 | public static let alarmClock = Signal(rawValue: SIGALRM)
| `- error: cannot find 'SIGALRM' in scope
129 | public static let virtualTimerExpired = Signal(rawValue: SIGVTALRM)
130 | public static let profilingTimerExpired = Signal(rawValue: SIGPROF)
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Signal.swift:129:61: error: cannot find 'SIGVTALRM' in scope
127 |
128 | public static let alarmClock = Signal(rawValue: SIGALRM)
129 | public static let virtualTimerExpired = Signal(rawValue: SIGVTALRM)
| `- error: cannot find 'SIGVTALRM' in scope
130 | public static let profilingTimerExpired = Signal(rawValue: SIGPROF)
131 |
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Signal.swift:130:61: error: cannot find 'SIGPROF' in scope
128 | public static let alarmClock = Signal(rawValue: SIGALRM)
129 | public static let virtualTimerExpired = Signal(rawValue: SIGVTALRM)
130 | public static let profilingTimerExpired = Signal(rawValue: SIGPROF)
| `- error: cannot find 'SIGPROF' in scope
131 |
132 | /* *** Asynchronous I/O Signals *** */
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Signal.swift:143:57: error: cannot find 'SIGIO' in scope
141 | }
142 |
143 | public static let ioPossible = Signal(rawValue: SIGIO)
| `- error: cannot find 'SIGIO' in scope
144 | public static let urgentIOCondition = Signal(rawValue: SIGURG)
145 | #if os(Linux)
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Signal.swift:144:57: error: cannot find 'SIGURG' in scope
142 |
143 | public static let ioPossible = Signal(rawValue: SIGIO)
144 | public static let urgentIOCondition = Signal(rawValue: SIGURG)
| `- error: cannot find 'SIGURG' in scope
145 | #if os(Linux)
146 | /** System V signal name, similar to SIGIO. */
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Signal.swift:164:57: error: cannot find 'SIGCHLD' in scope
162 | }
163 |
164 | public static let childExited = Signal(rawValue: SIGCHLD)
| `- error: cannot find 'SIGCHLD' in scope
165 | /* Obsolete name for SIGCHLD. */
166 | // public static let cildExited = Signal(rawValue: SIGCLD)
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Signal.swift:169:57: error: cannot find 'SIGSTOP' in scope
167 | public static let continued = Signal(rawValue: SIGCONT)
168 | /** Suspends the program. Cannot be handled, ignored or blocked. */
169 | public static let suspendedBySignal = Signal(rawValue: SIGSTOP)
| `- error: cannot find 'SIGSTOP' in scope
170 | /** Suspends the program but can be handled and ignored. Usually `Ctrl-Z`. */
171 | public static let suspended = Signal(rawValue: SIGTSTP)
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Signal.swift:172:57: error: cannot find 'SIGTTIN' in scope
170 | /** Suspends the program but can be handled and ignored. Usually `Ctrl-Z`. */
171 | public static let suspended = Signal(rawValue: SIGTSTP)
172 | public static let stoppedTTYInput = Signal(rawValue: SIGTTIN)
| `- error: cannot find 'SIGTTIN' in scope
173 | public static let stoppedTTYOutput = Signal(rawValue: SIGTTOU)
174 |
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Signal.swift:173:57: error: cannot find 'SIGTTOU' in scope
171 | public static let suspended = Signal(rawValue: SIGTSTP)
172 | public static let stoppedTTYInput = Signal(rawValue: SIGTTIN)
173 | public static let stoppedTTYOutput = Signal(rawValue: SIGTTOU)
| `- error: cannot find 'SIGTTOU' in scope
174 |
175 | /* *** Operation Error Signals *** */
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Signal.swift:186:61: error: cannot find 'SIGPIPE' in scope
184 | }
185 |
186 | public static let brokenPipe = Signal(rawValue: SIGPIPE)
| `- error: cannot find 'SIGPIPE' in scope
187 | // public static let resourceLost = Signal(rawValue: SIGLOST)
188 | public static let cputimeLimitExceeded = Signal(rawValue: SIGXCPU)
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Signal.swift:188:61: error: cannot find 'SIGXCPU' in scope
186 | public static let brokenPipe = Signal(rawValue: SIGPIPE)
187 | // public static let resourceLost = Signal(rawValue: SIGLOST)
188 | public static let cputimeLimitExceeded = Signal(rawValue: SIGXCPU)
| `- error: cannot find 'SIGXCPU' in scope
189 | public static let filesizeLimitExceeded = Signal(rawValue: SIGXFSZ)
190 |
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Signal.swift:189:61: error: cannot find 'SIGXFSZ' in scope
187 | // public static let resourceLost = Signal(rawValue: SIGLOST)
188 | public static let cputimeLimitExceeded = Signal(rawValue: SIGXCPU)
189 | public static let filesizeLimitExceeded = Signal(rawValue: SIGXFSZ)
| `- error: cannot find 'SIGXFSZ' in scope
190 |
191 | /* *** Miscellaneous Signals *** */
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Signal.swift:208:58: error: cannot find 'SIGUSR1' in scope
206 | }
207 |
208 | public static let userDefinedSignal1 = Signal(rawValue: SIGUSR1)
| `- error: cannot find 'SIGUSR1' in scope
209 | public static let userDefinedSignal2 = Signal(rawValue: SIGUSR2)
210 | public static let windowSizeChanges = Signal(rawValue: SIGWINCH)
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Signal.swift:209:58: error: cannot find 'SIGUSR2' in scope
207 |
208 | public static let userDefinedSignal1 = Signal(rawValue: SIGUSR1)
209 | public static let userDefinedSignal2 = Signal(rawValue: SIGUSR2)
| `- error: cannot find 'SIGUSR2' in scope
210 | public static let windowSizeChanges = Signal(rawValue: SIGWINCH)
211 | #if !os(Linux)
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Signal.swift:210:58: error: cannot find 'SIGWINCH' in scope
208 | public static let userDefinedSignal1 = Signal(rawValue: SIGUSR1)
209 | public static let userDefinedSignal2 = Signal(rawValue: SIGUSR2)
210 | public static let windowSizeChanges = Signal(rawValue: SIGWINCH)
| `- error: cannot find 'SIGWINCH' in scope
211 | #if !os(Linux)
212 | public static let informationRequest = Signal(rawValue: SIGINFO)
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Signal.swift:212:58: error: cannot find 'SIGINFO' in scope
210 | public static let windowSizeChanges = Signal(rawValue: SIGWINCH)
211 | #if !os(Linux)
212 | public static let informationRequest = Signal(rawValue: SIGINFO)
| `- error: cannot find 'SIGINFO' in scope
213 | #endif
214 |
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Signal.swift:237:3: error: cannot find 'sigemptyset' in scope
235 | public static let emptySigset: sigset_t = {
236 | var sigset = sigset_t()
237 | sigemptyset(&sigset)
| `- error: cannot find 'sigemptyset' in scope
238 | return sigset
239 | }()
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Signal.swift:247:3: error: cannot find 'sigfillset' in scope
245 | public static let fullSigset: sigset_t = {
246 | var sigset = sigset_t()
247 | sigfillset(&sigset)
| `- error: cannot find 'sigfillset' in scope
248 | return sigset
249 | }()
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Signal.swift:13:15: error: cannot find 'NSIG' in scope
11 | * It is simply a special value that can be used by kill to check if a signal can be sent to a given PID. */
12 | public static var allCases: [Signal] {
13 | return (1..<NSIG).map{ Signal(rawValue: CInt($0)) }
| `- error: cannot find 'NSIG' in scope
14 | }
15 |
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Signal.swift:232:19: error: cannot find 'NSIG' in scope
230 | public static func set(from sigset: sigset_t) -> Set<Signal> {
231 | var sigset = sigset
232 | return Set((1..<NSIG).filter{ sigismember(&sigset, $0) != 0 }.map{ Signal(rawValue: $0) })
| `- error: cannot find 'NSIG' in scope
233 | }
234 |
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Signal.swift:232:33: error: cannot find 'sigismember' in scope
230 | public static func set(from sigset: sigset_t) -> Set<Signal> {
231 | var sigset = sigset
232 | return Set((1..<NSIG).filter{ sigismember(&sigset, $0) != 0 }.map{ Signal(rawValue: $0) })
| `- error: cannot find 'sigismember' in scope
233 | }
234 |
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Signal.swift:253:3: error: cannot find 'sigemptyset' in scope
251 | public static func sigset(from setOfSignals: Set<Signal>) -> sigset_t {
252 | var sigset = sigset_t()
253 | sigemptyset(&sigset)
| `- error: cannot find 'sigemptyset' in scope
254 | for s in setOfSignals {sigaddset(&sigset, s.rawValue)}
255 | return sigset
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Signal.swift:254:26: error: cannot find 'sigaddset' in scope
252 | var sigset = sigset_t()
253 | sigemptyset(&sigset)
254 | for s in setOfSignals {sigaddset(&sigset, s.rawValue)}
| `- error: cannot find 'sigaddset' in scope
255 | return sigset
256 | }
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Signal.swift:262:3: error: cannot find 'sigemptyset' in scope
260 | public var sigset: sigset_t {
261 | var sigset = sigset_t()
262 | sigemptyset(&sigset)
| `- error: cannot find 'sigemptyset' in scope
263 | sigaddset(&sigset, rawValue)
264 | return sigset
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Signal.swift:263:3: error: cannot find 'sigaddset' in scope
261 | var sigset = sigset_t()
262 | sigemptyset(&sigset)
263 | sigaddset(&sigset, rawValue)
| `- error: cannot find 'sigaddset' in scope
264 | return sigset
265 | }
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Signal.swift:274:37: error: cannot find 'NSIG' in scope
272 | public var signalName: String? {
273 | #if !os(Linux)
274 | guard rawValue >= 0 && rawValue < NSIG else {
| `- error: cannot find 'NSIG' in scope
275 | return nil
276 | }
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Signal.swift:278:32: error: cannot find 'sys_signame' in scope
276 | }
277 |
278 | return withUnsafePointer(to: sys_signame, { siglistPtr in
| `- error: cannot find 'sys_signame' in scope
279 | return siglistPtr.withMemoryRebound(to: UnsafePointer<UInt8>?.self, capacity: Int(NSIG), { siglistPtrAsPointerToCStrings in
280 | return siglistPtrAsPointerToCStrings.advanced(by: Int(rawValue)).pointee.flatMap{ String(cString: $0) }
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Signal.swift:279:86: error: cannot find 'NSIG' in scope
277 |
278 | return withUnsafePointer(to: sys_signame, { siglistPtr in
279 | return siglistPtr.withMemoryRebound(to: UnsafePointer<UInt8>?.self, capacity: Int(NSIG), { siglistPtrAsPointerToCStrings in
| `- error: cannot find 'NSIG' in scope
280 | return siglistPtrAsPointerToCStrings.advanced(by: Int(rawValue)).pointee.flatMap{ String(cString: $0) }
281 | })
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Signal.swift:301:37: error: cannot find 'NSIG' in scope
299 | public var signalDescription: String? {
300 | #if !os(Linux)
301 | guard rawValue >= 0 && rawValue < NSIG else {
| `- error: cannot find 'NSIG' in scope
302 | return nil
303 | }
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Signal.swift:305:32: error: cannot find 'sys_siglist' in scope
303 | }
304 |
305 | return withUnsafePointer(to: sys_siglist, { siglistPtr in
| `- error: cannot find 'sys_siglist' in scope
306 | return siglistPtr.withMemoryRebound(to: UnsafePointer<UInt8>?.self, capacity: Int(NSIG), { siglistPtrAsPointerToCStrings in
307 | return siglistPtrAsPointerToCStrings.advanced(by: Int(rawValue)).pointee.flatMap{ String(cString: $0) }
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Signal.swift:306:86: error: cannot find 'NSIG' in scope
304 |
305 | return withUnsafePointer(to: sys_siglist, { siglistPtr in
306 | return siglistPtr.withMemoryRebound(to: UnsafePointer<UInt8>?.self, capacity: Int(NSIG), { siglistPtrAsPointerToCStrings in
| `- error: cannot find 'NSIG' in scope
307 | return siglistPtrAsPointerToCStrings.advanced(by: Int(rawValue)).pointee.flatMap{ String(cString: $0) }
308 | })
[67/123] Compiling CLTLogger NSLock+withLock.swift
[68/123] Compiling CLTLogger OutputEnvironment.swift
BUILD FAILURE 6.1 wasm