Build Information
Successful build of Chalk, reference master (21772d
), with Swift 6.1 for Wasm on 27 May 2025 21:12:18 UTC.
Swift 6 data race errors: 4
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4609320-1":/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
Build Log
========================================
RunAll
========================================
Builder version: 4.63.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/luoxiu/Chalk.git
Reference: master
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/luoxiu/Chalk
* branch master -> FETCH_HEAD
* [new branch] master -> origin/master
HEAD is now at 21772da swiftformat .
Cloned https://github.com/luoxiu/Chalk.git
Revision (git rev-parse @):
21772da25e1be308ea8a8ab2b67297fb35195b35
SUCCESS checkout https://github.com/luoxiu/Chalk.git at master
========================================
Build
========================================
Selected platform: wasm
Swift version: 6.1
Building package at path: $PWD
https://github.com/luoxiu/Chalk.git
https://github.com/luoxiu/Chalk.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
"dependencies" : [
{
"identity" : "rainbow",
"requirement" : {
"range" : [
{
"lower_bound" : "0.1.0",
"upper_bound" : "1.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/luoxiu/Rainbow"
}
],
"manifest_display_name" : "Chalk",
"name" : "Chalk",
"path" : "/host/spi-builder-workspace",
"platforms" : [
],
"products" : [
{
"name" : "Chalk",
"targets" : [
"Chalk"
],
"type" : {
"library" : [
"automatic"
]
}
},
{
"name" : "chalk-app",
"targets" : [
"chalk-app"
],
"type" : {
"executable" : null
}
}
],
"targets" : [
{
"c99name" : "chalk_app",
"module_type" : "SwiftTarget",
"name" : "chalk-app",
"path" : "Sources/chalk-app",
"product_memberships" : [
"chalk-app"
],
"sources" : [
"main.swift"
],
"target_dependencies" : [
"Chalk"
],
"type" : "executable"
},
{
"c99name" : "ChalkTests",
"module_type" : "SwiftTarget",
"name" : "ChalkTests",
"path" : "Tests/ChalkTests",
"sources" : [
"ChalkTests.swift",
"XCTestManifests.swift"
],
"target_dependencies" : [
"Chalk"
],
"type" : "test"
},
{
"c99name" : "Chalk",
"module_type" : "SwiftTarget",
"name" : "Chalk",
"path" : "Sources/Chalk",
"product_dependencies" : [
"Rainbow"
],
"product_memberships" : [
"Chalk",
"chalk-app"
],
"sources" : [
"Color.swift",
"Modifier.swift",
"Style.swift",
"TerminalString.swift",
"TerminalStringConvertible.swift",
"TerminalSupportedColor.swift",
"Utils/String+RegRxp.swift"
],
"type" : "library"
}
],
"tools_version" : "5.1"
}
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-1":/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/luoxiu/Rainbow
[1/234] Fetching rainbow
Fetched https://github.com/luoxiu/Rainbow from cache (0.24s)
Computing version for https://github.com/luoxiu/Rainbow
Computed https://github.com/luoxiu/Rainbow at 0.1.1 (0.76s)
Creating working copy for https://github.com/luoxiu/Rainbow
Working copy of https://github.com/luoxiu/Rainbow resolved at 0.1.1
Building for debugging...
[0/9] Write sources
[3/9] Write swift-version-24593BA9C3E375BF.txt
[5/15] Compiling Rainbow Double.swift
[6/15] Compiling Rainbow NSRegularExpression.swift
[7/15] Compiling Rainbow Colors.swift
[8/15] Compiling Rainbow Color+Cocoa.swift
[9/15] Emitting module Rainbow
[10/15] Compiling Rainbow Color.swift
[11/16] Wrapping AST for Rainbow for debugging
[13/24] Compiling Chalk TerminalStringConvertible.swift
[14/24] Compiling Chalk String+RegRxp.swift
[15/24] Compiling Chalk TerminalSupportedColor.swift
/host/spi-builder-workspace/Sources/Chalk/TerminalSupportedColor.swift:11:5: warning: var '__preset_supported_color__' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
9 |
10 | // test
11 | var __preset_supported_color__: TerminalSupportedColor?
| |- warning: var '__preset_supported_color__' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert '__preset_supported_color__' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make var '__preset_supported_color__' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
12 |
13 | // https://github.com/chalk/supports-color
/host/spi-builder-workspace/Sources/Chalk/TerminalSupportedColor.swift:21:23: warning: static property 'current' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
19 | case ansi16m
20 |
21 | public static var current: TerminalSupportedColor = {
| |- warning: static property 'current' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'current' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'current' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
22 | if let color = __preset_supported_color__ {
23 | return color
[16/24] Emitting module Chalk
/host/spi-builder-workspace/Sources/Chalk/Style.swift:10:12: warning: let 'chalk' is not concurrency-safe because non-'Sendable' type 'Style' may have shared mutable state; this is an error in the Swift 6 language mode
8 | import Foundation
9 |
10 | public let chalk = Style()
| |- warning: let 'chalk' is not concurrency-safe because non-'Sendable' type 'Style' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make let 'chalk' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
11 | public let ck = Style()
12 |
13 | public struct Style {
| `- note: consider making struct 'Style' conform to the 'Sendable' protocol
14 | public var fgColor: TerminalColor?
15 |
/host/spi-builder-workspace/Sources/Chalk/Style.swift:11:12: warning: let 'ck' is not concurrency-safe because non-'Sendable' type 'Style' may have shared mutable state; this is an error in the Swift 6 language mode
9 |
10 | public let chalk = Style()
11 | public let ck = Style()
| |- warning: let 'ck' is not concurrency-safe because non-'Sendable' type 'Style' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make let 'ck' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
12 |
13 | public struct Style {
| `- note: consider making struct 'Style' conform to the 'Sendable' protocol
14 | public var fgColor: TerminalColor?
15 |
/host/spi-builder-workspace/Sources/Chalk/TerminalSupportedColor.swift:11:5: warning: var '__preset_supported_color__' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
9 |
10 | // test
11 | var __preset_supported_color__: TerminalSupportedColor?
| |- warning: var '__preset_supported_color__' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert '__preset_supported_color__' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make var '__preset_supported_color__' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
12 |
13 | // https://github.com/chalk/supports-color
/host/spi-builder-workspace/Sources/Chalk/TerminalSupportedColor.swift:21:23: warning: static property 'current' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
19 | case ansi16m
20 |
21 | public static var current: TerminalSupportedColor = {
| |- warning: static property 'current' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'current' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'current' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
22 | if let color = __preset_supported_color__ {
23 | return color
[17/24] Compiling Chalk Style.swift
/host/spi-builder-workspace/Sources/Chalk/Style.swift:10:12: warning: let 'chalk' is not concurrency-safe because non-'Sendable' type 'Style' may have shared mutable state; this is an error in the Swift 6 language mode
8 | import Foundation
9 |
10 | public let chalk = Style()
| |- warning: let 'chalk' is not concurrency-safe because non-'Sendable' type 'Style' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make let 'chalk' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
11 | public let ck = Style()
12 |
13 | public struct Style {
| `- note: consider making struct 'Style' conform to the 'Sendable' protocol
14 | public var fgColor: TerminalColor?
15 |
/host/spi-builder-workspace/Sources/Chalk/Style.swift:11:12: warning: let 'ck' is not concurrency-safe because non-'Sendable' type 'Style' may have shared mutable state; this is an error in the Swift 6 language mode
9 |
10 | public let chalk = Style()
11 | public let ck = Style()
| |- warning: let 'ck' is not concurrency-safe because non-'Sendable' type 'Style' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make let 'ck' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
12 |
13 | public struct Style {
| `- note: consider making struct 'Style' conform to the 'Sendable' protocol
14 | public var fgColor: TerminalColor?
15 |
[18/24] Compiling Chalk TerminalString.swift
[19/24] Compiling Chalk Color.swift
[20/24] Compiling Chalk Modifier.swift
[21/25] Wrapping AST for Chalk for debugging
[23/27] Compiling chalk_app main.swift
[24/27] Emitting module chalk_app
[25/28] Wrapping AST for chalk-app for debugging
[26/28] Write Objects.LinkFileList
wasm-ld: warning: /root/.swiftpm/swift-sdks/swift-wasm-6.1-RELEASE-wasm32-unknown-wasi.artifactbundle/6.1-RELEASE-wasm32-unknown-wasi/wasm32-unknown-wasi/swift.xctoolchain/usr/lib/swift_static/wasi/lib_FoundationCollections.a: archive member '_FoundationCollections.autolink' is neither Wasm object file nor LLVM bitcode
wasm-ld: warning: /root/.swiftpm/swift-sdks/swift-wasm-6.1-RELEASE-wasm32-unknown-wasi.artifactbundle/6.1-RELEASE-wasm32-unknown-wasi/wasm32-unknown-wasi/swift.xctoolchain/usr/lib/swift_static/wasi/lib_FoundationCollections.a: archive member '_FoundationCollections.autolink' is neither Wasm object file nor LLVM bitcode
wasm-ld: warning: /root/.swiftpm/swift-sdks/swift-wasm-6.1-RELEASE-wasm32-unknown-wasi.artifactbundle/6.1-RELEASE-wasm32-unknown-wasi/wasm32-unknown-wasi/swift.xctoolchain/usr/lib/swift_static/wasi/lib_FoundationCollections.a: archive member '_FoundationCollections.autolink' is neither Wasm object file nor LLVM bitcode
wasm-ld: warning: /root/.swiftpm/swift-sdks/swift-wasm-6.1-RELEASE-wasm32-unknown-wasi.artifactbundle/6.1-RELEASE-wasm32-unknown-wasi/wasm32-unknown-wasi/swift.xctoolchain/usr/lib/swift_static/wasi/lib_FoundationCollections.a: archive member '_FoundationCollections.autolink' is neither Wasm object file nor LLVM bitcode
wasm-ld: warning: /root/.swiftpm/swift-sdks/swift-wasm-6.1-RELEASE-wasm32-unknown-wasi.artifactbundle/6.1-RELEASE-wasm32-unknown-wasi/wasm32-unknown-wasi/swift.xctoolchain/usr/lib/swift_static/wasi/lib_FoundationCollections.a: archive member '_FoundationCollections.autolink' is neither Wasm object file nor LLVM bitcode
wasm-ld: warning: /root/.swiftpm/swift-sdks/swift-wasm-6.1-RELEASE-wasm32-unknown-wasi.artifactbundle/6.1-RELEASE-wasm32-unknown-wasi/wasm32-unknown-wasi/swift.xctoolchain/usr/lib/swift_static/wasi/lib_FoundationCollections.a: archive member '_FoundationCollections.autolink' is neither Wasm object file nor LLVM bitcode
wasm-ld: warning: /root/.swiftpm/swift-sdks/swift-wasm-6.1-RELEASE-wasm32-unknown-wasi.artifactbundle/6.1-RELEASE-wasm32-unknown-wasi/wasm32-unknown-wasi/swift.xctoolchain/usr/lib/swift_static/wasi/lib_FoundationCollections.a: archive member '_FoundationCollections.autolink' is neither Wasm object file nor LLVM bitcode
wasm-ld: warning: /root/.swiftpm/swift-sdks/swift-wasm-6.1-RELEASE-wasm32-unknown-wasi.artifactbundle/6.1-RELEASE-wasm32-unknown-wasi/wasm32-unknown-wasi/swift.xctoolchain/usr/lib/swift_static/wasi/lib_FoundationCollections.a: archive member '_FoundationCollections.autolink' is neither Wasm object file nor LLVM bitcode
wasm-ld: warning: /root/.swiftpm/swift-sdks/swift-wasm-6.1-RELEASE-wasm32-unknown-wasi.artifactbundle/6.1-RELEASE-wasm32-unknown-wasi/wasm32-unknown-wasi/swift.xctoolchain/usr/lib/swift_static/wasi/lib_FoundationCollections.a: archive member '_FoundationCollections.autolink' is neither Wasm object file nor LLVM bitcode
wasm-ld: warning: /root/.swiftpm/swift-sdks/swift-wasm-6.1-RELEASE-wasm32-unknown-wasi.artifactbundle/6.1-RELEASE-wasm32-unknown-wasi/wasm32-unknown-wasi/swift.xctoolchain/usr/lib/swift_static/wasi/lib_FoundationCollections.a: archive member '_FoundationCollections.autolink' is neither Wasm object file nor LLVM bitcode
wasm-ld: warning: /root/.swiftpm/swift-sdks/swift-wasm-6.1-RELEASE-wasm32-unknown-wasi.artifactbundle/6.1-RELEASE-wasm32-unknown-wasi/wasm32-unknown-wasi/swift.xctoolchain/usr/lib/swift_static/wasi/lib_FoundationCollections.a: archive member '_FoundationCollections.autolink' is neither Wasm object file nor LLVM bitcode
wasm-ld: warning: /root/.swiftpm/swift-sdks/swift-wasm-6.1-RELEASE-wasm32-unknown-wasi.artifactbundle/6.1-RELEASE-wasm32-unknown-wasi/wasm32-unknown-wasi/swift.xctoolchain/usr/lib/swift_static/wasi/lib_FoundationCollections.a: archive member '_FoundationCollections.autolink' is neither Wasm object file nor LLVM bitcode
wasm-ld: warning: /root/.swiftpm/swift-sdks/swift-wasm-6.1-RELEASE-wasm32-unknown-wasi.artifactbundle/6.1-RELEASE-wasm32-unknown-wasi/wasm32-unknown-wasi/swift.xctoolchain/usr/lib/swift_static/wasi/lib_FoundationCollections.a: archive member '_FoundationCollections.autolink' is neither Wasm object file nor LLVM bitcode
wasm-ld: warning: /root/.swiftpm/swift-sdks/swift-wasm-6.1-RELEASE-wasm32-unknown-wasi.artifactbundle/6.1-RELEASE-wasm32-unknown-wasi/wasm32-unknown-wasi/swift.xctoolchain/usr/lib/swift_static/wasi/libFoundation.a: archive member 'Foundation.autolink' is neither Wasm object file nor LLVM bitcode
wasm-ld: warning: /root/.swiftpm/swift-sdks/swift-wasm-6.1-RELEASE-wasm32-unknown-wasi.artifactbundle/6.1-RELEASE-wasm32-unknown-wasi/wasm32-unknown-wasi/swift.xctoolchain/usr/lib/swift_static/wasi/libFoundationEssentials.a: archive member 'FoundationEssentials.autolink' is neither Wasm object file nor LLVM bitcode
wasm-ld: warning: /root/.swiftpm/swift-sdks/swift-wasm-6.1-RELEASE-wasm32-unknown-wasi.artifactbundle/6.1-RELEASE-wasm32-unknown-wasi/wasm32-unknown-wasi/swift.xctoolchain/usr/lib/swift_static/wasi/libFoundationInternationalization.a: archive member 'FoundationInternationalization.autolink' is neither Wasm object file nor LLVM bitcode
[27/28] Linking chalk-app.wasm
Build complete! (10.93s)
Build complete.
{
"dependencies" : [
{
"identity" : "rainbow",
"requirement" : {
"range" : [
{
"lower_bound" : "0.1.0",
"upper_bound" : "1.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/luoxiu/Rainbow"
}
],
"manifest_display_name" : "Chalk",
"name" : "Chalk",
"path" : "/host/spi-builder-workspace",
"platforms" : [
],
"products" : [
{
"name" : "Chalk",
"targets" : [
"Chalk"
],
"type" : {
"library" : [
"automatic"
]
}
},
{
"name" : "chalk-app",
"targets" : [
"chalk-app"
],
"type" : {
"executable" : null
}
}
],
"targets" : [
{
"c99name" : "chalk_app",
"module_type" : "SwiftTarget",
"name" : "chalk-app",
"path" : "Sources/chalk-app",
"product_memberships" : [
"chalk-app"
],
"sources" : [
"main.swift"
],
"target_dependencies" : [
"Chalk"
],
"type" : "executable"
},
{
"c99name" : "ChalkTests",
"module_type" : "SwiftTarget",
"name" : "ChalkTests",
"path" : "Tests/ChalkTests",
"sources" : [
"ChalkTests.swift",
"XCTestManifests.swift"
],
"target_dependencies" : [
"Chalk"
],
"type" : "test"
},
{
"c99name" : "Chalk",
"module_type" : "SwiftTarget",
"name" : "Chalk",
"path" : "Sources/Chalk",
"product_dependencies" : [
"Rainbow"
],
"product_memberships" : [
"Chalk",
"chalk-app"
],
"sources" : [
"Color.swift",
"Modifier.swift",
"Style.swift",
"TerminalString.swift",
"TerminalStringConvertible.swift",
"TerminalSupportedColor.swift",
"Utils/String+RegRxp.swift"
],
"type" : "library"
}
],
"tools_version" : "5.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
Done.