The Swift Package Index logo.Swift Package Index

Build Information

Successful build of SwiftEliza, reference 1.0.1 (f3f7be), with Swift 6.1 for Android on 27 May 2025 14:51:04 UTC.

Swift 6 data race errors: 1

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4606859-0":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:android-6.1-latest swift build --swift-sdk aarch64-unknown-linux-android24 -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/AlwaysRightInstitute/SwiftEliza.git
Reference: 1.0.1
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
 * tag               1.0.1      -> FETCH_HEAD
HEAD is now at f3f7be7 Swift 4.2: Port UIKit code
Cloned https://github.com/AlwaysRightInstitute/SwiftEliza.git
Revision (git rev-parse @):
f3f7be7eccae0e709acec2351c8c2b79e9e2bd61
SUCCESS checkout https://github.com/AlwaysRightInstitute/SwiftEliza.git at 1.0.1
========================================
Build
========================================
Selected platform:         android
Swift version:             6.1
Building package at path:  $PWD
https://github.com/AlwaysRightInstitute/SwiftEliza.git
https://github.com/AlwaysRightInstitute/SwiftEliza.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
  "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"
}
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-0":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:android-6.1-latest swift build --swift-sdk aarch64-unknown-linux-android24 -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
android-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:fe1962677657b2408c217cb5cceb3c09bc1d91486e360cebbc6eee461a5945d8
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:android-6.1-latest
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] 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 |
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/stdio.h:62:23: note: var declared here
 60 |
 61 | #if __ANDROID_API__ >= 23
 62 | extern FILE* _Nonnull stdin __INTRODUCED_IN(23);
    |                       `- note: var declared here
 63 | extern FILE* _Nonnull stdout __INTRODUCED_IN(23);
 64 | extern FILE* _Nonnull stderr __INTRODUCED_IN(23);
[9/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 |
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/stdio.h:62:23: note: var declared here
 60 |
 61 | #if __ANDROID_API__ >= 23
 62 | extern FILE* _Nonnull stdin __INTRODUCED_IN(23);
    |                       `- note: var declared here
 63 | extern FILE* _Nonnull stdout __INTRODUCED_IN(23);
 64 | extern FILE* _Nonnull stderr __INTRODUCED_IN(23);
/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 |   }
[10/13] Wrapping AST for therapist for debugging
[11/13] Write Objects.LinkFileList
[12/13] Linking therapist
Build complete! (12.55s)
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"
}
android-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:fe1962677657b2408c217cb5cceb3c09bc1d91486e360cebbc6eee461a5945d8
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:android-6.1-latest
Done.