The Swift Package Index logo.Swift Package Index

Build Information

Failed to build swift-signal-handling, reference 1.2.0 (a5798b), with Swift 6.1 for Wasm on 24 Oct 2026 02:32:01 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-54344846-0":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/saguaro1/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1

Build Log

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: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: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 | 			})
[503/508] Compiling SignalHandling Signal.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
/host/spi-builder-workspace/Sources/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: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: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 | 			})
[504/508] Compiling SignalHandling Utils.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-54344846-0":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/saguaro1/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1
wasm-6.1-latest: Pulling from saguaro1/spi-images
Digest: sha256:f257c9b8465670613eb336f6def351d681b1d395aebdb231a45bac980c1f9d3c
Status: Image is up to date for registry.gitlab.com/saguaro1/spi-images:wasm-6.1-latest
[0/1] Planning build
[1/1] Compiling plugin GenerateManual
[2/2] Compiling plugin GenerateDoccReference
Building for debugging...
[2/35] Write swift-version-24593BA9C3E375BF.txt
[4/50] Compiling SwiftSyntax603 Empty.swift
[5/50] Emitting module SwiftSyntax603
[6/51] Emitting module SwiftSyntax602
[7/52] Emitting module SwiftSyntax509
[8/52] Compiling SwiftSyntax509 Empty.swift
[9/52] Emitting module SwiftSyntax510
[10/52] Compiling SwiftSyntax510 Empty.swift
[11/53] Compiling SwiftSyntax600 Empty.swift
[12/90] Emitting module SwiftSyntax600
[13/91] Emitting module SwiftSyntax601
[14/91] Compiling SwiftSyntax602 Empty.swift
[15/91] Compiling SwiftSyntax601 Empty.swift
[16/93] Compiling ServiceContextModule ServiceContextKey.swift
[21/89] Emitting module ServiceContextModule
[22/89] Compiling ServiceContextModule ServiceContext.swift
[25/88] Compiling SystemPackage IOCompletion.swift
[26/88] Compiling SystemPackage IORequest.swift
[27/88] Compiling SystemPackage IORing+Util.swift
[28/88] Compiling SystemPackage IORing.swift
[29/88] Compiling SystemPackage RawIORequest.swift
[31/105] Compiling Logging Logger+With.swift
unable to find node: pound
unable to find node: pound
[32/106] Compiling SystemPackage RawBuffer.swift
[33/106] Compiling SystemPackage Syscalls.swift
[34/106] Compiling SystemPackage WindowsSyscallAdapters.swift
[35/106] Compiling SystemPackage MachPort.swift
[36/106] Compiling SystemPackage PlatformString.swift
[37/106] Emitting module ArgumentParserToolInfo
[38/106] Compiling Logging LoggingSystem.swift
[39/106] Compiling SystemPackage Backcompat.swift
[40/106] Compiling SystemPackage CInterop.swift
[41/106] Compiling SystemPackage Constants.swift
[42/106] Compiling SystemPackage Exports.swift
[43/106] Compiling SystemPackage Mocking.swift
[44/106] Compiling SystemPackage FileFlags.swift
[45/106] Compiling SystemPackage FileMode.swift
[46/106] Compiling SystemPackage FileType.swift
[47/106] Compiling SystemPackage Identifiers.swift
[48/106] Compiling SystemPackage Stat.swift
[49/106] Compiling Logging MetadataProvider.swift
[50/106] Emitting module Logging
unable to find node: pound
unable to find node: pound
[51/106] Compiling Logging SwiftLogNoOpLogHandler.swift
[52/106] Compiling Logging Locks.swift
[53/106] Compiling Logging LogEvent.swift
[54/106] Compiling Logging LogHandler.swift
[55/106] Compiling Logging MultiplexLogHandler.swift
[56/106] Compiling Logging StreamLogHandler.swift
[60/106] Compiling Logging Logger+Attributes.swift
[61/106] Compiling Logging Logger.swift
[62/169] Compiling SwiftSyntax Identifier.swift
[63/169] Compiling SwiftSyntax MemoryLayout.swift
[64/170] Emitting module SystemPackage
[66/169] Compiling SwiftSyntax SyntaxTraits.swift
[67/169] Compiling SwiftSyntax SyntaxVisitor.swift
[68/169] Compiling SwiftSyntax TokenKind.swift
[69/169] Compiling SwiftSyntax Tokens.swift
[70/169] Compiling SwiftSyntax TriviaPieces.swift
[71/172] Compiling ArgumentParserToolInfo ToolInfo.swift
[72/180] Compiling SwiftSyntax SyntaxNodesAB.swift
[73/180] Compiling SwiftSyntax AbsolutePosition.swift
[74/180] Compiling SwiftSyntax AbsoluteSyntaxInfo.swift
[75/180] Compiling SwiftSyntax ArenaAllocatedBuffer.swift
[76/180] Compiling SwiftSyntax Assert.swift
[77/180] Compiling SwiftSyntax RawSyntaxLayoutView.swift
[78/180] Compiling SwiftSyntax RawSyntaxNodeProtocol.swift
[79/180] Compiling SwiftSyntax RawSyntaxTokenView.swift
[80/180] Compiling SwiftSyntax SourceEdit.swift
[81/180] Compiling SwiftSyntax RawSyntaxNodesEF.swift
[82/180] Compiling SwiftSyntax RawSyntaxNodesGHI.swift
[84/180] Compiling CLTLogger EmojiSet.swift
[85/180] Compiling CLTLogger Scanner+OldOS.swift
[87/181] Compiling CLTLogger DummySendable.swift
[88/181] Compiling CLTLogger Emoji.swift
[89/227] Emitting module CLTLogger
[90/227] Compiling CLTLogger String+Utils.swift
[91/227] Compiling ArgumentParser BashCompletionsGenerator.swift
[92/227] Compiling ArgumentParser CompletionsGenerator.swift
[95/227] Compiling ArgumentParser FishCompletionsGenerator.swift
[96/227] Compiling ArgumentParser ZshCompletionsGenerator.swift
[97/227] Compiling ArgumentParser Argument.swift
[98/227] Compiling ArgumentParser ArgumentDiscussion.swift
[99/227] Compiling ArgumentParser ArgumentHelp.swift
[100/227] Compiling ArgumentParser ArgumentVisibility.swift
[101/227] Compiling ArgumentParser CompletionKind.swift
[102/235] Emitting module ArgumentParser
[103/241] Compiling ArgumentParser Mutex.swift
[104/241] Compiling ArgumentParser Platform.swift
[105/241] Compiling ArgumentParser SequenceExtensions.swift
[106/241] Compiling ArgumentParser StringExtensions.swift
[107/241] Compiling ArgumentParser SwiftExtensions.swift
[108/241] Compiling ArgumentParser Tree.swift
[109/241] Compiling CLTLogger OutputEnvironment.swift
[110/241] Compiling CLTLogger SGR.swift
[111/241] Compiling CLTLogger NSLock+withLock.swift
[113/241] Compiling SwiftSyntax SourceLength.swift
[114/241] Compiling SwiftSyntax SourceLocation.swift
[115/241] Compiling SwiftSyntax SourcePresence.swift
[116/241] Compiling SwiftSyntax SwiftSyntaxCompatibility.swift
[117/241] Compiling SwiftSyntax Syntax.swift
[118/241] Compiling SwiftSyntax SyntaxChildren.swift
[119/241] Compiling SwiftSyntax SyntaxCollection.swift
[120/241] Compiling SwiftSyntax SyntaxHashable.swift
[121/241] Compiling SwiftSyntax SyntaxIdentifier.swift
[122/241] Compiling ArgumentParser AsyncCompletionsValidator.swift
[123/241] Compiling ArgumentParser CodingKeyValidator.swift
[124/241] Compiling ArgumentParser NonsenseFlagsValidator.swift
[125/241] Compiling ArgumentParser ParsableArgumentsValidation.swift
[126/241] Compiling ArgumentParser PositionalArgumentsValidator.swift
[127/241] Compiling ArgumentParser UniqueNamesValidator.swift
[128/241] Compiling ArgumentParser Name.swift
[129/241] Compiling ArgumentParser Parsed.swift
[130/241] Compiling ArgumentParser ParsedValues.swift
[131/241] Compiling ArgumentParser ParserError.swift
[132/241] Compiling ArgumentParser SplitArguments.swift
[133/241] Compiling ArgumentParser DumpHelpGenerator.swift
[134/241] Compiling ArgumentParser HelpCommand.swift
[135/241] Compiling ArgumentParser HelpGenerator.swift
[136/241] Compiling ArgumentParser MessageInfo.swift
[137/241] Compiling ArgumentParser UsageGenerator.swift
[138/241] Compiling ArgumentParser CollectionExtensions.swift
[139/241] Compiling ArgumentParser Foundation.swift
[147/241] Compiling ArgumentParser ParsableCommand.swift
[148/241] Compiling ArgumentParser ArgumentDecoder.swift
[149/241] Compiling ArgumentParser ArgumentDefinition.swift
[150/241] Compiling ArgumentParser ArgumentSet.swift
[151/241] Compiling ArgumentParser CommandParser.swift
[152/241] Compiling ArgumentParser InputKey.swift
[153/241] Compiling ArgumentParser InputOrigin.swift
[156/241] Compiling ArgumentParser Errors.swift
[157/241] Compiling ArgumentParser Flag.swift
[158/241] Compiling ArgumentParser NameSpecification.swift
[159/241] Compiling ArgumentParser Option.swift
[160/241] Compiling ArgumentParser OptionGroup.swift
[161/241] Compiling ArgumentParser ParentCommand.swift
[162/241] Compiling ArgumentParser AsyncParsableCommand.swift
[163/241] Compiling ArgumentParser CommandConfiguration.swift
[164/241] Compiling ArgumentParser CommandGroup.swift
[165/241] Compiling ArgumentParser EnumerableFlag.swift
[166/241] Compiling ArgumentParser ExpressibleByArgument.swift
[167/241] Compiling ArgumentParser ParsableArguments.swift
[185/241] Compiling SwiftSyntax Utils.swift
[213/241] Emitting module SwiftSyntax
[214/241] Compiling SwiftSyntax SyntaxNodesC.swift
[215/241] Compiling SwiftSyntax SyntaxNodesD.swift
[216/241] Compiling SwiftSyntax SyntaxNodesEF.swift
[217/241] Compiling SwiftSyntax SyntaxNodesGHI.swift
[218/241] Compiling SwiftSyntax SyntaxNodesJKLMN.swift
[219/241] Compiling SwiftSyntax SyntaxNodesOP.swift
[220/241] Compiling SwiftSyntax SyntaxNodesQRS.swift
[221/241] Compiling SwiftSyntax SyntaxNodesTUVWXYZ.swift
[223/300] Compiling SwiftParser Attributes.swift
[224/300] Compiling SwiftParser Availability.swift
[225/300] Emitting module SwiftDiagnostics
[226/301] Compiling SwiftBasicFormat SyntaxProtocol+Formatted.swift
[227/301] Compiling SwiftBasicFormat Trivia+FormatExtensions.swift
[228/301] Compiling SwiftDiagnostics Message.swift
[229/301] Compiling SwiftDiagnostics DiagnosticsFormatter.swift
[230/301] Compiling SwiftDiagnostics DiagnosticDecorator.swift
[231/301] Compiling SwiftParser CharacterInfo.swift
[232/301] Compiling SwiftParser CollectionNodes+Parsable.swift
[233/301] Compiling SwiftDiagnostics FixIt.swift
[234/301] Compiling SwiftDiagnostics GroupedDiagnostics.swift
[235/301] Compiling SwiftDiagnostics Note.swift
[236/302] Compiling SwiftBasicFormat InferIndentation.swift
[237/302] Compiling SwiftBasicFormat Syntax+Extensions.swift
[239/301] Compiling SwiftBasicFormat Indenter.swift
[240/301] Emitting module SwiftBasicFormat
[241/301] Compiling SwiftBasicFormat BasicFormat.swift
[243/301] Emitting module SwiftParser
[244/306] Compiling SwiftParser LoopProgressCondition.swift
[245/306] Compiling SwiftParser Modifiers.swift
[246/306] Compiling SwiftParser Names.swift
[247/306] Compiling SwiftParser Nominals.swift
[248/306] Compiling SwiftParser Parameters.swift
[249/306] Compiling SwiftParser ParseSourceFile.swift
[250/306] Compiling SwiftParser Parser.swift
[251/306] Compiling SwiftParser Patterns.swift
[252/306] Compiling SwiftParser Recovery.swift
[253/306] Compiling SwiftParser Specifiers.swift
[254/306] Compiling SwiftParser Statements.swift
[255/306] Compiling SwiftParser StringLiteralRepresentedLiteralValue.swift
[256/306] Compiling SwiftParser StringLiterals.swift
[257/306] Compiling SwiftParser SwiftParserCompatibility.swift
[258/306] Compiling SwiftParser SwiftVersion.swift
[259/306] Compiling SwiftParser SyntaxUtils.swift
[260/306] Compiling SwiftParser TokenConsumer.swift
[261/306] Compiling SwiftParser TokenPrecedence.swift
[262/306] Compiling SwiftParser TokenSpec.swift
[263/306] Compiling SwiftParser TokenSpecSet.swift
[264/306] Compiling SwiftParser TopLevel.swift
[265/306] Compiling SwiftParser TriviaParser.swift
[266/306] Compiling SwiftParser Types.swift
[267/306] Compiling SwiftParser Lexeme.swift
[268/306] Compiling SwiftParser LexemeSequence.swift
[269/306] Compiling SwiftParser Lexer.swift
[270/306] Compiling SwiftParser RegexLiteralLexer.swift
[271/306] Compiling SwiftParser UnicodeScalarExtensions.swift
[272/306] Compiling SwiftParser Lookahead.swift
[277/306] Compiling SwiftParser CompilerFiles.swift
[278/306] Compiling SwiftParser Declarations.swift
[279/306] Compiling SwiftParser Directives.swift
[280/306] Compiling SwiftParser ExpressionInterpretedAsVersionTuple.swift
[281/306] Compiling SwiftParser Expressions.swift
[282/306] Compiling SwiftParser IncrementalParseTransition.swift
[283/306] Compiling SwiftParser IsValidIdentifier.swift
[284/306] Compiling SwiftParser Cursor.swift
[285/306] Compiling SwiftParser ExperimentalFeatures.swift
[286/306] Compiling SwiftParser IsLexerClassified.swift
[287/306] Compiling SwiftParser LayoutNodes+Parsable.swift
[288/306] Compiling SwiftParser Parser+TokenSpecSet.swift
[289/306] Compiling SwiftParser TokenSpecStaticMembers.swift
[291/329] Compiling SwiftOperators PrecedenceGroup.swift
[292/330] Compiling SwiftParserDiagnostics SyntaxKindNameForDiagnostics.swift
[293/331] Compiling SwiftOperators PrecedenceGraph.swift
[294/331] Compiling SwiftOperators SyntaxSynthesis.swift
[295/331] Compiling SwiftParserDiagnostics TokenNameForDiagnostics.swift
[296/331] Compiling SwiftOperators OperatorTable+Semantics.swift
[297/331] Compiling SwiftOperators OperatorTable.swift
[298/331] Compiling SwiftOperators OperatorTable+Folding.swift
[299/331] Compiling SwiftParserDiagnostics DiagnosticExtensions.swift
[300/331] Compiling SwiftParserDiagnostics LexerDiagnosticMessages.swift
[301/331] Compiling SwiftParserDiagnostics MissingNodesError.swift
[302/331] Compiling SwiftParserDiagnostics MissingTokenError.swift
[303/331] Emitting module SwiftOperators
[304/332] Compiling SwiftParserDiagnostics ChildNameForDiagnostics.swift
[305/332] Compiling SwiftParserDiagnostics SyntaxExtensions.swift
[306/332] Compiling SwiftParserDiagnostics Utils.swift
[308/332] Emitting module SwiftParserDiagnostics
[309/331] Compiling SwiftParserDiagnostics ParserDiagnosticMessages.swift
[310/331] Compiling SwiftParserDiagnostics PresenceUtils.swift
[313/331] Compiling SwiftParserDiagnostics MultiLineStringLiteralDiagnosticsGenerator.swift
[314/331] Compiling SwiftParserDiagnostics ParseDiagnosticsGenerator.swift
[318/346] Compiling SwiftSyntaxBuilder WithTrailingCommaSyntax+EnsuringTrailingComma.swift
[319/346] Compiling SwiftSyntaxBuilder BuildableNodes.swift
[320/346] Compiling SwiftSyntaxBuilder RenamedChildrenBuilderCompatibility.swift
[321/346] Compiling SwiftSyntaxBuilder ResultBuilders.swift
[322/346] Compiling SwiftSyntaxBuilder SyntaxParsable+ExpressibleByStringInterpolation.swift
[323/346] Compiling SwiftSyntaxBuilder ValidatingSyntaxNodes.swift
[324/347] Compiling SwiftSyntaxBuilder ConvenienceInitializers.swift
[325/347] Compiling SwiftSyntaxBuilder DeclSyntaxParseable.swift
[326/347] Compiling SwiftSyntaxBuilder ResultBuilderExtensions.swift
[327/347] Compiling SwiftSyntaxBuilder SwiftSyntaxBuilderCompatibility.swift
[328/347] Compiling SwiftSyntaxBuilder Indenter.swift
[329/347] Compiling SwiftSyntaxBuilder ListBuilder.swift
[330/347] Compiling SwiftSyntaxBuilder Syntax+StringInterpolation.swift
[331/347] Compiling SwiftSyntaxBuilder SyntaxNodeWithBody.swift
[332/347] Emitting module SwiftSyntaxBuilder
[333/347] Compiling SwiftSyntaxBuilder SyntaxExpressibleByStringInterpolationConformances.swift
[335/362] Compiling SwiftIfConfig SyntaxProtocol+IfConfig.swift
[336/362] Compiling SwiftIfConfig VersionTuple+Parsing.swift
[337/363] Compiling SwiftIfConfig StaticBuildConfiguration.swift
[338/363] Compiling SwiftIfConfig SyntaxLiteralUtils.swift
[339/363] Compiling SwiftIfConfig IfConfigFunctions.swift
[340/363] Compiling SwiftIfConfig IfConfigRegionState.swift
[341/363] Compiling SwiftIfConfig ActiveSyntaxVisitor.swift
[342/363] Compiling SwiftIfConfig BuildConfiguration.swift
[343/363] Compiling SwiftIfConfig IfConfigDiagnostic.swift
[344/363] Compiling SwiftIfConfig IfConfigEvaluation.swift
[345/363] Compiling SwiftIfConfig ConfiguredRegions.swift
[346/363] Compiling SwiftIfConfig IfConfigDecl+IfConfig.swift
[347/363] Compiling SwiftIfConfig VersionTuple.swift
[348/363] Emitting module SwiftIfConfig
[349/363] Compiling SwiftIfConfig ActiveClauseEvaluator.swift
[350/363] Compiling SwiftIfConfig ActiveSyntaxRewriter.swift
[352/380] Compiling SwiftSyntaxMacros ExpressionMacro.swift
[353/380] Compiling SwiftSyntaxMacros ExtensionMacro.swift
[354/380] Compiling SwiftSyntaxMacros MemberMacro.swift
[355/380] Compiling SwiftSyntaxMacros PeerMacro.swift
[356/382] Compiling SwiftSyntaxMacros Macro.swift
[357/382] Compiling SwiftSyntaxMacros MemberAttributeMacro.swift
[358/382] Compiling SwiftSyntaxMacros CodeItemMacro.swift
[359/382] Compiling SwiftSyntaxMacros DeclarationMacro.swift
[360/382] Compiling SwiftSyntaxMacros AccessorMacro.swift
[361/382] Compiling SwiftSyntaxMacros AttachedMacro.swift
[362/382] Compiling SwiftSyntaxMacros BodyMacro.swift
[363/382] Compiling SwiftSyntaxMacros FreestandingMacro.swift
[364/382] Compiling SwiftSyntaxMacros Macro+Format.swift
[365/382] Emitting module SwiftSyntaxMacros
[366/382] Compiling SwiftSyntaxMacros AbstractSourceLocation.swift
[367/382] Compiling SwiftSyntaxMacros MacroExpansionContext.swift
[368/382] Compiling SwiftSyntaxMacros MacroExpansionDiagnosticMessages.swift
[369/382] Compiling SwiftSyntaxMacros PreambleMacro.swift
[370/382] Compiling SwiftSyntaxMacros Syntax+LexicalContext.swift
[372/391] Emitting module SwiftSyntaxMacroExpansion
[373/392] Compiling SwiftSyntaxMacroExpansion BasicMacroExpansionContext.swift
[374/392] Compiling SwiftSyntaxMacroExpansion FunctionParameterUtils.swift
[375/392] Compiling SwiftSyntaxMacroExpansion IndentationUtils.swift
[376/392] Compiling SwiftSyntaxMacroExpansion MacroArgument.swift
[377/392] Compiling SwiftSyntaxMacroExpansion MacroExpansion.swift
[378/392] Compiling SwiftSyntaxMacroExpansion MacroReplacement.swift
[379/392] Compiling SwiftSyntaxMacroExpansion MacroExpansionDiagnosticMessages.swift
[380/392] Compiling SwiftSyntaxMacroExpansion MacroSpec.swift
[381/392] Compiling SwiftSyntaxMacroExpansion MacroSystem.swift
[383/404] Compiling SwiftCompilerPluginMessageHandling PluginMessageCompatibility.swift
[384/404] Compiling SwiftCompilerPluginMessageHandling LRUCache.swift
[385/404] Compiling SwiftCompilerPluginMessageHandling Macros.swift
[386/404] Compiling SwiftCompilerPluginMessageHandling PluginMessages.swift
[387/404] Compiling SwiftCompilerPluginMessageHandling PluginMacroExpansionContext.swift
[388/405] Compiling SwiftCompilerPluginMessageHandling StandardIOMessageConnection.swift
[389/405] Compiling SwiftCompilerPluginMessageHandling CodingUtilities.swift
[390/405] Compiling SwiftCompilerPluginMessageHandling JSON.swift
[391/405] Compiling SwiftCompilerPluginMessageHandling CompilerPluginMessageHandler.swift
[392/405] Compiling SwiftCompilerPluginMessageHandling Diagnostics.swift
[393/405] Compiling SwiftCompilerPluginMessageHandling JSONDecoding.swift
[394/405] Compiling SwiftCompilerPluginMessageHandling JSONEncoding.swift
[395/405] Emitting module SwiftCompilerPluginMessageHandling
[397/407] Compiling SwiftCompilerPlugin CompilerPlugin.swift
[398/407] Emitting module SwiftCompilerPlugin
[400/415] Compiling GlobalConfMacros Optional+Utils.swift
[401/416] Compiling GlobalConfMacros DeclareConfNamespaceMacro.swift
[402/416] Compiling GlobalConfMacros LabeledExprSyntax+Utils.swift
[403/416] Compiling GlobalConfMacros Entrypoint.swift
[404/416] Compiling GlobalConfMacros SimpleDiagnosticMessage.swift
[405/416] Compiling GlobalConfMacros DeclareConfAccessorMacro.swift
[406/416] Compiling GlobalConfMacros  Errors.swift
[407/416] Compiling GlobalConfMacros DeclareConfMacro.swift
[408/416] Emitting module GlobalConfMacros
[409/416] Write Objects.LinkFileList
[410/416] Linking GlobalConfMacros-tool
[412/438] Compiling GlobalConfModule ConfKey.swift
[413/438] Compiling GlobalConfModule ConfKeyMainActor.swift
[414/438] Compiling GlobalConfModule ConfKeys.swift
[415/440] Compiling GlobalConfModule ConfContext+ConfKey.swift
[416/440] Compiling GlobalConfModule ConfContext+ConfKeyMainActor.swift
[417/440] Compiling GlobalConfModule ConfContext.swift
[418/440] Emitting module GlobalConfModule
[419/440] Compiling GlobalConfModule 3-NamespaceKey.swift
[420/440] Compiling GlobalConfModule 4-AccessorConvenience.swift
[421/440] Compiling GlobalConfModule AutoInjectable.swift
[422/440] Compiling GlobalConfModule AutoInjectableMainActor.swift
[423/440] Compiling GlobalConfModule InjectedConf+AutoInjectable.swift
[424/440] Compiling GlobalConfModule InjectedConf+AutoInjectableMainActor.swift
[425/440] Compiling GlobalConfModule InjectedConf+ConfKey.swift
[426/440] Compiling GlobalConfModule InjectedConf+ConfKeyMainActor.swift
[427/440] Compiling GlobalConfModule Conf.swift
[428/440] Compiling GlobalConfModule ConfContext+AutoInjectable.swift
[429/440] Compiling GlobalConfModule ConfContext+AutoInjectableMainActor.swift
[430/440] Compiling GlobalConfModule InjectedConf.swift
[431/440] Compiling GlobalConfModule 1-ConfKey.swift
[432/440] Compiling GlobalConfModule 2-ServiceKey.swift
[433/440] Compiling GlobalConfModule Conf+ConfKey.swift
[434/440] Compiling GlobalConfModule Conf+ConfKeyMainActor.swift
[435/440] Compiling GlobalConfModule Conf+withValues.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[437/451] Compiling SignalHandling  Config.swift
[438/451] Compiling SignalHandling  Errors.swift
[439/451] Emitting module SignalHandling
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Sigaction.swift:44:24: error: cannot find type 'sigaction' in scope
 42 | 	 If the handler of the sigaction is `SIG_IGN` or `SIG_DFL`, we check the `sa_flags` not to contains the `SA_SIGINFO` bit.
 43 | 	 If they do, we log an error, as this is invalid. */
 44 | 	public init(rawValue: sigaction) {
    |                        `- error: cannot find type 'sigaction' in scope
 45 | 		self.mask = Signal.set(from: rawValue.sa_mask)
 46 | 		self.flags = SigactionFlags(rawValue: rawValue.sa_flags)
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Sigaction.swift:79:23: error: cannot find type 'sigaction' in scope
 77 | 	}
 78 |
 79 | 	public var rawValue: sigaction {
    |                       `- error: cannot find type 'sigaction' in scope
 80 | 		if !isValid {
 81 | 			Conf.logger?.warning("Getting sigaction from an invalid Sigaction.")
/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:8:15: error: type 'Sigaction' does not conform to protocol 'RawRepresentable'
  6 |
  7 |
  8 | public struct Sigaction : Equatable, RawRepresentable, Sendable {
    |               |- error: type 'Sigaction' does not conform to protocol 'RawRepresentable'
    |               `- note: add stubs for conformance
  9 |
 10 | 	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: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: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/SigactionDelayer_Block.swift:176:21: error: cannot find 'NSConditionLock' in scope
174 | 		}
175 |
176 | 		static let lock = NSConditionLock(condition: Self.nothingToDo.rawValue)
    |                     `- error: cannot find 'NSConditionLock' in scope
177 |
178 | 		/* Read/write is protected by the lock above. */
/host/spi-builder-workspace/Sources/SignalHandling/DelayedSigaction/SigactionDelayer_Block.swift:190:23: error: cannot find type 'DispatchSourceSignal' in scope
188 | 	private struct BlockedSignal {
189 |
190 | 		var dispatchSource: DispatchSourceSignal
    |                       `- error: cannot find type 'DispatchSourceSignal' in scope
191 | 		var handlers = [DelayedSigaction: DelayedSigactionHandler]()
192 |
/host/spi-builder-workspace/Sources/SignalHandling/DelayedSigaction/SigactionDelayer_Block.swift:195:45: error: cannot find 'DispatchQueue' in scope
193 | 	}
194 |
195 | 	private static let signalProcessingQueue = DispatchQueue(label: "com.xcode-actions.blocked-signals-processing-queue")
    |                                             `- error: cannot find 'DispatchQueue' in scope
196 |
197 | 	/* Only used on the main thread. */
/host/spi-builder-workspace/Sources/SignalHandling/DelayedSigaction/SigactionDelayer_Unsig.swift:129:21: error: cannot find 'NSConditionLock' in scope
127 | 		}
128 |
129 | 		static let lock = NSConditionLock(condition: Self.nothingToDo.rawValue)
    |                     `- error: cannot find 'NSConditionLock' in scope
130 |
131 | 		/* Read/write is protected by the lock above. */
/host/spi-builder-workspace/Sources/SignalHandling/DelayedSigaction/SigactionDelayer_Unsig.swift:145:23: error: cannot find type 'DispatchSourceSignal' in scope
143 | 		var originalSigaction: Sigaction
144 |
145 | 		var dispatchSource: DispatchSourceSignal
    |                       `- error: cannot find type 'DispatchSourceSignal' in scope
146 | 		var handlers = [DelayedSigaction: DelayedSigactionHandler]()
147 |
/host/spi-builder-workspace/Sources/SignalHandling/DelayedSigaction/SigactionDelayer_Unsig.swift:150:45: error: cannot find 'DispatchQueue' in scope
148 | 	}
149 |
150 | 	private static let signalProcessingQueue = DispatchQueue(label: "com.xcode-actions.unsigactioned-signals-processing-queue")
    |                                             `- error: cannot find 'DispatchQueue' in scope
151 |
152 | 	/* Both these vars are only modified/read on the signal processing queue. */
[440/452] Compiling SignalHandling DelayedSigactionHandler.swift
[441/452] Compiling SignalHandling SigactionDelayer_Block.swift
/host/spi-builder-workspace/Sources/SignalHandling/DelayedSigaction/SigactionDelayer_Block.swift:176:21: error: cannot find 'NSConditionLock' in scope
174 | 		}
175 |
176 | 		static let lock = NSConditionLock(condition: Self.nothingToDo.rawValue)
    |                     `- error: cannot find 'NSConditionLock' in scope
177 |
178 | 		/* Read/write is protected by the lock above. */
/host/spi-builder-workspace/Sources/SignalHandling/DelayedSigaction/SigactionDelayer_Block.swift:190:23: error: cannot find type 'DispatchSourceSignal' in scope
188 | 	private struct BlockedSignal {
189 |
190 | 		var dispatchSource: DispatchSourceSignal
    |                       `- error: cannot find type 'DispatchSourceSignal' in scope
191 | 		var handlers = [DelayedSigaction: DelayedSigactionHandler]()
192 |
/host/spi-builder-workspace/Sources/SignalHandling/DelayedSigaction/SigactionDelayer_Block.swift:195:45: error: cannot find 'DispatchQueue' in scope
193 | 	}
194 |
195 | 	private static let signalProcessingQueue = DispatchQueue(label: "com.xcode-actions.blocked-signals-processing-queue")
    |                                             `- error: cannot find 'DispatchQueue' in scope
196 |
197 | 	/* Only used on the main thread. */
/host/spi-builder-workspace/Sources/SignalHandling/DelayedSigaction/SigactionDelayer_Block.swift:63:11: error: cannot find 'Thread' in scope
 61 | 	 - Important: You should not use `pthread_sigmask` to sigprocmask (nor anything to unblock signals) after calling this method. */
 62 | 	public static func bootstrap(for signals: Set<Signal>) throws {
 63 | 		assert(!Thread.isMultiThreaded())
    |           `- error: cannot find 'Thread' in scope
 64 | 		guard !bootstrapDone else {
 65 | 			fatalError("DelayedSigaction can be bootstrapped only once")
/host/spi-builder-workspace/Sources/SignalHandling/DelayedSigaction/SigactionDelayer_Block.swift:69:13: error: cannot find 'pthread_sigmask' in scope
 67 |
 68 | 		var signalsSigset = Signal.sigset(from: signals)
 69 | 		let ret = pthread_sigmask(SIG_SETMASK, &signalsSigset, nil /* old signals */)
    |             `- error: cannot find 'pthread_sigmask' in scope
 70 | 		if ret != 0 {
 71 | 			throw SignalHandlingError.nonDestructiveSystemError(Errno(rawValue: ret))
/host/spi-builder-workspace/Sources/SignalHandling/DelayedSigaction/SigactionDelayer_Block.swift:69:29: error: cannot find 'SIG_SETMASK' in scope
 67 |
 68 | 		var signalsSigset = Signal.sigset(from: signals)
 69 | 		let ret = pthread_sigmask(SIG_SETMASK, &signalsSigset, nil /* old signals */)
    |                             `- error: cannot find 'SIG_SETMASK' in scope
 70 | 		if ret != 0 {
 71 | 			throw SignalHandlingError.nonDestructiveSystemError(Errno(rawValue: ret))
/host/spi-builder-workspace/Sources/SignalHandling/DelayedSigaction/SigactionDelayer_Block.swift:69:58: error: 'nil' requires a contextual type
 67 |
 68 | 		var signalsSigset = Signal.sigset(from: signals)
 69 | 		let ret = pthread_sigmask(SIG_SETMASK, &signalsSigset, nil /* old signals */)
    |                                                          `- error: 'nil' requires a contextual type
 70 | 		if ret != 0 {
 71 | 			throw SignalHandlingError.nonDestructiveSystemError(Errno(rawValue: ret))
/host/spi-builder-workspace/Sources/SignalHandling/DelayedSigaction/SigactionDelayer_Block.swift:75:15: error: cannot find 'DispatchGroup' in scope
 73 |
 74 | 		nonisolated(unsafe) var error: Error?
 75 | 		let group = DispatchGroup()
    |               `- error: cannot find 'DispatchGroup' in scope
 76 | 		group.enter()
 77 | 		Thread.detachNewThread{
/host/spi-builder-workspace/Sources/SignalHandling/DelayedSigaction/SigactionDelayer_Block.swift:77:3: error: cannot find 'Thread' in scope
 75 | 		let group = DispatchGroup()
 76 | 		group.enter()
 77 | 		Thread.detachNewThread{
    |   `- error: cannot find 'Thread' in scope
 78 | 			Thread.current.name = "com.xcode-actions.blocked-signals-thread"
 79 |
/host/spi-builder-workspace/Sources/SignalHandling/DelayedSigaction/SigactionDelayer_Block.swift:78:4: error: cannot find 'Thread' in scope
 76 | 		group.enter()
 77 | 		Thread.detachNewThread{
 78 | 			Thread.current.name = "com.xcode-actions.blocked-signals-thread"
    |    `- error: cannot find 'Thread' in scope
 79 |
 80 | 			/* Unblock all signals in this thread. */
/host/spi-builder-workspace/Sources/SignalHandling/DelayedSigaction/SigactionDelayer_Block.swift:82:14: error: cannot find 'pthread_sigmask' in scope
 80 | 			/* Unblock all signals in this thread. */
 81 | 			var noSignals = Signal.emptySigset
 82 | 			let ret = pthread_sigmask(SIG_SETMASK, &noSignals, nil /* old signals */)
    |              `- error: cannot find 'pthread_sigmask' in scope
 83 | 			if ret != 0 {
 84 | 				error = SignalHandlingError.destructiveSystemError(Errno(rawValue: ret))
/host/spi-builder-workspace/Sources/SignalHandling/DelayedSigaction/SigactionDelayer_Block.swift:82:30: error: cannot find 'SIG_SETMASK' in scope
 80 | 			/* Unblock all signals in this thread. */
 81 | 			var noSignals = Signal.emptySigset
 82 | 			let ret = pthread_sigmask(SIG_SETMASK, &noSignals, nil /* old signals */)
    |                              `- error: cannot find 'SIG_SETMASK' in scope
 83 | 			if ret != 0 {
 84 | 				error = SignalHandlingError.destructiveSystemError(Errno(rawValue: ret))
/host/spi-builder-workspace/Sources/SignalHandling/DelayedSigaction/SigactionDelayer_Block.swift:249:31: error: cannot find 'DispatchSource' in scope
247 | 			try executeOnThread(.block(signal))
248 |
249 | 			let dispatchSourceSignal = DispatchSource.makeSignalSource(signal: signal.rawValue, queue: signalProcessingQueue)
    |                               `- error: cannot find 'DispatchSource' in scope
250 | 			/* Apparently the dispatchSourceSignal does not need to be weak in the handler because the handler is released when the source is canceled.
251 | 			 * 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:330:16: error: cannot find 'DispatchGroup' in scope
328 | 		for _ in 0..<count {
329 | 			let lock = NSLock()
330 | 			let group = DispatchGroup()
    |                `- error: cannot find 'DispatchGroup' in scope
331 | 			nonisolated(unsafe) var runOriginalHandlerFinal = true
332 | 			for (_, handler) in blockedSignal.handlers {
/host/spi-builder-workspace/Sources/SignalHandling/DelayedSigaction/SigactionDelayer_Block.swift:387:17: error: cannot find 'pthread_sigmask' in scope
385 | //						loggerLessThreadSafeDebugLog("🧵 Processing block action for \(signal)…")
386 | 						var sigset = signal.sigset
387 | 						let ret = pthread_sigmask(SIG_BLOCK, &sigset, nil /* old signals */)
    |                 `- error: cannot find 'pthread_sigmask' in scope
388 | 						if ret != 0 {
389 | 							throw SignalHandlingError.destructiveSystemError(Errno(rawValue: ret))
/host/spi-builder-workspace/Sources/SignalHandling/DelayedSigaction/SigactionDelayer_Block.swift:387:33: error: cannot find 'SIG_BLOCK' in scope
385 | //						loggerLessThreadSafeDebugLog("🧵 Processing block action for \(signal)…")
386 | 						var sigset = signal.sigset
387 | 						let ret = pthread_sigmask(SIG_BLOCK, &sigset, nil /* old signals */)
    |                                 `- error: cannot find 'SIG_BLOCK' in scope
388 | 						if ret != 0 {
389 | 							throw SignalHandlingError.destructiveSystemError(Errno(rawValue: ret))
/host/spi-builder-workspace/Sources/SignalHandling/DelayedSigaction/SigactionDelayer_Block.swift:387:53: error: 'nil' requires a contextual type
385 | //						loggerLessThreadSafeDebugLog("🧵 Processing block action for \(signal)…")
386 | 						var sigset = signal.sigset
387 | 						let ret = pthread_sigmask(SIG_BLOCK, &sigset, nil /* old signals */)
    |                                                     `- error: 'nil' requires a contextual type
388 | 						if ret != 0 {
389 | 							throw SignalHandlingError.destructiveSystemError(Errno(rawValue: ret))
/host/spi-builder-workspace/Sources/SignalHandling/DelayedSigaction/SigactionDelayer_Block.swift:395:17: error: cannot find 'pthread_sigmask' in scope
393 | //						loggerLessThreadSafeDebugLog("🧵 Processing unblock action for \(signal)…")
394 | 						var sigset = signal.sigset
395 | 						let ret = pthread_sigmask(SIG_UNBLOCK, &sigset, nil /* old signals */)
    |                 `- error: cannot find 'pthread_sigmask' in scope
396 | 						if ret != 0 {
397 | 							throw SignalHandlingError.destructiveSystemError(Errno(rawValue: ret))
/host/spi-builder-workspace/Sources/SignalHandling/DelayedSigaction/SigactionDelayer_Block.swift:395:33: error: cannot find 'SIG_UNBLOCK' in scope
393 | //						loggerLessThreadSafeDebugLog("🧵 Processing unblock action for \(signal)…")
394 | 						var sigset = signal.sigset
395 | 						let ret = pthread_sigmask(SIG_UNBLOCK, &sigset, nil /* old signals */)
    |                                 `- error: cannot find 'SIG_UNBLOCK' in scope
396 | 						if ret != 0 {
397 | 							throw SignalHandlingError.destructiveSystemError(Errno(rawValue: ret))
/host/spi-builder-workspace/Sources/SignalHandling/DelayedSigaction/SigactionDelayer_Block.swift:395:55: error: 'nil' requires a contextual type
393 | //						loggerLessThreadSafeDebugLog("🧵 Processing unblock action for \(signal)…")
394 | 						var sigset = signal.sigset
395 | 						let ret = pthread_sigmask(SIG_UNBLOCK, &sigset, nil /* old signals */)
    |                                                       `- error: 'nil' requires a contextual type
396 | 						if ret != 0 {
397 | 							throw SignalHandlingError.destructiveSystemError(Errno(rawValue: ret))
/host/spi-builder-workspace/Sources/SignalHandling/DelayedSigaction/SigactionDelayer_Block.swift:407:18: error: cannot find 'pthread_sigmask' in scope
405 | 							/* We update the sigset only when signal is not ignored
406 | 							 *  because it is used only in that case and this is getting the current sigmask can fail. */
407 | 							let ret = pthread_sigmask(SIG_SETMASK, nil /* new signals */, &sigset)
    |                  `- error: cannot find 'pthread_sigmask' in scope
408 | 							if ret != 0 {
409 | 								throw SignalHandlingError.nonDestructiveSystemError(Errno(rawValue: ret))
/host/spi-builder-workspace/Sources/SignalHandling/DelayedSigaction/SigactionDelayer_Block.swift:407:34: error: cannot find 'SIG_SETMASK' in scope
405 | 							/* We update the sigset only when signal is not ignored
406 | 							 *  because it is used only in that case and this is getting the current sigmask can fail. */
407 | 							let ret = pthread_sigmask(SIG_SETMASK, nil /* new signals */, &sigset)
    |                                  `- error: cannot find 'SIG_SETMASK' in scope
408 | 							if ret != 0 {
409 | 								throw SignalHandlingError.nonDestructiveSystemError(Errno(rawValue: ret))
/host/spi-builder-workspace/Sources/SignalHandling/DelayedSigaction/SigactionDelayer_Block.swift:407:47: error: 'nil' requires a contextual type
405 | 							/* We update the sigset only when signal is not ignored
406 | 							 *  because it is used only in that case and this is getting the current sigmask can fail. */
407 | 							let ret = pthread_sigmask(SIG_SETMASK, nil /* new signals */, &sigset)
    |                                               `- error: 'nil' requires a contextual type
408 | 							if ret != 0 {
409 | 								throw SignalHandlingError.nonDestructiveSystemError(Errno(rawValue: ret))
/host/spi-builder-workspace/Sources/SignalHandling/DelayedSigaction/SigactionDelayer_Block.swift:411:8: error: cannot find 'sigdelset' in scope
409 | 								throw SignalHandlingError.nonDestructiveSystemError(Errno(rawValue: ret))
410 | 							}
411 | 							sigdelset(&sigset, signal.rawValue)
    |        `- error: cannot find 'sigdelset' in scope
412 | 						}
413 | 						/* Let’s get the pending signals on this thread. */
/host/spi-builder-workspace/Sources/SignalHandling/DelayedSigaction/SigactionDelayer_Block.swift:415:17: error: cannot find 'sigpending' in scope
413 | 						/* Let’s get the pending signals on this thread. */
414 | 						var pendingSignals = sigset_t()
415 | 						let ret = sigpending(&pendingSignals)
    |                 `- error: cannot find 'sigpending' in scope
416 | 						/* If sigpending failed, we assume the signal is pending. */
417 | 						if ret != 0 || !Signal.set(from: pendingSignals).contains(signal) {
/host/spi-builder-workspace/Sources/SignalHandling/DelayedSigaction/SigactionDelayer_Block.swift:421:8: error: cannot find 'pthread_kill' in scope
419 | 							 * Which mean it is probably pending on some other thread, forever. */
420 | //							loggerLessThreadSafeDebugLog("🧵 Resending signal to manager thread \(signal)…")
421 | 							pthread_kill(pthread_self(), signal.rawValue)
    |        `- error: cannot find 'pthread_kill' in scope
422 | 						}
423 | 						if !isIgnored {
/host/spi-builder-workspace/Sources/SignalHandling/DelayedSigaction/SigactionDelayer_Block.swift:421:21: error: cannot find 'pthread_self' in scope
419 | 							 * Which mean it is probably pending on some other thread, forever. */
420 | //							loggerLessThreadSafeDebugLog("🧵 Resending signal to manager thread \(signal)…")
421 | 							pthread_kill(pthread_self(), signal.rawValue)
    |                     `- error: cannot find 'pthread_self' in scope
422 | 						}
423 | 						if !isIgnored {
/host/spi-builder-workspace/Sources/SignalHandling/DelayedSigaction/SigactionDelayer_Block.swift:427:8: error: cannot find 'sigsuspend' in scope
425 | 							 * I know there is a race condition. */
426 | //							loggerLessThreadSafeDebugLog("🧵 Calling sigsuspend for \(signal)…")
427 | 							sigsuspend(&sigset)
    |        `- error: cannot find 'sigsuspend' in scope
428 | 						}
429 |
/host/spi-builder-workspace/Sources/SignalHandling/DelayedSigaction/SigactionDelayer_Block.swift:433:17: error: cannot find 'pthread_sigmask' in scope
431 | //						loggerLessThreadSafeDebugLog("🧵 Processing drop action for \(signal)…")
432 | 						var sigset = sigset_t()
433 | 						let ret = pthread_sigmask(SIG_SETMASK, nil /* new signals */, &sigset)
    |                 `- error: cannot find 'pthread_sigmask' in scope
434 | 						if ret != 0 {
435 | 							throw SignalHandlingError.nonDestructiveSystemError(Errno(rawValue: ret))
/host/spi-builder-workspace/Sources/SignalHandling/DelayedSigaction/SigactionDelayer_Block.swift:433:33: error: cannot find 'SIG_SETMASK' in scope
431 | //						loggerLessThreadSafeDebugLog("🧵 Processing drop action for \(signal)…")
432 | 						var sigset = sigset_t()
433 | 						let ret = pthread_sigmask(SIG_SETMASK, nil /* new signals */, &sigset)
    |                                 `- error: cannot find 'SIG_SETMASK' in scope
434 | 						if ret != 0 {
435 | 							throw SignalHandlingError.nonDestructiveSystemError(Errno(rawValue: ret))
/host/spi-builder-workspace/Sources/SignalHandling/DelayedSigaction/SigactionDelayer_Block.swift:433:46: error: 'nil' requires a contextual type
431 | //						loggerLessThreadSafeDebugLog("🧵 Processing drop action for \(signal)…")
432 | 						var sigset = sigset_t()
433 | 						let ret = pthread_sigmask(SIG_SETMASK, nil /* new signals */, &sigset)
    |                                              `- error: 'nil' requires a contextual type
434 | 						if ret != 0 {
435 | 							throw SignalHandlingError.nonDestructiveSystemError(Errno(rawValue: ret))
/host/spi-builder-workspace/Sources/SignalHandling/DelayedSigaction/SigactionDelayer_Block.swift:437:7: error: cannot find 'sigdelset' in scope
435 | 							throw SignalHandlingError.nonDestructiveSystemError(Errno(rawValue: ret))
436 | 						}
437 | 						sigdelset(&sigset, signal.rawValue)
    |       `- error: cannot find 'sigdelset' in scope
438 |
439 | 						let oldAction = try Sigaction.ignoreAction.install(on: signal, revertIfIgnored: false, updateUnsigRegistrations: false)
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Sigaction.swift:44:24: error: cannot find type 'sigaction' in scope
 42 | 	 If the handler of the sigaction is `SIG_IGN` or `SIG_DFL`, we check the `sa_flags` not to contains the `SA_SIGINFO` bit.
 43 | 	 If they do, we log an error, as this is invalid. */
 44 | 	public init(rawValue: sigaction) {
    |                        `- error: cannot find type 'sigaction' in scope
 45 | 		self.mask = Signal.set(from: rawValue.sa_mask)
 46 | 		self.flags = SigactionFlags(rawValue: rawValue.sa_flags)
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Sigaction.swift:79:23: error: cannot find type 'sigaction' in scope
 77 | 	}
 78 |
 79 | 	public var rawValue: sigaction {
    |                       `- error: cannot find type 'sigaction' in scope
 80 | 		if !isValid {
 81 | 			Conf.logger?.warning("Getting sigaction from an invalid Sigaction.")
/host/spi-builder-workspace/Sources/SignalHandling/DelayedSigaction/SigactionDelayer_Block.swift:439:7: error: type 'Sigaction' does not conform to protocol 'RawRepresentable'
437 | 						sigdelset(&sigset, signal.rawValue)
438 |
439 | 						let oldAction = try Sigaction.ignoreAction.install(on: signal, revertIfIgnored: false, updateUnsigRegistrations: false)
    |       `- error: type 'Sigaction' does not conform to protocol 'RawRepresentable'
440 | 						/* Will not hurt, the signal is ignored anyway (yes, there is a race condition, I know). */
441 | 						pthread_kill(pthread_self(), signal.rawValue)
/host/spi-builder-workspace/Sources/SignalHandling/DelayedSigaction/SigactionDelayer_Block.swift:441:7: error: cannot find 'pthread_kill' in scope
439 | 						let oldAction = try Sigaction.ignoreAction.install(on: signal, revertIfIgnored: false, updateUnsigRegistrations: false)
440 | 						/* Will not hurt, the signal is ignored anyway (yes, there is a race condition, I know). */
441 | 						pthread_kill(pthread_self(), signal.rawValue)
    |       `- error: cannot find 'pthread_kill' in scope
442 | 						/* No sigsuspend. Would block because signal is ignored. */
443 | 						if let oldAction = oldAction {
/host/spi-builder-workspace/Sources/SignalHandling/DelayedSigaction/SigactionDelayer_Block.swift:441:20: error: cannot find 'pthread_self' in scope
439 | 						let oldAction = try Sigaction.ignoreAction.install(on: signal, revertIfIgnored: false, updateUnsigRegistrations: false)
440 | 						/* Will not hurt, the signal is ignored anyway (yes, there is a race condition, I know). */
441 | 						pthread_kill(pthread_self(), signal.rawValue)
    |                    `- error: cannot find 'pthread_self' in scope
442 | 						/* No sigsuspend. Would block because signal is ignored. */
443 | 						if let oldAction = oldAction {
[442/452] 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:129:21: error: cannot find 'NSConditionLock' in scope
127 | 		}
128 |
129 | 		static let lock = NSConditionLock(condition: Self.nothingToDo.rawValue)
    |                     `- error: cannot find 'NSConditionLock' in scope
130 |
131 | 		/* Read/write is protected by the lock above. */
/host/spi-builder-workspace/Sources/SignalHandling/DelayedSigaction/SigactionDelayer_Unsig.swift:145:23: error: cannot find type 'DispatchSourceSignal' in scope
143 | 		var originalSigaction: Sigaction
144 |
145 | 		var dispatchSource: DispatchSourceSignal
    |                       `- error: cannot find type 'DispatchSourceSignal' in scope
146 | 		var handlers = [DelayedSigaction: DelayedSigactionHandler]()
147 |
/host/spi-builder-workspace/Sources/SignalHandling/DelayedSigaction/SigactionDelayer_Unsig.swift:150:45: error: cannot find 'DispatchQueue' in scope
148 | 	}
149 |
150 | 	private static let signalProcessingQueue = DispatchQueue(label: "com.xcode-actions.unsigactioned-signals-processing-queue")
    |                                             `- error: cannot find 'DispatchQueue' in scope
151 |
152 | 	/* Both these vars are only modified/read on the signal processing queue. */
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Sigaction.swift:44:24: error: cannot find type 'sigaction' in scope
 42 | 	 If the handler of the sigaction is `SIG_IGN` or `SIG_DFL`, we check the `sa_flags` not to contains the `SA_SIGINFO` bit.
 43 | 	 If they do, we log an error, as this is invalid. */
 44 | 	public init(rawValue: sigaction) {
    |                        `- error: cannot find type 'sigaction' in scope
 45 | 		self.mask = Signal.set(from: rawValue.sa_mask)
 46 | 		self.flags = SigactionFlags(rawValue: rawValue.sa_flags)
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Sigaction.swift:79:23: error: cannot find type 'sigaction' in scope
 77 | 	}
 78 |
 79 | 	public var rawValue: sigaction {
    |                       `- error: cannot find type 'sigaction' in scope
 80 | 		if !isValid {
 81 | 			Conf.logger?.warning("Getting sigaction from an invalid Sigaction.")
/host/spi-builder-workspace/Sources/SignalHandling/DelayedSigaction/SigactionDelayer_Unsig.swift:87:21: error: type 'Sigaction' does not conform to protocol 'RawRepresentable'
 85 |
 86 | 	 - Returns: The previous sigaction if there was an unsigaction registered for the given signal, `nil` otherwise. */
 87 | 	public static func updateOriginalSigaction(for signal: Signal, to sigaction: Sigaction) -> Sigaction? {
    |                     `- error: type 'Sigaction' does not conform to protocol 'RawRepresentable'
 88 | 		return signalProcessingQueue.sync{
 89 | 			let previous = unsigactionedSignals[signal]?.originalSigaction
/host/spi-builder-workspace/Sources/SignalHandling/DelayedSigaction/SigactionDelayer_Unsig.swift:209:31: error: cannot find 'DispatchSource' in scope
207 | 			}
208 | 		} else {
209 | 			let dispatchSourceSignal = DispatchSource.makeSignalSource(signal: signal.rawValue, queue: signalProcessingQueue)
    |                               `- error: cannot find 'DispatchSource' in scope
210 | 			/* Apparently the dispatchSourceSignal does not need to be weak in the handler because the handler is released when the source is canceled.
211 | 			 * 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:272:16: error: cannot find 'DispatchGroup' in scope
270 | 		for _ in 0..<count {
271 | 			let lock = NSLock()
272 | 			let group = DispatchGroup()
    |                `- error: cannot find 'DispatchGroup' in scope
273 | 			nonisolated(unsafe) var runOriginalHandlerFinal = true
274 | 			for (_, handler) in unsigactionedSignal.handlers {
/host/spi-builder-workspace/Sources/SignalHandling/DelayedSigaction/SigactionDelayer_Unsig.swift:301:15: error: cannot find 'DispatchGroup' in scope
299 |
300 | 		nonisolated(unsafe) var error: Error?
301 | 		let group = DispatchGroup()
    |               `- error: cannot find 'DispatchGroup' in scope
302 | 		group.enter()
303 | 		Thread.detachNewThread{
/host/spi-builder-workspace/Sources/SignalHandling/DelayedSigaction/SigactionDelayer_Unsig.swift:303:3: error: cannot find 'Thread' in scope
301 | 		let group = DispatchGroup()
302 | 		group.enter()
303 | 		Thread.detachNewThread{
    |   `- error: cannot find 'Thread' in scope
304 | 			Thread.current.name = "com.xcode-actions.unsigactioned-signals-thread"
305 |
/host/spi-builder-workspace/Sources/SignalHandling/DelayedSigaction/SigactionDelayer_Unsig.swift:304:4: error: cannot find 'Thread' in scope
302 | 		group.enter()
303 | 		Thread.detachNewThread{
304 | 			Thread.current.name = "com.xcode-actions.unsigactioned-signals-thread"
    |    `- error: cannot find 'Thread' in scope
305 |
306 | 			/* Unblock all signals in this thread. */
/host/spi-builder-workspace/Sources/SignalHandling/DelayedSigaction/SigactionDelayer_Unsig.swift:308:14: error: cannot find 'pthread_sigmask' in scope
306 | 			/* Unblock all signals in this thread. */
307 | 			var noSignals = Signal.emptySigset
308 | 			let ret = pthread_sigmask(SIG_SETMASK, &noSignals, nil /* old signals */)
    |              `- error: cannot find 'pthread_sigmask' in scope
309 | 			if ret != 0 {
310 | 				error = SignalHandlingError.destructiveSystemError(Errno(rawValue: ret))
/host/spi-builder-workspace/Sources/SignalHandling/DelayedSigaction/SigactionDelayer_Unsig.swift:308:30: error: cannot find 'SIG_SETMASK' in scope
306 | 			/* Unblock all signals in this thread. */
307 | 			var noSignals = Signal.emptySigset
308 | 			let ret = pthread_sigmask(SIG_SETMASK, &noSignals, nil /* old signals */)
    |                              `- error: cannot find 'SIG_SETMASK' in scope
309 | 			if ret != 0 {
310 | 				error = SignalHandlingError.destructiveSystemError(Errno(rawValue: ret))
/host/spi-builder-workspace/Sources/SignalHandling/DelayedSigaction/SigactionDelayer_Unsig.swift:379:20: error: cannot find 'pthread_self' in scope
377 | 						 * Anyway, we need to reinstall the sigaction handler after the signal has been sent and processed,
378 | 						 *  so we need to have some control, which `raise` does not give. */
379 | 						let thread = pthread_self()
    |                    `- error: cannot find 'pthread_self' in scope
380 | //						let killResult = raise(signal.rawValue)
381 | 						let killResult = pthread_kill(thread, signal.rawValue)
/host/spi-builder-workspace/Sources/SignalHandling/DelayedSigaction/SigactionDelayer_Unsig.swift:381:24: error: cannot find 'pthread_kill' in scope
379 | 						let thread = pthread_self()
380 | //						let killResult = raise(signal.rawValue)
381 | 						let killResult = pthread_kill(thread, signal.rawValue)
    |                        `- error: cannot find 'pthread_kill' in scope
382 | 						if killResult != 0 {
383 | 							completionResult.errorLogs.append(("Cannot send signal to unsigactioned thread.", ["signal": "\(signal)", "kill_result": "\(killResult)"]))
/host/spi-builder-workspace/Sources/SignalHandling/DelayedSigaction/SigactionDelayer_Unsig.swift:387:27: error: cannot find 'pthread_sigmask' in scope
385 |
386 | 						/* Re-unblock all signals (in case a handler blocked one). */
387 | 						let sigmaskResult = pthread_sigmask(SIG_SETMASK, &emptyMask, nil)
    |                           `- error: cannot find 'pthread_sigmask' in scope
388 | 						if sigmaskResult != 0 {
389 | 							completionResult.errorLogs.append((
/host/spi-builder-workspace/Sources/SignalHandling/DelayedSigaction/SigactionDelayer_Unsig.swift:387:43: error: cannot find 'SIG_SETMASK' in scope
385 |
386 | 						/* Re-unblock all signals (in case a handler blocked one). */
387 | 						let sigmaskResult = pthread_sigmask(SIG_SETMASK, &emptyMask, nil)
    |                                           `- error: cannot find 'SIG_SETMASK' in scope
388 | 						if sigmaskResult != 0 {
389 | 							completionResult.errorLogs.append((
/host/spi-builder-workspace/Sources/SignalHandling/DelayedSigaction/SigactionDelayer_Unsig.swift:387:68: error: 'nil' requires a contextual type
385 |
386 | 						/* Re-unblock all signals (in case a handler blocked one). */
387 | 						let sigmaskResult = pthread_sigmask(SIG_SETMASK, &emptyMask, nil)
    |                                                                    `- error: 'nil' requires a contextual type
388 | 						if sigmaskResult != 0 {
389 | 							completionResult.errorLogs.append((
[443/452] Compiling SignalHandling DelayedSigaction.swift
[444/452] Compiling SignalHandling SigactionHandler.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: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: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 | 			})
[445/452] Compiling SignalHandling Signal.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: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: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 | 			})
[446/452] Compiling SignalHandling Sigaction.swift
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Sigaction.swift:44:24: error: cannot find type 'sigaction' in scope
 42 | 	 If the handler of the sigaction is `SIG_IGN` or `SIG_DFL`, we check the `sa_flags` not to contains the `SA_SIGINFO` bit.
 43 | 	 If they do, we log an error, as this is invalid. */
 44 | 	public init(rawValue: sigaction) {
    |                        `- error: cannot find type 'sigaction' in scope
 45 | 		self.mask = Signal.set(from: rawValue.sa_mask)
 46 | 		self.flags = SigactionFlags(rawValue: rawValue.sa_flags)
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Sigaction.swift:79:23: error: cannot find type 'sigaction' in scope
 77 | 	}
 78 |
 79 | 	public var rawValue: sigaction {
    |                       `- error: cannot find type 'sigaction' in scope
 80 | 		if !isValid {
 81 | 			Conf.logger?.warning("Getting sigaction from an invalid Sigaction.")
/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:8:15: error: type 'Sigaction' does not conform to protocol 'RawRepresentable'
  6 |
  7 |
  8 | public struct Sigaction : Equatable, RawRepresentable, Sendable {
    |               |- error: type 'Sigaction' does not conform to protocol 'RawRepresentable'
    |               `- note: add stubs for conformance
  9 |
 10 | 	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:50:49: error: cannot find 'SIG_IGN' in scope
 48 | #if !os(Linux)
 49 | 		switch OpaquePointer(bitPattern: unsafeBitCast(rawValue.__sigaction_u.__sa_handler, to: Int.self)) {
 50 | 			case OpaquePointer(bitPattern: unsafeBitCast(SIG_IGN, to: Int.self)): self.handler = .ignoreHandler
    |                                                 `- error: cannot find 'SIG_IGN' in scope
 51 | 			case OpaquePointer(bitPattern: unsafeBitCast(SIG_DFL, to: Int.self)): self.handler = .defaultHandler
 52 | 			default:
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Sigaction.swift:51:49: error: cannot find 'SIG_DFL' in scope
 49 | 		switch OpaquePointer(bitPattern: unsafeBitCast(rawValue.__sigaction_u.__sa_handler, to: Int.self)) {
 50 | 			case OpaquePointer(bitPattern: unsafeBitCast(SIG_IGN, to: Int.self)): self.handler = .ignoreHandler
 51 | 			case OpaquePointer(bitPattern: unsafeBitCast(SIG_DFL, to: Int.self)): self.handler = .defaultHandler
    |                                                 `- error: cannot find 'SIG_DFL' in scope
 52 | 			default:
 53 | 				if flags.contains(.siginfo) {self.handler = .posix(rawValue.__sigaction_u.__sa_sigaction)}
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Sigaction.swift:72:16: error: cannot find 'sigaction' in scope
 70 |
 71 | 	public init(signal: Signal) throws {
 72 | 		var action = sigaction()
    |                `- error: cannot find 'sigaction' in scope
 73 | 		guard sigaction(signal.rawValue, nil, &action) == 0 else {
 74 | 			throw SignalHandlingError.nonDestructiveSystemError(Errno(rawValue: errno))
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Sigaction.swift:73:9: error: cannot find 'sigaction' in scope
 71 | 	public init(signal: Signal) throws {
 72 | 		var action = sigaction()
 73 | 		guard sigaction(signal.rawValue, nil, &action) == 0 else {
    |         `- error: cannot find 'sigaction' in scope
 74 | 			throw SignalHandlingError.nonDestructiveSystemError(Errno(rawValue: errno))
 75 | 		}
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Sigaction.swift:73:36: error: 'nil' requires a contextual type
 71 | 	public init(signal: Signal) throws {
 72 | 		var action = sigaction()
 73 | 		guard sigaction(signal.rawValue, nil, &action) == 0 else {
    |                                    `- error: 'nil' requires a contextual type
 74 | 			throw SignalHandlingError.nonDestructiveSystemError(Errno(rawValue: errno))
 75 | 		}
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Sigaction.swift:76:8: error: no exact matches in call to initializer
 28 | 	public var handler: SigactionHandler
 29 |
 30 | 	public init(handler: SigactionHandler) {
    |         `- note: incorrect labels for candidate (have: '(rawValue:)', expected: '(handler:)')
 31 | 		self.mask = []
 32 | 		switch handler {
    :
 69 | 	}
 70 |
 71 | 	public init(signal: Signal) throws {
    |         `- note: incorrect labels for candidate (have: '(rawValue:)', expected: '(signal:)')
 72 | 		var action = sigaction()
 73 | 		guard sigaction(signal.rawValue, nil, &action) == 0 else {
 74 | 			throw SignalHandlingError.nonDestructiveSystemError(Errno(rawValue: errno))
 75 | 		}
 76 | 		self.init(rawValue: action)
    |        `- error: no exact matches in call to initializer
 77 | 	}
 78 |
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Sigaction.swift:84:13: error: cannot find 'sigaction' in scope
 82 | 		}
 83 |
 84 | 		var ret = sigaction()
    |             `- error: cannot find 'sigaction' in scope
 85 | 		ret.sa_mask = Signal.sigset(from: mask)
 86 | 		ret.sa_flags = flags.rawValue
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Sigaction.swift:90:59: error: cannot find 'SIG_IGN' in scope
 88 | #if !os(Linux)
 89 | 		switch handler {
 90 | 			case .ignoreHandler:  ret.__sigaction_u.__sa_handler = SIG_IGN
    |                                                           `- error: cannot find 'SIG_IGN' in scope
 91 | 			case .defaultHandler: ret.__sigaction_u.__sa_handler = SIG_DFL
 92 | 			case .ansiC(let h):   ret.__sigaction_u.__sa_handler = h
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Sigaction.swift:91:59: error: cannot find 'SIG_DFL' in scope
 89 | 		switch handler {
 90 | 			case .ignoreHandler:  ret.__sigaction_u.__sa_handler = SIG_IGN
 91 | 			case .defaultHandler: ret.__sigaction_u.__sa_handler = SIG_DFL
    |                                                           `- error: cannot find 'SIG_DFL' in scope
 92 | 			case .ansiC(let h):   ret.__sigaction_u.__sa_handler = h
 93 | 			case .posix(let h):   ret.__sigaction_u.__sa_sigaction = h
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Sigaction.swift:129:20: error: cannot find 'sigaction' in scope
127 | 		}
128 |
129 | 		var oldCAction = sigaction()
    |                    `- error: cannot find 'sigaction' in scope
130 | 		var newCAction = self.rawValue
131 | 		guard sigaction(signal.rawValue, &newCAction, &oldCAction) == 0 else {
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Sigaction.swift:131:9: error: cannot find 'sigaction' in scope
129 | 		var oldCAction = sigaction()
130 | 		var newCAction = self.rawValue
131 | 		guard sigaction(signal.rawValue, &newCAction, &oldCAction) == 0 else {
    |         `- error: cannot find 'sigaction' in scope
132 | 			throw SignalHandlingError.nonDestructiveSystemError(Errno(rawValue: errno))
133 | 		}
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Sigaction.swift:134:22: error: no exact matches in call to initializer
 28 | 	public var handler: SigactionHandler
 29 |
 30 | 	public init(handler: SigactionHandler) {
    |         `- note: incorrect labels for candidate (have: '(rawValue:)', expected: '(handler:)')
 31 | 		self.mask = []
 32 | 		switch handler {
    :
 69 | 	}
 70 |
 71 | 	public init(signal: Signal) throws {
    |         `- note: incorrect labels for candidate (have: '(rawValue:)', expected: '(signal:)')
 72 | 		var action = sigaction()
 73 | 		guard sigaction(signal.rawValue, nil, &action) == 0 else {
    :
132 | 			throw SignalHandlingError.nonDestructiveSystemError(Errno(rawValue: errno))
133 | 		}
134 | 		let oldSigaction = Sigaction(rawValue: oldCAction)
    |                      `- error: no exact matches in call to initializer
135 | 		if revertIfIgnored && oldSigaction == .ignoreAction {
136 | 			guard sigaction(signal.rawValue, &oldCAction, nil) == 0 else {
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Sigaction.swift:136:10: error: cannot find 'sigaction' in scope
134 | 		let oldSigaction = Sigaction(rawValue: oldCAction)
135 | 		if revertIfIgnored && oldSigaction == .ignoreAction {
136 | 			guard sigaction(signal.rawValue, &oldCAction, nil) == 0 else {
    |          `- error: cannot find 'sigaction' in scope
137 | 				throw SignalHandlingError.destructiveSystemError(Errno(rawValue: errno))
138 | 			}
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Sigaction.swift:136:50: error: 'nil' requires a contextual type
134 | 		let oldSigaction = Sigaction(rawValue: oldCAction)
135 | 		if revertIfIgnored && oldSigaction == .ignoreAction {
136 | 			guard sigaction(signal.rawValue, &oldCAction, nil) == 0 else {
    |                                                  `- error: 'nil' requires a contextual type
137 | 				throw SignalHandlingError.destructiveSystemError(Errno(rawValue: errno))
138 | 			}
/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 | 	/**
[447/452] Compiling SignalHandling SigactionFlag.swift
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Sigaction.swift:44:24: error: cannot find type 'sigaction' in scope
 42 | 	 If the handler of the sigaction is `SIG_IGN` or `SIG_DFL`, we check the `sa_flags` not to contains the `SA_SIGINFO` bit.
 43 | 	 If they do, we log an error, as this is invalid. */
 44 | 	public init(rawValue: sigaction) {
    |                        `- error: cannot find type 'sigaction' in scope
 45 | 		self.mask = Signal.set(from: rawValue.sa_mask)
 46 | 		self.flags = SigactionFlags(rawValue: rawValue.sa_flags)
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Sigaction.swift:79:23: error: cannot find type 'sigaction' in scope
 77 | 	}
 78 |
 79 | 	public var rawValue: sigaction {
    |                       `- error: cannot find type 'sigaction' in scope
 80 | 		if !isValid {
 81 | 			Conf.logger?.warning("Getting sigaction from an invalid Sigaction.")
/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:8:15: error: type 'Sigaction' does not conform to protocol 'RawRepresentable'
  6 |
  7 |
  8 | public struct Sigaction : Equatable, RawRepresentable, Sendable {
    |               |- error: type 'Sigaction' does not conform to protocol 'RawRepresentable'
    |               `- note: add stubs for conformance
  9 |
 10 | 	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:50:49: error: cannot find 'SIG_IGN' in scope
 48 | #if !os(Linux)
 49 | 		switch OpaquePointer(bitPattern: unsafeBitCast(rawValue.__sigaction_u.__sa_handler, to: Int.self)) {
 50 | 			case OpaquePointer(bitPattern: unsafeBitCast(SIG_IGN, to: Int.self)): self.handler = .ignoreHandler
    |                                                 `- error: cannot find 'SIG_IGN' in scope
 51 | 			case OpaquePointer(bitPattern: unsafeBitCast(SIG_DFL, to: Int.self)): self.handler = .defaultHandler
 52 | 			default:
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Sigaction.swift:51:49: error: cannot find 'SIG_DFL' in scope
 49 | 		switch OpaquePointer(bitPattern: unsafeBitCast(rawValue.__sigaction_u.__sa_handler, to: Int.self)) {
 50 | 			case OpaquePointer(bitPattern: unsafeBitCast(SIG_IGN, to: Int.self)): self.handler = .ignoreHandler
 51 | 			case OpaquePointer(bitPattern: unsafeBitCast(SIG_DFL, to: Int.self)): self.handler = .defaultHandler
    |                                                 `- error: cannot find 'SIG_DFL' in scope
 52 | 			default:
 53 | 				if flags.contains(.siginfo) {self.handler = .posix(rawValue.__sigaction_u.__sa_sigaction)}
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Sigaction.swift:72:16: error: cannot find 'sigaction' in scope
 70 |
 71 | 	public init(signal: Signal) throws {
 72 | 		var action = sigaction()
    |                `- error: cannot find 'sigaction' in scope
 73 | 		guard sigaction(signal.rawValue, nil, &action) == 0 else {
 74 | 			throw SignalHandlingError.nonDestructiveSystemError(Errno(rawValue: errno))
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Sigaction.swift:73:9: error: cannot find 'sigaction' in scope
 71 | 	public init(signal: Signal) throws {
 72 | 		var action = sigaction()
 73 | 		guard sigaction(signal.rawValue, nil, &action) == 0 else {
    |         `- error: cannot find 'sigaction' in scope
 74 | 			throw SignalHandlingError.nonDestructiveSystemError(Errno(rawValue: errno))
 75 | 		}
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Sigaction.swift:73:36: error: 'nil' requires a contextual type
 71 | 	public init(signal: Signal) throws {
 72 | 		var action = sigaction()
 73 | 		guard sigaction(signal.rawValue, nil, &action) == 0 else {
    |                                    `- error: 'nil' requires a contextual type
 74 | 			throw SignalHandlingError.nonDestructiveSystemError(Errno(rawValue: errno))
 75 | 		}
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Sigaction.swift:76:8: error: no exact matches in call to initializer
 28 | 	public var handler: SigactionHandler
 29 |
 30 | 	public init(handler: SigactionHandler) {
    |         `- note: incorrect labels for candidate (have: '(rawValue:)', expected: '(handler:)')
 31 | 		self.mask = []
 32 | 		switch handler {
    :
 69 | 	}
 70 |
 71 | 	public init(signal: Signal) throws {
    |         `- note: incorrect labels for candidate (have: '(rawValue:)', expected: '(signal:)')
 72 | 		var action = sigaction()
 73 | 		guard sigaction(signal.rawValue, nil, &action) == 0 else {
 74 | 			throw SignalHandlingError.nonDestructiveSystemError(Errno(rawValue: errno))
 75 | 		}
 76 | 		self.init(rawValue: action)
    |        `- error: no exact matches in call to initializer
 77 | 	}
 78 |
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Sigaction.swift:84:13: error: cannot find 'sigaction' in scope
 82 | 		}
 83 |
 84 | 		var ret = sigaction()
    |             `- error: cannot find 'sigaction' in scope
 85 | 		ret.sa_mask = Signal.sigset(from: mask)
 86 | 		ret.sa_flags = flags.rawValue
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Sigaction.swift:90:59: error: cannot find 'SIG_IGN' in scope
 88 | #if !os(Linux)
 89 | 		switch handler {
 90 | 			case .ignoreHandler:  ret.__sigaction_u.__sa_handler = SIG_IGN
    |                                                           `- error: cannot find 'SIG_IGN' in scope
 91 | 			case .defaultHandler: ret.__sigaction_u.__sa_handler = SIG_DFL
 92 | 			case .ansiC(let h):   ret.__sigaction_u.__sa_handler = h
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Sigaction.swift:91:59: error: cannot find 'SIG_DFL' in scope
 89 | 		switch handler {
 90 | 			case .ignoreHandler:  ret.__sigaction_u.__sa_handler = SIG_IGN
 91 | 			case .defaultHandler: ret.__sigaction_u.__sa_handler = SIG_DFL
    |                                                           `- error: cannot find 'SIG_DFL' in scope
 92 | 			case .ansiC(let h):   ret.__sigaction_u.__sa_handler = h
 93 | 			case .posix(let h):   ret.__sigaction_u.__sa_sigaction = h
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Sigaction.swift:129:20: error: cannot find 'sigaction' in scope
127 | 		}
128 |
129 | 		var oldCAction = sigaction()
    |                    `- error: cannot find 'sigaction' in scope
130 | 		var newCAction = self.rawValue
131 | 		guard sigaction(signal.rawValue, &newCAction, &oldCAction) == 0 else {
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Sigaction.swift:131:9: error: cannot find 'sigaction' in scope
129 | 		var oldCAction = sigaction()
130 | 		var newCAction = self.rawValue
131 | 		guard sigaction(signal.rawValue, &newCAction, &oldCAction) == 0 else {
    |         `- error: cannot find 'sigaction' in scope
132 | 			throw SignalHandlingError.nonDestructiveSystemError(Errno(rawValue: errno))
133 | 		}
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Sigaction.swift:134:22: error: no exact matches in call to initializer
 28 | 	public var handler: SigactionHandler
 29 |
 30 | 	public init(handler: SigactionHandler) {
    |         `- note: incorrect labels for candidate (have: '(rawValue:)', expected: '(handler:)')
 31 | 		self.mask = []
 32 | 		switch handler {
    :
 69 | 	}
 70 |
 71 | 	public init(signal: Signal) throws {
    |         `- note: incorrect labels for candidate (have: '(rawValue:)', expected: '(signal:)')
 72 | 		var action = sigaction()
 73 | 		guard sigaction(signal.rawValue, nil, &action) == 0 else {
    :
132 | 			throw SignalHandlingError.nonDestructiveSystemError(Errno(rawValue: errno))
133 | 		}
134 | 		let oldSigaction = Sigaction(rawValue: oldCAction)
    |                      `- error: no exact matches in call to initializer
135 | 		if revertIfIgnored && oldSigaction == .ignoreAction {
136 | 			guard sigaction(signal.rawValue, &oldCAction, nil) == 0 else {
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Sigaction.swift:136:10: error: cannot find 'sigaction' in scope
134 | 		let oldSigaction = Sigaction(rawValue: oldCAction)
135 | 		if revertIfIgnored && oldSigaction == .ignoreAction {
136 | 			guard sigaction(signal.rawValue, &oldCAction, nil) == 0 else {
    |          `- error: cannot find 'sigaction' in scope
137 | 				throw SignalHandlingError.destructiveSystemError(Errno(rawValue: errno))
138 | 			}
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Sigaction.swift:136:50: error: 'nil' requires a contextual type
134 | 		let oldSigaction = Sigaction(rawValue: oldCAction)
135 | 		if revertIfIgnored && oldSigaction == .ignoreAction {
136 | 			guard sigaction(signal.rawValue, &oldCAction, nil) == 0 else {
    |                                                  `- error: 'nil' requires a contextual type
137 | 				throw SignalHandlingError.destructiveSystemError(Errno(rawValue: errno))
138 | 			}
/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 | 	/**
[448/452] Compiling SignalHandling Utils.swift
BUILD FAILURE 6.1 wasm