Build Information
Successful build of SwiftEliza with Swift 6.0 for Linux.
Swift 6 data race errors: 1
Build Command
bash -c docker run --rm -v "checkouts-4606859-0":/host -w "$workDir" registry.gitlab.com/finestructure/spi-images:basic-6.0-latest swift build --triple x86_64-unknown-linux-gnu -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete 2>&1
Build Log
========================================
RunAll
========================================
Builder version: 4.40.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/AlwaysRightInstitute/SwiftEliza.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/AlwaysRightInstitute/SwiftEliza
* branch master -> FETCH_HEAD
* [new branch] master -> origin/master
HEAD is now at 7567cbc Update README w/ fork info
Cloned https://github.com/AlwaysRightInstitute/SwiftEliza.git
Revision (git rev-parse @):
7567cbc4b9a5a45fd41790c34b90e372a2dda712
SUCCESS checkout https://github.com/AlwaysRightInstitute/SwiftEliza.git at master
========================================
Build
========================================
Selected platform: linux
Swift version: 6.0
Building package at path: $workDir
https://github.com/AlwaysRightInstitute/SwiftEliza.git
Running build ...
bash -c docker run --rm -v "checkouts-4606859-0":/host -w "$workDir" registry.gitlab.com/finestructure/spi-images:basic-6.0-latest swift build --triple x86_64-unknown-linux-gnu -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete 2>&1
Building for debugging...
[0/7] Write sources
[2/7] Write swift-version-24593BA9C3E375BF.txt
[4/9] Emitting module Eliza
[5/9] Compiling Eliza Eliza.swift
[6/10] Wrapping AST for Eliza for debugging
[8/12] Compiling therapist main.swift
/host/spi-builder-workspace/Sources/therapist/main.swift:37:31: warning: reference to var 'stdin' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
35 |
36 | repeat {
37 | let cstr = fgets(&buf, 500, stdin)!
| `- warning: reference to var 'stdin' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
38 | let s = String(cString: cstr)
39 |
SwiftGlibc.stdin:1:12: note: var declared here
1 | public var stdin: UnsafeMutablePointer<FILE>!
| `- note: var declared here
/host/spi-builder-workspace/Sources/therapist/main.swift:26:7: warning: capture of 'self' with non-sendable type 'Therapist' in a `@Sendable` closure; this is an error in the Swift 6 language mode
12 | var buf = [ Int8 ](repeating: 0, count: 500)
13 |
14 | class Therapist {
| `- note: class 'Therapist' does not conform to the 'Sendable' protocol
15 |
16 | let Q : DispatchQueue = DispatchQueue(label: "eliza")
:
24 | isThinking = true
25 | Q.asyncAfter(deadline: .now() + thinkingTime) {
26 | self.isThinking = false
| `- warning: capture of 'self' with non-sendable type 'Therapist' in a `@Sendable` closure; this is an error in the Swift 6 language mode
27 | let answer = self.eliza.replyTo(question)
28 | cb(answer)
/host/spi-builder-workspace/Sources/therapist/main.swift:28:7: warning: capture of 'cb' with non-sendable type '(String?) -> ()' in a `@Sendable` closure; this is an error in the Swift 6 language mode
26 | self.isThinking = false
27 | let answer = self.eliza.replyTo(question)
28 | cb(answer)
| |- warning: capture of 'cb' with non-sendable type '(String?) -> ()' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
29 | }
30 | }
[9/12] Emitting module therapist
/host/spi-builder-workspace/Sources/therapist/main.swift:37:31: warning: reference to var 'stdin' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
35 |
36 | repeat {
37 | let cstr = fgets(&buf, 500, stdin)!
| `- warning: reference to var 'stdin' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
38 | let s = String(cString: cstr)
39 |
SwiftGlibc.stdin:1:12: note: var declared here
1 | public var stdin: UnsafeMutablePointer<FILE>!
| `- note: var declared here
[10/13] Wrapping AST for therapist for debugging
[11/13] Write Objects.LinkFileList
[12/13] Linking therapist
Build complete! (9.82s)
Build complete.
{
"dependencies" : [
],
"manifest_display_name" : "SwiftEliza",
"name" : "SwiftEliza",
"path" : "/host/spi-builder-workspace",
"platforms" : [
],
"products" : [
{
"name" : "Eliza",
"targets" : [
"Eliza"
],
"type" : {
"library" : [
"automatic"
]
}
},
{
"name" : "therapist",
"targets" : [
"therapist"
],
"type" : {
"executable" : null
}
}
],
"targets" : [
{
"c99name" : "therapist",
"module_type" : "SwiftTarget",
"name" : "therapist",
"path" : "Sources/therapist",
"product_memberships" : [
"therapist"
],
"sources" : [
"main.swift"
],
"target_dependencies" : [
"Eliza"
],
"type" : "executable"
},
{
"c99name" : "Eliza",
"module_type" : "SwiftTarget",
"name" : "Eliza",
"path" : "Sources/Eliza",
"product_memberships" : [
"Eliza",
"therapist"
],
"sources" : [
"Eliza.swift"
],
"type" : "library"
}
],
"tools_version" : "5.0"
}
Done.