The Swift Package Index logo.Swift Package Index

Build Information

Failed to build swift-signal-handling, reference main (3dcac5), with Swift 6.3 for Wasm on 15 Apr 2026 12:25:21 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4609320-3":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/swiftpackageindex/spi-images:wasm-6.3-latest swift build --swift-sdk swift-6.3-RELEASE_wasm 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.70.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/xcode-actions/swift-signal-handling.git
Reference: main
Initialized empty Git repository in /host/spi-builder-workspace/.git/
hint: Using 'master' as the name for the initial branch. This default branch name
hint: is subject to change. To configure the initial branch name to use in all
hint: of your new repositories, which will suppress this warning, call:
hint:
hint: 	git config --global init.defaultBranch <name>
hint:
hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and
hint: 'development'. The just-created branch can be renamed via this command:
hint:
hint: 	git branch -m <name>
From https://github.com/xcode-actions/swift-signal-handling
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at 3dcac57 Add a comment about an expected test failure on Linux
Cloned https://github.com/xcode-actions/swift-signal-handling.git
Revision (git rev-parse @):
3dcac579d3fa07cbdfde41de59fe5e60b7a5ff50
SUCCESS checkout https://github.com/xcode-actions/swift-signal-handling.git at main
========================================
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-3":/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/apple/swift-log.git
Fetching https://github.com/apple/swift-argument-parser.git
Fetching https://github.com/Frizlab/GlobalConfModule.git
Fetching https://github.com/xcode-actions/clt-logger.git
[1/669] Fetching globalconfmodule
[657/18192] Fetching globalconfmodule, swift-argument-parser
[1709/24761] Fetching globalconfmodule, swift-argument-parser, swift-log
[7754/25630] Fetching globalconfmodule, swift-argument-parser, swift-log, clt-logger
Fetched https://github.com/Frizlab/GlobalConfModule.git from cache (1.05s)
Fetched https://github.com/apple/swift-log.git from cache (1.06s)
Fetched https://github.com/xcode-actions/clt-logger.git from cache (1.07s)
Fetched https://github.com/apple/swift-argument-parser.git from cache (1.08s)
Computing version for https://github.com/Frizlab/GlobalConfModule.git
Computed https://github.com/Frizlab/GlobalConfModule.git at 0.4.4 (1.69s)
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.42s)
Fetched https://github.com/swiftlang/swift-syntax.git from cache (8.50s)
Computing version for https://github.com/apple/swift-service-context.git
Computed https://github.com/apple/swift-service-context.git at 1.3.0 (8.95s)
Computing version for https://github.com/swiftlang/swift-syntax.git
Computed https://github.com/swiftlang/swift-syntax.git at 602.0.0 (3.67s)
Computing version for https://github.com/apple/swift-log.git
Computed https://github.com/apple/swift-log.git at 1.12.0 (0.70s)
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.69s)
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.64s)
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/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-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
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
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.46s)
[1/1] Compiling plugin GenerateManual
[2/2] Compiling plugin GenerateDoccReference
Building for debugging...
[2/25] Write sources
[11/25] Write swift-version-24593BA9C3E375BF.txt
[13/44] Compiling ServiceContextModule ServiceContextKey.swift
[14/44] Compiling ServiceContextModule ServiceContext.swift
[15/44] Emitting module ServiceContextModule
[16/45] Wrapping AST for ServiceContextModule for debugging
[18/45] Compiling ArgumentParserToolInfo ToolInfo.swift
[19/45] Emitting module ArgumentParserToolInfo
[20/46] Compiling Logging Locks.swift
[21/46] Emitting module Logging
[22/46] Compiling Logging MetadataProvider.swift
[23/47] Wrapping AST for ArgumentParserToolInfo for debugging
[25/92] Compiling Logging Logging.swift
[26/92] Compiling Logging LogEvent.swift
[27/92] Compiling Logging LogHandler.swift
[28/93] Wrapping AST for Logging for debugging
[30/103] Emitting module ArgumentParser
[31/109] Compiling ArgumentParser ParentCommand.swift
[32/109] Compiling ArgumentParser AsyncParsableCommand.swift
[33/109] Compiling ArgumentParser CommandConfiguration.swift
[34/109] Compiling ArgumentParser CommandGroup.swift
[35/109] Compiling ArgumentParser EnumerableFlag.swift
[36/109] Compiling ArgumentParser ExpressibleByArgument.swift
[37/109] Compiling ArgumentParser ParsableArguments.swift
[38/109] Compiling ArgumentParser Foundation.swift
[39/109] Compiling ArgumentParser Mutex.swift
[40/109] Compiling ArgumentParser Platform.swift
[41/109] Compiling ArgumentParser SequenceExtensions.swift
[42/109] Compiling ArgumentParser StringExtensions.swift
[43/109] Compiling ArgumentParser SwiftExtensions.swift
[44/109] Compiling CLTLogger NSLock+withLock.swift
[45/109] Compiling CLTLogger Scanner+OldOS.swift
[46/110] Compiling CLTLogger EmojiSet.swift
[47/110] Compiling ArgumentParser InputOrigin.swift
[48/110] Compiling ArgumentParser Name.swift
[49/110] Compiling ArgumentParser Parsed.swift
[50/110] Compiling ArgumentParser ParsedValues.swift
[51/110] Compiling ArgumentParser ParserError.swift
[52/110] Compiling ArgumentParser SplitArguments.swift
[53/110] Compiling CLTLogger DummySendable.swift
[54/110] Compiling CLTLogger Emoji.swift
[55/110] Emitting module CLTLogger
[56/110] Compiling CLTLogger CLTLogger+WithSendable.swift
[57/110] Compiling CLTLogger CLTLogger.swift
[58/110] Compiling ArgumentParser ArgumentVisibility.swift
[59/110] Compiling ArgumentParser CompletionKind.swift
[60/110] Compiling ArgumentParser Errors.swift
[61/110] Compiling ArgumentParser Flag.swift
[62/110] Compiling ArgumentParser NameSpecification.swift
[63/110] Compiling ArgumentParser Option.swift
[64/110] Compiling ArgumentParser OptionGroup.swift
[65/110] Compiling GlobalConfMacros Entrypoint.swift
[66/110] Emitting module GlobalConfMacros
[67/111] Compiling CLTLogger String+Utils.swift
[68/111] Compiling GlobalConfMacros LabeledExprSyntax+Utils.swift
[69/111] Compiling GlobalConfMacros Optional+Utils.swift
[70/111] Compiling ArgumentParser Tree.swift
[71/111] Compiling ArgumentParser CodingKeyValidator.swift
[72/111] Compiling ArgumentParser NonsenseFlagsValidator.swift
[73/111] Compiling ArgumentParser ParsableArgumentsValidation.swift
[74/111] Compiling ArgumentParser PositionalArgumentsValidator.swift
[75/111] Compiling ArgumentParser UniqueNamesValidator.swift
[76/111] Compiling GlobalConfMacros DeclareConfNamespaceMacro.swift
[77/111] Compiling GlobalConfMacros  Errors.swift
[78/111] Compiling GlobalConfMacros DeclareConfAccessorMacro.swift
[79/111] Compiling GlobalConfMacros DeclareConfMacro.swift
[80/111] Compiling GlobalConfMacros SimpleDiagnosticMessage.swift
[82/112] Compiling CLTLogger OutputEnvironment.swift
[83/112] Compiling CLTLogger SGR.swift
[83/113] Wrapping AST for GlobalConfMacros for debugging
[84/113] Write Objects.LinkFileList
[86/113] Wrapping AST for CLTLogger for debugging
[92/113] Compiling ArgumentParser Argument.swift
[93/113] Compiling ArgumentParser ArgumentDiscussion.swift
[94/113] Compiling ArgumentParser ArgumentHelp.swift
[95/113] Compiling ArgumentParser DumpHelpGenerator.swift
[96/113] Compiling ArgumentParser HelpCommand.swift
[97/113] Compiling ArgumentParser HelpGenerator.swift
[98/113] Compiling ArgumentParser MessageInfo.swift
[99/113] Compiling ArgumentParser UsageGenerator.swift
[100/113] Compiling ArgumentParser CollectionExtensions.swift
[101/113] Compiling ArgumentParser ParsableCommand.swift
[102/113] Compiling ArgumentParser ArgumentDecoder.swift
[103/113] Compiling ArgumentParser ArgumentDefinition.swift
[104/113] Compiling ArgumentParser ArgumentSet.swift
[105/113] Compiling ArgumentParser CommandParser.swift
[106/113] Compiling ArgumentParser InputKey.swift
[107/114] Linking GlobalConfMacros-tool
[108/136] Wrapping AST for ArgumentParser for debugging
[110/136] Compiling GlobalConfModule AutoInjectable.swift
[111/136] Compiling GlobalConfModule AutoInjectableMainActor.swift
[112/136] Compiling GlobalConfModule InjectedConf+AutoInjectable.swift
[113/136] Compiling GlobalConfModule InjectedConf.swift
Internal Error: DecodingError.dataCorrupted: Data was corrupted. Debug description: Corrupted JSON. Underlying error: unexpected end of file
[114/136] Compiling GlobalConfModule 1-ConfKey.swift
Internal Error: DecodingError.dataCorrupted: Data was corrupted. Debug description: Corrupted JSON. Underlying error: unexpected end of file
[115/136] Compiling GlobalConfModule 2-ServiceKey.swift
Internal Error: DecodingError.dataCorrupted: Data was corrupted. Debug description: Corrupted JSON. Underlying error: unexpected end of file
[116/138] Compiling GlobalConfModule 3-NamespaceKey.swift
[117/138] Compiling GlobalConfModule 4-AccessorConvenience.swift
[118/138] Compiling GlobalConfModule ConfContext+ConfKey.swift
[119/138] Compiling GlobalConfModule ConfContext+ConfKeyMainActor.swift
[120/138] Compiling GlobalConfModule ConfContext.swift
[121/138] Compiling GlobalConfModule Conf.swift
[122/138] Compiling GlobalConfModule ConfContext+AutoInjectable.swift
[123/138] Compiling GlobalConfModule ConfContext+AutoInjectableMainActor.swift
[124/138] Emitting module GlobalConfModule
[125/138] Compiling GlobalConfModule ConfKey.swift
[126/138] Compiling GlobalConfModule ConfKeyMainActor.swift
[127/138] Compiling GlobalConfModule ConfKeys.swift
[128/138] Compiling GlobalConfModule InjectedConf+AutoInjectableMainActor.swift
[129/138] Compiling GlobalConfModule InjectedConf+ConfKey.swift
[130/138] Compiling GlobalConfModule InjectedConf+ConfKeyMainActor.swift
[131/138] Compiling GlobalConfModule Conf+ConfKey.swift
[132/138] Compiling GlobalConfModule Conf+ConfKeyMainActor.swift
[133/138] Compiling GlobalConfModule Conf+withValues.swift
[134/139] Wrapping AST for GlobalConfModule for debugging
[136/151] Compiling SignalHandling DelayedSigaction.swift
[137/151] Compiling SignalHandling DelayedSigactionHandler.swift
[138/152] Compiling SignalHandling ErrnoWithoutSystem.swift
[139/152] 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 | 			})
[140/152] 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 | 			})
[141/152] Compiling SignalHandling SigactionDelayer_Unsig.swift
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/SigactionHandler.swift:19:80: error: cannot find type 'siginfo_t' in scope
17 |
18 | 	case ansiC(@convention(c) (_ signalID: Int32) -> Void)
19 | 	case posix(@convention(c) (_ signalID: Int32, _ siginfo: UnsafeMutablePointer<siginfo_t>?, _ userThreadContext: UnsafeMutableRawPointer?) -> Void)
   |                                                                                `- error: cannot find type 'siginfo_t' in scope
20 |
21 | 	public static func ==(lhs: SigactionHandler, rhs: SigactionHandler) -> Bool {
/host/spi-builder-workspace/Sources/SignalHandling/DelayedSigaction/SigactionDelayer_Unsig.swift:133:21: error: cannot find 'NSConditionLock' in scope
131 | 		}
132 |
133 | 		static let lock = NSConditionLock(condition: Self.nothingToDo.rawValue)
    |                     `- error: cannot find 'NSConditionLock' in scope
