The Swift Package Index logo.Swift Package Index

Build Information

Failed to build Stream, reference master (36eb90), with Swift 6.1 for Android on 27 May 2025 06:20:49 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4609320-0":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:android-6.1-latest swift build --swift-sdk aarch64-unknown-linux-android24 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.63.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/cgarciae/stream.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/cgarciae/stream
 * branch            master     -> FETCH_HEAD
 * [new branch]      master     -> origin/master
HEAD is now at 36eb909 slightly update readme
Cloned https://github.com/cgarciae/stream.git
Revision (git rev-parse @):
36eb90967408dcb96a5283cc00b78e62f04a1b11
SUCCESS checkout https://github.com/cgarciae/stream.git at master
========================================
Build
========================================
Selected platform:         android
Swift version:             6.1
Building package at path:  $PWD
https://github.com/cgarciae/stream.git
https://github.com/cgarciae/stream.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
  "dependencies" : [
  ],
  "manifest_display_name" : "Stream",
  "name" : "Stream",
  "path" : "/host/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "Stream",
      "targets" : [
        "Stream"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "StreamTests",
      "module_type" : "SwiftTarget",
      "name" : "StreamTests",
      "path" : "Tests/StreamTests",
      "sources" : [
        "OrderedStreamTests.swift",
        "StreamTests.swift",
        "XCTestManifests.swift"
      ],
      "target_dependencies" : [
        "Stream"
      ],
      "type" : "test"
    },
    {
      "c99name" : "Stream",
      "module_type" : "SwiftTarget",
      "name" : "Stream",
      "path" : "Sources/Stream",
      "product_memberships" : [
        "Stream"
      ],
      "sources" : [
        "ConcurrentQueue.swift",
        "Lock.swift",
        "OrderedStream.swift",
        "Queue.swift",
        "Stream.swift",
        "Utils.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "4.0"
}
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-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:9f3c606dcd2a4f06d17ba472aa533c43685ba7ba19a5c9bc23518a066eb7f86a
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:android-6.1-latest
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-24593BA9C3E375BF.txt
[3/9] Compiling Stream Utils.swift
[4/9] Compiling Stream Queue.swift
[5/9] Compiling Stream Stream.swift
/host/spi-builder-workspace/Sources/Stream/Stream.swift:51:37: warning: capture of 'self' with non-sendable type 'Stream<Element>' in a '@Sendable' closure; this is an error in the Swift 6 language mode
  1 | import Foundation
  2 |
  3 | public struct Stream<Element> {
    |               `- note: consider making generic struct 'Stream' conform to the 'Sendable' protocol
  4 |     // @usableFromInline
  5 |     internal var base: AnySequence<Element>
    :
 49 |                         let group = DispatchGroup()
 50 |
 51 |                         for elem in self {
    |                                     `- warning: capture of 'self' with non-sendable type 'Stream<Element>' in a '@Sendable' closure; this is an error in the Swift 6 language mode
 52 |                             group.enter()
 53 |                             semaphore.wait()
/host/spi-builder-workspace/Sources/Stream/Stream.swift:56:38: warning: capture of 'f' with non-sendable type '(ConcurrentQueue<B?>, Element) throws -> Void' in a '@Sendable' closure; this is an error in the Swift 6 language mode
 54 |
 55 |                             dispatch.async {
 56 |                                 try! f(queue, elem)
    |                                      |- warning: capture of 'f' with non-sendable type '(ConcurrentQueue<B?>, Element) throws -> Void' 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'
 57 |
 58 |                                 group.leave()
/host/spi-builder-workspace/Sources/Stream/Stream.swift:56:40: warning: capture of 'queue' with non-sendable type 'ConcurrentQueue<B?>' in a '@Sendable' closure; this is an error in the Swift 6 language mode
 54 |
 55 |                             dispatch.async {
 56 |                                 try! f(queue, elem)
    |                                        `- warning: capture of 'queue' with non-sendable type 'ConcurrentQueue<B?>' in a '@Sendable' closure; this is an error in the Swift 6 language mode
 57 |
 58 |                                 group.leave()
/host/spi-builder-workspace/Sources/Stream/ConcurrentQueue.swift:3:14: note: generic class 'ConcurrentQueue' does not conform to the 'Sendable' protocol
 1 | import Foundation
 2 |
 3 | public class ConcurrentQueue<T> {
   |              `- note: generic class 'ConcurrentQueue' does not conform to the 'Sendable' protocol
 4 |     let lock = Lock()
 5 |     let second: Double = 1_000_000
/host/spi-builder-workspace/Sources/Stream/Stream.swift:56:38: warning: capture of 'f' with non-sendable type '(ConcurrentQueue<B?>, Element) throws -> Void' in a '@Sendable' closure; this is an error in the Swift 6 language mode
 54 |
 55 |                             dispatch.async {
 56 |                                 try! f(queue, elem)
    |                                      |- warning: capture of 'f' with non-sendable type '(ConcurrentQueue<B?>, Element) throws -> Void' 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'
 57 |
 58 |                                 group.leave()
/host/spi-builder-workspace/Sources/Stream/Stream.swift:56:40: warning: capture of 'queue' with non-sendable type 'ConcurrentQueue<B?>' in a '@Sendable' closure; this is an error in the Swift 6 language mode
 54 |
 55 |                             dispatch.async {
 56 |                                 try! f(queue, elem)
    |                                        `- warning: capture of 'queue' with non-sendable type 'ConcurrentQueue<B?>' in a '@Sendable' closure; this is an error in the Swift 6 language mode
 57 |
 58 |                                 group.leave()
/host/spi-builder-workspace/Sources/Stream/ConcurrentQueue.swift:3:14: note: generic class 'ConcurrentQueue' does not conform to the 'Sendable' protocol
 1 | import Foundation
 2 |
 3 | public class ConcurrentQueue<T> {
   |              `- note: generic class 'ConcurrentQueue' does not conform to the 'Sendable' protocol
 4 |     let lock = Lock()
 5 |     let second: Double = 1_000_000
/host/spi-builder-workspace/Sources/Stream/Stream.swift:56:47: warning: capture of 'elem' with non-sendable type 'Element' in a '@Sendable' closure; this is an error in the Swift 6 language mode
  1 | import Foundation
  2 |
  3 | public struct Stream<Element> {
    |                      `- note: consider making generic parameter 'Element' conform to the 'Sendable' protocol
  4 |     // @usableFromInline
  5 |     internal var base: AnySequence<Element>
    :
 54 |
 55 |                             dispatch.async {
 56 |                                 try! f(queue, elem)
    |                                               `- warning: capture of 'elem' with non-sendable type 'Element' in a '@Sendable' closure; this is an error in the Swift 6 language mode
 57 |
 58 |                                 group.leave()
[6/9] Compiling Stream OrderedStream.swift
/host/spi-builder-workspace/Sources/Stream/OrderedStream.swift:123:42: warning: capture of 'self' with non-sendable type 'OrderedStream<Element>' in a '@Sendable' closure; this is an error in the Swift 6 language mode
 71 | }
 72 |
 73 | public struct OrderedStream<Element> {
    |               `- note: consider making generic struct 'OrderedStream' conform to the 'Sendable' protocol
 74 |     // @usableFromInline
 75 |     internal var base: AnySequence<Element>
    :
121 |                         let group = DispatchGroup()
122 |
123 |                         for (i, elem) in self.enumerated() {
    |                                          `- warning: capture of 'self' with non-sendable type 'OrderedStream<Element>' in a '@Sendable' closure; this is an error in the Swift 6 language mode
124 |                             group.enter()
125 |                             semaphore.wait()
/host/spi-builder-workspace/Sources/Stream/OrderedStream.swift:128:38: warning: capture of 'f' with non-sendable type '(ConcurrentQueue<Index<B>?>, Int, Element) throws -> Void' in a '@Sendable' closure; this is an error in the Swift 6 language mode
126 |
127 |                             dispatch.async {
128 |                                 try! f(queue, i, elem)
    |                                      |- warning: capture of 'f' with non-sendable type '(ConcurrentQueue<Index<B>?>, Int, Element) throws -> Void' 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'
129 |
130 |                                 group.leave()
/host/spi-builder-workspace/Sources/Stream/OrderedStream.swift:128:40: warning: capture of 'queue' with non-sendable type 'ConcurrentQueue<Index<B>?>' in a '@Sendable' closure; this is an error in the Swift 6 language mode
126 |
127 |                             dispatch.async {
128 |                                 try! f(queue, i, elem)
    |                                        `- warning: capture of 'queue' with non-sendable type 'ConcurrentQueue<Index<B>?>' in a '@Sendable' closure; this is an error in the Swift 6 language mode
129 |
130 |                                 group.leave()
/host/spi-builder-workspace/Sources/Stream/ConcurrentQueue.swift:3:14: note: generic class 'ConcurrentQueue' does not conform to the 'Sendable' protocol
 1 | import Foundation
 2 |
 3 | public class ConcurrentQueue<T> {
   |              `- note: generic class 'ConcurrentQueue' does not conform to the 'Sendable' protocol
 4 |     let lock = Lock()
 5 |     let second: Double = 1_000_000
/host/spi-builder-workspace/Sources/Stream/OrderedStream.swift:128:38: warning: capture of 'f' with non-sendable type '(ConcurrentQueue<Index<B>?>, Int, Element) throws -> Void' in a '@Sendable' closure; this is an error in the Swift 6 language mode
126 |
127 |                             dispatch.async {
128 |                                 try! f(queue, i, elem)
    |                                      |- warning: capture of 'f' with non-sendable type '(ConcurrentQueue<Index<B>?>, Int, Element) throws -> Void' 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'
129 |
130 |                                 group.leave()
/host/spi-builder-workspace/Sources/Stream/OrderedStream.swift:128:40: warning: capture of 'queue' with non-sendable type 'ConcurrentQueue<Index<B>?>' in a '@Sendable' closure; this is an error in the Swift 6 language mode
126 |
127 |                             dispatch.async {
128 |                                 try! f(queue, i, elem)
    |                                        `- warning: capture of 'queue' with non-sendable type 'ConcurrentQueue<Index<B>?>' in a '@Sendable' closure; this is an error in the Swift 6 language mode
129 |
130 |                                 group.leave()
/host/spi-builder-workspace/Sources/Stream/ConcurrentQueue.swift:3:14: note: generic class 'ConcurrentQueue' does not conform to the 'Sendable' protocol
 1 | import Foundation
 2 |
 3 | public class ConcurrentQueue<T> {
   |              `- note: generic class 'ConcurrentQueue' does not conform to the 'Sendable' protocol
 4 |     let lock = Lock()
 5 |     let second: Double = 1_000_000
/host/spi-builder-workspace/Sources/Stream/OrderedStream.swift:128:50: warning: capture of 'elem' with non-sendable type 'OrderedStream<Element>.Element' (aka 'Element') in a '@Sendable' closure; this is an error in the Swift 6 language mode
 71 | }
 72 |
 73 | public struct OrderedStream<Element> {
    |                             `- note: consider making generic parameter 'OrderedStream<Element>.Element' (aka 'Element') conform to the 'Sendable' protocol
 74 |     // @usableFromInline
 75 |     internal var base: AnySequence<Element>
    :
126 |
127 |                             dispatch.async {
128 |                                 try! f(queue, i, elem)
    |                                                  `- warning: capture of 'elem' with non-sendable type 'OrderedStream<Element>.Element' (aka 'Element') in a '@Sendable' closure; this is an error in the Swift 6 language mode
129 |
130 |                                 group.leave()
[7/9] Compiling Stream Lock.swift
[8/9] Emitting module Stream
[9/9] Compiling Stream ConcurrentQueue.swift
/host/spi-builder-workspace/Sources/Stream/ConcurrentQueue.swift:32:17: error: cannot find 'usleep' in scope
30 |                 break
31 |             } catch QueueError.full {
32 |                 usleep(useconds_t(timeSleep * second))
   |                 `- error: cannot find 'usleep' in scope
33 |             }
34 |
/host/spi-builder-workspace/Sources/Stream/ConcurrentQueue.swift:56:17: error: cannot find 'usleep' in scope
54 |                 return output!
55 |             } catch QueueError.empty {
56 |                 usleep(useconds_t(timeSleep * second))
   |                 `- error: cannot find 'usleep' in scope
57 |             }
58 |
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-0":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:android-6.1-latest swift build --swift-sdk aarch64-unknown-linux-android24 2>&1
android-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:9f3c606dcd2a4f06d17ba472aa533c43685ba7ba19a5c9bc23518a066eb7f86a
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:android-6.1-latest
[0/1] Planning build
Building for debugging...
[0/1] Write swift-version-24593BA9C3E375BF.txt
[2/8] Compiling Stream Utils.swift
[3/8] Emitting module Stream
[4/8] Compiling Stream Stream.swift
[5/8] Compiling Stream Queue.swift
[6/8] Compiling Stream Lock.swift
[7/8] Compiling Stream OrderedStream.swift
[8/8] Compiling Stream ConcurrentQueue.swift
/host/spi-builder-workspace/Sources/Stream/ConcurrentQueue.swift:32:17: error: cannot find 'usleep' in scope
30 |                 break
31 |             } catch QueueError.full {
32 |                 usleep(useconds_t(timeSleep * second))
   |                 `- error: cannot find 'usleep' in scope
33 |             }
34 |
/host/spi-builder-workspace/Sources/Stream/ConcurrentQueue.swift:56:17: error: cannot find 'usleep' in scope
54 |                 return output!
55 |             } catch QueueError.empty {
56 |                 usleep(useconds_t(timeSleep * second))
   |                 `- error: cannot find 'usleep' in scope
57 |             }
58 |
BUILD FAILURE 6.1 android