Build Information
Failed to build swift-signal-handling, reference main (3dcac5), with Swift 6.1 for Wasm on 30 May 2025 03:15:31 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4606859-1":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1Build Log
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:12:15: error: type 'Sigaction' does not conform to protocol 'RawRepresentable'
10 |
11 |
12 | public struct Sigaction : Equatable, RawRepresentable, Sendable {
| |- error: type 'Sigaction' does not conform to protocol 'RawRepresentable'
| `- note: add stubs for conformance
13 |
14 | 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:109:50: error: cannot find 'SIGTERM' in scope
107 |
108 | /** “Normal” kill signal. */
109 | public static let terminated = Signal(rawValue: SIGTERM)
| `- error: cannot find 'SIGTERM' in scope
110 | /** Usually `Ctrl-C`. */
111 | public static let interrupt = Signal(rawValue: SIGINT)
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Signal.swift:111:50: error: cannot find 'SIGINT' in scope
109 | public static let terminated = Signal(rawValue: SIGTERM)
110 | /** Usually `Ctrl-C`. */
111 | public static let interrupt = Signal(rawValue: SIGINT)
| `- error: cannot find 'SIGINT' in scope
112 | /** Used to quit w/ generation of a core dump. Usually `Ctrl-\`. */
113 | public static let quit = Signal(rawValue: SIGQUIT)
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Signal.swift:113:50: error: cannot find 'SIGQUIT' in scope
111 | public static let interrupt = Signal(rawValue: SIGINT)
112 | /** Used to quit w/ generation of a core dump. Usually `Ctrl-\`. */
113 | public static let quit = Signal(rawValue: SIGQUIT)
| `- error: cannot find 'SIGQUIT' in scope
114 | public static let killed = Signal(rawValue: SIGKILL)
115 | /** The user’s terminal disconnected. */
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Signal.swift:116:50: error: cannot find 'SIGHUP' in scope
114 | public static let killed = Signal(rawValue: SIGKILL)
115 | /** The user’s terminal disconnected. */
116 | public static let hangup = Signal(rawValue: SIGHUP)
| `- error: cannot find 'SIGHUP' in scope
117 |
118 | /* *** Alarm Signals *** */
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Signal.swift:172:57: error: cannot find 'SIGTSTP' in scope
170 | public static let suspendedBySignal = Signal(rawValue: SIGSTOP)
171 | /** Suspends the program but can be handled and ignored. Usually `Ctrl-Z`. */
172 | public static let suspended = Signal(rawValue: SIGTSTP)
| `- error: cannot find 'SIGTSTP' in scope
173 | public static let stoppedTTYInput = Signal(rawValue: SIGTTIN)
174 | public static let stoppedTTYOutput = Signal(rawValue: SIGTTOU)
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Signal.swift:168:57: error: cannot find 'SIGCONT' in scope
166 | /* Obsolete name for SIGCHLD. */
167 | // public static let cildExited = Signal(rawValue: SIGCLD)
168 | public static let continued = Signal(rawValue: SIGCONT)
| `- error: cannot find 'SIGCONT' in scope
169 | /** Suspends the program. Cannot be handled, ignored or blocked. */
170 | public static let suspendedBySignal = Signal(rawValue: SIGSTOP)
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Signal.swift:80:62: error: cannot find 'SIGFPE' in scope
78 | /**
79 | - Note: FPE means Floating-Point Exception but this signal is sent for any arithmetic error. */
80 | public static let arithmeticError = Signal(rawValue: SIGFPE)
| `- error: cannot find 'SIGFPE' in scope
81 | @available(*, unavailable, renamed: "arithmeticError")
82 | public static let floatingPointException = Signal(rawValue: SIGFPE)
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Signal.swift:82:62: error: cannot find 'SIGFPE' in scope
80 | public static let arithmeticError = Signal(rawValue: SIGFPE)
81 | @available(*, unavailable, renamed: "arithmeticError")
82 | public static let floatingPointException = Signal(rawValue: SIGFPE)
| `- error: cannot find 'SIGFPE' in scope
83 | public static let illegalInstruction = Signal(rawValue: SIGILL)
84 | public static let segmentationFault = Signal(rawValue: SIGSEGV)
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Signal.swift:83:62: error: cannot find 'SIGILL' in scope
81 | @available(*, unavailable, renamed: "arithmeticError")
82 | public static let floatingPointException = Signal(rawValue: SIGFPE)
83 | public static let illegalInstruction = Signal(rawValue: SIGILL)
| `- error: cannot find 'SIGILL' in scope
84 | public static let segmentationFault = Signal(rawValue: SIGSEGV)
85 | public static let busError = Signal(rawValue: SIGBUS)
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Signal.swift:84:62: error: cannot find 'SIGSEGV' in scope
82 | public static let floatingPointException = Signal(rawValue: SIGFPE)
83 | public static let illegalInstruction = Signal(rawValue: SIGILL)
84 | public static let segmentationFault = Signal(rawValue: SIGSEGV)
| `- error: cannot find 'SIGSEGV' in scope
85 | public static let busError = Signal(rawValue: SIGBUS)
86 | public static let abortTrap = Signal(rawValue: SIGABRT)
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Signal.swift:85:62: error: cannot find 'SIGBUS' in scope
83 | public static let illegalInstruction = Signal(rawValue: SIGILL)
84 | public static let segmentationFault = Signal(rawValue: SIGSEGV)
85 | public static let busError = Signal(rawValue: SIGBUS)
| `- error: cannot find 'SIGBUS' in scope
86 | public static let abortTrap = Signal(rawValue: SIGABRT)
87 | /** Usually the same as `abortTrap`. */
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Signal.swift:86:62: error: cannot find 'SIGABRT' in scope
84 | public static let segmentationFault = Signal(rawValue: SIGSEGV)
85 | public static let busError = Signal(rawValue: SIGBUS)
86 | public static let abortTrap = Signal(rawValue: SIGABRT)
| `- error: cannot find 'SIGABRT' in scope
87 | /** Usually the same as `abortTrap`. */
88 | public static let iot = Signal(rawValue: SIGIOT)
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Signal.swift:88:62: error: cannot find 'SIGIOT' in scope
86 | public static let abortTrap = Signal(rawValue: SIGABRT)
87 | /** Usually the same as `abortTrap`. */
88 | public static let iot = Signal(rawValue: SIGIOT)
| `- error: cannot find 'SIGIOT' in scope
89 | public static let traceBreakpointTrap = Signal(rawValue: SIGTRAP)
90 | #if !os(Linux)
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Signal.swift:89:62: error: cannot find 'SIGTRAP' in scope
87 | /** Usually the same as `abortTrap`. */
88 | public static let iot = Signal(rawValue: SIGIOT)
89 | public static let traceBreakpointTrap = Signal(rawValue: SIGTRAP)
| `- error: cannot find 'SIGTRAP' in scope
90 | #if !os(Linux)
91 | public static let emulatorTrap = Signal(rawValue: SIGEMT)
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Signal.swift:91:62: error: cannot find 'SIGEMT' in scope
89 | public static let traceBreakpointTrap = Signal(rawValue: SIGTRAP)
90 | #if !os(Linux)
91 | public static let emulatorTrap = Signal(rawValue: SIGEMT)
| `- error: cannot find 'SIGEMT' in scope
92 | #endif
93 | public static let badSystemCall = Signal(rawValue: SIGSYS)
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Signal.swift:93:62: error: cannot find 'SIGSYS' in scope
91 | public static let emulatorTrap = Signal(rawValue: SIGEMT)
92 | #endif
93 | public static let badSystemCall = Signal(rawValue: SIGSYS)
| `- error: cannot find 'SIGSYS' in scope
94 |
95 | /* *** Termination Signals *** */
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Signal.swift:114:50: error: cannot find 'SIGKILL' in scope
112 | /** Used to quit w/ generation of a core dump. Usually `Ctrl-\`. */
113 | public static let quit = Signal(rawValue: SIGQUIT)
114 | public static let killed = Signal(rawValue: SIGKILL)
| `- error: cannot find 'SIGKILL' in scope
115 | /** The user’s terminal disconnected. */
116 | public static let hangup = Signal(rawValue: SIGHUP)
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Signal.swift:129:61: error: cannot find 'SIGALRM' in scope
127 | }
128 |
129 | public static let alarmClock = Signal(rawValue: SIGALRM)
| `- error: cannot find 'SIGALRM' in scope
130 | public static let virtualTimerExpired = Signal(rawValue: SIGVTALRM)
131 | public static let profilingTimerExpired = Signal(rawValue: SIGPROF)
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Signal.swift:130:61: error: cannot find 'SIGVTALRM' in scope
128 |
129 | public static let alarmClock = Signal(rawValue: SIGALRM)
130 | public static let virtualTimerExpired = Signal(rawValue: SIGVTALRM)
| `- error: cannot find 'SIGVTALRM' in scope
131 | public static let profilingTimerExpired = Signal(rawValue: SIGPROF)
132 |
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Signal.swift:131:61: error: cannot find 'SIGPROF' in scope
129 | public static let alarmClock = Signal(rawValue: SIGALRM)
130 | public static let virtualTimerExpired = Signal(rawValue: SIGVTALRM)
131 | public static let profilingTimerExpired = Signal(rawValue: SIGPROF)
| `- error: cannot find 'SIGPROF' in scope
132 |
133 | /* *** Asynchronous I/O Signals *** */
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Signal.swift:144:57: error: cannot find 'SIGIO' in scope
142 | }
143 |
144 | public static let ioPossible = Signal(rawValue: SIGIO)
| `- error: cannot find 'SIGIO' in scope
145 | public static let urgentIOCondition = Signal(rawValue: SIGURG)
146 | #if os(Linux)
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Signal.swift:145:57: error: cannot find 'SIGURG' in scope
143 |
144 | public static let ioPossible = Signal(rawValue: SIGIO)
145 | public static let urgentIOCondition = Signal(rawValue: SIGURG)
| `- error: cannot find 'SIGURG' in scope
146 | #if os(Linux)
147 | /** System V signal name, similar to SIGIO. */
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Signal.swift:165:57: error: cannot find 'SIGCHLD' in scope
163 | }
164 |
165 | public static let childExited = Signal(rawValue: SIGCHLD)
| `- error: cannot find 'SIGCHLD' in scope
166 | /* Obsolete name for SIGCHLD. */
167 | // public static let cildExited = Signal(rawValue: SIGCLD)
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Signal.swift:170:57: error: cannot find 'SIGSTOP' in scope
168 | public static let continued = Signal(rawValue: SIGCONT)
169 | /** Suspends the program. Cannot be handled, ignored or blocked. */
170 | public static let suspendedBySignal = Signal(rawValue: SIGSTOP)
| `- error: cannot find 'SIGSTOP' in scope
171 | /** Suspends the program but can be handled and ignored. Usually `Ctrl-Z`. */
172 | public static let suspended = Signal(rawValue: SIGTSTP)
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Signal.swift:173:57: error: cannot find 'SIGTTIN' in scope
171 | /** Suspends the program but can be handled and ignored. Usually `Ctrl-Z`. */
172 | public static let suspended = Signal(rawValue: SIGTSTP)
173 | public static let stoppedTTYInput = Signal(rawValue: SIGTTIN)
| `- error: cannot find 'SIGTTIN' in scope
174 | public static let stoppedTTYOutput = Signal(rawValue: SIGTTOU)
175 |
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Signal.swift:174:57: error: cannot find 'SIGTTOU' in scope
172 | public static let suspended = Signal(rawValue: SIGTSTP)
173 | public static let stoppedTTYInput = Signal(rawValue: SIGTTIN)
174 | public static let stoppedTTYOutput = Signal(rawValue: SIGTTOU)
| `- error: cannot find 'SIGTTOU' in scope
175 |
176 | /* *** Operation Error Signals *** */
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Signal.swift:187:61: error: cannot find 'SIGPIPE' in scope
185 | }
186 |
187 | public static let brokenPipe = Signal(rawValue: SIGPIPE)
| `- error: cannot find 'SIGPIPE' in scope
188 | // public static let resourceLost = Signal(rawValue: SIGLOST)
189 | public static let cputimeLimitExceeded = Signal(rawValue: SIGXCPU)
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Signal.swift:189:61: error: cannot find 'SIGXCPU' in scope
187 | public static let brokenPipe = Signal(rawValue: SIGPIPE)
188 | // public static let resourceLost = Signal(rawValue: SIGLOST)
189 | public static let cputimeLimitExceeded = Signal(rawValue: SIGXCPU)
| `- error: cannot find 'SIGXCPU' in scope
190 | public static let filesizeLimitExceeded = Signal(rawValue: SIGXFSZ)
191 |
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Signal.swift:190:61: error: cannot find 'SIGXFSZ' in scope
188 | // public static let resourceLost = Signal(rawValue: SIGLOST)
189 | public static let cputimeLimitExceeded = Signal(rawValue: SIGXCPU)
190 | public static let filesizeLimitExceeded = Signal(rawValue: SIGXFSZ)
| `- error: cannot find 'SIGXFSZ' in scope
191 |
192 | /* *** Miscellaneous Signals *** */
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Signal.swift:209:58: error: cannot find 'SIGUSR1' in scope
207 | }
208 |
209 | public static let userDefinedSignal1 = Signal(rawValue: SIGUSR1)
| `- error: cannot find 'SIGUSR1' in scope
210 | public static let userDefinedSignal2 = Signal(rawValue: SIGUSR2)
211 | public static let windowSizeChanges = Signal(rawValue: SIGWINCH)
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Signal.swift:210:58: error: cannot find 'SIGUSR2' in scope
208 |
209 | public static let userDefinedSignal1 = Signal(rawValue: SIGUSR1)
210 | public static let userDefinedSignal2 = Signal(rawValue: SIGUSR2)
| `- error: cannot find 'SIGUSR2' in scope
211 | public static let windowSizeChanges = Signal(rawValue: SIGWINCH)
212 | #if !os(Linux)
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Signal.swift:211:58: error: cannot find 'SIGWINCH' in scope
209 | public static let userDefinedSignal1 = Signal(rawValue: SIGUSR1)
210 | public static let userDefinedSignal2 = Signal(rawValue: SIGUSR2)
211 | public static let windowSizeChanges = Signal(rawValue: SIGWINCH)
| `- error: cannot find 'SIGWINCH' in scope
212 | #if !os(Linux)
213 | public static let informationRequest = Signal(rawValue: SIGINFO)
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Signal.swift:213:58: error: cannot find 'SIGINFO' in scope
211 | public static let windowSizeChanges = Signal(rawValue: SIGWINCH)
212 | #if !os(Linux)
213 | public static let informationRequest = Signal(rawValue: SIGINFO)
| `- error: cannot find 'SIGINFO' in scope
214 | #endif
215 |
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Signal.swift:238:3: error: cannot find 'sigemptyset' in scope
236 | public static let emptySigset: sigset_t = {
237 | var sigset = sigset_t()
238 | sigemptyset(&sigset)
| `- error: cannot find 'sigemptyset' in scope
239 | return sigset
240 | }()
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Signal.swift:248:3: error: cannot find 'sigfillset' in scope
246 | public static let fullSigset: sigset_t = {
247 | var sigset = sigset_t()
248 | sigfillset(&sigset)
| `- error: cannot find 'sigfillset' in scope
249 | return sigset
250 | }()
/host/spi-builder-workspace/Sources/SignalHandling/DelayedSigaction/SigactionDelayer_Block.swift:180:21: error: cannot find 'NSConditionLock' in scope
178 | }
179 |
180 | static let lock = NSConditionLock(condition: Self.nothingToDo.rawValue)
| `- error: cannot find 'NSConditionLock' in scope
181 |
182 | /* Read/write is protected by the lock above. */
/host/spi-builder-workspace/Sources/SignalHandling/DelayedSigaction/SigactionDelayer_Block.swift:194:23: error: cannot find type 'DispatchSourceSignal' in scope
192 | private struct BlockedSignal {
193 |
194 | var dispatchSource: DispatchSourceSignal
| `- error: cannot find type 'DispatchSourceSignal' in scope
195 | var handlers = [DelayedSigaction: DelayedSigactionHandler]()
196 |
/host/spi-builder-workspace/Sources/SignalHandling/DelayedSigaction/SigactionDelayer_Block.swift:199:45: error: cannot find 'DispatchQueue' in scope
197 | }
198 |
199 | private static let signalProcessingQueue = DispatchQueue(label: "com.xcode-actions.blocked-signals-processing-queue")
| `- error: cannot find 'DispatchQueue' in scope
200 |
201 | /* Only used on the main thread. */
/host/spi-builder-workspace/Sources/SignalHandling/DelayedSigaction/SigactionDelayer_Unsig.swift:133:21: error: cannot find 'NSConditionLock' in scope
131 | }
132 |
133 | static let lock = NSConditionLock(condition: Self.nothingToDo.rawValue)
| `- error: cannot find 'NSConditionLock' in scope
134 |
135 | /* Read/write is protected by the lock above. */
/host/spi-builder-workspace/Sources/SignalHandling/DelayedSigaction/SigactionDelayer_Unsig.swift:149:23: error: cannot find type 'DispatchSourceSignal' in scope
147 | var originalSigaction: Sigaction
148 |
149 | var dispatchSource: DispatchSourceSignal
| `- error: cannot find type 'DispatchSourceSignal' in scope
150 | var handlers = [DelayedSigaction: DelayedSigactionHandler]()
151 |
/host/spi-builder-workspace/Sources/SignalHandling/DelayedSigaction/SigactionDelayer_Unsig.swift:154:45: error: cannot find 'DispatchQueue' in scope
152 | }
153 |
154 | private static let signalProcessingQueue = DispatchQueue(label: "com.xcode-actions.unsigactioned-signals-processing-queue")
| `- error: cannot find 'DispatchQueue' in scope
155 |
156 | /* Both these vars are only modified/read on the signal processing queue. */
[410/416] Compiling SignalHandling Utils.swift
[411/416] 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:133:21: error: cannot find 'NSConditionLock' in scope
131 | }
132 |
133 | static let lock = NSConditionLock(condition: Self.nothingToDo.rawValue)
| `- error: cannot find 'NSConditionLock' in scope
134 |
135 | /* Read/write is protected by the lock above. */
/host/spi-builder-workspace/Sources/SignalHandling/DelayedSigaction/SigactionDelayer_Unsig.swift:149:23: error: cannot find type 'DispatchSourceSignal' in scope
147 | var originalSigaction: Sigaction
148 |
149 | var dispatchSource: DispatchSourceSignal
| `- error: cannot find type 'DispatchSourceSignal' in scope
150 | var handlers = [DelayedSigaction: DelayedSigactionHandler]()
151 |
/host/spi-builder-workspace/Sources/SignalHandling/DelayedSigaction/SigactionDelayer_Unsig.swift:154:45: error: cannot find 'DispatchQueue' in scope
152 | }
153 |
154 | private static let signalProcessingQueue = DispatchQueue(label: "com.xcode-actions.unsigactioned-signals-processing-queue")
| `- error: cannot find 'DispatchQueue' in scope
155 |
156 | /* Both these vars are only modified/read on the signal processing queue. */
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Sigaction.swift:48:24: error: cannot find type 'sigaction' in scope
46 | If the handler of the sigaction is `SIG_IGN` or `SIG_DFL`, we check the `sa_flags` not to contains the `SA_SIGINFO` bit.
47 | If they do, we log an error, as this is invalid. */
48 | public init(rawValue: sigaction) {
| `- error: cannot find type 'sigaction' in scope
49 | self.mask = Signal.set(from: rawValue.sa_mask)
50 | self.flags = SigactionFlags(rawValue: rawValue.sa_flags)
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Sigaction.swift:83:23: error: cannot find type 'sigaction' in scope
81 | }
82 |
83 | public var rawValue: sigaction {
| `- error: cannot find type 'sigaction' in scope
84 | if !isValid {
85 | Conf.logger?.warning("Getting sigaction from an invalid Sigaction.")
/host/spi-builder-workspace/Sources/SignalHandling/DelayedSigaction/SigactionDelayer_Unsig.swift:91:21: error: type 'Sigaction' does not conform to protocol 'RawRepresentable'
89 |
90 | - Returns: The previous sigaction if there was an unsigaction registered for the given signal, `nil` otherwise. */
91 | public static func updateOriginalSigaction(for signal: Signal, to sigaction: Sigaction) -> Sigaction? {
| `- error: type 'Sigaction' does not conform to protocol 'RawRepresentable'
92 | return signalProcessingQueue.sync{
93 | let previous = unsigactionedSignals[signal]?.originalSigaction
/host/spi-builder-workspace/Sources/SignalHandling/DelayedSigaction/SigactionDelayer_Unsig.swift:213:31: error: cannot find 'DispatchSource' in scope
211 | }
212 | } else {
213 | let dispatchSourceSignal = DispatchSource.makeSignalSource(signal: signal.rawValue, queue: signalProcessingQueue)
| `- error: cannot find 'DispatchSource' in scope
214 | /* Apparently the dispatchSourceSignal does not need to be weak in the handler because the handler is released when the source is canceled.
215 | * 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:276:16: error: cannot find 'DispatchGroup' in scope
274 | for _ in 0..<count {
275 | let lock = NSLock()
276 | let group = DispatchGroup()
| `- error: cannot find 'DispatchGroup' in scope
277 | nonisolated(unsafe) var runOriginalHandlerFinal = true
278 | for (_, handler) in unsigactionedSignal.handlers {
/host/spi-builder-workspace/Sources/SignalHandling/DelayedSigaction/SigactionDelayer_Unsig.swift:305:15: error: cannot find 'DispatchGroup' in scope
303 |
304 | nonisolated(unsafe) var error: Error?
305 | let group = DispatchGroup()
| `- error: cannot find 'DispatchGroup' in scope
306 | group.enter()
307 | Thread.detachNewThread{
/host/spi-builder-workspace/Sources/SignalHandling/DelayedSigaction/SigactionDelayer_Unsig.swift:307:3: error: cannot find 'Thread' in scope
305 | let group = DispatchGroup()
306 | group.enter()
307 | Thread.detachNewThread{
| `- error: cannot find 'Thread' in scope
308 | Thread.current.name = "com.xcode-actions.unsigactioned-signals-thread"
309 |
/host/spi-builder-workspace/Sources/SignalHandling/DelayedSigaction/SigactionDelayer_Unsig.swift:308:4: error: cannot find 'Thread' in scope
306 | group.enter()
307 | Thread.detachNewThread{
308 | Thread.current.name = "com.xcode-actions.unsigactioned-signals-thread"
| `- error: cannot find 'Thread' in scope
309 |
310 | /* Unblock all signals in this thread. */
/host/spi-builder-workspace/Sources/SignalHandling/DelayedSigaction/SigactionDelayer_Unsig.swift:312:14: error: cannot find 'pthread_sigmask' in scope
310 | /* Unblock all signals in this thread. */
311 | var noSignals = Signal.emptySigset
312 | let ret = pthread_sigmask(SIG_SETMASK, &noSignals, nil /* old signals */)
| `- error: cannot find 'pthread_sigmask' in scope
313 | if ret != 0 {
314 | error = SignalHandlingError.destructiveSystemError(Errno(rawValue: ret))
/host/spi-builder-workspace/Sources/SignalHandling/DelayedSigaction/SigactionDelayer_Unsig.swift:312:30: error: cannot find 'SIG_SETMASK' in scope
310 | /* Unblock all signals in this thread. */
311 | var noSignals = Signal.emptySigset
312 | let ret = pthread_sigmask(SIG_SETMASK, &noSignals, nil /* old signals */)
| `- error: cannot find 'SIG_SETMASK' in scope
313 | if ret != 0 {
314 | error = SignalHandlingError.destructiveSystemError(Errno(rawValue: ret))
/host/spi-builder-workspace/Sources/SignalHandling/DelayedSigaction/SigactionDelayer_Unsig.swift:383:20: error: cannot find 'pthread_self' in scope
381 | * Anyway, we need to reinstall the sigaction handler after the signal has been sent and processed,
382 | * so we need to have some control, which `raise` does not give. */
383 | let thread = pthread_self()
| `- error: cannot find 'pthread_self' in scope
384 | // let killResult = raise(signal.rawValue)
385 | let killResult = pthread_kill(thread, signal.rawValue)
/host/spi-builder-workspace/Sources/SignalHandling/DelayedSigaction/SigactionDelayer_Unsig.swift:385:24: error: cannot find 'pthread_kill' in scope
383 | let thread = pthread_self()
384 | // let killResult = raise(signal.rawValue)
385 | let killResult = pthread_kill(thread, signal.rawValue)
| `- error: cannot find 'pthread_kill' in scope
386 | if killResult != 0 {
387 | completionResult.errorLogs.append(("Cannot send signal to unsigactioned thread.", ["signal": "\(signal)", "kill_result": "\(killResult)"]))
/host/spi-builder-workspace/Sources/SignalHandling/DelayedSigaction/SigactionDelayer_Unsig.swift:391:27: error: cannot find 'pthread_sigmask' in scope
389 |
390 | /* Re-unblock all signals (in case a handler blocked one). */
391 | let sigmaskResult = pthread_sigmask(SIG_SETMASK, &emptyMask, nil)
| `- error: cannot find 'pthread_sigmask' in scope
392 | if sigmaskResult != 0 {
393 | completionResult.errorLogs.append((
/host/spi-builder-workspace/Sources/SignalHandling/DelayedSigaction/SigactionDelayer_Unsig.swift:391:43: error: cannot find 'SIG_SETMASK' in scope
389 |
390 | /* Re-unblock all signals (in case a handler blocked one). */
391 | let sigmaskResult = pthread_sigmask(SIG_SETMASK, &emptyMask, nil)
| `- error: cannot find 'SIG_SETMASK' in scope
392 | if sigmaskResult != 0 {
393 | completionResult.errorLogs.append((
/host/spi-builder-workspace/Sources/SignalHandling/DelayedSigaction/SigactionDelayer_Unsig.swift:391:68: error: 'nil' requires a contextual type
389 |
390 | /* Re-unblock all signals (in case a handler blocked one). */
391 | let sigmaskResult = pthread_sigmask(SIG_SETMASK, &emptyMask, nil)
| `- error: 'nil' requires a contextual type
392 | if sigmaskResult != 0 {
393 | completionResult.errorLogs.append((
[412/416] Compiling SignalHandling SigactionDelayer_Block.swift
/host/spi-builder-workspace/Sources/SignalHandling/DelayedSigaction/SigactionDelayer_Block.swift:180:21: error: cannot find 'NSConditionLock' in scope
178 | }
179 |
180 | static let lock = NSConditionLock(condition: Self.nothingToDo.rawValue)
| `- error: cannot find 'NSConditionLock' in scope
181 |
182 | /* Read/write is protected by the lock above. */
/host/spi-builder-workspace/Sources/SignalHandling/DelayedSigaction/SigactionDelayer_Block.swift:194:23: error: cannot find type 'DispatchSourceSignal' in scope
192 | private struct BlockedSignal {
193 |
194 | var dispatchSource: DispatchSourceSignal
| `- error: cannot find type 'DispatchSourceSignal' in scope
195 | var handlers = [DelayedSigaction: DelayedSigactionHandler]()
196 |
/host/spi-builder-workspace/Sources/SignalHandling/DelayedSigaction/SigactionDelayer_Block.swift:199:45: error: cannot find 'DispatchQueue' in scope
197 | }
198 |
199 | private static let signalProcessingQueue = DispatchQueue(label: "com.xcode-actions.blocked-signals-processing-queue")
| `- error: cannot find 'DispatchQueue' in scope
200 |
201 | /* Only used on the main thread. */
/host/spi-builder-workspace/Sources/SignalHandling/DelayedSigaction/SigactionDelayer_Block.swift:67:11: error: cannot find 'Thread' in scope
65 | - Important: You should not use `pthread_sigmask` to sigprocmask (nor anything to unblock signals) after calling this method. */
66 | public static func bootstrap(for signals: Set<Signal>) throws {
67 | assert(!Thread.isMultiThreaded())
| `- error: cannot find 'Thread' in scope
68 | guard !bootstrapDone else {
69 | fatalError("DelayedSigaction can be bootstrapped only once")
/host/spi-builder-workspace/Sources/SignalHandling/DelayedSigaction/SigactionDelayer_Block.swift:73:13: error: cannot find 'pthread_sigmask' in scope
71 |
72 | var signalsSigset = Signal.sigset(from: signals)
73 | let ret = pthread_sigmask(SIG_SETMASK, &signalsSigset, nil /* old signals */)
| `- error: cannot find 'pthread_sigmask' in scope
74 | if ret != 0 {
75 | throw SignalHandlingError.nonDestructiveSystemError(Errno(rawValue: ret))
/host/spi-builder-workspace/Sources/SignalHandling/DelayedSigaction/SigactionDelayer_Block.swift:73:29: error: cannot find 'SIG_SETMASK' in scope
71 |
72 | var signalsSigset = Signal.sigset(from: signals)
73 | let ret = pthread_sigmask(SIG_SETMASK, &signalsSigset, nil /* old signals */)
| `- error: cannot find 'SIG_SETMASK' in scope
74 | if ret != 0 {
75 | throw SignalHandlingError.nonDestructiveSystemError(Errno(rawValue: ret))
/host/spi-builder-workspace/Sources/SignalHandling/DelayedSigaction/SigactionDelayer_Block.swift:73:58: error: 'nil' requires a contextual type
71 |
72 | var signalsSigset = Signal.sigset(from: signals)
73 | let ret = pthread_sigmask(SIG_SETMASK, &signalsSigset, nil /* old signals */)
| `- error: 'nil' requires a contextual type
74 | if ret != 0 {
75 | throw SignalHandlingError.nonDestructiveSystemError(Errno(rawValue: ret))
/host/spi-builder-workspace/Sources/SignalHandling/DelayedSigaction/SigactionDelayer_Block.swift:79:15: error: cannot find 'DispatchGroup' in scope
77 |
78 | nonisolated(unsafe) var error: Error?
79 | let group = DispatchGroup()
| `- error: cannot find 'DispatchGroup' in scope
80 | group.enter()
81 | Thread.detachNewThread{
/host/spi-builder-workspace/Sources/SignalHandling/DelayedSigaction/SigactionDelayer_Block.swift:81:3: error: cannot find 'Thread' in scope
79 | let group = DispatchGroup()
80 | group.enter()
81 | Thread.detachNewThread{
| `- error: cannot find 'Thread' in scope
82 | Thread.current.name = "com.xcode-actions.blocked-signals-thread"
83 |
/host/spi-builder-workspace/Sources/SignalHandling/DelayedSigaction/SigactionDelayer_Block.swift:82:4: error: cannot find 'Thread' in scope
80 | group.enter()
81 | Thread.detachNewThread{
82 | Thread.current.name = "com.xcode-actions.blocked-signals-thread"
| `- error: cannot find 'Thread' in scope
83 |
84 | /* Unblock all signals in this thread. */
/host/spi-builder-workspace/Sources/SignalHandling/DelayedSigaction/SigactionDelayer_Block.swift:86:14: error: cannot find 'pthread_sigmask' in scope
84 | /* Unblock all signals in this thread. */
85 | var noSignals = Signal.emptySigset
86 | let ret = pthread_sigmask(SIG_SETMASK, &noSignals, nil /* old signals */)
| `- error: cannot find 'pthread_sigmask' in scope
87 | if ret != 0 {
88 | error = SignalHandlingError.destructiveSystemError(Errno(rawValue: ret))
/host/spi-builder-workspace/Sources/SignalHandling/DelayedSigaction/SigactionDelayer_Block.swift:86:30: error: cannot find 'SIG_SETMASK' in scope
84 | /* Unblock all signals in this thread. */
85 | var noSignals = Signal.emptySigset
86 | let ret = pthread_sigmask(SIG_SETMASK, &noSignals, nil /* old signals */)
| `- error: cannot find 'SIG_SETMASK' in scope
87 | if ret != 0 {
88 | error = SignalHandlingError.destructiveSystemError(Errno(rawValue: ret))
/host/spi-builder-workspace/Sources/SignalHandling/DelayedSigaction/SigactionDelayer_Block.swift:253:31: error: cannot find 'DispatchSource' in scope
251 | try executeOnThread(.block(signal))
252 |
253 | let dispatchSourceSignal = DispatchSource.makeSignalSource(signal: signal.rawValue, queue: signalProcessingQueue)
| `- error: cannot find 'DispatchSource' in scope
254 | /* Apparently the dispatchSourceSignal does not need to be weak in the handler because the handler is released when the source is canceled.
255 | * 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:334:16: error: cannot find 'DispatchGroup' in scope
332 | for _ in 0..<count {
333 | let lock = NSLock()
334 | let group = DispatchGroup()
| `- error: cannot find 'DispatchGroup' in scope
335 | nonisolated(unsafe) var runOriginalHandlerFinal = true
336 | for (_, handler) in blockedSignal.handlers {
/host/spi-builder-workspace/Sources/SignalHandling/DelayedSigaction/SigactionDelayer_Block.swift:391:17: error: cannot find 'pthread_sigmask' in scope
389 | // loggerLessThreadSafeDebugLog("🧵 Processing block action for \(signal)…")
390 | var sigset = signal.sigset
391 | let ret = pthread_sigmask(SIG_BLOCK, &sigset, nil /* old signals */)
| `- error: cannot find 'pthread_sigmask' in scope
392 | if ret != 0 {
393 | throw SignalHandlingError.destructiveSystemError(Errno(rawValue: ret))
/host/spi-builder-workspace/Sources/SignalHandling/DelayedSigaction/SigactionDelayer_Block.swift:391:33: error: cannot find 'SIG_BLOCK' in scope
389 | // loggerLessThreadSafeDebugLog("🧵 Processing block action for \(signal)…")
390 | var sigset = signal.sigset
391 | let ret = pthread_sigmask(SIG_BLOCK, &sigset, nil /* old signals */)
| `- error: cannot find 'SIG_BLOCK' in scope
392 | if ret != 0 {
393 | throw SignalHandlingError.destructiveSystemError(Errno(rawValue: ret))
/host/spi-builder-workspace/Sources/SignalHandling/DelayedSigaction/SigactionDelayer_Block.swift:391:53: error: 'nil' requires a contextual type
389 | // loggerLessThreadSafeDebugLog("🧵 Processing block action for \(signal)…")
390 | var sigset = signal.sigset
391 | let ret = pthread_sigmask(SIG_BLOCK, &sigset, nil /* old signals */)
| `- error: 'nil' requires a contextual type
392 | if ret != 0 {
393 | throw SignalHandlingError.destructiveSystemError(Errno(rawValue: ret))
/host/spi-builder-workspace/Sources/SignalHandling/DelayedSigaction/SigactionDelayer_Block.swift:399:17: error: cannot find 'pthread_sigmask' in scope
397 | // loggerLessThreadSafeDebugLog("🧵 Processing unblock action for \(signal)…")
398 | var sigset = signal.sigset
399 | let ret = pthread_sigmask(SIG_UNBLOCK, &sigset, nil /* old signals */)
| `- error: cannot find 'pthread_sigmask' in scope
400 | if ret != 0 {
401 | throw SignalHandlingError.destructiveSystemError(Errno(rawValue: ret))
/host/spi-builder-workspace/Sources/SignalHandling/DelayedSigaction/SigactionDelayer_Block.swift:399:33: error: cannot find 'SIG_UNBLOCK' in scope
397 | // loggerLessThreadSafeDebugLog("🧵 Processing unblock action for \(signal)…")
398 | var sigset = signal.sigset
399 | let ret = pthread_sigmask(SIG_UNBLOCK, &sigset, nil /* old signals */)
| `- error: cannot find 'SIG_UNBLOCK' in scope
400 | if ret != 0 {
401 | throw SignalHandlingError.destructiveSystemError(Errno(rawValue: ret))
/host/spi-builder-workspace/Sources/SignalHandling/DelayedSigaction/SigactionDelayer_Block.swift:399:55: error: 'nil' requires a contextual type
397 | // loggerLessThreadSafeDebugLog("🧵 Processing unblock action for \(signal)…")
398 | var sigset = signal.sigset
399 | let ret = pthread_sigmask(SIG_UNBLOCK, &sigset, nil /* old signals */)
| `- error: 'nil' requires a contextual type
400 | if ret != 0 {
401 | throw SignalHandlingError.destructiveSystemError(Errno(rawValue: ret))
/host/spi-builder-workspace/Sources/SignalHandling/DelayedSigaction/SigactionDelayer_Block.swift:411:18: error: cannot find 'pthread_sigmask' in scope
409 | /* We update the sigset only when signal is not ignored
410 | * because it is used only in that case and this is getting the current sigmask can fail. */
411 | let ret = pthread_sigmask(SIG_SETMASK, nil /* new signals */, &sigset)
| `- error: cannot find 'pthread_sigmask' in scope
412 | if ret != 0 {
413 | throw SignalHandlingError.nonDestructiveSystemError(Errno(rawValue: ret))
/host/spi-builder-workspace/Sources/SignalHandling/DelayedSigaction/SigactionDelayer_Block.swift:411:34: error: cannot find 'SIG_SETMASK' in scope
409 | /* We update the sigset only when signal is not ignored
410 | * because it is used only in that case and this is getting the current sigmask can fail. */
411 | let ret = pthread_sigmask(SIG_SETMASK, nil /* new signals */, &sigset)
| `- error: cannot find 'SIG_SETMASK' in scope
412 | if ret != 0 {
413 | throw SignalHandlingError.nonDestructiveSystemError(Errno(rawValue: ret))
/host/spi-builder-workspace/Sources/SignalHandling/DelayedSigaction/SigactionDelayer_Block.swift:411:47: error: 'nil' requires a contextual type
409 | /* We update the sigset only when signal is not ignored
410 | * because it is used only in that case and this is getting the current sigmask can fail. */
411 | let ret = pthread_sigmask(SIG_SETMASK, nil /* new signals */, &sigset)
| `- error: 'nil' requires a contextual type
412 | if ret != 0 {
413 | throw SignalHandlingError.nonDestructiveSystemError(Errno(rawValue: ret))
/host/spi-builder-workspace/Sources/SignalHandling/DelayedSigaction/SigactionDelayer_Block.swift:415:8: error: cannot find 'sigdelset' in scope
413 | throw SignalHandlingError.nonDestructiveSystemError(Errno(rawValue: ret))
414 | }
415 | sigdelset(&sigset, signal.rawValue)
| `- error: cannot find 'sigdelset' in scope
416 | }
417 | /* Let’s get the pending signals on this thread. */
/host/spi-builder-workspace/Sources/SignalHandling/DelayedSigaction/SigactionDelayer_Block.swift:419:17: error: cannot find 'sigpending' in scope
417 | /* Let’s get the pending signals on this thread. */
418 | var pendingSignals = sigset_t()
419 | let ret = sigpending(&pendingSignals)
| `- error: cannot find 'sigpending' in scope
420 | /* If sigpending failed, we assume the signal is pending. */
421 | if ret != 0 || !Signal.set(from: pendingSignals).contains(signal) {
/host/spi-builder-workspace/Sources/SignalHandling/DelayedSigaction/SigactionDelayer_Block.swift:425:8: error: cannot find 'pthread_kill' in scope
423 | * Which mean it is probably pending on some other thread, forever. */
424 | // loggerLessThreadSafeDebugLog("🧵 Resending signal to manager thread \(signal)…")
425 | pthread_kill(pthread_self(), signal.rawValue)
| `- error: cannot find 'pthread_kill' in scope
426 | }
427 | if !isIgnored {
/host/spi-builder-workspace/Sources/SignalHandling/DelayedSigaction/SigactionDelayer_Block.swift:425:21: error: cannot find 'pthread_self' in scope
423 | * Which mean it is probably pending on some other thread, forever. */
424 | // loggerLessThreadSafeDebugLog("🧵 Resending signal to manager thread \(signal)…")
425 | pthread_kill(pthread_self(), signal.rawValue)
| `- error: cannot find 'pthread_self' in scope
426 | }
427 | if !isIgnored {
/host/spi-builder-workspace/Sources/SignalHandling/DelayedSigaction/SigactionDelayer_Block.swift:431:8: error: cannot find 'sigsuspend' in scope
429 | * I know there is a race condition. */
430 | // loggerLessThreadSafeDebugLog("🧵 Calling sigsuspend for \(signal)…")
431 | sigsuspend(&sigset)
| `- error: cannot find 'sigsuspend' in scope
432 | }
433 |
/host/spi-builder-workspace/Sources/SignalHandling/DelayedSigaction/SigactionDelayer_Block.swift:437:17: error: cannot find 'pthread_sigmask' in scope
435 | // loggerLessThreadSafeDebugLog("🧵 Processing drop action for \(signal)…")
436 | var sigset = sigset_t()
437 | let ret = pthread_sigmask(SIG_SETMASK, nil /* new signals */, &sigset)
| `- error: cannot find 'pthread_sigmask' in scope
438 | if ret != 0 {
439 | throw SignalHandlingError.nonDestructiveSystemError(Errno(rawValue: ret))
/host/spi-builder-workspace/Sources/SignalHandling/DelayedSigaction/SigactionDelayer_Block.swift:437:33: error: cannot find 'SIG_SETMASK' in scope
435 | // loggerLessThreadSafeDebugLog("🧵 Processing drop action for \(signal)…")
436 | var sigset = sigset_t()
437 | let ret = pthread_sigmask(SIG_SETMASK, nil /* new signals */, &sigset)
| `- error: cannot find 'SIG_SETMASK' in scope
438 | if ret != 0 {
439 | throw SignalHandlingError.nonDestructiveSystemError(Errno(rawValue: ret))
/host/spi-builder-workspace/Sources/SignalHandling/DelayedSigaction/SigactionDelayer_Block.swift:437:46: error: 'nil' requires a contextual type
435 | // loggerLessThreadSafeDebugLog("🧵 Processing drop action for \(signal)…")
436 | var sigset = sigset_t()
437 | let ret = pthread_sigmask(SIG_SETMASK, nil /* new signals */, &sigset)
| `- error: 'nil' requires a contextual type
438 | if ret != 0 {
439 | throw SignalHandlingError.nonDestructiveSystemError(Errno(rawValue: ret))
/host/spi-builder-workspace/Sources/SignalHandling/DelayedSigaction/SigactionDelayer_Block.swift:441:7: error: cannot find 'sigdelset' in scope
439 | throw SignalHandlingError.nonDestructiveSystemError(Errno(rawValue: ret))
440 | }
441 | sigdelset(&sigset, signal.rawValue)
| `- error: cannot find 'sigdelset' in scope
442 |
443 | let oldAction = try Sigaction.ignoreAction.install(on: signal, revertIfIgnored: false, updateUnsigRegistrations: false)
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Sigaction.swift:48:24: error: cannot find type 'sigaction' in scope
46 | If the handler of the sigaction is `SIG_IGN` or `SIG_DFL`, we check the `sa_flags` not to contains the `SA_SIGINFO` bit.
47 | If they do, we log an error, as this is invalid. */
48 | public init(rawValue: sigaction) {
| `- error: cannot find type 'sigaction' in scope
49 | self.mask = Signal.set(from: rawValue.sa_mask)
50 | self.flags = SigactionFlags(rawValue: rawValue.sa_flags)
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Sigaction.swift:83:23: error: cannot find type 'sigaction' in scope
81 | }
82 |
83 | public var rawValue: sigaction {
| `- error: cannot find type 'sigaction' in scope
84 | if !isValid {
85 | Conf.logger?.warning("Getting sigaction from an invalid Sigaction.")
/host/spi-builder-workspace/Sources/SignalHandling/DelayedSigaction/SigactionDelayer_Block.swift:443:7: error: type 'Sigaction' does not conform to protocol 'RawRepresentable'
441 | sigdelset(&sigset, signal.rawValue)
442 |
443 | let oldAction = try Sigaction.ignoreAction.install(on: signal, revertIfIgnored: false, updateUnsigRegistrations: false)
| `- error: type 'Sigaction' does not conform to protocol 'RawRepresentable'
444 | /* Will not hurt, the signal is ignore anyway (yes, there is a race condition, I know). */
445 | pthread_kill(pthread_self(), signal.rawValue)
/host/spi-builder-workspace/Sources/SignalHandling/DelayedSigaction/SigactionDelayer_Block.swift:445:7: error: cannot find 'pthread_kill' in scope
443 | let oldAction = try Sigaction.ignoreAction.install(on: signal, revertIfIgnored: false, updateUnsigRegistrations: false)
444 | /* Will not hurt, the signal is ignore anyway (yes, there is a race condition, I know). */
445 | pthread_kill(pthread_self(), signal.rawValue)
| `- error: cannot find 'pthread_kill' in scope
446 | /* No sigsuspend. Would block because signal is ignored. */
447 | if let oldAction = oldAction {
/host/spi-builder-workspace/Sources/SignalHandling/DelayedSigaction/SigactionDelayer_Block.swift:445:20: error: cannot find 'pthread_self' in scope
443 | let oldAction = try Sigaction.ignoreAction.install(on: signal, revertIfIgnored: false, updateUnsigRegistrations: false)
444 | /* Will not hurt, the signal is ignore anyway (yes, there is a race condition, I know). */
445 | pthread_kill(pthread_self(), signal.rawValue)
| `- error: cannot find 'pthread_self' in scope
446 | /* No sigsuspend. Would block because signal is ignored. */
447 | if let oldAction = oldAction {
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-1":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1
wasm-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:7e37457820e5f17452a98118754f345f2619722c485f2db0d8b666940a83afd2
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest
[0/1] Planning build
[1/1] Compiling plugin GenerateManual
Building for debugging...
[1/30] Write swift-version-24593BA9C3E375BF.txt
[3/48] Emitting module SwiftSyntax601
[4/48] Compiling SwiftSyntax601 Empty.swift
[5/49] Compiling SwiftSyntax510 Empty.swift
[6/49] Emitting module SwiftSyntax510
[7/49] Emitting module SwiftSyntax600
[8/49] Emitting module SwiftSyntax509
[9/49] Compiling SwiftSyntax509 Empty.swift
[10/49] Compiling SwiftSyntax600 Empty.swift
[11/52] Compiling Logging Locks.swift
[13/52] Compiling ServiceContextModule ServiceContextKey.swift
[15/51] Compiling Logging MetadataProvider.swift
[18/49] Emitting module ServiceContextModule
[19/49] Compiling ServiceContextModule ServiceContext.swift
[21/112] Emitting module ArgumentParserToolInfo
[22/112] Compiling ArgumentParserToolInfo ToolInfo.swift
[24/124] Compiling Logging Logging.swift
[25/124] Emitting module Logging
[26/124] Compiling Logging LogHandler.swift
[28/159] Compiling CLTLogger DummySendable.swift
[29/159] Compiling CLTLogger Emoji.swift
[30/160] Compiling CLTLogger EmojiSet.swift
[31/160] Compiling CLTLogger String+Utils.swift
[32/160] Emitting module CLTLogger
[33/160] Compiling CLTLogger CLTLogger+WithSendable.swift
[34/160] Compiling CLTLogger CLTLogger.swift
[35/160] Compiling ArgumentParser ArgumentVisibility.swift
[36/160] Compiling ArgumentParser CompletionKind.swift
[37/160] Compiling ArgumentParser Errors.swift
[38/160] Compiling ArgumentParser Flag.swift
[39/160] Compiling ArgumentParser NameSpecification.swift
[40/160] Compiling ArgumentParser Option.swift
[41/165] Compiling CLTLogger OutputEnvironment.swift
[42/165] Compiling CLTLogger NSLock+Linux.swift
[43/165] Compiling CLTLogger SGR.swift
[45/165] Compiling ArgumentParser OptionGroup.swift
[46/165] Compiling ArgumentParser AsyncParsableCommand.swift
[47/165] Compiling ArgumentParser CommandConfiguration.swift
[48/165] Compiling ArgumentParser CommandGroup.swift
[49/165] Compiling ArgumentParser EnumerableFlag.swift
[50/165] Compiling ArgumentParser ExpressibleByArgument.swift
[51/165] Compiling ArgumentParser ParsableArguments.swift
[52/165] Compiling ArgumentParser ParsableArgumentsValidation.swift
[53/165] Compiling ArgumentParser ParsableCommand.swift
[54/165] Compiling ArgumentParser ArgumentDecoder.swift
[55/165] Compiling ArgumentParser CollectionExtensions.swift
[56/165] Compiling ArgumentParser Platform.swift
[57/165] Compiling ArgumentParser SequenceExtensions.swift
[58/165] Compiling ArgumentParser StringExtensions.swift
[59/165] Compiling ArgumentParser Tree.swift
[62/165] Compiling ArgumentParser FishCompletionsGenerator.swift
[63/165] Compiling ArgumentParser ZshCompletionsGenerator.swift
[64/165] Compiling ArgumentParser Argument.swift
[65/165] Compiling ArgumentParser ArgumentHelp.swift
[66/165] Emitting module ArgumentParser
[67/165] Compiling ArgumentParser ArgumentDefinition.swift
[68/165] Compiling ArgumentParser ArgumentSet.swift
[69/165] Compiling ArgumentParser CommandParser.swift
[70/165] Compiling ArgumentParser InputKey.swift
[71/165] Compiling ArgumentParser InputOrigin.swift
[72/165] Compiling ArgumentParser Name.swift
[73/165] Compiling ArgumentParser Parsed.swift
[74/165] Compiling ArgumentParser ParsedValues.swift
[75/165] Compiling ArgumentParser ParserError.swift
[76/165] Compiling ArgumentParser SplitArguments.swift
[77/165] Compiling ArgumentParser DumpHelpGenerator.swift
[78/165] Compiling ArgumentParser HelpCommand.swift
[79/165] Compiling ArgumentParser HelpGenerator.swift
[80/165] Compiling ArgumentParser MessageInfo.swift
[81/165] Compiling ArgumentParser UsageGenerator.swift
[101/174] Emitting module SwiftSyntax
[102/174] Compiling SwiftSyntax SyntaxEnum.swift
[103/174] Compiling SwiftSyntax SyntaxKind.swift
[104/174] Compiling SwiftSyntax SyntaxRewriter.swift
[105/174] Compiling SwiftSyntax SyntaxTraits.swift
[106/174] Compiling SwiftSyntax SyntaxVisitor.swift
[107/174] Compiling SwiftSyntax TokenKind.swift
[108/174] Compiling SwiftSyntax Tokens.swift
[109/174] Compiling SwiftSyntax TriviaPieces.swift
[110/174] Compiling SwiftSyntax RawSyntaxNodesAB.swift
[111/174] Compiling SwiftSyntax RawSyntaxNodesC.swift
[112/174] Compiling SwiftSyntax RawSyntaxNodesD.swift
[113/174] Compiling SwiftSyntax RawSyntaxNodesEF.swift
[114/174] Compiling SwiftSyntax RawSyntaxNodesGHI.swift
[115/174] Compiling SwiftSyntax RawSyntaxNodesJKLMN.swift
[116/174] Compiling SwiftSyntax RawSyntaxNodesOP.swift
[117/174] Compiling SwiftSyntax RawSyntaxNodesQRS.swift
[118/174] Compiling SwiftSyntax RawSyntaxNodesTUVWXYZ.swift
[119/174] Compiling SwiftSyntax RawSyntaxValidation.swift
[120/174] Compiling SwiftSyntax SyntaxNodesAB.swift
[121/174] Compiling SwiftSyntax SyntaxNodesC.swift
[122/174] Compiling SwiftSyntax SyntaxNodesD.swift
[123/174] Compiling SwiftSyntax SyntaxNodesEF.swift
[124/174] Compiling SwiftSyntax SyntaxNodesGHI.swift
[125/174] Compiling SwiftSyntax SyntaxNodesJKLMN.swift
[126/174] Compiling SwiftSyntax SyntaxNodesOP.swift
[127/174] Compiling SwiftSyntax SyntaxNodesQRS.swift
[128/174] Compiling SwiftSyntax SyntaxNodesTUVWXYZ.swift
[144/174] Compiling SwiftSyntax SyntaxAnyVisitor.swift
[145/174] Compiling SwiftSyntax SyntaxBaseNodes.swift
[146/174] Compiling SwiftSyntax SyntaxCollections.swift
[157/191] Compiling SwiftBasicFormat Syntax+Extensions.swift
[158/191] Compiling SwiftBasicFormat SyntaxProtocol+Formatted.swift
[159/191] Compiling SwiftBasicFormat Trivia+FormatExtensions.swift
[160/209] Compiling SwiftDiagnostics Message.swift
[161/212] Compiling SwiftDiagnostics GroupedDiagnostics.swift
[162/233] Compiling SwiftParser RegexLiteralLexer.swift
[163/233] Compiling SwiftParser UnicodeScalarExtensions.swift
[164/233] Emitting module SwiftDiagnostics
[165/233] Compiling SwiftParser LexemeSequence.swift
[166/233] Compiling SwiftParser Lexer.swift
[167/233] Compiling SwiftDiagnostics DiagnosticsFormatter.swift
[168/233] Compiling SwiftDiagnostics DiagnosticDecorator.swift
[169/233] Compiling SwiftDiagnostics FixIt.swift
[170/233] Compiling SwiftBasicFormat Indenter.swift
[171/233] Compiling SwiftBasicFormat InferIndentation.swift
[172/233] Compiling SwiftDiagnostics Note.swift
[174/233] Emitting module SwiftBasicFormat
[175/233] Compiling SwiftBasicFormat BasicFormat.swift
[177/233] Emitting module SwiftParser
[182/238] Compiling SwiftParser Lookahead.swift
[183/238] Compiling SwiftParser LoopProgressCondition.swift
[184/238] Compiling SwiftParser Modifiers.swift
[185/238] Compiling SwiftParser Names.swift
[186/238] Compiling SwiftParser Nominals.swift
[187/238] Compiling SwiftParser Parameters.swift
[188/238] Compiling SwiftParser ParseSourceFile.swift
[189/238] Compiling SwiftParser Parser.swift
[190/238] Compiling SwiftParser TokenSpec.swift
[191/238] Compiling SwiftParser TokenSpecSet.swift
[192/238] Compiling SwiftParser TopLevel.swift
[193/238] Compiling SwiftParser TriviaParser.swift
[194/238] Compiling SwiftParser Types.swift
[195/238] Compiling SwiftParser SwiftParserCompatibility.swift
[196/238] Compiling SwiftParser SwiftVersion.swift
[197/238] Compiling SwiftParser SyntaxUtils.swift
[198/238] Compiling SwiftParser TokenConsumer.swift
[199/238] Compiling SwiftParser TokenPrecedence.swift
[200/238] Compiling SwiftParser Patterns.swift
[201/238] Compiling SwiftParser Recovery.swift
[202/238] Compiling SwiftParser Specifiers.swift
[203/238] Compiling SwiftParser Statements.swift
[204/238] Compiling SwiftParser StringLiteralRepresentedLiteralValue.swift
[205/238] Compiling SwiftParser StringLiterals.swift
[206/238] Compiling SwiftParser Attributes.swift
[207/238] Compiling SwiftParser Availability.swift
[208/238] Compiling SwiftParser CharacterInfo.swift
[209/238] Compiling SwiftParser CollectionNodes+Parsable.swift
[210/238] Compiling SwiftParser Declarations.swift
[211/238] Compiling SwiftParser Directives.swift
[212/238] Compiling SwiftParser ExpressionInterpretedAsVersionTuple.swift
[213/238] Compiling SwiftParser Expressions.swift
[214/238] Compiling SwiftParser IncrementalParseTransition.swift
[215/238] Compiling SwiftParser IsValidIdentifier.swift
[216/238] Compiling SwiftParser Cursor.swift
[217/238] Compiling SwiftParser Lexeme.swift
[218/238] Compiling SwiftParser ExperimentalFeatures.swift
[219/238] Compiling SwiftParser IsLexerClassified.swift
[220/238] Compiling SwiftParser LayoutNodes+Parsable.swift
[221/238] Compiling SwiftParser Parser+TokenSpecSet.swift
[222/238] Compiling SwiftParser TokenSpecStaticMembers.swift
[224/261] Compiling SwiftOperators PrecedenceGroup.swift
[225/261] Compiling SwiftOperators PrecedenceGraph.swift
[226/262] Compiling SwiftOperators OperatorTable.swift
[227/262] Compiling SwiftOperators OperatorTable+Semantics.swift
[228/262] Compiling SwiftParserDiagnostics SyntaxKindNameForDiagnostics.swift
[229/263] Compiling SwiftOperators SyntaxSynthesis.swift
[230/263] Compiling SwiftParserDiagnostics TokenNameForDiagnostics.swift
[231/263] Compiling SwiftParserDiagnostics ChildNameForDiagnostics.swift
[232/263] Emitting module SwiftOperators
[233/263] Compiling SwiftParserDiagnostics MissingNodesError.swift
[234/263] Compiling SwiftParserDiagnostics MissingTokenError.swift
[235/263] Compiling SwiftParserDiagnostics DiagnosticExtensions.swift
[236/263] Compiling SwiftParserDiagnostics LexerDiagnosticMessages.swift
[237/263] Compiling SwiftOperators OperatorTable+Folding.swift
[238/264] Compiling SwiftParserDiagnostics SyntaxExtensions.swift
[239/264] Compiling SwiftParserDiagnostics Utils.swift
[241/263] Compiling SwiftParserDiagnostics ParserDiagnosticMessages.swift
[242/263] Compiling SwiftParserDiagnostics PresenceUtils.swift
[247/263] Emitting module SwiftParserDiagnostics
[248/263] Compiling SwiftParserDiagnostics MultiLineStringLiteralDiagnosticsGenerator.swift
[249/263] Compiling SwiftParserDiagnostics ParseDiagnosticsGenerator.swift
[251/278] Compiling SwiftSyntaxBuilder Indenter.swift
[252/278] Compiling SwiftSyntaxBuilder ListBuilder.swift
[253/278] Compiling SwiftSyntaxBuilder Syntax+StringInterpolation.swift
[254/278] Compiling SwiftSyntaxBuilder SyntaxNodeWithBody.swift
[255/279] Emitting module SwiftSyntaxBuilder
[256/279] Compiling SwiftSyntaxBuilder WithTrailingCommaSyntax+EnsuringTrailingComma.swift
[257/279] Compiling SwiftSyntaxBuilder BuildableNodes.swift
[258/279] Compiling SwiftSyntaxBuilder SyntaxParsable+ExpressibleByStringInterpolation.swift
[259/279] Compiling SwiftSyntaxBuilder ValidatingSyntaxNodes.swift
[260/279] Compiling SwiftSyntaxBuilder RenamedChildrenBuilderCompatibility.swift
[261/279] Compiling SwiftSyntaxBuilder ResultBuilders.swift
[262/279] Compiling SwiftSyntaxBuilder ConvenienceInitializers.swift
[263/279] Compiling SwiftSyntaxBuilder DeclSyntaxParseable.swift
[264/279] Compiling SwiftSyntaxBuilder ResultBuilderExtensions.swift
[265/279] Compiling SwiftSyntaxBuilder SwiftSyntaxBuilderCompatibility.swift
[266/279] Compiling SwiftSyntaxBuilder SyntaxExpressibleByStringInterpolationConformances.swift
[268/296] Emitting module SwiftSyntaxMacros
[269/298] Compiling SwiftSyntaxMacros CodeItemMacro.swift
[270/298] Compiling SwiftSyntaxMacros DeclarationMacro.swift
[271/298] Compiling SwiftSyntaxMacros FreestandingMacro.swift
[272/298] Compiling SwiftSyntaxMacros Macro+Format.swift
[273/298] Compiling SwiftSyntaxMacros AccessorMacro.swift
[274/298] Compiling SwiftSyntaxMacros AttachedMacro.swift
[275/298] Compiling SwiftSyntaxMacros BodyMacro.swift
[276/298] Compiling SwiftSyntaxMacros Macro.swift
[277/298] Compiling SwiftSyntaxMacros MemberAttributeMacro.swift
[278/298] Compiling SwiftSyntaxMacros MemberMacro.swift
[279/298] Compiling SwiftSyntaxMacros PeerMacro.swift
[280/298] Compiling SwiftSyntaxMacros AbstractSourceLocation.swift
[281/298] Compiling SwiftSyntaxMacros MacroExpansionContext.swift
[282/298] Compiling SwiftSyntaxMacros MacroExpansionDiagnosticMessages.swift
[283/298] Compiling SwiftSyntaxMacros ExpressionMacro.swift
[284/298] Compiling SwiftSyntaxMacros ExtensionMacro.swift
[285/298] Compiling SwiftSyntaxMacros PreambleMacro.swift
[286/298] Compiling SwiftSyntaxMacros Syntax+LexicalContext.swift
[288/307] Compiling SwiftSyntaxMacroExpansion MacroSpec.swift
[289/308] Compiling SwiftSyntaxMacroExpansion IndentationUtils.swift
[290/308] Emitting module SwiftSyntaxMacroExpansion
[291/308] Compiling SwiftSyntaxMacroExpansion BasicMacroExpansionContext.swift
[292/308] Compiling SwiftSyntaxMacroExpansion FunctionParameterUtils.swift
[293/308] Compiling SwiftSyntaxMacroExpansion MacroExpansion.swift
[294/308] Compiling SwiftSyntaxMacroExpansion MacroArgument.swift
[295/308] Compiling SwiftSyntaxMacroExpansion MacroExpansionDiagnosticMessages.swift
[296/308] Compiling SwiftSyntaxMacroExpansion MacroReplacement.swift
[297/308] Compiling SwiftSyntaxMacroExpansion MacroSystem.swift
[299/320] Compiling SwiftCompilerPluginMessageHandling PluginMacroExpansionContext.swift
[300/320] Compiling SwiftCompilerPluginMessageHandling CompilerPluginMessageHandler.swift
[301/320] Compiling SwiftCompilerPluginMessageHandling Diagnostics.swift
[302/321] Compiling SwiftCompilerPluginMessageHandling PluginMessageCompatibility.swift
[303/321] Compiling SwiftCompilerPluginMessageHandling LRUCache.swift
[304/321] Compiling SwiftCompilerPluginMessageHandling Macros.swift
[305/321] Compiling SwiftCompilerPluginMessageHandling PluginMessages.swift
[306/321] Emitting module SwiftCompilerPluginMessageHandling
[307/321] Compiling SwiftCompilerPluginMessageHandling StandardIOMessageConnection.swift
[308/321] Compiling SwiftCompilerPluginMessageHandling JSONDecoding.swift
[309/321] Compiling SwiftCompilerPluginMessageHandling JSONEncoding.swift
[310/321] Compiling SwiftCompilerPluginMessageHandling CodingUtilities.swift
[311/321] Compiling SwiftCompilerPluginMessageHandling JSON.swift
[313/323] Compiling SwiftCompilerPlugin CompilerPlugin.swift
[314/323] Emitting module SwiftCompilerPlugin
[316/331] Compiling GlobalConfMacros Entrypoint.swift
[317/332] Compiling GlobalConfMacros Optional+Utils.swift
[318/332] Compiling GlobalConfMacros DeclareConfNamespaceMacro.swift
[319/332] Compiling GlobalConfMacros LabeledExprSyntax+Utils.swift
[320/332] Compiling GlobalConfMacros DeclareConfMacro.swift
[321/332] Compiling GlobalConfMacros Errors.swift
[322/332] Compiling GlobalConfMacros DeclareConfAccessorMacro.swift
[323/332] Emitting module GlobalConfMacros
[324/332] Compiling GlobalConfMacros SimpleDiagnosticMessage.swift
[325/332] Write Objects.LinkFileList
[326/332] Linking GlobalConfMacros-tool
[328/354] Compiling GlobalConfModule InjectedConf.swift
[329/354] Compiling GlobalConfModule 1-ConfKey.swift
[330/354] Compiling GlobalConfModule 2-ServiceKey.swift
[331/356] Compiling GlobalConfModule AutoInjectable.swift
[332/356] Compiling GlobalConfModule AutoInjectableMainActor.swift
[333/356] Compiling GlobalConfModule InjectedConf+AutoInjectable.swift
[334/356] Compiling GlobalConfModule InjectedConf+AutoInjectableMainActor.swift
[335/356] Compiling GlobalConfModule InjectedConf+ConfKey.swift
[336/356] Compiling GlobalConfModule InjectedConf+ConfKeyMainActor.swift
[337/356] Compiling GlobalConfModule ConfContext+ConfKey.swift
[338/356] Compiling GlobalConfModule ConfContext+ConfKeyMainActor.swift
[339/356] Compiling GlobalConfModule ConfContext.swift
[340/356] Compiling GlobalConfModule ConfKey.swift
[341/356] Compiling GlobalConfModule ConfKeyMainActor.swift
[342/356] Compiling GlobalConfModule ConfKeys.swift
[343/356] Compiling GlobalConfModule Conf.swift
[344/356] Compiling GlobalConfModule ConfContext+AutoInjectable.swift
[345/356] Compiling GlobalConfModule ConfContext+AutoInjectableMainActor.swift
[346/356] Emitting module GlobalConfModule
[347/356] Compiling GlobalConfModule Conf+ConfKey.swift
[348/356] Compiling GlobalConfModule Conf+ConfKeyMainActor.swift
[349/356] Compiling GlobalConfModule Conf+withValues.swift
[350/356] Compiling GlobalConfModule 3-NamespaceKey.swift
[351/356] Compiling GlobalConfModule 4-AccessorConvenience.swift
[353/368] Compiling SignalHandling ErrnoWithoutSystem.swift
[354/369] 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:133:21: error: cannot find 'NSConditionLock' in scope
131 | }
132 |
133 | static let lock = NSConditionLock(condition: Self.nothingToDo.rawValue)
| `- error: cannot find 'NSConditionLock' in scope
134 |
135 | /* Read/write is protected by the lock above. */
/host/spi-builder-workspace/Sources/SignalHandling/DelayedSigaction/SigactionDelayer_Unsig.swift:149:23: error: cannot find type 'DispatchSourceSignal' in scope
147 | var originalSigaction: Sigaction
148 |
149 | var dispatchSource: DispatchSourceSignal
| `- error: cannot find type 'DispatchSourceSignal' in scope
150 | var handlers = [DelayedSigaction: DelayedSigactionHandler]()
151 |
/host/spi-builder-workspace/Sources/SignalHandling/DelayedSigaction/SigactionDelayer_Unsig.swift:154:45: error: cannot find 'DispatchQueue' in scope
152 | }
153 |
154 | private static let signalProcessingQueue = DispatchQueue(label: "com.xcode-actions.unsigactioned-signals-processing-queue")
| `- error: cannot find 'DispatchQueue' in scope
155 |
156 | /* Both these vars are only modified/read on the signal processing queue. */
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Sigaction.swift:48:24: error: cannot find type 'sigaction' in scope
46 | If the handler of the sigaction is `SIG_IGN` or `SIG_DFL`, we check the `sa_flags` not to contains the `SA_SIGINFO` bit.
47 | If they do, we log an error, as this is invalid. */
48 | public init(rawValue: sigaction) {
| `- error: cannot find type 'sigaction' in scope
49 | self.mask = Signal.set(from: rawValue.sa_mask)
50 | self.flags = SigactionFlags(rawValue: rawValue.sa_flags)
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Sigaction.swift:83:23: error: cannot find type 'sigaction' in scope
81 | }
82 |
83 | public var rawValue: sigaction {
| `- error: cannot find type 'sigaction' in scope
84 | if !isValid {
85 | Conf.logger?.warning("Getting sigaction from an invalid Sigaction.")
/host/spi-builder-workspace/Sources/SignalHandling/DelayedSigaction/SigactionDelayer_Unsig.swift:91:21: error: type 'Sigaction' does not conform to protocol 'RawRepresentable'
89 |
90 | - Returns: The previous sigaction if there was an unsigaction registered for the given signal, `nil` otherwise. */
91 | public static func updateOriginalSigaction(for signal: Signal, to sigaction: Sigaction) -> Sigaction? {
| `- error: type 'Sigaction' does not conform to protocol 'RawRepresentable'
92 | return signalProcessingQueue.sync{
93 | let previous = unsigactionedSignals[signal]?.originalSigaction
/host/spi-builder-workspace/Sources/SignalHandling/DelayedSigaction/SigactionDelayer_Unsig.swift:213:31: error: cannot find 'DispatchSource' in scope
211 | }
212 | } else {
213 | let dispatchSourceSignal = DispatchSource.makeSignalSource(signal: signal.rawValue, queue: signalProcessingQueue)
| `- error: cannot find 'DispatchSource' in scope
214 | /* Apparently the dispatchSourceSignal does not need to be weak in the handler because the handler is released when the source is canceled.
215 | * 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:276:16: error: cannot find 'DispatchGroup' in scope
274 | for _ in 0..<count {
275 | let lock = NSLock()
276 | let group = DispatchGroup()
| `- error: cannot find 'DispatchGroup' in scope
277 | nonisolated(unsafe) var runOriginalHandlerFinal = true
278 | for (_, handler) in unsigactionedSignal.handlers {
/host/spi-builder-workspace/Sources/SignalHandling/DelayedSigaction/SigactionDelayer_Unsig.swift:305:15: error: cannot find 'DispatchGroup' in scope
303 |
304 | nonisolated(unsafe) var error: Error?
305 | let group = DispatchGroup()
| `- error: cannot find 'DispatchGroup' in scope
306 | group.enter()
307 | Thread.detachNewThread{
/host/spi-builder-workspace/Sources/SignalHandling/DelayedSigaction/SigactionDelayer_Unsig.swift:307:3: error: cannot find 'Thread' in scope
305 | let group = DispatchGroup()
306 | group.enter()
307 | Thread.detachNewThread{
| `- error: cannot find 'Thread' in scope
308 | Thread.current.name = "com.xcode-actions.unsigactioned-signals-thread"
309 |
/host/spi-builder-workspace/Sources/SignalHandling/DelayedSigaction/SigactionDelayer_Unsig.swift:308:4: error: cannot find 'Thread' in scope
306 | group.enter()
307 | Thread.detachNewThread{
308 | Thread.current.name = "com.xcode-actions.unsigactioned-signals-thread"
| `- error: cannot find 'Thread' in scope
309 |
310 | /* Unblock all signals in this thread. */
/host/spi-builder-workspace/Sources/SignalHandling/DelayedSigaction/SigactionDelayer_Unsig.swift:312:14: error: cannot find 'pthread_sigmask' in scope
310 | /* Unblock all signals in this thread. */
311 | var noSignals = Signal.emptySigset
312 | let ret = pthread_sigmask(SIG_SETMASK, &noSignals, nil /* old signals */)
| `- error: cannot find 'pthread_sigmask' in scope
313 | if ret != 0 {
314 | error = SignalHandlingError.destructiveSystemError(Errno(rawValue: ret))
/host/spi-builder-workspace/Sources/SignalHandling/DelayedSigaction/SigactionDelayer_Unsig.swift:312:30: error: cannot find 'SIG_SETMASK' in scope
310 | /* Unblock all signals in this thread. */
311 | var noSignals = Signal.emptySigset
312 | let ret = pthread_sigmask(SIG_SETMASK, &noSignals, nil /* old signals */)
| `- error: cannot find 'SIG_SETMASK' in scope
313 | if ret != 0 {
314 | error = SignalHandlingError.destructiveSystemError(Errno(rawValue: ret))
/host/spi-builder-workspace/Sources/SignalHandling/DelayedSigaction/SigactionDelayer_Unsig.swift:383:20: error: cannot find 'pthread_self' in scope
381 | * Anyway, we need to reinstall the sigaction handler after the signal has been sent and processed,
382 | * so we need to have some control, which `raise` does not give. */
383 | let thread = pthread_self()
| `- error: cannot find 'pthread_self' in scope
384 | // let killResult = raise(signal.rawValue)
385 | let killResult = pthread_kill(thread, signal.rawValue)
/host/spi-builder-workspace/Sources/SignalHandling/DelayedSigaction/SigactionDelayer_Unsig.swift:385:24: error: cannot find 'pthread_kill' in scope
383 | let thread = pthread_self()
384 | // let killResult = raise(signal.rawValue)
385 | let killResult = pthread_kill(thread, signal.rawValue)
| `- error: cannot find 'pthread_kill' in scope
386 | if killResult != 0 {
387 | completionResult.errorLogs.append(("Cannot send signal to unsigactioned thread.", ["signal": "\(signal)", "kill_result": "\(killResult)"]))
/host/spi-builder-workspace/Sources/SignalHandling/DelayedSigaction/SigactionDelayer_Unsig.swift:391:27: error: cannot find 'pthread_sigmask' in scope
389 |
390 | /* Re-unblock all signals (in case a handler blocked one). */
391 | let sigmaskResult = pthread_sigmask(SIG_SETMASK, &emptyMask, nil)
| `- error: cannot find 'pthread_sigmask' in scope
392 | if sigmaskResult != 0 {
393 | completionResult.errorLogs.append((
/host/spi-builder-workspace/Sources/SignalHandling/DelayedSigaction/SigactionDelayer_Unsig.swift:391:43: error: cannot find 'SIG_SETMASK' in scope
389 |
390 | /* Re-unblock all signals (in case a handler blocked one). */
391 | let sigmaskResult = pthread_sigmask(SIG_SETMASK, &emptyMask, nil)
| `- error: cannot find 'SIG_SETMASK' in scope
392 | if sigmaskResult != 0 {
393 | completionResult.errorLogs.append((
/host/spi-builder-workspace/Sources/SignalHandling/DelayedSigaction/SigactionDelayer_Unsig.swift:391:68: error: 'nil' requires a contextual type
389 |
390 | /* Re-unblock all signals (in case a handler blocked one). */
391 | let sigmaskResult = pthread_sigmask(SIG_SETMASK, &emptyMask, nil)
| `- error: 'nil' requires a contextual type
392 | if sigmaskResult != 0 {
393 | completionResult.errorLogs.append((
[355/369] Compiling SignalHandling DelayedSigaction.swift
[356/369] Compiling SignalHandling DelayedSigactionHandler.swift
[357/369] Compiling SignalHandling SigactionDelayer_Block.swift
/host/spi-builder-workspace/Sources/SignalHandling/DelayedSigaction/SigactionDelayer_Block.swift:180:21: error: cannot find 'NSConditionLock' in scope
178 | }
179 |
180 | static let lock = NSConditionLock(condition: Self.nothingToDo.rawValue)
| `- error: cannot find 'NSConditionLock' in scope
181 |
182 | /* Read/write is protected by the lock above. */
/host/spi-builder-workspace/Sources/SignalHandling/DelayedSigaction/SigactionDelayer_Block.swift:194:23: error: cannot find type 'DispatchSourceSignal' in scope
192 | private struct BlockedSignal {
193 |
194 | var dispatchSource: DispatchSourceSignal
| `- error: cannot find type 'DispatchSourceSignal' in scope
195 | var handlers = [DelayedSigaction: DelayedSigactionHandler]()
196 |
/host/spi-builder-workspace/Sources/SignalHandling/DelayedSigaction/SigactionDelayer_Block.swift:199:45: error: cannot find 'DispatchQueue' in scope
197 | }
198 |
199 | private static let signalProcessingQueue = DispatchQueue(label: "com.xcode-actions.blocked-signals-processing-queue")
| `- error: cannot find 'DispatchQueue' in scope
200 |
201 | /* Only used on the main thread. */
/host/spi-builder-workspace/Sources/SignalHandling/DelayedSigaction/SigactionDelayer_Block.swift:67:11: error: cannot find 'Thread' in scope
65 | - Important: You should not use `pthread_sigmask` to sigprocmask (nor anything to unblock signals) after calling this method. */
66 | public static func bootstrap(for signals: Set<Signal>) throws {
67 | assert(!Thread.isMultiThreaded())
| `- error: cannot find 'Thread' in scope
68 | guard !bootstrapDone else {
69 | fatalError("DelayedSigaction can be bootstrapped only once")
/host/spi-builder-workspace/Sources/SignalHandling/DelayedSigaction/SigactionDelayer_Block.swift:73:13: error: cannot find 'pthread_sigmask' in scope
71 |
72 | var signalsSigset = Signal.sigset(from: signals)
73 | let ret = pthread_sigmask(SIG_SETMASK, &signalsSigset, nil /* old signals */)
| `- error: cannot find 'pthread_sigmask' in scope
74 | if ret != 0 {
75 | throw SignalHandlingError.nonDestructiveSystemError(Errno(rawValue: ret))
/host/spi-builder-workspace/Sources/SignalHandling/DelayedSigaction/SigactionDelayer_Block.swift:73:29: error: cannot find 'SIG_SETMASK' in scope
71 |
72 | var signalsSigset = Signal.sigset(from: signals)
73 | let ret = pthread_sigmask(SIG_SETMASK, &signalsSigset, nil /* old signals */)
| `- error: cannot find 'SIG_SETMASK' in scope
74 | if ret != 0 {
75 | throw SignalHandlingError.nonDestructiveSystemError(Errno(rawValue: ret))
/host/spi-builder-workspace/Sources/SignalHandling/DelayedSigaction/SigactionDelayer_Block.swift:73:58: error: 'nil' requires a contextual type
71 |
72 | var signalsSigset = Signal.sigset(from: signals)
73 | let ret = pthread_sigmask(SIG_SETMASK, &signalsSigset, nil /* old signals */)
| `- error: 'nil' requires a contextual type
74 | if ret != 0 {
75 | throw SignalHandlingError.nonDestructiveSystemError(Errno(rawValue: ret))
/host/spi-builder-workspace/Sources/SignalHandling/DelayedSigaction/SigactionDelayer_Block.swift:79:15: error: cannot find 'DispatchGroup' in scope
77 |
78 | nonisolated(unsafe) var error: Error?
79 | let group = DispatchGroup()
| `- error: cannot find 'DispatchGroup' in scope
80 | group.enter()
81 | Thread.detachNewThread{
/host/spi-builder-workspace/Sources/SignalHandling/DelayedSigaction/SigactionDelayer_Block.swift:81:3: error: cannot find 'Thread' in scope
79 | let group = DispatchGroup()
80 | group.enter()
81 | Thread.detachNewThread{
| `- error: cannot find 'Thread' in scope
82 | Thread.current.name = "com.xcode-actions.blocked-signals-thread"
83 |
/host/spi-builder-workspace/Sources/SignalHandling/DelayedSigaction/SigactionDelayer_Block.swift:82:4: error: cannot find 'Thread' in scope
80 | group.enter()
81 | Thread.detachNewThread{
82 | Thread.current.name = "com.xcode-actions.blocked-signals-thread"
| `- error: cannot find 'Thread' in scope
83 |
84 | /* Unblock all signals in this thread. */
/host/spi-builder-workspace/Sources/SignalHandling/DelayedSigaction/SigactionDelayer_Block.swift:86:14: error: cannot find 'pthread_sigmask' in scope
84 | /* Unblock all signals in this thread. */
85 | var noSignals = Signal.emptySigset
86 | let ret = pthread_sigmask(SIG_SETMASK, &noSignals, nil /* old signals */)
| `- error: cannot find 'pthread_sigmask' in scope
87 | if ret != 0 {
88 | error = SignalHandlingError.destructiveSystemError(Errno(rawValue: ret))
/host/spi-builder-workspace/Sources/SignalHandling/DelayedSigaction/SigactionDelayer_Block.swift:86:30: error: cannot find 'SIG_SETMASK' in scope
84 | /* Unblock all signals in this thread. */
85 | var noSignals = Signal.emptySigset
86 | let ret = pthread_sigmask(SIG_SETMASK, &noSignals, nil /* old signals */)
| `- error: cannot find 'SIG_SETMASK' in scope
87 | if ret != 0 {
88 | error = SignalHandlingError.destructiveSystemError(Errno(rawValue: ret))
/host/spi-builder-workspace/Sources/SignalHandling/DelayedSigaction/SigactionDelayer_Block.swift:253:31: error: cannot find 'DispatchSource' in scope
251 | try executeOnThread(.block(signal))
252 |
253 | let dispatchSourceSignal = DispatchSource.makeSignalSource(signal: signal.rawValue, queue: signalProcessingQueue)
| `- error: cannot find 'DispatchSource' in scope
254 | /* Apparently the dispatchSourceSignal does not need to be weak in the handler because the handler is released when the source is canceled.
255 | * 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:334:16: error: cannot find 'DispatchGroup' in scope
332 | for _ in 0..<count {
333 | let lock = NSLock()
334 | let group = DispatchGroup()
| `- error: cannot find 'DispatchGroup' in scope
335 | nonisolated(unsafe) var runOriginalHandlerFinal = true
336 | for (_, handler) in blockedSignal.handlers {
/host/spi-builder-workspace/Sources/SignalHandling/DelayedSigaction/SigactionDelayer_Block.swift:391:17: error: cannot find 'pthread_sigmask' in scope
389 | // loggerLessThreadSafeDebugLog("🧵 Processing block action for \(signal)…")
390 | var sigset = signal.sigset
391 | let ret = pthread_sigmask(SIG_BLOCK, &sigset, nil /* old signals */)
| `- error: cannot find 'pthread_sigmask' in scope
392 | if ret != 0 {
393 | throw SignalHandlingError.destructiveSystemError(Errno(rawValue: ret))
/host/spi-builder-workspace/Sources/SignalHandling/DelayedSigaction/SigactionDelayer_Block.swift:391:33: error: cannot find 'SIG_BLOCK' in scope
389 | // loggerLessThreadSafeDebugLog("🧵 Processing block action for \(signal)…")
390 | var sigset = signal.sigset
391 | let ret = pthread_sigmask(SIG_BLOCK, &sigset, nil /* old signals */)
| `- error: cannot find 'SIG_BLOCK' in scope
392 | if ret != 0 {
393 | throw SignalHandlingError.destructiveSystemError(Errno(rawValue: ret))
/host/spi-builder-workspace/Sources/SignalHandling/DelayedSigaction/SigactionDelayer_Block.swift:391:53: error: 'nil' requires a contextual type
389 | // loggerLessThreadSafeDebugLog("🧵 Processing block action for \(signal)…")
390 | var sigset = signal.sigset
391 | let ret = pthread_sigmask(SIG_BLOCK, &sigset, nil /* old signals */)
| `- error: 'nil' requires a contextual type
392 | if ret != 0 {
393 | throw SignalHandlingError.destructiveSystemError(Errno(rawValue: ret))
/host/spi-builder-workspace/Sources/SignalHandling/DelayedSigaction/SigactionDelayer_Block.swift:399:17: error: cannot find 'pthread_sigmask' in scope
397 | // loggerLessThreadSafeDebugLog("🧵 Processing unblock action for \(signal)…")
398 | var sigset = signal.sigset
399 | let ret = pthread_sigmask(SIG_UNBLOCK, &sigset, nil /* old signals */)
| `- error: cannot find 'pthread_sigmask' in scope
400 | if ret != 0 {
401 | throw SignalHandlingError.destructiveSystemError(Errno(rawValue: ret))
/host/spi-builder-workspace/Sources/SignalHandling/DelayedSigaction/SigactionDelayer_Block.swift:399:33: error: cannot find 'SIG_UNBLOCK' in scope
397 | // loggerLessThreadSafeDebugLog("🧵 Processing unblock action for \(signal)…")
398 | var sigset = signal.sigset
399 | let ret = pthread_sigmask(SIG_UNBLOCK, &sigset, nil /* old signals */)
| `- error: cannot find 'SIG_UNBLOCK' in scope
400 | if ret != 0 {
401 | throw SignalHandlingError.destructiveSystemError(Errno(rawValue: ret))
/host/spi-builder-workspace/Sources/SignalHandling/DelayedSigaction/SigactionDelayer_Block.swift:399:55: error: 'nil' requires a contextual type
397 | // loggerLessThreadSafeDebugLog("🧵 Processing unblock action for \(signal)…")
398 | var sigset = signal.sigset
399 | let ret = pthread_sigmask(SIG_UNBLOCK, &sigset, nil /* old signals */)
| `- error: 'nil' requires a contextual type
400 | if ret != 0 {
401 | throw SignalHandlingError.destructiveSystemError(Errno(rawValue: ret))
/host/spi-builder-workspace/Sources/SignalHandling/DelayedSigaction/SigactionDelayer_Block.swift:411:18: error: cannot find 'pthread_sigmask' in scope
409 | /* We update the sigset only when signal is not ignored
410 | * because it is used only in that case and this is getting the current sigmask can fail. */
411 | let ret = pthread_sigmask(SIG_SETMASK, nil /* new signals */, &sigset)
| `- error: cannot find 'pthread_sigmask' in scope
412 | if ret != 0 {
413 | throw SignalHandlingError.nonDestructiveSystemError(Errno(rawValue: ret))
/host/spi-builder-workspace/Sources/SignalHandling/DelayedSigaction/SigactionDelayer_Block.swift:411:34: error: cannot find 'SIG_SETMASK' in scope
409 | /* We update the sigset only when signal is not ignored
410 | * because it is used only in that case and this is getting the current sigmask can fail. */
411 | let ret = pthread_sigmask(SIG_SETMASK, nil /* new signals */, &sigset)
| `- error: cannot find 'SIG_SETMASK' in scope
412 | if ret != 0 {
413 | throw SignalHandlingError.nonDestructiveSystemError(Errno(rawValue: ret))
/host/spi-builder-workspace/Sources/SignalHandling/DelayedSigaction/SigactionDelayer_Block.swift:411:47: error: 'nil' requires a contextual type
409 | /* We update the sigset only when signal is not ignored
410 | * because it is used only in that case and this is getting the current sigmask can fail. */
411 | let ret = pthread_sigmask(SIG_SETMASK, nil /* new signals */, &sigset)
| `- error: 'nil' requires a contextual type
412 | if ret != 0 {
413 | throw SignalHandlingError.nonDestructiveSystemError(Errno(rawValue: ret))
/host/spi-builder-workspace/Sources/SignalHandling/DelayedSigaction/SigactionDelayer_Block.swift:415:8: error: cannot find 'sigdelset' in scope
413 | throw SignalHandlingError.nonDestructiveSystemError(Errno(rawValue: ret))
414 | }
415 | sigdelset(&sigset, signal.rawValue)
| `- error: cannot find 'sigdelset' in scope
416 | }
417 | /* Let’s get the pending signals on this thread. */
/host/spi-builder-workspace/Sources/SignalHandling/DelayedSigaction/SigactionDelayer_Block.swift:419:17: error: cannot find 'sigpending' in scope
417 | /* Let’s get the pending signals on this thread. */
418 | var pendingSignals = sigset_t()
419 | let ret = sigpending(&pendingSignals)
| `- error: cannot find 'sigpending' in scope
420 | /* If sigpending failed, we assume the signal is pending. */
421 | if ret != 0 || !Signal.set(from: pendingSignals).contains(signal) {
/host/spi-builder-workspace/Sources/SignalHandling/DelayedSigaction/SigactionDelayer_Block.swift:425:8: error: cannot find 'pthread_kill' in scope
423 | * Which mean it is probably pending on some other thread, forever. */
424 | // loggerLessThreadSafeDebugLog("🧵 Resending signal to manager thread \(signal)…")
425 | pthread_kill(pthread_self(), signal.rawValue)
| `- error: cannot find 'pthread_kill' in scope
426 | }
427 | if !isIgnored {
/host/spi-builder-workspace/Sources/SignalHandling/DelayedSigaction/SigactionDelayer_Block.swift:425:21: error: cannot find 'pthread_self' in scope
423 | * Which mean it is probably pending on some other thread, forever. */
424 | // loggerLessThreadSafeDebugLog("🧵 Resending signal to manager thread \(signal)…")
425 | pthread_kill(pthread_self(), signal.rawValue)
| `- error: cannot find 'pthread_self' in scope
426 | }
427 | if !isIgnored {
/host/spi-builder-workspace/Sources/SignalHandling/DelayedSigaction/SigactionDelayer_Block.swift:431:8: error: cannot find 'sigsuspend' in scope
429 | * I know there is a race condition. */
430 | // loggerLessThreadSafeDebugLog("🧵 Calling sigsuspend for \(signal)…")
431 | sigsuspend(&sigset)
| `- error: cannot find 'sigsuspend' in scope
432 | }
433 |
/host/spi-builder-workspace/Sources/SignalHandling/DelayedSigaction/SigactionDelayer_Block.swift:437:17: error: cannot find 'pthread_sigmask' in scope
435 | // loggerLessThreadSafeDebugLog("🧵 Processing drop action for \(signal)…")
436 | var sigset = sigset_t()
437 | let ret = pthread_sigmask(SIG_SETMASK, nil /* new signals */, &sigset)
| `- error: cannot find 'pthread_sigmask' in scope
438 | if ret != 0 {
439 | throw SignalHandlingError.nonDestructiveSystemError(Errno(rawValue: ret))
/host/spi-builder-workspace/Sources/SignalHandling/DelayedSigaction/SigactionDelayer_Block.swift:437:33: error: cannot find 'SIG_SETMASK' in scope
435 | // loggerLessThreadSafeDebugLog("🧵 Processing drop action for \(signal)…")
436 | var sigset = sigset_t()
437 | let ret = pthread_sigmask(SIG_SETMASK, nil /* new signals */, &sigset)
| `- error: cannot find 'SIG_SETMASK' in scope
438 | if ret != 0 {
439 | throw SignalHandlingError.nonDestructiveSystemError(Errno(rawValue: ret))
/host/spi-builder-workspace/Sources/SignalHandling/DelayedSigaction/SigactionDelayer_Block.swift:437:46: error: 'nil' requires a contextual type
435 | // loggerLessThreadSafeDebugLog("🧵 Processing drop action for \(signal)…")
436 | var sigset = sigset_t()
437 | let ret = pthread_sigmask(SIG_SETMASK, nil /* new signals */, &sigset)
| `- error: 'nil' requires a contextual type
438 | if ret != 0 {
439 | throw SignalHandlingError.nonDestructiveSystemError(Errno(rawValue: ret))
/host/spi-builder-workspace/Sources/SignalHandling/DelayedSigaction/SigactionDelayer_Block.swift:441:7: error: cannot find 'sigdelset' in scope
439 | throw SignalHandlingError.nonDestructiveSystemError(Errno(rawValue: ret))
440 | }
441 | sigdelset(&sigset, signal.rawValue)
| `- error: cannot find 'sigdelset' in scope
442 |
443 | let oldAction = try Sigaction.ignoreAction.install(on: signal, revertIfIgnored: false, updateUnsigRegistrations: false)
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Sigaction.swift:48:24: error: cannot find type 'sigaction' in scope
46 | If the handler of the sigaction is `SIG_IGN` or `SIG_DFL`, we check the `sa_flags` not to contains the `SA_SIGINFO` bit.
47 | If they do, we log an error, as this is invalid. */
48 | public init(rawValue: sigaction) {
| `- error: cannot find type 'sigaction' in scope
49 | self.mask = Signal.set(from: rawValue.sa_mask)
50 | self.flags = SigactionFlags(rawValue: rawValue.sa_flags)
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Sigaction.swift:83:23: error: cannot find type 'sigaction' in scope
81 | }
82 |
83 | public var rawValue: sigaction {
| `- error: cannot find type 'sigaction' in scope
84 | if !isValid {
85 | Conf.logger?.warning("Getting sigaction from an invalid Sigaction.")
/host/spi-builder-workspace/Sources/SignalHandling/DelayedSigaction/SigactionDelayer_Block.swift:443:7: error: type 'Sigaction' does not conform to protocol 'RawRepresentable'
441 | sigdelset(&sigset, signal.rawValue)
442 |
443 | let oldAction = try Sigaction.ignoreAction.install(on: signal, revertIfIgnored: false, updateUnsigRegistrations: false)
| `- error: type 'Sigaction' does not conform to protocol 'RawRepresentable'
444 | /* Will not hurt, the signal is ignore anyway (yes, there is a race condition, I know). */
445 | pthread_kill(pthread_self(), signal.rawValue)
/host/spi-builder-workspace/Sources/SignalHandling/DelayedSigaction/SigactionDelayer_Block.swift:445:7: error: cannot find 'pthread_kill' in scope
443 | let oldAction = try Sigaction.ignoreAction.install(on: signal, revertIfIgnored: false, updateUnsigRegistrations: false)
444 | /* Will not hurt, the signal is ignore anyway (yes, there is a race condition, I know). */
445 | pthread_kill(pthread_self(), signal.rawValue)
| `- error: cannot find 'pthread_kill' in scope
446 | /* No sigsuspend. Would block because signal is ignored. */
447 | if let oldAction = oldAction {
/host/spi-builder-workspace/Sources/SignalHandling/DelayedSigaction/SigactionDelayer_Block.swift:445:20: error: cannot find 'pthread_self' in scope
443 | let oldAction = try Sigaction.ignoreAction.install(on: signal, revertIfIgnored: false, updateUnsigRegistrations: false)
444 | /* Will not hurt, the signal is ignore anyway (yes, there is a race condition, I know). */
445 | pthread_kill(pthread_self(), signal.rawValue)
| `- error: cannot find 'pthread_self' in scope
446 | /* No sigsuspend. Would block because signal is ignored. */
447 | if let oldAction = oldAction {
error: emit-module command failed with exit code 1 (use -v to see invocation)
[358/369] Compiling SignalHandling Config.swift
[359/369] Compiling SignalHandling Errors.swift
[360/369] Emitting module SignalHandling
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Sigaction.swift:48:24: error: cannot find type 'sigaction' in scope
46 | If the handler of the sigaction is `SIG_IGN` or `SIG_DFL`, we check the `sa_flags` not to contains the `SA_SIGINFO` bit.
47 | If they do, we log an error, as this is invalid. */
48 | public init(rawValue: sigaction) {
| `- error: cannot find type 'sigaction' in scope
49 | self.mask = Signal.set(from: rawValue.sa_mask)
50 | self.flags = SigactionFlags(rawValue: rawValue.sa_flags)
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Sigaction.swift:83:23: error: cannot find type 'sigaction' in scope
81 | }
82 |
83 | public var rawValue: sigaction {
| `- error: cannot find type 'sigaction' in scope
84 | if !isValid {
85 | 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:12:15: error: type 'Sigaction' does not conform to protocol 'RawRepresentable'
10 |
11 |
12 | public struct Sigaction : Equatable, RawRepresentable, Sendable {
| |- error: type 'Sigaction' does not conform to protocol 'RawRepresentable'
| `- note: add stubs for conformance
13 |
14 | 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:109:50: error: cannot find 'SIGTERM' in scope
107 |
108 | /** “Normal” kill signal. */
109 | public static let terminated = Signal(rawValue: SIGTERM)
| `- error: cannot find 'SIGTERM' in scope
110 | /** Usually `Ctrl-C`. */
111 | public static let interrupt = Signal(rawValue: SIGINT)
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Signal.swift:111:50: error: cannot find 'SIGINT' in scope
109 | public static let terminated = Signal(rawValue: SIGTERM)
110 | /** Usually `Ctrl-C`. */
111 | public static let interrupt = Signal(rawValue: SIGINT)
| `- error: cannot find 'SIGINT' in scope
112 | /** Used to quit w/ generation of a core dump. Usually `Ctrl-\`. */
113 | public static let quit = Signal(rawValue: SIGQUIT)
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Signal.swift:113:50: error: cannot find 'SIGQUIT' in scope
111 | public static let interrupt = Signal(rawValue: SIGINT)
112 | /** Used to quit w/ generation of a core dump. Usually `Ctrl-\`. */
113 | public static let quit = Signal(rawValue: SIGQUIT)
| `- error: cannot find 'SIGQUIT' in scope
114 | public static let killed = Signal(rawValue: SIGKILL)
115 | /** The user’s terminal disconnected. */
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Signal.swift:116:50: error: cannot find 'SIGHUP' in scope
114 | public static let killed = Signal(rawValue: SIGKILL)
115 | /** The user’s terminal disconnected. */
116 | public static let hangup = Signal(rawValue: SIGHUP)
| `- error: cannot find 'SIGHUP' in scope
117 |
118 | /* *** Alarm Signals *** */
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Signal.swift:172:57: error: cannot find 'SIGTSTP' in scope
170 | public static let suspendedBySignal = Signal(rawValue: SIGSTOP)
171 | /** Suspends the program but can be handled and ignored. Usually `Ctrl-Z`. */
172 | public static let suspended = Signal(rawValue: SIGTSTP)
| `- error: cannot find 'SIGTSTP' in scope
173 | public static let stoppedTTYInput = Signal(rawValue: SIGTTIN)
174 | public static let stoppedTTYOutput = Signal(rawValue: SIGTTOU)
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Signal.swift:168:57: error: cannot find 'SIGCONT' in scope
166 | /* Obsolete name for SIGCHLD. */
167 | // public static let cildExited = Signal(rawValue: SIGCLD)
168 | public static let continued = Signal(rawValue: SIGCONT)
| `- error: cannot find 'SIGCONT' in scope
169 | /** Suspends the program. Cannot be handled, ignored or blocked. */
170 | public static let suspendedBySignal = Signal(rawValue: SIGSTOP)
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Signal.swift:80:62: error: cannot find 'SIGFPE' in scope
78 | /**
79 | - Note: FPE means Floating-Point Exception but this signal is sent for any arithmetic error. */
80 | public static let arithmeticError = Signal(rawValue: SIGFPE)
| `- error: cannot find 'SIGFPE' in scope
81 | @available(*, unavailable, renamed: "arithmeticError")
82 | public static let floatingPointException = Signal(rawValue: SIGFPE)
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Signal.swift:82:62: error: cannot find 'SIGFPE' in scope
80 | public static let arithmeticError = Signal(rawValue: SIGFPE)
81 | @available(*, unavailable, renamed: "arithmeticError")
82 | public static let floatingPointException = Signal(rawValue: SIGFPE)
| `- error: cannot find 'SIGFPE' in scope
83 | public static let illegalInstruction = Signal(rawValue: SIGILL)
84 | public static let segmentationFault = Signal(rawValue: SIGSEGV)
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Signal.swift:83:62: error: cannot find 'SIGILL' in scope
81 | @available(*, unavailable, renamed: "arithmeticError")
82 | public static let floatingPointException = Signal(rawValue: SIGFPE)
83 | public static let illegalInstruction = Signal(rawValue: SIGILL)
| `- error: cannot find 'SIGILL' in scope
84 | public static let segmentationFault = Signal(rawValue: SIGSEGV)
85 | public static let busError = Signal(rawValue: SIGBUS)
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Signal.swift:84:62: error: cannot find 'SIGSEGV' in scope
82 | public static let floatingPointException = Signal(rawValue: SIGFPE)
83 | public static let illegalInstruction = Signal(rawValue: SIGILL)
84 | public static let segmentationFault = Signal(rawValue: SIGSEGV)
| `- error: cannot find 'SIGSEGV' in scope
85 | public static let busError = Signal(rawValue: SIGBUS)
86 | public static let abortTrap = Signal(rawValue: SIGABRT)
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Signal.swift:85:62: error: cannot find 'SIGBUS' in scope
83 | public static let illegalInstruction = Signal(rawValue: SIGILL)
84 | public static let segmentationFault = Signal(rawValue: SIGSEGV)
85 | public static let busError = Signal(rawValue: SIGBUS)
| `- error: cannot find 'SIGBUS' in scope
86 | public static let abortTrap = Signal(rawValue: SIGABRT)
87 | /** Usually the same as `abortTrap`. */
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Signal.swift:86:62: error: cannot find 'SIGABRT' in scope
84 | public static let segmentationFault = Signal(rawValue: SIGSEGV)
85 | public static let busError = Signal(rawValue: SIGBUS)
86 | public static let abortTrap = Signal(rawValue: SIGABRT)
| `- error: cannot find 'SIGABRT' in scope
87 | /** Usually the same as `abortTrap`. */
88 | public static let iot = Signal(rawValue: SIGIOT)
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Signal.swift:88:62: error: cannot find 'SIGIOT' in scope
86 | public static let abortTrap = Signal(rawValue: SIGABRT)
87 | /** Usually the same as `abortTrap`. */
88 | public static let iot = Signal(rawValue: SIGIOT)
| `- error: cannot find 'SIGIOT' in scope
89 | public static let traceBreakpointTrap = Signal(rawValue: SIGTRAP)
90 | #if !os(Linux)
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Signal.swift:89:62: error: cannot find 'SIGTRAP' in scope
87 | /** Usually the same as `abortTrap`. */
88 | public static let iot = Signal(rawValue: SIGIOT)
89 | public static let traceBreakpointTrap = Signal(rawValue: SIGTRAP)
| `- error: cannot find 'SIGTRAP' in scope
90 | #if !os(Linux)
91 | public static let emulatorTrap = Signal(rawValue: SIGEMT)
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Signal.swift:91:62: error: cannot find 'SIGEMT' in scope
89 | public static let traceBreakpointTrap = Signal(rawValue: SIGTRAP)
90 | #if !os(Linux)
91 | public static let emulatorTrap = Signal(rawValue: SIGEMT)
| `- error: cannot find 'SIGEMT' in scope
92 | #endif
93 | public static let badSystemCall = Signal(rawValue: SIGSYS)
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Signal.swift:93:62: error: cannot find 'SIGSYS' in scope
91 | public static let emulatorTrap = Signal(rawValue: SIGEMT)
92 | #endif
93 | public static let badSystemCall = Signal(rawValue: SIGSYS)
| `- error: cannot find 'SIGSYS' in scope
94 |
95 | /* *** Termination Signals *** */
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Signal.swift:114:50: error: cannot find 'SIGKILL' in scope
112 | /** Used to quit w/ generation of a core dump. Usually `Ctrl-\`. */
113 | public static let quit = Signal(rawValue: SIGQUIT)
114 | public static let killed = Signal(rawValue: SIGKILL)
| `- error: cannot find 'SIGKILL' in scope
115 | /** The user’s terminal disconnected. */
116 | public static let hangup = Signal(rawValue: SIGHUP)
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Signal.swift:129:61: error: cannot find 'SIGALRM' in scope
127 | }
128 |
129 | public static let alarmClock = Signal(rawValue: SIGALRM)
| `- error: cannot find 'SIGALRM' in scope
130 | public static let virtualTimerExpired = Signal(rawValue: SIGVTALRM)
131 | public static let profilingTimerExpired = Signal(rawValue: SIGPROF)
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Signal.swift:130:61: error: cannot find 'SIGVTALRM' in scope
128 |
129 | public static let alarmClock = Signal(rawValue: SIGALRM)
130 | public static let virtualTimerExpired = Signal(rawValue: SIGVTALRM)
| `- error: cannot find 'SIGVTALRM' in scope
131 | public static let profilingTimerExpired = Signal(rawValue: SIGPROF)
132 |
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Signal.swift:131:61: error: cannot find 'SIGPROF' in scope
129 | public static let alarmClock = Signal(rawValue: SIGALRM)
130 | public static let virtualTimerExpired = Signal(rawValue: SIGVTALRM)
131 | public static let profilingTimerExpired = Signal(rawValue: SIGPROF)
| `- error: cannot find 'SIGPROF' in scope
132 |
133 | /* *** Asynchronous I/O Signals *** */
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Signal.swift:144:57: error: cannot find 'SIGIO' in scope
142 | }
143 |
144 | public static let ioPossible = Signal(rawValue: SIGIO)
| `- error: cannot find 'SIGIO' in scope
145 | public static let urgentIOCondition = Signal(rawValue: SIGURG)
146 | #if os(Linux)
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Signal.swift:145:57: error: cannot find 'SIGURG' in scope
143 |
144 | public static let ioPossible = Signal(rawValue: SIGIO)
145 | public static let urgentIOCondition = Signal(rawValue: SIGURG)
| `- error: cannot find 'SIGURG' in scope
146 | #if os(Linux)
147 | /** System V signal name, similar to SIGIO. */
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Signal.swift:165:57: error: cannot find 'SIGCHLD' in scope
163 | }
164 |
165 | public static let childExited = Signal(rawValue: SIGCHLD)
| `- error: cannot find 'SIGCHLD' in scope
166 | /* Obsolete name for SIGCHLD. */
167 | // public static let cildExited = Signal(rawValue: SIGCLD)
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Signal.swift:170:57: error: cannot find 'SIGSTOP' in scope
168 | public static let continued = Signal(rawValue: SIGCONT)
169 | /** Suspends the program. Cannot be handled, ignored or blocked. */
170 | public static let suspendedBySignal = Signal(rawValue: SIGSTOP)
| `- error: cannot find 'SIGSTOP' in scope
171 | /** Suspends the program but can be handled and ignored. Usually `Ctrl-Z`. */
172 | public static let suspended = Signal(rawValue: SIGTSTP)
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Signal.swift:173:57: error: cannot find 'SIGTTIN' in scope
171 | /** Suspends the program but can be handled and ignored. Usually `Ctrl-Z`. */
172 | public static let suspended = Signal(rawValue: SIGTSTP)
173 | public static let stoppedTTYInput = Signal(rawValue: SIGTTIN)
| `- error: cannot find 'SIGTTIN' in scope
174 | public static let stoppedTTYOutput = Signal(rawValue: SIGTTOU)
175 |
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Signal.swift:174:57: error: cannot find 'SIGTTOU' in scope
172 | public static let suspended = Signal(rawValue: SIGTSTP)
173 | public static let stoppedTTYInput = Signal(rawValue: SIGTTIN)
174 | public static let stoppedTTYOutput = Signal(rawValue: SIGTTOU)
| `- error: cannot find 'SIGTTOU' in scope
175 |
176 | /* *** Operation Error Signals *** */
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Signal.swift:187:61: error: cannot find 'SIGPIPE' in scope
185 | }
186 |
187 | public static let brokenPipe = Signal(rawValue: SIGPIPE)
| `- error: cannot find 'SIGPIPE' in scope
188 | // public static let resourceLost = Signal(rawValue: SIGLOST)
189 | public static let cputimeLimitExceeded = Signal(rawValue: SIGXCPU)
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Signal.swift:189:61: error: cannot find 'SIGXCPU' in scope
187 | public static let brokenPipe = Signal(rawValue: SIGPIPE)
188 | // public static let resourceLost = Signal(rawValue: SIGLOST)
189 | public static let cputimeLimitExceeded = Signal(rawValue: SIGXCPU)
| `- error: cannot find 'SIGXCPU' in scope
190 | public static let filesizeLimitExceeded = Signal(rawValue: SIGXFSZ)
191 |
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Signal.swift:190:61: error: cannot find 'SIGXFSZ' in scope
188 | // public static let resourceLost = Signal(rawValue: SIGLOST)
189 | public static let cputimeLimitExceeded = Signal(rawValue: SIGXCPU)
190 | public static let filesizeLimitExceeded = Signal(rawValue: SIGXFSZ)
| `- error: cannot find 'SIGXFSZ' in scope
191 |
192 | /* *** Miscellaneous Signals *** */
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Signal.swift:209:58: error: cannot find 'SIGUSR1' in scope
207 | }
208 |
209 | public static let userDefinedSignal1 = Signal(rawValue: SIGUSR1)
| `- error: cannot find 'SIGUSR1' in scope
210 | public static let userDefinedSignal2 = Signal(rawValue: SIGUSR2)
211 | public static let windowSizeChanges = Signal(rawValue: SIGWINCH)
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Signal.swift:210:58: error: cannot find 'SIGUSR2' in scope
208 |
209 | public static let userDefinedSignal1 = Signal(rawValue: SIGUSR1)
210 | public static let userDefinedSignal2 = Signal(rawValue: SIGUSR2)
| `- error: cannot find 'SIGUSR2' in scope
211 | public static let windowSizeChanges = Signal(rawValue: SIGWINCH)
212 | #if !os(Linux)
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Signal.swift:211:58: error: cannot find 'SIGWINCH' in scope
209 | public static let userDefinedSignal1 = Signal(rawValue: SIGUSR1)
210 | public static let userDefinedSignal2 = Signal(rawValue: SIGUSR2)
211 | public static let windowSizeChanges = Signal(rawValue: SIGWINCH)
| `- error: cannot find 'SIGWINCH' in scope
212 | #if !os(Linux)
213 | public static let informationRequest = Signal(rawValue: SIGINFO)
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Signal.swift:213:58: error: cannot find 'SIGINFO' in scope
211 | public static let windowSizeChanges = Signal(rawValue: SIGWINCH)
212 | #if !os(Linux)
213 | public static let informationRequest = Signal(rawValue: SIGINFO)
| `- error: cannot find 'SIGINFO' in scope
214 | #endif
215 |
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Signal.swift:238:3: error: cannot find 'sigemptyset' in scope
236 | public static let emptySigset: sigset_t = {
237 | var sigset = sigset_t()
238 | sigemptyset(&sigset)
| `- error: cannot find 'sigemptyset' in scope
239 | return sigset
240 | }()
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Signal.swift:248:3: error: cannot find 'sigfillset' in scope
246 | public static let fullSigset: sigset_t = {
247 | var sigset = sigset_t()
248 | sigfillset(&sigset)
| `- error: cannot find 'sigfillset' in scope
249 | return sigset
250 | }()
/host/spi-builder-workspace/Sources/SignalHandling/DelayedSigaction/SigactionDelayer_Block.swift:180:21: error: cannot find 'NSConditionLock' in scope
178 | }
179 |
180 | static let lock = NSConditionLock(condition: Self.nothingToDo.rawValue)
| `- error: cannot find 'NSConditionLock' in scope
181 |
182 | /* Read/write is protected by the lock above. */
/host/spi-builder-workspace/Sources/SignalHandling/DelayedSigaction/SigactionDelayer_Block.swift:194:23: error: cannot find type 'DispatchSourceSignal' in scope
192 | private struct BlockedSignal {
193 |
194 | var dispatchSource: DispatchSourceSignal
| `- error: cannot find type 'DispatchSourceSignal' in scope
195 | var handlers = [DelayedSigaction: DelayedSigactionHandler]()
196 |
/host/spi-builder-workspace/Sources/SignalHandling/DelayedSigaction/SigactionDelayer_Block.swift:199:45: error: cannot find 'DispatchQueue' in scope
197 | }
198 |
199 | private static let signalProcessingQueue = DispatchQueue(label: "com.xcode-actions.blocked-signals-processing-queue")
| `- error: cannot find 'DispatchQueue' in scope
200 |
201 | /* Only used on the main thread. */
/host/spi-builder-workspace/Sources/SignalHandling/DelayedSigaction/SigactionDelayer_Unsig.swift:133:21: error: cannot find 'NSConditionLock' in scope
131 | }
132 |
133 | static let lock = NSConditionLock(condition: Self.nothingToDo.rawValue)
| `- error: cannot find 'NSConditionLock' in scope
134 |
135 | /* Read/write is protected by the lock above. */
/host/spi-builder-workspace/Sources/SignalHandling/DelayedSigaction/SigactionDelayer_Unsig.swift:149:23: error: cannot find type 'DispatchSourceSignal' in scope
147 | var originalSigaction: Sigaction
148 |
149 | var dispatchSource: DispatchSourceSignal
| `- error: cannot find type 'DispatchSourceSignal' in scope
150 | var handlers = [DelayedSigaction: DelayedSigactionHandler]()
151 |
/host/spi-builder-workspace/Sources/SignalHandling/DelayedSigaction/SigactionDelayer_Unsig.swift:154:45: error: cannot find 'DispatchQueue' in scope
152 | }
153 |
154 | private static let signalProcessingQueue = DispatchQueue(label: "com.xcode-actions.unsigactioned-signals-processing-queue")
| `- error: cannot find 'DispatchQueue' in scope
155 |
156 | /* Both these vars are only modified/read on the signal processing queue. */
[361/369] Compiling SignalHandling Sigaction.swift
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Sigaction.swift:48:24: error: cannot find type 'sigaction' in scope
46 | If the handler of the sigaction is `SIG_IGN` or `SIG_DFL`, we check the `sa_flags` not to contains the `SA_SIGINFO` bit.
47 | If they do, we log an error, as this is invalid. */
48 | public init(rawValue: sigaction) {
| `- error: cannot find type 'sigaction' in scope
49 | self.mask = Signal.set(from: rawValue.sa_mask)
50 | self.flags = SigactionFlags(rawValue: rawValue.sa_flags)
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Sigaction.swift:83:23: error: cannot find type 'sigaction' in scope
81 | }
82 |
83 | public var rawValue: sigaction {
| `- error: cannot find type 'sigaction' in scope
84 | if !isValid {
85 | 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:12:15: error: type 'Sigaction' does not conform to protocol 'RawRepresentable'
10 |
11 |
12 | public struct Sigaction : Equatable, RawRepresentable, Sendable {
| |- error: type 'Sigaction' does not conform to protocol 'RawRepresentable'
| `- note: add stubs for conformance
13 |
14 | 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:54:49: error: cannot find 'SIG_IGN' in scope
52 | #if !os(Linux)
53 | switch OpaquePointer(bitPattern: unsafeBitCast(rawValue.__sigaction_u.__sa_handler, to: Int.self)) {
54 | case OpaquePointer(bitPattern: unsafeBitCast(SIG_IGN, to: Int.self)): self.handler = .ignoreHandler
| `- error: cannot find 'SIG_IGN' in scope
55 | case OpaquePointer(bitPattern: unsafeBitCast(SIG_DFL, to: Int.self)): self.handler = .defaultHandler
56 | default:
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Sigaction.swift:55:49: error: cannot find 'SIG_DFL' in scope
53 | switch OpaquePointer(bitPattern: unsafeBitCast(rawValue.__sigaction_u.__sa_handler, to: Int.self)) {
54 | case OpaquePointer(bitPattern: unsafeBitCast(SIG_IGN, to: Int.self)): self.handler = .ignoreHandler
55 | case OpaquePointer(bitPattern: unsafeBitCast(SIG_DFL, to: Int.self)): self.handler = .defaultHandler
| `- error: cannot find 'SIG_DFL' in scope
56 | default:
57 | if flags.contains(.siginfo) {self.handler = .posix(rawValue.__sigaction_u.__sa_sigaction)}
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Sigaction.swift:76:16: error: cannot find 'sigaction' in scope
74 |
75 | public init(signal: Signal) throws {
76 | var action = sigaction()
| `- error: cannot find 'sigaction' in scope
77 | guard sigaction(signal.rawValue, nil, &action) == 0 else {
78 | throw SignalHandlingError.nonDestructiveSystemError(Errno(rawValue: errno))
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Sigaction.swift:77:9: error: cannot find 'sigaction' in scope
75 | public init(signal: Signal) throws {
76 | var action = sigaction()
77 | guard sigaction(signal.rawValue, nil, &action) == 0 else {
| `- error: cannot find 'sigaction' in scope
78 | throw SignalHandlingError.nonDestructiveSystemError(Errno(rawValue: errno))
79 | }
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Sigaction.swift:77:36: error: 'nil' requires a contextual type
75 | public init(signal: Signal) throws {
76 | var action = sigaction()
77 | guard sigaction(signal.rawValue, nil, &action) == 0 else {
| `- error: 'nil' requires a contextual type
78 | throw SignalHandlingError.nonDestructiveSystemError(Errno(rawValue: errno))
79 | }
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Sigaction.swift:80:8: error: no exact matches in call to initializer
32 | public var handler: SigactionHandler
33 |
34 | public init(handler: SigactionHandler) {
| `- note: incorrect labels for candidate (have: '(rawValue:)', expected: '(handler:)')
35 | self.mask = []
36 | switch handler {
:
73 | }
74 |
75 | public init(signal: Signal) throws {
| `- note: incorrect labels for candidate (have: '(rawValue:)', expected: '(signal:)')
76 | var action = sigaction()
77 | guard sigaction(signal.rawValue, nil, &action) == 0 else {
78 | throw SignalHandlingError.nonDestructiveSystemError(Errno(rawValue: errno))
79 | }
80 | self.init(rawValue: action)
| `- error: no exact matches in call to initializer
81 | }
82 |
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Sigaction.swift:88:13: error: cannot find 'sigaction' in scope
86 | }
87 |
88 | var ret = sigaction()
| `- error: cannot find 'sigaction' in scope
89 | ret.sa_mask = Signal.sigset(from: mask)
90 | ret.sa_flags = flags.rawValue
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Sigaction.swift:94:59: error: cannot find 'SIG_IGN' in scope
92 | #if !os(Linux)
93 | switch handler {
94 | case .ignoreHandler: ret.__sigaction_u.__sa_handler = SIG_IGN
| `- error: cannot find 'SIG_IGN' in scope
95 | case .defaultHandler: ret.__sigaction_u.__sa_handler = SIG_DFL
96 | case .ansiC(let h): ret.__sigaction_u.__sa_handler = h
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Sigaction.swift:95:59: error: cannot find 'SIG_DFL' in scope
93 | switch handler {
94 | case .ignoreHandler: ret.__sigaction_u.__sa_handler = SIG_IGN
95 | case .defaultHandler: ret.__sigaction_u.__sa_handler = SIG_DFL
| `- error: cannot find 'SIG_DFL' in scope
96 | case .ansiC(let h): ret.__sigaction_u.__sa_handler = h
97 | case .posix(let h): ret.__sigaction_u.__sa_sigaction = h
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Sigaction.swift:133:20: error: cannot find 'sigaction' in scope
131 | }
132 |
133 | var oldCAction = sigaction()
| `- error: cannot find 'sigaction' in scope
134 | var newCAction = self.rawValue
135 | guard sigaction(signal.rawValue, &newCAction, &oldCAction) == 0 else {
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Sigaction.swift:135:9: error: cannot find 'sigaction' in scope
133 | var oldCAction = sigaction()
134 | var newCAction = self.rawValue
135 | guard sigaction(signal.rawValue, &newCAction, &oldCAction) == 0 else {
| `- error: cannot find 'sigaction' in scope
136 | throw SignalHandlingError.nonDestructiveSystemError(Errno(rawValue: errno))
137 | }
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Sigaction.swift:138:22: error: no exact matches in call to initializer
32 | public var handler: SigactionHandler
33 |
34 | public init(handler: SigactionHandler) {
| `- note: incorrect labels for candidate (have: '(rawValue:)', expected: '(handler:)')
35 | self.mask = []
36 | switch handler {
:
73 | }
74 |
75 | public init(signal: Signal) throws {
| `- note: incorrect labels for candidate (have: '(rawValue:)', expected: '(signal:)')
76 | var action = sigaction()
77 | guard sigaction(signal.rawValue, nil, &action) == 0 else {
:
136 | throw SignalHandlingError.nonDestructiveSystemError(Errno(rawValue: errno))
137 | }
138 | let oldSigaction = Sigaction(rawValue: oldCAction)
| `- error: no exact matches in call to initializer
139 | if revertIfIgnored && oldSigaction == .ignoreAction {
140 | guard sigaction(signal.rawValue, &oldCAction, nil) == 0 else {
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Sigaction.swift:140:10: error: cannot find 'sigaction' in scope
138 | let oldSigaction = Sigaction(rawValue: oldCAction)
139 | if revertIfIgnored && oldSigaction == .ignoreAction {
140 | guard sigaction(signal.rawValue, &oldCAction, nil) == 0 else {
| `- error: cannot find 'sigaction' in scope
141 | throw SignalHandlingError.destructiveSystemError(Errno(rawValue: errno))
142 | }
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Sigaction.swift:140:50: error: 'nil' requires a contextual type
138 | let oldSigaction = Sigaction(rawValue: oldCAction)
139 | if revertIfIgnored && oldSigaction == .ignoreAction {
140 | guard sigaction(signal.rawValue, &oldCAction, nil) == 0 else {
| `- error: 'nil' requires a contextual type
141 | throw SignalHandlingError.destructiveSystemError(Errno(rawValue: errno))
142 | }
/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 | /**
[362/369] Compiling SignalHandling SigactionFlag.swift
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Sigaction.swift:48:24: error: cannot find type 'sigaction' in scope
46 | If the handler of the sigaction is `SIG_IGN` or `SIG_DFL`, we check the `sa_flags` not to contains the `SA_SIGINFO` bit.
47 | If they do, we log an error, as this is invalid. */
48 | public init(rawValue: sigaction) {
| `- error: cannot find type 'sigaction' in scope
49 | self.mask = Signal.set(from: rawValue.sa_mask)
50 | self.flags = SigactionFlags(rawValue: rawValue.sa_flags)
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Sigaction.swift:83:23: error: cannot find type 'sigaction' in scope
81 | }
82 |
83 | public var rawValue: sigaction {
| `- error: cannot find type 'sigaction' in scope
84 | if !isValid {
85 | 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:12:15: error: type 'Sigaction' does not conform to protocol 'RawRepresentable'
10 |
11 |
12 | public struct Sigaction : Equatable, RawRepresentable, Sendable {
| |- error: type 'Sigaction' does not conform to protocol 'RawRepresentable'
| `- note: add stubs for conformance
13 |
14 | 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:54:49: error: cannot find 'SIG_IGN' in scope
52 | #if !os(Linux)
53 | switch OpaquePointer(bitPattern: unsafeBitCast(rawValue.__sigaction_u.__sa_handler, to: Int.self)) {
54 | case OpaquePointer(bitPattern: unsafeBitCast(SIG_IGN, to: Int.self)): self.handler = .ignoreHandler
| `- error: cannot find 'SIG_IGN' in scope
55 | case OpaquePointer(bitPattern: unsafeBitCast(SIG_DFL, to: Int.self)): self.handler = .defaultHandler
56 | default:
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Sigaction.swift:55:49: error: cannot find 'SIG_DFL' in scope
53 | switch OpaquePointer(bitPattern: unsafeBitCast(rawValue.__sigaction_u.__sa_handler, to: Int.self)) {
54 | case OpaquePointer(bitPattern: unsafeBitCast(SIG_IGN, to: Int.self)): self.handler = .ignoreHandler
55 | case OpaquePointer(bitPattern: unsafeBitCast(SIG_DFL, to: Int.self)): self.handler = .defaultHandler
| `- error: cannot find 'SIG_DFL' in scope
56 | default:
57 | if flags.contains(.siginfo) {self.handler = .posix(rawValue.__sigaction_u.__sa_sigaction)}
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Sigaction.swift:76:16: error: cannot find 'sigaction' in scope
74 |
75 | public init(signal: Signal) throws {
76 | var action = sigaction()
| `- error: cannot find 'sigaction' in scope
77 | guard sigaction(signal.rawValue, nil, &action) == 0 else {
78 | throw SignalHandlingError.nonDestructiveSystemError(Errno(rawValue: errno))
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Sigaction.swift:77:9: error: cannot find 'sigaction' in scope
75 | public init(signal: Signal) throws {
76 | var action = sigaction()
77 | guard sigaction(signal.rawValue, nil, &action) == 0 else {
| `- error: cannot find 'sigaction' in scope
78 | throw SignalHandlingError.nonDestructiveSystemError(Errno(rawValue: errno))
79 | }
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Sigaction.swift:77:36: error: 'nil' requires a contextual type
75 | public init(signal: Signal) throws {
76 | var action = sigaction()
77 | guard sigaction(signal.rawValue, nil, &action) == 0 else {
| `- error: 'nil' requires a contextual type
78 | throw SignalHandlingError.nonDestructiveSystemError(Errno(rawValue: errno))
79 | }
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Sigaction.swift:80:8: error: no exact matches in call to initializer
32 | public var handler: SigactionHandler
33 |
34 | public init(handler: SigactionHandler) {
| `- note: incorrect labels for candidate (have: '(rawValue:)', expected: '(handler:)')
35 | self.mask = []
36 | switch handler {
:
73 | }
74 |
75 | public init(signal: Signal) throws {
| `- note: incorrect labels for candidate (have: '(rawValue:)', expected: '(signal:)')
76 | var action = sigaction()
77 | guard sigaction(signal.rawValue, nil, &action) == 0 else {
78 | throw SignalHandlingError.nonDestructiveSystemError(Errno(rawValue: errno))
79 | }
80 | self.init(rawValue: action)
| `- error: no exact matches in call to initializer
81 | }
82 |
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Sigaction.swift:88:13: error: cannot find 'sigaction' in scope
86 | }
87 |
88 | var ret = sigaction()
| `- error: cannot find 'sigaction' in scope
89 | ret.sa_mask = Signal.sigset(from: mask)
90 | ret.sa_flags = flags.rawValue
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Sigaction.swift:94:59: error: cannot find 'SIG_IGN' in scope
92 | #if !os(Linux)
93 | switch handler {
94 | case .ignoreHandler: ret.__sigaction_u.__sa_handler = SIG_IGN
| `- error: cannot find 'SIG_IGN' in scope
95 | case .defaultHandler: ret.__sigaction_u.__sa_handler = SIG_DFL
96 | case .ansiC(let h): ret.__sigaction_u.__sa_handler = h
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Sigaction.swift:95:59: error: cannot find 'SIG_DFL' in scope
93 | switch handler {
94 | case .ignoreHandler: ret.__sigaction_u.__sa_handler = SIG_IGN
95 | case .defaultHandler: ret.__sigaction_u.__sa_handler = SIG_DFL
| `- error: cannot find 'SIG_DFL' in scope
96 | case .ansiC(let h): ret.__sigaction_u.__sa_handler = h
97 | case .posix(let h): ret.__sigaction_u.__sa_sigaction = h
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Sigaction.swift:133:20: error: cannot find 'sigaction' in scope
131 | }
132 |
133 | var oldCAction = sigaction()
| `- error: cannot find 'sigaction' in scope
134 | var newCAction = self.rawValue
135 | guard sigaction(signal.rawValue, &newCAction, &oldCAction) == 0 else {
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Sigaction.swift:135:9: error: cannot find 'sigaction' in scope
133 | var oldCAction = sigaction()
134 | var newCAction = self.rawValue
135 | guard sigaction(signal.rawValue, &newCAction, &oldCAction) == 0 else {
| `- error: cannot find 'sigaction' in scope
136 | throw SignalHandlingError.nonDestructiveSystemError(Errno(rawValue: errno))
137 | }
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Sigaction.swift:138:22: error: no exact matches in call to initializer
32 | public var handler: SigactionHandler
33 |
34 | public init(handler: SigactionHandler) {
| `- note: incorrect labels for candidate (have: '(rawValue:)', expected: '(handler:)')
35 | self.mask = []
36 | switch handler {
:
73 | }
74 |
75 | public init(signal: Signal) throws {
| `- note: incorrect labels for candidate (have: '(rawValue:)', expected: '(signal:)')
76 | var action = sigaction()
77 | guard sigaction(signal.rawValue, nil, &action) == 0 else {
:
136 | throw SignalHandlingError.nonDestructiveSystemError(Errno(rawValue: errno))
137 | }
138 | let oldSigaction = Sigaction(rawValue: oldCAction)
| `- error: no exact matches in call to initializer
139 | if revertIfIgnored && oldSigaction == .ignoreAction {
140 | guard sigaction(signal.rawValue, &oldCAction, nil) == 0 else {
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Sigaction.swift:140:10: error: cannot find 'sigaction' in scope
138 | let oldSigaction = Sigaction(rawValue: oldCAction)
139 | if revertIfIgnored && oldSigaction == .ignoreAction {
140 | guard sigaction(signal.rawValue, &oldCAction, nil) == 0 else {
| `- error: cannot find 'sigaction' in scope
141 | throw SignalHandlingError.destructiveSystemError(Errno(rawValue: errno))
142 | }
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Sigaction.swift:140:50: error: 'nil' requires a contextual type
138 | let oldSigaction = Sigaction(rawValue: oldCAction)
139 | if revertIfIgnored && oldSigaction == .ignoreAction {
140 | guard sigaction(signal.rawValue, &oldCAction, nil) == 0 else {
| `- error: 'nil' requires a contextual type
141 | throw SignalHandlingError.destructiveSystemError(Errno(rawValue: errno))
142 | }
/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 | /**
[363/369] Compiling SignalHandling Utils.swift
[364/369] 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:109:50: error: cannot find 'SIGTERM' in scope
107 |
108 | /** “Normal” kill signal. */
109 | public static let terminated = Signal(rawValue: SIGTERM)
| `- error: cannot find 'SIGTERM' in scope
110 | /** Usually `Ctrl-C`. */
111 | public static let interrupt = Signal(rawValue: SIGINT)
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Signal.swift:111:50: error: cannot find 'SIGINT' in scope
109 | public static let terminated = Signal(rawValue: SIGTERM)
110 | /** Usually `Ctrl-C`. */
111 | public static let interrupt = Signal(rawValue: SIGINT)
| `- error: cannot find 'SIGINT' in scope
112 | /** Used to quit w/ generation of a core dump. Usually `Ctrl-\`. */
113 | public static let quit = Signal(rawValue: SIGQUIT)
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Signal.swift:113:50: error: cannot find 'SIGQUIT' in scope
111 | public static let interrupt = Signal(rawValue: SIGINT)
112 | /** Used to quit w/ generation of a core dump. Usually `Ctrl-\`. */
113 | public static let quit = Signal(rawValue: SIGQUIT)
| `- error: cannot find 'SIGQUIT' in scope
114 | public static let killed = Signal(rawValue: SIGKILL)
115 | /** The user’s terminal disconnected. */
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Signal.swift:116:50: error: cannot find 'SIGHUP' in scope
114 | public static let killed = Signal(rawValue: SIGKILL)
115 | /** The user’s terminal disconnected. */
116 | public static let hangup = Signal(rawValue: SIGHUP)
| `- error: cannot find 'SIGHUP' in scope
117 |
118 | /* *** Alarm Signals *** */
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Signal.swift:172:57: error: cannot find 'SIGTSTP' in scope
170 | public static let suspendedBySignal = Signal(rawValue: SIGSTOP)
171 | /** Suspends the program but can be handled and ignored. Usually `Ctrl-Z`. */
172 | public static let suspended = Signal(rawValue: SIGTSTP)
| `- error: cannot find 'SIGTSTP' in scope
173 | public static let stoppedTTYInput = Signal(rawValue: SIGTTIN)
174 | public static let stoppedTTYOutput = Signal(rawValue: SIGTTOU)
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Signal.swift:168:57: error: cannot find 'SIGCONT' in scope
166 | /* Obsolete name for SIGCHLD. */
167 | // public static let cildExited = Signal(rawValue: SIGCLD)
168 | public static let continued = Signal(rawValue: SIGCONT)
| `- error: cannot find 'SIGCONT' in scope
169 | /** Suspends the program. Cannot be handled, ignored or blocked. */
170 | public static let suspendedBySignal = Signal(rawValue: SIGSTOP)
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Signal.swift:80:62: error: cannot find 'SIGFPE' in scope
78 | /**
79 | - Note: FPE means Floating-Point Exception but this signal is sent for any arithmetic error. */
80 | public static let arithmeticError = Signal(rawValue: SIGFPE)
| `- error: cannot find 'SIGFPE' in scope
81 | @available(*, unavailable, renamed: "arithmeticError")
82 | public static let floatingPointException = Signal(rawValue: SIGFPE)
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Signal.swift:82:62: error: cannot find 'SIGFPE' in scope
80 | public static let arithmeticError = Signal(rawValue: SIGFPE)
81 | @available(*, unavailable, renamed: "arithmeticError")
82 | public static let floatingPointException = Signal(rawValue: SIGFPE)
| `- error: cannot find 'SIGFPE' in scope
83 | public static let illegalInstruction = Signal(rawValue: SIGILL)
84 | public static let segmentationFault = Signal(rawValue: SIGSEGV)
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Signal.swift:83:62: error: cannot find 'SIGILL' in scope
81 | @available(*, unavailable, renamed: "arithmeticError")
82 | public static let floatingPointException = Signal(rawValue: SIGFPE)
83 | public static let illegalInstruction = Signal(rawValue: SIGILL)
| `- error: cannot find 'SIGILL' in scope
84 | public static let segmentationFault = Signal(rawValue: SIGSEGV)
85 | public static let busError = Signal(rawValue: SIGBUS)
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Signal.swift:84:62: error: cannot find 'SIGSEGV' in scope
82 | public static let floatingPointException = Signal(rawValue: SIGFPE)
83 | public static let illegalInstruction = Signal(rawValue: SIGILL)
84 | public static let segmentationFault = Signal(rawValue: SIGSEGV)
| `- error: cannot find 'SIGSEGV' in scope
85 | public static let busError = Signal(rawValue: SIGBUS)
86 | public static let abortTrap = Signal(rawValue: SIGABRT)
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Signal.swift:85:62: error: cannot find 'SIGBUS' in scope
83 | public static let illegalInstruction = Signal(rawValue: SIGILL)
84 | public static let segmentationFault = Signal(rawValue: SIGSEGV)
85 | public static let busError = Signal(rawValue: SIGBUS)
| `- error: cannot find 'SIGBUS' in scope
86 | public static let abortTrap = Signal(rawValue: SIGABRT)
87 | /** Usually the same as `abortTrap`. */
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Signal.swift:86:62: error: cannot find 'SIGABRT' in scope
84 | public static let segmentationFault = Signal(rawValue: SIGSEGV)
85 | public static let busError = Signal(rawValue: SIGBUS)
86 | public static let abortTrap = Signal(rawValue: SIGABRT)
| `- error: cannot find 'SIGABRT' in scope
87 | /** Usually the same as `abortTrap`. */
88 | public static let iot = Signal(rawValue: SIGIOT)
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Signal.swift:88:62: error: cannot find 'SIGIOT' in scope
86 | public static let abortTrap = Signal(rawValue: SIGABRT)
87 | /** Usually the same as `abortTrap`. */
88 | public static let iot = Signal(rawValue: SIGIOT)
| `- error: cannot find 'SIGIOT' in scope
89 | public static let traceBreakpointTrap = Signal(rawValue: SIGTRAP)
90 | #if !os(Linux)
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Signal.swift:89:62: error: cannot find 'SIGTRAP' in scope
87 | /** Usually the same as `abortTrap`. */
88 | public static let iot = Signal(rawValue: SIGIOT)
89 | public static let traceBreakpointTrap = Signal(rawValue: SIGTRAP)
| `- error: cannot find 'SIGTRAP' in scope
90 | #if !os(Linux)
91 | public static let emulatorTrap = Signal(rawValue: SIGEMT)
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Signal.swift:91:62: error: cannot find 'SIGEMT' in scope
89 | public static let traceBreakpointTrap = Signal(rawValue: SIGTRAP)
90 | #if !os(Linux)
91 | public static let emulatorTrap = Signal(rawValue: SIGEMT)
| `- error: cannot find 'SIGEMT' in scope
92 | #endif
93 | public static let badSystemCall = Signal(rawValue: SIGSYS)
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Signal.swift:93:62: error: cannot find 'SIGSYS' in scope
91 | public static let emulatorTrap = Signal(rawValue: SIGEMT)
92 | #endif
93 | public static let badSystemCall = Signal(rawValue: SIGSYS)
| `- error: cannot find 'SIGSYS' in scope
94 |
95 | /* *** Termination Signals *** */
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Signal.swift:114:50: error: cannot find 'SIGKILL' in scope
112 | /** Used to quit w/ generation of a core dump. Usually `Ctrl-\`. */
113 | public static let quit = Signal(rawValue: SIGQUIT)
114 | public static let killed = Signal(rawValue: SIGKILL)
| `- error: cannot find 'SIGKILL' in scope
115 | /** The user’s terminal disconnected. */
116 | public static let hangup = Signal(rawValue: SIGHUP)
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Signal.swift:129:61: error: cannot find 'SIGALRM' in scope
127 | }
128 |
129 | public static let alarmClock = Signal(rawValue: SIGALRM)
| `- error: cannot find 'SIGALRM' in scope
130 | public static let virtualTimerExpired = Signal(rawValue: SIGVTALRM)
131 | public static let profilingTimerExpired = Signal(rawValue: SIGPROF)
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Signal.swift:130:61: error: cannot find 'SIGVTALRM' in scope
128 |
129 | public static let alarmClock = Signal(rawValue: SIGALRM)
130 | public static let virtualTimerExpired = Signal(rawValue: SIGVTALRM)
| `- error: cannot find 'SIGVTALRM' in scope
131 | public static let profilingTimerExpired = Signal(rawValue: SIGPROF)
132 |
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Signal.swift:131:61: error: cannot find 'SIGPROF' in scope
129 | public static let alarmClock = Signal(rawValue: SIGALRM)
130 | public static let virtualTimerExpired = Signal(rawValue: SIGVTALRM)
131 | public static let profilingTimerExpired = Signal(rawValue: SIGPROF)
| `- error: cannot find 'SIGPROF' in scope
132 |
133 | /* *** Asynchronous I/O Signals *** */
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Signal.swift:144:57: error: cannot find 'SIGIO' in scope
142 | }
143 |
144 | public static let ioPossible = Signal(rawValue: SIGIO)
| `- error: cannot find 'SIGIO' in scope
145 | public static let urgentIOCondition = Signal(rawValue: SIGURG)
146 | #if os(Linux)
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Signal.swift:145:57: error: cannot find 'SIGURG' in scope
143 |
144 | public static let ioPossible = Signal(rawValue: SIGIO)
145 | public static let urgentIOCondition = Signal(rawValue: SIGURG)
| `- error: cannot find 'SIGURG' in scope
146 | #if os(Linux)
147 | /** System V signal name, similar to SIGIO. */
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Signal.swift:165:57: error: cannot find 'SIGCHLD' in scope
163 | }
164 |
165 | public static let childExited = Signal(rawValue: SIGCHLD)
| `- error: cannot find 'SIGCHLD' in scope
166 | /* Obsolete name for SIGCHLD. */
167 | // public static let cildExited = Signal(rawValue: SIGCLD)
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Signal.swift:170:57: error: cannot find 'SIGSTOP' in scope
168 | public static let continued = Signal(rawValue: SIGCONT)
169 | /** Suspends the program. Cannot be handled, ignored or blocked. */
170 | public static let suspendedBySignal = Signal(rawValue: SIGSTOP)
| `- error: cannot find 'SIGSTOP' in scope
171 | /** Suspends the program but can be handled and ignored. Usually `Ctrl-Z`. */
172 | public static let suspended = Signal(rawValue: SIGTSTP)
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Signal.swift:173:57: error: cannot find 'SIGTTIN' in scope
171 | /** Suspends the program but can be handled and ignored. Usually `Ctrl-Z`. */
172 | public static let suspended = Signal(rawValue: SIGTSTP)
173 | public static let stoppedTTYInput = Signal(rawValue: SIGTTIN)
| `- error: cannot find 'SIGTTIN' in scope
174 | public static let stoppedTTYOutput = Signal(rawValue: SIGTTOU)
175 |
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Signal.swift:174:57: error: cannot find 'SIGTTOU' in scope
172 | public static let suspended = Signal(rawValue: SIGTSTP)
173 | public static let stoppedTTYInput = Signal(rawValue: SIGTTIN)
174 | public static let stoppedTTYOutput = Signal(rawValue: SIGTTOU)
| `- error: cannot find 'SIGTTOU' in scope
175 |
176 | /* *** Operation Error Signals *** */
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Signal.swift:187:61: error: cannot find 'SIGPIPE' in scope
185 | }
186 |
187 | public static let brokenPipe = Signal(rawValue: SIGPIPE)
| `- error: cannot find 'SIGPIPE' in scope
188 | // public static let resourceLost = Signal(rawValue: SIGLOST)
189 | public static let cputimeLimitExceeded = Signal(rawValue: SIGXCPU)
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Signal.swift:189:61: error: cannot find 'SIGXCPU' in scope
187 | public static let brokenPipe = Signal(rawValue: SIGPIPE)
188 | // public static let resourceLost = Signal(rawValue: SIGLOST)
189 | public static let cputimeLimitExceeded = Signal(rawValue: SIGXCPU)
| `- error: cannot find 'SIGXCPU' in scope
190 | public static let filesizeLimitExceeded = Signal(rawValue: SIGXFSZ)
191 |
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Signal.swift:190:61: error: cannot find 'SIGXFSZ' in scope
188 | // public static let resourceLost = Signal(rawValue: SIGLOST)
189 | public static let cputimeLimitExceeded = Signal(rawValue: SIGXCPU)
190 | public static let filesizeLimitExceeded = Signal(rawValue: SIGXFSZ)
| `- error: cannot find 'SIGXFSZ' in scope
191 |
192 | /* *** Miscellaneous Signals *** */
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Signal.swift:209:58: error: cannot find 'SIGUSR1' in scope
207 | }
208 |
209 | public static let userDefinedSignal1 = Signal(rawValue: SIGUSR1)
| `- error: cannot find 'SIGUSR1' in scope
210 | public static let userDefinedSignal2 = Signal(rawValue: SIGUSR2)
211 | public static let windowSizeChanges = Signal(rawValue: SIGWINCH)
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Signal.swift:210:58: error: cannot find 'SIGUSR2' in scope
208 |
209 | public static let userDefinedSignal1 = Signal(rawValue: SIGUSR1)
210 | public static let userDefinedSignal2 = Signal(rawValue: SIGUSR2)
| `- error: cannot find 'SIGUSR2' in scope
211 | public static let windowSizeChanges = Signal(rawValue: SIGWINCH)
212 | #if !os(Linux)
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Signal.swift:211:58: error: cannot find 'SIGWINCH' in scope
209 | public static let userDefinedSignal1 = Signal(rawValue: SIGUSR1)
210 | public static let userDefinedSignal2 = Signal(rawValue: SIGUSR2)
211 | public static let windowSizeChanges = Signal(rawValue: SIGWINCH)
| `- error: cannot find 'SIGWINCH' in scope
212 | #if !os(Linux)
213 | public static let informationRequest = Signal(rawValue: SIGINFO)
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Signal.swift:213:58: error: cannot find 'SIGINFO' in scope
211 | public static let windowSizeChanges = Signal(rawValue: SIGWINCH)
212 | #if !os(Linux)
213 | public static let informationRequest = Signal(rawValue: SIGINFO)
| `- error: cannot find 'SIGINFO' in scope
214 | #endif
215 |
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Signal.swift:238:3: error: cannot find 'sigemptyset' in scope
236 | public static let emptySigset: sigset_t = {
237 | var sigset = sigset_t()
238 | sigemptyset(&sigset)
| `- error: cannot find 'sigemptyset' in scope
239 | return sigset
240 | }()
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Signal.swift:248:3: error: cannot find 'sigfillset' in scope
246 | public static let fullSigset: sigset_t = {
247 | var sigset = sigset_t()
248 | sigfillset(&sigset)
| `- error: cannot find 'sigfillset' in scope
249 | return sigset
250 | }()
/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:233:19: error: cannot find 'NSIG' in scope
231 | public static func set(from sigset: sigset_t) -> Set<Signal> {
232 | var sigset = sigset
233 | return Set((1..<NSIG).filter{ sigismember(&sigset, $0) != 0 }.map{ Signal(rawValue: $0) })
| `- error: cannot find 'NSIG' in scope
234 | }
235 |
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Signal.swift:233:33: error: cannot find 'sigismember' in scope
231 | public static func set(from sigset: sigset_t) -> Set<Signal> {
232 | var sigset = sigset
233 | return Set((1..<NSIG).filter{ sigismember(&sigset, $0) != 0 }.map{ Signal(rawValue: $0) })
| `- error: cannot find 'sigismember' in scope
234 | }
235 |
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Signal.swift:254:3: error: cannot find 'sigemptyset' in scope
252 | public static func sigset(from setOfSignals: Set<Signal>) -> sigset_t {
253 | var sigset = sigset_t()
254 | sigemptyset(&sigset)
| `- error: cannot find 'sigemptyset' in scope
255 | for s in setOfSignals {sigaddset(&sigset, s.rawValue)}
256 | return sigset
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Signal.swift:255:26: error: cannot find 'sigaddset' in scope
253 | var sigset = sigset_t()
254 | sigemptyset(&sigset)
255 | for s in setOfSignals {sigaddset(&sigset, s.rawValue)}
| `- error: cannot find 'sigaddset' in scope
256 | return sigset
257 | }
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Signal.swift:263:3: error: cannot find 'sigemptyset' in scope
261 | public var sigset: sigset_t {
262 | var sigset = sigset_t()
263 | sigemptyset(&sigset)
| `- error: cannot find 'sigemptyset' in scope
264 | sigaddset(&sigset, rawValue)
265 | return sigset
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Signal.swift:264:3: error: cannot find 'sigaddset' in scope
262 | var sigset = sigset_t()
263 | sigemptyset(&sigset)
264 | sigaddset(&sigset, rawValue)
| `- error: cannot find 'sigaddset' in scope
265 | return sigset
266 | }
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Signal.swift:275:37: error: cannot find 'NSIG' in scope
273 | public var signalName: String? {
274 | #if !os(Linux)
275 | guard rawValue >= 0 && rawValue < NSIG else {
| `- error: cannot find 'NSIG' in scope
276 | return nil
277 | }
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Signal.swift:279:32: error: cannot find 'sys_signame' in scope
277 | }
278 |
279 | return withUnsafePointer(to: sys_signame, { siglistPtr in
| `- error: cannot find 'sys_signame' in scope
280 | return siglistPtr.withMemoryRebound(to: UnsafePointer<UInt8>?.self, capacity: Int(NSIG), { siglistPtrAsPointerToCStrings in
281 | return siglistPtrAsPointerToCStrings.advanced(by: Int(rawValue)).pointee.flatMap{ String(cString: $0) }
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Signal.swift:280:86: error: cannot find 'NSIG' in scope
278 |
279 | return withUnsafePointer(to: sys_signame, { siglistPtr in
280 | return siglistPtr.withMemoryRebound(to: UnsafePointer<UInt8>?.self, capacity: Int(NSIG), { siglistPtrAsPointerToCStrings in
| `- error: cannot find 'NSIG' in scope
281 | return siglistPtrAsPointerToCStrings.advanced(by: Int(rawValue)).pointee.flatMap{ String(cString: $0) }
282 | })
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Signal.swift:302:37: error: cannot find 'NSIG' in scope
300 | public var signalDescription: String? {
301 | #if !os(Linux)
302 | guard rawValue >= 0 && rawValue < NSIG else {
| `- error: cannot find 'NSIG' in scope
303 | return nil
304 | }
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Signal.swift:306:32: error: cannot find 'sys_siglist' in scope
304 | }
305 |
306 | return withUnsafePointer(to: sys_siglist, { siglistPtr in
| `- error: cannot find 'sys_siglist' in scope
307 | return siglistPtr.withMemoryRebound(to: UnsafePointer<UInt8>?.self, capacity: Int(NSIG), { siglistPtrAsPointerToCStrings in
308 | return siglistPtrAsPointerToCStrings.advanced(by: Int(rawValue)).pointee.flatMap{ String(cString: $0) }
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Signal.swift:307:86: error: cannot find 'NSIG' in scope
305 |
306 | return withUnsafePointer(to: sys_siglist, { siglistPtr in
307 | return siglistPtr.withMemoryRebound(to: UnsafePointer<UInt8>?.self, capacity: Int(NSIG), { siglistPtrAsPointerToCStrings in
| `- error: cannot find 'NSIG' in scope
308 | return siglistPtrAsPointerToCStrings.advanced(by: Int(rawValue)).pointee.flatMap{ String(cString: $0) }
309 | })
[365/369] 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:109:50: error: cannot find 'SIGTERM' in scope
107 |
108 | /** “Normal” kill signal. */
109 | public static let terminated = Signal(rawValue: SIGTERM)
| `- error: cannot find 'SIGTERM' in scope
110 | /** Usually `Ctrl-C`. */
111 | public static let interrupt = Signal(rawValue: SIGINT)
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Signal.swift:111:50: error: cannot find 'SIGINT' in scope
109 | public static let terminated = Signal(rawValue: SIGTERM)
110 | /** Usually `Ctrl-C`. */
111 | public static let interrupt = Signal(rawValue: SIGINT)
| `- error: cannot find 'SIGINT' in scope
112 | /** Used to quit w/ generation of a core dump. Usually `Ctrl-\`. */
113 | public static let quit = Signal(rawValue: SIGQUIT)
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Signal.swift:113:50: error: cannot find 'SIGQUIT' in scope
111 | public static let interrupt = Signal(rawValue: SIGINT)
112 | /** Used to quit w/ generation of a core dump. Usually `Ctrl-\`. */
113 | public static let quit = Signal(rawValue: SIGQUIT)
| `- error: cannot find 'SIGQUIT' in scope
114 | public static let killed = Signal(rawValue: SIGKILL)
115 | /** The user’s terminal disconnected. */
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Signal.swift:116:50: error: cannot find 'SIGHUP' in scope
114 | public static let killed = Signal(rawValue: SIGKILL)
115 | /** The user’s terminal disconnected. */
116 | public static let hangup = Signal(rawValue: SIGHUP)
| `- error: cannot find 'SIGHUP' in scope
117 |
118 | /* *** Alarm Signals *** */
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Signal.swift:172:57: error: cannot find 'SIGTSTP' in scope
170 | public static let suspendedBySignal = Signal(rawValue: SIGSTOP)
171 | /** Suspends the program but can be handled and ignored. Usually `Ctrl-Z`. */
172 | public static let suspended = Signal(rawValue: SIGTSTP)
| `- error: cannot find 'SIGTSTP' in scope
173 | public static let stoppedTTYInput = Signal(rawValue: SIGTTIN)
174 | public static let stoppedTTYOutput = Signal(rawValue: SIGTTOU)
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Signal.swift:168:57: error: cannot find 'SIGCONT' in scope
166 | /* Obsolete name for SIGCHLD. */
167 | // public static let cildExited = Signal(rawValue: SIGCLD)
168 | public static let continued = Signal(rawValue: SIGCONT)
| `- error: cannot find 'SIGCONT' in scope
169 | /** Suspends the program. Cannot be handled, ignored or blocked. */
170 | public static let suspendedBySignal = Signal(rawValue: SIGSTOP)
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Signal.swift:80:62: error: cannot find 'SIGFPE' in scope
78 | /**
79 | - Note: FPE means Floating-Point Exception but this signal is sent for any arithmetic error. */
80 | public static let arithmeticError = Signal(rawValue: SIGFPE)
| `- error: cannot find 'SIGFPE' in scope
81 | @available(*, unavailable, renamed: "arithmeticError")
82 | public static let floatingPointException = Signal(rawValue: SIGFPE)
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Signal.swift:82:62: error: cannot find 'SIGFPE' in scope
80 | public static let arithmeticError = Signal(rawValue: SIGFPE)
81 | @available(*, unavailable, renamed: "arithmeticError")
82 | public static let floatingPointException = Signal(rawValue: SIGFPE)
| `- error: cannot find 'SIGFPE' in scope
83 | public static let illegalInstruction = Signal(rawValue: SIGILL)
84 | public static let segmentationFault = Signal(rawValue: SIGSEGV)
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Signal.swift:83:62: error: cannot find 'SIGILL' in scope
81 | @available(*, unavailable, renamed: "arithmeticError")
82 | public static let floatingPointException = Signal(rawValue: SIGFPE)
83 | public static let illegalInstruction = Signal(rawValue: SIGILL)
| `- error: cannot find 'SIGILL' in scope
84 | public static let segmentationFault = Signal(rawValue: SIGSEGV)
85 | public static let busError = Signal(rawValue: SIGBUS)
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Signal.swift:84:62: error: cannot find 'SIGSEGV' in scope
82 | public static let floatingPointException = Signal(rawValue: SIGFPE)
83 | public static let illegalInstruction = Signal(rawValue: SIGILL)
84 | public static let segmentationFault = Signal(rawValue: SIGSEGV)
| `- error: cannot find 'SIGSEGV' in scope
85 | public static let busError = Signal(rawValue: SIGBUS)
86 | public static let abortTrap = Signal(rawValue: SIGABRT)
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Signal.swift:85:62: error: cannot find 'SIGBUS' in scope
83 | public static let illegalInstruction = Signal(rawValue: SIGILL)
84 | public static let segmentationFault = Signal(rawValue: SIGSEGV)
85 | public static let busError = Signal(rawValue: SIGBUS)
| `- error: cannot find 'SIGBUS' in scope
86 | public static let abortTrap = Signal(rawValue: SIGABRT)
87 | /** Usually the same as `abortTrap`. */
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Signal.swift:86:62: error: cannot find 'SIGABRT' in scope
84 | public static let segmentationFault = Signal(rawValue: SIGSEGV)
85 | public static let busError = Signal(rawValue: SIGBUS)
86 | public static let abortTrap = Signal(rawValue: SIGABRT)
| `- error: cannot find 'SIGABRT' in scope
87 | /** Usually the same as `abortTrap`. */
88 | public static let iot = Signal(rawValue: SIGIOT)
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Signal.swift:88:62: error: cannot find 'SIGIOT' in scope
86 | public static let abortTrap = Signal(rawValue: SIGABRT)
87 | /** Usually the same as `abortTrap`. */
88 | public static let iot = Signal(rawValue: SIGIOT)
| `- error: cannot find 'SIGIOT' in scope
89 | public static let traceBreakpointTrap = Signal(rawValue: SIGTRAP)
90 | #if !os(Linux)
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Signal.swift:89:62: error: cannot find 'SIGTRAP' in scope
87 | /** Usually the same as `abortTrap`. */
88 | public static let iot = Signal(rawValue: SIGIOT)
89 | public static let traceBreakpointTrap = Signal(rawValue: SIGTRAP)
| `- error: cannot find 'SIGTRAP' in scope
90 | #if !os(Linux)
91 | public static let emulatorTrap = Signal(rawValue: SIGEMT)
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Signal.swift:91:62: error: cannot find 'SIGEMT' in scope
89 | public static let traceBreakpointTrap = Signal(rawValue: SIGTRAP)
90 | #if !os(Linux)
91 | public static let emulatorTrap = Signal(rawValue: SIGEMT)
| `- error: cannot find 'SIGEMT' in scope
92 | #endif
93 | public static let badSystemCall = Signal(rawValue: SIGSYS)
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Signal.swift:93:62: error: cannot find 'SIGSYS' in scope
91 | public static let emulatorTrap = Signal(rawValue: SIGEMT)
92 | #endif
93 | public static let badSystemCall = Signal(rawValue: SIGSYS)
| `- error: cannot find 'SIGSYS' in scope
94 |
95 | /* *** Termination Signals *** */
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Signal.swift:114:50: error: cannot find 'SIGKILL' in scope
112 | /** Used to quit w/ generation of a core dump. Usually `Ctrl-\`. */
113 | public static let quit = Signal(rawValue: SIGQUIT)
114 | public static let killed = Signal(rawValue: SIGKILL)
| `- error: cannot find 'SIGKILL' in scope
115 | /** The user’s terminal disconnected. */
116 | public static let hangup = Signal(rawValue: SIGHUP)
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Signal.swift:129:61: error: cannot find 'SIGALRM' in scope
127 | }
128 |
129 | public static let alarmClock = Signal(rawValue: SIGALRM)
| `- error: cannot find 'SIGALRM' in scope
130 | public static let virtualTimerExpired = Signal(rawValue: SIGVTALRM)
131 | public static let profilingTimerExpired = Signal(rawValue: SIGPROF)
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Signal.swift:130:61: error: cannot find 'SIGVTALRM' in scope
128 |
129 | public static let alarmClock = Signal(rawValue: SIGALRM)
130 | public static let virtualTimerExpired = Signal(rawValue: SIGVTALRM)
| `- error: cannot find 'SIGVTALRM' in scope
131 | public static let profilingTimerExpired = Signal(rawValue: SIGPROF)
132 |
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Signal.swift:131:61: error: cannot find 'SIGPROF' in scope
129 | public static let alarmClock = Signal(rawValue: SIGALRM)
130 | public static let virtualTimerExpired = Signal(rawValue: SIGVTALRM)
131 | public static let profilingTimerExpired = Signal(rawValue: SIGPROF)
| `- error: cannot find 'SIGPROF' in scope
132 |
133 | /* *** Asynchronous I/O Signals *** */
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Signal.swift:144:57: error: cannot find 'SIGIO' in scope
142 | }
143 |
144 | public static let ioPossible = Signal(rawValue: SIGIO)
| `- error: cannot find 'SIGIO' in scope
145 | public static let urgentIOCondition = Signal(rawValue: SIGURG)
146 | #if os(Linux)
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Signal.swift:145:57: error: cannot find 'SIGURG' in scope
143 |
144 | public static let ioPossible = Signal(rawValue: SIGIO)
145 | public static let urgentIOCondition = Signal(rawValue: SIGURG)
| `- error: cannot find 'SIGURG' in scope
146 | #if os(Linux)
147 | /** System V signal name, similar to SIGIO. */
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Signal.swift:165:57: error: cannot find 'SIGCHLD' in scope
163 | }
164 |
165 | public static let childExited = Signal(rawValue: SIGCHLD)
| `- error: cannot find 'SIGCHLD' in scope
166 | /* Obsolete name for SIGCHLD. */
167 | // public static let cildExited = Signal(rawValue: SIGCLD)
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Signal.swift:170:57: error: cannot find 'SIGSTOP' in scope
168 | public static let continued = Signal(rawValue: SIGCONT)
169 | /** Suspends the program. Cannot be handled, ignored or blocked. */
170 | public static let suspendedBySignal = Signal(rawValue: SIGSTOP)
| `- error: cannot find 'SIGSTOP' in scope
171 | /** Suspends the program but can be handled and ignored. Usually `Ctrl-Z`. */
172 | public static let suspended = Signal(rawValue: SIGTSTP)
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Signal.swift:173:57: error: cannot find 'SIGTTIN' in scope
171 | /** Suspends the program but can be handled and ignored. Usually `Ctrl-Z`. */
172 | public static let suspended = Signal(rawValue: SIGTSTP)
173 | public static let stoppedTTYInput = Signal(rawValue: SIGTTIN)
| `- error: cannot find 'SIGTTIN' in scope
174 | public static let stoppedTTYOutput = Signal(rawValue: SIGTTOU)
175 |
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Signal.swift:174:57: error: cannot find 'SIGTTOU' in scope
172 | public static let suspended = Signal(rawValue: SIGTSTP)
173 | public static let stoppedTTYInput = Signal(rawValue: SIGTTIN)
174 | public static let stoppedTTYOutput = Signal(rawValue: SIGTTOU)
| `- error: cannot find 'SIGTTOU' in scope
175 |
176 | /* *** Operation Error Signals *** */
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Signal.swift:187:61: error: cannot find 'SIGPIPE' in scope
185 | }
186 |
187 | public static let brokenPipe = Signal(rawValue: SIGPIPE)
| `- error: cannot find 'SIGPIPE' in scope
188 | // public static let resourceLost = Signal(rawValue: SIGLOST)
189 | public static let cputimeLimitExceeded = Signal(rawValue: SIGXCPU)
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Signal.swift:189:61: error: cannot find 'SIGXCPU' in scope
187 | public static let brokenPipe = Signal(rawValue: SIGPIPE)
188 | // public static let resourceLost = Signal(rawValue: SIGLOST)
189 | public static let cputimeLimitExceeded = Signal(rawValue: SIGXCPU)
| `- error: cannot find 'SIGXCPU' in scope
190 | public static let filesizeLimitExceeded = Signal(rawValue: SIGXFSZ)
191 |
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Signal.swift:190:61: error: cannot find 'SIGXFSZ' in scope
188 | // public static let resourceLost = Signal(rawValue: SIGLOST)
189 | public static let cputimeLimitExceeded = Signal(rawValue: SIGXCPU)
190 | public static let filesizeLimitExceeded = Signal(rawValue: SIGXFSZ)
| `- error: cannot find 'SIGXFSZ' in scope
191 |
192 | /* *** Miscellaneous Signals *** */
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Signal.swift:209:58: error: cannot find 'SIGUSR1' in scope
207 | }
208 |
209 | public static let userDefinedSignal1 = Signal(rawValue: SIGUSR1)
| `- error: cannot find 'SIGUSR1' in scope
210 | public static let userDefinedSignal2 = Signal(rawValue: SIGUSR2)
211 | public static let windowSizeChanges = Signal(rawValue: SIGWINCH)
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Signal.swift:210:58: error: cannot find 'SIGUSR2' in scope
208 |
209 | public static let userDefinedSignal1 = Signal(rawValue: SIGUSR1)
210 | public static let userDefinedSignal2 = Signal(rawValue: SIGUSR2)
| `- error: cannot find 'SIGUSR2' in scope
211 | public static let windowSizeChanges = Signal(rawValue: SIGWINCH)
212 | #if !os(Linux)
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Signal.swift:211:58: error: cannot find 'SIGWINCH' in scope
209 | public static let userDefinedSignal1 = Signal(rawValue: SIGUSR1)
210 | public static let userDefinedSignal2 = Signal(rawValue: SIGUSR2)
211 | public static let windowSizeChanges = Signal(rawValue: SIGWINCH)
| `- error: cannot find 'SIGWINCH' in scope
212 | #if !os(Linux)
213 | public static let informationRequest = Signal(rawValue: SIGINFO)
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Signal.swift:213:58: error: cannot find 'SIGINFO' in scope
211 | public static let windowSizeChanges = Signal(rawValue: SIGWINCH)
212 | #if !os(Linux)
213 | public static let informationRequest = Signal(rawValue: SIGINFO)
| `- error: cannot find 'SIGINFO' in scope
214 | #endif
215 |
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Signal.swift:238:3: error: cannot find 'sigemptyset' in scope
236 | public static let emptySigset: sigset_t = {
237 | var sigset = sigset_t()
238 | sigemptyset(&sigset)
| `- error: cannot find 'sigemptyset' in scope
239 | return sigset
240 | }()
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Signal.swift:248:3: error: cannot find 'sigfillset' in scope
246 | public static let fullSigset: sigset_t = {
247 | var sigset = sigset_t()
248 | sigfillset(&sigset)
| `- error: cannot find 'sigfillset' in scope
249 | return sigset
250 | }()
/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:233:19: error: cannot find 'NSIG' in scope
231 | public static func set(from sigset: sigset_t) -> Set<Signal> {
232 | var sigset = sigset
233 | return Set((1..<NSIG).filter{ sigismember(&sigset, $0) != 0 }.map{ Signal(rawValue: $0) })
| `- error: cannot find 'NSIG' in scope
234 | }
235 |
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Signal.swift:233:33: error: cannot find 'sigismember' in scope
231 | public static func set(from sigset: sigset_t) -> Set<Signal> {
232 | var sigset = sigset
233 | return Set((1..<NSIG).filter{ sigismember(&sigset, $0) != 0 }.map{ Signal(rawValue: $0) })
| `- error: cannot find 'sigismember' in scope
234 | }
235 |
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Signal.swift:254:3: error: cannot find 'sigemptyset' in scope
252 | public static func sigset(from setOfSignals: Set<Signal>) -> sigset_t {
253 | var sigset = sigset_t()
254 | sigemptyset(&sigset)
| `- error: cannot find 'sigemptyset' in scope
255 | for s in setOfSignals {sigaddset(&sigset, s.rawValue)}
256 | return sigset
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Signal.swift:255:26: error: cannot find 'sigaddset' in scope
253 | var sigset = sigset_t()
254 | sigemptyset(&sigset)
255 | for s in setOfSignals {sigaddset(&sigset, s.rawValue)}
| `- error: cannot find 'sigaddset' in scope
256 | return sigset
257 | }
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Signal.swift:263:3: error: cannot find 'sigemptyset' in scope
261 | public var sigset: sigset_t {
262 | var sigset = sigset_t()
263 | sigemptyset(&sigset)
| `- error: cannot find 'sigemptyset' in scope
264 | sigaddset(&sigset, rawValue)
265 | return sigset
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Signal.swift:264:3: error: cannot find 'sigaddset' in scope
262 | var sigset = sigset_t()
263 | sigemptyset(&sigset)
264 | sigaddset(&sigset, rawValue)
| `- error: cannot find 'sigaddset' in scope
265 | return sigset
266 | }
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Signal.swift:275:37: error: cannot find 'NSIG' in scope
273 | public var signalName: String? {
274 | #if !os(Linux)
275 | guard rawValue >= 0 && rawValue < NSIG else {
| `- error: cannot find 'NSIG' in scope
276 | return nil
277 | }
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Signal.swift:279:32: error: cannot find 'sys_signame' in scope
277 | }
278 |
279 | return withUnsafePointer(to: sys_signame, { siglistPtr in
| `- error: cannot find 'sys_signame' in scope
280 | return siglistPtr.withMemoryRebound(to: UnsafePointer<UInt8>?.self, capacity: Int(NSIG), { siglistPtrAsPointerToCStrings in
281 | return siglistPtrAsPointerToCStrings.advanced(by: Int(rawValue)).pointee.flatMap{ String(cString: $0) }
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Signal.swift:280:86: error: cannot find 'NSIG' in scope
278 |
279 | return withUnsafePointer(to: sys_signame, { siglistPtr in
280 | return siglistPtr.withMemoryRebound(to: UnsafePointer<UInt8>?.self, capacity: Int(NSIG), { siglistPtrAsPointerToCStrings in
| `- error: cannot find 'NSIG' in scope
281 | return siglistPtrAsPointerToCStrings.advanced(by: Int(rawValue)).pointee.flatMap{ String(cString: $0) }
282 | })
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Signal.swift:302:37: error: cannot find 'NSIG' in scope
300 | public var signalDescription: String? {
301 | #if !os(Linux)
302 | guard rawValue >= 0 && rawValue < NSIG else {
| `- error: cannot find 'NSIG' in scope
303 | return nil
304 | }
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Signal.swift:306:32: error: cannot find 'sys_siglist' in scope
304 | }
305 |
306 | return withUnsafePointer(to: sys_siglist, { siglistPtr in
| `- error: cannot find 'sys_siglist' in scope
307 | return siglistPtr.withMemoryRebound(to: UnsafePointer<UInt8>?.self, capacity: Int(NSIG), { siglistPtrAsPointerToCStrings in
308 | return siglistPtrAsPointerToCStrings.advanced(by: Int(rawValue)).pointee.flatMap{ String(cString: $0) }
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Signal.swift:307:86: error: cannot find 'NSIG' in scope
305 |
306 | return withUnsafePointer(to: sys_siglist, { siglistPtr in
307 | return siglistPtr.withMemoryRebound(to: UnsafePointer<UInt8>?.self, capacity: Int(NSIG), { siglistPtrAsPointerToCStrings in
| `- error: cannot find 'NSIG' in scope
308 | return siglistPtrAsPointerToCStrings.advanced(by: Int(rawValue)).pointee.flatMap{ String(cString: $0) }
309 | })
BUILD FAILURE 6.1 wasm