Build Information
Failed to build CommandShell, reference v2.1.5 (63f783
), with Swift 6.1 for Wasm on 28 May 2025 08:54:04 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4606859-2":/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/elegantchaos/CommandShell.git
Reference: v2.1.5
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/elegantchaos/CommandShell
* tag v2.1.5 -> FETCH_HEAD
HEAD is now at 63f783a Added better version output, and --about command.
Cloned https://github.com/elegantchaos/CommandShell.git
Revision (git rev-parse @):
63f783a6546fed0723b2eb8b8fa12e27277b0ea2
SUCCESS checkout https://github.com/elegantchaos/CommandShell.git at v2.1.5
========================================
Build
========================================
Selected platform: wasm
Swift version: 6.1
Building package at path: $PWD
https://github.com/elegantchaos/CommandShell.git
https://github.com/elegantchaos/CommandShell.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
"dependencies" : [
{
"identity" : "swift-argument-parser",
"requirement" : {
"range" : [
{
"lower_bound" : "0.2.0",
"upper_bound" : "1.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/apple/swift-argument-parser"
},
{
"identity" : "logger",
"requirement" : {
"range" : [
{
"lower_bound" : "1.5.5",
"upper_bound" : "2.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/elegantchaos/Logger.git"
},
{
"identity" : "semanticversion",
"requirement" : {
"range" : [
{
"lower_bound" : "1.1.1",
"upper_bound" : "2.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/elegantchaos/SemanticVersion.git"
},
{
"identity" : "xctestextensions",
"requirement" : {
"range" : [
{
"lower_bound" : "1.1.2",
"upper_bound" : "2.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/elegantchaos/XCTestExtensions.git"
}
],
"manifest_display_name" : "CommandShell",
"name" : "CommandShell",
"path" : "/host/spi-builder-workspace",
"platforms" : [
{
"name" : "macos",
"version" : "10.13"
},
{
"name" : "ios",
"version" : "12.0"
}
],
"products" : [
{
"name" : "CommandShell",
"targets" : [
"CommandShell"
],
"type" : {
"library" : [
"automatic"
]
}
},
{
"name" : "CommandShellExample",
"targets" : [
"CommandShellExample"
],
"type" : {
"executable" : null
}
}
],
"targets" : [
{
"c99name" : "CommandShellTests",
"module_type" : "SwiftTarget",
"name" : "CommandShellTests",
"path" : "Tests/CommandShellTests",
"product_dependencies" : [
"XCTestExtensions"
],
"sources" : [
"CommandShellTests.swift",
"XCTestManifests.swift"
],
"target_dependencies" : [
"CommandShell",
"CommandShellExample"
],
"type" : "test"
},
{
"c99name" : "CommandShellExample",
"module_type" : "SwiftTarget",
"name" : "CommandShellExample",
"path" : "Sources/CommandShellExample",
"product_dependencies" : [
"SemanticVersion"
],
"product_memberships" : [
"CommandShellExample"
],
"sources" : [
"main.swift"
],
"target_dependencies" : [
"CommandShell"
],
"type" : "executable"
},
{
"c99name" : "CommandShell",
"module_type" : "SwiftTarget",
"name" : "CommandShell",
"path" : "Sources/CommandShell",
"product_dependencies" : [
"Logger",
"SemanticVersion",
"ArgumentParser"
],
"product_memberships" : [
"CommandShell",
"CommandShellExample"
],
"sources" : [
"CommandEngine.swift",
"CommandShell.swift",
"CommandShellOptions.swift"
],
"type" : "library"
}
],
"tools_version" : "5.2"
}
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-2":/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/apple/swift-argument-parser
Fetching https://github.com/elegantchaos/SemanticVersion.git
Fetching https://github.com/elegantchaos/XCTestExtensions.git
Fetching https://github.com/elegantchaos/Logger.git
[1/152] Fetching semanticversion
[153/2203] Fetching semanticversion, logger
Fetched https://github.com/elegantchaos/SemanticVersion.git from cache (0.45s)
[1/571] Fetching xctestextensions
[572/15922] Fetching xctestextensions, swift-argument-parser
Fetched https://github.com/elegantchaos/XCTestExtensions.git from cache (1.73s)
Fetched https://github.com/elegantchaos/Logger.git from cache (1.74s)
Fetched https://github.com/apple/swift-argument-parser from cache (1.75s)
Computing version for https://github.com/elegantchaos/SemanticVersion.git
Computed https://github.com/elegantchaos/SemanticVersion.git at 1.1.2 (2.56s)
Computing version for https://github.com/elegantchaos/Logger.git
Computed https://github.com/elegantchaos/Logger.git at 1.8.2 (0.67s)
Computing version for https://github.com/apple/swift-argument-parser
Computed https://github.com/apple/swift-argument-parser at 0.5.0 (0.91s)
Computing version for https://github.com/elegantchaos/XCTestExtensions.git
Computed https://github.com/elegantchaos/XCTestExtensions.git at 1.5.1 (0.83s)
Fetching https://github.com/elegantchaos/Matchable.git
[1/113] Fetching matchable
Fetched https://github.com/elegantchaos/Matchable.git from cache (0.33s)
Computing version for https://github.com/elegantchaos/Matchable.git
Computed https://github.com/elegantchaos/Matchable.git at 1.0.7 (1.21s)
Creating working copy for https://github.com/elegantchaos/Logger.git
Working copy of https://github.com/elegantchaos/Logger.git resolved at 1.8.2
Creating working copy for https://github.com/elegantchaos/XCTestExtensions.git
Working copy of https://github.com/elegantchaos/XCTestExtensions.git resolved at 1.5.1
Creating working copy for https://github.com/elegantchaos/SemanticVersion.git
Working copy of https://github.com/elegantchaos/SemanticVersion.git resolved at 1.1.2
Creating working copy for https://github.com/elegantchaos/Matchable.git
Working copy of https://github.com/elegantchaos/Matchable.git resolved at 1.0.7
Creating working copy for https://github.com/apple/swift-argument-parser
Working copy of https://github.com/apple/swift-argument-parser resolved at 0.5.0
Building for debugging...
[0/15] Write sources
[6/15] Write swift-version-24593BA9C3E375BF.txt
[8/29] Emitting module ArgumentParserToolInfo
[9/29] Compiling ArgumentParserToolInfo ToolInfo.swift
[10/30] Compiling Logger NSLogHandler.swift
[11/31] Compiling Logger OSLogHandler.swift
[12/31] Compiling Logger PrintHandler.swift
[14/31] Compiling SemanticVersion SemanticVersion.swift
[14/31] Wrapping AST for ArgumentParserToolInfo for debugging
error: emit-module command failed with exit code 1 (use -v to see invocation)
[16/65] Emitting module ArgumentParser
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsable Properties/Errors.swift:61:40: error: cannot find 'EXIT_SUCCESS' in scope
59 |
60 | /// An exit code that indicates successful completion of a command.
61 | public static let success = ExitCode(EXIT_SUCCESS)
| `- error: cannot find 'EXIT_SUCCESS' in scope
62 |
63 | /// An exit code that indicates that the command failed.
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsable Properties/Errors.swift:64:40: error: cannot find 'EXIT_FAILURE' in scope
62 |
63 | /// An exit code that indicates that the command failed.
64 | public static let failure = ExitCode(EXIT_FAILURE)
| `- error: cannot find 'EXIT_FAILURE' in scope
65 |
66 | /// An exit code that indicates that the user provided invalid input.
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsable Properties/Errors.swift:70:50: error: cannot find 'EX_USAGE' in scope
68 | public static let validationFailure = ExitCode(ERROR_BAD_ARGUMENTS)
69 | #else
70 | public static let validationFailure = ExitCode(EX_USAGE)
| `- error: cannot find 'EX_USAGE' in scope
71 | #endif
72 |
[17/69] Compiling Logger Handler.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[18/69] Emitting module Logger
/host/spi-builder-workspace/.build/checkouts/Logger/Sources/Logger/Manager.swift:33:16: error: cannot find type 'DispatchQueue' in scope
31 | var associatedData: AssociatedHandlerData = [:]
32 | var fatalHandler: FatalHandler = defaultFatalHandler
33 | var queue: DispatchQueue = .init(label: "com.elegantchaos.logger", qos: .utility, attributes: [], autoreleaseFrequency: DispatchQueue.AutoreleaseFrequency.inherit)
| `- error: cannot find type 'DispatchQueue' in scope
34 |
35 | /**
[19/69] Compiling Logger UserDefaultsManagerSettings.swift
[20/69] Emitting module SemanticVersion
[21/69] Compiling SemanticVersion SemanticVersion+Comparabl.swift
[22/69] Compiling Logger Manager.swift
/host/spi-builder-workspace/.build/checkouts/Logger/Sources/Logger/Manager.swift:33:16: error: cannot find type 'DispatchQueue' in scope
31 | var associatedData: AssociatedHandlerData = [:]
32 | var fatalHandler: FatalHandler = defaultFatalHandler
33 | var queue: DispatchQueue = .init(label: "com.elegantchaos.logger", qos: .utility, attributes: [], autoreleaseFrequency: DispatchQueue.AutoreleaseFrequency.inherit)
| `- error: cannot find type 'DispatchQueue' in scope
34 |
35 | /**
/host/spi-builder-workspace/.build/checkouts/Logger/Sources/Logger/Manager.swift:66:26: error: cannot find 'Thread' in scope
64 | /// We really do want there to only be a single instance of this, even if the logger library has mistakenly been
65 | /// linked multiple times, so we store it in the thread dictionary for the main thread, and retrieve it from there if necessary
66 | if let manager = Thread.main.threadDictionary["Logger.Manager"] {
| `- error: cannot find 'Thread' in scope
67 | return unsafeBitCast(manager as AnyObject, to: Self.self) // a normal cast might fail here if the code has been linked multiple times, since the class could be different (but identical)
68 | }
/host/spi-builder-workspace/.build/checkouts/Logger/Sources/Logger/Manager.swift:74:13: error: cannot find 'Thread' in scope
72 |
73 | #if !os(Linux)
74 | Thread.main.threadDictionary["Logger.Manager"] = manager
| `- error: cannot find 'Thread' in scope
75 | #endif
76 |
[23/69] Compiling ArgumentParser ArgumentHelp.swift
/host/spi-builder-workspace/.build/checkouts/Logger/Sources/Logger/Manager.swift:33:16: error: cannot find type 'DispatchQueue' in scope
31 | var associatedData: AssociatedHandlerData = [:]
32 | var fatalHandler: FatalHandler = defaultFatalHandler
33 | var queue: DispatchQueue = .init(label: "com.elegantchaos.logger", qos: .utility, attributes: [], autoreleaseFrequency: DispatchQueue.AutoreleaseFrequency.inherit)
| `- error: cannot find type 'DispatchQueue' in scope
34 |
35 | /**
[24/69] Compiling ArgumentParser CompletionKind.swift
/host/spi-builder-workspace/.build/checkouts/Logger/Sources/Logger/Manager.swift:33:16: error: cannot find type 'DispatchQueue' in scope
31 | var associatedData: AssociatedHandlerData = [:]
32 | var fatalHandler: FatalHandler = defaultFatalHandler
33 | var queue: DispatchQueue = .init(label: "com.elegantchaos.logger", qos: .utility, attributes: [], autoreleaseFrequency: DispatchQueue.AutoreleaseFrequency.inherit)
| `- error: cannot find type 'DispatchQueue' in scope
34 |
35 | /**
[25/69] Compiling Logger ManagerSettings.swift
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Usage/HelpGenerator.swift:358:11: error: cannot find 'winsize' in scope
356 | height: Int(csbi.srWindow.Bottom - csbi.srWindow.Top) + 1)
357 | #else
358 | var w = winsize()
| `- error: cannot find 'winsize' in scope
359 | #if os(OpenBSD)
360 | // TIOCGWINSZ is a complex macro, so we need the flattened value.
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Usage/HelpGenerator.swift:364:13: error: cannot find 'ioctl' in scope
362 | let err = ioctl(STDOUT_FILENO, tiocgwinsz, &w)
363 | #else
364 | let err = ioctl(STDOUT_FILENO, TIOCGWINSZ, &w)
| `- error: cannot find 'ioctl' in scope
365 | #endif
366 | let width = Int(w.ws_col)
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Usage/HelpGenerator.swift:364:19: error: cannot find 'STDOUT_FILENO' in scope
362 | let err = ioctl(STDOUT_FILENO, tiocgwinsz, &w)
363 | #else
364 | let err = ioctl(STDOUT_FILENO, TIOCGWINSZ, &w)
| `- error: cannot find 'STDOUT_FILENO' in scope
365 | #endif
366 | let width = Int(w.ws_col)
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Usage/HelpGenerator.swift:364:34: error: cannot find 'TIOCGWINSZ' in scope
362 | let err = ioctl(STDOUT_FILENO, tiocgwinsz, &w)
363 | #else
364 | let err = ioctl(STDOUT_FILENO, TIOCGWINSZ, &w)
| `- error: cannot find 'TIOCGWINSZ' in scope
365 | #endif
366 | let width = Int(w.ws_col)
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsable Properties/Errors.swift:61:40: error: cannot find 'EXIT_SUCCESS' in scope
59 |
60 | /// An exit code that indicates successful completion of a command.
61 | public static let success = ExitCode(EXIT_SUCCESS)
| `- error: cannot find 'EXIT_SUCCESS' in scope
62 |
63 | /// An exit code that indicates that the command failed.
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-2":/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/9] Write swift-version-24593BA9C3E375BF.txt
[2/23] Compiling Logger OSLogHandler.swift
[3/24] Emitting module ArgumentParserToolInfo
[4/24] Compiling Logger NSLogHandler.swift
[5/24] Compiling Logger PrintHandler.swift
[6/24] Compiling Logger ManagerSettings.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[7/24] Emitting module Logger
/host/spi-builder-workspace/.build/checkouts/Logger/Sources/Logger/Manager.swift:33:16: error: cannot find type 'DispatchQueue' in scope
31 | var associatedData: AssociatedHandlerData = [:]
32 | var fatalHandler: FatalHandler = defaultFatalHandler
33 | var queue: DispatchQueue = .init(label: "com.elegantchaos.logger", qos: .utility, attributes: [], autoreleaseFrequency: DispatchQueue.AutoreleaseFrequency.inherit)
| `- error: cannot find type 'DispatchQueue' in scope
34 |
35 | /**
[8/24] Emitting module SemanticVersion
[9/24] Compiling Logger Handler.swift
[10/24] Compiling Logger Channel.swift
/host/spi-builder-workspace/.build/checkouts/Logger/Sources/Logger/Manager.swift:33:16: error: cannot find type 'DispatchQueue' in scope
31 | var associatedData: AssociatedHandlerData = [:]
32 | var fatalHandler: FatalHandler = defaultFatalHandler
33 | var queue: DispatchQueue = .init(label: "com.elegantchaos.logger", qos: .utility, attributes: [], autoreleaseFrequency: DispatchQueue.AutoreleaseFrequency.inherit)
| `- error: cannot find type 'DispatchQueue' in scope
34 |
35 | /**
[11/24] Compiling Logger Context.swift
/host/spi-builder-workspace/.build/checkouts/Logger/Sources/Logger/Manager.swift:33:16: error: cannot find type 'DispatchQueue' in scope
31 | var associatedData: AssociatedHandlerData = [:]
32 | var fatalHandler: FatalHandler = defaultFatalHandler
33 | var queue: DispatchQueue = .init(label: "com.elegantchaos.logger", qos: .utility, attributes: [], autoreleaseFrequency: DispatchQueue.AutoreleaseFrequency.inherit)
| `- error: cannot find type 'DispatchQueue' in scope
34 |
35 | /**
[12/24] Compiling Logger Manager.swift
/host/spi-builder-workspace/.build/checkouts/Logger/Sources/Logger/Manager.swift:33:16: error: cannot find type 'DispatchQueue' in scope
31 | var associatedData: AssociatedHandlerData = [:]
32 | var fatalHandler: FatalHandler = defaultFatalHandler
33 | var queue: DispatchQueue = .init(label: "com.elegantchaos.logger", qos: .utility, attributes: [], autoreleaseFrequency: DispatchQueue.AutoreleaseFrequency.inherit)
| `- error: cannot find type 'DispatchQueue' in scope
34 |
35 | /**
/host/spi-builder-workspace/.build/checkouts/Logger/Sources/Logger/Manager.swift:66:26: error: cannot find 'Thread' in scope
64 | /// We really do want there to only be a single instance of this, even if the logger library has mistakenly been
65 | /// linked multiple times, so we store it in the thread dictionary for the main thread, and retrieve it from there if necessary
66 | if let manager = Thread.main.threadDictionary["Logger.Manager"] {
| `- error: cannot find 'Thread' in scope
67 | return unsafeBitCast(manager as AnyObject, to: Self.self) // a normal cast might fail here if the code has been linked multiple times, since the class could be different (but identical)
68 | }
/host/spi-builder-workspace/.build/checkouts/Logger/Sources/Logger/Manager.swift:74:13: error: cannot find 'Thread' in scope
72 |
73 | #if !os(Linux)
74 | Thread.main.threadDictionary["Logger.Manager"] = manager
| `- error: cannot find 'Thread' in scope
75 | #endif
76 |
[13/24] Compiling SemanticVersion SemanticVersion+Comparabl.swift
[14/24] Compiling SemanticVersion SemanticVersion.swift
[15/24] Compiling Logger UserDefaultsManagerSettings.swift
[16/25] Wrapping AST for SemanticVersion for debugging
BUILD FAILURE 6.1 wasm