Build Information
Failed to build Swiftline, reference 0.5.6 (200b14
), with Swift 6.1 for Wasm on 29 May 2025 02:13:29 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4609320-0":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1
Build Log
========================================
RunAll
========================================
Builder version: 4.63.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/bow-swift/Swiftline.git
Reference: 0.5.6
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/bow-swift/Swiftline
* tag 0.5.6 -> FETCH_HEAD
HEAD is now at 200b148 fix casting between UnsafeMutablePointer<CChar> and UnsafePointer<CChar>!
Cloned https://github.com/bow-swift/Swiftline.git
Revision (git rev-parse @):
200b1486ed60d92b909c1ba8ded675bbb60e2805
SUCCESS checkout https://github.com/bow-swift/Swiftline.git at 0.5.6
========================================
Build
========================================
Selected platform: wasm
Swift version: 6.1
Building package at path: $PWD
https://github.com/bow-swift/Swiftline.git
https://github.com/bow-swift/Swiftline.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
"dependencies" : [
{
"identity" : "quick",
"requirement" : {
"range" : [
{
"lower_bound" : "4.0.0",
"upper_bound" : "5.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/Quick/Quick.git"
},
{
"identity" : "nimble",
"requirement" : {
"range" : [
{
"lower_bound" : "9.0.0",
"upper_bound" : "10.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/Quick/Nimble.git"
}
],
"manifest_display_name" : "Swiftline",
"name" : "Swiftline",
"path" : "/host/spi-builder-workspace",
"platforms" : [
{
"name" : "macos",
"version" : "10.13"
}
],
"products" : [
{
"name" : "Swiftline",
"targets" : [
"Swiftline"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "SwiftlineTests",
"module_type" : "SwiftTarget",
"name" : "SwiftlineTests",
"path" : "Tests",
"product_dependencies" : [
"Quick",
"Nimble"
],
"sources" : [
"AgreeSettingsTest.swift",
"AgreeTests.swift",
"ArgsTests.swift",
"AskSettingsTests.swift",
"AskTests.swift",
"ChooseSettingsTests.swift",
"ChooseTests.swift",
"ColorizerTest.swift",
"ENVTests.swift",
"RunnerTests.swift"
],
"target_dependencies" : [
"Swiftline"
],
"type" : "test"
},
{
"c99name" : "Swiftline",
"module_type" : "SwiftTarget",
"name" : "Swiftline",
"path" : "Sources",
"product_memberships" : [
"Swiftline"
],
"sources" : [
"Agree.swift",
"AgreeSettings.swift",
"ArgConvertible.swift",
"Args.swift",
"ArgsParser.swift",
"Argument.swift",
"Ask.swift",
"AskSettings.swift",
"AskerValidator.swift",
"Choose.swift",
"ChooseSettings.swift",
"Colorizer.swift",
"CommandExecutor.swift",
"Env.swift",
"ProcessInfo.swift",
"PromptPrinter.swift",
"PromptReader.swift",
"PromptSettings.swift",
"RunResults.swift",
"Runner.swift",
"RunnerSettings.swift",
"ShortHandRunner.swift",
"StringBackgroundColorizer.swift",
"StringForegroundColorizer.swift",
"StringStyle.swift",
"StringStyleColorizer.swift",
"TaskPipe.swift"
],
"type" : "library"
}
],
"tools_version" : "5.1"
}
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-0":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures 2>&1
wasm-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:7e37457820e5f17452a98118754f345f2619722c485f2db0d8b666940a83afd2
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest
Fetching https://github.com/Quick/Nimble.git
Fetching https://github.com/Quick/Quick.git
[1/14755] Fetching quick
[2215/34339] Fetching quick, nimble
Fetched https://github.com/Quick/Quick.git from cache (2.31s)
Fetched https://github.com/Quick/Nimble.git from cache (2.36s)
Computing version for https://github.com/Quick/Quick.git
Computed https://github.com/Quick/Quick.git at 4.0.0 (3.30s)
Computing version for https://github.com/Quick/Nimble.git
Computed https://github.com/Quick/Nimble.git at 9.2.1 (0.94s)
Fetching https://github.com/mattgallagher/CwlPreconditionTesting.git
[1/1257] Fetching cwlpreconditiontesting
Fetched https://github.com/mattgallagher/CwlPreconditionTesting.git from cache (0.35s)
Computing version for https://github.com/mattgallagher/CwlPreconditionTesting.git
Computed https://github.com/mattgallagher/CwlPreconditionTesting.git at 2.2.2 (1.30s)
Fetching https://github.com/mattgallagher/CwlCatchException.git
[1/455] Fetching cwlcatchexception
Fetched https://github.com/mattgallagher/CwlCatchException.git from cache (0.39s)
Computing version for https://github.com/mattgallagher/CwlCatchException.git
Computed https://github.com/mattgallagher/CwlCatchException.git at 2.2.1 (1.28s)
Creating working copy for https://github.com/mattgallagher/CwlPreconditionTesting.git
Working copy of https://github.com/mattgallagher/CwlPreconditionTesting.git resolved at 2.2.2
Creating working copy for https://github.com/Quick/Nimble.git
Working copy of https://github.com/Quick/Nimble.git resolved at 9.2.1
Creating working copy for https://github.com/Quick/Quick.git
Working copy of https://github.com/Quick/Quick.git resolved at 4.0.0
Creating working copy for https://github.com/mattgallagher/CwlCatchException.git
Working copy of https://github.com/mattgallagher/CwlCatchException.git resolved at 2.2.1
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-24593BA9C3E375BF.txt
error: emit-module command failed with exit code 1 (use -v to see invocation)
[3/27] Emitting module Swiftline
/host/spi-builder-workspace/Sources/Args.swift:18:14: warning: static property 'cachedResults' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
16 | }
17 |
18 | static var cachedResults: ParsedArgs?
| |- warning: static property 'cachedResults' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'cachedResults' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'cachedResults' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
19 |
20 | /// Return a parsed list of arguments containing the flags and the parameters passed to the scripts
/host/spi-builder-workspace/Sources/CommandExecutor.swift:9:45: error: cannot find type 'posix_spawn_file_actions_t' in scope
7 | typealias _posix_spawn_file_actions_t = posix_spawn_file_actions_t
8 | #else
9 | typealias _posix_spawn_file_actions_t = posix_spawn_file_actions_t?
| `- error: cannot find type 'posix_spawn_file_actions_t' in scope
10 | #endif
11 |
/host/spi-builder-workspace/Sources/CommandExecutor.swift:25:16: warning: static property 'currentTaskExecutor' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
23 |
24 | class CommandExecutor {
25 | static var currentTaskExecutor: TaskExecutor = ActualTaskExecutor()
| |- warning: static property 'currentTaskExecutor' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'currentTaskExecutor' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'currentTaskExecutor' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
26 |
27 | class func execute(_ commandParts: [String]) -> ExecutorReturnValue {
/host/spi-builder-workspace/Sources/ProcessInfo.swift:37:16: warning: static property 'internalProcessInfo' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
35 |
36 | enum ProcessInfo {
37 | static var internalProcessInfo: ProcessInfoType = Foundation.ProcessInfo.processInfo
| |- warning: static property 'internalProcessInfo' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'internalProcessInfo' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'internalProcessInfo' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
38 |
39 | static var arguments: [String] {
/host/spi-builder-workspace/Sources/PromptSettings.swift:12:16: warning: static property 'reader' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
10 | class PromptSettings {
11 |
12 | static var reader: PromptReader = ConsolePromptReader()
| |- warning: static property 'reader' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'reader' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'reader' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
13 | static var printer: PromptPrinter = ConsolePromptPrinter()
14 |
/host/spi-builder-workspace/Sources/PromptSettings.swift:13:16: warning: static property 'printer' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
11 |
12 | static var reader: PromptReader = ConsolePromptReader()
13 | static var printer: PromptPrinter = ConsolePromptPrinter()
| |- warning: static property 'printer' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'printer' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'printer' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
14 |
15 | class func read() -> String? {
/host/spi-builder-workspace/Sources/RunnerSettings.swift:51:23: warning: static property 'None' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
49 |
50 | /// Dont echo anything, this is the default settings
51 | public static var None = EchoSettings(rawValue: 0)
| |- warning: static property 'None' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'None' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'None' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
52 |
53 | /// Echo the stdout from the run command to the terminal
/host/spi-builder-workspace/Sources/RunnerSettings.swift:54:23: warning: static property 'Stdout' is not concurrency-safe because non-'Sendable' type 'EchoSettings' may have shared mutable state; this is an error in the Swift 6 language mode
40 |
41 | /// Echo settings
42 | public struct EchoSettings: OptionSet {
| `- note: consider making struct 'EchoSettings' conform to the 'Sendable' protocol
43 |
44 | public let rawValue: Int
:
52 |
53 | /// Echo the stdout from the run command to the terminal
54 | public static let Stdout = EchoSettings(rawValue: 1 << 0)
| |- warning: static property 'Stdout' is not concurrency-safe because non-'Sendable' type 'EchoSettings' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'Stdout' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
55 |
56 | /// Echo the stderr from the run command to the terminal
/host/spi-builder-workspace/Sources/RunnerSettings.swift:57:23: warning: static property 'Stderr' is not concurrency-safe because non-'Sendable' type 'EchoSettings' may have shared mutable state; this is an error in the Swift 6 language mode
40 |
41 | /// Echo settings
42 | public struct EchoSettings: OptionSet {
| `- note: consider making struct 'EchoSettings' conform to the 'Sendable' protocol
43 |
44 | public let rawValue: Int
:
55 |
56 | /// Echo the stderr from the run command to the terminal
57 | public static let Stderr = EchoSettings(rawValue: 1 << 1)
| |- warning: static property 'Stderr' is not concurrency-safe because non-'Sendable' type 'EchoSettings' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'Stderr' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
58 |
59 | /// Echo the command executed to the terminal
/host/spi-builder-workspace/Sources/RunnerSettings.swift:60:23: warning: static property 'Command' is not concurrency-safe because non-'Sendable' type 'EchoSettings' may have shared mutable state; this is an error in the Swift 6 language mode
40 |
41 | /// Echo settings
42 | public struct EchoSettings: OptionSet {
| `- note: consider making struct 'EchoSettings' conform to the 'Sendable' protocol
43 |
44 | public let rawValue: Int
:
58 |
59 | /// Echo the command executed to the terminal
60 | public static let Command = EchoSettings(rawValue: 1 << 2)
| |- warning: static property 'Command' is not concurrency-safe because non-'Sendable' type 'EchoSettings' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'Command' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
61 | }
62 |
[4/30] Compiling Swiftline ShortHandRunner.swift
[5/30] Compiling Swiftline StringBackgroundColorizer.swift
[6/30] Compiling Swiftline StringForegroundColorizer.swift
[7/30] Compiling Swiftline Agree.swift
/host/spi-builder-workspace/Sources/Args.swift:18:14: warning: static property 'cachedResults' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
16 | }
17 |
18 | static var cachedResults: ParsedArgs?
| |- warning: static property 'cachedResults' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'cachedResults' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'cachedResults' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
19 |
20 | /// Return a parsed list of arguments containing the flags and the parameters passed to the scripts
[8/30] Compiling Swiftline AgreeSettings.swift
/host/spi-builder-workspace/Sources/Args.swift:18:14: warning: static property 'cachedResults' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
16 | }
17 |
18 | static var cachedResults: ParsedArgs?
| |- warning: static property 'cachedResults' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'cachedResults' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'cachedResults' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
19 |
20 | /// Return a parsed list of arguments containing the flags and the parameters passed to the scripts
[9/30] Compiling Swiftline ArgConvertible.swift
/host/spi-builder-workspace/Sources/Args.swift:18:14: warning: static property 'cachedResults' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
16 | }
17 |
18 | static var cachedResults: ParsedArgs?
| |- warning: static property 'cachedResults' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'cachedResults' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'cachedResults' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
19 |
20 | /// Return a parsed list of arguments containing the flags and the parameters passed to the scripts
[10/30] Compiling Swiftline Args.swift
/host/spi-builder-workspace/Sources/Args.swift:18:14: warning: static property 'cachedResults' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
16 | }
17 |
18 | static var cachedResults: ParsedArgs?
| |- warning: static property 'cachedResults' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'cachedResults' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'cachedResults' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
19 |
20 | /// Return a parsed list of arguments containing the flags and the parameters passed to the scripts
[11/30] Compiling Swiftline StringStyle.swift
[12/30] Compiling Swiftline StringStyleColorizer.swift
[13/30] Compiling Swiftline TaskPipe.swift
[14/30] Compiling Swiftline CommandExecutor.swift
/host/spi-builder-workspace/Sources/CommandExecutor.swift:9:45: error: cannot find type 'posix_spawn_file_actions_t' in scope
7 | typealias _posix_spawn_file_actions_t = posix_spawn_file_actions_t
8 | #else
9 | typealias _posix_spawn_file_actions_t = posix_spawn_file_actions_t?
| `- error: cannot find type 'posix_spawn_file_actions_t' in scope
10 | #endif
11 |
/host/spi-builder-workspace/Sources/CommandExecutor.swift:25:16: warning: static property 'currentTaskExecutor' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
23 |
24 | class CommandExecutor {
25 | static var currentTaskExecutor: TaskExecutor = ActualTaskExecutor()
| |- warning: static property 'currentTaskExecutor' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'currentTaskExecutor' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'currentTaskExecutor' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
26 |
27 | class func execute(_ commandParts: [String]) -> ExecutorReturnValue {
/host/spi-builder-workspace/Sources/CommandExecutor.swift:59:21: error: cannot find 'DispatchGroup' in scope
57 |
58 | func execute(_ commandParts: [String]) -> ExecutorReturnValue {
59 | let group = DispatchGroup()
| `- error: cannot find 'DispatchGroup' in scope
60 | group.enter()
61 |
/host/spi-builder-workspace/Sources/CommandExecutor.swift:62:20: error: cannot find 'Process' in scope
60 | group.enter()
61 |
62 | let task = Process()
| `- error: cannot find 'Process' in scope
63 | task.executableURL = URL(fileURLWithPath: "/usr/bin/env")
64 | task.arguments = commandParts
/host/spi-builder-workspace/Sources/CommandExecutor.swift:71:37: error: cannot infer type of closure parameter '_' without a type annotation
69 | task.standardOutput = stdoutPipe
70 | task.standardError = stderrPipe
71 | task.terminationHandler = { _ in group.leave() }
| `- error: cannot infer type of closure parameter '_' without a type annotation
72 | do {
73 | try task.run()
/host/spi-builder-workspace/Sources/CommandExecutor.swift:71:48: error: cannot infer return type for closure with multiple statements; add explicit type to disambiguate
69 | task.standardOutput = stdoutPipe
70 | task.standardError = stderrPipe
71 | task.terminationHandler = { _ in group.leave() }
| `- error: cannot infer return type for closure with multiple statements; add explicit type to disambiguate
72 | do {
73 | try task.run()
/host/spi-builder-workspace/Sources/CommandExecutor.swift:106:9: error: cannot find 'posix_spawn_file_actions_init' in scope
104 |
105 | var childFDActions = STDLIB._make_posix_spawn_file_actions_t()
106 | posix_spawn_file_actions_init(&childFDActions)
| `- error: cannot find 'posix_spawn_file_actions_init' in scope
107 | posix_spawn_file_actions_adddup2(&childFDActions, outputPipe[1], 1)
108 | posix_spawn_file_actions_adddup2(&childFDActions, outputPipe[1], 2)
/host/spi-builder-workspace/Sources/CommandExecutor.swift:107:9: error: cannot find 'posix_spawn_file_actions_adddup2' in scope
105 | var childFDActions = STDLIB._make_posix_spawn_file_actions_t()
106 | posix_spawn_file_actions_init(&childFDActions)
107 | posix_spawn_file_actions_adddup2(&childFDActions, outputPipe[1], 1)
| `- error: cannot find 'posix_spawn_file_actions_adddup2' in scope
108 | posix_spawn_file_actions_adddup2(&childFDActions, outputPipe[1], 2)
109 | posix_spawn_file_actions_addclose(&childFDActions, outputPipe[0])
/host/spi-builder-workspace/Sources/CommandExecutor.swift:108:9: error: cannot find 'posix_spawn_file_actions_adddup2' in scope
106 | posix_spawn_file_actions_init(&childFDActions)
107 | posix_spawn_file_actions_adddup2(&childFDActions, outputPipe[1], 1)
108 | posix_spawn_file_actions_adddup2(&childFDActions, outputPipe[1], 2)
| `- error: cannot find 'posix_spawn_file_actions_adddup2' in scope
109 | posix_spawn_file_actions_addclose(&childFDActions, outputPipe[0])
110 | posix_spawn_file_actions_addclose(&childFDActions, outputPipe[1])
/host/spi-builder-workspace/Sources/CommandExecutor.swift:109:9: error: cannot find 'posix_spawn_file_actions_addclose' in scope
107 | posix_spawn_file_actions_adddup2(&childFDActions, outputPipe[1], 1)
108 | posix_spawn_file_actions_adddup2(&childFDActions, outputPipe[1], 2)
109 | posix_spawn_file_actions_addclose(&childFDActions, outputPipe[0])
| `- error: cannot find 'posix_spawn_file_actions_addclose' in scope
110 | posix_spawn_file_actions_addclose(&childFDActions, outputPipe[1])
111 |
/host/spi-builder-workspace/Sources/CommandExecutor.swift:110:9: error: cannot find 'posix_spawn_file_actions_addclose' in scope
108 | posix_spawn_file_actions_adddup2(&childFDActions, outputPipe[1], 2)
109 | posix_spawn_file_actions_addclose(&childFDActions, outputPipe[0])
110 | posix_spawn_file_actions_addclose(&childFDActions, outputPipe[1])
| `- error: cannot find 'posix_spawn_file_actions_addclose' in scope
111 |
112 | var pid: pid_t = 0
/host/spi-builder-workspace/Sources/CommandExecutor.swift:114:22: error: cannot find 'posix_spawn' in scope
112 | var pid: pid_t = 0
113 | let argvPointer: UnsafePointer<CChar>! = UnsafePointer(argv[0])
114 | let result = posix_spawn(&pid, argvPointer, &childFDActions, nil, argv + [nil], ActualTaskExecutor.environment)
| `- error: cannot find 'posix_spawn' in scope
115 |
116 | return (Int(result), "", "")
/host/spi-builder-workspace/Sources/CommandExecutor.swift:114:70: error: 'nil' requires a contextual type
112 | var pid: pid_t = 0
113 | let argvPointer: UnsafePointer<CChar>! = UnsafePointer(argv[0])
114 | let result = posix_spawn(&pid, argvPointer, &childFDActions, nil, argv + [nil], ActualTaskExecutor.environment)
| `- error: 'nil' requires a contextual type
115 |
116 | return (Int(result), "", "")
/host/spi-builder-workspace/Sources/CommandExecutor.swift:137:13: error: cannot find 'posix_spawn_file_actions_addclose' in scope
135 | defer {
136 | for case let arg? in argv { free(arg) }
137 | posix_spawn_file_actions_addclose(&childFDActions, outputPipe)
| `- error: cannot find 'posix_spawn_file_actions_addclose' in scope
138 | posix_spawn_file_actions_addclose(&childFDActions, outerrPipe)
139 | posix_spawn_file_actions_destroy(&childFDActions)
/host/spi-builder-workspace/Sources/CommandExecutor.swift:138:13: error: cannot find 'posix_spawn_file_actions_addclose' in scope
136 | for case let arg? in argv { free(arg) }
137 | posix_spawn_file_actions_addclose(&childFDActions, outputPipe)
138 | posix_spawn_file_actions_addclose(&childFDActions, outerrPipe)
| `- error: cannot find 'posix_spawn_file_actions_addclose' in scope
139 | posix_spawn_file_actions_destroy(&childFDActions)
140 | }
/host/spi-builder-workspace/Sources/CommandExecutor.swift:139:13: error: cannot find 'posix_spawn_file_actions_destroy' in scope
137 | posix_spawn_file_actions_addclose(&childFDActions, outputPipe)
138 | posix_spawn_file_actions_addclose(&childFDActions, outerrPipe)
139 | posix_spawn_file_actions_destroy(&childFDActions)
| `- error: cannot find 'posix_spawn_file_actions_destroy' in scope
140 | }
141 |
/host/spi-builder-workspace/Sources/CommandExecutor.swift:142:9: error: cannot find 'posix_spawn_file_actions_init' in scope
140 | }
141 |
142 | posix_spawn_file_actions_init(&childFDActions)
| `- error: cannot find 'posix_spawn_file_actions_init' in scope
143 | posix_spawn_file_actions_addopen(&childFDActions, outputPipe, stdoutLogPath, O_CREAT | O_TRUNC | O_WRONLY, ~0)
144 | posix_spawn_file_actions_addopen(&childFDActions, outerrPipe, stderrLogPath, O_CREAT | O_TRUNC | O_WRONLY, ~0)
/host/spi-builder-workspace/Sources/CommandExecutor.swift:143:9: error: cannot find 'posix_spawn_file_actions_addopen' in scope
141 |
142 | posix_spawn_file_actions_init(&childFDActions)
143 | posix_spawn_file_actions_addopen(&childFDActions, outputPipe, stdoutLogPath, O_CREAT | O_TRUNC | O_WRONLY, ~0)
| `- error: cannot find 'posix_spawn_file_actions_addopen' in scope
144 | posix_spawn_file_actions_addopen(&childFDActions, outerrPipe, stderrLogPath, O_CREAT | O_TRUNC | O_WRONLY, ~0)
145 | posix_spawn_file_actions_adddup2(&childFDActions, outputPipe, 1)
/host/spi-builder-workspace/Sources/CommandExecutor.swift:143:86: error: cannot find 'O_CREAT' in scope
141 |
142 | posix_spawn_file_actions_init(&childFDActions)
143 | posix_spawn_file_actions_addopen(&childFDActions, outputPipe, stdoutLogPath, O_CREAT | O_TRUNC | O_WRONLY, ~0)
| `- error: cannot find 'O_CREAT' in scope
144 | posix_spawn_file_actions_addopen(&childFDActions, outerrPipe, stderrLogPath, O_CREAT | O_TRUNC | O_WRONLY, ~0)
145 | posix_spawn_file_actions_adddup2(&childFDActions, outputPipe, 1)
/root/.swiftpm/swift-sdks/swift-wasm-6.1-RELEASE-wasm32-unknown-wasi.artifactbundle/6.1-RELEASE-wasm32-unknown-wasi/wasm32-unknown-wasi/WASI.sdk/include/wasm32-wasi/__header_fcntl.h:13:9: note: macro 'O_CREAT' unavailable: structure not supported
11 | #define O_RSYNC __WASI_FDFLAGS_RSYNC
12 | #define O_SYNC __WASI_FDFLAGS_SYNC
13 | #define O_CREAT (__WASI_OFLAGS_CREAT << 12)
| `- note: macro 'O_CREAT' unavailable: structure not supported
14 | #define O_DIRECTORY (__WASI_OFLAGS_DIRECTORY << 12)
15 | #define O_EXCL (__WASI_OFLAGS_EXCL << 12)
/host/spi-builder-workspace/Sources/CommandExecutor.swift:143:96: error: cannot find 'O_TRUNC' in scope
141 |
142 | posix_spawn_file_actions_init(&childFDActions)
143 | posix_spawn_file_actions_addopen(&childFDActions, outputPipe, stdoutLogPath, O_CREAT | O_TRUNC | O_WRONLY, ~0)
| `- error: cannot find 'O_TRUNC' in scope
144 | posix_spawn_file_actions_addopen(&childFDActions, outerrPipe, stderrLogPath, O_CREAT | O_TRUNC | O_WRONLY, ~0)
145 | posix_spawn_file_actions_adddup2(&childFDActions, outputPipe, 1)
/root/.swiftpm/swift-sdks/swift-wasm-6.1-RELEASE-wasm32-unknown-wasi.artifactbundle/6.1-RELEASE-wasm32-unknown-wasi/wasm32-unknown-wasi/WASI.sdk/include/wasm32-wasi/__header_fcntl.h:16:9: note: macro 'O_TRUNC' unavailable: structure not supported
14 | #define O_DIRECTORY (__WASI_OFLAGS_DIRECTORY << 12)
15 | #define O_EXCL (__WASI_OFLAGS_EXCL << 12)
16 | #define O_TRUNC (__WASI_OFLAGS_TRUNC << 12)
| `- note: macro 'O_TRUNC' unavailable: structure not supported
17 |
18 | #define O_NOFOLLOW (0x01000000)
/host/spi-builder-workspace/Sources/CommandExecutor.swift:143:104: error: binary operator '|' cannot be applied to operands of type 'UInt8' and 'Int32'
141 |
142 | posix_spawn_file_actions_init(&childFDActions)
143 | posix_spawn_file_actions_addopen(&childFDActions, outputPipe, stdoutLogPath, O_CREAT | O_TRUNC | O_WRONLY, ~0)
| |- error: binary operator '|' cannot be applied to operands of type 'UInt8' and 'Int32'
| `- note: overloads for '|' exist with these partially matching parameter lists: (Int32, Int32), (UInt8, UInt8)
144 | posix_spawn_file_actions_addopen(&childFDActions, outerrPipe, stderrLogPath, O_CREAT | O_TRUNC | O_WRONLY, ~0)
145 | posix_spawn_file_actions_adddup2(&childFDActions, outputPipe, 1)
/host/spi-builder-workspace/Sources/CommandExecutor.swift:144:9: error: cannot find 'posix_spawn_file_actions_addopen' in scope
142 | posix_spawn_file_actions_init(&childFDActions)
143 | posix_spawn_file_actions_addopen(&childFDActions, outputPipe, stdoutLogPath, O_CREAT | O_TRUNC | O_WRONLY, ~0)
144 | posix_spawn_file_actions_addopen(&childFDActions, outerrPipe, stderrLogPath, O_CREAT | O_TRUNC | O_WRONLY, ~0)
| `- error: cannot find 'posix_spawn_file_actions_addopen' in scope
145 | posix_spawn_file_actions_adddup2(&childFDActions, outputPipe, 1)
146 | posix_spawn_file_actions_adddup2(&childFDActions, outerrPipe, 2)
/host/spi-builder-workspace/Sources/CommandExecutor.swift:144:86: error: cannot find 'O_CREAT' in scope
142 | posix_spawn_file_actions_init(&childFDActions)
143 | posix_spawn_file_actions_addopen(&childFDActions, outputPipe, stdoutLogPath, O_CREAT | O_TRUNC | O_WRONLY, ~0)
144 | posix_spawn_file_actions_addopen(&childFDActions, outerrPipe, stderrLogPath, O_CREAT | O_TRUNC | O_WRONLY, ~0)
| `- error: cannot find 'O_CREAT' in scope
145 | posix_spawn_file_actions_adddup2(&childFDActions, outputPipe, 1)
146 | posix_spawn_file_actions_adddup2(&childFDActions, outerrPipe, 2)
/root/.swiftpm/swift-sdks/swift-wasm-6.1-RELEASE-wasm32-unknown-wasi.artifactbundle/6.1-RELEASE-wasm32-unknown-wasi/wasm32-unknown-wasi/WASI.sdk/include/wasm32-wasi/__header_fcntl.h:13:9: note: macro 'O_CREAT' unavailable: structure not supported
11 | #define O_RSYNC __WASI_FDFLAGS_RSYNC
12 | #define O_SYNC __WASI_FDFLAGS_SYNC
13 | #define O_CREAT (__WASI_OFLAGS_CREAT << 12)
| `- note: macro 'O_CREAT' unavailable: structure not supported
14 | #define O_DIRECTORY (__WASI_OFLAGS_DIRECTORY << 12)
15 | #define O_EXCL (__WASI_OFLAGS_EXCL << 12)
/host/spi-builder-workspace/Sources/CommandExecutor.swift:144:96: error: cannot find 'O_TRUNC' in scope
142 | posix_spawn_file_actions_init(&childFDActions)
143 | posix_spawn_file_actions_addopen(&childFDActions, outputPipe, stdoutLogPath, O_CREAT | O_TRUNC | O_WRONLY, ~0)
144 | posix_spawn_file_actions_addopen(&childFDActions, outerrPipe, stderrLogPath, O_CREAT | O_TRUNC | O_WRONLY, ~0)
| `- error: cannot find 'O_TRUNC' in scope
145 | posix_spawn_file_actions_adddup2(&childFDActions, outputPipe, 1)
146 | posix_spawn_file_actions_adddup2(&childFDActions, outerrPipe, 2)
/root/.swiftpm/swift-sdks/swift-wasm-6.1-RELEASE-wasm32-unknown-wasi.artifactbundle/6.1-RELEASE-wasm32-unknown-wasi/wasm32-unknown-wasi/WASI.sdk/include/wasm32-wasi/__header_fcntl.h:16:9: note: macro 'O_TRUNC' unavailable: structure not supported
14 | #define O_DIRECTORY (__WASI_OFLAGS_DIRECTORY << 12)
15 | #define O_EXCL (__WASI_OFLAGS_EXCL << 12)
16 | #define O_TRUNC (__WASI_OFLAGS_TRUNC << 12)
| `- note: macro 'O_TRUNC' unavailable: structure not supported
17 |
18 | #define O_NOFOLLOW (0x01000000)
/host/spi-builder-workspace/Sources/CommandExecutor.swift:144:104: error: binary operator '|' cannot be applied to operands of type 'UInt8' and 'Int32'
142 | posix_spawn_file_actions_init(&childFDActions)
143 | posix_spawn_file_actions_addopen(&childFDActions, outputPipe, stdoutLogPath, O_CREAT | O_TRUNC | O_WRONLY, ~0)
144 | posix_spawn_file_actions_addopen(&childFDActions, outerrPipe, stderrLogPath, O_CREAT | O_TRUNC | O_WRONLY, ~0)
| |- error: binary operator '|' cannot be applied to operands of type 'UInt8' and 'Int32'
| `- note: overloads for '|' exist with these partially matching parameter lists: (Int32, Int32), (UInt8, UInt8)
145 | posix_spawn_file_actions_adddup2(&childFDActions, outputPipe, 1)
146 | posix_spawn_file_actions_adddup2(&childFDActions, outerrPipe, 2)
/host/spi-builder-workspace/Sources/CommandExecutor.swift:145:9: error: cannot find 'posix_spawn_file_actions_adddup2' in scope
143 | posix_spawn_file_actions_addopen(&childFDActions, outputPipe, stdoutLogPath, O_CREAT | O_TRUNC | O_WRONLY, ~0)
144 | posix_spawn_file_actions_addopen(&childFDActions, outerrPipe, stderrLogPath, O_CREAT | O_TRUNC | O_WRONLY, ~0)
145 | posix_spawn_file_actions_adddup2(&childFDActions, outputPipe, 1)
| `- error: cannot find 'posix_spawn_file_actions_adddup2' in scope
146 | posix_spawn_file_actions_adddup2(&childFDActions, outerrPipe, 2)
147 |
/host/spi-builder-workspace/Sources/CommandExecutor.swift:146:9: error: cannot find 'posix_spawn_file_actions_adddup2' in scope
144 | posix_spawn_file_actions_addopen(&childFDActions, outerrPipe, stderrLogPath, O_CREAT | O_TRUNC | O_WRONLY, ~0)
145 | posix_spawn_file_actions_adddup2(&childFDActions, outputPipe, 1)
146 | posix_spawn_file_actions_adddup2(&childFDActions, outerrPipe, 2)
| `- error: cannot find 'posix_spawn_file_actions_adddup2' in scope
147 |
148 | let argvPointer: UnsafePointer<CChar>! = UnsafePointer(argv[0])
/host/spi-builder-workspace/Sources/CommandExecutor.swift:149:22: error: cannot find 'posix_spawn' in scope
147 |
148 | let argvPointer: UnsafePointer<CChar>! = UnsafePointer(argv[0])
149 | var result = posix_spawn(&pid, argvPointer, &childFDActions, nil, argv + [nil], ActualTaskExecutor.environment)
| `- error: cannot find 'posix_spawn' in scope
150 | guard result == 0 else { return (Int(result), "", "") }
151 | waitpid(pid, &result, 0)
/host/spi-builder-workspace/Sources/CommandExecutor.swift:149:70: error: 'nil' requires a contextual type
147 |
148 | let argvPointer: UnsafePointer<CChar>! = UnsafePointer(argv[0])
149 | var result = posix_spawn(&pid, argvPointer, &childFDActions, nil, argv + [nil], ActualTaskExecutor.environment)
| `- error: 'nil' requires a contextual type
150 | guard result == 0 else { return (Int(result), "", "") }
151 | waitpid(pid, &result, 0)
/host/spi-builder-workspace/Sources/CommandExecutor.swift:151:9: error: cannot find 'waitpid' in scope
149 | var result = posix_spawn(&pid, argvPointer, &childFDActions, nil, argv + [nil], ActualTaskExecutor.environment)
150 | guard result == 0 else { return (Int(result), "", "") }
151 | waitpid(pid, &result, 0)
| `- error: cannot find 'waitpid' in scope
152 |
153 | let (stdout, stderr) = read(outputPath: stdoutLogPath, outerrPath: stderrLogPath)
/host/spi-builder-workspace/Sources/CommandExecutor.swift:177:29: warning: result of call to 'createFile(atPath:contents:attributes:)' is unused
175 |
176 | private func write(atPath path: String, content: String) {
177 | FileManager.default.createFile(atPath: path, contents: content.data(using: .utf8), attributes: nil)
| `- warning: result of call to 'createFile(atPath:contents:attributes:)' is unused
178 | }
179 | }
/host/spi-builder-workspace/Sources/ProcessInfo.swift:37:16: warning: static property 'internalProcessInfo' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
35 |
36 | enum ProcessInfo {
37 | static var internalProcessInfo: ProcessInfoType = Foundation.ProcessInfo.processInfo
| |- warning: static property 'internalProcessInfo' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'internalProcessInfo' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'internalProcessInfo' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
38 |
39 | static var arguments: [String] {
[15/30] Compiling Swiftline Env.swift
/host/spi-builder-workspace/Sources/CommandExecutor.swift:9:45: error: cannot find type 'posix_spawn_file_actions_t' in scope
7 | typealias _posix_spawn_file_actions_t = posix_spawn_file_actions_t
8 | #else
9 | typealias _posix_spawn_file_actions_t = posix_spawn_file_actions_t?
| `- error: cannot find type 'posix_spawn_file_actions_t' in scope
10 | #endif
11 |
/host/spi-builder-workspace/Sources/CommandExecutor.swift:25:16: warning: static property 'currentTaskExecutor' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
23 |
24 | class CommandExecutor {
25 | static var currentTaskExecutor: TaskExecutor = ActualTaskExecutor()
| |- warning: static property 'currentTaskExecutor' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'currentTaskExecutor' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'currentTaskExecutor' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
26 |
27 | class func execute(_ commandParts: [String]) -> ExecutorReturnValue {
/host/spi-builder-workspace/Sources/CommandExecutor.swift:59:21: error: cannot find 'DispatchGroup' in scope
57 |
58 | func execute(_ commandParts: [String]) -> ExecutorReturnValue {
59 | let group = DispatchGroup()
| `- error: cannot find 'DispatchGroup' in scope
60 | group.enter()
61 |
/host/spi-builder-workspace/Sources/CommandExecutor.swift:62:20: error: cannot find 'Process' in scope
60 | group.enter()
61 |
62 | let task = Process()
| `- error: cannot find 'Process' in scope
63 | task.executableURL = URL(fileURLWithPath: "/usr/bin/env")
64 | task.arguments = commandParts
/host/spi-builder-workspace/Sources/CommandExecutor.swift:71:37: error: cannot infer type of closure parameter '_' without a type annotation
69 | task.standardOutput = stdoutPipe
70 | task.standardError = stderrPipe
71 | task.terminationHandler = { _ in group.leave() }
| `- error: cannot infer type of closure parameter '_' without a type annotation
72 | do {
73 | try task.run()
/host/spi-builder-workspace/Sources/CommandExecutor.swift:71:48: error: cannot infer return type for closure with multiple statements; add explicit type to disambiguate
69 | task.standardOutput = stdoutPipe
70 | task.standardError = stderrPipe
71 | task.terminationHandler = { _ in group.leave() }
| `- error: cannot infer return type for closure with multiple statements; add explicit type to disambiguate
72 | do {
73 | try task.run()
/host/spi-builder-workspace/Sources/CommandExecutor.swift:106:9: error: cannot find 'posix_spawn_file_actions_init' in scope
104 |
105 | var childFDActions = STDLIB._make_posix_spawn_file_actions_t()
106 | posix_spawn_file_actions_init(&childFDActions)
| `- error: cannot find 'posix_spawn_file_actions_init' in scope
107 | posix_spawn_file_actions_adddup2(&childFDActions, outputPipe[1], 1)
108 | posix_spawn_file_actions_adddup2(&childFDActions, outputPipe[1], 2)
/host/spi-builder-workspace/Sources/CommandExecutor.swift:107:9: error: cannot find 'posix_spawn_file_actions_adddup2' in scope
105 | var childFDActions = STDLIB._make_posix_spawn_file_actions_t()
106 | posix_spawn_file_actions_init(&childFDActions)
107 | posix_spawn_file_actions_adddup2(&childFDActions, outputPipe[1], 1)
| `- error: cannot find 'posix_spawn_file_actions_adddup2' in scope
108 | posix_spawn_file_actions_adddup2(&childFDActions, outputPipe[1], 2)
109 | posix_spawn_file_actions_addclose(&childFDActions, outputPipe[0])
/host/spi-builder-workspace/Sources/CommandExecutor.swift:108:9: error: cannot find 'posix_spawn_file_actions_adddup2' in scope
106 | posix_spawn_file_actions_init(&childFDActions)
107 | posix_spawn_file_actions_adddup2(&childFDActions, outputPipe[1], 1)
108 | posix_spawn_file_actions_adddup2(&childFDActions, outputPipe[1], 2)
| `- error: cannot find 'posix_spawn_file_actions_adddup2' in scope
109 | posix_spawn_file_actions_addclose(&childFDActions, outputPipe[0])
110 | posix_spawn_file_actions_addclose(&childFDActions, outputPipe[1])
/host/spi-builder-workspace/Sources/CommandExecutor.swift:109:9: error: cannot find 'posix_spawn_file_actions_addclose' in scope
107 | posix_spawn_file_actions_adddup2(&childFDActions, outputPipe[1], 1)
108 | posix_spawn_file_actions_adddup2(&childFDActions, outputPipe[1], 2)
109 | posix_spawn_file_actions_addclose(&childFDActions, outputPipe[0])
| `- error: cannot find 'posix_spawn_file_actions_addclose' in scope
110 | posix_spawn_file_actions_addclose(&childFDActions, outputPipe[1])
111 |
/host/spi-builder-workspace/Sources/CommandExecutor.swift:110:9: error: cannot find 'posix_spawn_file_actions_addclose' in scope
108 | posix_spawn_file_actions_adddup2(&childFDActions, outputPipe[1], 2)
109 | posix_spawn_file_actions_addclose(&childFDActions, outputPipe[0])
110 | posix_spawn_file_actions_addclose(&childFDActions, outputPipe[1])
| `- error: cannot find 'posix_spawn_file_actions_addclose' in scope
111 |
112 | var pid: pid_t = 0
/host/spi-builder-workspace/Sources/CommandExecutor.swift:114:22: error: cannot find 'posix_spawn' in scope
112 | var pid: pid_t = 0
113 | let argvPointer: UnsafePointer<CChar>! = UnsafePointer(argv[0])
114 | let result = posix_spawn(&pid, argvPointer, &childFDActions, nil, argv + [nil], ActualTaskExecutor.environment)
| `- error: cannot find 'posix_spawn' in scope
115 |
116 | return (Int(result), "", "")
/host/spi-builder-workspace/Sources/CommandExecutor.swift:114:70: error: 'nil' requires a contextual type
112 | var pid: pid_t = 0
113 | let argvPointer: UnsafePointer<CChar>! = UnsafePointer(argv[0])
114 | let result = posix_spawn(&pid, argvPointer, &childFDActions, nil, argv + [nil], ActualTaskExecutor.environment)
| `- error: 'nil' requires a contextual type
115 |
116 | return (Int(result), "", "")
/host/spi-builder-workspace/Sources/CommandExecutor.swift:137:13: error: cannot find 'posix_spawn_file_actions_addclose' in scope
135 | defer {
136 | for case let arg? in argv { free(arg) }
137 | posix_spawn_file_actions_addclose(&childFDActions, outputPipe)
| `- error: cannot find 'posix_spawn_file_actions_addclose' in scope
138 | posix_spawn_file_actions_addclose(&childFDActions, outerrPipe)
139 | posix_spawn_file_actions_destroy(&childFDActions)
/host/spi-builder-workspace/Sources/CommandExecutor.swift:138:13: error: cannot find 'posix_spawn_file_actions_addclose' in scope
136 | for case let arg? in argv { free(arg) }
137 | posix_spawn_file_actions_addclose(&childFDActions, outputPipe)
138 | posix_spawn_file_actions_addclose(&childFDActions, outerrPipe)
| `- error: cannot find 'posix_spawn_file_actions_addclose' in scope
139 | posix_spawn_file_actions_destroy(&childFDActions)
140 | }
/host/spi-builder-workspace/Sources/CommandExecutor.swift:139:13: error: cannot find 'posix_spawn_file_actions_destroy' in scope
137 | posix_spawn_file_actions_addclose(&childFDActions, outputPipe)
138 | posix_spawn_file_actions_addclose(&childFDActions, outerrPipe)
139 | posix_spawn_file_actions_destroy(&childFDActions)
| `- error: cannot find 'posix_spawn_file_actions_destroy' in scope
140 | }
141 |
/host/spi-builder-workspace/Sources/CommandExecutor.swift:142:9: error: cannot find 'posix_spawn_file_actions_init' in scope
140 | }
141 |
142 | posix_spawn_file_actions_init(&childFDActions)
| `- error: cannot find 'posix_spawn_file_actions_init' in scope
143 | posix_spawn_file_actions_addopen(&childFDActions, outputPipe, stdoutLogPath, O_CREAT | O_TRUNC | O_WRONLY, ~0)
144 | posix_spawn_file_actions_addopen(&childFDActions, outerrPipe, stderrLogPath, O_CREAT | O_TRUNC | O_WRONLY, ~0)
/host/spi-builder-workspace/Sources/CommandExecutor.swift:143:9: error: cannot find 'posix_spawn_file_actions_addopen' in scope
141 |
142 | posix_spawn_file_actions_init(&childFDActions)
143 | posix_spawn_file_actions_addopen(&childFDActions, outputPipe, stdoutLogPath, O_CREAT | O_TRUNC | O_WRONLY, ~0)
| `- error: cannot find 'posix_spawn_file_actions_addopen' in scope
144 | posix_spawn_file_actions_addopen(&childFDActions, outerrPipe, stderrLogPath, O_CREAT | O_TRUNC | O_WRONLY, ~0)
145 | posix_spawn_file_actions_adddup2(&childFDActions, outputPipe, 1)
/host/spi-builder-workspace/Sources/CommandExecutor.swift:143:86: error: cannot find 'O_CREAT' in scope
141 |
142 | posix_spawn_file_actions_init(&childFDActions)
143 | posix_spawn_file_actions_addopen(&childFDActions, outputPipe, stdoutLogPath, O_CREAT | O_TRUNC | O_WRONLY, ~0)
| `- error: cannot find 'O_CREAT' in scope
144 | posix_spawn_file_actions_addopen(&childFDActions, outerrPipe, stderrLogPath, O_CREAT | O_TRUNC | O_WRONLY, ~0)
145 | posix_spawn_file_actions_adddup2(&childFDActions, outputPipe, 1)
/root/.swiftpm/swift-sdks/swift-wasm-6.1-RELEASE-wasm32-unknown-wasi.artifactbundle/6.1-RELEASE-wasm32-unknown-wasi/wasm32-unknown-wasi/WASI.sdk/include/wasm32-wasi/__header_fcntl.h:13:9: note: macro 'O_CREAT' unavailable: structure not supported
11 | #define O_RSYNC __WASI_FDFLAGS_RSYNC
12 | #define O_SYNC __WASI_FDFLAGS_SYNC
13 | #define O_CREAT (__WASI_OFLAGS_CREAT << 12)
| `- note: macro 'O_CREAT' unavailable: structure not supported
14 | #define O_DIRECTORY (__WASI_OFLAGS_DIRECTORY << 12)
15 | #define O_EXCL (__WASI_OFLAGS_EXCL << 12)
/host/spi-builder-workspace/Sources/CommandExecutor.swift:143:96: error: cannot find 'O_TRUNC' in scope
141 |
142 | posix_spawn_file_actions_init(&childFDActions)
143 | posix_spawn_file_actions_addopen(&childFDActions, outputPipe, stdoutLogPath, O_CREAT | O_TRUNC | O_WRONLY, ~0)
| `- error: cannot find 'O_TRUNC' in scope
144 | posix_spawn_file_actions_addopen(&childFDActions, outerrPipe, stderrLogPath, O_CREAT | O_TRUNC | O_WRONLY, ~0)
145 | posix_spawn_file_actions_adddup2(&childFDActions, outputPipe, 1)
/root/.swiftpm/swift-sdks/swift-wasm-6.1-RELEASE-wasm32-unknown-wasi.artifactbundle/6.1-RELEASE-wasm32-unknown-wasi/wasm32-unknown-wasi/WASI.sdk/include/wasm32-wasi/__header_fcntl.h:16:9: note: macro 'O_TRUNC' unavailable: structure not supported
14 | #define O_DIRECTORY (__WASI_OFLAGS_DIRECTORY << 12)
15 | #define O_EXCL (__WASI_OFLAGS_EXCL << 12)
16 | #define O_TRUNC (__WASI_OFLAGS_TRUNC << 12)
| `- note: macro 'O_TRUNC' unavailable: structure not supported
17 |
18 | #define O_NOFOLLOW (0x01000000)
/host/spi-builder-workspace/Sources/CommandExecutor.swift:143:104: error: binary operator '|' cannot be applied to operands of type 'UInt8' and 'Int32'
141 |
142 | posix_spawn_file_actions_init(&childFDActions)
143 | posix_spawn_file_actions_addopen(&childFDActions, outputPipe, stdoutLogPath, O_CREAT | O_TRUNC | O_WRONLY, ~0)
| |- error: binary operator '|' cannot be applied to operands of type 'UInt8' and 'Int32'
| `- note: overloads for '|' exist with these partially matching parameter lists: (Int32, Int32), (UInt8, UInt8)
144 | posix_spawn_file_actions_addopen(&childFDActions, outerrPipe, stderrLogPath, O_CREAT | O_TRUNC | O_WRONLY, ~0)
145 | posix_spawn_file_actions_adddup2(&childFDActions, outputPipe, 1)
/host/spi-builder-workspace/Sources/CommandExecutor.swift:144:9: error: cannot find 'posix_spawn_file_actions_addopen' in scope
142 | posix_spawn_file_actions_init(&childFDActions)
143 | posix_spawn_file_actions_addopen(&childFDActions, outputPipe, stdoutLogPath, O_CREAT | O_TRUNC | O_WRONLY, ~0)
144 | posix_spawn_file_actions_addopen(&childFDActions, outerrPipe, stderrLogPath, O_CREAT | O_TRUNC | O_WRONLY, ~0)
| `- error: cannot find 'posix_spawn_file_actions_addopen' in scope
145 | posix_spawn_file_actions_adddup2(&childFDActions, outputPipe, 1)
146 | posix_spawn_file_actions_adddup2(&childFDActions, outerrPipe, 2)
/host/spi-builder-workspace/Sources/CommandExecutor.swift:144:86: error: cannot find 'O_CREAT' in scope
142 | posix_spawn_file_actions_init(&childFDActions)
143 | posix_spawn_file_actions_addopen(&childFDActions, outputPipe, stdoutLogPath, O_CREAT | O_TRUNC | O_WRONLY, ~0)
144 | posix_spawn_file_actions_addopen(&childFDActions, outerrPipe, stderrLogPath, O_CREAT | O_TRUNC | O_WRONLY, ~0)
| `- error: cannot find 'O_CREAT' in scope
145 | posix_spawn_file_actions_adddup2(&childFDActions, outputPipe, 1)
146 | posix_spawn_file_actions_adddup2(&childFDActions, outerrPipe, 2)
/root/.swiftpm/swift-sdks/swift-wasm-6.1-RELEASE-wasm32-unknown-wasi.artifactbundle/6.1-RELEASE-wasm32-unknown-wasi/wasm32-unknown-wasi/WASI.sdk/include/wasm32-wasi/__header_fcntl.h:13:9: note: macro 'O_CREAT' unavailable: structure not supported
11 | #define O_RSYNC __WASI_FDFLAGS_RSYNC
12 | #define O_SYNC __WASI_FDFLAGS_SYNC
13 | #define O_CREAT (__WASI_OFLAGS_CREAT << 12)
| `- note: macro 'O_CREAT' unavailable: structure not supported
14 | #define O_DIRECTORY (__WASI_OFLAGS_DIRECTORY << 12)
15 | #define O_EXCL (__WASI_OFLAGS_EXCL << 12)
/host/spi-builder-workspace/Sources/CommandExecutor.swift:144:96: error: cannot find 'O_TRUNC' in scope
142 | posix_spawn_file_actions_init(&childFDActions)
143 | posix_spawn_file_actions_addopen(&childFDActions, outputPipe, stdoutLogPath, O_CREAT | O_TRUNC | O_WRONLY, ~0)
144 | posix_spawn_file_actions_addopen(&childFDActions, outerrPipe, stderrLogPath, O_CREAT | O_TRUNC | O_WRONLY, ~0)
| `- error: cannot find 'O_TRUNC' in scope
145 | posix_spawn_file_actions_adddup2(&childFDActions, outputPipe, 1)
146 | posix_spawn_file_actions_adddup2(&childFDActions, outerrPipe, 2)
/root/.swiftpm/swift-sdks/swift-wasm-6.1-RELEASE-wasm32-unknown-wasi.artifactbundle/6.1-RELEASE-wasm32-unknown-wasi/wasm32-unknown-wasi/WASI.sdk/include/wasm32-wasi/__header_fcntl.h:16:9: note: macro 'O_TRUNC' unavailable: structure not supported
14 | #define O_DIRECTORY (__WASI_OFLAGS_DIRECTORY << 12)
15 | #define O_EXCL (__WASI_OFLAGS_EXCL << 12)
16 | #define O_TRUNC (__WASI_OFLAGS_TRUNC << 12)
| `- note: macro 'O_TRUNC' unavailable: structure not supported
17 |
18 | #define O_NOFOLLOW (0x01000000)
/host/spi-builder-workspace/Sources/CommandExecutor.swift:144:104: error: binary operator '|' cannot be applied to operands of type 'UInt8' and 'Int32'
142 | posix_spawn_file_actions_init(&childFDActions)
143 | posix_spawn_file_actions_addopen(&childFDActions, outputPipe, stdoutLogPath, O_CREAT | O_TRUNC | O_WRONLY, ~0)
144 | posix_spawn_file_actions_addopen(&childFDActions, outerrPipe, stderrLogPath, O_CREAT | O_TRUNC | O_WRONLY, ~0)
| |- error: binary operator '|' cannot be applied to operands of type 'UInt8' and 'Int32'
| `- note: overloads for '|' exist with these partially matching parameter lists: (Int32, Int32), (UInt8, UInt8)
145 | posix_spawn_file_actions_adddup2(&childFDActions, outputPipe, 1)
146 | posix_spawn_file_actions_adddup2(&childFDActions, outerrPipe, 2)
/host/spi-builder-workspace/Sources/CommandExecutor.swift:145:9: error: cannot find 'posix_spawn_file_actions_adddup2' in scope
143 | posix_spawn_file_actions_addopen(&childFDActions, outputPipe, stdoutLogPath, O_CREAT | O_TRUNC | O_WRONLY, ~0)
144 | posix_spawn_file_actions_addopen(&childFDActions, outerrPipe, stderrLogPath, O_CREAT | O_TRUNC | O_WRONLY, ~0)
145 | posix_spawn_file_actions_adddup2(&childFDActions, outputPipe, 1)
| `- error: cannot find 'posix_spawn_file_actions_adddup2' in scope
146 | posix_spawn_file_actions_adddup2(&childFDActions, outerrPipe, 2)
147 |
/host/spi-builder-workspace/Sources/CommandExecutor.swift:146:9: error: cannot find 'posix_spawn_file_actions_adddup2' in scope
144 | posix_spawn_file_actions_addopen(&childFDActions, outerrPipe, stderrLogPath, O_CREAT | O_TRUNC | O_WRONLY, ~0)
145 | posix_spawn_file_actions_adddup2(&childFDActions, outputPipe, 1)
146 | posix_spawn_file_actions_adddup2(&childFDActions, outerrPipe, 2)
| `- error: cannot find 'posix_spawn_file_actions_adddup2' in scope
147 |
148 | let argvPointer: UnsafePointer<CChar>! = UnsafePointer(argv[0])
/host/spi-builder-workspace/Sources/CommandExecutor.swift:149:22: error: cannot find 'posix_spawn' in scope
147 |
148 | let argvPointer: UnsafePointer<CChar>! = UnsafePointer(argv[0])
149 | var result = posix_spawn(&pid, argvPointer, &childFDActions, nil, argv + [nil], ActualTaskExecutor.environment)
| `- error: cannot find 'posix_spawn' in scope
150 | guard result == 0 else { return (Int(result), "", "") }
151 | waitpid(pid, &result, 0)
/host/spi-builder-workspace/Sources/CommandExecutor.swift:149:70: error: 'nil' requires a contextual type
147 |
148 | let argvPointer: UnsafePointer<CChar>! = UnsafePointer(argv[0])
149 | var result = posix_spawn(&pid, argvPointer, &childFDActions, nil, argv + [nil], ActualTaskExecutor.environment)
| `- error: 'nil' requires a contextual type
150 | guard result == 0 else { return (Int(result), "", "") }
151 | waitpid(pid, &result, 0)
/host/spi-builder-workspace/Sources/CommandExecutor.swift:151:9: error: cannot find 'waitpid' in scope
149 | var result = posix_spawn(&pid, argvPointer, &childFDActions, nil, argv + [nil], ActualTaskExecutor.environment)
150 | guard result == 0 else { return (Int(result), "", "") }
151 | waitpid(pid, &result, 0)
| `- error: cannot find 'waitpid' in scope
152 |
153 | let (stdout, stderr) = read(outputPath: stdoutLogPath, outerrPath: stderrLogPath)
/host/spi-builder-workspace/Sources/CommandExecutor.swift:177:29: warning: result of call to 'createFile(atPath:contents:attributes:)' is unused
175 |
176 | private func write(atPath path: String, content: String) {
177 | FileManager.default.createFile(atPath: path, contents: content.data(using: .utf8), attributes: nil)
| `- warning: result of call to 'createFile(atPath:contents:attributes:)' is unused
178 | }
179 | }
/host/spi-builder-workspace/Sources/ProcessInfo.swift:37:16: warning: static property 'internalProcessInfo' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
35 |
36 | enum ProcessInfo {
37 | static var internalProcessInfo: ProcessInfoType = Foundation.ProcessInfo.processInfo
| |- warning: static property 'internalProcessInfo' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'internalProcessInfo' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'internalProcessInfo' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
38 |
39 | static var arguments: [String] {
[16/30] Compiling Swiftline ProcessInfo.swift
/host/spi-builder-workspace/Sources/CommandExecutor.swift:9:45: error: cannot find type 'posix_spawn_file_actions_t' in scope
7 | typealias _posix_spawn_file_actions_t = posix_spawn_file_actions_t
8 | #else
9 | typealias _posix_spawn_file_actions_t = posix_spawn_file_actions_t?
| `- error: cannot find type 'posix_spawn_file_actions_t' in scope
10 | #endif
11 |
/host/spi-builder-workspace/Sources/CommandExecutor.swift:25:16: warning: static property 'currentTaskExecutor' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
23 |
24 | class CommandExecutor {
25 | static var currentTaskExecutor: TaskExecutor = ActualTaskExecutor()
| |- warning: static property 'currentTaskExecutor' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'currentTaskExecutor' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'currentTaskExecutor' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
26 |
27 | class func execute(_ commandParts: [String]) -> ExecutorReturnValue {
/host/spi-builder-workspace/Sources/CommandExecutor.swift:59:21: error: cannot find 'DispatchGroup' in scope
57 |
58 | func execute(_ commandParts: [String]) -> ExecutorReturnValue {
59 | let group = DispatchGroup()
| `- error: cannot find 'DispatchGroup' in scope
60 | group.enter()
61 |
/host/spi-builder-workspace/Sources/CommandExecutor.swift:62:20: error: cannot find 'Process' in scope
60 | group.enter()
61 |
62 | let task = Process()
| `- error: cannot find 'Process' in scope
63 | task.executableURL = URL(fileURLWithPath: "/usr/bin/env")
64 | task.arguments = commandParts
/host/spi-builder-workspace/Sources/CommandExecutor.swift:71:37: error: cannot infer type of closure parameter '_' without a type annotation
69 | task.standardOutput = stdoutPipe
70 | task.standardError = stderrPipe
71 | task.terminationHandler = { _ in group.leave() }
| `- error: cannot infer type of closure parameter '_' without a type annotation
72 | do {
73 | try task.run()
/host/spi-builder-workspace/Sources/CommandExecutor.swift:71:48: error: cannot infer return type for closure with multiple statements; add explicit type to disambiguate
69 | task.standardOutput = stdoutPipe
70 | task.standardError = stderrPipe
71 | task.terminationHandler = { _ in group.leave() }
| `- error: cannot infer return type for closure with multiple statements; add explicit type to disambiguate
72 | do {
73 | try task.run()
/host/spi-builder-workspace/Sources/CommandExecutor.swift:106:9: error: cannot find 'posix_spawn_file_actions_init' in scope
104 |
105 | var childFDActions = STDLIB._make_posix_spawn_file_actions_t()
106 | posix_spawn_file_actions_init(&childFDActions)
| `- error: cannot find 'posix_spawn_file_actions_init' in scope
107 | posix_spawn_file_actions_adddup2(&childFDActions, outputPipe[1], 1)
108 | posix_spawn_file_actions_adddup2(&childFDActions, outputPipe[1], 2)
/host/spi-builder-workspace/Sources/CommandExecutor.swift:107:9: error: cannot find 'posix_spawn_file_actions_adddup2' in scope
105 | var childFDActions = STDLIB._make_posix_spawn_file_actions_t()
106 | posix_spawn_file_actions_init(&childFDActions)
107 | posix_spawn_file_actions_adddup2(&childFDActions, outputPipe[1], 1)
| `- error: cannot find 'posix_spawn_file_actions_adddup2' in scope
108 | posix_spawn_file_actions_adddup2(&childFDActions, outputPipe[1], 2)
109 | posix_spawn_file_actions_addclose(&childFDActions, outputPipe[0])
/host/spi-builder-workspace/Sources/CommandExecutor.swift:108:9: error: cannot find 'posix_spawn_file_actions_adddup2' in scope
106 | posix_spawn_file_actions_init(&childFDActions)
107 | posix_spawn_file_actions_adddup2(&childFDActions, outputPipe[1], 1)
108 | posix_spawn_file_actions_adddup2(&childFDActions, outputPipe[1], 2)
| `- error: cannot find 'posix_spawn_file_actions_adddup2' in scope
109 | posix_spawn_file_actions_addclose(&childFDActions, outputPipe[0])
110 | posix_spawn_file_actions_addclose(&childFDActions, outputPipe[1])
/host/spi-builder-workspace/Sources/CommandExecutor.swift:109:9: error: cannot find 'posix_spawn_file_actions_addclose' in scope
107 | posix_spawn_file_actions_adddup2(&childFDActions, outputPipe[1], 1)
108 | posix_spawn_file_actions_adddup2(&childFDActions, outputPipe[1], 2)
109 | posix_spawn_file_actions_addclose(&childFDActions, outputPipe[0])
| `- error: cannot find 'posix_spawn_file_actions_addclose' in scope
110 | posix_spawn_file_actions_addclose(&childFDActions, outputPipe[1])
111 |
/host/spi-builder-workspace/Sources/CommandExecutor.swift:110:9: error: cannot find 'posix_spawn_file_actions_addclose' in scope
108 | posix_spawn_file_actions_adddup2(&childFDActions, outputPipe[1], 2)
109 | posix_spawn_file_actions_addclose(&childFDActions, outputPipe[0])
110 | posix_spawn_file_actions_addclose(&childFDActions, outputPipe[1])
| `- error: cannot find 'posix_spawn_file_actions_addclose' in scope
111 |
112 | var pid: pid_t = 0
/host/spi-builder-workspace/Sources/CommandExecutor.swift:114:22: error: cannot find 'posix_spawn' in scope
112 | var pid: pid_t = 0
113 | let argvPointer: UnsafePointer<CChar>! = UnsafePointer(argv[0])
114 | let result = posix_spawn(&pid, argvPointer, &childFDActions, nil, argv + [nil], ActualTaskExecutor.environment)
| `- error: cannot find 'posix_spawn' in scope
115 |
116 | return (Int(result), "", "")
/host/spi-builder-workspace/Sources/CommandExecutor.swift:114:70: error: 'nil' requires a contextual type
112 | var pid: pid_t = 0
113 | let argvPointer: UnsafePointer<CChar>! = UnsafePointer(argv[0])
114 | let result = posix_spawn(&pid, argvPointer, &childFDActions, nil, argv + [nil], ActualTaskExecutor.environment)
| `- error: 'nil' requires a contextual type
115 |
116 | return (Int(result), "", "")
/host/spi-builder-workspace/Sources/CommandExecutor.swift:137:13: error: cannot find 'posix_spawn_file_actions_addclose' in scope
135 | defer {
136 | for case let arg? in argv { free(arg) }
137 | posix_spawn_file_actions_addclose(&childFDActions, outputPipe)
| `- error: cannot find 'posix_spawn_file_actions_addclose' in scope
138 | posix_spawn_file_actions_addclose(&childFDActions, outerrPipe)
139 | posix_spawn_file_actions_destroy(&childFDActions)
/host/spi-builder-workspace/Sources/CommandExecutor.swift:138:13: error: cannot find 'posix_spawn_file_actions_addclose' in scope
136 | for case let arg? in argv { free(arg) }
137 | posix_spawn_file_actions_addclose(&childFDActions, outputPipe)
138 | posix_spawn_file_actions_addclose(&childFDActions, outerrPipe)
| `- error: cannot find 'posix_spawn_file_actions_addclose' in scope
139 | posix_spawn_file_actions_destroy(&childFDActions)
140 | }
/host/spi-builder-workspace/Sources/CommandExecutor.swift:139:13: error: cannot find 'posix_spawn_file_actions_destroy' in scope
137 | posix_spawn_file_actions_addclose(&childFDActions, outputPipe)
138 | posix_spawn_file_actions_addclose(&childFDActions, outerrPipe)
139 | posix_spawn_file_actions_destroy(&childFDActions)
| `- error: cannot find 'posix_spawn_file_actions_destroy' in scope
140 | }
141 |
/host/spi-builder-workspace/Sources/CommandExecutor.swift:142:9: error: cannot find 'posix_spawn_file_actions_init' in scope
140 | }
141 |
142 | posix_spawn_file_actions_init(&childFDActions)
| `- error: cannot find 'posix_spawn_file_actions_init' in scope
143 | posix_spawn_file_actions_addopen(&childFDActions, outputPipe, stdoutLogPath, O_CREAT | O_TRUNC | O_WRONLY, ~0)
144 | posix_spawn_file_actions_addopen(&childFDActions, outerrPipe, stderrLogPath, O_CREAT | O_TRUNC | O_WRONLY, ~0)
/host/spi-builder-workspace/Sources/CommandExecutor.swift:143:9: error: cannot find 'posix_spawn_file_actions_addopen' in scope
141 |
142 | posix_spawn_file_actions_init(&childFDActions)
143 | posix_spawn_file_actions_addopen(&childFDActions, outputPipe, stdoutLogPath, O_CREAT | O_TRUNC | O_WRONLY, ~0)
| `- error: cannot find 'posix_spawn_file_actions_addopen' in scope
144 | posix_spawn_file_actions_addopen(&childFDActions, outerrPipe, stderrLogPath, O_CREAT | O_TRUNC | O_WRONLY, ~0)
145 | posix_spawn_file_actions_adddup2(&childFDActions, outputPipe, 1)
/host/spi-builder-workspace/Sources/CommandExecutor.swift:143:86: error: cannot find 'O_CREAT' in scope
141 |
142 | posix_spawn_file_actions_init(&childFDActions)
143 | posix_spawn_file_actions_addopen(&childFDActions, outputPipe, stdoutLogPath, O_CREAT | O_TRUNC | O_WRONLY, ~0)
| `- error: cannot find 'O_CREAT' in scope
144 | posix_spawn_file_actions_addopen(&childFDActions, outerrPipe, stderrLogPath, O_CREAT | O_TRUNC | O_WRONLY, ~0)
145 | posix_spawn_file_actions_adddup2(&childFDActions, outputPipe, 1)
/root/.swiftpm/swift-sdks/swift-wasm-6.1-RELEASE-wasm32-unknown-wasi.artifactbundle/6.1-RELEASE-wasm32-unknown-wasi/wasm32-unknown-wasi/WASI.sdk/include/wasm32-wasi/__header_fcntl.h:13:9: note: macro 'O_CREAT' unavailable: structure not supported
11 | #define O_RSYNC __WASI_FDFLAGS_RSYNC
12 | #define O_SYNC __WASI_FDFLAGS_SYNC
13 | #define O_CREAT (__WASI_OFLAGS_CREAT << 12)
| `- note: macro 'O_CREAT' unavailable: structure not supported
14 | #define O_DIRECTORY (__WASI_OFLAGS_DIRECTORY << 12)
15 | #define O_EXCL (__WASI_OFLAGS_EXCL << 12)
/host/spi-builder-workspace/Sources/CommandExecutor.swift:143:96: error: cannot find 'O_TRUNC' in scope
141 |
142 | posix_spawn_file_actions_init(&childFDActions)
143 | posix_spawn_file_actions_addopen(&childFDActions, outputPipe, stdoutLogPath, O_CREAT | O_TRUNC | O_WRONLY, ~0)
| `- error: cannot find 'O_TRUNC' in scope
144 | posix_spawn_file_actions_addopen(&childFDActions, outerrPipe, stderrLogPath, O_CREAT | O_TRUNC | O_WRONLY, ~0)
145 | posix_spawn_file_actions_adddup2(&childFDActions, outputPipe, 1)
/root/.swiftpm/swift-sdks/swift-wasm-6.1-RELEASE-wasm32-unknown-wasi.artifactbundle/6.1-RELEASE-wasm32-unknown-wasi/wasm32-unknown-wasi/WASI.sdk/include/wasm32-wasi/__header_fcntl.h:16:9: note: macro 'O_TRUNC' unavailable: structure not supported
14 | #define O_DIRECTORY (__WASI_OFLAGS_DIRECTORY << 12)
15 | #define O_EXCL (__WASI_OFLAGS_EXCL << 12)
16 | #define O_TRUNC (__WASI_OFLAGS_TRUNC << 12)
| `- note: macro 'O_TRUNC' unavailable: structure not supported
17 |
18 | #define O_NOFOLLOW (0x01000000)
/host/spi-builder-workspace/Sources/CommandExecutor.swift:143:104: error: binary operator '|' cannot be applied to operands of type 'UInt8' and 'Int32'
141 |
142 | posix_spawn_file_actions_init(&childFDActions)
143 | posix_spawn_file_actions_addopen(&childFDActions, outputPipe, stdoutLogPath, O_CREAT | O_TRUNC | O_WRONLY, ~0)
| |- error: binary operator '|' cannot be applied to operands of type 'UInt8' and 'Int32'
| `- note: overloads for '|' exist with these partially matching parameter lists: (Int32, Int32), (UInt8, UInt8)
144 | posix_spawn_file_actions_addopen(&childFDActions, outerrPipe, stderrLogPath, O_CREAT | O_TRUNC | O_WRONLY, ~0)
145 | posix_spawn_file_actions_adddup2(&childFDActions, outputPipe, 1)
/host/spi-builder-workspace/Sources/CommandExecutor.swift:144:9: error: cannot find 'posix_spawn_file_actions_addopen' in scope
142 | posix_spawn_file_actions_init(&childFDActions)
143 | posix_spawn_file_actions_addopen(&childFDActions, outputPipe, stdoutLogPath, O_CREAT | O_TRUNC | O_WRONLY, ~0)
144 | posix_spawn_file_actions_addopen(&childFDActions, outerrPipe, stderrLogPath, O_CREAT | O_TRUNC | O_WRONLY, ~0)
| `- error: cannot find 'posix_spawn_file_actions_addopen' in scope
145 | posix_spawn_file_actions_adddup2(&childFDActions, outputPipe, 1)
146 | posix_spawn_file_actions_adddup2(&childFDActions, outerrPipe, 2)
/host/spi-builder-workspace/Sources/CommandExecutor.swift:144:86: error: cannot find 'O_CREAT' in scope
142 | posix_spawn_file_actions_init(&childFDActions)
143 | posix_spawn_file_actions_addopen(&childFDActions, outputPipe, stdoutLogPath, O_CREAT | O_TRUNC | O_WRONLY, ~0)
144 | posix_spawn_file_actions_addopen(&childFDActions, outerrPipe, stderrLogPath, O_CREAT | O_TRUNC | O_WRONLY, ~0)
| `- error: cannot find 'O_CREAT' in scope
145 | posix_spawn_file_actions_adddup2(&childFDActions, outputPipe, 1)
146 | posix_spawn_file_actions_adddup2(&childFDActions, outerrPipe, 2)
/root/.swiftpm/swift-sdks/swift-wasm-6.1-RELEASE-wasm32-unknown-wasi.artifactbundle/6.1-RELEASE-wasm32-unknown-wasi/wasm32-unknown-wasi/WASI.sdk/include/wasm32-wasi/__header_fcntl.h:13:9: note: macro 'O_CREAT' unavailable: structure not supported
11 | #define O_RSYNC __WASI_FDFLAGS_RSYNC
12 | #define O_SYNC __WASI_FDFLAGS_SYNC
13 | #define O_CREAT (__WASI_OFLAGS_CREAT << 12)
| `- note: macro 'O_CREAT' unavailable: structure not supported
14 | #define O_DIRECTORY (__WASI_OFLAGS_DIRECTORY << 12)
15 | #define O_EXCL (__WASI_OFLAGS_EXCL << 12)
/host/spi-builder-workspace/Sources/CommandExecutor.swift:144:96: error: cannot find 'O_TRUNC' in scope
142 | posix_spawn_file_actions_init(&childFDActions)
143 | posix_spawn_file_actions_addopen(&childFDActions, outputPipe, stdoutLogPath, O_CREAT | O_TRUNC | O_WRONLY, ~0)
144 | posix_spawn_file_actions_addopen(&childFDActions, outerrPipe, stderrLogPath, O_CREAT | O_TRUNC | O_WRONLY, ~0)
| `- error: cannot find 'O_TRUNC' in scope
145 | posix_spawn_file_actions_adddup2(&childFDActions, outputPipe, 1)
146 | posix_spawn_file_actions_adddup2(&childFDActions, outerrPipe, 2)
/root/.swiftpm/swift-sdks/swift-wasm-6.1-RELEASE-wasm32-unknown-wasi.artifactbundle/6.1-RELEASE-wasm32-unknown-wasi/wasm32-unknown-wasi/WASI.sdk/include/wasm32-wasi/__header_fcntl.h:16:9: note: macro 'O_TRUNC' unavailable: structure not supported
14 | #define O_DIRECTORY (__WASI_OFLAGS_DIRECTORY << 12)
15 | #define O_EXCL (__WASI_OFLAGS_EXCL << 12)
16 | #define O_TRUNC (__WASI_OFLAGS_TRUNC << 12)
| `- note: macro 'O_TRUNC' unavailable: structure not supported
17 |
18 | #define O_NOFOLLOW (0x01000000)
/host/spi-builder-workspace/Sources/CommandExecutor.swift:144:104: error: binary operator '|' cannot be applied to operands of type 'UInt8' and 'Int32'
142 | posix_spawn_file_actions_init(&childFDActions)
143 | posix_spawn_file_actions_addopen(&childFDActions, outputPipe, stdoutLogPath, O_CREAT | O_TRUNC | O_WRONLY, ~0)
144 | posix_spawn_file_actions_addopen(&childFDActions, outerrPipe, stderrLogPath, O_CREAT | O_TRUNC | O_WRONLY, ~0)
| |- error: binary operator '|' cannot be applied to operands of type 'UInt8' and 'Int32'
| `- note: overloads for '|' exist with these partially matching parameter lists: (Int32, Int32), (UInt8, UInt8)
145 | posix_spawn_file_actions_adddup2(&childFDActions, outputPipe, 1)
146 | posix_spawn_file_actions_adddup2(&childFDActions, outerrPipe, 2)
/host/spi-builder-workspace/Sources/CommandExecutor.swift:145:9: error: cannot find 'posix_spawn_file_actions_adddup2' in scope
143 | posix_spawn_file_actions_addopen(&childFDActions, outputPipe, stdoutLogPath, O_CREAT | O_TRUNC | O_WRONLY, ~0)
144 | posix_spawn_file_actions_addopen(&childFDActions, outerrPipe, stderrLogPath, O_CREAT | O_TRUNC | O_WRONLY, ~0)
145 | posix_spawn_file_actions_adddup2(&childFDActions, outputPipe, 1)
| `- error: cannot find 'posix_spawn_file_actions_adddup2' in scope
146 | posix_spawn_file_actions_adddup2(&childFDActions, outerrPipe, 2)
147 |
/host/spi-builder-workspace/Sources/CommandExecutor.swift:146:9: error: cannot find 'posix_spawn_file_actions_adddup2' in scope
144 | posix_spawn_file_actions_addopen(&childFDActions, outerrPipe, stderrLogPath, O_CREAT | O_TRUNC | O_WRONLY, ~0)
145 | posix_spawn_file_actions_adddup2(&childFDActions, outputPipe, 1)
146 | posix_spawn_file_actions_adddup2(&childFDActions, outerrPipe, 2)
| `- error: cannot find 'posix_spawn_file_actions_adddup2' in scope
147 |
148 | let argvPointer: UnsafePointer<CChar>! = UnsafePointer(argv[0])
/host/spi-builder-workspace/Sources/CommandExecutor.swift:149:22: error: cannot find 'posix_spawn' in scope
147 |
148 | let argvPointer: UnsafePointer<CChar>! = UnsafePointer(argv[0])
149 | var result = posix_spawn(&pid, argvPointer, &childFDActions, nil, argv + [nil], ActualTaskExecutor.environment)
| `- error: cannot find 'posix_spawn' in scope
150 | guard result == 0 else { return (Int(result), "", "") }
151 | waitpid(pid, &result, 0)
/host/spi-builder-workspace/Sources/CommandExecutor.swift:149:70: error: 'nil' requires a contextual type
147 |
148 | let argvPointer: UnsafePointer<CChar>! = UnsafePointer(argv[0])
149 | var result = posix_spawn(&pid, argvPointer, &childFDActions, nil, argv + [nil], ActualTaskExecutor.environment)
| `- error: 'nil' requires a contextual type
150 | guard result == 0 else { return (Int(result), "", "") }
151 | waitpid(pid, &result, 0)
/host/spi-builder-workspace/Sources/CommandExecutor.swift:151:9: error: cannot find 'waitpid' in scope
149 | var result = posix_spawn(&pid, argvPointer, &childFDActions, nil, argv + [nil], ActualTaskExecutor.environment)
150 | guard result == 0 else { return (Int(result), "", "") }
151 | waitpid(pid, &result, 0)
| `- error: cannot find 'waitpid' in scope
152 |
153 | let (stdout, stderr) = read(outputPath: stdoutLogPath, outerrPath: stderrLogPath)
/host/spi-builder-workspace/Sources/CommandExecutor.swift:177:29: warning: result of call to 'createFile(atPath:contents:attributes:)' is unused
175 |
176 | private func write(atPath path: String, content: String) {
177 | FileManager.default.createFile(atPath: path, contents: content.data(using: .utf8), attributes: nil)
| `- warning: result of call to 'createFile(atPath:contents:attributes:)' is unused
178 | }
179 | }
/host/spi-builder-workspace/Sources/ProcessInfo.swift:37:16: warning: static property 'internalProcessInfo' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
35 |
36 | enum ProcessInfo {
37 | static var internalProcessInfo: ProcessInfoType = Foundation.ProcessInfo.processInfo
| |- warning: static property 'internalProcessInfo' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'internalProcessInfo' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'internalProcessInfo' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
38 |
39 | static var arguments: [String] {
[17/30] Compiling Swiftline PromptPrinter.swift
/host/spi-builder-workspace/Sources/PromptSettings.swift:12:16: warning: static property 'reader' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
10 | class PromptSettings {
11 |
12 | static var reader: PromptReader = ConsolePromptReader()
| |- warning: static property 'reader' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'reader' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'reader' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
13 | static var printer: PromptPrinter = ConsolePromptPrinter()
14 |
/host/spi-builder-workspace/Sources/PromptSettings.swift:13:16: warning: static property 'printer' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
11 |
12 | static var reader: PromptReader = ConsolePromptReader()
13 | static var printer: PromptPrinter = ConsolePromptPrinter()
| |- warning: static property 'printer' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'printer' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'printer' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
14 |
15 | class func read() -> String? {
[18/30] Compiling Swiftline PromptReader.swift
/host/spi-builder-workspace/Sources/PromptSettings.swift:12:16: warning: static property 'reader' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
10 | class PromptSettings {
11 |
12 | static var reader: PromptReader = ConsolePromptReader()
| |- warning: static property 'reader' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'reader' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'reader' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
13 | static var printer: PromptPrinter = ConsolePromptPrinter()
14 |
/host/spi-builder-workspace/Sources/PromptSettings.swift:13:16: warning: static property 'printer' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
11 |
12 | static var reader: PromptReader = ConsolePromptReader()
13 | static var printer: PromptPrinter = ConsolePromptPrinter()
| |- warning: static property 'printer' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'printer' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'printer' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
14 |
15 | class func read() -> String? {
[19/30] Compiling Swiftline PromptSettings.swift
/host/spi-builder-workspace/Sources/PromptSettings.swift:12:16: warning: static property 'reader' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
10 | class PromptSettings {
11 |
12 | static var reader: PromptReader = ConsolePromptReader()
| |- warning: static property 'reader' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'reader' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'reader' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
13 | static var printer: PromptPrinter = ConsolePromptPrinter()
14 |
/host/spi-builder-workspace/Sources/PromptSettings.swift:13:16: warning: static property 'printer' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
11 |
12 | static var reader: PromptReader = ConsolePromptReader()
13 | static var printer: PromptPrinter = ConsolePromptPrinter()
| |- warning: static property 'printer' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'printer' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'printer' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
14 |
15 | class func read() -> String? {
[20/30] Compiling Swiftline RunResults.swift
/host/spi-builder-workspace/Sources/RunnerSettings.swift:51:23: warning: static property 'None' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
49 |
50 | /// Dont echo anything, this is the default settings
51 | public static var None = EchoSettings(rawValue: 0)
| |- warning: static property 'None' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'None' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'None' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
52 |
53 | /// Echo the stdout from the run command to the terminal
/host/spi-builder-workspace/Sources/RunnerSettings.swift:54:23: warning: static property 'Stdout' is not concurrency-safe because non-'Sendable' type 'EchoSettings' may have shared mutable state; this is an error in the Swift 6 language mode
40 |
41 | /// Echo settings
42 | public struct EchoSettings: OptionSet {
| `- note: consider making struct 'EchoSettings' conform to the 'Sendable' protocol
43 |
44 | public let rawValue: Int
:
52 |
53 | /// Echo the stdout from the run command to the terminal
54 | public static let Stdout = EchoSettings(rawValue: 1 << 0)
| |- warning: static property 'Stdout' is not concurrency-safe because non-'Sendable' type 'EchoSettings' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'Stdout' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
55 |
56 | /// Echo the stderr from the run command to the terminal
/host/spi-builder-workspace/Sources/RunnerSettings.swift:57:23: warning: static property 'Stderr' is not concurrency-safe because non-'Sendable' type 'EchoSettings' may have shared mutable state; this is an error in the Swift 6 language mode
40 |
41 | /// Echo settings
42 | public struct EchoSettings: OptionSet {
| `- note: consider making struct 'EchoSettings' conform to the 'Sendable' protocol
43 |
44 | public let rawValue: Int
:
55 |
56 | /// Echo the stderr from the run command to the terminal
57 | public static let Stderr = EchoSettings(rawValue: 1 << 1)
| |- warning: static property 'Stderr' is not concurrency-safe because non-'Sendable' type 'EchoSettings' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'Stderr' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
58 |
59 | /// Echo the command executed to the terminal
/host/spi-builder-workspace/Sources/RunnerSettings.swift:60:23: warning: static property 'Command' is not concurrency-safe because non-'Sendable' type 'EchoSettings' may have shared mutable state; this is an error in the Swift 6 language mode
40 |
41 | /// Echo settings
42 | public struct EchoSettings: OptionSet {
| `- note: consider making struct 'EchoSettings' conform to the 'Sendable' protocol
43 |
44 | public let rawValue: Int
:
58 |
59 | /// Echo the command executed to the terminal
60 | public static let Command = EchoSettings(rawValue: 1 << 2)
| |- warning: static property 'Command' is not concurrency-safe because non-'Sendable' type 'EchoSettings' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'Command' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
61 | }
62 |
[21/30] Compiling Swiftline Runner.swift
/host/spi-builder-workspace/Sources/RunnerSettings.swift:51:23: warning: static property 'None' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
49 |
50 | /// Dont echo anything, this is the default settings
51 | public static var None = EchoSettings(rawValue: 0)
| |- warning: static property 'None' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'None' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'None' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
52 |
53 | /// Echo the stdout from the run command to the terminal
/host/spi-builder-workspace/Sources/RunnerSettings.swift:54:23: warning: static property 'Stdout' is not concurrency-safe because non-'Sendable' type 'EchoSettings' may have shared mutable state; this is an error in the Swift 6 language mode
40 |
41 | /// Echo settings
42 | public struct EchoSettings: OptionSet {
| `- note: consider making struct 'EchoSettings' conform to the 'Sendable' protocol
43 |
44 | public let rawValue: Int
:
52 |
53 | /// Echo the stdout from the run command to the terminal
54 | public static let Stdout = EchoSettings(rawValue: 1 << 0)
| |- warning: static property 'Stdout' is not concurrency-safe because non-'Sendable' type 'EchoSettings' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'Stdout' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
55 |
56 | /// Echo the stderr from the run command to the terminal
/host/spi-builder-workspace/Sources/RunnerSettings.swift:57:23: warning: static property 'Stderr' is not concurrency-safe because non-'Sendable' type 'EchoSettings' may have shared mutable state; this is an error in the Swift 6 language mode
40 |
41 | /// Echo settings
42 | public struct EchoSettings: OptionSet {
| `- note: consider making struct 'EchoSettings' conform to the 'Sendable' protocol
43 |
44 | public let rawValue: Int
:
55 |
56 | /// Echo the stderr from the run command to the terminal
57 | public static let Stderr = EchoSettings(rawValue: 1 << 1)
| |- warning: static property 'Stderr' is not concurrency-safe because non-'Sendable' type 'EchoSettings' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'Stderr' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
58 |
59 | /// Echo the command executed to the terminal
/host/spi-builder-workspace/Sources/RunnerSettings.swift:60:23: warning: static property 'Command' is not concurrency-safe because non-'Sendable' type 'EchoSettings' may have shared mutable state; this is an error in the Swift 6 language mode
40 |
41 | /// Echo settings
42 | public struct EchoSettings: OptionSet {
| `- note: consider making struct 'EchoSettings' conform to the 'Sendable' protocol
43 |
44 | public let rawValue: Int
:
58 |
59 | /// Echo the command executed to the terminal
60 | public static let Command = EchoSettings(rawValue: 1 << 2)
| |- warning: static property 'Command' is not concurrency-safe because non-'Sendable' type 'EchoSettings' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'Command' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
61 | }
62 |
[22/30] Compiling Swiftline RunnerSettings.swift
/host/spi-builder-workspace/Sources/RunnerSettings.swift:51:23: warning: static property 'None' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
49 |
50 | /// Dont echo anything, this is the default settings
51 | public static var None = EchoSettings(rawValue: 0)
| |- warning: static property 'None' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'None' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'None' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
52 |
53 | /// Echo the stdout from the run command to the terminal
/host/spi-builder-workspace/Sources/RunnerSettings.swift:54:23: warning: static property 'Stdout' is not concurrency-safe because non-'Sendable' type 'EchoSettings' may have shared mutable state; this is an error in the Swift 6 language mode
40 |
41 | /// Echo settings
42 | public struct EchoSettings: OptionSet {
| `- note: consider making struct 'EchoSettings' conform to the 'Sendable' protocol
43 |
44 | public let rawValue: Int
:
52 |
53 | /// Echo the stdout from the run command to the terminal
54 | public static let Stdout = EchoSettings(rawValue: 1 << 0)
| |- warning: static property 'Stdout' is not concurrency-safe because non-'Sendable' type 'EchoSettings' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'Stdout' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
55 |
56 | /// Echo the stderr from the run command to the terminal
/host/spi-builder-workspace/Sources/RunnerSettings.swift:57:23: warning: static property 'Stderr' is not concurrency-safe because non-'Sendable' type 'EchoSettings' may have shared mutable state; this is an error in the Swift 6 language mode
40 |
41 | /// Echo settings
42 | public struct EchoSettings: OptionSet {
| `- note: consider making struct 'EchoSettings' conform to the 'Sendable' protocol
43 |
44 | public let rawValue: Int
:
55 |
56 | /// Echo the stderr from the run command to the terminal
57 | public static let Stderr = EchoSettings(rawValue: 1 << 1)
| |- warning: static property 'Stderr' is not concurrency-safe because non-'Sendable' type 'EchoSettings' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'Stderr' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
58 |
59 | /// Echo the command executed to the terminal
/host/spi-builder-workspace/Sources/RunnerSettings.swift:60:23: warning: static property 'Command' is not concurrency-safe because non-'Sendable' type 'EchoSettings' may have shared mutable state; this is an error in the Swift 6 language mode
40 |
41 | /// Echo settings
42 | public struct EchoSettings: OptionSet {
| `- note: consider making struct 'EchoSettings' conform to the 'Sendable' protocol
43 |
44 | public let rawValue: Int
:
58 |
59 | /// Echo the command executed to the terminal
60 | public static let Command = EchoSettings(rawValue: 1 << 2)
| |- warning: static property 'Command' is not concurrency-safe because non-'Sendable' type 'EchoSettings' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'Command' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
61 | }
62 |
[23/30] Compiling Swiftline ArgsParser.swift
[24/30] Compiling Swiftline Argument.swift
[25/30] Compiling Swiftline Ask.swift
[26/30] Compiling Swiftline AskSettings.swift
[27/30] Compiling Swiftline AskerValidator.swift
[28/30] Compiling Swiftline Choose.swift
[29/30] Compiling Swiftline ChooseSettings.swift
[30/30] Compiling Swiftline Colorizer.swift
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-0":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1
wasm-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:7e37457820e5f17452a98118754f345f2619722c485f2db0d8b666940a83afd2
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest
[0/1] Planning build
Building for debugging...
[0/1] Write swift-version-24593BA9C3E375BF.txt
error: emit-module command failed with exit code 1 (use -v to see invocation)
[2/26] Emitting module Swiftline
/host/spi-builder-workspace/Sources/CommandExecutor.swift:9:45: error: cannot find type 'posix_spawn_file_actions_t' in scope
7 | typealias _posix_spawn_file_actions_t = posix_spawn_file_actions_t
8 | #else
9 | typealias _posix_spawn_file_actions_t = posix_spawn_file_actions_t?
| `- error: cannot find type 'posix_spawn_file_actions_t' in scope
10 | #endif
11 |
[3/29] Compiling Swiftline PromptPrinter.swift
[4/29] Compiling Swiftline PromptReader.swift
[5/29] Compiling Swiftline PromptSettings.swift
[6/29] Compiling Swiftline ShortHandRunner.swift
[7/29] Compiling Swiftline StringBackgroundColorizer.swift
[8/29] Compiling Swiftline StringForegroundColorizer.swift
[9/29] Compiling Swiftline ArgsParser.swift
[10/29] Compiling Swiftline Argument.swift
[11/29] Compiling Swiftline Ask.swift
[12/29] Compiling Swiftline AskSettings.swift
[13/29] Compiling Swiftline RunResults.swift
[14/29] Compiling Swiftline Runner.swift
[15/29] Compiling Swiftline RunnerSettings.swift
[16/29] Compiling Swiftline Agree.swift
[17/29] Compiling Swiftline AgreeSettings.swift
[18/29] Compiling Swiftline ArgConvertible.swift
[19/29] Compiling Swiftline Args.swift
[20/29] Compiling Swiftline StringStyle.swift
[21/29] Compiling Swiftline StringStyleColorizer.swift
[22/29] Compiling Swiftline TaskPipe.swift
[23/29] Compiling Swiftline CommandExecutor.swift
/host/spi-builder-workspace/Sources/CommandExecutor.swift:9:45: error: cannot find type 'posix_spawn_file_actions_t' in scope
7 | typealias _posix_spawn_file_actions_t = posix_spawn_file_actions_t
8 | #else
9 | typealias _posix_spawn_file_actions_t = posix_spawn_file_actions_t?
| `- error: cannot find type 'posix_spawn_file_actions_t' in scope
10 | #endif
11 |
/host/spi-builder-workspace/Sources/CommandExecutor.swift:59:21: error: cannot find 'DispatchGroup' in scope
57 |
58 | func execute(_ commandParts: [String]) -> ExecutorReturnValue {
59 | let group = DispatchGroup()
| `- error: cannot find 'DispatchGroup' in scope
60 | group.enter()
61 |
/host/spi-builder-workspace/Sources/CommandExecutor.swift:62:20: error: cannot find 'Process' in scope
60 | group.enter()
61 |
62 | let task = Process()
| `- error: cannot find 'Process' in scope
63 | task.executableURL = URL(fileURLWithPath: "/usr/bin/env")
64 | task.arguments = commandParts
/host/spi-builder-workspace/Sources/CommandExecutor.swift:71:37: error: cannot infer type of closure parameter '_' without a type annotation
69 | task.standardOutput = stdoutPipe
70 | task.standardError = stderrPipe
71 | task.terminationHandler = { _ in group.leave() }
| `- error: cannot infer type of closure parameter '_' without a type annotation
72 | do {
73 | try task.run()
/host/spi-builder-workspace/Sources/CommandExecutor.swift:71:48: error: cannot infer return type for closure with multiple statements; add explicit type to disambiguate
69 | task.standardOutput = stdoutPipe
70 | task.standardError = stderrPipe
71 | task.terminationHandler = { _ in group.leave() }
| `- error: cannot infer return type for closure with multiple statements; add explicit type to disambiguate
72 | do {
73 | try task.run()
/host/spi-builder-workspace/Sources/CommandExecutor.swift:106:9: error: cannot find 'posix_spawn_file_actions_init' in scope
104 |
105 | var childFDActions = STDLIB._make_posix_spawn_file_actions_t()
106 | posix_spawn_file_actions_init(&childFDActions)
| `- error: cannot find 'posix_spawn_file_actions_init' in scope
107 | posix_spawn_file_actions_adddup2(&childFDActions, outputPipe[1], 1)
108 | posix_spawn_file_actions_adddup2(&childFDActions, outputPipe[1], 2)
/host/spi-builder-workspace/Sources/CommandExecutor.swift:107:9: error: cannot find 'posix_spawn_file_actions_adddup2' in scope
105 | var childFDActions = STDLIB._make_posix_spawn_file_actions_t()
106 | posix_spawn_file_actions_init(&childFDActions)
107 | posix_spawn_file_actions_adddup2(&childFDActions, outputPipe[1], 1)
| `- error: cannot find 'posix_spawn_file_actions_adddup2' in scope
108 | posix_spawn_file_actions_adddup2(&childFDActions, outputPipe[1], 2)
109 | posix_spawn_file_actions_addclose(&childFDActions, outputPipe[0])
/host/spi-builder-workspace/Sources/CommandExecutor.swift:108:9: error: cannot find 'posix_spawn_file_actions_adddup2' in scope
106 | posix_spawn_file_actions_init(&childFDActions)
107 | posix_spawn_file_actions_adddup2(&childFDActions, outputPipe[1], 1)
108 | posix_spawn_file_actions_adddup2(&childFDActions, outputPipe[1], 2)
| `- error: cannot find 'posix_spawn_file_actions_adddup2' in scope
109 | posix_spawn_file_actions_addclose(&childFDActions, outputPipe[0])
110 | posix_spawn_file_actions_addclose(&childFDActions, outputPipe[1])
/host/spi-builder-workspace/Sources/CommandExecutor.swift:109:9: error: cannot find 'posix_spawn_file_actions_addclose' in scope
107 | posix_spawn_file_actions_adddup2(&childFDActions, outputPipe[1], 1)
108 | posix_spawn_file_actions_adddup2(&childFDActions, outputPipe[1], 2)
109 | posix_spawn_file_actions_addclose(&childFDActions, outputPipe[0])
| `- error: cannot find 'posix_spawn_file_actions_addclose' in scope
110 | posix_spawn_file_actions_addclose(&childFDActions, outputPipe[1])
111 |
/host/spi-builder-workspace/Sources/CommandExecutor.swift:110:9: error: cannot find 'posix_spawn_file_actions_addclose' in scope
108 | posix_spawn_file_actions_adddup2(&childFDActions, outputPipe[1], 2)
109 | posix_spawn_file_actions_addclose(&childFDActions, outputPipe[0])
110 | posix_spawn_file_actions_addclose(&childFDActions, outputPipe[1])
| `- error: cannot find 'posix_spawn_file_actions_addclose' in scope
111 |
112 | var pid: pid_t = 0
/host/spi-builder-workspace/Sources/CommandExecutor.swift:114:22: error: cannot find 'posix_spawn' in scope
112 | var pid: pid_t = 0
113 | let argvPointer: UnsafePointer<CChar>! = UnsafePointer(argv[0])
114 | let result = posix_spawn(&pid, argvPointer, &childFDActions, nil, argv + [nil], ActualTaskExecutor.environment)
| `- error: cannot find 'posix_spawn' in scope
115 |
116 | return (Int(result), "", "")
/host/spi-builder-workspace/Sources/CommandExecutor.swift:114:70: error: 'nil' requires a contextual type
112 | var pid: pid_t = 0
113 | let argvPointer: UnsafePointer<CChar>! = UnsafePointer(argv[0])
114 | let result = posix_spawn(&pid, argvPointer, &childFDActions, nil, argv + [nil], ActualTaskExecutor.environment)
| `- error: 'nil' requires a contextual type
115 |
116 | return (Int(result), "", "")
/host/spi-builder-workspace/Sources/CommandExecutor.swift:137:13: error: cannot find 'posix_spawn_file_actions_addclose' in scope
135 | defer {
136 | for case let arg? in argv { free(arg) }
137 | posix_spawn_file_actions_addclose(&childFDActions, outputPipe)
| `- error: cannot find 'posix_spawn_file_actions_addclose' in scope
138 | posix_spawn_file_actions_addclose(&childFDActions, outerrPipe)
139 | posix_spawn_file_actions_destroy(&childFDActions)
/host/spi-builder-workspace/Sources/CommandExecutor.swift:138:13: error: cannot find 'posix_spawn_file_actions_addclose' in scope
136 | for case let arg? in argv { free(arg) }
137 | posix_spawn_file_actions_addclose(&childFDActions, outputPipe)
138 | posix_spawn_file_actions_addclose(&childFDActions, outerrPipe)
| `- error: cannot find 'posix_spawn_file_actions_addclose' in scope
139 | posix_spawn_file_actions_destroy(&childFDActions)
140 | }
/host/spi-builder-workspace/Sources/CommandExecutor.swift:139:13: error: cannot find 'posix_spawn_file_actions_destroy' in scope
137 | posix_spawn_file_actions_addclose(&childFDActions, outputPipe)
138 | posix_spawn_file_actions_addclose(&childFDActions, outerrPipe)
139 | posix_spawn_file_actions_destroy(&childFDActions)
| `- error: cannot find 'posix_spawn_file_actions_destroy' in scope
140 | }
141 |
/host/spi-builder-workspace/Sources/CommandExecutor.swift:142:9: error: cannot find 'posix_spawn_file_actions_init' in scope
140 | }
141 |
142 | posix_spawn_file_actions_init(&childFDActions)
| `- error: cannot find 'posix_spawn_file_actions_init' in scope
143 | posix_spawn_file_actions_addopen(&childFDActions, outputPipe, stdoutLogPath, O_CREAT | O_TRUNC | O_WRONLY, ~0)
144 | posix_spawn_file_actions_addopen(&childFDActions, outerrPipe, stderrLogPath, O_CREAT | O_TRUNC | O_WRONLY, ~0)
/host/spi-builder-workspace/Sources/CommandExecutor.swift:143:9: error: cannot find 'posix_spawn_file_actions_addopen' in scope
141 |
142 | posix_spawn_file_actions_init(&childFDActions)
143 | posix_spawn_file_actions_addopen(&childFDActions, outputPipe, stdoutLogPath, O_CREAT | O_TRUNC | O_WRONLY, ~0)
| `- error: cannot find 'posix_spawn_file_actions_addopen' in scope
144 | posix_spawn_file_actions_addopen(&childFDActions, outerrPipe, stderrLogPath, O_CREAT | O_TRUNC | O_WRONLY, ~0)
145 | posix_spawn_file_actions_adddup2(&childFDActions, outputPipe, 1)
/host/spi-builder-workspace/Sources/CommandExecutor.swift:143:86: error: cannot find 'O_CREAT' in scope
141 |
142 | posix_spawn_file_actions_init(&childFDActions)
143 | posix_spawn_file_actions_addopen(&childFDActions, outputPipe, stdoutLogPath, O_CREAT | O_TRUNC | O_WRONLY, ~0)
| `- error: cannot find 'O_CREAT' in scope
144 | posix_spawn_file_actions_addopen(&childFDActions, outerrPipe, stderrLogPath, O_CREAT | O_TRUNC | O_WRONLY, ~0)
145 | posix_spawn_file_actions_adddup2(&childFDActions, outputPipe, 1)
/root/.swiftpm/swift-sdks/swift-wasm-6.1-RELEASE-wasm32-unknown-wasi.artifactbundle/6.1-RELEASE-wasm32-unknown-wasi/wasm32-unknown-wasi/WASI.sdk/include/wasm32-wasi/__header_fcntl.h:13:9: note: macro 'O_CREAT' unavailable: structure not supported
11 | #define O_RSYNC __WASI_FDFLAGS_RSYNC
12 | #define O_SYNC __WASI_FDFLAGS_SYNC
13 | #define O_CREAT (__WASI_OFLAGS_CREAT << 12)
| `- note: macro 'O_CREAT' unavailable: structure not supported
14 | #define O_DIRECTORY (__WASI_OFLAGS_DIRECTORY << 12)
15 | #define O_EXCL (__WASI_OFLAGS_EXCL << 12)
/host/spi-builder-workspace/Sources/CommandExecutor.swift:143:96: error: cannot find 'O_TRUNC' in scope
141 |
142 | posix_spawn_file_actions_init(&childFDActions)
143 | posix_spawn_file_actions_addopen(&childFDActions, outputPipe, stdoutLogPath, O_CREAT | O_TRUNC | O_WRONLY, ~0)
| `- error: cannot find 'O_TRUNC' in scope
144 | posix_spawn_file_actions_addopen(&childFDActions, outerrPipe, stderrLogPath, O_CREAT | O_TRUNC | O_WRONLY, ~0)
145 | posix_spawn_file_actions_adddup2(&childFDActions, outputPipe, 1)
/root/.swiftpm/swift-sdks/swift-wasm-6.1-RELEASE-wasm32-unknown-wasi.artifactbundle/6.1-RELEASE-wasm32-unknown-wasi/wasm32-unknown-wasi/WASI.sdk/include/wasm32-wasi/__header_fcntl.h:16:9: note: macro 'O_TRUNC' unavailable: structure not supported
14 | #define O_DIRECTORY (__WASI_OFLAGS_DIRECTORY << 12)
15 | #define O_EXCL (__WASI_OFLAGS_EXCL << 12)
16 | #define O_TRUNC (__WASI_OFLAGS_TRUNC << 12)
| `- note: macro 'O_TRUNC' unavailable: structure not supported
17 |
18 | #define O_NOFOLLOW (0x01000000)
/host/spi-builder-workspace/Sources/CommandExecutor.swift:143:104: error: binary operator '|' cannot be applied to operands of type 'UInt8' and 'Int32'
141 |
142 | posix_spawn_file_actions_init(&childFDActions)
143 | posix_spawn_file_actions_addopen(&childFDActions, outputPipe, stdoutLogPath, O_CREAT | O_TRUNC | O_WRONLY, ~0)
| |- error: binary operator '|' cannot be applied to operands of type 'UInt8' and 'Int32'
| `- note: overloads for '|' exist with these partially matching parameter lists: (Int32, Int32), (UInt8, UInt8)
144 | posix_spawn_file_actions_addopen(&childFDActions, outerrPipe, stderrLogPath, O_CREAT | O_TRUNC | O_WRONLY, ~0)
145 | posix_spawn_file_actions_adddup2(&childFDActions, outputPipe, 1)
/host/spi-builder-workspace/Sources/CommandExecutor.swift:144:9: error: cannot find 'posix_spawn_file_actions_addopen' in scope
142 | posix_spawn_file_actions_init(&childFDActions)
143 | posix_spawn_file_actions_addopen(&childFDActions, outputPipe, stdoutLogPath, O_CREAT | O_TRUNC | O_WRONLY, ~0)
144 | posix_spawn_file_actions_addopen(&childFDActions, outerrPipe, stderrLogPath, O_CREAT | O_TRUNC | O_WRONLY, ~0)
| `- error: cannot find 'posix_spawn_file_actions_addopen' in scope
145 | posix_spawn_file_actions_adddup2(&childFDActions, outputPipe, 1)
146 | posix_spawn_file_actions_adddup2(&childFDActions, outerrPipe, 2)
/host/spi-builder-workspace/Sources/CommandExecutor.swift:144:86: error: cannot find 'O_CREAT' in scope
142 | posix_spawn_file_actions_init(&childFDActions)
143 | posix_spawn_file_actions_addopen(&childFDActions, outputPipe, stdoutLogPath, O_CREAT | O_TRUNC | O_WRONLY, ~0)
144 | posix_spawn_file_actions_addopen(&childFDActions, outerrPipe, stderrLogPath, O_CREAT | O_TRUNC | O_WRONLY, ~0)
| `- error: cannot find 'O_CREAT' in scope
145 | posix_spawn_file_actions_adddup2(&childFDActions, outputPipe, 1)
146 | posix_spawn_file_actions_adddup2(&childFDActions, outerrPipe, 2)
/root/.swiftpm/swift-sdks/swift-wasm-6.1-RELEASE-wasm32-unknown-wasi.artifactbundle/6.1-RELEASE-wasm32-unknown-wasi/wasm32-unknown-wasi/WASI.sdk/include/wasm32-wasi/__header_fcntl.h:13:9: note: macro 'O_CREAT' unavailable: structure not supported
11 | #define O_RSYNC __WASI_FDFLAGS_RSYNC
12 | #define O_SYNC __WASI_FDFLAGS_SYNC
13 | #define O_CREAT (__WASI_OFLAGS_CREAT << 12)
| `- note: macro 'O_CREAT' unavailable: structure not supported
14 | #define O_DIRECTORY (__WASI_OFLAGS_DIRECTORY << 12)
15 | #define O_EXCL (__WASI_OFLAGS_EXCL << 12)
/host/spi-builder-workspace/Sources/CommandExecutor.swift:144:96: error: cannot find 'O_TRUNC' in scope
142 | posix_spawn_file_actions_init(&childFDActions)
143 | posix_spawn_file_actions_addopen(&childFDActions, outputPipe, stdoutLogPath, O_CREAT | O_TRUNC | O_WRONLY, ~0)
144 | posix_spawn_file_actions_addopen(&childFDActions, outerrPipe, stderrLogPath, O_CREAT | O_TRUNC | O_WRONLY, ~0)
| `- error: cannot find 'O_TRUNC' in scope
145 | posix_spawn_file_actions_adddup2(&childFDActions, outputPipe, 1)
146 | posix_spawn_file_actions_adddup2(&childFDActions, outerrPipe, 2)
/root/.swiftpm/swift-sdks/swift-wasm-6.1-RELEASE-wasm32-unknown-wasi.artifactbundle/6.1-RELEASE-wasm32-unknown-wasi/wasm32-unknown-wasi/WASI.sdk/include/wasm32-wasi/__header_fcntl.h:16:9: note: macro 'O_TRUNC' unavailable: structure not supported
14 | #define O_DIRECTORY (__WASI_OFLAGS_DIRECTORY << 12)
15 | #define O_EXCL (__WASI_OFLAGS_EXCL << 12)
16 | #define O_TRUNC (__WASI_OFLAGS_TRUNC << 12)
| `- note: macro 'O_TRUNC' unavailable: structure not supported
17 |
18 | #define O_NOFOLLOW (0x01000000)
/host/spi-builder-workspace/Sources/CommandExecutor.swift:144:104: error: binary operator '|' cannot be applied to operands of type 'UInt8' and 'Int32'
142 | posix_spawn_file_actions_init(&childFDActions)
143 | posix_spawn_file_actions_addopen(&childFDActions, outputPipe, stdoutLogPath, O_CREAT | O_TRUNC | O_WRONLY, ~0)
144 | posix_spawn_file_actions_addopen(&childFDActions, outerrPipe, stderrLogPath, O_CREAT | O_TRUNC | O_WRONLY, ~0)
| |- error: binary operator '|' cannot be applied to operands of type 'UInt8' and 'Int32'
| `- note: overloads for '|' exist with these partially matching parameter lists: (Int32, Int32), (UInt8, UInt8)
145 | posix_spawn_file_actions_adddup2(&childFDActions, outputPipe, 1)
146 | posix_spawn_file_actions_adddup2(&childFDActions, outerrPipe, 2)
/host/spi-builder-workspace/Sources/CommandExecutor.swift:145:9: error: cannot find 'posix_spawn_file_actions_adddup2' in scope
143 | posix_spawn_file_actions_addopen(&childFDActions, outputPipe, stdoutLogPath, O_CREAT | O_TRUNC | O_WRONLY, ~0)
144 | posix_spawn_file_actions_addopen(&childFDActions, outerrPipe, stderrLogPath, O_CREAT | O_TRUNC | O_WRONLY, ~0)
145 | posix_spawn_file_actions_adddup2(&childFDActions, outputPipe, 1)
| `- error: cannot find 'posix_spawn_file_actions_adddup2' in scope
146 | posix_spawn_file_actions_adddup2(&childFDActions, outerrPipe, 2)
147 |
/host/spi-builder-workspace/Sources/CommandExecutor.swift:146:9: error: cannot find 'posix_spawn_file_actions_adddup2' in scope
144 | posix_spawn_file_actions_addopen(&childFDActions, outerrPipe, stderrLogPath, O_CREAT | O_TRUNC | O_WRONLY, ~0)
145 | posix_spawn_file_actions_adddup2(&childFDActions, outputPipe, 1)
146 | posix_spawn_file_actions_adddup2(&childFDActions, outerrPipe, 2)
| `- error: cannot find 'posix_spawn_file_actions_adddup2' in scope
147 |
148 | let argvPointer: UnsafePointer<CChar>! = UnsafePointer(argv[0])
/host/spi-builder-workspace/Sources/CommandExecutor.swift:149:22: error: cannot find 'posix_spawn' in scope
147 |
148 | let argvPointer: UnsafePointer<CChar>! = UnsafePointer(argv[0])
149 | var result = posix_spawn(&pid, argvPointer, &childFDActions, nil, argv + [nil], ActualTaskExecutor.environment)
| `- error: cannot find 'posix_spawn' in scope
150 | guard result == 0 else { return (Int(result), "", "") }
151 | waitpid(pid, &result, 0)
/host/spi-builder-workspace/Sources/CommandExecutor.swift:149:70: error: 'nil' requires a contextual type
147 |
148 | let argvPointer: UnsafePointer<CChar>! = UnsafePointer(argv[0])
149 | var result = posix_spawn(&pid, argvPointer, &childFDActions, nil, argv + [nil], ActualTaskExecutor.environment)
| `- error: 'nil' requires a contextual type
150 | guard result == 0 else { return (Int(result), "", "") }
151 | waitpid(pid, &result, 0)
/host/spi-builder-workspace/Sources/CommandExecutor.swift:151:9: error: cannot find 'waitpid' in scope
149 | var result = posix_spawn(&pid, argvPointer, &childFDActions, nil, argv + [nil], ActualTaskExecutor.environment)
150 | guard result == 0 else { return (Int(result), "", "") }
151 | waitpid(pid, &result, 0)
| `- error: cannot find 'waitpid' in scope
152 |
153 | let (stdout, stderr) = read(outputPath: stdoutLogPath, outerrPath: stderrLogPath)
/host/spi-builder-workspace/Sources/CommandExecutor.swift:177:29: warning: result of call to 'createFile(atPath:contents:attributes:)' is unused
175 |
176 | private func write(atPath path: String, content: String) {
177 | FileManager.default.createFile(atPath: path, contents: content.data(using: .utf8), attributes: nil)
| `- warning: result of call to 'createFile(atPath:contents:attributes:)' is unused
178 | }
179 | }
[24/29] Compiling Swiftline Env.swift
/host/spi-builder-workspace/Sources/CommandExecutor.swift:9:45: error: cannot find type 'posix_spawn_file_actions_t' in scope
7 | typealias _posix_spawn_file_actions_t = posix_spawn_file_actions_t
8 | #else
9 | typealias _posix_spawn_file_actions_t = posix_spawn_file_actions_t?
| `- error: cannot find type 'posix_spawn_file_actions_t' in scope
10 | #endif
11 |
/host/spi-builder-workspace/Sources/CommandExecutor.swift:59:21: error: cannot find 'DispatchGroup' in scope
57 |
58 | func execute(_ commandParts: [String]) -> ExecutorReturnValue {
59 | let group = DispatchGroup()
| `- error: cannot find 'DispatchGroup' in scope
60 | group.enter()
61 |
/host/spi-builder-workspace/Sources/CommandExecutor.swift:62:20: error: cannot find 'Process' in scope
60 | group.enter()
61 |
62 | let task = Process()
| `- error: cannot find 'Process' in scope
63 | task.executableURL = URL(fileURLWithPath: "/usr/bin/env")
64 | task.arguments = commandParts
/host/spi-builder-workspace/Sources/CommandExecutor.swift:71:37: error: cannot infer type of closure parameter '_' without a type annotation
69 | task.standardOutput = stdoutPipe
70 | task.standardError = stderrPipe
71 | task.terminationHandler = { _ in group.leave() }
| `- error: cannot infer type of closure parameter '_' without a type annotation
72 | do {
73 | try task.run()
/host/spi-builder-workspace/Sources/CommandExecutor.swift:71:48: error: cannot infer return type for closure with multiple statements; add explicit type to disambiguate
69 | task.standardOutput = stdoutPipe
70 | task.standardError = stderrPipe
71 | task.terminationHandler = { _ in group.leave() }
| `- error: cannot infer return type for closure with multiple statements; add explicit type to disambiguate
72 | do {
73 | try task.run()
/host/spi-builder-workspace/Sources/CommandExecutor.swift:106:9: error: cannot find 'posix_spawn_file_actions_init' in scope
104 |
105 | var childFDActions = STDLIB._make_posix_spawn_file_actions_t()
106 | posix_spawn_file_actions_init(&childFDActions)
| `- error: cannot find 'posix_spawn_file_actions_init' in scope
107 | posix_spawn_file_actions_adddup2(&childFDActions, outputPipe[1], 1)
108 | posix_spawn_file_actions_adddup2(&childFDActions, outputPipe[1], 2)
/host/spi-builder-workspace/Sources/CommandExecutor.swift:107:9: error: cannot find 'posix_spawn_file_actions_adddup2' in scope
105 | var childFDActions = STDLIB._make_posix_spawn_file_actions_t()
106 | posix_spawn_file_actions_init(&childFDActions)
107 | posix_spawn_file_actions_adddup2(&childFDActions, outputPipe[1], 1)
| `- error: cannot find 'posix_spawn_file_actions_adddup2' in scope
108 | posix_spawn_file_actions_adddup2(&childFDActions, outputPipe[1], 2)
109 | posix_spawn_file_actions_addclose(&childFDActions, outputPipe[0])
/host/spi-builder-workspace/Sources/CommandExecutor.swift:108:9: error: cannot find 'posix_spawn_file_actions_adddup2' in scope
106 | posix_spawn_file_actions_init(&childFDActions)
107 | posix_spawn_file_actions_adddup2(&childFDActions, outputPipe[1], 1)
108 | posix_spawn_file_actions_adddup2(&childFDActions, outputPipe[1], 2)
| `- error: cannot find 'posix_spawn_file_actions_adddup2' in scope
109 | posix_spawn_file_actions_addclose(&childFDActions, outputPipe[0])
110 | posix_spawn_file_actions_addclose(&childFDActions, outputPipe[1])
/host/spi-builder-workspace/Sources/CommandExecutor.swift:109:9: error: cannot find 'posix_spawn_file_actions_addclose' in scope
107 | posix_spawn_file_actions_adddup2(&childFDActions, outputPipe[1], 1)
108 | posix_spawn_file_actions_adddup2(&childFDActions, outputPipe[1], 2)
109 | posix_spawn_file_actions_addclose(&childFDActions, outputPipe[0])
| `- error: cannot find 'posix_spawn_file_actions_addclose' in scope
110 | posix_spawn_file_actions_addclose(&childFDActions, outputPipe[1])
111 |
/host/spi-builder-workspace/Sources/CommandExecutor.swift:110:9: error: cannot find 'posix_spawn_file_actions_addclose' in scope
108 | posix_spawn_file_actions_adddup2(&childFDActions, outputPipe[1], 2)
109 | posix_spawn_file_actions_addclose(&childFDActions, outputPipe[0])
110 | posix_spawn_file_actions_addclose(&childFDActions, outputPipe[1])
| `- error: cannot find 'posix_spawn_file_actions_addclose' in scope
111 |
112 | var pid: pid_t = 0
/host/spi-builder-workspace/Sources/CommandExecutor.swift:114:22: error: cannot find 'posix_spawn' in scope
112 | var pid: pid_t = 0
113 | let argvPointer: UnsafePointer<CChar>! = UnsafePointer(argv[0])
114 | let result = posix_spawn(&pid, argvPointer, &childFDActions, nil, argv + [nil], ActualTaskExecutor.environment)
| `- error: cannot find 'posix_spawn' in scope
115 |
116 | return (Int(result), "", "")
/host/spi-builder-workspace/Sources/CommandExecutor.swift:114:70: error: 'nil' requires a contextual type
112 | var pid: pid_t = 0
113 | let argvPointer: UnsafePointer<CChar>! = UnsafePointer(argv[0])
114 | let result = posix_spawn(&pid, argvPointer, &childFDActions, nil, argv + [nil], ActualTaskExecutor.environment)
| `- error: 'nil' requires a contextual type
115 |
116 | return (Int(result), "", "")
/host/spi-builder-workspace/Sources/CommandExecutor.swift:137:13: error: cannot find 'posix_spawn_file_actions_addclose' in scope
135 | defer {
136 | for case let arg? in argv { free(arg) }
137 | posix_spawn_file_actions_addclose(&childFDActions, outputPipe)
| `- error: cannot find 'posix_spawn_file_actions_addclose' in scope
138 | posix_spawn_file_actions_addclose(&childFDActions, outerrPipe)
139 | posix_spawn_file_actions_destroy(&childFDActions)
/host/spi-builder-workspace/Sources/CommandExecutor.swift:138:13: error: cannot find 'posix_spawn_file_actions_addclose' in scope
136 | for case let arg? in argv { free(arg) }
137 | posix_spawn_file_actions_addclose(&childFDActions, outputPipe)
138 | posix_spawn_file_actions_addclose(&childFDActions, outerrPipe)
| `- error: cannot find 'posix_spawn_file_actions_addclose' in scope
139 | posix_spawn_file_actions_destroy(&childFDActions)
140 | }
/host/spi-builder-workspace/Sources/CommandExecutor.swift:139:13: error: cannot find 'posix_spawn_file_actions_destroy' in scope
137 | posix_spawn_file_actions_addclose(&childFDActions, outputPipe)
138 | posix_spawn_file_actions_addclose(&childFDActions, outerrPipe)
139 | posix_spawn_file_actions_destroy(&childFDActions)
| `- error: cannot find 'posix_spawn_file_actions_destroy' in scope
140 | }
141 |
/host/spi-builder-workspace/Sources/CommandExecutor.swift:142:9: error: cannot find 'posix_spawn_file_actions_init' in scope
140 | }
141 |
142 | posix_spawn_file_actions_init(&childFDActions)
| `- error: cannot find 'posix_spawn_file_actions_init' in scope
143 | posix_spawn_file_actions_addopen(&childFDActions, outputPipe, stdoutLogPath, O_CREAT | O_TRUNC | O_WRONLY, ~0)
144 | posix_spawn_file_actions_addopen(&childFDActions, outerrPipe, stderrLogPath, O_CREAT | O_TRUNC | O_WRONLY, ~0)
/host/spi-builder-workspace/Sources/CommandExecutor.swift:143:9: error: cannot find 'posix_spawn_file_actions_addopen' in scope
141 |
142 | posix_spawn_file_actions_init(&childFDActions)
143 | posix_spawn_file_actions_addopen(&childFDActions, outputPipe, stdoutLogPath, O_CREAT | O_TRUNC | O_WRONLY, ~0)
| `- error: cannot find 'posix_spawn_file_actions_addopen' in scope
144 | posix_spawn_file_actions_addopen(&childFDActions, outerrPipe, stderrLogPath, O_CREAT | O_TRUNC | O_WRONLY, ~0)
145 | posix_spawn_file_actions_adddup2(&childFDActions, outputPipe, 1)
/host/spi-builder-workspace/Sources/CommandExecutor.swift:143:86: error: cannot find 'O_CREAT' in scope
141 |
142 | posix_spawn_file_actions_init(&childFDActions)
143 | posix_spawn_file_actions_addopen(&childFDActions, outputPipe, stdoutLogPath, O_CREAT | O_TRUNC | O_WRONLY, ~0)
| `- error: cannot find 'O_CREAT' in scope
144 | posix_spawn_file_actions_addopen(&childFDActions, outerrPipe, stderrLogPath, O_CREAT | O_TRUNC | O_WRONLY, ~0)
145 | posix_spawn_file_actions_adddup2(&childFDActions, outputPipe, 1)
/root/.swiftpm/swift-sdks/swift-wasm-6.1-RELEASE-wasm32-unknown-wasi.artifactbundle/6.1-RELEASE-wasm32-unknown-wasi/wasm32-unknown-wasi/WASI.sdk/include/wasm32-wasi/__header_fcntl.h:13:9: note: macro 'O_CREAT' unavailable: structure not supported
11 | #define O_RSYNC __WASI_FDFLAGS_RSYNC
12 | #define O_SYNC __WASI_FDFLAGS_SYNC
13 | #define O_CREAT (__WASI_OFLAGS_CREAT << 12)
| `- note: macro 'O_CREAT' unavailable: structure not supported
14 | #define O_DIRECTORY (__WASI_OFLAGS_DIRECTORY << 12)
15 | #define O_EXCL (__WASI_OFLAGS_EXCL << 12)
/host/spi-builder-workspace/Sources/CommandExecutor.swift:143:96: error: cannot find 'O_TRUNC' in scope
141 |
142 | posix_spawn_file_actions_init(&childFDActions)
143 | posix_spawn_file_actions_addopen(&childFDActions, outputPipe, stdoutLogPath, O_CREAT | O_TRUNC | O_WRONLY, ~0)
| `- error: cannot find 'O_TRUNC' in scope
144 | posix_spawn_file_actions_addopen(&childFDActions, outerrPipe, stderrLogPath, O_CREAT | O_TRUNC | O_WRONLY, ~0)
145 | posix_spawn_file_actions_adddup2(&childFDActions, outputPipe, 1)
/root/.swiftpm/swift-sdks/swift-wasm-6.1-RELEASE-wasm32-unknown-wasi.artifactbundle/6.1-RELEASE-wasm32-unknown-wasi/wasm32-unknown-wasi/WASI.sdk/include/wasm32-wasi/__header_fcntl.h:16:9: note: macro 'O_TRUNC' unavailable: structure not supported
14 | #define O_DIRECTORY (__WASI_OFLAGS_DIRECTORY << 12)
15 | #define O_EXCL (__WASI_OFLAGS_EXCL << 12)
16 | #define O_TRUNC (__WASI_OFLAGS_TRUNC << 12)
| `- note: macro 'O_TRUNC' unavailable: structure not supported
17 |
18 | #define O_NOFOLLOW (0x01000000)
/host/spi-builder-workspace/Sources/CommandExecutor.swift:143:104: error: binary operator '|' cannot be applied to operands of type 'UInt8' and 'Int32'
141 |
142 | posix_spawn_file_actions_init(&childFDActions)
143 | posix_spawn_file_actions_addopen(&childFDActions, outputPipe, stdoutLogPath, O_CREAT | O_TRUNC | O_WRONLY, ~0)
| |- error: binary operator '|' cannot be applied to operands of type 'UInt8' and 'Int32'
| `- note: overloads for '|' exist with these partially matching parameter lists: (Int32, Int32), (UInt8, UInt8)
144 | posix_spawn_file_actions_addopen(&childFDActions, outerrPipe, stderrLogPath, O_CREAT | O_TRUNC | O_WRONLY, ~0)
145 | posix_spawn_file_actions_adddup2(&childFDActions, outputPipe, 1)
/host/spi-builder-workspace/Sources/CommandExecutor.swift:144:9: error: cannot find 'posix_spawn_file_actions_addopen' in scope
142 | posix_spawn_file_actions_init(&childFDActions)
143 | posix_spawn_file_actions_addopen(&childFDActions, outputPipe, stdoutLogPath, O_CREAT | O_TRUNC | O_WRONLY, ~0)
144 | posix_spawn_file_actions_addopen(&childFDActions, outerrPipe, stderrLogPath, O_CREAT | O_TRUNC | O_WRONLY, ~0)
| `- error: cannot find 'posix_spawn_file_actions_addopen' in scope
145 | posix_spawn_file_actions_adddup2(&childFDActions, outputPipe, 1)
146 | posix_spawn_file_actions_adddup2(&childFDActions, outerrPipe, 2)
/host/spi-builder-workspace/Sources/CommandExecutor.swift:144:86: error: cannot find 'O_CREAT' in scope
142 | posix_spawn_file_actions_init(&childFDActions)
143 | posix_spawn_file_actions_addopen(&childFDActions, outputPipe, stdoutLogPath, O_CREAT | O_TRUNC | O_WRONLY, ~0)
144 | posix_spawn_file_actions_addopen(&childFDActions, outerrPipe, stderrLogPath, O_CREAT | O_TRUNC | O_WRONLY, ~0)
| `- error: cannot find 'O_CREAT' in scope
145 | posix_spawn_file_actions_adddup2(&childFDActions, outputPipe, 1)
146 | posix_spawn_file_actions_adddup2(&childFDActions, outerrPipe, 2)
/root/.swiftpm/swift-sdks/swift-wasm-6.1-RELEASE-wasm32-unknown-wasi.artifactbundle/6.1-RELEASE-wasm32-unknown-wasi/wasm32-unknown-wasi/WASI.sdk/include/wasm32-wasi/__header_fcntl.h:13:9: note: macro 'O_CREAT' unavailable: structure not supported
11 | #define O_RSYNC __WASI_FDFLAGS_RSYNC
12 | #define O_SYNC __WASI_FDFLAGS_SYNC
13 | #define O_CREAT (__WASI_OFLAGS_CREAT << 12)
| `- note: macro 'O_CREAT' unavailable: structure not supported
14 | #define O_DIRECTORY (__WASI_OFLAGS_DIRECTORY << 12)
15 | #define O_EXCL (__WASI_OFLAGS_EXCL << 12)
/host/spi-builder-workspace/Sources/CommandExecutor.swift:144:96: error: cannot find 'O_TRUNC' in scope
142 | posix_spawn_file_actions_init(&childFDActions)
143 | posix_spawn_file_actions_addopen(&childFDActions, outputPipe, stdoutLogPath, O_CREAT | O_TRUNC | O_WRONLY, ~0)
144 | posix_spawn_file_actions_addopen(&childFDActions, outerrPipe, stderrLogPath, O_CREAT | O_TRUNC | O_WRONLY, ~0)
| `- error: cannot find 'O_TRUNC' in scope
145 | posix_spawn_file_actions_adddup2(&childFDActions, outputPipe, 1)
146 | posix_spawn_file_actions_adddup2(&childFDActions, outerrPipe, 2)
/root/.swiftpm/swift-sdks/swift-wasm-6.1-RELEASE-wasm32-unknown-wasi.artifactbundle/6.1-RELEASE-wasm32-unknown-wasi/wasm32-unknown-wasi/WASI.sdk/include/wasm32-wasi/__header_fcntl.h:16:9: note: macro 'O_TRUNC' unavailable: structure not supported
14 | #define O_DIRECTORY (__WASI_OFLAGS_DIRECTORY << 12)
15 | #define O_EXCL (__WASI_OFLAGS_EXCL << 12)
16 | #define O_TRUNC (__WASI_OFLAGS_TRUNC << 12)
| `- note: macro 'O_TRUNC' unavailable: structure not supported
17 |
18 | #define O_NOFOLLOW (0x01000000)
/host/spi-builder-workspace/Sources/CommandExecutor.swift:144:104: error: binary operator '|' cannot be applied to operands of type 'UInt8' and 'Int32'
142 | posix_spawn_file_actions_init(&childFDActions)
143 | posix_spawn_file_actions_addopen(&childFDActions, outputPipe, stdoutLogPath, O_CREAT | O_TRUNC | O_WRONLY, ~0)
144 | posix_spawn_file_actions_addopen(&childFDActions, outerrPipe, stderrLogPath, O_CREAT | O_TRUNC | O_WRONLY, ~0)
| |- error: binary operator '|' cannot be applied to operands of type 'UInt8' and 'Int32'
| `- note: overloads for '|' exist with these partially matching parameter lists: (Int32, Int32), (UInt8, UInt8)
145 | posix_spawn_file_actions_adddup2(&childFDActions, outputPipe, 1)
146 | posix_spawn_file_actions_adddup2(&childFDActions, outerrPipe, 2)
/host/spi-builder-workspace/Sources/CommandExecutor.swift:145:9: error: cannot find 'posix_spawn_file_actions_adddup2' in scope
143 | posix_spawn_file_actions_addopen(&childFDActions, outputPipe, stdoutLogPath, O_CREAT | O_TRUNC | O_WRONLY, ~0)
144 | posix_spawn_file_actions_addopen(&childFDActions, outerrPipe, stderrLogPath, O_CREAT | O_TRUNC | O_WRONLY, ~0)
145 | posix_spawn_file_actions_adddup2(&childFDActions, outputPipe, 1)
| `- error: cannot find 'posix_spawn_file_actions_adddup2' in scope
146 | posix_spawn_file_actions_adddup2(&childFDActions, outerrPipe, 2)
147 |
/host/spi-builder-workspace/Sources/CommandExecutor.swift:146:9: error: cannot find 'posix_spawn_file_actions_adddup2' in scope
144 | posix_spawn_file_actions_addopen(&childFDActions, outerrPipe, stderrLogPath, O_CREAT | O_TRUNC | O_WRONLY, ~0)
145 | posix_spawn_file_actions_adddup2(&childFDActions, outputPipe, 1)
146 | posix_spawn_file_actions_adddup2(&childFDActions, outerrPipe, 2)
| `- error: cannot find 'posix_spawn_file_actions_adddup2' in scope
147 |
148 | let argvPointer: UnsafePointer<CChar>! = UnsafePointer(argv[0])
/host/spi-builder-workspace/Sources/CommandExecutor.swift:149:22: error: cannot find 'posix_spawn' in scope
147 |
148 | let argvPointer: UnsafePointer<CChar>! = UnsafePointer(argv[0])
149 | var result = posix_spawn(&pid, argvPointer, &childFDActions, nil, argv + [nil], ActualTaskExecutor.environment)
| `- error: cannot find 'posix_spawn' in scope
150 | guard result == 0 else { return (Int(result), "", "") }
151 | waitpid(pid, &result, 0)
/host/spi-builder-workspace/Sources/CommandExecutor.swift:149:70: error: 'nil' requires a contextual type
147 |
148 | let argvPointer: UnsafePointer<CChar>! = UnsafePointer(argv[0])
149 | var result = posix_spawn(&pid, argvPointer, &childFDActions, nil, argv + [nil], ActualTaskExecutor.environment)
| `- error: 'nil' requires a contextual type
150 | guard result == 0 else { return (Int(result), "", "") }
151 | waitpid(pid, &result, 0)
/host/spi-builder-workspace/Sources/CommandExecutor.swift:151:9: error: cannot find 'waitpid' in scope
149 | var result = posix_spawn(&pid, argvPointer, &childFDActions, nil, argv + [nil], ActualTaskExecutor.environment)
150 | guard result == 0 else { return (Int(result), "", "") }
151 | waitpid(pid, &result, 0)
| `- error: cannot find 'waitpid' in scope
152 |
153 | let (stdout, stderr) = read(outputPath: stdoutLogPath, outerrPath: stderrLogPath)
/host/spi-builder-workspace/Sources/CommandExecutor.swift:177:29: warning: result of call to 'createFile(atPath:contents:attributes:)' is unused
175 |
176 | private func write(atPath path: String, content: String) {
177 | FileManager.default.createFile(atPath: path, contents: content.data(using: .utf8), attributes: nil)
| `- warning: result of call to 'createFile(atPath:contents:attributes:)' is unused
178 | }
179 | }
[25/29] Compiling Swiftline ProcessInfo.swift
/host/spi-builder-workspace/Sources/CommandExecutor.swift:9:45: error: cannot find type 'posix_spawn_file_actions_t' in scope
7 | typealias _posix_spawn_file_actions_t = posix_spawn_file_actions_t
8 | #else
9 | typealias _posix_spawn_file_actions_t = posix_spawn_file_actions_t?
| `- error: cannot find type 'posix_spawn_file_actions_t' in scope
10 | #endif
11 |
/host/spi-builder-workspace/Sources/CommandExecutor.swift:59:21: error: cannot find 'DispatchGroup' in scope
57 |
58 | func execute(_ commandParts: [String]) -> ExecutorReturnValue {
59 | let group = DispatchGroup()
| `- error: cannot find 'DispatchGroup' in scope
60 | group.enter()
61 |
/host/spi-builder-workspace/Sources/CommandExecutor.swift:62:20: error: cannot find 'Process' in scope
60 | group.enter()
61 |
62 | let task = Process()
| `- error: cannot find 'Process' in scope
63 | task.executableURL = URL(fileURLWithPath: "/usr/bin/env")
64 | task.arguments = commandParts
/host/spi-builder-workspace/Sources/CommandExecutor.swift:71:37: error: cannot infer type of closure parameter '_' without a type annotation
69 | task.standardOutput = stdoutPipe
70 | task.standardError = stderrPipe
71 | task.terminationHandler = { _ in group.leave() }
| `- error: cannot infer type of closure parameter '_' without a type annotation
72 | do {
73 | try task.run()
/host/spi-builder-workspace/Sources/CommandExecutor.swift:71:48: error: cannot infer return type for closure with multiple statements; add explicit type to disambiguate
69 | task.standardOutput = stdoutPipe
70 | task.standardError = stderrPipe
71 | task.terminationHandler = { _ in group.leave() }
| `- error: cannot infer return type for closure with multiple statements; add explicit type to disambiguate
72 | do {
73 | try task.run()
/host/spi-builder-workspace/Sources/CommandExecutor.swift:106:9: error: cannot find 'posix_spawn_file_actions_init' in scope
104 |
105 | var childFDActions = STDLIB._make_posix_spawn_file_actions_t()
106 | posix_spawn_file_actions_init(&childFDActions)
| `- error: cannot find 'posix_spawn_file_actions_init' in scope
107 | posix_spawn_file_actions_adddup2(&childFDActions, outputPipe[1], 1)
108 | posix_spawn_file_actions_adddup2(&childFDActions, outputPipe[1], 2)
/host/spi-builder-workspace/Sources/CommandExecutor.swift:107:9: error: cannot find 'posix_spawn_file_actions_adddup2' in scope
105 | var childFDActions = STDLIB._make_posix_spawn_file_actions_t()
106 | posix_spawn_file_actions_init(&childFDActions)
107 | posix_spawn_file_actions_adddup2(&childFDActions, outputPipe[1], 1)
| `- error: cannot find 'posix_spawn_file_actions_adddup2' in scope
108 | posix_spawn_file_actions_adddup2(&childFDActions, outputPipe[1], 2)
109 | posix_spawn_file_actions_addclose(&childFDActions, outputPipe[0])
/host/spi-builder-workspace/Sources/CommandExecutor.swift:108:9: error: cannot find 'posix_spawn_file_actions_adddup2' in scope
106 | posix_spawn_file_actions_init(&childFDActions)
107 | posix_spawn_file_actions_adddup2(&childFDActions, outputPipe[1], 1)
108 | posix_spawn_file_actions_adddup2(&childFDActions, outputPipe[1], 2)
| `- error: cannot find 'posix_spawn_file_actions_adddup2' in scope
109 | posix_spawn_file_actions_addclose(&childFDActions, outputPipe[0])
110 | posix_spawn_file_actions_addclose(&childFDActions, outputPipe[1])
/host/spi-builder-workspace/Sources/CommandExecutor.swift:109:9: error: cannot find 'posix_spawn_file_actions_addclose' in scope
107 | posix_spawn_file_actions_adddup2(&childFDActions, outputPipe[1], 1)
108 | posix_spawn_file_actions_adddup2(&childFDActions, outputPipe[1], 2)
109 | posix_spawn_file_actions_addclose(&childFDActions, outputPipe[0])
| `- error: cannot find 'posix_spawn_file_actions_addclose' in scope
110 | posix_spawn_file_actions_addclose(&childFDActions, outputPipe[1])
111 |
/host/spi-builder-workspace/Sources/CommandExecutor.swift:110:9: error: cannot find 'posix_spawn_file_actions_addclose' in scope
108 | posix_spawn_file_actions_adddup2(&childFDActions, outputPipe[1], 2)
109 | posix_spawn_file_actions_addclose(&childFDActions, outputPipe[0])
110 | posix_spawn_file_actions_addclose(&childFDActions, outputPipe[1])
| `- error: cannot find 'posix_spawn_file_actions_addclose' in scope
111 |
112 | var pid: pid_t = 0
/host/spi-builder-workspace/Sources/CommandExecutor.swift:114:22: error: cannot find 'posix_spawn' in scope
112 | var pid: pid_t = 0
113 | let argvPointer: UnsafePointer<CChar>! = UnsafePointer(argv[0])
114 | let result = posix_spawn(&pid, argvPointer, &childFDActions, nil, argv + [nil], ActualTaskExecutor.environment)
| `- error: cannot find 'posix_spawn' in scope
115 |
116 | return (Int(result), "", "")
/host/spi-builder-workspace/Sources/CommandExecutor.swift:114:70: error: 'nil' requires a contextual type
112 | var pid: pid_t = 0
113 | let argvPointer: UnsafePointer<CChar>! = UnsafePointer(argv[0])
114 | let result = posix_spawn(&pid, argvPointer, &childFDActions, nil, argv + [nil], ActualTaskExecutor.environment)
| `- error: 'nil' requires a contextual type
115 |
116 | return (Int(result), "", "")
/host/spi-builder-workspace/Sources/CommandExecutor.swift:137:13: error: cannot find 'posix_spawn_file_actions_addclose' in scope
135 | defer {
136 | for case let arg? in argv { free(arg) }
137 | posix_spawn_file_actions_addclose(&childFDActions, outputPipe)
| `- error: cannot find 'posix_spawn_file_actions_addclose' in scope
138 | posix_spawn_file_actions_addclose(&childFDActions, outerrPipe)
139 | posix_spawn_file_actions_destroy(&childFDActions)
/host/spi-builder-workspace/Sources/CommandExecutor.swift:138:13: error: cannot find 'posix_spawn_file_actions_addclose' in scope
136 | for case let arg? in argv { free(arg) }
137 | posix_spawn_file_actions_addclose(&childFDActions, outputPipe)
138 | posix_spawn_file_actions_addclose(&childFDActions, outerrPipe)
| `- error: cannot find 'posix_spawn_file_actions_addclose' in scope
139 | posix_spawn_file_actions_destroy(&childFDActions)
140 | }
/host/spi-builder-workspace/Sources/CommandExecutor.swift:139:13: error: cannot find 'posix_spawn_file_actions_destroy' in scope
137 | posix_spawn_file_actions_addclose(&childFDActions, outputPipe)
138 | posix_spawn_file_actions_addclose(&childFDActions, outerrPipe)
139 | posix_spawn_file_actions_destroy(&childFDActions)
| `- error: cannot find 'posix_spawn_file_actions_destroy' in scope
140 | }
141 |
/host/spi-builder-workspace/Sources/CommandExecutor.swift:142:9: error: cannot find 'posix_spawn_file_actions_init' in scope
140 | }
141 |
142 | posix_spawn_file_actions_init(&childFDActions)
| `- error: cannot find 'posix_spawn_file_actions_init' in scope
143 | posix_spawn_file_actions_addopen(&childFDActions, outputPipe, stdoutLogPath, O_CREAT | O_TRUNC | O_WRONLY, ~0)
144 | posix_spawn_file_actions_addopen(&childFDActions, outerrPipe, stderrLogPath, O_CREAT | O_TRUNC | O_WRONLY, ~0)
/host/spi-builder-workspace/Sources/CommandExecutor.swift:143:9: error: cannot find 'posix_spawn_file_actions_addopen' in scope
141 |
142 | posix_spawn_file_actions_init(&childFDActions)
143 | posix_spawn_file_actions_addopen(&childFDActions, outputPipe, stdoutLogPath, O_CREAT | O_TRUNC | O_WRONLY, ~0)
| `- error: cannot find 'posix_spawn_file_actions_addopen' in scope
144 | posix_spawn_file_actions_addopen(&childFDActions, outerrPipe, stderrLogPath, O_CREAT | O_TRUNC | O_WRONLY, ~0)
145 | posix_spawn_file_actions_adddup2(&childFDActions, outputPipe, 1)
/host/spi-builder-workspace/Sources/CommandExecutor.swift:143:86: error: cannot find 'O_CREAT' in scope
141 |
142 | posix_spawn_file_actions_init(&childFDActions)
143 | posix_spawn_file_actions_addopen(&childFDActions, outputPipe, stdoutLogPath, O_CREAT | O_TRUNC | O_WRONLY, ~0)
| `- error: cannot find 'O_CREAT' in scope
144 | posix_spawn_file_actions_addopen(&childFDActions, outerrPipe, stderrLogPath, O_CREAT | O_TRUNC | O_WRONLY, ~0)
145 | posix_spawn_file_actions_adddup2(&childFDActions, outputPipe, 1)
/root/.swiftpm/swift-sdks/swift-wasm-6.1-RELEASE-wasm32-unknown-wasi.artifactbundle/6.1-RELEASE-wasm32-unknown-wasi/wasm32-unknown-wasi/WASI.sdk/include/wasm32-wasi/__header_fcntl.h:13:9: note: macro 'O_CREAT' unavailable: structure not supported
11 | #define O_RSYNC __WASI_FDFLAGS_RSYNC
12 | #define O_SYNC __WASI_FDFLAGS_SYNC
13 | #define O_CREAT (__WASI_OFLAGS_CREAT << 12)
| `- note: macro 'O_CREAT' unavailable: structure not supported
14 | #define O_DIRECTORY (__WASI_OFLAGS_DIRECTORY << 12)
15 | #define O_EXCL (__WASI_OFLAGS_EXCL << 12)
/host/spi-builder-workspace/Sources/CommandExecutor.swift:143:96: error: cannot find 'O_TRUNC' in scope
141 |
142 | posix_spawn_file_actions_init(&childFDActions)
143 | posix_spawn_file_actions_addopen(&childFDActions, outputPipe, stdoutLogPath, O_CREAT | O_TRUNC | O_WRONLY, ~0)
| `- error: cannot find 'O_TRUNC' in scope
144 | posix_spawn_file_actions_addopen(&childFDActions, outerrPipe, stderrLogPath, O_CREAT | O_TRUNC | O_WRONLY, ~0)
145 | posix_spawn_file_actions_adddup2(&childFDActions, outputPipe, 1)
/root/.swiftpm/swift-sdks/swift-wasm-6.1-RELEASE-wasm32-unknown-wasi.artifactbundle/6.1-RELEASE-wasm32-unknown-wasi/wasm32-unknown-wasi/WASI.sdk/include/wasm32-wasi/__header_fcntl.h:16:9: note: macro 'O_TRUNC' unavailable: structure not supported
14 | #define O_DIRECTORY (__WASI_OFLAGS_DIRECTORY << 12)
15 | #define O_EXCL (__WASI_OFLAGS_EXCL << 12)
16 | #define O_TRUNC (__WASI_OFLAGS_TRUNC << 12)
| `- note: macro 'O_TRUNC' unavailable: structure not supported
17 |
18 | #define O_NOFOLLOW (0x01000000)
/host/spi-builder-workspace/Sources/CommandExecutor.swift:143:104: error: binary operator '|' cannot be applied to operands of type 'UInt8' and 'Int32'
141 |
142 | posix_spawn_file_actions_init(&childFDActions)
143 | posix_spawn_file_actions_addopen(&childFDActions, outputPipe, stdoutLogPath, O_CREAT | O_TRUNC | O_WRONLY, ~0)
| |- error: binary operator '|' cannot be applied to operands of type 'UInt8' and 'Int32'
| `- note: overloads for '|' exist with these partially matching parameter lists: (Int32, Int32), (UInt8, UInt8)
144 | posix_spawn_file_actions_addopen(&childFDActions, outerrPipe, stderrLogPath, O_CREAT | O_TRUNC | O_WRONLY, ~0)
145 | posix_spawn_file_actions_adddup2(&childFDActions, outputPipe, 1)
/host/spi-builder-workspace/Sources/CommandExecutor.swift:144:9: error: cannot find 'posix_spawn_file_actions_addopen' in scope
142 | posix_spawn_file_actions_init(&childFDActions)
143 | posix_spawn_file_actions_addopen(&childFDActions, outputPipe, stdoutLogPath, O_CREAT | O_TRUNC | O_WRONLY, ~0)
144 | posix_spawn_file_actions_addopen(&childFDActions, outerrPipe, stderrLogPath, O_CREAT | O_TRUNC | O_WRONLY, ~0)
| `- error: cannot find 'posix_spawn_file_actions_addopen' in scope
145 | posix_spawn_file_actions_adddup2(&childFDActions, outputPipe, 1)
146 | posix_spawn_file_actions_adddup2(&childFDActions, outerrPipe, 2)
/host/spi-builder-workspace/Sources/CommandExecutor.swift:144:86: error: cannot find 'O_CREAT' in scope
142 | posix_spawn_file_actions_init(&childFDActions)
143 | posix_spawn_file_actions_addopen(&childFDActions, outputPipe, stdoutLogPath, O_CREAT | O_TRUNC | O_WRONLY, ~0)
144 | posix_spawn_file_actions_addopen(&childFDActions, outerrPipe, stderrLogPath, O_CREAT | O_TRUNC | O_WRONLY, ~0)
| `- error: cannot find 'O_CREAT' in scope
145 | posix_spawn_file_actions_adddup2(&childFDActions, outputPipe, 1)
146 | posix_spawn_file_actions_adddup2(&childFDActions, outerrPipe, 2)
/root/.swiftpm/swift-sdks/swift-wasm-6.1-RELEASE-wasm32-unknown-wasi.artifactbundle/6.1-RELEASE-wasm32-unknown-wasi/wasm32-unknown-wasi/WASI.sdk/include/wasm32-wasi/__header_fcntl.h:13:9: note: macro 'O_CREAT' unavailable: structure not supported
11 | #define O_RSYNC __WASI_FDFLAGS_RSYNC
12 | #define O_SYNC __WASI_FDFLAGS_SYNC
13 | #define O_CREAT (__WASI_OFLAGS_CREAT << 12)
| `- note: macro 'O_CREAT' unavailable: structure not supported
14 | #define O_DIRECTORY (__WASI_OFLAGS_DIRECTORY << 12)
15 | #define O_EXCL (__WASI_OFLAGS_EXCL << 12)
/host/spi-builder-workspace/Sources/CommandExecutor.swift:144:96: error: cannot find 'O_TRUNC' in scope
142 | posix_spawn_file_actions_init(&childFDActions)
143 | posix_spawn_file_actions_addopen(&childFDActions, outputPipe, stdoutLogPath, O_CREAT | O_TRUNC | O_WRONLY, ~0)
144 | posix_spawn_file_actions_addopen(&childFDActions, outerrPipe, stderrLogPath, O_CREAT | O_TRUNC | O_WRONLY, ~0)
| `- error: cannot find 'O_TRUNC' in scope
145 | posix_spawn_file_actions_adddup2(&childFDActions, outputPipe, 1)
146 | posix_spawn_file_actions_adddup2(&childFDActions, outerrPipe, 2)
/root/.swiftpm/swift-sdks/swift-wasm-6.1-RELEASE-wasm32-unknown-wasi.artifactbundle/6.1-RELEASE-wasm32-unknown-wasi/wasm32-unknown-wasi/WASI.sdk/include/wasm32-wasi/__header_fcntl.h:16:9: note: macro 'O_TRUNC' unavailable: structure not supported
14 | #define O_DIRECTORY (__WASI_OFLAGS_DIRECTORY << 12)
15 | #define O_EXCL (__WASI_OFLAGS_EXCL << 12)
16 | #define O_TRUNC (__WASI_OFLAGS_TRUNC << 12)
| `- note: macro 'O_TRUNC' unavailable: structure not supported
17 |
18 | #define O_NOFOLLOW (0x01000000)
/host/spi-builder-workspace/Sources/CommandExecutor.swift:144:104: error: binary operator '|' cannot be applied to operands of type 'UInt8' and 'Int32'
142 | posix_spawn_file_actions_init(&childFDActions)
143 | posix_spawn_file_actions_addopen(&childFDActions, outputPipe, stdoutLogPath, O_CREAT | O_TRUNC | O_WRONLY, ~0)
144 | posix_spawn_file_actions_addopen(&childFDActions, outerrPipe, stderrLogPath, O_CREAT | O_TRUNC | O_WRONLY, ~0)
| |- error: binary operator '|' cannot be applied to operands of type 'UInt8' and 'Int32'
| `- note: overloads for '|' exist with these partially matching parameter lists: (Int32, Int32), (UInt8, UInt8)
145 | posix_spawn_file_actions_adddup2(&childFDActions, outputPipe, 1)
146 | posix_spawn_file_actions_adddup2(&childFDActions, outerrPipe, 2)
/host/spi-builder-workspace/Sources/CommandExecutor.swift:145:9: error: cannot find 'posix_spawn_file_actions_adddup2' in scope
143 | posix_spawn_file_actions_addopen(&childFDActions, outputPipe, stdoutLogPath, O_CREAT | O_TRUNC | O_WRONLY, ~0)
144 | posix_spawn_file_actions_addopen(&childFDActions, outerrPipe, stderrLogPath, O_CREAT | O_TRUNC | O_WRONLY, ~0)
145 | posix_spawn_file_actions_adddup2(&childFDActions, outputPipe, 1)
| `- error: cannot find 'posix_spawn_file_actions_adddup2' in scope
146 | posix_spawn_file_actions_adddup2(&childFDActions, outerrPipe, 2)
147 |
/host/spi-builder-workspace/Sources/CommandExecutor.swift:146:9: error: cannot find 'posix_spawn_file_actions_adddup2' in scope
144 | posix_spawn_file_actions_addopen(&childFDActions, outerrPipe, stderrLogPath, O_CREAT | O_TRUNC | O_WRONLY, ~0)
145 | posix_spawn_file_actions_adddup2(&childFDActions, outputPipe, 1)
146 | posix_spawn_file_actions_adddup2(&childFDActions, outerrPipe, 2)
| `- error: cannot find 'posix_spawn_file_actions_adddup2' in scope
147 |
148 | let argvPointer: UnsafePointer<CChar>! = UnsafePointer(argv[0])
/host/spi-builder-workspace/Sources/CommandExecutor.swift:149:22: error: cannot find 'posix_spawn' in scope
147 |
148 | let argvPointer: UnsafePointer<CChar>! = UnsafePointer(argv[0])
149 | var result = posix_spawn(&pid, argvPointer, &childFDActions, nil, argv + [nil], ActualTaskExecutor.environment)
| `- error: cannot find 'posix_spawn' in scope
150 | guard result == 0 else { return (Int(result), "", "") }
151 | waitpid(pid, &result, 0)
/host/spi-builder-workspace/Sources/CommandExecutor.swift:149:70: error: 'nil' requires a contextual type
147 |
148 | let argvPointer: UnsafePointer<CChar>! = UnsafePointer(argv[0])
149 | var result = posix_spawn(&pid, argvPointer, &childFDActions, nil, argv + [nil], ActualTaskExecutor.environment)
| `- error: 'nil' requires a contextual type
150 | guard result == 0 else { return (Int(result), "", "") }
151 | waitpid(pid, &result, 0)
/host/spi-builder-workspace/Sources/CommandExecutor.swift:151:9: error: cannot find 'waitpid' in scope
149 | var result = posix_spawn(&pid, argvPointer, &childFDActions, nil, argv + [nil], ActualTaskExecutor.environment)
150 | guard result == 0 else { return (Int(result), "", "") }
151 | waitpid(pid, &result, 0)
| `- error: cannot find 'waitpid' in scope
152 |
153 | let (stdout, stderr) = read(outputPath: stdoutLogPath, outerrPath: stderrLogPath)
/host/spi-builder-workspace/Sources/CommandExecutor.swift:177:29: warning: result of call to 'createFile(atPath:contents:attributes:)' is unused
175 |
176 | private func write(atPath path: String, content: String) {
177 | FileManager.default.createFile(atPath: path, contents: content.data(using: .utf8), attributes: nil)
| `- warning: result of call to 'createFile(atPath:contents:attributes:)' is unused
178 | }
179 | }
[26/29] Compiling Swiftline AskerValidator.swift
[27/29] Compiling Swiftline Choose.swift
[28/29] Compiling Swiftline ChooseSettings.swift
[29/29] Compiling Swiftline Colorizer.swift
BUILD FAILURE 6.1 wasm