134 |
135 | 		/* Read/write is protected by the lock above. */
/host/spi-builder-workspace/Sources/SignalHandling/DelayedSigaction/SigactionDelayer_Unsig.swift:149:23: error: cannot find type 'DispatchSourceSignal' in scope
147 | 		var originalSigaction: Sigaction
148 |
149 | 		var dispatchSource: DispatchSourceSignal
    |                       `- error: cannot find type 'DispatchSourceSignal' in scope
150 | 		var handlers = [DelayedSigaction: DelayedSigactionHandler]()
151 |
/host/spi-builder-workspace/Sources/SignalHandling/DelayedSigaction/SigactionDelayer_Unsig.swift:154:45: error: cannot find 'DispatchQueue' in scope
152 | 	}
153 |
154 | 	private static let signalProcessingQueue = DispatchQueue(label: "com.xcode-actions.unsigactioned-signals-processing-queue")
    |                                             `- error: cannot find 'DispatchQueue' in scope
155 |
156 | 	/* Both these vars are only modified/read on the signal processing queue. */
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Sigaction.swift:48:24: error: cannot find type 'sigaction' in scope
 46 | 	 If the handler of the sigaction is `SIG_IGN` or `SIG_DFL`, we check the `sa_flags` not to contains the `SA_SIGINFO` bit.
 47 | 	 If they do, we log an error, as this is invalid. */
 48 | 	public init(rawValue: sigaction) {
    |                        `- error: cannot find type 'sigaction' in scope
 49 | 		self.mask = Signal.set(from: rawValue.sa_mask)
 50 | 		self.flags = SigactionFlags(rawValue: rawValue.sa_flags)
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Sigaction.swift:83:23: error: cannot find type 'sigaction' in scope
 81 | 	}
 82 |
 83 | 	public var rawValue: sigaction {
    |                       `- error: cannot find type 'sigaction' in scope
 84 | 		if !isValid {
 85 | 			Conf.logger?.warning("Getting sigaction from an invalid Sigaction.")
/host/spi-builder-workspace/Sources/SignalHandling/DelayedSigaction/SigactionDelayer_Unsig.swift:91:21: error: type 'Sigaction' does not conform to protocol 'RawRepresentable'
 89 |
 90 | 	 - Returns: The previous sigaction if there was an unsigaction registered for the given signal, `nil` otherwise. */
 91 | 	public static func updateOriginalSigaction(for signal: Signal, to sigaction: Sigaction) -> Sigaction? {
    |                     `- error: type 'Sigaction' does not conform to protocol 'RawRepresentable'
 92 | 		return signalProcessingQueue.sync{
 93 | 			let previous = unsigactionedSignals[signal]?.originalSigaction
/host/spi-builder-workspace/Sources/SignalHandling/DelayedSigaction/SigactionDelayer_Unsig.swift:213:31: error: cannot find 'DispatchSource' in scope
211 | 			}
212 | 		} else {
213 | 			let dispatchSourceSignal = DispatchSource.makeSignalSource(signal: signal.rawValue, queue: signalProcessingQueue)
    |                               `- error: cannot find 'DispatchSource' in scope
214 | 			/* Apparently the dispatchSourceSignal does not need to be weak in the handler because the handler is released when the source is canceled.
215 | 			 * I manually tested this and found no confirmation or infirmation of this in the documentation. */
/host/spi-builder-workspace/Sources/SignalHandling/DelayedSigaction/SigactionDelayer_Unsig.swift:276:16: error: cannot find 'DispatchGroup' in scope
274 | 		for _ in 0..<count {
275 | 			let lock = NSLock()
276 | 			let group = DispatchGroup()
    |                `- error: cannot find 'DispatchGroup' in scope
277 | 			nonisolated(unsafe) var runOriginalHandlerFinal = true
278 | 			for (_, handler) in unsigactionedSignal.handlers {
/host/spi-builder-workspace/Sources/SignalHandling/DelayedSigaction/SigactionDelayer_Unsig.swift:305:15: error: cannot find 'DispatchGroup' in scope
303 |
304 | 		nonisolated(unsafe) var error: Error?
305 | 		let group = DispatchGroup()
    |               `- error: cannot find 'DispatchGroup' in scope
306 | 		group.enter()
307 | 		Thread.detachNewThread{
/host/spi-builder-workspace/Sources/SignalHandling/DelayedSigaction/SigactionDelayer_Unsig.swift:307:3: error: cannot find 'Thread' in scope
305 | 		let group = DispatchGroup()
306 | 		group.enter()
307 | 		Thread.detachNewThread{
    |   `- error: cannot find 'Thread' in scope
308 | 			Thread.current.name = "com.xcode-actions.unsigactioned-signals-thread"
309 |
/host/spi-builder-workspace/Sources/SignalHandling/DelayedSigaction/SigactionDelayer_Unsig.swift:308:4: error: cannot find 'Thread' in scope
306 | 		group.enter()
307 | 		Thread.detachNewThread{
308 | 			Thread.current.name = "com.xcode-actions.unsigactioned-signals-thread"
    |    `- error: cannot find 'Thread' in scope
309 |
310 | 			/* Unblock all signals in this thread. */
/host/spi-builder-workspace/Sources/SignalHandling/DelayedSigaction/SigactionDelayer_Unsig.swift:312:14: error: cannot find 'pthread_sigmask' in scope
310 | 			/* Unblock all signals in this thread. */
311 | 			var noSignals = Signal.emptySigset
312 | 			let ret = pthread_sigmask(SIG_SETMASK, &noSignals, nil /* old signals */)
    |              `- error: cannot find 'pthread_sigmask' in scope
313 | 			if ret != 0 {
314 | 				error = SignalHandlingError.destructiveSystemError(Errno(rawValue: ret))
/host/spi-builder-workspace/Sources/SignalHandling/DelayedSigaction/SigactionDelayer_Unsig.swift:312:30: error: cannot find 'SIG_SETMASK' in scope
310 | 			/* Unblock all signals in this thread. */
311 | 			var noSignals = Signal.emptySigset
312 | 			let ret = pthread_sigmask(SIG_SETMASK, &noSignals, nil /* old signals */)
    |                              `- error: cannot find 'SIG_SETMASK' in scope
313 | 			if ret != 0 {
314 | 				error = SignalHandlingError.destructiveSystemError(Errno(rawValue: ret))
/host/spi-builder-workspace/Sources/SignalHandling/DelayedSigaction/SigactionDelayer_Unsig.swift:383:20: error: cannot find 'pthread_self' in scope
381 | 						 * Anyway, we need to reinstall the sigaction handler after the signal has been sent and processed,
382 | 						 *  so we need to have some control, which `raise` does not give. */
383 | 						let thread = pthread_self()
    |                    `- error: cannot find 'pthread_self' in scope
384 | //						let killResult = raise(signal.rawValue)
385 | 						let killResult = pthread_kill(thread, signal.rawValue)
/host/spi-builder-workspace/Sources/SignalHandling/DelayedSigaction/SigactionDelayer_Unsig.swift:385:24: error: cannot find 'pthread_kill' in scope
383 | 						let thread = pthread_self()
384 | //						let killResult = raise(signal.rawValue)
385 | 						let killResult = pthread_kill(thread, signal.rawValue)
    |                        `- error: cannot find 'pthread_kill' in scope
386 | 						if killResult != 0 {
387 | 							completionResult.errorLogs.append(("Cannot send signal to unsigactioned thread.", ["signal": "\(signal)", "kill_result": "\(killResult)"]))
/host/spi-builder-workspace/Sources/SignalHandling/DelayedSigaction/SigactionDelayer_Unsig.swift:391:27: error: cannot find 'pthread_sigmask' in scope
389 |
390 | 						/* Re-unblock all signals (in case a handler blocked one). */
391 | 						let sigmaskResult = pthread_sigmask(SIG_SETMASK, &emptyMask, nil)
    |                           `- error: cannot find 'pthread_sigmask' in scope
392 | 						if sigmaskResult != 0 {
393 | 							completionResult.errorLogs.append((
/host/spi-builder-workspace/Sources/SignalHandling/DelayedSigaction/SigactionDelayer_Unsig.swift:391:43: error: cannot find 'SIG_SETMASK' in scope
389 |
390 | 						/* Re-unblock all signals (in case a handler blocked one). */
391 | 						let sigmaskResult = pthread_sigmask(SIG_SETMASK, &emptyMask, nil)
    |                                           `- error: cannot find 'SIG_SETMASK' in scope
392 | 						if sigmaskResult != 0 {
393 | 							completionResult.errorLogs.append((
/host/spi-builder-workspace/Sources/SignalHandling/DelayedSigaction/SigactionDelayer_Unsig.swift:391:68: error: 'nil' requires a contextual type
389 |
390 | 						/* Re-unblock all signals (in case a handler blocked one). */
391 | 						let sigmaskResult = pthread_sigmask(SIG_SETMASK, &emptyMask, nil)
    |                                                                    `- error: 'nil' requires a contextual type
392 | 						if sigmaskResult != 0 {
393 | 							completionResult.errorLogs.append((
Internal Error: DecodingError.dataCorrupted: Data was corrupted. Debug description: Corrupted JSON. Underlying error: unexpected end of file
error: emit-module command failed with exit code 1 (use -v to see invocation)
[142/152] Compiling SignalHandling SigactionDelayer_Block.swift
/host/spi-builder-workspace/Sources/SignalHandling/DelayedSigaction/SigactionDelayer_Block.swift:180:21: error: cannot find 'NSConditionLock' in scope
178 | 		}
179 |
180 | 		static let lock = NSConditionLock(condition: Self.nothingToDo.rawValue)
    |                     `- error: cannot find 'NSConditionLock' in scope
181 |
182 | 		/* Read/write is protected by the lock above. */
/host/spi-builder-workspace/Sources/SignalHandling/DelayedSigaction/SigactionDelayer_Block.swift:194:23: error: cannot find type 'DispatchSourceSignal' in scope
192 | 	private struct BlockedSignal {
193 |
194 | 		var dispatchSource: DispatchSourceSignal
    |                       `- error: cannot find type 'DispatchSourceSignal' in scope
195 | 		var handlers = [DelayedSigaction: DelayedSigactionHandler]()
196 |
/host/spi-builder-workspace/Sources/SignalHandling/DelayedSigaction/SigactionDelayer_Block.swift:199:45: error: cannot find 'DispatchQueue' in scope
197 | 	}
198 |
199 | 	private static let signalProcessingQueue = DispatchQueue(label: "com.xcode-actions.blocked-signals-processing-queue")
    |                                             `- error: cannot find 'DispatchQueue' in scope
200 |
201 | 	/* Only used on the main thread. */
/host/spi-builder-workspace/Sources/SignalHandling/DelayedSigaction/SigactionDelayer_Block.swift:67:11: error: cannot find 'Thread' in scope
 65 | 	 - Important: You should not use `pthread_sigmask` to sigprocmask (nor anything to unblock signals) after calling this method. */
 66 | 	public static func bootstrap(for signals: Set<Signal>) throws {
 67 | 		assert(!Thread.isMultiThreaded())
    |           `- error: cannot find 'Thread' in scope
 68 | 		guard !bootstrapDone else {
 69 | 			fatalError("DelayedSigaction can be bootstrapped only once")
/host/spi-builder-workspace/Sources/SignalHandling/DelayedSigaction/SigactionDelayer_Block.swift:73:13: error: cannot find 'pthread_sigmask' in scope
 71 |
 72 | 		var signalsSigset = Signal.sigset(from: signals)
 73 | 		let ret = pthread_sigmask(SIG_SETMASK, &signalsSigset, nil /* old signals */)
    |             `- error: cannot find 'pthread_sigmask' in scope
 74 | 		if ret != 0 {
 75 | 			throw SignalHandlingError.nonDestructiveSystemError(Errno(rawValue: ret))
/host/spi-builder-workspace/Sources/SignalHandling/DelayedSigaction/SigactionDelayer_Block.swift:73:29: error: cannot find 'SIG_SETMASK' in scope
 71 |
 72 | 		var signalsSigset = Signal.sigset(from: signals)
 73 | 		let ret = pthread_sigmask(SIG_SETMASK, &signalsSigset, nil /* old signals */)
    |                             `- error: cannot find 'SIG_SETMASK' in scope
 74 | 		if ret != 0 {
 75 | 			throw SignalHandlingError.nonDestructiveSystemError(Errno(rawValue: ret))
/host/spi-builder-workspace/Sources/SignalHandling/DelayedSigaction/SigactionDelayer_Block.swift:73:58: error: 'nil' requires a contextual type
 71 |
 72 | 		var signalsSigset = Signal.sigset(from: signals)
 73 | 		let ret = pthread_sigmask(SIG_SETMASK, &signalsSigset, nil /* old signals */)
    |                                                          `- error: 'nil' requires a contextual type
 74 | 		if ret != 0 {
 75 | 			throw SignalHandlingError.nonDestructiveSystemError(Errno(rawValue: ret))
/host/spi-builder-workspace/Sources/SignalHandling/DelayedSigaction/SigactionDelayer_Block.swift:79:15: error: cannot find 'DispatchGroup' in scope
 77 |
 78 | 		nonisolated(unsafe) var error: Error?
 79 | 		let group = DispatchGroup()
    |               `- error: cannot find 'DispatchGroup' in scope
 80 | 		group.enter()
 81 | 		Thread.detachNewThread{
/host/spi-builder-workspace/Sources/SignalHandling/DelayedSigaction/SigactionDelayer_Block.swift:81:3: error: cannot find 'Thread' in scope
 79 | 		let group = DispatchGroup()
 80 | 		group.enter()
 81 | 		Thread.detachNewThread{
    |   `- error: cannot find 'Thread' in scope
 82 | 			Thread.current.name = "com.xcode-actions.blocked-signals-thread"
 83 |
/host/spi-builder-workspace/Sources/SignalHandling/DelayedSigaction/SigactionDelayer_Block.swift:82:4: error: cannot find 'Thread' in scope
 80 | 		group.enter()
 81 | 		Thread.detachNewThread{
 82 | 			Thread.current.name = "com.xcode-actions.blocked-signals-thread"
    |    `- error: cannot find 'Thread' in scope
 83 |
 84 | 			/* Unblock all signals in this thread. */
/host/spi-builder-workspace/Sources/SignalHandling/DelayedSigaction/SigactionDelayer_Block.swift:86:14: error: cannot find 'pthread_sigmask' in scope
 84 | 			/* Unblock all signals in this thread. */
 85 | 			var noSignals = Signal.emptySigset
 86 | 			let ret = pthread_sigmask(SIG_SETMASK, &noSignals, nil /* old signals */)
    |              `- error: cannot find 'pthread_sigmask' in scope
 87 | 			if ret != 0 {
 88 | 				error = SignalHandlingError.destructiveSystemError(Errno(rawValue: ret))
/host/spi-builder-workspace/Sources/SignalHandling/DelayedSigaction/SigactionDelayer_Block.swift:86:30: error: cannot find 'SIG_SETMASK' in scope
 84 | 			/* Unblock all signals in this thread. */
 85 | 			var noSignals = Signal.emptySigset
 86 | 			let ret = pthread_sigmask(SIG_SETMASK, &noSignals, nil /* old signals */)
    |                              `- error: cannot find 'SIG_SETMASK' in scope
 87 | 			if ret != 0 {
 88 | 				error = SignalHandlingError.destructiveSystemError(Errno(rawValue: ret))
/host/spi-builder-workspace/Sources/SignalHandling/DelayedSigaction/SigactionDelayer_Block.swift:253:31: error: cannot find 'DispatchSource' in scope
251 | 			try executeOnThread(.block(signal))
252 |
253 | 			let dispatchSourceSignal = DispatchSource.makeSignalSource(signal: signal.rawValue, queue: signalProcessingQueue)
    |                               `- error: cannot find 'DispatchSource' in scope
254 | 			/* Apparently the dispatchSourceSignal does not need to be weak in the handler because the handler is released when the source is canceled.
255 | 			 * I manually tested this and found no confirmation or infirmation of this in the documentation. */
/host/spi-builder-workspace/Sources/SignalHandling/DelayedSigaction/SigactionDelayer_Block.swift:334:16: error: cannot find 'DispatchGroup' in scope
332 | 		for _ in 0..<count {
333 | 			let lock = NSLock()
334 | 			let group = DispatchGroup()
    |                `- error: cannot find 'DispatchGroup' in scope
335 | 			nonisolated(unsafe) var runOriginalHandlerFinal = true
336 | 			for (_, handler) in blockedSignal.handlers {
/host/spi-builder-workspace/Sources/SignalHandling/DelayedSigaction/SigactionDelayer_Block.swift:391:17: error: cannot find 'pthread_sigmask' in scope
389 | //						loggerLessThreadSafeDebugLog("🧵 Processing block action for \(signal)…")
390 | 						var sigset = signal.sigset
391 | 						let ret = pthread_sigmask(SIG_BLOCK, &sigset, nil /* old signals */)
    |                 `- error: cannot find 'pthread_sigmask' in scope
392 | 						if ret != 0 {
393 | 							throw SignalHandlingError.destructiveSystemError(Errno(rawValue: ret))
/host/spi-builder-workspace/Sources/SignalHandling/DelayedSigaction/SigactionDelayer_Block.swift:391:33: error: cannot find 'SIG_BLOCK' in scope
389 | //						loggerLessThreadSafeDebugLog("🧵 Processing block action for \(signal)…")
390 | 						var sigset = signal.sigset
391 | 						let ret = pthread_sigmask(SIG_BLOCK, &sigset, nil /* old signals */)
    |                                 `- error: cannot find 'SIG_BLOCK' in scope
392 | 						if ret != 0 {
393 | 							throw SignalHandlingError.destructiveSystemError(Errno(rawValue: ret))
/host/spi-builder-workspace/Sources/SignalHandling/DelayedSigaction/SigactionDelayer_Block.swift:391:53: error: 'nil' requires a contextual type
389 | //						loggerLessThreadSafeDebugLog("🧵 Processing block action for \(signal)…")
390 | 						var sigset = signal.sigset
391 | 						let ret = pthread_sigmask(SIG_BLOCK, &sigset, nil /* old signals */)
    |                                                     `- error: 'nil' requires a contextual type
392 | 						if ret != 0 {
393 | 							throw SignalHandlingError.destructiveSystemError(Errno(rawValue: ret))
/host/spi-builder-workspace/Sources/SignalHandling/DelayedSigaction/SigactionDelayer_Block.swift:399:17: error: cannot find 'pthread_sigmask' in scope
397 | //						loggerLessThreadSafeDebugLog("🧵 Processing unblock action for \(signal)…")
398 | 						var sigset = signal.sigset
399 | 						let ret = pthread_sigmask(SIG_UNBLOCK, &sigset, nil /* old signals */)
    |                 `- error: cannot find 'pthread_sigmask' in scope
400 | 						if ret != 0 {
401 | 							throw SignalHandlingError.destructiveSystemError(Errno(rawValue: ret))
/host/spi-builder-workspace/Sources/SignalHandling/DelayedSigaction/SigactionDelayer_Block.swift:399:33: error: cannot find 'SIG_UNBLOCK' in scope
397 | //						loggerLessThreadSafeDebugLog("🧵 Processing unblock action for \(signal)…")
398 | 						var sigset = signal.sigset
399 | 						let ret = pthread_sigmask(SIG_UNBLOCK, &sigset, nil /* old signals */)
    |                                 `- error: cannot find 'SIG_UNBLOCK' in scope
400 | 						if ret != 0 {
401 | 							throw SignalHandlingError.destructiveSystemError(Errno(rawValue: ret))
/host/spi-builder-workspace/Sources/SignalHandling/DelayedSigaction/SigactionDelayer_Block.swift:399:55: error: 'nil' requires a contextual type
397 | //						loggerLessThreadSafeDebugLog("🧵 Processing unblock action for \(signal)…")
398 | 						var sigset = signal.sigset
399 | 						let ret = pthread_sigmask(SIG_UNBLOCK, &sigset, nil /* old signals */)
    |                                                       `- error: 'nil' requires a contextual type
400 | 						if ret != 0 {
401 | 							throw SignalHandlingError.destructiveSystemError(Errno(rawValue: ret))
/host/spi-builder-workspace/Sources/SignalHandling/DelayedSigaction/SigactionDelayer_Block.swift:411:18: error: cannot find 'pthread_sigmask' in scope
409 | 							/* We update the sigset only when signal is not ignored
410 | 							 *  because it is used only in that case and this is getting the current sigmask can fail. */
411 | 							let ret = pthread_sigmask(SIG_SETMASK, nil /* new signals */, &sigset)
    |                  `- error: cannot find 'pthread_sigmask' in scope
412 | 							if ret != 0 {
413 | 								throw SignalHandlingError.nonDestructiveSystemError(Errno(rawValue: ret))
/host/spi-builder-workspace/Sources/SignalHandling/DelayedSigaction/SigactionDelayer_Block.swift:411:34: error: cannot find 'SIG_SETMASK' in scope
409 | 							/* We update the sigset only when signal is not ignored
410 | 							 *  because it is used only in that case and this is getting the current sigmask can fail. */
411 | 							let ret = pthread_sigmask(SIG_SETMASK, nil /* new signals */, &sigset)
    |                                  `- error: cannot find 'SIG_SETMASK' in scope
412 | 							if ret != 0 {
413 | 								throw SignalHandlingError.nonDestructiveSystemError(Errno(rawValue: ret))
/host/spi-builder-workspace/Sources/SignalHandling/DelayedSigaction/SigactionDelayer_Block.swift:411:47: error: 'nil' requires a contextual type
409 | 							/* We update the sigset only when signal is not ignored
410 | 							 *  because it is used only in that case and this is getting the current sigmask can fail. */
411 | 							let ret = pthread_sigmask(SIG_SETMASK, nil /* new signals */, &sigset)
    |                                               `- error: 'nil' requires a contextual type
412 | 							if ret != 0 {
413 | 								throw SignalHandlingError.nonDestructiveSystemError(Errno(rawValue: ret))
/host/spi-builder-workspace/Sources/SignalHandling/DelayedSigaction/SigactionDelayer_Block.swift:415:8: error: cannot find 'sigdelset' in scope
413 | 								throw SignalHandlingError.nonDestructiveSystemError(Errno(rawValue: ret))
414 | 							}
415 | 							sigdelset(&sigset, signal.rawValue)
    |        `- error: cannot find 'sigdelset' in scope
416 | 						}
417 | 						/* Let’s get the pending signals on this thread. */
/host/spi-builder-workspace/Sources/SignalHandling/DelayedSigaction/SigactionDelayer_Block.swift:419:17: error: cannot find 'sigpending' in scope
417 | 						/* Let’s get the pending signals on this thread. */
418 | 						var pendingSignals = sigset_t()
419 | 						let ret = sigpending(&pendingSignals)
    |                 `- error: cannot find 'sigpending' in scope
420 | 						/* If sigpending failed, we assume the signal is pending. */
421 | 						if ret != 0 || !Signal.set(from: pendingSignals).contains(signal) {
/host/spi-builder-workspace/Sources/SignalHandling/DelayedSigaction/SigactionDelayer_Block.swift:425:8: error: cannot find 'pthread_kill' in scope
423 | 							 * Which mean it is probably pending on some other thread, forever. */
424 | //							loggerLessThreadSafeDebugLog("🧵 Resending signal to manager thread \(signal)…")
425 | 							pthread_kill(pthread_self(), signal.rawValue)
    |        `- error: cannot find 'pthread_kill' in scope
426 | 						}
427 | 						if !isIgnored {
/host/spi-builder-workspace/Sources/SignalHandling/DelayedSigaction/SigactionDelayer_Block.swift:425:21: error: cannot find 'pthread_self' in scope
423 | 							 * Which mean it is probably pending on some other thread, forever. */
424 | //							loggerLessThreadSafeDebugLog("🧵 Resending signal to manager thread \(signal)…")
425 | 							pthread_kill(pthread_self(), signal.rawValue)
    |                     `- error: cannot find 'pthread_self' in scope
426 | 						}
427 | 						if !isIgnored {
/host/spi-builder-workspace/Sources/SignalHandling/DelayedSigaction/SigactionDelayer_Block.swift:431:8: error: cannot find 'sigsuspend' in scope
429 | 							 * I know there is a race condition. */
430 | //							loggerLessThreadSafeDebugLog("🧵 Calling sigsuspend for \(signal)…")
431 | 							sigsuspend(&sigset)
    |        `- error: cannot find 'sigsuspend' in scope
432 | 						}
433 |
/host/spi-builder-workspace/Sources/SignalHandling/DelayedSigaction/SigactionDelayer_Block.swift:437:17: error: cannot find 'pthread_sigmask' in scope
435 | //						loggerLessThreadSafeDebugLog("🧵 Processing drop action for \(signal)…")
436 | 						var sigset = sigset_t()
437 | 						let ret = pthread_sigmask(SIG_SETMASK, nil /* new signals */, &sigset)
    |                 `- error: cannot find 'pthread_sigmask' in scope
438 | 						if ret != 0 {
439 | 							throw SignalHandlingError.nonDestructiveSystemError(Errno(rawValue: ret))
/host/spi-builder-workspace/Sources/SignalHandling/DelayedSigaction/SigactionDelayer_Block.swift:437:33: error: cannot find 'SIG_SETMASK' in scope
435 | //						loggerLessThreadSafeDebugLog("🧵 Processing drop action for \(signal)…")
436 | 						var sigset = sigset_t()
437 | 						let ret = pthread_sigmask(SIG_SETMASK, nil /* new signals */, &sigset)
    |                                 `- error: cannot find 'SIG_SETMASK' in scope
438 | 						if ret != 0 {
439 | 							throw SignalHandlingError.nonDestructiveSystemError(Errno(rawValue: ret))
/host/spi-builder-workspace/Sources/SignalHandling/DelayedSigaction/SigactionDelayer_Block.swift:437:46: error: 'nil' requires a contextual type
435 | //						loggerLessThreadSafeDebugLog("🧵 Processing drop action for \(signal)…")
436 | 						var sigset = sigset_t()
437 | 						let ret = pthread_sigmask(SIG_SETMASK, nil /* new signals */, &sigset)
    |                                              `- error: 'nil' requires a contextual type
438 | 						if ret != 0 {
439 | 							throw SignalHandlingError.nonDestructiveSystemError(Errno(rawValue: ret))
/host/spi-builder-workspace/Sources/SignalHandling/DelayedSigaction/SigactionDelayer_Block.swift:441:7: error: cannot find 'sigdelset' in scope
439 | 							throw SignalHandlingError.nonDestructiveSystemError(Errno(rawValue: ret))
440 | 						}
441 | 						sigdelset(&sigset, signal.rawValue)
    |       `- error: cannot find 'sigdelset' in scope
442 |
443 | 						let oldAction = try Sigaction.ignoreAction.install(on: signal, revertIfIgnored: false, updateUnsigRegistrations: false)
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Sigaction.swift:48:24: error: cannot find type 'sigaction' in scope
 46 | 	 If the handler of the sigaction is `SIG_IGN` or `SIG_DFL`, we check the `sa_flags` not to contains the `SA_SIGINFO` bit.
 47 | 	 If they do, we log an error, as this is invalid. */
 48 | 	public init(rawValue: sigaction) {
    |                        `- error: cannot find type 'sigaction' in scope
 49 | 		self.mask = Signal.set(from: rawValue.sa_mask)
 50 | 		self.flags = SigactionFlags(rawValue: rawValue.sa_flags)
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Sigaction.swift:83:23: error: cannot find type 'sigaction' in scope
 81 | 	}
 82 |
 83 | 	public var rawValue: sigaction {
    |                       `- error: cannot find type 'sigaction' in scope
 84 | 		if !isValid {
 85 | 			Conf.logger?.warning("Getting sigaction from an invalid Sigaction.")
/host/spi-builder-workspace/Sources/SignalHandling/DelayedSigaction/SigactionDelayer_Block.swift:443:7: error: type 'Sigaction' does not conform to protocol 'RawRepresentable'
441 | 						sigdelset(&sigset, signal.rawValue)
442 |
443 | 						let oldAction = try Sigaction.ignoreAction.install(on: signal, revertIfIgnored: false, updateUnsigRegistrations: false)
    |       `- error: type 'Sigaction' does not conform to protocol 'RawRepresentable'
444 | 						/* Will not hurt, the signal is ignore anyway (yes, there is a race condition, I know). */
445 | 						pthread_kill(pthread_self(), signal.rawValue)
/host/spi-builder-workspace/Sources/SignalHandling/DelayedSigaction/SigactionDelayer_Block.swift:445:7: error: cannot find 'pthread_kill' in scope
443 | 						let oldAction = try Sigaction.ignoreAction.install(on: signal, revertIfIgnored: false, updateUnsigRegistrations: false)
444 | 						/* Will not hurt, the signal is ignore anyway (yes, there is a race condition, I know). */
445 | 						pthread_kill(pthread_self(), signal.rawValue)
    |       `- error: cannot find 'pthread_kill' in scope
446 | 						/* No sigsuspend. Would block because signal is ignored. */
447 | 						if let oldAction = oldAction {
/host/spi-builder-workspace/Sources/SignalHandling/DelayedSigaction/SigactionDelayer_Block.swift:445:20: error: cannot find 'pthread_self' in scope
443 | 						let oldAction = try Sigaction.ignoreAction.install(on: signal, revertIfIgnored: false, updateUnsigRegistrations: false)
444 | 						/* Will not hurt, the signal is ignore anyway (yes, there is a race condition, I know). */
445 | 						pthread_kill(pthread_self(), signal.rawValue)
    |                    `- error: cannot find 'pthread_self' in scope
446 | 						/* No sigsuspend. Would block because signal is ignored. */
447 | 						if let oldAction = oldAction {
[143/152] Emitting module SignalHandling
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Sigaction.swift:48:24: error: cannot find type 'sigaction' in scope
 46 | 	 If the handler of the sigaction is `SIG_IGN` or `SIG_DFL`, we check the `sa_flags` not to contains the `SA_SIGINFO` bit.
 47 | 	 If they do, we log an error, as this is invalid. */
 48 | 	public init(rawValue: sigaction) {
    |                        `- error: cannot find type 'sigaction' in scope
 49 | 		self.mask = Signal.set(from: rawValue.sa_mask)
 50 | 		self.flags = SigactionFlags(rawValue: rawValue.sa_flags)
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Sigaction.swift:83:23: error: cannot find type 'sigaction' in scope
 81 | 	}
 82 |
 83 | 	public var rawValue: sigaction {
    |                       `- error: cannot find type 'sigaction' in scope
 84 | 		if !isValid {
 85 | 			Conf.logger?.warning("Getting sigaction from an invalid Sigaction.")
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/SigactionHandler.swift:19:80: error: cannot find type 'siginfo_t' in scope
17 |
18 | 	case ansiC(@convention(c) (_ signalID: Int32) -> Void)
19 | 	case posix(@convention(c) (_ signalID: Int32, _ siginfo: UnsafeMutablePointer<siginfo_t>?, _ userThreadContext: UnsafeMutableRawPointer?) -> Void)
   |                                                                                `- error: cannot find type 'siginfo_t' in scope
20 |
21 | 	public static func ==(lhs: SigactionHandler, rhs: SigactionHandler) -> Bool {
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Sigaction.swift:12:15: error: type 'Sigaction' does not conform to protocol 'RawRepresentable'
 10 |
 11 |
 12 | public struct Sigaction : Equatable, RawRepresentable, Sendable {
    |               |- error: type 'Sigaction' does not conform to protocol 'RawRepresentable'
    |               `- note: add stubs for conformance
 13 |
 14 | 	public static let ignoreAction = Sigaction(handler: .ignoreHandler)
Swift.RawRepresentable.RawValue:2:16: note: protocol requires nested type 'RawValue'
1 | protocol RawRepresentable {
2 | associatedtype RawValue}
  |                `- note: protocol requires nested type 'RawValue'
3 |
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/SigactionFlag.swift:11:59: error: cannot find 'SA_NOCLDSTOP' in scope
 9 | 	 If this bit is set when installing a catching function for the `SIGCHLD` signal,
10 | 	  the `SIGCHLD` signal will be generated only when a child process exits, not when a child process stops. */
11 | 	public static let noChildStop = SigactionFlags(rawValue: SA_NOCLDSTOP)
   |                                                           `- error: cannot find 'SA_NOCLDSTOP' in scope
12 |
13 | 	/**
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/SigactionFlag.swift:19:59: error: cannot find 'SA_NOCLDWAIT' in scope
17 | 	  it blocks until all of the calling process’s child processes terminate,
18 | 	  and then returns a value of -1 with errno set to ECHILD. */
19 | 	public static let noChildWait = SigactionFlags(rawValue: SA_NOCLDWAIT)
   |                                                           `- error: cannot find 'SA_NOCLDWAIT' in scope
20 |
21 | 	/**
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/SigactionFlag.swift:23:55: error: cannot find 'SA_ONSTACK' in scope
21 | 	/**
22 | 	 If this bit is set, the system will deliver the signal to the process on a signal stack, specified with `sigaltstack(2)`. */
23 | 	public static let onStack = SigactionFlags(rawValue: SA_ONSTACK)
   |                                                       `- error: cannot find 'SA_ONSTACK' in scope
24 |
25 | 	/**
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/SigactionFlag.swift:27:55: error: cannot find 'SA_NODEFER' in scope
25 | 	/**
26 | 	 If this bit is set, further occurrences of the delivered signal are not masked during the execution of the handler. */
27 | 	public static let noDefer = SigactionFlags(rawValue: SA_NODEFER)
   |                                                       `- error: cannot find 'SA_NODEFER' in scope
28 |
29 | 	/**
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/SigactionFlag.swift:31:65: error: cannot find 'SA_RESETHAND' in scope
29 | 	/**
30 | 	 If this bit is set, the handler is reset back to `SIG_DFL` at the moment the signal is delivered. */
31 | 	public static let resetHandler = SigactionFlags(rawValue: CInt(SA_RESETHAND) /* On Linux, an UInt32 instead of Int32, so we cast… */)
   |                                                                 `- error: cannot find 'SA_RESETHAND' in scope
32 |
33 | 	/** See `sigaction(2)`. */
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/SigactionFlag.swift:34:55: error: cannot find 'SA_RESTART' in scope
32 |
33 | 	/** See `sigaction(2)`. */
34 | 	public static let restart = SigactionFlags(rawValue: SA_RESTART)
   |                                                       `- error: cannot find 'SA_RESTART' in scope
35 |
36 | 	/**
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/SigactionFlag.swift:40:55: error: cannot find 'SA_SIGINFO' in scope
38 | 	  and should match the matching prototype.
39 | 	 This bit should not be set when assigning `SIG_DFL` or `SIG_IGN`. */
40 | 	public static let siginfo = SigactionFlags(rawValue: SA_SIGINFO)
   |                                                       `- error: cannot find 'SA_SIGINFO' in scope
41 |
42 | 	public let rawValue: CInt
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Signal.swift:109:50: error: cannot find 'SIGTERM' in scope
107 |
108 | 	/** “Normal” kill signal. */
109 | 	public static let terminated = Signal(rawValue: SIGTERM)
    |                                                  `- error: cannot find 'SIGTERM' in scope
110 | 	/** Usually `Ctrl-C`. */
111 | 	public static let interrupt  = Signal(rawValue: SIGINT)
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Signal.swift:111:50: error: cannot find 'SIGINT' in scope
109 | 	public static let terminated = Signal(rawValue: SIGTERM)
110 | 	/** Usually `Ctrl-C`. */
111 | 	public static let interrupt  = Signal(rawValue: SIGINT)
    |                                                  `- error: cannot find 'SIGINT' in scope
112 | 	/** Used to quit w/ generation of a core dump. Usually `Ctrl-\`. */
113 | 	public static let quit       = Signal(rawValue: SIGQUIT)
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Signal.swift:113:50: error: cannot find 'SIGQUIT' in scope
111 | 	public static let interrupt  = Signal(rawValue: SIGINT)
112 | 	/** Used to quit w/ generation of a core dump. Usually `Ctrl-\`. */
113 | 	public static let quit       = Signal(rawValue: SIGQUIT)
    |                                                  `- error: cannot find 'SIGQUIT' in scope
114 | 	public static let killed     = Signal(rawValue: SIGKILL)
115 | 	/** The user’s terminal disconnected. */
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Signal.swift:116:50: error: cannot find 'SIGHUP' in scope
114 | 	public static let killed     = Signal(rawValue: SIGKILL)
115 | 	/** The user’s terminal disconnected. */
116 | 	public static let hangup     = Signal(rawValue: SIGHUP)
    |                                                  `- error: cannot find 'SIGHUP' in scope
117 |
118 | 	/* *** Alarm Signals *** */
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Signal.swift:172:57: error: cannot find 'SIGTSTP' in scope
170 | 	public static let suspendedBySignal = Signal(rawValue: SIGSTOP)
171 | 	/** Suspends the program but can be handled and ignored. Usually `Ctrl-Z`. */
172 | 	public static let suspended         = Signal(rawValue: SIGTSTP)
    |                                                         `- error: cannot find 'SIGTSTP' in scope
173 | 	public static let stoppedTTYInput   = Signal(rawValue: SIGTTIN)
174 | 	public static let stoppedTTYOutput  = Signal(rawValue: SIGTTOU)
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Signal.swift:168:57: error: cannot find 'SIGCONT' in scope
166 | 	/* Obsolete name for SIGCHLD. */
167 | //	public static let cildExited        = Signal(rawValue: SIGCLD)
168 | 	public static let continued         = Signal(rawValue: SIGCONT)
    |                                                         `- error: cannot find 'SIGCONT' in scope
169 | 	/** Suspends the program. Cannot be handled, ignored or blocked. */
170 | 	public static let suspendedBySignal = Signal(rawValue: SIGSTOP)
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Signal.swift:80:62: error: cannot find 'SIGFPE' in scope
 78 | 	/**
 79 | 	 - Note: FPE means Floating-Point Exception but this signal is sent for any arithmetic error. */
 80 | 	public static let arithmeticError        = Signal(rawValue: SIGFPE)
    |                                                              `- error: cannot find 'SIGFPE' in scope
 81 | 	@available(*, unavailable, renamed: "arithmeticError")
 82 | 	public static let floatingPointException = Signal(rawValue: SIGFPE)
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Signal.swift:82:62: error: cannot find 'SIGFPE' in scope
 80 | 	public static let arithmeticError        = Signal(rawValue: SIGFPE)
 81 | 	@available(*, unavailable, renamed: "arithmeticError")
 82 | 	public static let floatingPointException = Signal(rawValue: SIGFPE)
    |                                                              `- error: cannot find 'SIGFPE' in scope
 83 | 	public static let illegalInstruction     = Signal(rawValue: SIGILL)
 84 | 	public static let segmentationFault      = Signal(rawValue: SIGSEGV)
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Signal.swift:83:62: error: cannot find 'SIGILL' in scope
 81 | 	@available(*, unavailable, renamed: "arithmeticError")
 82 | 	public static let floatingPointException = Signal(rawValue: SIGFPE)
 83 | 	public static let illegalInstruction     = Signal(rawValue: SIGILL)
    |                                                              `- error: cannot find 'SIGILL' in scope
 84 | 	public static let segmentationFault      = Signal(rawValue: SIGSEGV)
 85 | 	public static let busError               = Signal(rawValue: SIGBUS)
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Signal.swift:84:62: error: cannot find 'SIGSEGV' in scope
 82 | 	public static let floatingPointException = Signal(rawValue: SIGFPE)
 83 | 	public static let illegalInstruction     = Signal(rawValue: SIGILL)
 84 | 	public static let segmentationFault      = Signal(rawValue: SIGSEGV)
    |                                                              `- error: cannot find 'SIGSEGV' in scope
 85 | 	public static let busError               = Signal(rawValue: SIGBUS)
 86 | 	public static let abortTrap              = Signal(rawValue: SIGABRT)
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Signal.swift:85:62: error: cannot find 'SIGBUS' in scope
 83 | 	public static let illegalInstruction     = Signal(rawValue: SIGILL)
 84 | 	public static let segmentationFault      = Signal(rawValue: SIGSEGV)
 85 | 	public static let busError               = Signal(rawValue: SIGBUS)
    |                                                              `- error: cannot find 'SIGBUS' in scope
 86 | 	public static let abortTrap              = Signal(rawValue: SIGABRT)
 87 | 	/** Usually the same as `abortTrap`. */
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Signal.swift:86:62: error: cannot find 'SIGABRT' in scope
 84 | 	public static let segmentationFault      = Signal(rawValue: SIGSEGV)
 85 | 	public static let busError               = Signal(rawValue: SIGBUS)
 86 | 	public static let abortTrap              = Signal(rawValue: SIGABRT)
    |                                                              `- error: cannot find 'SIGABRT' in scope
 87 | 	/** Usually the same as `abortTrap`. */
 88 | 	public static let iot                    = Signal(rawValue: SIGIOT)
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Signal.swift:88:62: error: cannot find 'SIGIOT' in scope
 86 | 	public static let abortTrap              = Signal(rawValue: SIGABRT)
 87 | 	/** Usually the same as `abortTrap`. */
 88 | 	public static let iot                    = Signal(rawValue: SIGIOT)
    |                                                              `- error: cannot find 'SIGIOT' in scope
 89 | 	public static let traceBreakpointTrap    = Signal(rawValue: SIGTRAP)
 90 | #if !os(Linux)
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Signal.swift:89:62: error: cannot find 'SIGTRAP' in scope
 87 | 	/** Usually the same as `abortTrap`. */
 88 | 	public static let iot                    = Signal(rawValue: SIGIOT)
 89 | 	public static let traceBreakpointTrap    = Signal(rawValue: SIGTRAP)
    |                                                              `- error: cannot find 'SIGTRAP' in scope
 90 | #if !os(Linux)
 91 | 	public static let emulatorTrap           = Signal(rawValue: SIGEMT)
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Signal.swift:91:62: error: cannot find 'SIGEMT' in scope
 89 | 	public static let traceBreakpointTrap    = Signal(rawValue: SIGTRAP)
 90 | #if !os(Linux)
 91 | 	public static let emulatorTrap           = Signal(rawValue: SIGEMT)
    |                                                              `- error: cannot find 'SIGEMT' in scope
 92 | #endif
 93 | 	public static let badSystemCall          = Signal(rawValue: SIGSYS)
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Signal.swift:93:62: error: cannot find 'SIGSYS' in scope
 91 | 	public static let emulatorTrap           = Signal(rawValue: SIGEMT)
 92 | #endif
 93 | 	public static let badSystemCall          = Signal(rawValue: SIGSYS)
    |                                                              `- error: cannot find 'SIGSYS' in scope
 94 |
 95 | 	/* *** Termination Signals *** */
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Signal.swift:114:50: error: cannot find 'SIGKILL' in scope
112 | 	/** Used to quit w/ generation of a core dump. Usually `Ctrl-\`. */
113 | 	public static let quit       = Signal(rawValue: SIGQUIT)
114 | 	public static let killed     = Signal(rawValue: SIGKILL)
    |                                                  `- error: cannot find 'SIGKILL' in scope
115 | 	/** The user’s terminal disconnected. */
116 | 	public static let hangup     = Signal(rawValue: SIGHUP)
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Signal.swift:129:61: error: cannot find 'SIGALRM' in scope
127 | 	}
128 |
129 | 	public static let alarmClock            = Signal(rawValue: SIGALRM)
    |                                                             `- error: cannot find 'SIGALRM' in scope
130 | 	public static let virtualTimerExpired   = Signal(rawValue: SIGVTALRM)
131 | 	public static let profilingTimerExpired = Signal(rawValue: SIGPROF)
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Signal.swift:130:61: error: cannot find 'SIGVTALRM' in scope
128 |
129 | 	public static let alarmClock            = Signal(rawValue: SIGALRM)
130 | 	public static let virtualTimerExpired   = Signal(rawValue: SIGVTALRM)
    |                                                             `- error: cannot find 'SIGVTALRM' in scope
131 | 	public static let profilingTimerExpired = Signal(rawValue: SIGPROF)
132 |
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Signal.swift:131:61: error: cannot find 'SIGPROF' in scope
129 | 	public static let alarmClock            = Signal(rawValue: SIGALRM)
130 | 	public static let virtualTimerExpired   = Signal(rawValue: SIGVTALRM)
131 | 	public static let profilingTimerExpired = Signal(rawValue: SIGPROF)
    |                                                             `- error: cannot find 'SIGPROF' in scope
132 |
133 | 	/* *** Asynchronous I/O Signals *** */
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Signal.swift:144:57: error: cannot find 'SIGIO' in scope
142 | 	}
143 |
144 | 	public static let ioPossible        = Signal(rawValue: SIGIO)
    |                                                         `- error: cannot find 'SIGIO' in scope
145 | 	public static let urgentIOCondition = Signal(rawValue: SIGURG)
146 | #if os(Linux)
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Signal.swift:145:57: error: cannot find 'SIGURG' in scope
143 |
144 | 	public static let ioPossible        = Signal(rawValue: SIGIO)
145 | 	public static let urgentIOCondition = Signal(rawValue: SIGURG)
    |                                                         `- error: cannot find 'SIGURG' in scope
146 | #if os(Linux)
147 | 	/** System V signal name, similar to SIGIO. */
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Signal.swift:165:57: error: cannot find 'SIGCHLD' in scope
163 | 	}
164 |
165 | 	public static let childExited       = Signal(rawValue: SIGCHLD)
    |                                                         `- error: cannot find 'SIGCHLD' in scope
166 | 	/* Obsolete name for SIGCHLD. */
167 | //	public static let cildExited        = Signal(rawValue: SIGCLD)
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Signal.swift:170:57: error: cannot find 'SIGSTOP' in scope
168 | 	public static let continued         = Signal(rawValue: SIGCONT)
169 | 	/** Suspends the program. Cannot be handled, ignored or blocked. */
170 | 	public static let suspendedBySignal = Signal(rawValue: SIGSTOP)
    |                                                         `- error: cannot find 'SIGSTOP' in scope
171 | 	/** Suspends the program but can be handled and ignored. Usually `Ctrl-Z`. */
172 | 	public static let suspended         = Signal(rawValue: SIGTSTP)
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Signal.swift:173:57: error: cannot find 'SIGTTIN' in scope
171 | 	/** Suspends the program but can be handled and ignored. Usually `Ctrl-Z`. */
172 | 	public static let suspended         = Signal(rawValue: SIGTSTP)
173 | 	public static let stoppedTTYInput   = Signal(rawValue: SIGTTIN)
    |                                                         `- error: cannot find 'SIGTTIN' in scope
174 | 	public static let stoppedTTYOutput  = Signal(rawValue: SIGTTOU)
175 |
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Signal.swift:174:57: error: cannot find 'SIGTTOU' in scope
172 | 	public static let suspended         = Signal(rawValue: SIGTSTP)
173 | 	public static let stoppedTTYInput   = Signal(rawValue: SIGTTIN)
174 | 	public static let stoppedTTYOutput  = Signal(rawValue: SIGTTOU)
    |                                                         `- error: cannot find 'SIGTTOU' in scope
175 |
176 | 	/* *** Operation Error Signals *** */
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Signal.swift:187:61: error: cannot find 'SIGPIPE' in scope
185 | 	}
186 |
187 | 	public static let brokenPipe            = Signal(rawValue: SIGPIPE)
    |                                                             `- error: cannot find 'SIGPIPE' in scope
188 | //	public static let resourceLost          = Signal(rawValue: SIGLOST)
189 | 	public static let cputimeLimitExceeded  = Signal(rawValue: SIGXCPU)
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Signal.swift:189:61: error: cannot find 'SIGXCPU' in scope
187 | 	public static let brokenPipe            = Signal(rawValue: SIGPIPE)
188 | //	public static let resourceLost          = Signal(rawValue: SIGLOST)
189 | 	public static let cputimeLimitExceeded  = Signal(rawValue: SIGXCPU)
    |                                                             `- error: cannot find 'SIGXCPU' in scope
190 | 	public static let filesizeLimitExceeded = Signal(rawValue: SIGXFSZ)
191 |
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Signal.swift:190:61: error: cannot find 'SIGXFSZ' in scope
188 | //	public static let resourceLost          = Signal(rawValue: SIGLOST)
189 | 	public static let cputimeLimitExceeded  = Signal(rawValue: SIGXCPU)
190 | 	public static let filesizeLimitExceeded = Signal(rawValue: SIGXFSZ)
    |                                                             `- error: cannot find 'SIGXFSZ' in scope
191 |
192 | 	/* *** Miscellaneous Signals *** */
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Signal.swift:209:58: error: cannot find 'SIGUSR1' in scope
207 | 	}
208 |
209 | 	public static let userDefinedSignal1 = Signal(rawValue: SIGUSR1)
    |                                                          `- error: cannot find 'SIGUSR1' in scope
210 | 	public static let userDefinedSignal2 = Signal(rawValue: SIGUSR2)
211 | 	public static let windowSizeChanges  = Signal(rawValue: SIGWINCH)
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Signal.swift:210:58: error: cannot find 'SIGUSR2' in scope
208 |
209 | 	public static let userDefinedSignal1 = Signal(rawValue: SIGUSR1)
210 | 	public static let userDefinedSignal2 = Signal(rawValue: SIGUSR2)
    |                                                          `- error: cannot find 'SIGUSR2' in scope
211 | 	public static let windowSizeChanges  = Signal(rawValue: SIGWINCH)
212 | #if !os(Linux)
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Signal.swift:211:58: error: cannot find 'SIGWINCH' in scope
209 | 	public static let userDefinedSignal1 = Signal(rawValue: SIGUSR1)
210 | 	public static let userDefinedSignal2 = Signal(rawValue: SIGUSR2)
211 | 	public static let windowSizeChanges  = Signal(rawValue: SIGWINCH)
    |                                                          `- error: cannot find 'SIGWINCH' in scope
212 | #if !os(Linux)
213 | 	public static let informationRequest = Signal(rawValue: SIGINFO)
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Signal.swift:213:58: error: cannot find 'SIGINFO' in scope
211 | 	public static let windowSizeChanges  = Signal(rawValue: SIGWINCH)
212 | #if !os(Linux)
213 | 	public static let informationRequest = Signal(rawValue: SIGINFO)
    |                                                          `- error: cannot find 'SIGINFO' in scope
214 | #endif
215 |
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Signal.swift:238:3: error: cannot find 'sigemptyset' in scope
236 | 	public static let emptySigset: sigset_t = {
237 | 		var sigset = sigset_t()
238 | 		sigemptyset(&sigset)
    |   `- error: cannot find 'sigemptyset' in scope
239 | 		return sigset
240 | 	}()
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Signal.swift:248:3: error: cannot find 'sigfillset' in scope
246 | 	public static let fullSigset: sigset_t = {
247 | 		var sigset = sigset_t()
248 | 		sigfillset(&sigset)
    |   `- error: cannot find 'sigfillset' in scope
249 | 		return sigset
250 | 	}()
/host/spi-builder-workspace/Sources/SignalHandling/DelayedSigaction/SigactionDelayer_Block.swift:180:21: error: cannot find 'NSConditionLock' in scope
178 | 		}
179 |
180 | 		static let lock = NSConditionLock(condition: Self.nothingToDo.rawValue)
    |                     `- error: cannot find 'NSConditionLock' in scope
181 |
182 | 		/* Read/write is protected by the lock above. */
/host/spi-builder-workspace/Sources/SignalHandling/DelayedSigaction/SigactionDelayer_Block.swift:194:23: error: cannot find type 'DispatchSourceSignal' in scope
192 | 	private struct BlockedSignal {
193 |
194 | 		var dispatchSource: DispatchSourceSignal
    |                       `- error: cannot find type 'DispatchSourceSignal' in scope
195 | 		var handlers = [DelayedSigaction: DelayedSigactionHandler]()
196 |
/host/spi-builder-workspace/Sources/SignalHandling/DelayedSigaction/SigactionDelayer_Block.swift:199:45: error: cannot find 'DispatchQueue' in scope
197 | 	}
198 |
199 | 	private static let signalProcessingQueue = DispatchQueue(label: "com.xcode-actions.blocked-signals-processing-queue")
    |                                             `- error: cannot find 'DispatchQueue' in scope
200 |
201 | 	/* Only used on the main thread. */
/host/spi-builder-workspace/Sources/SignalHandling/DelayedSigaction/SigactionDelayer_Unsig.swift:133:21: error: cannot find 'NSConditionLock' in scope
131 | 		}
132 |
133 | 		static let lock = NSConditionLock(condition: Self.nothingToDo.rawValue)
    |                     `- error: cannot find 'NSConditionLock' in scope
134 |
135 | 		/* Read/write is protected by the lock above. */
/host/spi-builder-workspace/Sources/SignalHandling/DelayedSigaction/SigactionDelayer_Unsig.swift:149:23: error: cannot find type 'DispatchSourceSignal' in scope
147 | 		var originalSigaction: Sigaction
148 |
149 | 		var dispatchSource: DispatchSourceSignal
    |                       `- error: cannot find type 'DispatchSourceSignal' in scope
150 | 		var handlers = [DelayedSigaction: DelayedSigactionHandler]()
151 |
/host/spi-builder-workspace/Sources/SignalHandling/DelayedSigaction/SigactionDelayer_Unsig.swift:154:45: error: cannot find 'DispatchQueue' in scope
152 | 	}
153 |
154 | 	private static let signalProcessingQueue = DispatchQueue(label: "com.xcode-actions.unsigactioned-signals-processing-queue")
    |                                             `- error: cannot find 'DispatchQueue' in scope
155 |
156 | 	/* Both these vars are only modified/read on the signal processing queue. */
Internal Error: DecodingError.dataCorrupted: Data was corrupted. Debug description: Corrupted JSON. Underlying error: unexpected end of file
[144/152] Compiling SignalHandling Sigaction.swift
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Sigaction.swift:48:24: error: cannot find type 'sigaction' in scope
 46 | 	 If the handler of the sigaction is `SIG_IGN` or `SIG_DFL`, we check the `sa_flags` not to contains the `SA_SIGINFO` bit.
 47 | 	 If they do, we log an error, as this is invalid. */
 48 | 	public init(rawValue: sigaction) {
    |                        `- error: cannot find type 'sigaction' in scope
 49 | 		self.mask = Signal.set(from: rawValue.sa_mask)
 50 | 		self.flags = SigactionFlags(rawValue: rawValue.sa_flags)
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Sigaction.swift:83:23: error: cannot find type 'sigaction' in scope
 81 | 	}
 82 |
 83 | 	public var rawValue: sigaction {
    |                       `- error: cannot find type 'sigaction' in scope
 84 | 		if !isValid {
 85 | 			Conf.logger?.warning("Getting sigaction from an invalid Sigaction.")
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/SigactionHandler.swift:19:80: error: cannot find type 'siginfo_t' in scope
17 |
18 | 	case ansiC(@convention(c) (_ signalID: Int32) -> Void)
19 | 	case posix(@convention(c) (_ signalID: Int32, _ siginfo: UnsafeMutablePointer<siginfo_t>?, _ userThreadContext: UnsafeMutableRawPointer?) -> Void)
   |                                                                                `- error: cannot find type 'siginfo_t' in scope
20 |
21 | 	public static func ==(lhs: SigactionHandler, rhs: SigactionHandler) -> Bool {
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Sigaction.swift:12:15: error: type 'Sigaction' does not conform to protocol 'RawRepresentable'
 10 |
 11 |
 12 | public struct Sigaction : Equatable, RawRepresentable, Sendable {
    |               |- error: type 'Sigaction' does not conform to protocol 'RawRepresentable'
    |               `- note: add stubs for conformance
 13 |
 14 | 	public static let ignoreAction = Sigaction(handler: .ignoreHandler)
Swift.RawRepresentable.RawValue:2:16: note: protocol requires nested type 'RawValue'
1 | protocol RawRepresentable {
2 | associatedtype RawValue}
  |                `- note: protocol requires nested type 'RawValue'
3 |
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/SigactionFlag.swift:40:55: error: cannot find 'SA_SIGINFO' in scope
38 | 	  and should match the matching prototype.
39 | 	 This bit should not be set when assigning `SIG_DFL` or `SIG_IGN`. */
40 | 	public static let siginfo = SigactionFlags(rawValue: SA_SIGINFO)
   |                                                       `- error: cannot find 'SA_SIGINFO' in scope
41 |
42 | 	public let rawValue: CInt
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Sigaction.swift:54:49: error: cannot find 'SIG_IGN' in scope
 52 | #if !os(Linux)
 53 | 		switch OpaquePointer(bitPattern: unsafeBitCast(rawValue.__sigaction_u.__sa_handler, to: Int.self)) {
 54 | 			case OpaquePointer(bitPattern: unsafeBitCast(SIG_IGN, to: Int.self)): self.handler = .ignoreHandler
    |                                                 `- error: cannot find 'SIG_IGN' in scope
 55 | 			case OpaquePointer(bitPattern: unsafeBitCast(SIG_DFL, to: Int.self)): self.handler = .defaultHandler
 56 | 			default:
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Sigaction.swift:55:49: error: cannot find 'SIG_DFL' in scope
 53 | 		switch OpaquePointer(bitPattern: unsafeBitCast(rawValue.__sigaction_u.__sa_handler, to: Int.self)) {
 54 | 			case OpaquePointer(bitPattern: unsafeBitCast(SIG_IGN, to: Int.self)): self.handler = .ignoreHandler
 55 | 			case OpaquePointer(bitPattern: unsafeBitCast(SIG_DFL, to: Int.self)): self.handler = .defaultHandler
    |                                                 `- error: cannot find 'SIG_DFL' in scope
 56 | 			default:
 57 | 				if flags.contains(.siginfo) {self.handler = .posix(rawValue.__sigaction_u.__sa_sigaction)}
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Sigaction.swift:76:16: error: cannot find 'sigaction' in scope
 74 |
 75 | 	public init(signal: Signal) throws {
 76 | 		var action = sigaction()
    |                `- error: cannot find 'sigaction' in scope
 77 | 		guard sigaction(signal.rawValue, nil, &action) == 0 else {
 78 | 			throw SignalHandlingError.nonDestructiveSystemError(Errno(rawValue: errno))
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Sigaction.swift:77:9: error: cannot find 'sigaction' in scope
 75 | 	public init(signal: Signal) throws {
 76 | 		var action = sigaction()
 77 | 		guard sigaction(signal.rawValue, nil, &action) == 0 else {
    |         `- error: cannot find 'sigaction' in scope
 78 | 			throw SignalHandlingError.nonDestructiveSystemError(Errno(rawValue: errno))
 79 | 		}
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Sigaction.swift:77:36: error: 'nil' requires a contextual type
 75 | 	public init(signal: Signal) throws {
 76 | 		var action = sigaction()
 77 | 		guard sigaction(signal.rawValue, nil, &action) == 0 else {
    |                                    `- error: 'nil' requires a contextual type
 78 | 			throw SignalHandlingError.nonDestructiveSystemError(Errno(rawValue: errno))
 79 | 		}
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Sigaction.swift:80:8: error: no exact matches in call to initializer
 32 | 	public var handler: SigactionHandler
 33 |
 34 | 	public init(handler: SigactionHandler) {
    |         `- note: incorrect labels for candidate (have: '(rawValue:)', expected: '(handler:)')
 35 | 		self.mask = []
 36 | 		switch handler {
    :
 73 | 	}
 74 |
 75 | 	public init(signal: Signal) throws {
    |         `- note: incorrect labels for candidate (have: '(rawValue:)', expected: '(signal:)')
 76 | 		var action = sigaction()
 77 | 		guard sigaction(signal.rawValue, nil, &action) == 0 else {
 78 | 			throw SignalHandlingError.nonDestructiveSystemError(Errno(rawValue: errno))
 79 | 		}
 80 | 		self.init(rawValue: action)
    |        `- error: no exact matches in call to initializer
 81 | 	}
 82 |
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Sigaction.swift:88:13: error: cannot find 'sigaction' in scope
 86 | 		}
 87 |
 88 | 		var ret = sigaction()
    |             `- error: cannot find 'sigaction' in scope
 89 | 		ret.sa_mask = Signal.sigset(from: mask)
 90 | 		ret.sa_flags = flags.rawValue
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Sigaction.swift:94:59: error: cannot find 'SIG_IGN' in scope
 92 | #if !os(Linux)
 93 | 		switch handler {
 94 | 			case .ignoreHandler:  ret.__sigaction_u.__sa_handler = SIG_IGN
    |                                                           `- error: cannot find 'SIG_IGN' in scope
 95 | 			case .defaultHandler: ret.__sigaction_u.__sa_handler = SIG_DFL
 96 | 			case .ansiC(let h):   ret.__sigaction_u.__sa_handler = h
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Sigaction.swift:95:59: error: cannot find 'SIG_DFL' in scope
 93 | 		switch handler {
 94 | 			case .ignoreHandler:  ret.__sigaction_u.__sa_handler = SIG_IGN
 95 | 			case .defaultHandler: ret.__sigaction_u.__sa_handler = SIG_DFL
    |                                                           `- error: cannot find 'SIG_DFL' in scope
 96 | 			case .ansiC(let h):   ret.__sigaction_u.__sa_handler = h
 97 | 			case .posix(let h):   ret.__sigaction_u.__sa_sigaction = h
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Sigaction.swift:133:20: error: cannot find 'sigaction' in scope
131 | 		}
132 |
133 | 		var oldCAction = sigaction()
    |                    `- error: cannot find 'sigaction' in scope
134 | 		var newCAction = self.rawValue
135 | 		guard sigaction(signal.rawValue, &newCAction, &oldCAction) == 0 else {
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Sigaction.swift:135:9: error: cannot find 'sigaction' in scope
133 | 		var oldCAction = sigaction()
134 | 		var newCAction = self.rawValue
135 | 		guard sigaction(signal.rawValue, &newCAction, &oldCAction) == 0 else {
    |         `- error: cannot find 'sigaction' in scope
136 | 			throw SignalHandlingError.nonDestructiveSystemError(Errno(rawValue: errno))
137 | 		}
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Sigaction.swift:138:22: error: no exact matches in call to initializer
 32 | 	public var handler: SigactionHandler
 33 |
 34 | 	public init(handler: SigactionHandler) {
    |         `- note: incorrect labels for candidate (have: '(rawValue:)', expected: '(handler:)')
 35 | 		self.mask = []
 36 | 		switch handler {
    :
 73 | 	}
 74 |
 75 | 	public init(signal: Signal) throws {
    |         `- note: incorrect labels for candidate (have: '(rawValue:)', expected: '(signal:)')
 76 | 		var action = sigaction()
 77 | 		guard sigaction(signal.rawValue, nil, &action) == 0 else {
    :
136 | 			throw SignalHandlingError.nonDestructiveSystemError(Errno(rawValue: errno))
137 | 		}
138 | 		let oldSigaction = Sigaction(rawValue: oldCAction)
    |                      `- error: no exact matches in call to initializer
139 | 		if revertIfIgnored && oldSigaction == .ignoreAction {
140 | 			guard sigaction(signal.rawValue, &oldCAction, nil) == 0 else {
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Sigaction.swift:140:10: error: cannot find 'sigaction' in scope
138 | 		let oldSigaction = Sigaction(rawValue: oldCAction)
139 | 		if revertIfIgnored && oldSigaction == .ignoreAction {
140 | 			guard sigaction(signal.rawValue, &oldCAction, nil) == 0 else {
    |          `- error: cannot find 'sigaction' in scope
141 | 				throw SignalHandlingError.destructiveSystemError(Errno(rawValue: errno))
142 | 			}
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Sigaction.swift:140:50: error: 'nil' requires a contextual type
138 | 		let oldSigaction = Sigaction(rawValue: oldCAction)
139 | 		if revertIfIgnored && oldSigaction == .ignoreAction {
140 | 			guard sigaction(signal.rawValue, &oldCAction, nil) == 0 else {
    |                                                  `- error: 'nil' requires a contextual type
141 | 				throw SignalHandlingError.destructiveSystemError(Errno(rawValue: errno))
142 | 			}
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/SigactionFlag.swift:11:59: error: cannot find 'SA_NOCLDSTOP' in scope
 9 | 	 If this bit is set when installing a catching function for the `SIGCHLD` signal,
10 | 	  the `SIGCHLD` signal will be generated only when a child process exits, not when a child process stops. */
11 | 	public static let noChildStop = SigactionFlags(rawValue: SA_NOCLDSTOP)
   |                                                           `- error: cannot find 'SA_NOCLDSTOP' in scope
12 |
13 | 	/**
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/SigactionFlag.swift:19:59: error: cannot find 'SA_NOCLDWAIT' in scope
17 | 	  it blocks until all of the calling process’s child processes terminate,
18 | 	  and then returns a value of -1 with errno set to ECHILD. */
19 | 	public static let noChildWait = SigactionFlags(rawValue: SA_NOCLDWAIT)
   |                                                           `- error: cannot find 'SA_NOCLDWAIT' in scope
20 |
21 | 	/**
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/SigactionFlag.swift:23:55: error: cannot find 'SA_ONSTACK' in scope
21 | 	/**
22 | 	 If this bit is set, the system will deliver the signal to the process on a signal stack, specified with `sigaltstack(2)`. */
23 | 	public static let onStack = SigactionFlags(rawValue: SA_ONSTACK)
   |                                                       `- error: cannot find 'SA_ONSTACK' in scope
24 |
25 | 	/**
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/SigactionFlag.swift:27:55: error: cannot find 'SA_NODEFER' in scope
25 | 	/**
26 | 	 If this bit is set, further occurrences of the delivered signal are not masked during the execution of the handler. */
27 | 	public static let noDefer = SigactionFlags(rawValue: SA_NODEFER)
   |                                                       `- error: cannot find 'SA_NODEFER' in scope
28 |
29 | 	/**
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/SigactionFlag.swift:31:65: error: cannot find 'SA_RESETHAND' in scope
29 | 	/**
30 | 	 If this bit is set, the handler is reset back to `SIG_DFL` at the moment the signal is delivered. */
31 | 	public static let resetHandler = SigactionFlags(rawValue: CInt(SA_RESETHAND) /* On Linux, an UInt32 instead of Int32, so we cast… */)
   |                                                                 `- error: cannot find 'SA_RESETHAND' in scope
32 |
33 | 	/** See `sigaction(2)`. */
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/SigactionFlag.swift:34:55: error: cannot find 'SA_RESTART' in scope
32 |
33 | 	/** See `sigaction(2)`. */
34 | 	public static let restart = SigactionFlags(rawValue: SA_RESTART)
   |                                                       `- error: cannot find 'SA_RESTART' in scope
35 |
36 | 	/**
[145/152] Compiling SignalHandling SigactionFlag.swift
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Sigaction.swift:48:24: error: cannot find type 'sigaction' in scope
 46 | 	 If the handler of the sigaction is `SIG_IGN` or `SIG_DFL`, we check the `sa_flags` not to contains the `SA_SIGINFO` bit.
 47 | 	 If they do, we log an error, as this is invalid. */
 48 | 	public init(rawValue: sigaction) {
    |                        `- error: cannot find type 'sigaction' in scope
 49 | 		self.mask = Signal.set(from: rawValue.sa_mask)
 50 | 		self.flags = SigactionFlags(rawValue: rawValue.sa_flags)
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Sigaction.swift:83:23: error: cannot find type 'sigaction' in scope
 81 | 	}
 82 |
 83 | 	public var rawValue: sigaction {
    |                       `- error: cannot find type 'sigaction' in scope
 84 | 		if !isValid {
 85 | 			Conf.logger?.warning("Getting sigaction from an invalid Sigaction.")
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/SigactionHandler.swift:19:80: error: cannot find type 'siginfo_t' in scope
17 |
18 | 	case ansiC(@convention(c) (_ signalID: Int32) -> Void)
19 | 	case posix(@convention(c) (_ signalID: Int32, _ siginfo: UnsafeMutablePointer<siginfo_t>?, _ userThreadContext: UnsafeMutableRawPointer?) -> Void)
   |                                                                                `- error: cannot find type 'siginfo_t' in scope
20 |
21 | 	public static func ==(lhs: SigactionHandler, rhs: SigactionHandler) -> Bool {
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Sigaction.swift:12:15: error: type 'Sigaction' does not conform to protocol 'RawRepresentable'
 10 |
 11 |
 12 | public struct Sigaction : Equatable, RawRepresentable, Sendable {
    |               |- error: type 'Sigaction' does not conform to protocol 'RawRepresentable'
    |               `- note: add stubs for conformance
 13 |
 14 | 	public static let ignoreAction = Sigaction(handler: .ignoreHandler)
Swift.RawRepresentable.RawValue:2:16: note: protocol requires nested type 'RawValue'
1 | protocol RawRepresentable {
2 | associatedtype RawValue}
  |                `- note: protocol requires nested type 'RawValue'
3 |
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/SigactionFlag.swift:40:55: error: cannot find 'SA_SIGINFO' in scope
38 | 	  and should match the matching prototype.
39 | 	 This bit should not be set when assigning `SIG_DFL` or `SIG_IGN`. */
40 | 	public static let siginfo = SigactionFlags(rawValue: SA_SIGINFO)
   |                                                       `- error: cannot find 'SA_SIGINFO' in scope
41 |
42 | 	public let rawValue: CInt
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Sigaction.swift:54:49: error: cannot find 'SIG_IGN' in scope
 52 | #if !os(Linux)
 53 | 		switch OpaquePointer(bitPattern: unsafeBitCast(rawValue.__sigaction_u.__sa_handler, to: Int.self)) {
 54 | 			case OpaquePointer(bitPattern: unsafeBitCast(SIG_IGN, to: Int.self)): self.handler = .ignoreHandler
    |                                                 `- error: cannot find 'SIG_IGN' in scope
 55 | 			case OpaquePointer(bitPattern: unsafeBitCast(SIG_DFL, to: Int.self)): self.handler = .defaultHandler
 56 | 			default:
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Sigaction.swift:55:49: error: cannot find 'SIG_DFL' in scope
 53 | 		switch OpaquePointer(bitPattern: unsafeBitCast(rawValue.__sigaction_u.__sa_handler, to: Int.self)) {
 54 | 			case OpaquePointer(bitPattern: unsafeBitCast(SIG_IGN, to: Int.self)): self.handler = .ignoreHandler
 55 | 			case OpaquePointer(bitPattern: unsafeBitCast(SIG_DFL, to: Int.self)): self.handler = .defaultHandler
    |                                                 `- error: cannot find 'SIG_DFL' in scope
 56 | 			default:
 57 | 				if flags.contains(.siginfo) {self.handler = .posix(rawValue.__sigaction_u.__sa_sigaction)}
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Sigaction.swift:76:16: error: cannot find 'sigaction' in scope
 74 |
 75 | 	public init(signal: Signal) throws {
 76 | 		var action = sigaction()
    |                `- error: cannot find 'sigaction' in scope
 77 | 		guard sigaction(signal.rawValue, nil, &action) == 0 else {
 78 | 			throw SignalHandlingError.nonDestructiveSystemError(Errno(rawValue: errno))
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Sigaction.swift:77:9: error: cannot find 'sigaction' in scope
 75 | 	public init(signal: Signal) throws {
 76 | 		var action = sigaction()
 77 | 		guard sigaction(signal.rawValue, nil, &action) == 0 else {
    |         `- error: cannot find 'sigaction' in scope
 78 | 			throw SignalHandlingError.nonDestructiveSystemError(Errno(rawValue: errno))
 79 | 		}
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Sigaction.swift:77:36: error: 'nil' requires a contextual type
 75 | 	public init(signal: Signal) throws {
 76 | 		var action = sigaction()
 77 | 		guard sigaction(signal.rawValue, nil, &action) == 0 else {
    |                                    `- error: 'nil' requires a contextual type
 78 | 			throw SignalHandlingError.nonDestructiveSystemError(Errno(rawValue: errno))
 79 | 		}
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Sigaction.swift:80:8: error: no exact matches in call to initializer
 32 | 	public var handler: SigactionHandler
 33 |
 34 | 	public init(handler: SigactionHandler) {
    |         `- note: incorrect labels for candidate (have: '(rawValue:)', expected: '(handler:)')
 35 | 		self.mask = []
 36 | 		switch handler {
    :
 73 | 	}
 74 |
 75 | 	public init(signal: Signal) throws {
    |         `- note: incorrect labels for candidate (have: '(rawValue:)', expected: '(signal:)')
 76 | 		var action = sigaction()
 77 | 		guard sigaction(signal.rawValue, nil, &action) == 0 else {
 78 | 			throw SignalHandlingError.nonDestructiveSystemError(Errno(rawValue: errno))
 79 | 		}
 80 | 		self.init(rawValue: action)
    |        `- error: no exact matches in call to initializer
 81 | 	}
 82 |
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Sigaction.swift:88:13: error: cannot find 'sigaction' in scope
 86 | 		}
 87 |
 88 | 		var ret = sigaction()
    |             `- error: cannot find 'sigaction' in scope
 89 | 		ret.sa_mask = Signal.sigset(from: mask)
 90 | 		ret.sa_flags = flags.rawValue
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Sigaction.swift:94:59: error: cannot find 'SIG_IGN' in scope
 92 | #if !os(Linux)
 93 | 		switch handler {
 94 | 			case .ignoreHandler:  ret.__sigaction_u.__sa_handler = SIG_IGN
    |                                                           `- error: cannot find 'SIG_IGN' in scope
 95 | 			case .defaultHandler: ret.__sigaction_u.__sa_handler = SIG_DFL
 96 | 			case .ansiC(let h):   ret.__sigaction_u.__sa_handler = h
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Sigaction.swift:95:59: error: cannot find 'SIG_DFL' in scope
 93 | 		switch handler {
 94 | 			case .ignoreHandler:  ret.__sigaction_u.__sa_handler = SIG_IGN
 95 | 			case .defaultHandler: ret.__sigaction_u.__sa_handler = SIG_DFL
    |                                                           `- error: cannot find 'SIG_DFL' in scope
 96 | 			case .ansiC(let h):   ret.__sigaction_u.__sa_handler = h
 97 | 			case .posix(let h):   ret.__sigaction_u.__sa_sigaction = h
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Sigaction.swift:133:20: error: cannot find 'sigaction' in scope
131 | 		}
132 |
133 | 		var oldCAction = sigaction()
    |                    `- error: cannot find 'sigaction' in scope
134 | 		var newCAction = self.rawValue
135 | 		guard sigaction(signal.rawValue, &newCAction, &oldCAction) == 0 else {
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Sigaction.swift:135:9: error: cannot find 'sigaction' in scope
133 | 		var oldCAction = sigaction()
134 | 		var newCAction = self.rawValue
135 | 		guard sigaction(signal.rawValue, &newCAction, &oldCAction) == 0 else {
    |         `- error: cannot find 'sigaction' in scope
136 | 			throw SignalHandlingError.nonDestructiveSystemError(Errno(rawValue: errno))
137 | 		}
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Sigaction.swift:138:22: error: no exact matches in call to initializer
 32 | 	public var handler: SigactionHandler
 33 |
 34 | 	public init(handler: SigactionHandler) {
    |         `- note: incorrect labels for candidate (have: '(rawValue:)', expected: '(handler:)')
 35 | 		self.mask = []
 36 | 		switch handler {
    :
 73 | 	}
 74 |
 75 | 	public init(signal: Signal) throws {
    |         `- note: incorrect labels for candidate (have: '(rawValue:)', expected: '(signal:)')
 76 | 		var action = sigaction()
 77 | 		guard sigaction(signal.rawValue, nil, &action) == 0 else {
    :
136 | 			throw SignalHandlingError.nonDestructiveSystemError(Errno(rawValue: errno))
137 | 		}
138 | 		let oldSigaction = Sigaction(rawValue: oldCAction)
    |                      `- error: no exact matches in call to initializer
139 | 		if revertIfIgnored && oldSigaction == .ignoreAction {
140 | 			guard sigaction(signal.rawValue, &oldCAction, nil) == 0 else {
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Sigaction.swift:140:10: error: cannot find 'sigaction' in scope
138 | 		let oldSigaction = Sigaction(rawValue: oldCAction)
139 | 		if revertIfIgnored && oldSigaction == .ignoreAction {
140 | 			guard sigaction(signal.rawValue, &oldCAction, nil) == 0 else {
    |          `- error: cannot find 'sigaction' in scope
141 | 				throw SignalHandlingError.destructiveSystemError(Errno(rawValue: errno))
142 | 			}
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Sigaction.swift:140:50: error: 'nil' requires a contextual type
138 | 		let oldSigaction = Sigaction(rawValue: oldCAction)
139 | 		if revertIfIgnored && oldSigaction == .ignoreAction {
140 | 			guard sigaction(signal.rawValue, &oldCAction, nil) == 0 else {
    |                                                  `- error: 'nil' requires a contextual type
141 | 				throw SignalHandlingError.destructiveSystemError(Errno(rawValue: errno))
142 | 			}
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/SigactionFlag.swift:11:59: error: cannot find 'SA_NOCLDSTOP' in scope
 9 | 	 If this bit is set when installing a catching function for the `SIGCHLD` signal,
10 | 	  the `SIGCHLD` signal will be generated only when a child process exits, not when a child process stops. */
11 | 	public static let noChildStop = SigactionFlags(rawValue: SA_NOCLDSTOP)
   |                                                           `- error: cannot find 'SA_NOCLDSTOP' in scope
12 |
13 | 	/**
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/SigactionFlag.swift:19:59: error: cannot find 'SA_NOCLDWAIT' in scope
17 | 	  it blocks until all of the calling process’s child processes terminate,
18 | 	  and then returns a value of -1 with errno set to ECHILD. */
19 | 	public static let noChildWait = SigactionFlags(rawValue: SA_NOCLDWAIT)
   |                                                           `- error: cannot find 'SA_NOCLDWAIT' in scope
20 |
21 | 	/**
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/SigactionFlag.swift:23:55: error: cannot find 'SA_ONSTACK' in scope
21 | 	/**
22 | 	 If this bit is set, the system will deliver the signal to the process on a signal stack, specified with `sigaltstack(2)`. */
23 | 	public static let onStack = SigactionFlags(rawValue: SA_ONSTACK)
   |                                                       `- error: cannot find 'SA_ONSTACK' in scope
24 |
25 | 	/**
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/SigactionFlag.swift:27:55: error: cannot find 'SA_NODEFER' in scope
25 | 	/**
26 | 	 If this bit is set, further occurrences of the delivered signal are not masked during the execution of the handler. */
27 | 	public static let noDefer = SigactionFlags(rawValue: SA_NODEFER)
   |                                                       `- error: cannot find 'SA_NODEFER' in scope
28 |
29 | 	/**
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/SigactionFlag.swift:31:65: error: cannot find 'SA_RESETHAND' in scope
29 | 	/**
30 | 	 If this bit is set, the handler is reset back to `SIG_DFL` at the moment the signal is delivered. */
31 | 	public static let resetHandler = SigactionFlags(rawValue: CInt(SA_RESETHAND) /* On Linux, an UInt32 instead of Int32, so we cast… */)
   |                                                                 `- error: cannot find 'SA_RESETHAND' in scope
32 |
33 | 	/** See `sigaction(2)`. */
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/SigactionFlag.swift:34:55: error: cannot find 'SA_RESTART' in scope
32 |
33 | 	/** See `sigaction(2)`. */
34 | 	public static let restart = SigactionFlags(rawValue: SA_RESTART)
   |                                                       `- error: cannot find 'SA_RESTART' in scope
35 |
36 | 	/**
[146/152] Compiling SignalHandling Utils.swift
[147/152] Compiling SignalHandling  Config.swift
Internal Error: DecodingError.dataCorrupted: Data was corrupted. Debug description: Corrupted JSON. Underlying error: unexpected end of file
[148/152] Compiling SignalHandling  Errors.swift
Internal Error: DecodingError.dataCorrupted: Data was corrupted. Debug description: Corrupted JSON. Underlying error: unexpected end of file
BUILD FAILURE 6.3 wasm