The Swift Package Index logo.Swift Package Index

Build Information

Failed to build swift-signal-handling, reference 1.2.0-beta.2 (aff1c6), with Swift 6.4 for Wasm on 21 Sep 2026 15:50:20 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-54344845-0":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/saguaro1/spi-images:wasm-6.4-latest swift build --swift-sdk swift-6.4.x-DEVELOPMENT-SNAPSHOT-2026-09-04-a_wasm 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 5.1.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/xcode-actions/swift-signal-handling.git
Reference: 1.2.0-beta.2
Initialized empty Git repository in /host/spi-builder-workspace/.git/
hint: Using 'master' as the name for the initial branch. This default branch name
hint: is subject to change. To configure the initial branch name to use in all
hint: of your new repositories, which will suppress this warning, call:
hint:
hint: 	git config --global init.defaultBranch <name>
hint:
hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and
hint: 'development'. The just-created branch can be renamed via this command:
hint:
hint: 	git branch -m <name>
From https://github.com/xcode-actions/swift-signal-handling
 * tag               1.2.0-beta.2 -> FETCH_HEAD
HEAD is now at aff1c6b Make the dependency on swift-system explicit
Cloned https://github.com/xcode-actions/swift-signal-handling.git
Revision (git rev-parse @):
aff1c6ba4279ee4f7b27e935710489fd3e28e0e8
SUCCESS checkout https://github.com/xcode-actions/swift-signal-handling.git at 1.2.0-beta.2
========================================
Build
========================================
Selected platform:         wasm
Swift version:             6.4
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-54344845-0":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/saguaro1/spi-images:wasm-6.4-latest swift build --swift-sdk swift-6.4.x-DEVELOPMENT-SNAPSHOT-2026-09-04-a_wasm 2>&1
wasm-6.4-latest: Pulling from saguaro1/spi-images
Digest: sha256:4328fdb43c680d205c1d6761b1e3267aa38277eefdda9ddfb17b6a0f1a77857a
Status: Image is up to date for registry.gitlab.com/saguaro1/spi-images:wasm-6.4-latest
Fetching https://github.com/xcode-actions/clt-logger.git
Fetching https://github.com/Frizlab/GlobalConfModule.git
Fetching https://github.com/apple/swift-log.git
Fetching https://github.com/apple/swift-argument-parser.git
Fetching https://github.com/apple/swift-system.git
[1/8132] Fetching swift-log
[2/8809] Fetching swift-log, globalconfmodule
[50/9678] Fetching swift-log, globalconfmodule, clt-logger
Fetched https://github.com/Frizlab/GlobalConfModule.git (0.53s)
[5544/9001] Fetching swift-log, clt-logger
Fetched https://github.com/xcode-actions/clt-logger.git (0.59s)
[1/18918] Fetching swift-argument-parser
[18919/25816] Fetching swift-argument-parser, swift-system
Fetched https://github.com/apple/swift-log.git (0.83s)
Fetched https://github.com/apple/swift-argument-parser.git (0.83s)
Fetched https://github.com/apple/swift-system.git (0.87s)
Computing version for https://github.com/Frizlab/GlobalConfModule.git
Computed https://github.com/Frizlab/GlobalConfModule.git at 0.4.5 (1.05s)
Fetching https://github.com/swiftlang/swift-syntax.git
Fetching https://github.com/apple/swift-service-context.git
[1/1364] Fetching swift-service-context
[1365/81363] Fetching swift-service-context, swift-syntax
Fetched https://github.com/apple/swift-service-context.git (3.19s)
Fetched https://github.com/swiftlang/swift-syntax.git (3.22s)
Computing version for https://github.com/apple/swift-service-context.git
Computed https://github.com/apple/swift-service-context.git at 1.3.0 (3.42s)
Computing version for https://github.com/swiftlang/swift-syntax.git
Computed https://github.com/swiftlang/swift-syntax.git at 603.0.2 (1.20s)
Computing version for https://github.com/apple/swift-system.git
Computed https://github.com/apple/swift-system.git at 1.8.1 (0.22s)
Computing version for https://github.com/apple/swift-argument-parser.git
Computed https://github.com/apple/swift-argument-parser.git at 1.8.2 (0.18s)
Computing version for https://github.com/apple/swift-log.git
Computed https://github.com/apple/swift-log.git at 1.15.1 (0.20s)
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.15s)
Creating working copy for https://github.com/apple/swift-log.git
Working copy of https://github.com/apple/swift-log.git resolved at 1.15.1
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.8.2
Creating working copy for https://github.com/Frizlab/GlobalConfModule.git
Working copy of https://github.com/Frizlab/GlobalConfModule.git resolved at 0.4.5
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/swiftlang/swift-syntax.git
Working copy of https://github.com/swiftlang/swift-syntax.git resolved at 603.0.2
Creating working copy for https://github.com/apple/swift-system.git
Working copy of https://github.com/apple/swift-system.git resolved at 1.8.1
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
Building for debugging...
[Computing dependencies]
[Constructing description]
[Pre-planning 1 / 917]
[Planning deferred tasks]
[183 / 383] SwiftSyntax509
[220 / 396] SwiftSyntax510
[229 / 396] SwiftSyntax602
[230 / 397] SystemPackage-product
[232 / 398] SwiftSyntax603
[234 / 398] SwiftSyntax603
[239 / 399] SwiftSyntax601
[243 / 401] SwiftSyntax600
[255 / 406] SwiftSyntax510
[262 / 416] ServiceContextModule
[271 / 417] Logging
[273 / 417] Logging
[278 / 421] SystemPackage
[282 / 421] Logging
[283 / 422]
[284 / 431] Logging
[287 / 431] ArgumentParserToolInfo
[299 / 431] SwiftSyntax
[300 / 431] SwiftSyntax
[301 / 432] SwiftSyntax
[302 / 433] SwiftSyntax
[302 / 433] Logging
[306 / 433] Logging
[311 / 444] ServiceContextModule-product
[313 / 453] ArgumentParser
[314 / 453] CLTLogger
[315 / 453] CLTLogger
[325 / 453] CLTLogger
[327 / 453] CLTLogger-product
[328 / 453] CLTLogger-product
[330 / 453] CLTLogger
[330 / 453] ArgumentParserToolInfo
[332 / 453] ArgumentParser
[334 / 454] CLTLogger
[335 / 454] ArgumentParser
[337 / 454] ArgumentParser-product
[339 / 454] ArgumentParser
[340 / 454] ArgumentParser
[340 / 454]
[342 / 454] ArgumentParser
[344 / 455] ArgumentParser
[345 / 455] SwiftSyntax
[354 / 465] SwiftBasicFormat
[358 / 483] SwiftParser
[359 / 483] SwiftDiagnostics
[371 / 483] SwiftParser
[372 / 483] SwiftParser
[373 / 483] SwiftParser
[374 / 483] SwiftParser
[377 / 483] SwiftParser
[381 / 483] SwiftParser
[383 / 483] SwiftDiagnostics
[384 / 483] SwiftOperators
[387 / 483] SwiftDiagnostics
[388 / 483] SwiftDiagnostics
[390 / 483] SwiftBasicFormat
[391 / 483] SwiftBasicFormat
[392 / 483] SwiftBasicFormat
[393 / 484] SwiftParserDiagnostics
[396 / 485]
[397 / 486] SwiftOperators
[401 / 504] SwiftOperators
[402 / 505] SwiftParserDiagnostics
[403 / 505] SwiftParserDiagnostics
[404 / 506] SwiftParserDiagnostics
[415 / 506] SwiftSyntaxBuilder
[416 / 506] SwiftSyntaxBuilder
[418 / 506] SwiftParser
[420 / 506] SwiftParser
[421 / 506] SwiftOperators
[423 / 506] SwiftParserDiagnostics
[426 / 506] SwiftOperators
[428 / 506] SwiftBasicFormat
[432 / 516] SwiftSyntaxBuilder
[433 / 516] SwiftSyntaxBuilder
[434 / 516] SwiftSyntaxBuilder
[436 / 517] SwiftSyntaxBuilder
[439 / 517] SwiftSyntaxBuilder
[449 / 527] SwiftSyntaxBuilder
[451 / 527] SwiftIfConfig
[452 / 528] SwiftParserDiagnostics
[455 / 528] SwiftIfConfig
[458 / 528] SwiftIfConfig
[466 / 538] SwiftSyntaxMacros
[467 / 538] SwiftSyntaxMacros
[473 / 539] SwiftSyntaxMacros
[475 / 539] SwiftSyntaxMacros-product
[478 / 539] SwiftSyntaxMacroExpansion
[483 / 549] SwiftSyntaxMacroExpansion
[485 / 549] SwiftSyntaxMacroExpansion
[487 / 550] SwiftSyntaxMacroExpansion
[488 / 551] SwiftSyntaxMacros
[493 / 551] SwiftSyntaxMacroExpansion
[500 / 552] SwiftCompilerPluginMessageHandling
[502 / 561] SwiftCompilerPluginMessageHandling
[504 / 561] SwiftCompilerPluginMessageHandling
[505 / 561] SwiftCompilerPluginMessageHandling
[506 / 561] SwiftCompilerPluginMessageHandling
[507 / 561] SwiftCompilerPluginMessageHandling
[509 / 561] SwiftCompilerPluginMessageHandling
[513 / 561] SwiftCompilerPluginMessageHandling
[514 / 561] SwiftCompilerPlugin
[519 / 565] SwiftCompilerPlugin
[524 / 565] SwiftCompilerPlugin
[524 / 565] SwiftCompilerPluginMessageHandling
[526 / 566] SwiftCompilerPluginMessageHandling
[528 / 567] SwiftSyntax
[531 / 568] SwiftSyntax
[538 / 568] SwiftIfConfig
[547 / 569] GlobalConfMacros
[556 / 578] GlobalConfMacros
[560 / 579] GlobalConfMacros
[561 / 579] GlobalConfMacros
[571 / 589] GlobalConfModule
[585 / 599] SignalHandling
[589 / 600] SignalHandling
error: SwiftCompile normal wasm32 /host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Sigaction.swift failed with a nonzero exit code. Command line:     cd /host
    builtin-SwiftPerFileCompile Sigaction.swift
