Build Information
Failed to build swift-signal-handling, reference 1.2.0-beta.2 (aff1c6), with Swift 6.3 for Wasm on 15 Apr 2026 12:25:24 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4609320-2":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/swiftpackageindex/spi-images:wasm-6.3-latest swift build --swift-sdk swift-6.3-RELEASE_wasm 2>&1Build Log
========================================
RunAll
========================================
Builder version: 4.70.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/xcode-actions/swift-signal-handling.git
Reference: 1.2.0-beta.2
Initialized empty Git repository in /host/spi-builder-workspace/.git/
hint: Using 'master' as the name for the initial branch. This default branch name
hint: is subject to change. To configure the initial branch name to use in all
hint: of your new repositories, which will suppress this warning, call:
hint:
hint: git config --global init.defaultBranch <name>
hint:
hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and
hint: 'development'. The just-created branch can be renamed via this command:
hint:
hint: git branch -m <name>
From https://github.com/xcode-actions/swift-signal-handling
* tag 1.2.0-beta.2 -> FETCH_HEAD
HEAD is now at aff1c6b Make the dependency on swift-system explicit
Cloned https://github.com/xcode-actions/swift-signal-handling.git
Revision (git rev-parse @):
aff1c6ba4279ee4f7b27e935710489fd3e28e0e8
SUCCESS checkout https://github.com/xcode-actions/swift-signal-handling.git at 1.2.0-beta.2
========================================
Build
========================================
Selected platform: wasm
Swift version: 6.3
Building package at path: $PWD
https://github.com/xcode-actions/swift-signal-handling.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-2":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/swiftpackageindex/spi-images:wasm-6.3-latest swift build --swift-sdk swift-6.3-RELEASE_wasm 2>&1
wasm-6.3-latest: Pulling from swiftpackageindex/spi-images
Digest: sha256:d69f4e7582c319245442d62a08b2d7c7fd5a0c0c69f5d2ef11d1530cd8d3329b
Status: Image is up to date for registry.gitlab.com/swiftpackageindex/spi-images:wasm-6.3-latest
Fetching https://github.com/Frizlab/GlobalConfModule.git
Fetching https://github.com/xcode-actions/clt-logger.git
Fetching https://github.com/apple/swift-argument-parser.git
Fetching https://github.com/apple/swift-log.git
Fetching https://github.com/apple/swift-system.git
[1/669] Fetching globalconfmodule
[670/18192] Fetching globalconfmodule, swift-argument-parser
Fetched https://github.com/Frizlab/GlobalConfModule.git from cache (0.31s)
[1753/17523] Fetching swift-argument-parser
[2279/23124] Fetching swift-argument-parser, swift-system
[4410/29693] Fetching swift-argument-parser, swift-system, swift-log
[20802/30562] Fetching swift-argument-parser, swift-system, swift-log, clt-logger
Fetched https://github.com/apple/swift-system.git from cache (0.68s)
Fetched https://github.com/apple/swift-log.git from cache (0.68s)
[18088/18392] Fetching swift-argument-parser, clt-logger
Fetched https://github.com/xcode-actions/clt-logger.git from cache (1.13s)
Fetched https://github.com/apple/swift-argument-parser.git from cache (1.14s)
Computing version for https://github.com/Frizlab/GlobalConfModule.git
Computed https://github.com/Frizlab/GlobalConfModule.git at 0.4.4 (1.63s)
Fetching https://github.com/apple/swift-service-context.git
Fetching https://github.com/swiftlang/swift-syntax.git
[1/1251] Fetching swift-service-context
[1252/76223] Fetching swift-service-context, swift-syntax
Fetched https://github.com/apple/swift-service-context.git from cache (8.66s)
Fetched https://github.com/swiftlang/swift-syntax.git from cache (8.74s)
Computing version for https://github.com/apple/swift-service-context.git
Computed https://github.com/apple/swift-service-context.git at 1.3.0 (9.15s)
Computing version for https://github.com/swiftlang/swift-syntax.git
Computed https://github.com/swiftlang/swift-syntax.git at 602.0.0 (3.63s)
Computing version for https://github.com/apple/swift-system.git
Computed https://github.com/apple/swift-system.git at 1.6.4 (0.84s)
Computing version for https://github.com/apple/swift-log.git
Computed https://github.com/apple/swift-log.git at 1.12.0 (0.67s)
Computing version for https://github.com/apple/swift-argument-parser.git
Computed https://github.com/apple/swift-argument-parser.git at 1.7.1 (0.57s)
Computing version for https://github.com/xcode-actions/clt-logger.git
Computed https://github.com/xcode-actions/clt-logger.git at 1.0.0 (0.45s)
Creating working copy for https://github.com/xcode-actions/clt-logger.git
Working copy of https://github.com/xcode-actions/clt-logger.git resolved at 1.0.0
Creating working copy for https://github.com/apple/swift-log.git
Working copy of https://github.com/apple/swift-log.git resolved at 1.12.0
Creating working copy for https://github.com/swiftlang/swift-syntax.git
Working copy of https://github.com/swiftlang/swift-syntax.git resolved at 602.0.0
Creating working copy for https://github.com/Frizlab/GlobalConfModule.git
Working copy of https://github.com/Frizlab/GlobalConfModule.git resolved at 0.4.4
Creating working copy for https://github.com/apple/swift-system.git
Working copy of https://github.com/apple/swift-system.git resolved at 1.6.4
Creating working copy for https://github.com/apple/swift-service-context.git
Working copy of https://github.com/apple/swift-service-context.git resolved at 1.3.0
Creating working copy for https://github.com/apple/swift-argument-parser.git
Working copy of https://github.com/apple/swift-argument-parser.git resolved at 1.7.1
Downloading package prebuilt https://download.swift.org/prebuilts/swift-syntax/602.0.0/swift-6.3-RELEASE-ubuntu_jammy_x86_64-MacroSupport.tar.gz
Downloaded https://download.swift.org/prebuilts/swift-syntax/602.0.0/swift-6.3-RELEASE-ubuntu_jammy_x86_64-MacroSupport.tar.gz (0.47s)
[1/1] Compiling plugin GenerateManual
[2/2] Compiling plugin GenerateDoccReference
Building for debugging...
[2/28] Write sources
[12/28] Compiling CSystem shims.c
[13/28] Write swift-version-24593BA9C3E375BF.txt
[15/78] Emitting module SystemPackage
[16/82] Compiling ServiceContextModule ServiceContextKey.swift
[17/82] Compiling SystemPackage FilePath.swift
[18/82] Compiling SystemPackage FilePathComponentView.swift
[19/82] Compiling SystemPackage FilePathComponents.swift
[20/82] Compiling SystemPackage FilePathParsing.swift
[21/82] Compiling SystemPackage FilePathString.swift
[22/82] Compiling ServiceContextModule ServiceContext.swift
[23/82] Emitting module ServiceContextModule
[24/83] Compiling SystemPackage SystemString.swift
[25/83] Compiling SystemPackage Util+StringArray.swift
[26/83] Compiling SystemPackage Util.swift
[27/83] Compiling SystemPackage UtilConsumers.swift
[28/83] Compiling SystemPackage Errno.swift
[29/83] Compiling SystemPackage ErrnoWindows.swift
[30/83] Compiling SystemPackage FileDescriptor.swift
[31/83] Compiling SystemPackage FileHelpers.swift
[32/83] Compiling SystemPackage FileOperations.swift
[33/83] Wrapping AST for ServiceContextModule for debugging
[35/83] Emitting module ArgumentParserToolInfo
[36/83] Compiling ArgumentParserToolInfo ToolInfo.swift
[38/84] Compiling Logging MetadataProvider.swift
[39/84] Compiling SystemPackage FilePathSyntax.swift
[40/84] Compiling SystemPackage FilePathTemp.swift
[41/84] Compiling SystemPackage FilePathTempPosix.swift
[42/84] Compiling SystemPackage FilePathTempWindows.swift
[43/84] Compiling SystemPackage FilePathWindows.swift
[44/84] Compiling SystemPackage FilePermissions.swift
[45/84] Compiling SystemPackage IOCompletion.swift
[46/84] Compiling SystemPackage IORequest.swift
[46/84] Wrapping AST for ArgumentParserToolInfo for debugging
[48/84] Compiling SystemPackage Constants.swift
[49/84] Compiling SystemPackage Exports.swift
[50/84] Compiling SystemPackage Mocking.swift
[51/84] Compiling SystemPackage RawBuffer.swift
[52/84] Compiling SystemPackage IORing.swift
[53/84] Compiling SystemPackage RawIORequest.swift
[54/84] Compiling SystemPackage Backcompat.swift
[55/84] Compiling SystemPackage CInterop.swift
[56/84] Compiling SystemPackage Syscalls.swift
[57/84] Compiling SystemPackage WindowsSyscallAdapters.swift
[58/84] Compiling SystemPackage MachPort.swift
[59/84] Compiling SystemPackage PlatformString.swift
[60/86] Emitting module Logging
[61/86] Compiling Logging Locks.swift
[62/131] Wrapping AST for SystemPackage for debugging
[64/131] Compiling Logging LogHandler.swift
[65/131] Compiling Logging LogEvent.swift
[66/131] Compiling Logging Logging.swift
[67/142] Wrapping AST for Logging for debugging
[69/142] Emitting module ArgumentParser
[70/148] Compiling ArgumentParser ParentCommand.swift
[71/148] Compiling ArgumentParser AsyncParsableCommand.swift
[72/148] Compiling ArgumentParser CommandConfiguration.swift
[73/148] Compiling ArgumentParser CommandGroup.swift
[74/148] Compiling ArgumentParser EnumerableFlag.swift
[75/148] Compiling ArgumentParser ExpressibleByArgument.swift
[76/148] Compiling ArgumentParser ParsableArguments.swift
[77/148] Compiling ArgumentParser Foundation.swift
[78/148] Compiling ArgumentParser Mutex.swift
[79/148] Compiling ArgumentParser Platform.swift
[80/148] Compiling ArgumentParser SequenceExtensions.swift
[81/148] Compiling ArgumentParser StringExtensions.swift
[82/148] Compiling ArgumentParser SwiftExtensions.swift
[83/148] Compiling CLTLogger Scanner+OldOS.swift
[84/148] Compiling CLTLogger NSLock+withLock.swift
[85/148] Compiling CLTLogger EmojiSet.swift
[86/149] Compiling CLTLogger OutputEnvironment.swift
[87/149] Compiling ArgumentParser InputOrigin.swift
[88/149] Compiling ArgumentParser Name.swift
[89/149] Compiling ArgumentParser Parsed.swift
[90/149] Compiling ArgumentParser ParsedValues.swift
[91/149] Compiling ArgumentParser ParserError.swift
[92/149] Compiling ArgumentParser SplitArguments.swift
[93/149] Compiling CLTLogger CLTLogger+WithSendable.swift
[94/149] Compiling CLTLogger CLTLogger.swift
[95/149] Emitting module CLTLogger
[96/149] Compiling CLTLogger DummySendable.swift
[97/149] Compiling CLTLogger Emoji.swift
[98/149] Compiling CLTLogger String+Utils.swift
[99/149] Compiling ArgumentParser Tree.swift
[100/149] Compiling ArgumentParser CodingKeyValidator.swift
[101/149] Compiling ArgumentParser NonsenseFlagsValidator.swift
[102/149] Compiling ArgumentParser ParsableArgumentsValidation.swift
[103/149] Compiling ArgumentParser PositionalArgumentsValidator.swift
[104/149] Compiling ArgumentParser UniqueNamesValidator.swift
[105/149] Compiling ArgumentParser ArgumentVisibility.swift
[106/149] Compiling ArgumentParser CompletionKind.swift
[107/149] Compiling ArgumentParser Errors.swift
[108/149] Compiling ArgumentParser Flag.swift
[109/149] Compiling ArgumentParser NameSpecification.swift
[110/149] Compiling ArgumentParser Option.swift
[111/149] Compiling ArgumentParser OptionGroup.swift
[112/149] Compiling GlobalConfMacros Optional+Utils.swift
[113/150] Emitting module GlobalConfMacros
[114/150] Compiling GlobalConfMacros LabeledExprSyntax+Utils.swift
[115/150] Compiling GlobalConfMacros DeclareConfNamespaceMacro.swift
[116/150] Compiling GlobalConfMacros Entrypoint.swift
[117/150] Compiling GlobalConfMacros Errors.swift
[118/150] Compiling CLTLogger SGR.swift
[120/151] Compiling GlobalConfMacros DeclareConfMacro.swift
[121/151] Compiling GlobalConfMacros DeclareConfAccessorMacro.swift
[122/151] Compiling GlobalConfMacros SimpleDiagnosticMessage.swift
[122/152] Wrapping AST for CLTLogger for debugging
[124/152] Wrapping AST for GlobalConfMacros for debugging
[125/152] Write Objects.LinkFileList
[131/152] Compiling ArgumentParser Argument.swift
[132/152] Compiling ArgumentParser ArgumentDiscussion.swift
[133/152] Compiling ArgumentParser ArgumentHelp.swift
[134/152] Compiling ArgumentParser DumpHelpGenerator.swift
[135/152] Compiling ArgumentParser HelpCommand.swift
[136/152] Compiling ArgumentParser HelpGenerator.swift
[137/152] Compiling ArgumentParser MessageInfo.swift
[138/152] Compiling ArgumentParser UsageGenerator.swift
[139/152] Compiling ArgumentParser CollectionExtensions.swift
[139/152] Linking GlobalConfMacros-tool
[141/152] Compiling ArgumentParser ParsableCommand.swift
[142/152] Compiling ArgumentParser ArgumentDecoder.swift
[143/152] Compiling ArgumentParser ArgumentDefinition.swift
[144/152] Compiling ArgumentParser ArgumentSet.swift
[145/152] Compiling ArgumentParser CommandParser.swift
[146/152] Compiling ArgumentParser InputKey.swift
[147/154] Wrapping AST for ArgumentParser for debugging
[149/175] Compiling GlobalConfModule AutoInjectable.swift
[150/175] Compiling GlobalConfModule AutoInjectableMainActor.swift
[151/175] Compiling GlobalConfModule InjectedConf+AutoInjectable.swift
[152/175] Compiling GlobalConfModule ConfContext+ConfKey.swift
[153/175] Compiling GlobalConfModule ConfContext+ConfKeyMainActor.swift
[154/175] Compiling GlobalConfModule ConfContext.swift
[155/175] Compiling GlobalConfModule InjectedConf.swift
[156/175] Compiling GlobalConfModule 1-ConfKey.swift
[157/175] Compiling GlobalConfModule 2-ServiceKey.swift
[158/177] Emitting module GlobalConfModule
[159/177] Compiling GlobalConfModule ConfKey.swift
[160/177] Compiling GlobalConfModule ConfKeyMainActor.swift
[161/177] Compiling GlobalConfModule ConfKeys.swift
[162/177] Compiling GlobalConfModule Conf+ConfKey.swift
[163/177] Compiling GlobalConfModule Conf+ConfKeyMainActor.swift
[164/177] Compiling GlobalConfModule Conf+withValues.swift
[165/177] Compiling GlobalConfModule InjectedConf+AutoInjectableMainActor.swift
[166/177] Compiling GlobalConfModule InjectedConf+ConfKey.swift
[167/177] Compiling GlobalConfModule InjectedConf+ConfKeyMainActor.swift
[168/177] Compiling GlobalConfModule 3-NamespaceKey.swift
[169/177] Compiling GlobalConfModule 4-AccessorConvenience.swift
[170/177] Compiling GlobalConfModule Conf.swift
[171/177] Compiling GlobalConfModule ConfContext+AutoInjectable.swift
[172/177] Compiling GlobalConfModule ConfContext+AutoInjectableMainActor.swift
[173/178] Wrapping AST for GlobalConfModule for debugging
[175/189] Compiling SignalHandling SigactionDelayer_Unsig.swift
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/SigactionHandler.swift:19:80: error: cannot find type 'siginfo_t' in scope
17 |
18 | case ansiC(@convention(c) (_ signalID: Int32) -> Void)
19 | case posix(@convention(c) (_ signalID: Int32, _ siginfo: UnsafeMutablePointer<siginfo_t>?, _ userThreadContext: UnsafeMutableRawPointer?) -> Void)
| `- error: cannot find type 'siginfo_t' in scope
20 |
21 | public static func ==(lhs: SigactionHandler, rhs: SigactionHandler) -> Bool {
/host/spi-builder-workspace/Sources/SignalHandling/DelayedSigaction/SigactionDelayer_Unsig.swift:129:21: error: cannot find 'NSConditionLock' in scope
127 | }
128 |
129 | static let lock = NSConditionLock(condition: Self.nothingToDo.rawValue)
| `- error: cannot find 'NSConditionLock' in scope
130 |
131 | /* Read/write is protected by the lock above. */
/host/spi-builder-workspace/Sources/SignalHandling/DelayedSigaction/SigactionDelayer_Unsig.swift:145:23: error: cannot find type 'DispatchSourceSignal' in scope
143 | var originalSigaction: Sigaction
144 |
145 | var dispatchSource: DispatchSourceSignal
| `- error: cannot find type 'DispatchSourceSignal' in scope
146 | var handlers = [DelayedSigaction: DelayedSigactionHandler]()
147 |
/host/spi-builder-workspace/Sources/SignalHandling/DelayedSigaction/SigactionDelayer_Unsig.swift:150:45: error: cannot find 'DispatchQueue' in scope
148 | }
149 |
150 | private static let signalProcessingQueue = DispatchQueue(label: "com.xcode-actions.unsigactioned-signals-processing-queue")
| `- error: cannot find 'DispatchQueue' in scope
151 |
152 | /* Both these vars are only modified/read on the signal processing queue. */
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Sigaction.swift:44:24: error: cannot find type 'sigaction' in scope
42 | If the handler of the sigaction is `SIG_IGN` or `SIG_DFL`, we check the `sa_flags` not to contains the `SA_SIGINFO` bit.
43 | If they do, we log an error, as this is invalid. */
44 | public init(rawValue: sigaction) {
| `- error: cannot find type 'sigaction' in scope
45 | self.mask = Signal.set(from: rawValue.sa_mask)
46 | self.flags = SigactionFlags(rawValue: rawValue.sa_flags)
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Sigaction.swift:79:23: error: cannot find type 'sigaction' in scope
77 | }
78 |
79 | public var rawValue: sigaction {
| `- error: cannot find type 'sigaction' in scope
80 | if !isValid {
81 | Conf.logger?.warning("Getting sigaction from an invalid Sigaction.")
/host/spi-builder-workspace/Sources/SignalHandling/DelayedSigaction/SigactionDelayer_Unsig.swift:87:21: error: type 'Sigaction' does not conform to protocol 'RawRepresentable'
85 |
86 | - Returns: The previous sigaction if there was an unsigaction registered for the given signal, `nil` otherwise. */
87 | public static func updateOriginalSigaction(for signal: Signal, to sigaction: Sigaction) -> Sigaction? {
| `- error: type 'Sigaction' does not conform to protocol 'RawRepresentable'
88 | return signalProcessingQueue.sync{
89 | let previous = unsigactionedSignals[signal]?.originalSigaction
/host/spi-builder-workspace/Sources/SignalHandling/DelayedSigaction/SigactionDelayer_Unsig.swift:209:31: error: cannot find 'DispatchSource' in scope
207 | }
208 | } else {
209 | let dispatchSourceSignal = DispatchSource.makeSignalSource(signal: signal.rawValue, queue: signalProcessingQueue)
| `- error: cannot find 'DispatchSource' in scope
210 | /* Apparently the dispatchSourceSignal does not need to be weak in the handler because the handler is released when the source is canceled.
211 | * I manually tested this and found no confirmation or infirmation of this in the documentation. */
/host/spi-builder-workspace/Sources/SignalHandling/DelayedSigaction/SigactionDelayer_Unsig.swift:272:16: error: cannot find 'DispatchGroup' in scope
270 | for _ in 0..<count {
271 | let lock = NSLock()
272 | let group = DispatchGroup()
| `- error: cannot find 'DispatchGroup' in scope
273 | nonisolated(unsafe) var runOriginalHandlerFinal = true
274 | for (_, handler) in unsigactionedSignal.handlers {
/host/spi-builder-workspace/Sources/SignalHandling/DelayedSigaction/SigactionDelayer_Unsig.swift:301:15: error: cannot find 'DispatchGroup' in scope
299 |
300 | nonisolated(unsafe) var error: Error?
301 | let group = DispatchGroup()
| `- error: cannot find 'DispatchGroup' in scope
302 | group.enter()
303 | Thread.detachNewThread{
/host/spi-builder-workspace/Sources/SignalHandling/DelayedSigaction/SigactionDelayer_Unsig.swift:303:3: error: cannot find 'Thread' in scope
301 | let group = DispatchGroup()
302 | group.enter()
303 | Thread.detachNewThread{
| `- error: cannot find 'Thread' in scope
304 | Thread.current.name = "com.xcode-actions.unsigactioned-signals-thread"
305 |
/host/spi-builder-workspace/Sources/SignalHandling/DelayedSigaction/SigactionDelayer_Unsig.swift:304:4: error: cannot find 'Thread' in scope
302 | group.enter()
303 | Thread.detachNewThread{
304 | Thread.current.name = "com.xcode-actions.unsigactioned-signals-thread"
| `- error: cannot find 'Thread' in scope
305 |
306 | /* Unblock all signals in this thread. */
/host/spi-builder-workspace/Sources/SignalHandling/DelayedSigaction/SigactionDelayer_Unsig.swift:308:14: error: cannot find 'pthread_sigmask' in scope
306 | /* Unblock all signals in this thread. */
307 | var noSignals = Signal.emptySigset
308 | let ret = pthread_sigmask(SIG_SETMASK, &noSignals, nil /* old signals */)
| `- error: cannot find 'pthread_sigmask' in scope
309 | if ret != 0 {
310 | error = SignalHandlingError.destructiveSystemError(Errno(rawValue: ret))
/host/spi-builder-workspace/Sources/SignalHandling/DelayedSigaction/SigactionDelayer_Unsig.swift:308:30: error: cannot find 'SIG_SETMASK' in scope
306 | /* Unblock all signals in this thread. */
307 | var noSignals = Signal.emptySigset
308 | let ret = pthread_sigmask(SIG_SETMASK, &noSignals, nil /* old signals */)
| `- error: cannot find 'SIG_SETMASK' in scope
309 | if ret != 0 {
310 | error = SignalHandlingError.destructiveSystemError(Errno(rawValue: ret))
/host/spi-builder-workspace/Sources/SignalHandling/DelayedSigaction/SigactionDelayer_Unsig.swift:379:20: error: cannot find 'pthread_self' in scope
377 | * Anyway, we need to reinstall the sigaction handler after the signal has been sent and processed,
378 | * so we need to have some control, which `raise` does not give. */
379 | let thread = pthread_self()
| `- error: cannot find 'pthread_self' in scope
380 | // let killResult = raise(signal.rawValue)
381 | let killResult = pthread_kill(thread, signal.rawValue)
/host/spi-builder-workspace/Sources/SignalHandling/DelayedSigaction/SigactionDelayer_Unsig.swift:381:24: error: cannot find 'pthread_kill' in scope
379 | let thread = pthread_self()
380 | // let killResult = raise(signal.rawValue)
381 | let killResult = pthread_kill(thread, signal.rawValue)
| `- error: cannot find 'pthread_kill' in scope
382 | if killResult != 0 {
383 | completionResult.errorLogs.append(("Cannot send signal to unsigactioned thread.", ["signal": "\(signal)", "kill_result": "\(killResult)"]))
/host/spi-builder-workspace/Sources/SignalHandling/DelayedSigaction/SigactionDelayer_Unsig.swift:387:27: error: cannot find 'pthread_sigmask' in scope
385 |
386 | /* Re-unblock all signals (in case a handler blocked one). */
387 | let sigmaskResult = pthread_sigmask(SIG_SETMASK, &emptyMask, nil)
| `- error: cannot find 'pthread_sigmask' in scope
388 | if sigmaskResult != 0 {
389 | completionResult.errorLogs.append((
/host/spi-builder-workspace/Sources/SignalHandling/DelayedSigaction/SigactionDelayer_Unsig.swift:387:43: error: cannot find 'SIG_SETMASK' in scope
385 |
386 | /* Re-unblock all signals (in case a handler blocked one). */
387 | let sigmaskResult = pthread_sigmask(SIG_SETMASK, &emptyMask, nil)
| `- error: cannot find 'SIG_SETMASK' in scope
388 | if sigmaskResult != 0 {
389 | completionResult.errorLogs.append((
/host/spi-builder-workspace/Sources/SignalHandling/DelayedSigaction/SigactionDelayer_Unsig.swift:387:68: error: 'nil' requires a contextual type
385 |
386 | /* Re-unblock all signals (in case a handler blocked one). */
387 | let sigmaskResult = pthread_sigmask(SIG_SETMASK, &emptyMask, nil)
| `- error: 'nil' requires a contextual type
388 | if sigmaskResult != 0 {
389 | completionResult.errorLogs.append((
[176/190] Compiling SignalHandling SigactionDelayer_Block.swift
/host/spi-builder-workspace/Sources/SignalHandling/DelayedSigaction/SigactionDelayer_Block.swift:176:21: error: cannot find 'NSConditionLock' in scope
174 | }
175 |
176 | static let lock = NSConditionLock(condition: Self.nothingToDo.rawValue)
| `- error: cannot find 'NSConditionLock' in scope
177 |
178 | /* Read/write is protected by the lock above. */
/host/spi-builder-workspace/Sources/SignalHandling/DelayedSigaction/SigactionDelayer_Block.swift:190:23: error: cannot find type 'DispatchSourceSignal' in scope
188 | private struct BlockedSignal {
189 |
190 | var dispatchSource: DispatchSourceSignal
| `- error: cannot find type 'DispatchSourceSignal' in scope
191 | var handlers = [DelayedSigaction: DelayedSigactionHandler]()
192 |
/host/spi-builder-workspace/Sources/SignalHandling/DelayedSigaction/SigactionDelayer_Block.swift:195:45: error: cannot find 'DispatchQueue' in scope
193 | }
194 |
195 | private static let signalProcessingQueue = DispatchQueue(label: "com.xcode-actions.blocked-signals-processing-queue")
| `- error: cannot find 'DispatchQueue' in scope
196 |
197 | /* Only used on the main thread. */
/host/spi-builder-workspace/Sources/SignalHandling/DelayedSigaction/SigactionDelayer_Block.swift:63:11: error: cannot find 'Thread' in scope
61 | - Important: You should not use `pthread_sigmask` to sigprocmask (nor anything to unblock signals) after calling this method. */
62 | public static func bootstrap(for signals: Set<Signal>) throws {
63 | assert(!Thread.isMultiThreaded())
| `- error: cannot find 'Thread' in scope
64 | guard !bootstrapDone else {
65 | fatalError("DelayedSigaction can be bootstrapped only once")
/host/spi-builder-workspace/Sources/SignalHandling/DelayedSigaction/SigactionDelayer_Block.swift:69:13: error: cannot find 'pthread_sigmask' in scope
67 |
68 | var signalsSigset = Signal.sigset(from: signals)
69 | let ret = pthread_sigmask(SIG_SETMASK, &signalsSigset, nil /* old signals */)
| `- error: cannot find 'pthread_sigmask' in scope
70 | if ret != 0 {
71 | throw SignalHandlingError.nonDestructiveSystemError(Errno(rawValue: ret))
/host/spi-builder-workspace/Sources/SignalHandling/DelayedSigaction/SigactionDelayer_Block.swift:69:29: error: cannot find 'SIG_SETMASK' in scope
67 |
68 | var signalsSigset = Signal.sigset(from: signals)
69 | let ret = pthread_sigmask(SIG_SETMASK, &signalsSigset, nil /* old signals */)
| `- error: cannot find 'SIG_SETMASK' in scope
70 | if ret != 0 {
71 | throw SignalHandlingError.nonDestructiveSystemError(Errno(rawValue: ret))
/host/spi-builder-workspace/Sources/SignalHandling/DelayedSigaction/SigactionDelayer_Block.swift:69:58: error: 'nil' requires a contextual type
67 |
68 | var signalsSigset = Signal.sigset(from: signals)
69 | let ret = pthread_sigmask(SIG_SETMASK, &signalsSigset, nil /* old signals */)
| `- error: 'nil' requires a contextual type
70 | if ret != 0 {
71 | throw SignalHandlingError.nonDestructiveSystemError(Errno(rawValue: ret))
/host/spi-builder-workspace/Sources/SignalHandling/DelayedSigaction/SigactionDelayer_Block.swift:75:15: error: cannot find 'DispatchGroup' in scope
73 |
74 | nonisolated(unsafe) var error: Error?
75 | let group = DispatchGroup()
| `- error: cannot find 'DispatchGroup' in scope
76 | group.enter()
77 | Thread.detachNewThread{
/host/spi-builder-workspace/Sources/SignalHandling/DelayedSigaction/SigactionDelayer_Block.swift:77:3: error: cannot find 'Thread' in scope
75 | let group = DispatchGroup()
76 | group.enter()
77 | Thread.detachNewThread{
| `- error: cannot find 'Thread' in scope
78 | Thread.current.name = "com.xcode-actions.blocked-signals-thread"
79 |
/host/spi-builder-workspace/Sources/SignalHandling/DelayedSigaction/SigactionDelayer_Block.swift:78:4: error: cannot find 'Thread' in scope
76 | group.enter()
77 | Thread.detachNewThread{
78 | Thread.current.name = "com.xcode-actions.blocked-signals-thread"
| `- error: cannot find 'Thread' in scope
79 |
80 | /* Unblock all signals in this thread. */
/host/spi-builder-workspace/Sources/SignalHandling/DelayedSigaction/SigactionDelayer_Block.swift:82:14: error: cannot find 'pthread_sigmask' in scope
80 | /* Unblock all signals in this thread. */
81 | var noSignals = Signal.emptySigset
82 | let ret = pthread_sigmask(SIG_SETMASK, &noSignals, nil /* old signals */)
| `- error: cannot find 'pthread_sigmask' in scope
83 | if ret != 0 {
84 | error = SignalHandlingError.destructiveSystemError(Errno(rawValue: ret))
/host/spi-builder-workspace/Sources/SignalHandling/DelayedSigaction/SigactionDelayer_Block.swift:82:30: error: cannot find 'SIG_SETMASK' in scope
80 | /* Unblock all signals in this thread. */
81 | var noSignals = Signal.emptySigset
82 | let ret = pthread_sigmask(SIG_SETMASK, &noSignals, nil /* old signals */)
| `- error: cannot find 'SIG_SETMASK' in scope
83 | if ret != 0 {
84 | error = SignalHandlingError.destructiveSystemError(Errno(rawValue: ret))
/host/spi-builder-workspace/Sources/SignalHandling/DelayedSigaction/SigactionDelayer_Block.swift:249:31: error: cannot find 'DispatchSource' in scope
247 | try executeOnThread(.block(signal))
248 |
249 | let dispatchSourceSignal = DispatchSource.makeSignalSource(signal: signal.rawValue, queue: signalProcessingQueue)
| `- error: cannot find 'DispatchSource' in scope
250 | /* Apparently the dispatchSourceSignal does not need to be weak in the handler because the handler is released when the source is canceled.
251 | * I manually tested this and found no confirmation or infirmation of this in the documentation. */
/host/spi-builder-workspace/Sources/SignalHandling/DelayedSigaction/SigactionDelayer_Block.swift:330:16: error: cannot find 'DispatchGroup' in scope
328 | for _ in 0..<count {
329 | let lock = NSLock()
330 | let group = DispatchGroup()
| `- error: cannot find 'DispatchGroup' in scope
331 | nonisolated(unsafe) var runOriginalHandlerFinal = true
332 | for (_, handler) in blockedSignal.handlers {
/host/spi-builder-workspace/Sources/SignalHandling/DelayedSigaction/SigactionDelayer_Block.swift:387:17: error: cannot find 'pthread_sigmask' in scope
385 | // loggerLessThreadSafeDebugLog("🧵 Processing block action for \(signal)…")
386 | var sigset = signal.sigset
387 | let ret = pthread_sigmask(SIG_BLOCK, &sigset, nil /* old signals */)
| `- error: cannot find 'pthread_sigmask' in scope
388 | if ret != 0 {
389 | throw SignalHandlingError.destructiveSystemError(Errno(rawValue: ret))
/host/spi-builder-workspace/Sources/SignalHandling/DelayedSigaction/SigactionDelayer_Block.swift:387:33: error: cannot find 'SIG_BLOCK' in scope
385 | // loggerLessThreadSafeDebugLog("🧵 Processing block action for \(signal)…")
386 | var sigset = signal.sigset
387 | let ret = pthread_sigmask(SIG_BLOCK, &sigset, nil /* old signals */)
| `- error: cannot find 'SIG_BLOCK' in scope
388 | if ret != 0 {
389 | throw SignalHandlingError.destructiveSystemError(Errno(rawValue: ret))
/host/spi-builder-workspace/Sources/SignalHandling/DelayedSigaction/SigactionDelayer_Block.swift:387:53: error: 'nil' requires a contextual type
385 | // loggerLessThreadSafeDebugLog("🧵 Processing block action for \(signal)…")
386 | var sigset = signal.sigset
387 | let ret = pthread_sigmask(SIG_BLOCK, &sigset, nil /* old signals */)
| `- error: 'nil' requires a contextual type
388 | if ret != 0 {
389 | throw SignalHandlingError.destructiveSystemError(Errno(rawValue: ret))
/host/spi-builder-workspace/Sources/SignalHandling/DelayedSigaction/SigactionDelayer_Block.swift:395:17: error: cannot find 'pthread_sigmask' in scope
393 | // loggerLessThreadSafeDebugLog("🧵 Processing unblock action for \(signal)…")
394 | var sigset = signal.sigset
395 | let ret = pthread_sigmask(SIG_UNBLOCK, &sigset, nil /* old signals */)
| `- error: cannot find 'pthread_sigmask' in scope
396 | if ret != 0 {
397 | throw SignalHandlingError.destructiveSystemError(Errno(rawValue: ret))
/host/spi-builder-workspace/Sources/SignalHandling/DelayedSigaction/SigactionDelayer_Block.swift:395:33: error: cannot find 'SIG_UNBLOCK' in scope
393 | // loggerLessThreadSafeDebugLog("🧵 Processing unblock action for \(signal)…")
394 | var sigset = signal.sigset
395 | let ret = pthread_sigmask(SIG_UNBLOCK, &sigset, nil /* old signals */)
| `- error: cannot find 'SIG_UNBLOCK' in scope
396 | if ret != 0 {
397 | throw SignalHandlingError.destructiveSystemError(Errno(rawValue: ret))
/host/spi-builder-workspace/Sources/SignalHandling/DelayedSigaction/SigactionDelayer_Block.swift:395:55: error: 'nil' requires a contextual type
393 | // loggerLessThreadSafeDebugLog("🧵 Processing unblock action for \(signal)…")
394 | var sigset = signal.sigset
395 | let ret = pthread_sigmask(SIG_UNBLOCK, &sigset, nil /* old signals */)
| `- error: 'nil' requires a contextual type
396 | if ret != 0 {
397 | throw SignalHandlingError.destructiveSystemError(Errno(rawValue: ret))
/host/spi-builder-workspace/Sources/SignalHandling/DelayedSigaction/SigactionDelayer_Block.swift:407:18: error: cannot find 'pthread_sigmask' in scope
405 | /* We update the sigset only when signal is not ignored
406 | * because it is used only in that case and this is getting the current sigmask can fail. */
407 | let ret = pthread_sigmask(SIG_SETMASK, nil /* new signals */, &sigset)
| `- error: cannot find 'pthread_sigmask' in scope
408 | if ret != 0 {
409 | throw SignalHandlingError.nonDestructiveSystemError(Errno(rawValue: ret))
/host/spi-builder-workspace/Sources/SignalHandling/DelayedSigaction/SigactionDelayer_Block.swift:407:34: error: cannot find 'SIG_SETMASK' in scope
405 | /* We update the sigset only when signal is not ignored
406 | * because it is used only in that case and this is getting the current sigmask can fail. */
407 | let ret = pthread_sigmask(SIG_SETMASK, nil /* new signals */, &sigset)
| `- error: cannot find 'SIG_SETMASK' in scope
408 | if ret != 0 {
409 | throw SignalHandlingError.nonDestructiveSystemError(Errno(rawValue: ret))
/host/spi-builder-workspace/Sources/SignalHandling/DelayedSigaction/SigactionDelayer_Block.swift:407:47: error: 'nil' requires a contextual type
405 | /* We update the sigset only when signal is not ignored
406 | * because it is used only in that case and this is getting the current sigmask can fail. */
407 | let ret = pthread_sigmask(SIG_SETMASK, nil /* new signals */, &sigset)
| `- error: 'nil' requires a contextual type
408 | if ret != 0 {
409 | throw SignalHandlingError.nonDestructiveSystemError(Errno(rawValue: ret))
/host/spi-builder-workspace/Sources/SignalHandling/DelayedSigaction/SigactionDelayer_Block.swift:411:8: error: cannot find 'sigdelset' in scope
409 | throw SignalHandlingError.nonDestructiveSystemError(Errno(rawValue: ret))
410 | }
411 | sigdelset(&sigset, signal.rawValue)
| `- error: cannot find 'sigdelset' in scope
412 | }
413 | /* Let’s get the pending signals on this thread. */
/host/spi-builder-workspace/Sources/SignalHandling/DelayedSigaction/SigactionDelayer_Block.swift:415:17: error: cannot find 'sigpending' in scope
413 | /* Let’s get the pending signals on this thread. */
414 | var pendingSignals = sigset_t()
415 | let ret = sigpending(&pendingSignals)
| `- error: cannot find 'sigpending' in scope
416 | /* If sigpending failed, we assume the signal is pending. */
417 | if ret != 0 || !Signal.set(from: pendingSignals).contains(signal) {
/host/spi-builder-workspace/Sources/SignalHandling/DelayedSigaction/SigactionDelayer_Block.swift:421:8: error: cannot find 'pthread_kill' in scope
419 | * Which mean it is probably pending on some other thread, forever. */
420 | // loggerLessThreadSafeDebugLog("🧵 Resending signal to manager thread \(signal)…")
421 | pthread_kill(pthread_self(), signal.rawValue)
| `- error: cannot find 'pthread_kill' in scope
422 | }
423 | if !isIgnored {
/host/spi-builder-workspace/Sources/SignalHandling/DelayedSigaction/SigactionDelayer_Block.swift:421:21: error: cannot find 'pthread_self' in scope
419 | * Which mean it is probably pending on some other thread, forever. */
420 | // loggerLessThreadSafeDebugLog("🧵 Resending signal to manager thread \(signal)…")
421 | pthread_kill(pthread_self(), signal.rawValue)
| `- error: cannot find 'pthread_self' in scope
422 | }
423 | if !isIgnored {
/host/spi-builder-workspace/Sources/SignalHandling/DelayedSigaction/SigactionDelayer_Block.swift:427:8: error: cannot find 'sigsuspend' in scope
425 | * I know there is a race condition. */
426 | // loggerLessThreadSafeDebugLog("🧵 Calling sigsuspend for \(signal)…")
427 | sigsuspend(&sigset)
| `- error: cannot find 'sigsuspend' in scope
428 | }
429 |
/host/spi-builder-workspace/Sources/SignalHandling/DelayedSigaction/SigactionDelayer_Block.swift:433:17: error: cannot find 'pthread_sigmask' in scope
431 | // loggerLessThreadSafeDebugLog("🧵 Processing drop action for \(signal)…")
432 | var sigset = sigset_t()
433 | let ret = pthread_sigmask(SIG_SETMASK, nil /* new signals */, &sigset)
| `- error: cannot find 'pthread_sigmask' in scope
434 | if ret != 0 {
435 | throw SignalHandlingError.nonDestructiveSystemError(Errno(rawValue: ret))
/host/spi-builder-workspace/Sources/SignalHandling/DelayedSigaction/SigactionDelayer_Block.swift:433:33: error: cannot find 'SIG_SETMASK' in scope
431 | // loggerLessThreadSafeDebugLog("🧵 Processing drop action for \(signal)…")
432 | var sigset = sigset_t()
433 | let ret = pthread_sigmask(SIG_SETMASK, nil /* new signals */, &sigset)
| `- error: cannot find 'SIG_SETMASK' in scope
434 | if ret != 0 {
435 | throw SignalHandlingError.nonDestructiveSystemError(Errno(rawValue: ret))
/host/spi-builder-workspace/Sources/SignalHandling/DelayedSigaction/SigactionDelayer_Block.swift:433:46: error: 'nil' requires a contextual type
431 | // loggerLessThreadSafeDebugLog("🧵 Processing drop action for \(signal)…")
432 | var sigset = sigset_t()
433 | let ret = pthread_sigmask(SIG_SETMASK, nil /* new signals */, &sigset)
| `- error: 'nil' requires a contextual type
434 | if ret != 0 {
435 | throw SignalHandlingError.nonDestructiveSystemError(Errno(rawValue: ret))
/host/spi-builder-workspace/Sources/SignalHandling/DelayedSigaction/SigactionDelayer_Block.swift:437:7: error: cannot find 'sigdelset' in scope
435 | throw SignalHandlingError.nonDestructiveSystemError(Errno(rawValue: ret))
436 | }
437 | sigdelset(&sigset, signal.rawValue)
| `- error: cannot find 'sigdelset' in scope
438 |
439 | let oldAction = try Sigaction.ignoreAction.install(on: signal, revertIfIgnored: false, updateUnsigRegistrations: false)
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Sigaction.swift:44:24: error: cannot find type 'sigaction' in scope
42 | If the handler of the sigaction is `SIG_IGN` or `SIG_DFL`, we check the `sa_flags` not to contains the `SA_SIGINFO` bit.
43 | If they do, we log an error, as this is invalid. */
44 | public init(rawValue: sigaction) {
| `- error: cannot find type 'sigaction' in scope
45 | self.mask = Signal.set(from: rawValue.sa_mask)
46 | self.flags = SigactionFlags(rawValue: rawValue.sa_flags)
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Sigaction.swift:79:23: error: cannot find type 'sigaction' in scope
77 | }
78 |
79 | public var rawValue: sigaction {
| `- error: cannot find type 'sigaction' in scope
80 | if !isValid {
81 | Conf.logger?.warning("Getting sigaction from an invalid Sigaction.")
/host/spi-builder-workspace/Sources/SignalHandling/DelayedSigaction/SigactionDelayer_Block.swift:439:7: error: type 'Sigaction' does not conform to protocol 'RawRepresentable'
437 | sigdelset(&sigset, signal.rawValue)
438 |
439 | let oldAction = try Sigaction.ignoreAction.install(on: signal, revertIfIgnored: false, updateUnsigRegistrations: false)
| `- error: type 'Sigaction' does not conform to protocol 'RawRepresentable'
440 | /* Will not hurt, the signal is ignore anyway (yes, there is a race condition, I know). */
441 | pthread_kill(pthread_self(), signal.rawValue)
/host/spi-builder-workspace/Sources/SignalHandling/DelayedSigaction/SigactionDelayer_Block.swift:441:7: error: cannot find 'pthread_kill' in scope
439 | let oldAction = try Sigaction.ignoreAction.install(on: signal, revertIfIgnored: false, updateUnsigRegistrations: false)
440 | /* Will not hurt, the signal is ignore anyway (yes, there is a race condition, I know). */
441 | pthread_kill(pthread_self(), signal.rawValue)
| `- error: cannot find 'pthread_kill' in scope
442 | /* No sigsuspend. Would block because signal is ignored. */
443 | if let oldAction = oldAction {
/host/spi-builder-workspace/Sources/SignalHandling/DelayedSigaction/SigactionDelayer_Block.swift:441:20: error: cannot find 'pthread_self' in scope
439 | let oldAction = try Sigaction.ignoreAction.install(on: signal, revertIfIgnored: false, updateUnsigRegistrations: false)
440 | /* Will not hurt, the signal is ignore anyway (yes, there is a race condition, I know). */
441 | pthread_kill(pthread_self(), signal.rawValue)
| `- error: cannot find 'pthread_self' in scope
442 | /* No sigsuspend. Would block because signal is ignored. */
443 | if let oldAction = oldAction {
[177/190] Compiling SignalHandling DelayedSigactionHandler.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[178/190] Compiling SignalHandling DelayedSigaction.swift
[179/190] Emitting module SignalHandling
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Sigaction.swift:44:24: error: cannot find type 'sigaction' in scope
42 | If the handler of the sigaction is `SIG_IGN` or `SIG_DFL`, we check the `sa_flags` not to contains the `SA_SIGINFO` bit.
43 | If they do, we log an error, as this is invalid. */
44 | public init(rawValue: sigaction) {
| `- error: cannot find type 'sigaction' in scope
45 | self.mask = Signal.set(from: rawValue.sa_mask)
46 | self.flags = SigactionFlags(rawValue: rawValue.sa_flags)
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Sigaction.swift:79:23: error: cannot find type 'sigaction' in scope
77 | }
78 |
79 | public var rawValue: sigaction {
| `- error: cannot find type 'sigaction' in scope
80 | if !isValid {
81 | Conf.logger?.warning("Getting sigaction from an invalid Sigaction.")
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/SigactionHandler.swift:19:80: error: cannot find type 'siginfo_t' in scope
17 |
18 | case ansiC(@convention(c) (_ signalID: Int32) -> Void)
19 | case posix(@convention(c) (_ signalID: Int32, _ siginfo: UnsafeMutablePointer<siginfo_t>?, _ userThreadContext: UnsafeMutableRawPointer?) -> Void)
| `- error: cannot find type 'siginfo_t' in scope
20 |
21 | public static func ==(lhs: SigactionHandler, rhs: SigactionHandler) -> Bool {
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Sigaction.swift:8:15: error: type 'Sigaction' does not conform to protocol 'RawRepresentable'
6 |
7 |
8 | public struct Sigaction : Equatable, RawRepresentable, Sendable {
| |- error: type 'Sigaction' does not conform to protocol 'RawRepresentable'
| `- note: add stubs for conformance
9 |
10 | public static let ignoreAction = Sigaction(handler: .ignoreHandler)
Swift.RawRepresentable.RawValue:2:16: note: protocol requires nested type 'RawValue'
1 | protocol RawRepresentable {
2 | associatedtype RawValue}
| `- note: protocol requires nested type 'RawValue'
3 |
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/SigactionFlag.swift:11:59: error: cannot find 'SA_NOCLDSTOP' in scope
9 | If this bit is set when installing a catching function for the `SIGCHLD` signal,
10 | the `SIGCHLD` signal will be generated only when a child process exits, not when a child process stops. */
11 | public static let noChildStop = SigactionFlags(rawValue: SA_NOCLDSTOP)
| `- error: cannot find 'SA_NOCLDSTOP' in scope
12 |
13 | /**
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/SigactionFlag.swift:19:59: error: cannot find 'SA_NOCLDWAIT' in scope
17 | it blocks until all of the calling process’s child processes terminate,
18 | and then returns a value of -1 with errno set to ECHILD. */
19 | public static let noChildWait = SigactionFlags(rawValue: SA_NOCLDWAIT)
| `- error: cannot find 'SA_NOCLDWAIT' in scope
20 |
21 | /**
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/SigactionFlag.swift:23:55: error: cannot find 'SA_ONSTACK' in scope
21 | /**
22 | If this bit is set, the system will deliver the signal to the process on a signal stack, specified with `sigaltstack(2)`. */
23 | public static let onStack = SigactionFlags(rawValue: SA_ONSTACK)
| `- error: cannot find 'SA_ONSTACK' in scope
24 |
25 | /**
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/SigactionFlag.swift:27:55: error: cannot find 'SA_NODEFER' in scope
25 | /**
26 | If this bit is set, further occurrences of the delivered signal are not masked during the execution of the handler. */
27 | public static let noDefer = SigactionFlags(rawValue: SA_NODEFER)
| `- error: cannot find 'SA_NODEFER' in scope
28 |
29 | /**
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/SigactionFlag.swift:31:65: error: cannot find 'SA_RESETHAND' in scope
29 | /**
30 | If this bit is set, the handler is reset back to `SIG_DFL` at the moment the signal is delivered. */
31 | public static let resetHandler = SigactionFlags(rawValue: CInt(SA_RESETHAND) /* On Linux, an UInt32 instead of Int32, so we cast… */)
| `- error: cannot find 'SA_RESETHAND' in scope
32 |
33 | /** See `sigaction(2)`. */
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/SigactionFlag.swift:34:55: error: cannot find 'SA_RESTART' in scope
32 |
33 | /** See `sigaction(2)`. */
34 | public static let restart = SigactionFlags(rawValue: SA_RESTART)
| `- error: cannot find 'SA_RESTART' in scope
35 |
36 | /**
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/SigactionFlag.swift:40:55: error: cannot find 'SA_SIGINFO' in scope
38 | and should match the matching prototype.
39 | This bit should not be set when assigning `SIG_DFL` or `SIG_IGN`. */
40 | public static let siginfo = SigactionFlags(rawValue: SA_SIGINFO)
| `- error: cannot find 'SA_SIGINFO' in scope
41 |
42 | public let rawValue: CInt
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Signal.swift: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:176:21: error: cannot find 'NSConditionLock' in scope
174 | }
175 |
176 | static let lock = NSConditionLock(condition: Self.nothingToDo.rawValue)
| `- error: cannot find 'NSConditionLock' in scope
177 |
178 | /* Read/write is protected by the lock above. */
/host/spi-builder-workspace/Sources/SignalHandling/DelayedSigaction/SigactionDelayer_Block.swift:190:23: error: cannot find type 'DispatchSourceSignal' in scope
188 | private struct BlockedSignal {
189 |
190 | var dispatchSource: DispatchSourceSignal
| `- error: cannot find type 'DispatchSourceSignal' in scope
191 | var handlers = [DelayedSigaction: DelayedSigactionHandler]()
192 |
/host/spi-builder-workspace/Sources/SignalHandling/DelayedSigaction/SigactionDelayer_Block.swift:195:45: error: cannot find 'DispatchQueue' in scope
193 | }
194 |
195 | private static let signalProcessingQueue = DispatchQueue(label: "com.xcode-actions.blocked-signals-processing-queue")
| `- error: cannot find 'DispatchQueue' in scope
196 |
197 | /* Only used on the main thread. */
/host/spi-builder-workspace/Sources/SignalHandling/DelayedSigaction/SigactionDelayer_Unsig.swift:129:21: error: cannot find 'NSConditionLock' in scope
127 | }
128 |
129 | static let lock = NSConditionLock(condition: Self.nothingToDo.rawValue)
| `- error: cannot find 'NSConditionLock' in scope
130 |
131 | /* Read/write is protected by the lock above. */
/host/spi-builder-workspace/Sources/SignalHandling/DelayedSigaction/SigactionDelayer_Unsig.swift:145:23: error: cannot find type 'DispatchSourceSignal' in scope
143 | var originalSigaction: Sigaction
144 |
145 | var dispatchSource: DispatchSourceSignal
| `- error: cannot find type 'DispatchSourceSignal' in scope
146 | var handlers = [DelayedSigaction: DelayedSigactionHandler]()
147 |
/host/spi-builder-workspace/Sources/SignalHandling/DelayedSigaction/SigactionDelayer_Unsig.swift:150:45: error: cannot find 'DispatchQueue' in scope
148 | }
149 |
150 | private static let signalProcessingQueue = DispatchQueue(label: "com.xcode-actions.unsigactioned-signals-processing-queue")
| `- error: cannot find 'DispatchQueue' in scope
151 |
152 | /* Both these vars are only modified/read on the signal processing queue. */
[180/190] Compiling SignalHandling Config.swift
[181/190] Compiling SignalHandling Errors.swift
[182/190] Compiling SignalHandling Sigaction.swift
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Sigaction.swift:44:24: error: cannot find type 'sigaction' in scope
42 | If the handler of the sigaction is `SIG_IGN` or `SIG_DFL`, we check the `sa_flags` not to contains the `SA_SIGINFO` bit.
43 | If they do, we log an error, as this is invalid. */
44 | public init(rawValue: sigaction) {
| `- error: cannot find type 'sigaction' in scope
45 | self.mask = Signal.set(from: rawValue.sa_mask)
46 | self.flags = SigactionFlags(rawValue: rawValue.sa_flags)
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Sigaction.swift:79:23: error: cannot find type 'sigaction' in scope
77 | }
78 |
79 | public var rawValue: sigaction {
| `- error: cannot find type 'sigaction' in scope
80 | if !isValid {
81 | Conf.logger?.warning("Getting sigaction from an invalid Sigaction.")
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/SigactionHandler.swift:19:80: error: cannot find type 'siginfo_t' in scope
17 |
18 | case ansiC(@convention(c) (_ signalID: Int32) -> Void)
19 | case posix(@convention(c) (_ signalID: Int32, _ siginfo: UnsafeMutablePointer<siginfo_t>?, _ userThreadContext: UnsafeMutableRawPointer?) -> Void)
| `- error: cannot find type 'siginfo_t' in scope
20 |
21 | public static func ==(lhs: SigactionHandler, rhs: SigactionHandler) -> Bool {
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Sigaction.swift:8:15: error: type 'Sigaction' does not conform to protocol 'RawRepresentable'
6 |
7 |
8 | public struct Sigaction : Equatable, RawRepresentable, Sendable {
| |- error: type 'Sigaction' does not conform to protocol 'RawRepresentable'
| `- note: add stubs for conformance
9 |
10 | public static let ignoreAction = Sigaction(handler: .ignoreHandler)
Swift.RawRepresentable.RawValue:2:16: note: protocol requires nested type 'RawValue'
1 | protocol RawRepresentable {
2 | associatedtype RawValue}
| `- note: protocol requires nested type 'RawValue'
3 |
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/SigactionFlag.swift:40:55: error: cannot find 'SA_SIGINFO' in scope
38 | and should match the matching prototype.
39 | This bit should not be set when assigning `SIG_DFL` or `SIG_IGN`. */
40 | public static let siginfo = SigactionFlags(rawValue: SA_SIGINFO)
| `- error: cannot find 'SA_SIGINFO' in scope
41 |
42 | public let rawValue: CInt
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Sigaction.swift:50:49: error: cannot find 'SIG_IGN' in scope
48 | #if !os(Linux)
49 | switch OpaquePointer(bitPattern: unsafeBitCast(rawValue.__sigaction_u.__sa_handler, to: Int.self)) {
50 | case OpaquePointer(bitPattern: unsafeBitCast(SIG_IGN, to: Int.self)): self.handler = .ignoreHandler
| `- error: cannot find 'SIG_IGN' in scope
51 | case OpaquePointer(bitPattern: unsafeBitCast(SIG_DFL, to: Int.self)): self.handler = .defaultHandler
52 | default:
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Sigaction.swift:51:49: error: cannot find 'SIG_DFL' in scope
49 | switch OpaquePointer(bitPattern: unsafeBitCast(rawValue.__sigaction_u.__sa_handler, to: Int.self)) {
50 | case OpaquePointer(bitPattern: unsafeBitCast(SIG_IGN, to: Int.self)): self.handler = .ignoreHandler
51 | case OpaquePointer(bitPattern: unsafeBitCast(SIG_DFL, to: Int.self)): self.handler = .defaultHandler
| `- error: cannot find 'SIG_DFL' in scope
52 | default:
53 | if flags.contains(.siginfo) {self.handler = .posix(rawValue.__sigaction_u.__sa_sigaction)}
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Sigaction.swift:72:16: error: cannot find 'sigaction' in scope
70 |
71 | public init(signal: Signal) throws {
72 | var action = sigaction()
| `- error: cannot find 'sigaction' in scope
73 | guard sigaction(signal.rawValue, nil, &action) == 0 else {
74 | throw SignalHandlingError.nonDestructiveSystemError(Errno(rawValue: errno))
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Sigaction.swift:73:9: error: cannot find 'sigaction' in scope
71 | public init(signal: Signal) throws {
72 | var action = sigaction()
73 | guard sigaction(signal.rawValue, nil, &action) == 0 else {
| `- error: cannot find 'sigaction' in scope
74 | throw SignalHandlingError.nonDestructiveSystemError(Errno(rawValue: errno))
75 | }
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Sigaction.swift:73:36: error: 'nil' requires a contextual type
71 | public init(signal: Signal) throws {
72 | var action = sigaction()
73 | guard sigaction(signal.rawValue, nil, &action) == 0 else {
| `- error: 'nil' requires a contextual type
74 | throw SignalHandlingError.nonDestructiveSystemError(Errno(rawValue: errno))
75 | }
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Sigaction.swift:76:8: error: no exact matches in call to initializer
28 | public var handler: SigactionHandler
29 |
30 | public init(handler: SigactionHandler) {
| `- note: incorrect labels for candidate (have: '(rawValue:)', expected: '(handler:)')
31 | self.mask = []
32 | switch handler {
:
69 | }
70 |
71 | public init(signal: Signal) throws {
| `- note: incorrect labels for candidate (have: '(rawValue:)', expected: '(signal:)')
72 | var action = sigaction()
73 | guard sigaction(signal.rawValue, nil, &action) == 0 else {
74 | throw SignalHandlingError.nonDestructiveSystemError(Errno(rawValue: errno))
75 | }
76 | self.init(rawValue: action)
| `- error: no exact matches in call to initializer
77 | }
78 |
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Sigaction.swift:84:13: error: cannot find 'sigaction' in scope
82 | }
83 |
84 | var ret = sigaction()
| `- error: cannot find 'sigaction' in scope
85 | ret.sa_mask = Signal.sigset(from: mask)
86 | ret.sa_flags = flags.rawValue
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Sigaction.swift:90:59: error: cannot find 'SIG_IGN' in scope
88 | #if !os(Linux)
89 | switch handler {
90 | case .ignoreHandler: ret.__sigaction_u.__sa_handler = SIG_IGN
| `- error: cannot find 'SIG_IGN' in scope
91 | case .defaultHandler: ret.__sigaction_u.__sa_handler = SIG_DFL
92 | case .ansiC(let h): ret.__sigaction_u.__sa_handler = h
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Sigaction.swift:91:59: error: cannot find 'SIG_DFL' in scope
89 | switch handler {
90 | case .ignoreHandler: ret.__sigaction_u.__sa_handler = SIG_IGN
91 | case .defaultHandler: ret.__sigaction_u.__sa_handler = SIG_DFL
| `- error: cannot find 'SIG_DFL' in scope
92 | case .ansiC(let h): ret.__sigaction_u.__sa_handler = h
93 | case .posix(let h): ret.__sigaction_u.__sa_sigaction = h
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Sigaction.swift:129:20: error: cannot find 'sigaction' in scope
127 | }
128 |
129 | var oldCAction = sigaction()
| `- error: cannot find 'sigaction' in scope
130 | var newCAction = self.rawValue
131 | guard sigaction(signal.rawValue, &newCAction, &oldCAction) == 0 else {
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Sigaction.swift:131:9: error: cannot find 'sigaction' in scope
129 | var oldCAction = sigaction()
130 | var newCAction = self.rawValue
131 | guard sigaction(signal.rawValue, &newCAction, &oldCAction) == 0 else {
| `- error: cannot find 'sigaction' in scope
132 | throw SignalHandlingError.nonDestructiveSystemError(Errno(rawValue: errno))
133 | }
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Sigaction.swift:134:22: error: no exact matches in call to initializer
28 | public var handler: SigactionHandler
29 |
30 | public init(handler: SigactionHandler) {
| `- note: incorrect labels for candidate (have: '(rawValue:)', expected: '(handler:)')
31 | self.mask = []
32 | switch handler {
:
69 | }
70 |
71 | public init(signal: Signal) throws {
| `- note: incorrect labels for candidate (have: '(rawValue:)', expected: '(signal:)')
72 | var action = sigaction()
73 | guard sigaction(signal.rawValue, nil, &action) == 0 else {
:
132 | throw SignalHandlingError.nonDestructiveSystemError(Errno(rawValue: errno))
133 | }
134 | let oldSigaction = Sigaction(rawValue: oldCAction)
| `- error: no exact matches in call to initializer
135 | if revertIfIgnored && oldSigaction == .ignoreAction {
136 | guard sigaction(signal.rawValue, &oldCAction, nil) == 0 else {
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Sigaction.swift:136:10: error: cannot find 'sigaction' in scope
134 | let oldSigaction = Sigaction(rawValue: oldCAction)
135 | if revertIfIgnored && oldSigaction == .ignoreAction {
136 | guard sigaction(signal.rawValue, &oldCAction, nil) == 0 else {
| `- error: cannot find 'sigaction' in scope
137 | throw SignalHandlingError.destructiveSystemError(Errno(rawValue: errno))
138 | }
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Sigaction.swift:136:50: error: 'nil' requires a contextual type
134 | let oldSigaction = Sigaction(rawValue: oldCAction)
135 | if revertIfIgnored && oldSigaction == .ignoreAction {
136 | guard sigaction(signal.rawValue, &oldCAction, nil) == 0 else {
| `- error: 'nil' requires a contextual type
137 | throw SignalHandlingError.destructiveSystemError(Errno(rawValue: errno))
138 | }
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/SigactionFlag.swift:11:59: error: cannot find 'SA_NOCLDSTOP' in scope
9 | If this bit is set when installing a catching function for the `SIGCHLD` signal,
10 | the `SIGCHLD` signal will be generated only when a child process exits, not when a child process stops. */
11 | public static let noChildStop = SigactionFlags(rawValue: SA_NOCLDSTOP)
| `- error: cannot find 'SA_NOCLDSTOP' in scope
12 |
13 | /**
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/SigactionFlag.swift:19:59: error: cannot find 'SA_NOCLDWAIT' in scope
17 | it blocks until all of the calling process’s child processes terminate,
18 | and then returns a value of -1 with errno set to ECHILD. */
19 | public static let noChildWait = SigactionFlags(rawValue: SA_NOCLDWAIT)
| `- error: cannot find 'SA_NOCLDWAIT' in scope
20 |
21 | /**
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/SigactionFlag.swift:23:55: error: cannot find 'SA_ONSTACK' in scope
21 | /**
22 | If this bit is set, the system will deliver the signal to the process on a signal stack, specified with `sigaltstack(2)`. */
23 | public static let onStack = SigactionFlags(rawValue: SA_ONSTACK)
| `- error: cannot find 'SA_ONSTACK' in scope
24 |
25 | /**
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/SigactionFlag.swift:27:55: error: cannot find 'SA_NODEFER' in scope
25 | /**
26 | If this bit is set, further occurrences of the delivered signal are not masked during the execution of the handler. */
27 | public static let noDefer = SigactionFlags(rawValue: SA_NODEFER)
| `- error: cannot find 'SA_NODEFER' in scope
28 |
29 | /**
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/SigactionFlag.swift:31:65: error: cannot find 'SA_RESETHAND' in scope
29 | /**
30 | If this bit is set, the handler is reset back to `SIG_DFL` at the moment the signal is delivered. */
31 | public static let resetHandler = SigactionFlags(rawValue: CInt(SA_RESETHAND) /* On Linux, an UInt32 instead of Int32, so we cast… */)
| `- error: cannot find 'SA_RESETHAND' in scope
32 |
33 | /** See `sigaction(2)`. */
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/SigactionFlag.swift:34:55: error: cannot find 'SA_RESTART' in scope
32 |
33 | /** See `sigaction(2)`. */
34 | public static let restart = SigactionFlags(rawValue: SA_RESTART)
| `- error: cannot find 'SA_RESTART' in scope
35 |
36 | /**
[183/190] Compiling SignalHandling SigactionFlag.swift
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Sigaction.swift:44:24: error: cannot find type 'sigaction' in scope
42 | If the handler of the sigaction is `SIG_IGN` or `SIG_DFL`, we check the `sa_flags` not to contains the `SA_SIGINFO` bit.
43 | If they do, we log an error, as this is invalid. */
44 | public init(rawValue: sigaction) {
| `- error: cannot find type 'sigaction' in scope
45 | self.mask = Signal.set(from: rawValue.sa_mask)
46 | self.flags = SigactionFlags(rawValue: rawValue.sa_flags)
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Sigaction.swift:79:23: error: cannot find type 'sigaction' in scope
77 | }
78 |
79 | public var rawValue: sigaction {
| `- error: cannot find type 'sigaction' in scope
80 | if !isValid {
81 | Conf.logger?.warning("Getting sigaction from an invalid Sigaction.")
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/SigactionHandler.swift:19:80: error: cannot find type 'siginfo_t' in scope
17 |
18 | case ansiC(@convention(c) (_ signalID: Int32) -> Void)
19 | case posix(@convention(c) (_ signalID: Int32, _ siginfo: UnsafeMutablePointer<siginfo_t>?, _ userThreadContext: UnsafeMutableRawPointer?) -> Void)
| `- error: cannot find type 'siginfo_t' in scope
20 |
21 | public static func ==(lhs: SigactionHandler, rhs: SigactionHandler) -> Bool {
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Sigaction.swift:8:15: error: type 'Sigaction' does not conform to protocol 'RawRepresentable'
6 |
7 |
8 | public struct Sigaction : Equatable, RawRepresentable, Sendable {
| |- error: type 'Sigaction' does not conform to protocol 'RawRepresentable'
| `- note: add stubs for conformance
9 |
10 | public static let ignoreAction = Sigaction(handler: .ignoreHandler)
Swift.RawRepresentable.RawValue:2:16: note: protocol requires nested type 'RawValue'
1 | protocol RawRepresentable {
2 | associatedtype RawValue}
| `- note: protocol requires nested type 'RawValue'
3 |
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/SigactionFlag.swift:40:55: error: cannot find 'SA_SIGINFO' in scope
38 | and should match the matching prototype.
39 | This bit should not be set when assigning `SIG_DFL` or `SIG_IGN`. */
40 | public static let siginfo = SigactionFlags(rawValue: SA_SIGINFO)
| `- error: cannot find 'SA_SIGINFO' in scope
41 |
42 | public let rawValue: CInt
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Sigaction.swift:50:49: error: cannot find 'SIG_IGN' in scope
48 | #if !os(Linux)
49 | switch OpaquePointer(bitPattern: unsafeBitCast(rawValue.__sigaction_u.__sa_handler, to: Int.self)) {
50 | case OpaquePointer(bitPattern: unsafeBitCast(SIG_IGN, to: Int.self)): self.handler = .ignoreHandler
| `- error: cannot find 'SIG_IGN' in scope
51 | case OpaquePointer(bitPattern: unsafeBitCast(SIG_DFL, to: Int.self)): self.handler = .defaultHandler
52 | default:
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Sigaction.swift:51:49: error: cannot find 'SIG_DFL' in scope
49 | switch OpaquePointer(bitPattern: unsafeBitCast(rawValue.__sigaction_u.__sa_handler, to: Int.self)) {
50 | case OpaquePointer(bitPattern: unsafeBitCast(SIG_IGN, to: Int.self)): self.handler = .ignoreHandler
51 | case OpaquePointer(bitPattern: unsafeBitCast(SIG_DFL, to: Int.self)): self.handler = .defaultHandler
| `- error: cannot find 'SIG_DFL' in scope
52 | default:
53 | if flags.contains(.siginfo) {self.handler = .posix(rawValue.__sigaction_u.__sa_sigaction)}
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Sigaction.swift:72:16: error: cannot find 'sigaction' in scope
70 |
71 | public init(signal: Signal) throws {
72 | var action = sigaction()
| `- error: cannot find 'sigaction' in scope
73 | guard sigaction(signal.rawValue, nil, &action) == 0 else {
74 | throw SignalHandlingError.nonDestructiveSystemError(Errno(rawValue: errno))
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Sigaction.swift:73:9: error: cannot find 'sigaction' in scope
71 | public init(signal: Signal) throws {
72 | var action = sigaction()
73 | guard sigaction(signal.rawValue, nil, &action) == 0 else {
| `- error: cannot find 'sigaction' in scope
74 | throw SignalHandlingError.nonDestructiveSystemError(Errno(rawValue: errno))
75 | }
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Sigaction.swift:73:36: error: 'nil' requires a contextual type
71 | public init(signal: Signal) throws {
72 | var action = sigaction()
73 | guard sigaction(signal.rawValue, nil, &action) == 0 else {
| `- error: 'nil' requires a contextual type
74 | throw SignalHandlingError.nonDestructiveSystemError(Errno(rawValue: errno))
75 | }
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Sigaction.swift:76:8: error: no exact matches in call to initializer
28 | public var handler: SigactionHandler
29 |
30 | public init(handler: SigactionHandler) {
| `- note: incorrect labels for candidate (have: '(rawValue:)', expected: '(handler:)')
31 | self.mask = []
32 | switch handler {
:
69 | }
70 |
71 | public init(signal: Signal) throws {
| `- note: incorrect labels for candidate (have: '(rawValue:)', expected: '(signal:)')
72 | var action = sigaction()
73 | guard sigaction(signal.rawValue, nil, &action) == 0 else {
74 | throw SignalHandlingError.nonDestructiveSystemError(Errno(rawValue: errno))
75 | }
76 | self.init(rawValue: action)
| `- error: no exact matches in call to initializer
77 | }
78 |
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Sigaction.swift:84:13: error: cannot find 'sigaction' in scope
82 | }
83 |
84 | var ret = sigaction()
| `- error: cannot find 'sigaction' in scope
85 | ret.sa_mask = Signal.sigset(from: mask)
86 | ret.sa_flags = flags.rawValue
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Sigaction.swift:90:59: error: cannot find 'SIG_IGN' in scope
88 | #if !os(Linux)
89 | switch handler {
90 | case .ignoreHandler: ret.__sigaction_u.__sa_handler = SIG_IGN
| `- error: cannot find 'SIG_IGN' in scope
91 | case .defaultHandler: ret.__sigaction_u.__sa_handler = SIG_DFL
92 | case .ansiC(let h): ret.__sigaction_u.__sa_handler = h
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Sigaction.swift:91:59: error: cannot find 'SIG_DFL' in scope
89 | switch handler {
90 | case .ignoreHandler: ret.__sigaction_u.__sa_handler = SIG_IGN
91 | case .defaultHandler: ret.__sigaction_u.__sa_handler = SIG_DFL
| `- error: cannot find 'SIG_DFL' in scope
92 | case .ansiC(let h): ret.__sigaction_u.__sa_handler = h
93 | case .posix(let h): ret.__sigaction_u.__sa_sigaction = h
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Sigaction.swift:129:20: error: cannot find 'sigaction' in scope
127 | }
128 |
129 | var oldCAction = sigaction()
| `- error: cannot find 'sigaction' in scope
130 | var newCAction = self.rawValue
131 | guard sigaction(signal.rawValue, &newCAction, &oldCAction) == 0 else {
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Sigaction.swift:131:9: error: cannot find 'sigaction' in scope
129 | var oldCAction = sigaction()
130 | var newCAction = self.rawValue
131 | guard sigaction(signal.rawValue, &newCAction, &oldCAction) == 0 else {
| `- error: cannot find 'sigaction' in scope
132 | throw SignalHandlingError.nonDestructiveSystemError(Errno(rawValue: errno))
133 | }
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Sigaction.swift:134:22: error: no exact matches in call to initializer
28 | public var handler: SigactionHandler
29 |
30 | public init(handler: SigactionHandler) {
| `- note: incorrect labels for candidate (have: '(rawValue:)', expected: '(handler:)')
31 | self.mask = []
32 | switch handler {
:
69 | }
70 |
71 | public init(signal: Signal) throws {
| `- note: incorrect labels for candidate (have: '(rawValue:)', expected: '(signal:)')
72 | var action = sigaction()
73 | guard sigaction(signal.rawValue, nil, &action) == 0 else {
:
132 | throw SignalHandlingError.nonDestructiveSystemError(Errno(rawValue: errno))
133 | }
134 | let oldSigaction = Sigaction(rawValue: oldCAction)
| `- error: no exact matches in call to initializer
135 | if revertIfIgnored && oldSigaction == .ignoreAction {
136 | guard sigaction(signal.rawValue, &oldCAction, nil) == 0 else {
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Sigaction.swift:136:10: error: cannot find 'sigaction' in scope
134 | let oldSigaction = Sigaction(rawValue: oldCAction)
135 | if revertIfIgnored && oldSigaction == .ignoreAction {
136 | guard sigaction(signal.rawValue, &oldCAction, nil) == 0 else {
| `- error: cannot find 'sigaction' in scope
137 | throw SignalHandlingError.destructiveSystemError(Errno(rawValue: errno))
138 | }
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Sigaction.swift:136:50: error: 'nil' requires a contextual type
134 | let oldSigaction = Sigaction(rawValue: oldCAction)
135 | if revertIfIgnored && oldSigaction == .ignoreAction {
136 | guard sigaction(signal.rawValue, &oldCAction, nil) == 0 else {
| `- error: 'nil' requires a contextual type
137 | throw SignalHandlingError.destructiveSystemError(Errno(rawValue: errno))
138 | }
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/SigactionFlag.swift:11:59: error: cannot find 'SA_NOCLDSTOP' in scope
9 | If this bit is set when installing a catching function for the `SIGCHLD` signal,
10 | the `SIGCHLD` signal will be generated only when a child process exits, not when a child process stops. */
11 | public static let noChildStop = SigactionFlags(rawValue: SA_NOCLDSTOP)
| `- error: cannot find 'SA_NOCLDSTOP' in scope
12 |
13 | /**
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/SigactionFlag.swift:19:59: error: cannot find 'SA_NOCLDWAIT' in scope
17 | it blocks until all of the calling process’s child processes terminate,
18 | and then returns a value of -1 with errno set to ECHILD. */
19 | public static let noChildWait = SigactionFlags(rawValue: SA_NOCLDWAIT)
| `- error: cannot find 'SA_NOCLDWAIT' in scope
20 |
21 | /**
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/SigactionFlag.swift:23:55: error: cannot find 'SA_ONSTACK' in scope
21 | /**
22 | If this bit is set, the system will deliver the signal to the process on a signal stack, specified with `sigaltstack(2)`. */
23 | public static let onStack = SigactionFlags(rawValue: SA_ONSTACK)
| `- error: cannot find 'SA_ONSTACK' in scope
24 |
25 | /**
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/SigactionFlag.swift:27:55: error: cannot find 'SA_NODEFER' in scope
25 | /**
26 | If this bit is set, further occurrences of the delivered signal are not masked during the execution of the handler. */
27 | public static let noDefer = SigactionFlags(rawValue: SA_NODEFER)
| `- error: cannot find 'SA_NODEFER' in scope
28 |
29 | /**
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/SigactionFlag.swift:31:65: error: cannot find 'SA_RESETHAND' in scope
29 | /**
30 | If this bit is set, the handler is reset back to `SIG_DFL` at the moment the signal is delivered. */
31 | public static let resetHandler = SigactionFlags(rawValue: CInt(SA_RESETHAND) /* On Linux, an UInt32 instead of Int32, so we cast… */)
| `- error: cannot find 'SA_RESETHAND' in scope
32 |
33 | /** See `sigaction(2)`. */
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/SigactionFlag.swift:34:55: error: cannot find 'SA_RESTART' in scope
32 |
33 | /** See `sigaction(2)`. */
34 | public static let restart = SigactionFlags(rawValue: SA_RESTART)
| `- error: cannot find 'SA_RESTART' in scope
35 |
36 | /**
[184/190] 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 | })
[185/190] 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 | })
[186/190] Compiling SignalHandling Utils.swift
BUILD FAILURE 6.3 wasm