error: SwiftCompile normal wasm32 /host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/SigactionFlag.swift failed with a nonzero exit code. Command line:     cd /host
    builtin-SwiftPerFileCompile SigactionFlag.swift
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Sigaction.swift:44:24: error: cannot find type 'sigaction' in scope
 42 | 	 If the handler of the sigaction is `SIG_IGN` or `SIG_DFL`, we check the `sa_flags` not to contains the `SA_SIGINFO` bit.
 43 | 	 If they do, we log an error, as this is invalid. */
 44 | 	public init(rawValue: sigaction) {
    |                        `- error: cannot find type 'sigaction' in scope
 45 | 		self.mask = Signal.set(from: rawValue.sa_mask)
 46 | 		self.flags = SigactionFlags(rawValue: rawValue.sa_flags)
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Sigaction.swift:79:23: error: cannot find type 'sigaction' in scope
 77 | 	}
 78 |
 79 | 	public var rawValue: sigaction {
    |                       `- error: cannot find type 'sigaction' in scope
 80 | 		if !isValid {
 81 | 			Conf.logger?.warning("Getting sigaction from an invalid Sigaction.")
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/SigactionHandler.swift:19:80: error: cannot find type 'siginfo_t' in scope
17 |
18 | 	case ansiC(@convention(c) (_ signalID: Int32) -> Void)
19 | 	case posix(@convention(c) (_ signalID: Int32, _ siginfo: UnsafeMutablePointer<siginfo_t>?, _ userThreadContext: UnsafeMutableRawPointer?) -> Void)
   |                                                                                `- error: cannot find type 'siginfo_t' in scope
20 |
21 | 	public static func ==(lhs: SigactionHandler, rhs: SigactionHandler) -> Bool {
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Sigaction.swift:8:15: error: type 'Sigaction' does not conform to protocol 'RawRepresentable'
  6 |
  7 |
  8 | public struct Sigaction : Equatable, RawRepresentable, Sendable {
    |               |- error: type 'Sigaction' does not conform to protocol 'RawRepresentable'
    |               `- note: add stubs for conformance
  9 |
 10 | 	public static let ignoreAction = Sigaction(handler: .ignoreHandler)
Swift.RawRepresentable.RawValue:2:16: note: protocol requires nested type 'RawValue'
1 | protocol RawRepresentable {
2 | associatedtype RawValue}
  |                `- note: protocol requires nested type 'RawValue'
3 |
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/SigactionFlag.swift:40:55: error: cannot find 'SA_SIGINFO' in scope
38 | 	  and should match the matching prototype.
39 | 	 This bit should not be set when assigning `SIG_DFL` or `SIG_IGN`. */
40 | 	public static let siginfo = SigactionFlags(rawValue: SA_SIGINFO)
   |                                                       `- error: cannot find 'SA_SIGINFO' in scope
41 |
42 | 	public let rawValue: CInt
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Sigaction.swift:50:49: error: cannot find 'SIG_IGN' in scope
 48 | #if !os(Linux)
 49 | 		switch OpaquePointer(bitPattern: unsafeBitCast(rawValue.__sigaction_u.__sa_handler, to: Int.self)) {
 50 | 			case OpaquePointer(bitPattern: unsafeBitCast(SIG_IGN, to: Int.self)): self.handler = .ignoreHandler
    |                                                 `- error: cannot find 'SIG_IGN' in scope
 51 | 			case OpaquePointer(bitPattern: unsafeBitCast(SIG_DFL, to: Int.self)): self.handler = .defaultHandler
 52 | 			default:
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Sigaction.swift:51:49: error: cannot find 'SIG_DFL' in scope
 49 | 		switch OpaquePointer(bitPattern: unsafeBitCast(rawValue.__sigaction_u.__sa_handler, to: Int.self)) {
 50 | 			case OpaquePointer(bitPattern: unsafeBitCast(SIG_IGN, to: Int.self)): self.handler = .ignoreHandler
 51 | 			case OpaquePointer(bitPattern: unsafeBitCast(SIG_DFL, to: Int.self)): self.handler = .defaultHandler
    |                                                 `- error: cannot find 'SIG_DFL' in scope
 52 | 			default:
 53 | 				if flags.contains(.siginfo) {self.handler = .posix(rawValue.__sigaction_u.__sa_sigaction)}
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Sigaction.swift:72:16: error: cannot find 'sigaction' in scope
 70 |
 71 | 	public init(signal: Signal) throws {
 72 | 		var action = sigaction()
    |                `- error: cannot find 'sigaction' in scope
 73 | 		guard sigaction(signal.rawValue, nil, &action) == 0 else {
 74 | 			throw SignalHandlingError.nonDestructiveSystemError(Errno(rawValue: errno))
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Sigaction.swift:73:9: error: cannot find 'sigaction' in scope
 71 | 	public init(signal: Signal) throws {
 72 | 		var action = sigaction()
 73 | 		guard sigaction(signal.rawValue, nil, &action) == 0 else {
    |         `- error: cannot find 'sigaction' in scope
 74 | 			throw SignalHandlingError.nonDestructiveSystemError(Errno(rawValue: errno))
 75 | 		}
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Sigaction.swift:76:8: error: no exact matches in call to initializer 
 28 | 	public var handler: SigactionHandler
 29 |
 30 | 	public init(handler: SigactionHandler) {
    |         `- note: incorrect labels for candidate (have: '(rawValue:)', expected: '(handler:)')
 31 | 		self.mask = []
 32 | 		switch handler {
    :
 69 | 	}
 70 |
 71 | 	public init(signal: Signal) throws {
    |         `- note: incorrect labels for candidate (have: '(rawValue:)', expected: '(signal:)')
 72 | 		var action = sigaction()
 73 | 		guard sigaction(signal.rawValue, nil, &action) == 0 else {
 74 | 			throw SignalHandlingError.nonDestructiveSystemError(Errno(rawValue: errno))
 75 | 		}
 76 | 		self.init(rawValue: action)
    |        `- error: no exact matches in call to initializer 
 77 | 	}
 78 |
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Sigaction.swift:84:13: error: cannot find 'sigaction' in scope
 82 | 		}
 83 |
 84 | 		var ret = sigaction()
    |             `- error: cannot find 'sigaction' in scope
 85 | 		ret.sa_mask = Signal.sigset(from: mask)
 86 | 		ret.sa_flags = flags.rawValue
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Sigaction.swift:90:59: error: cannot find 'SIG_IGN' in scope
 88 | #if !os(Linux)
 89 | 		switch handler {
 90 | 			case .ignoreHandler:  ret.__sigaction_u.__sa_handler = SIG_IGN
    |                                                           `- error: cannot find 'SIG_IGN' in scope
 91 | 			case .defaultHandler: ret.__sigaction_u.__sa_handler = SIG_DFL
 92 | 			case .ansiC(let h):   ret.__sigaction_u.__sa_handler = h
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Sigaction.swift:91:59: error: cannot find 'SIG_DFL' in scope
 89 | 		switch handler {
 90 | 			case .ignoreHandler:  ret.__sigaction_u.__sa_handler = SIG_IGN
 91 | 			case .defaultHandler: ret.__sigaction_u.__sa_handler = SIG_DFL
    |                                                           `- error: cannot find 'SIG_DFL' in scope
 92 | 			case .ansiC(let h):   ret.__sigaction_u.__sa_handler = h
 93 | 			case .posix(let h):   ret.__sigaction_u.__sa_sigaction = h
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Sigaction.swift:129:20: error: cannot find 'sigaction' in scope
127 | 		}
128 |
129 | 		var oldCAction = sigaction()
    |                    `- error: cannot find 'sigaction' in scope
130 | 		var newCAction = self.rawValue
131 | 		guard sigaction(signal.rawValue, &newCAction, &oldCAction) == 0 else {
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Sigaction.swift:131:9: error: cannot find 'sigaction' in scope
129 | 		var oldCAction = sigaction()
130 | 		var newCAction = self.rawValue
131 | 		guard sigaction(signal.rawValue, &newCAction, &oldCAction) == 0 else {
    |         `- error: cannot find 'sigaction' in scope
132 | 			throw SignalHandlingError.nonDestructiveSystemError(Errno(rawValue: errno))
133 | 		}
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Sigaction.swift:134:22: error: no exact matches in call to initializer 
 28 | 	public var handler: SigactionHandler
 29 |
 30 | 	public init(handler: SigactionHandler) {
    |         `- note: incorrect labels for candidate (have: '(rawValue:)', expected: '(handler:)')
 31 | 		self.mask = []
 32 | 		switch handler {
    :
 69 | 	}
 70 |
 71 | 	public init(signal: Signal) throws {
    |         `- note: incorrect labels for candidate (have: '(rawValue:)', expected: '(signal:)')
 72 | 		var action = sigaction()
 73 | 		guard sigaction(signal.rawValue, nil, &action) == 0 else {
    :
132 | 			throw SignalHandlingError.nonDestructiveSystemError(Errno(rawValue: errno))
133 | 		}
134 | 		let oldSigaction = Sigaction(rawValue: oldCAction)
    |                      `- error: no exact matches in call to initializer 
135 | 		if revertIfIgnored && oldSigaction == .ignoreAction {
136 | 			guard sigaction(signal.rawValue, &oldCAction, nil) == 0 else {
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Sigaction.swift:136:10: error: cannot find 'sigaction' in scope
134 | 		let oldSigaction = Sigaction(rawValue: oldCAction)
135 | 		if revertIfIgnored && oldSigaction == .ignoreAction {
136 | 			guard sigaction(signal.rawValue, &oldCAction, nil) == 0 else {
    |          `- error: cannot find 'sigaction' in scope
137 | 				throw SignalHandlingError.destructiveSystemError(Errno(rawValue: errno))
138 | 			}
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/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 | 	/**
Failed frontend command:
/usr/bin/swift-frontend -frontend -c /host/spi-builder-workspace/Sources/SignalHandling/\ Config.swift /host/spi-builder-workspace/Sources/SignalHandling/\ Errors.swift -primary-file /host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Sigaction.swift -primary-file /host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/SigactionFlag.swift /host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/SigactionHandler.swift /host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Signal.swift /host/spi-builder-workspace/Sources/SignalHandling/DelayedSigaction/DelayedSigaction.swift /host/spi-builder-workspace/Sources/SignalHandling/DelayedSigaction/DelayedSigactionHandler.swift /host/spi-builder-workspace/Sources/SignalHandling/DelayedSigaction/SigactionDelayer_Block.swift /host/spi-builder-workspace/Sources/SignalHandling/DelayedSigaction/SigactionDelayer_Unsig.swift /host/spi-builder-workspace/Sources/SignalHandling/Utils.swift -emit-dependencies-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/swift-signal-handling.build/Debug-webassembly-wasm32/SignalHandling-t.build/Objects-normal/wasm32/Sigaction.d -emit-const-values-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/swift-signal-handling.build/Debug-webassembly-wasm32/SignalHandling-t.build/Objects-normal/wasm32/Sigaction.swiftconstvalues -emit-reference-dependencies-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/swift-signal-handling.build/Debug-webassembly-wasm32/SignalHandling-t.build/Objects-normal/wasm32/Sigaction.swiftdeps -serialize-diagnostics-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/swift-signal-handling.build/Debug-webassembly-wasm32/SignalHandling-t.build/Objects-normal/wasm32/Sigaction.dia -emit-dependencies-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/swift-signal-handling.build/Debug-webassembly-wasm32/SignalHandling-t.build/Objects-normal/wasm32/SigactionFlag.d -emit-const-values-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/swift-signal-handling.build/Debug-webassembly-wasm32/SignalHandling-t.build/Objects-normal/wasm32/SigactionFlag.swiftconstvalues -emit-reference-dependencies-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/swift-signal-handling.build/Debug-webassembly-wasm32/SignalHandling-t.build/Objects-normal/wasm32/SigactionFlag.swiftdeps -serialize-diagnostics-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/swift-signal-handling.build/Debug-webassembly-wasm32/SignalHandling-t.build/Objects-normal/wasm32/SigactionFlag.dia -target wasm32-unknown-wasip1 -disable-objc-interop -sdk /root/.swiftpm/swift-sdks/swift-6.4.x-DEVELOPMENT-SNAPSHOT-2026-09-04-a_wasm.artifactbundle/swift-6.4.x-DEVELOPMENT-SNAPSHOT-2026-09-04-a_wasm/wasm32-unknown-wasip1/WASI.sdk -sysroot /root/.swiftpm/swift-sdks/swift-6.4.x-DEVELOPMENT-SNAPSHOT-2026-09-04-a_wasm.artifactbundle/swift-6.4.x-DEVELOPMENT-SNAPSHOT-2026-09-04-a_wasm/wasm32-unknown-wasip1/WASI.sdk -I /host/spi-builder-workspace/.build/out/Products/Debug-webassembly-wasm32 -module-cache-path /host/spi-builder-workspace/.build/out/ModuleCache.noindex -color-diagnostics -Xcc -fcolor-diagnostics -enable-testing -g -debug-info-format\=dwarf -dwarf-version\=4 -swift-version 6 -Onone -D SWIFT_PACKAGE -D DEBUG -D SWIFT_MODULE_RESOURCE_BUNDLE_UNAVAILABLE -D Xcode -serialize-debugging-options -load-plugin-executable /host/spi-builder-workspace/.build/out/Products/Debug-linux-x86_64/GlobalConfMacros\#GlobalConfMacros -enable-experimental-feature DebugDescriptionMacro -empty-abi-descriptor -external-plugin-path /usr/lib/swift/host/plugins/testing\#/usr/bin/swift-plugin-server -validate-clang-modules-once -clang-build-session-file /host/spi-builder-workspace/.build/out/ModuleCache.noindex/Session.modulevalidation -Xcc -working-directory -Xcc /host -resource-dir /root/.swiftpm/swift-sdks/swift-6.4.x-DEVELOPMENT-SNAPSHOT-2026-09-04-a_wasm.artifactbundle/swift-6.4.x-DEVELOPMENT-SNAPSHOT-2026-09-04-a_wasm/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static -use-static-resource-dir -enable-anonymous-context-mangled-names -file-compilation-dir /host -Xcc -resource-dir -Xcc /root/.swiftpm/swift-sdks/swift-6.4.x-DEVELOPMENT-SNAPSHOT-2026-09-04-a_wasm.artifactbundle/swift-6.4.x-DEVELOPMENT-SNAPSHOT-2026-09-04-a_wasm/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/clang -Xcc -fmodule-map-file\=/host/spi-builder-workspace/.build/checkouts/swift-system/Sources/CSystem/include/module.modulemap -Xcc -D_LIBCPP_HARDENING_MODE\=_LIBCPP_HARDENING_MODE_DEBUG -Xcc -fmodules-prune-interval\=86400 -Xcc -fmodules-prune-after\=345600 -Xcc -I/host/spi-builder-workspace/.build/checkouts/swift-system/Sources/CSystem/include -Xcc -I/host/spi-builder-workspace/.build/out/Products/Debug-webassembly-wasm32/include -Xcc -I/host/spi-builder-workspace/.build/out/Intermediates.noindex/swift-signal-handling.build/Debug-webassembly-wasm32/SignalHandling-t.build/DerivedSources-normal/wasm32 -Xcc -I/host/spi-builder-workspace/.build/out/Intermediates.noindex/swift-signal-handling.build/Debug-webassembly-wasm32/SignalHandling-t.build/DerivedSources/wasm32 -Xcc -I/host/spi-builder-workspace/.build/out/Intermediates.noindex/swift-signal-handling.build/Debug-webassembly-wasm32/SignalHandling-t.build/DerivedSources -Xcc -DSWIFT_PACKAGE -Xcc -DDEBUG\=1 -no-auto-bridging-header-chaining -module-name SignalHandling -package-name spi_builder_workspace -const-gather-protocols-file /host/spi-builder-workspace/.build/out/Intermediates.noindex/swift-signal-handling.build/Debug-webassembly-wasm32/SignalHandling-t.build/Objects-normal/wasm32/SignalHandling_const_extract_protocols.json -in-process-plugin-server-path /usr/lib/swift/host/libSwiftInProcPluginServer.so -plugin-path /usr/lib/swift/host/plugins -plugin-path /usr/local/lib/swift/host/plugins -parse-as-library -o /host/spi-builder-workspace/.build/out/Intermediates.noindex/swift-signal-handling.build/Debug-webassembly-wasm32/SignalHandling-t.build/Objects-normal/wasm32/Sigaction.o -o /host/spi-builder-workspace/.build/out/Intermediates.noindex/swift-signal-handling.build/Debug-webassembly-wasm32/SignalHandling-t.build/Objects-normal/wasm32/SigactionFlag.o -index-unit-output-path /swift-signal-handling.build/Debug-webassembly-wasm32/SignalHandling-t.build/Objects-normal/wasm32/Sigaction.o -index-unit-output-path /swift-signal-handling.build/Debug-webassembly-wasm32/SignalHandling-t.build/Objects-normal/wasm32/SigactionFlag.o -index-store-path /host/spi-builder-workspace/.build/out -index-system-modules
error: SwiftCompile normal wasm32 /host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/SigactionHandler.swift failed with a nonzero exit code. Command line:     cd /host
    builtin-SwiftPerFileCompile SigactionHandler.swift
error: SwiftCompile normal wasm32 /host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Signal.swift failed with a nonzero exit code. Command line:     cd /host
    builtin-SwiftPerFileCompile 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 | 			})
Failed frontend command:
/usr/bin/swift-frontend -frontend -c /host/spi-builder-workspace/Sources/SignalHandling/\ Config.swift /host/spi-builder-workspace/Sources/SignalHandling/\ Errors.swift /host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Sigaction.swift /host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/SigactionFlag.swift -primary-file /host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/SigactionHandler.swift -primary-file /host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Signal.swift /host/spi-builder-workspace/Sources/SignalHandling/DelayedSigaction/DelayedSigaction.swift /host/spi-builder-workspace/Sources/SignalHandling/DelayedSigaction/DelayedSigactionHandler.swift /host/spi-builder-workspace/Sources/SignalHandling/DelayedSigaction/SigactionDelayer_Block.swift /host/spi-builder-workspace/Sources/SignalHandling/DelayedSigaction/SigactionDelayer_Unsig.swift /host/spi-builder-workspace/Sources/SignalHandling/Utils.swift -emit-dependencies-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/swift-signal-handling.build/Debug-webassembly-wasm32/SignalHandling-t.build/Objects-normal/wasm32/SigactionHandler.d -emit-const-values-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/swift-signal-handling.build/Debug-webassembly-wasm32/SignalHandling-t.build/Objects-normal/wasm32/SigactionHandler.swiftconstvalues -emit-reference-dependencies-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/swift-signal-handling.build/Debug-webassembly-wasm32/SignalHandling-t.build/Objects-normal/wasm32/SigactionHandler.swiftdeps -serialize-diagnostics-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/swift-signal-handling.build/Debug-webassembly-wasm32/SignalHandling-t.build/Objects-normal/wasm32/SigactionHandler.dia -emit-dependencies-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/swift-signal-handling.build/Debug-webassembly-wasm32/SignalHandling-t.build/Objects-normal/wasm32/Signal.d -emit-const-values-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/swift-signal-handling.build/Debug-webassembly-wasm32/SignalHandling-t.build/Objects-normal/wasm32/Signal.swiftconstvalues -emit-reference-dependencies-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/swift-signal-handling.build/Debug-webassembly-wasm32/SignalHandling-t.build/Objects-normal/wasm32/Signal.swiftdeps -serialize-diagnostics-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/swift-signal-handling.build/Debug-webassembly-wasm32/SignalHandling-t.build/Objects-normal/wasm32/Signal.dia -target wasm32-unknown-wasip1 -disable-objc-interop -sdk /root/.swiftpm/swift-sdks/swift-6.4.x-DEVELOPMENT-SNAPSHOT-2026-09-04-a_wasm.artifactbundle/swift-6.4.x-DEVELOPMENT-SNAPSHOT-2026-09-04-a_wasm/wasm32-unknown-wasip1/WASI.sdk -sysroot /root/.swiftpm/swift-sdks/swift-6.4.x-DEVELOPMENT-SNAPSHOT-2026-09-04-a_wasm.artifactbundle/swift-6.4.x-DEVELOPMENT-SNAPSHOT-2026-09-04-a_wasm/wasm32-unknown-wasip1/WASI.sdk -I /host/spi-builder-workspace/.build/out/Products/Debug-webassembly-wasm32 -module-cache-path /host/spi-builder-workspace/.build/out/ModuleCache.noindex -color-diagnostics -Xcc -fcolor-diagnostics -enable-testing -g -debug-info-format\=dwarf -dwarf-version\=4 -swift-version 6 -Onone -D SWIFT_PACKAGE -D DEBUG -D SWIFT_MODULE_RESOURCE_BUNDLE_UNAVAILABLE -D Xcode -serialize-debugging-options -load-plugin-executable /host/spi-builder-workspace/.build/out/Products/Debug-linux-x86_64/GlobalConfMacros\#GlobalConfMacros -enable-experimental-feature DebugDescriptionMacro -empty-abi-descriptor -external-plugin-path /usr/lib/swift/host/plugins/testing\#/usr/bin/swift-plugin-server -validate-clang-modules-once -clang-build-session-file /host/spi-builder-workspace/.build/out/ModuleCache.noindex/Session.modulevalidation -Xcc -working-directory -Xcc /host -resource-dir /root/.swiftpm/swift-sdks/swift-6.4.x-DEVELOPMENT-SNAPSHOT-2026-09-04-a_wasm.artifactbundle/swift-6.4.x-DEVELOPMENT-SNAPSHOT-2026-09-04-a_wasm/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static -use-static-resource-dir -enable-anonymous-context-mangled-names -file-compilation-dir /host -Xcc -resource-dir -Xcc /root/.swiftpm/swift-sdks/swift-6.4.x-DEVELOPMENT-SNAPSHOT-2026-09-04-a_wasm.artifactbundle/swift-6.4.x-DEVELOPMENT-SNAPSHOT-2026-09-04-a_wasm/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/clang -Xcc -fmodule-map-file\=/host/spi-builder-workspace/.build/checkouts/swift-system/Sources/CSystem/include/module.modulemap -Xcc -D_LIBCPP_HARDENING_MODE\=_LIBCPP_HARDENING_MODE_DEBUG -Xcc -fmodules-prune-interval\=86400 -Xcc -fmodules-prune-after\=345600 -Xcc -I/host/spi-builder-workspace/.build/checkouts/swift-system/Sources/CSystem/include -Xcc -I/host/spi-builder-workspace/.build/out/Products/Debug-webassembly-wasm32/include -Xcc -I/host/spi-builder-workspace/.build/out/Intermediates.noindex/swift-signal-handling.build/Debug-webassembly-wasm32/SignalHandling-t.build/DerivedSources-normal/wasm32 -Xcc -I/host/spi-builder-workspace/.build/out/Intermediates.noindex/swift-signal-handling.build/Debug-webassembly-wasm32/SignalHandling-t.build/DerivedSources/wasm32 -Xcc -I/host/spi-builder-workspace/.build/out/Intermediates.noindex/swift-signal-handling.build/Debug-webassembly-wasm32/SignalHandling-t.build/DerivedSources -Xcc -DSWIFT_PACKAGE -Xcc -DDEBUG\=1 -no-auto-bridging-header-chaining -module-name SignalHandling -package-name spi_builder_workspace -const-gather-protocols-file /host/spi-builder-workspace/.build/out/Intermediates.noindex/swift-signal-handling.build/Debug-webassembly-wasm32/SignalHandling-t.build/Objects-normal/wasm32/SignalHandling_const_extract_protocols.json -in-process-plugin-server-path /usr/lib/swift/host/libSwiftInProcPluginServer.so -plugin-path /usr/lib/swift/host/plugins -plugin-path /usr/local/lib/swift/host/plugins -parse-as-library -o /host/spi-builder-workspace/.build/out/Intermediates.noindex/swift-signal-handling.build/Debug-webassembly-wasm32/SignalHandling-t.build/Objects-normal/wasm32/SigactionHandler.o -o /host/spi-builder-workspace/.build/out/Intermediates.noindex/swift-signal-handling.build/Debug-webassembly-wasm32/SignalHandling-t.build/Objects-normal/wasm32/Signal.o -index-unit-output-path /swift-signal-handling.build/Debug-webassembly-wasm32/SignalHandling-t.build/Objects-normal/wasm32/SigactionHandler.o -index-unit-output-path /swift-signal-handling.build/Debug-webassembly-wasm32/SignalHandling-t.build/Objects-normal/wasm32/Signal.o -index-store-path /host/spi-builder-workspace/.build/out -index-system-modules
error: SwiftCompile normal wasm32 /host/spi-builder-workspace/Sources/SignalHandling/DelayedSigaction/SigactionDelayer_Unsig.swift failed with a nonzero exit code. Command line:     cd /host
    builtin-SwiftPerFileCompile SigactionDelayer_Unsig.swift
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/SigactionHandler.swift:19:80: error: cannot find type 'siginfo_t' in scope
17 |
18 | 	case ansiC(@convention(c) (_ signalID: Int32) -> Void)
19 | 	case posix(@convention(c) (_ signalID: Int32, _ siginfo: UnsafeMutablePointer<siginfo_t>?, _ userThreadContext: UnsafeMutableRawPointer?) -> Void)
   |                                                                                `- error: cannot find type 'siginfo_t' in scope
20 |
21 | 	public static func ==(lhs: SigactionHandler, rhs: SigactionHandler) -> Bool {
/host/spi-builder-workspace/Sources/SignalHandling/DelayedSigaction/SigactionDelayer_Unsig.swift:129:21: error: cannot find 'NSConditionLock' in scope
127 | 		}
128 |
129 | 		static let lock = NSConditionLock(condition: Self.nothingToDo.rawValue)
    |                     `- error: cannot find 'NSConditionLock' in scope
130 |
131 | 		/* Read/write is protected by the lock above. */
/host/spi-builder-workspace/Sources/SignalHandling/DelayedSigaction/SigactionDelayer_Unsig.swift:145:23: error: cannot find type 'DispatchSourceSignal' in scope
143 | 		var originalSigaction: Sigaction
144 |
145 | 		var dispatchSource: DispatchSourceSignal
    |                       `- error: cannot find type 'DispatchSourceSignal' in scope
146 | 		var handlers = [DelayedSigaction: DelayedSigactionHandler]()
147 |
/host/spi-builder-workspace/Sources/SignalHandling/DelayedSigaction/SigactionDelayer_Unsig.swift:150:45: error: cannot find 'DispatchQueue' in scope
148 | 	}
149 |
150 | 	private static let signalProcessingQueue = DispatchQueue(label: "com.xcode-actions.unsigactioned-signals-processing-queue")
    |                                             `- error: cannot find 'DispatchQueue' in scope
151 |
152 | 	/* Both these vars are only modified/read on the signal processing queue. */
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Sigaction.swift:44:24: error: cannot find type 'sigaction' in scope
 42 | 	 If the handler of the sigaction is `SIG_IGN` or `SIG_DFL`, we check the `sa_flags` not to contains the `SA_SIGINFO` bit.
 43 | 	 If they do, we log an error, as this is invalid. */
 44 | 	public init(rawValue: sigaction) {
    |                        `- error: cannot find type 'sigaction' in scope
 45 | 		self.mask = Signal.set(from: rawValue.sa_mask)
 46 | 		self.flags = SigactionFlags(rawValue: rawValue.sa_flags)
/host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Sigaction.swift:79:23: error: cannot find type 'sigaction' in scope
 77 | 	}
 78 |
 79 | 	public var rawValue: sigaction {
    |                       `- error: cannot find type 'sigaction' in scope
 80 | 		if !isValid {
 81 | 			Conf.logger?.warning("Getting sigaction from an invalid Sigaction.")
/host/spi-builder-workspace/Sources/SignalHandling/DelayedSigaction/SigactionDelayer_Unsig.swift:194:3: error: type 'Sigaction' does not conform to protocol 'RawRepresentable'
192 | 	private static func registerDelayedSigactionOnQueue(_ signal: Signal, handler: @escaping DelayedSigactionHandler) throws -> DelayedSigaction {
193 | 		/* Whether the signal was retained before or not, we re-install the ignore handler on the given signal. */
194 | 		let oldSigaction = try Sigaction.ignoreAction.install(on: signal, revertIfIgnored: false, updateUnsigRegistrations: false)
    |   `- error: type 'Sigaction' does not conform to protocol 'RawRepresentable'
195 |
196 | 		let delayedSigaction = DelayedSigaction(signal: signal)
/host/spi-builder-workspace/Sources/SignalHandling/DelayedSigaction/SigactionDelayer_Unsig.swift:209:31: error: cannot find 'DispatchSource' in scope
207 | 			}
208 | 		} else {
209 | 			let dispatchSourceSignal = DispatchSource.makeSignalSource(signal: signal.rawValue, queue: signalProcessingQueue)
    |                               `- error: cannot find 'DispatchSource' in scope
210 | 			/* Apparently the dispatchSourceSignal does not need to be weak in the handler because the handler is released when the source is canceled.
211 | 			 * I manually tested this and found no confirmation or infirmation of this in the documentation. */
/host/spi-builder-workspace/Sources/SignalHandling/DelayedSigaction/SigactionDelayer_Unsig.swift:272:16: error: cannot find 'DispatchGroup' in scope
270 | 		for _ in 0..<count {
271 | 			let lock = NSLock()
272 | 			let group = DispatchGroup()
    |                `- error: cannot find 'DispatchGroup' in scope
273 | 			nonisolated(unsafe) var runOriginalHandlerFinal = true
274 | 			for (_, handler) in unsigactionedSignal.handlers {
/host/spi-builder-workspace/Sources/SignalHandling/DelayedSigaction/SigactionDelayer_Unsig.swift:301:15: error: cannot find 'DispatchGroup' in scope
299 |
300 | 		nonisolated(unsafe) var error: Error?
301 | 		let group = DispatchGroup()
    |               `- error: cannot find 'DispatchGroup' in scope
302 | 		group.enter()
303 | 		Thread.detachNewThread{
/host/spi-builder-workspace/Sources/SignalHandling/DelayedSigaction/SigactionDelayer_Unsig.swift:308:14: error: cannot find 'pthread_sigmask' in scope
306 | 			/* Unblock all signals in this thread. */
307 | 			var noSignals = Signal.emptySigset
308 | 			let ret = pthread_sigmask(SIG_SETMASK, &noSignals, nil /* old signals */)
    |              `- error: cannot find 'pthread_sigmask' in scope
309 | 			if ret != 0 {
310 | 				error = SignalHandlingError.destructiveSystemError(Errno(rawValue: ret))
/host/spi-builder-workspace/Sources/SignalHandling/DelayedSigaction/SigactionDelayer_Unsig.swift:308:30: error: cannot find 'SIG_SETMASK' in scope
306 | 			/* Unblock all signals in this thread. */
307 | 			var noSignals = Signal.emptySigset
308 | 			let ret = pthread_sigmask(SIG_SETMASK, &noSignals, nil /* old signals */)
    |                              `- error: cannot find 'SIG_SETMASK' in scope
309 | 			if ret != 0 {
310 | 				error = SignalHandlingError.destructiveSystemError(Errno(rawValue: ret))
/host/spi-builder-workspace/Sources/SignalHandling/DelayedSigaction/SigactionDelayer_Unsig.swift:379:20: error: cannot find 'pthread_self' in scope
377 | 						 * Anyway, we need to reinstall the sigaction handler after the signal has been sent and processed,
378 | 						 *  so we need to have some control, which `raise` does not give. */
379 | 						let thread = pthread_self()
    |                    `- error: cannot find 'pthread_self' in scope
380 | //						let killResult = raise(signal.rawValue)
381 | 						let killResult = pthread_kill(thread, signal.rawValue)
/host/spi-builder-workspace/Sources/SignalHandling/DelayedSigaction/SigactionDelayer_Unsig.swift:381:24: error: cannot find 'pthread_kill' in scope
379 | 						let thread = pthread_self()
380 | //						let killResult = raise(signal.rawValue)
381 | 						let killResult = pthread_kill(thread, signal.rawValue)
    |                        `- error: cannot find 'pthread_kill' in scope
382 | 						if killResult != 0 {
383 | 							completionResult.errorLogs.append(("Cannot send signal to unsigactioned thread.", ["signal": "\(signal)", "kill_result": "\(killResult)"]))
/host/spi-builder-workspace/Sources/SignalHandling/DelayedSigaction/SigactionDelayer_Unsig.swift:387:27: error: cannot find 'pthread_sigmask' in scope
385 |
386 | 						/* Re-unblock all signals (in case a handler blocked one). */
387 | 						let sigmaskResult = pthread_sigmask(SIG_SETMASK, &emptyMask, nil)
    |                           `- error: cannot find 'pthread_sigmask' in scope
388 | 						if sigmaskResult != 0 {
389 | 							completionResult.errorLogs.append((
/host/spi-builder-workspace/Sources/SignalHandling/DelayedSigaction/SigactionDelayer_Unsig.swift:387:43: error: cannot find 'SIG_SETMASK' in scope
385 |
386 | 						/* Re-unblock all signals (in case a handler blocked one). */
387 | 						let sigmaskResult = pthread_sigmask(SIG_SETMASK, &emptyMask, nil)
    |                                           `- error: cannot find 'SIG_SETMASK' in scope
388 | 						if sigmaskResult != 0 {
389 | 							completionResult.errorLogs.append((
Failed frontend command:
/usr/bin/swift-frontend -frontend -c /host/spi-builder-workspace/Sources/SignalHandling/\ Config.swift /host/spi-builder-workspace/Sources/SignalHandling/\ Errors.swift /host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Sigaction.swift /host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/SigactionFlag.swift /host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/SigactionHandler.swift /host/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Signal.swift /host/spi-builder-workspace/Sources/SignalHandling/DelayedSigaction/DelayedSigaction.swift /host/spi-builder-workspace/Sources/SignalHandling/DelayedSigaction/DelayedSigactionHandler.swift /host/spi-builder-workspace/Sources/SignalHandling/DelayedSigaction/SigactionDelayer_Block.swift -primary-file /host/spi-builder-workspace/Sources/SignalHandling/DelayedSigaction/SigactionDelayer_Unsig.swift /host/spi-builder-workspace/Sources/SignalHandling/Utils.swift -emit-dependencies-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/swift-signal-handling.build/Debug-webassembly-wasm32/SignalHandling-t.build/Objects-normal/wasm32/SigactionDelayer_Unsig.d -emit-const-values-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/swift-signal-handling.build/Debug-webassembly-wasm32/SignalHandling-t.build/Objects-normal/wasm32/SigactionDelayer_Unsig.swiftconstvalues -emit-reference-dependencies-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/swift-signal-handling.build/Debug-webassembly-wasm32/SignalHandling-t.build/Objects-normal/wasm32/SigactionDelayer_Unsig.swiftdeps -serialize-diagnostics-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/swift-signal-handling.build/Debug-webassembly-wasm32/SignalHandling-t.build/Objects-normal/wasm32/SigactionDelayer_Unsig.dia -target wasm32-unknown-wasip1 -disable-objc-interop -sdk /root/.swiftpm/swift-sdks/swift-6.4.x-DEVELOPMENT-SNAPSHOT-2026-09-04-a_wasm.artifactbundle/swift-6.4.x-DEVELOPMENT-SNAPSHOT-2026-09-04-a_wasm/wasm32-unknown-wasip1/WASI.sdk -sysroot /root/.swiftpm/swift-sdks/swift-6.4.x-DEVELOPMENT-SNAPSHOT-2026-09-04-a_wasm.artifactbundle/swift-6.4.x-DEVELOPMENT-SNAPSHOT-2026-09-04-a_wasm/wasm32-unknown-wasip1/WASI.sdk -I /host/spi-builder-workspace/.build/out/Products/Debug-webassembly-wasm32 -module-cache-path /host/spi-builder-workspace/.build/out/ModuleCache.noindex -color-diagnostics -Xcc -fcolor-diagnostics -enable-testing -g -debug-info-format\=dwarf -dwarf-version\=4 -swift-version 6 -Onone -D SWIFT_PACKAGE -D DEBUG -D SWIFT_MODULE_RESOURCE_BUNDLE_UNAVAILABLE -D Xcode -serialize-debugging-options -load-plugin-executable /host/spi-builder-workspace/.build/out/Products/Debug-linux-x86_64/GlobalConfMacros\#GlobalConfMacros -enable-experimental-feature DebugDescriptionMacro -empty-abi-descriptor -external-plugin-path /usr/lib/swift/host/plugins/testing\#/usr/bin/swift-plugin-server -validate-clang-modules-once -clang-build-session-file /host/spi-builder-workspace/.build/out/ModuleCache.noindex/Session.modulevalidation -Xcc -working-directory -Xcc /host -resource-dir /root/.swiftpm/swift-sdks/swift-6.4.x-DEVELOPMENT-SNAPSHOT-2026-09-04-a_wasm.artifactbundle/swift-6.4.x-DEVELOPMENT-SNAPSHOT-2026-09-04-a_wasm/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static -use-static-resource-dir -enable-anonymous-context-mangled-names -file-compilation-dir /host -Xcc -resource-dir -Xcc /root/.swiftpm/swift-sdks/swift-6.4.x-DEVELOPMENT-SNAPSHOT-2026-09-04-a_wasm.artifactbundle/swift-6.4.x-DEVELOPMENT-SNAPSHOT-2026-09-04-a_wasm/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/clang -Xcc -fmodule-map-file\=/host/spi-builder-workspace/.build/checkouts/swift-system/Sources/CSystem/include/module.modulemap -Xcc -D_LIBCPP_HARDENING_MODE\=_LIBCPP_HARDENING_MODE_DEBUG -Xcc -fmodules-prune-interval\=86400 -Xcc -fmodules-prune-after\=345600 -Xcc -I/host/spi-builder-workspace/.build/checkouts/swift-system/Sources/CSystem/include -Xcc -I/host/spi-builder-workspace/.build/out/Products/Debug-webassembly-wasm32/include -Xcc -I/host/spi-builder-workspace/.build/out/Intermediates.noindex/swift-signal-handling.build/Debug-webassembly-wasm32/SignalHandling-t.build/DerivedSources-normal/wasm32 -Xcc -I/host/spi-builder-workspace/.build/out/Intermediates.noindex/swift-signal-handling.build/Debug-webassembly-wasm32/SignalHandling-t.build/DerivedSources/wasm32 -Xcc -I/host/spi-builder-workspace/.build/out/Intermediates.noindex/swift-signal-handling.build/Debug-webassembly-wasm32/SignalHandling-t.build/DerivedSources -Xcc -DSWIFT_PACKAGE -Xcc -DDEBUG\=1 -no-auto-bridging-header-chaining -module-name SignalHandling -package-name spi_builder_workspace -const-gather-protocols-file /host/spi-builder-workspace/.build/out/Intermediates.noindex/swift-signal-handling.build/Debug-webassembly-wasm32/SignalHandling-t.build/Objects-normal/wasm32/SignalHandling_const_extract_protocols.json -in-process-plugin-server-path /usr/lib/swift/host/libSwiftInProcPluginServer.so -plugin-path /usr/lib/swift/host/plugins -plugin-path /usr/local/lib/swift/host/plugins -parse-as-library -o /host/spi-builder-workspace/.build/out/Intermediates.noindex/swift-signal-handling.build/Debug-webassembly-wasm32/SignalHandling-t.build/Objects-normal/wasm32/SigactionDelayer_Unsig.o -index-unit-output-path /swift-signal-handling.build/Debug-webassembly-wasm32/SignalHandling-t.build/Objects-normal/wasm32/SigactionDelayer_Unsig.o -index-store-path /host/spi-builder-workspace/.build/out -index-system-modules
error: Build failed
BUILD FAILURE 6.4 wasm