The Swift Package Index logo.Swift Package Index

Has it really been five years since Swift Package Index launched? Read our anniversary blog post!

Build Information

Failed to build package-concurrency-helpers, reference 5.1.1 (eb5a56), with Swift 6.1 for Android on 30 May 2025 16:56:47 UTC.

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 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.63.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/ordo-one/package-concurrency-helpers.git
Reference: 5.1.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/ordo-one/package-concurrency-helpers
 * tag               5.1.1      -> FETCH_HEAD
HEAD is now at eb5a564 fix(patch): avoid closure escaping in runSync() (#70)
Cloned https://github.com/ordo-one/package-concurrency-helpers.git
Revision (git rev-parse @):
eb5a5642ad0cbce123e7773b422bfcfce48c5728
SUCCESS checkout https://github.com/ordo-one/package-concurrency-helpers.git at 5.1.1
========================================
Build
========================================
Selected platform:         android
Swift version:             6.1
Building package at path:  $PWD
https://github.com/ordo-one/package-concurrency-helpers.git
https://github.com/ordo-one/package-concurrency-helpers.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
  "dependencies" : [
    {
      "identity" : "swift-docc-plugin",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "1.0.0",
            "upper_bound" : "2.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/apple/swift-docc-plugin"
    },
    {
      "identity" : "cwlpreconditiontesting",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "2.0.0",
            "upper_bound" : "3.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/mattgallagher/CwlPreconditionTesting"
    },
    {
      "identity" : "swift-atomics",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "1.0.0",
            "upper_bound" : "2.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/apple/swift-atomics"
    }
  ],
  "manifest_display_name" : "package-concurrency-helpers",
  "name" : "package-concurrency-helpers",
  "path" : "/host/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "macos",
      "version" : "13.0"
    },
    {
      "name" : "ios",
      "version" : "16.0"
    }
  ],
  "products" : [
    {
      "name" : "PackageConcurrencyHelpers",
      "targets" : [
        "PackageConcurrencyHelpers"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    },
    {
      "name" : "Helpers",
      "targets" : [
        "Helpers"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "_PauseShims",
      "module_type" : "ClangTarget",
      "name" : "_PauseShims",
      "path" : "Sources/_PauseShims",
      "product_memberships" : [
        "PackageConcurrencyHelpers"
      ],
      "sources" : [
        "_PauseShims.c"
      ],
      "type" : "library"
    },
    {
      "c99name" : "PackageConcurrencyHelpers",
      "module_type" : "SwiftTarget",
      "name" : "PackageConcurrencyHelpers",
      "path" : "Sources/ConcurrencyHelpers",
      "product_dependencies" : [
        "Atomics"
      ],
      "product_memberships" : [
        "PackageConcurrencyHelpers"
      ],
      "sources" : [
        "ForBlockingCall.swift",
        "Lock.swift",
        "Lockable.swift",
        "NIOSendable.swift",
        "Protected.swift",
        "RunSync.swift",
        "Spinlock.swift",
        "UnsafeSendableWrapper.swift",
        "YieldWithBackPressure.swift"
      ],
      "target_dependencies" : [
        "_PauseShims"
      ],
      "type" : "library"
    },
    {
      "c99name" : "HelpersTests",
      "module_type" : "SwiftTarget",
      "name" : "HelpersTests",
      "path" : "Tests/HelpersTests",
      "sources" : [
        "BoxTests.swift",
        "TimeIntervalCounterTests.swift"
      ],
      "target_dependencies" : [
        "Helpers",
        "PackageConcurrencyHelpers"
      ],
      "type" : "test"
    },
    {
      "c99name" : "Helpers",
      "module_type" : "SwiftTarget",
      "name" : "Helpers",
      "path" : "Sources/Helpers",
      "product_memberships" : [
        "Helpers"
      ],
      "sources" : [
        "Box.swift",
        "IsBeingDebugged.swift",
        "MakeStream.swift",
        "NearestPowerOf2.swift",
        "TimeIntervalCounter.swift"
      ],
      "type" : "library"
    },
    {
      "c99name" : "ConcurrencyHelpersTests",
      "module_type" : "SwiftTarget",
      "name" : "ConcurrencyHelpersTests",
      "path" : "Tests/ConcurrencyHelpersTests",
      "product_dependencies" : [
        "CwlPreconditionTesting"
      ],
      "sources" : [
        "ConcurrencyHelpersTests.swift"
      ],
      "target_dependencies" : [
        "PackageConcurrencyHelpers"
      ],
      "type" : "test"
    }
  ],
  "tools_version" : "5.8"
}
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
Fetching https://github.com/apple/swift-atomics
Fetching https://github.com/mattgallagher/CwlPreconditionTesting
Fetching https://github.com/apple/swift-docc-plugin
[1/1257] Fetching cwlpreconditiontesting
[1133/3306] Fetching cwlpreconditiontesting, swift-docc-plugin
[1134/5023] Fetching cwlpreconditiontesting, swift-docc-plugin, swift-atomics
Fetched https://github.com/mattgallagher/CwlPreconditionTesting from cache (0.48s)
[1408/3766] Fetching swift-docc-plugin, swift-atomics
Fetched https://github.com/apple/swift-atomics from cache (0.81s)
Fetched https://github.com/apple/swift-docc-plugin from cache (0.86s)
Computing version for https://github.com/apple/swift-atomics
Computed https://github.com/apple/swift-atomics at 1.2.0 (2.25s)
Computing version for https://github.com/mattgallagher/CwlPreconditionTesting
Computed https://github.com/mattgallagher/CwlPreconditionTesting at 2.2.2 (1.29s)
Fetching https://github.com/mattgallagher/CwlCatchException.git
[1/455] Fetching cwlcatchexception
Fetched https://github.com/mattgallagher/CwlCatchException.git from cache (0.37s)
Computing version for https://github.com/mattgallagher/CwlCatchException.git
Computed https://github.com/mattgallagher/CwlCatchException.git at 2.2.1 (1.31s)
Computing version for https://github.com/apple/swift-docc-plugin
Computed https://github.com/apple/swift-docc-plugin at 1.4.3 (1.04s)
Fetching https://github.com/swiftlang/swift-docc-symbolkit
[1/3392] Fetching swift-docc-symbolkit
Fetched https://github.com/swiftlang/swift-docc-symbolkit from cache (0.67s)
Computing version for https://github.com/swiftlang/swift-docc-symbolkit
Computed https://github.com/swiftlang/swift-docc-symbolkit at 1.0.0 (1.93s)
Creating working copy for https://github.com/swiftlang/swift-docc-symbolkit
Working copy of https://github.com/swiftlang/swift-docc-symbolkit resolved at 1.0.0
Creating working copy for https://github.com/apple/swift-docc-plugin
Working copy of https://github.com/apple/swift-docc-plugin resolved at 1.4.3
Creating working copy for https://github.com/apple/swift-atomics
Working copy of https://github.com/apple/swift-atomics resolved at 1.2.0
Creating working copy for https://github.com/mattgallagher/CwlCatchException.git
Working copy of https://github.com/mattgallagher/CwlCatchException.git resolved at 2.2.1
Creating working copy for https://github.com/mattgallagher/CwlPreconditionTesting
Working copy of https://github.com/mattgallagher/CwlPreconditionTesting resolved at 2.2.2
[1/1] Compiling plugin Swift-DocC Preview
[2/2] Compiling plugin Swift-DocC
Building for debugging...
[2/8] Write sources
[5/8] Compiling _PauseShims _PauseShims.c
[6/8] Compiling _AtomicsShims.c
[7/8] Write swift-version-24593BA9C3E375BF.txt
[9/33] Compiling Atomics ManagedAtomic.swift
[10/33] Compiling Atomics ManagedAtomicLazyReference.swift
[11/35] Compiling Atomics Primitives.shims.swift
[12/35] Compiling Atomics AtomicInteger.swift
[13/35] Compiling Atomics AtomicOptionalWrappable.swift
[14/35] Compiling Atomics AtomicReference.swift
[15/35] Compiling Atomics AtomicStorage.swift
[16/35] Compiling Atomics AtomicValue.swift
[17/35] Compiling Atomics AtomicMemoryOrderings.swift
[18/35] Compiling Atomics DoubleWord.swift
[19/35] Compiling Atomics UnsafeAtomic.swift
[20/35] Compiling Atomics UnsafeAtomicLazyReference.swift
[21/35] Emitting module Atomics
[22/35] Compiling Atomics IntegerConformances.swift
[23/35] Compiling Atomics PointerConformances.swift
[24/35] Compiling Atomics Primitives.native.swift
[25/35] Compiling Atomics OptionalRawRepresentable.swift
[26/35] Compiling Atomics RawRepresentable.swift
[27/35] Compiling Atomics AtomicBool.swift
[28/35] Compiling Atomics IntegerOperations.swift
[29/35] Compiling Atomics Unmanaged extensions.swift
[31/36] Compiling Helpers MakeStream.swift
[32/36] Compiling Helpers TimeIntervalCounter.swift
[33/36] Compiling Helpers NearestPowerOf2.swift
[34/45] Compiling PackageConcurrencyHelpers UnsafeSendableWrapper.swift
[35/46] Compiling PackageConcurrencyHelpers Spinlock.swift
[36/46] Compiling PackageConcurrencyHelpers RunSync.swift
[37/46] Compiling PackageConcurrencyHelpers Lockable.swift
[38/46] Compiling PackageConcurrencyHelpers NIOSendable.swift
[39/46] Compiling PackageConcurrencyHelpers Protected.swift
/host/spi-builder-workspace/Sources/ConcurrencyHelpers/Lock.swift:24:53: error: cannot find type 'pthread_mutex_t' in scope
22 |         fileprivate let mutex = UnsafeMutablePointer<os_unfair_lock>.allocate(capacity: 1)
23 |     #else
24 |         fileprivate let mutex: UnsafeMutablePointer<pthread_mutex_t> =
   |                                                     `- error: cannot find type 'pthread_mutex_t' in scope
25 |             UnsafeMutablePointer.allocate(capacity: 1)
26 |     #endif
error: emit-module command failed with exit code 1 (use -v to see invocation)
[40/46] Emitting module PackageConcurrencyHelpers
/host/spi-builder-workspace/Sources/ConcurrencyHelpers/Lock.swift:17:12: error: Unsupported Platform
15 |     import Glibc
16 | #else
17 |     #error("Unsupported Platform")
   |            `- error: Unsupported Platform
18 | #endif
19 |
/host/spi-builder-workspace/Sources/ConcurrencyHelpers/Lock.swift:24:53: error: cannot find type 'pthread_mutex_t' in scope
22 |         fileprivate let mutex = UnsafeMutablePointer<os_unfair_lock>.allocate(capacity: 1)
23 |     #else
24 |         fileprivate let mutex: UnsafeMutablePointer<pthread_mutex_t> =
   |                                                     `- error: cannot find type 'pthread_mutex_t' in scope
25 |             UnsafeMutablePointer.allocate(capacity: 1)
26 |     #endif
[41/46] Compiling PackageConcurrencyHelpers ForBlockingCall.swift
/host/spi-builder-workspace/Sources/ConcurrencyHelpers/Lock.swift:17:12: error: Unsupported Platform
15 |     import Glibc
16 | #else
17 |     #error("Unsupported Platform")
   |            `- error: Unsupported Platform
18 | #endif
19 |
/host/spi-builder-workspace/Sources/ConcurrencyHelpers/Lock.swift:24:53: error: cannot find type 'pthread_mutex_t' in scope
22 |         fileprivate let mutex = UnsafeMutablePointer<os_unfair_lock>.allocate(capacity: 1)
23 |     #else
24 |         fileprivate let mutex: UnsafeMutablePointer<pthread_mutex_t> =
   |                                                     `- error: cannot find type 'pthread_mutex_t' in scope
25 |             UnsafeMutablePointer.allocate(capacity: 1)
26 |     #endif
/host/spi-builder-workspace/Sources/ConcurrencyHelpers/Lock.swift:33:24: error: cannot find 'pthread_mutexattr_t' in scope
31 |             mutex.initialize(to: os_unfair_lock())
32 |         #else
33 |             var attr = pthread_mutexattr_t()
   |                        `- error: cannot find 'pthread_mutexattr_t' in scope
34 |             pthread_mutexattr_init(&attr)
35 |
/host/spi-builder-workspace/Sources/ConcurrencyHelpers/Lock.swift:34:13: error: cannot find 'pthread_mutexattr_init' in scope
32 |         #else
33 |             var attr = pthread_mutexattr_t()
34 |             pthread_mutexattr_init(&attr)
   |             `- error: cannot find 'pthread_mutexattr_init' in scope
35 |
36 |             let err = pthread_mutex_init(mutex, &attr)
/host/spi-builder-workspace/Sources/ConcurrencyHelpers/Lock.swift:36:23: error: cannot find 'pthread_mutex_init' in scope
34 |             pthread_mutexattr_init(&attr)
35 |
36 |             let err = pthread_mutex_init(mutex, &attr)
   |                       `- error: cannot find 'pthread_mutex_init' in scope
37 |             precondition(err == 0, "\(#function) failed in pthread_mutex with error \(err)")
38 |         #endif
/host/spi-builder-workspace/Sources/ConcurrencyHelpers/Lock.swift:45:23: error: cannot find 'pthread_mutex_destroy' in scope
43 |             mutex.deinitialize(count: 1)
44 |         #else
45 |             let err = pthread_mutex_destroy(self.mutex)
   |                       `- error: cannot find 'pthread_mutex_destroy' in scope
46 |             precondition(err == 0, "\(#function) failed in pthread_mutex with error \(err)")
47 |         #endif
/host/spi-builder-workspace/Sources/ConcurrencyHelpers/Lock.swift:59:23: error: cannot find 'pthread_mutex_lock' in scope
57 |             os_unfair_lock_lock(mutex)
58 |         #else
59 |             let err = pthread_mutex_lock(mutex)
   |                       `- error: cannot find 'pthread_mutex_lock' in scope
60 |             precondition(err == 0, "\(#function) failed in pthread_mutex with error \(err)")
61 |         #endif
/host/spi-builder-workspace/Sources/ConcurrencyHelpers/Lock.swift:72:23: error: cannot find 'pthread_mutex_unlock' in scope
70 |             os_unfair_lock_unlock(mutex)
71 |         #else
72 |             let err = pthread_mutex_unlock(mutex)
   |                       `- error: cannot find 'pthread_mutex_unlock' in scope
73 |             precondition(err == 0, "\(#function) failed in pthread_mutex with error \(err)")
74 |         #endif
[42/46] Compiling PackageConcurrencyHelpers Lock.swift
/host/spi-builder-workspace/Sources/ConcurrencyHelpers/Lock.swift:17:12: error: Unsupported Platform
15 |     import Glibc
16 | #else
17 |     #error("Unsupported Platform")
   |            `- error: Unsupported Platform
18 | #endif
19 |
/host/spi-builder-workspace/Sources/ConcurrencyHelpers/Lock.swift:24:53: error: cannot find type 'pthread_mutex_t' in scope
22 |         fileprivate let mutex = UnsafeMutablePointer<os_unfair_lock>.allocate(capacity: 1)
23 |     #else
24 |         fileprivate let mutex: UnsafeMutablePointer<pthread_mutex_t> =
   |                                                     `- error: cannot find type 'pthread_mutex_t' in scope
25 |             UnsafeMutablePointer.allocate(capacity: 1)
26 |     #endif
/host/spi-builder-workspace/Sources/ConcurrencyHelpers/Lock.swift:33:24: error: cannot find 'pthread_mutexattr_t' in scope
31 |             mutex.initialize(to: os_unfair_lock())
32 |         #else
33 |             var attr = pthread_mutexattr_t()
   |                        `- error: cannot find 'pthread_mutexattr_t' in scope
34 |             pthread_mutexattr_init(&attr)
35 |
/host/spi-builder-workspace/Sources/ConcurrencyHelpers/Lock.swift:34:13: error: cannot find 'pthread_mutexattr_init' in scope
32 |         #else
33 |             var attr = pthread_mutexattr_t()
34 |             pthread_mutexattr_init(&attr)
   |             `- error: cannot find 'pthread_mutexattr_init' in scope
35 |
36 |             let err = pthread_mutex_init(mutex, &attr)
/host/spi-builder-workspace/Sources/ConcurrencyHelpers/Lock.swift:36:23: error: cannot find 'pthread_mutex_init' in scope
34 |             pthread_mutexattr_init(&attr)
35 |
36 |             let err = pthread_mutex_init(mutex, &attr)
   |                       `- error: cannot find 'pthread_mutex_init' in scope
37 |             precondition(err == 0, "\(#function) failed in pthread_mutex with error \(err)")
38 |         #endif
/host/spi-builder-workspace/Sources/ConcurrencyHelpers/Lock.swift:45:23: error: cannot find 'pthread_mutex_destroy' in scope
43 |             mutex.deinitialize(count: 1)
44 |         #else
45 |             let err = pthread_mutex_destroy(self.mutex)
   |                       `- error: cannot find 'pthread_mutex_destroy' in scope
46 |             precondition(err == 0, "\(#function) failed in pthread_mutex with error \(err)")
47 |         #endif
/host/spi-builder-workspace/Sources/ConcurrencyHelpers/Lock.swift:59:23: error: cannot find 'pthread_mutex_lock' in scope
57 |             os_unfair_lock_lock(mutex)
58 |         #else
59 |             let err = pthread_mutex_lock(mutex)
   |                       `- error: cannot find 'pthread_mutex_lock' in scope
60 |             precondition(err == 0, "\(#function) failed in pthread_mutex with error \(err)")
61 |         #endif
/host/spi-builder-workspace/Sources/ConcurrencyHelpers/Lock.swift:72:23: error: cannot find 'pthread_mutex_unlock' in scope
70 |             os_unfair_lock_unlock(mutex)
71 |         #else
72 |             let err = pthread_mutex_unlock(mutex)
   |                       `- error: cannot find 'pthread_mutex_unlock' in scope
73 |             precondition(err == 0, "\(#function) failed in pthread_mutex with error \(err)")
74 |         #endif
[43/46] Compiling PackageConcurrencyHelpers YieldWithBackPressure.swift
/host/spi-builder-workspace/Sources/ConcurrencyHelpers/YieldWithBackPressure.swift:22:35: warning: sending 'message' risks causing data races; this is an error in the Swift 6 language mode
20 |                                            to continuation: AsyncStream<Message>.Continuation) async -> Bool {
21 |     while true {
22 |         let result = continuation.yield(message)
   |                                   |- warning: sending 'message' risks causing data races; this is an error in the Swift 6 language mode
   |                                   `- note: task-isolated 'message' is passed as a 'sending' parameter; Uses in callee may race with later task-isolated uses
23 |         switch result {
24 |         case .terminated:
[44/46] Emitting module Helpers
[45/46] Compiling Helpers Box.swift
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 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
[0/1] Planning build
[1/1] Compiling plugin Swift-DocC Preview
[2/2] Compiling plugin Swift-DocC
Building for debugging...
[2/3] Write swift-version-24593BA9C3E375BF.txt
[4/28] Compiling Helpers TimeIntervalCounter.swift
[5/28] Compiling Atomics AtomicMemoryOrderings.swift
[6/28] Compiling Atomics DoubleWord.swift
[7/30] Compiling Atomics UnsafeAtomic.swift
[8/30] Compiling Atomics UnsafeAtomicLazyReference.swift
[9/30] Compiling Helpers MakeStream.swift
[10/30] Compiling Helpers NearestPowerOf2.swift
[11/30] Compiling Atomics ManagedAtomic.swift
[12/30] Compiling Atomics ManagedAtomicLazyReference.swift
[13/30] Compiling Atomics OptionalRawRepresentable.swift
[14/30] Compiling Atomics RawRepresentable.swift
[15/30] Compiling Atomics AtomicBool.swift
[16/30] Compiling Atomics IntegerOperations.swift
[17/30] Compiling Atomics Unmanaged extensions.swift
[18/30] Compiling Atomics Primitives.shims.swift
[19/30] Compiling Atomics AtomicInteger.swift
[20/30] Compiling Atomics AtomicOptionalWrappable.swift
[21/30] Compiling Atomics AtomicReference.swift
[22/30] Compiling Atomics AtomicStorage.swift
[23/30] Compiling Atomics AtomicValue.swift
[24/30] Emitting module Atomics
[25/30] Compiling Atomics IntegerConformances.swift
[26/30] Compiling Atomics PointerConformances.swift
[27/30] Compiling Atomics Primitives.native.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[29/40] Compiling PackageConcurrencyHelpers UnsafeSendableWrapper.swift
[30/40] Emitting module PackageConcurrencyHelpers
/host/spi-builder-workspace/Sources/ConcurrencyHelpers/Lock.swift:17:12: error: Unsupported Platform
15 |     import Glibc
16 | #else
17 |     #error("Unsupported Platform")
   |            `- error: Unsupported Platform
18 | #endif
19 |
/host/spi-builder-workspace/Sources/ConcurrencyHelpers/Lock.swift:24:53: error: cannot find type 'pthread_mutex_t' in scope
22 |         fileprivate let mutex = UnsafeMutablePointer<os_unfair_lock>.allocate(capacity: 1)
23 |     #else
24 |         fileprivate let mutex: UnsafeMutablePointer<pthread_mutex_t> =
   |                                                     `- error: cannot find type 'pthread_mutex_t' in scope
25 |             UnsafeMutablePointer.allocate(capacity: 1)
26 |     #endif
[31/41] Compiling PackageConcurrencyHelpers Lockable.swift
[32/41] Compiling PackageConcurrencyHelpers NIOSendable.swift
[33/41] Compiling PackageConcurrencyHelpers Protected.swift
/host/spi-builder-workspace/Sources/ConcurrencyHelpers/Lock.swift:24:53: error: cannot find type 'pthread_mutex_t' in scope
22 |         fileprivate let mutex = UnsafeMutablePointer<os_unfair_lock>.allocate(capacity: 1)
23 |     #else
24 |         fileprivate let mutex: UnsafeMutablePointer<pthread_mutex_t> =
   |                                                     `- error: cannot find type 'pthread_mutex_t' in scope
25 |             UnsafeMutablePointer.allocate(capacity: 1)
26 |     #endif
[34/41] Compiling PackageConcurrencyHelpers ForBlockingCall.swift
/host/spi-builder-workspace/Sources/ConcurrencyHelpers/Lock.swift:17:12: error: Unsupported Platform
15 |     import Glibc
16 | #else
17 |     #error("Unsupported Platform")
   |            `- error: Unsupported Platform
18 | #endif
19 |
/host/spi-builder-workspace/Sources/ConcurrencyHelpers/Lock.swift:24:53: error: cannot find type 'pthread_mutex_t' in scope
22 |         fileprivate let mutex = UnsafeMutablePointer<os_unfair_lock>.allocate(capacity: 1)
23 |     #else
24 |         fileprivate let mutex: UnsafeMutablePointer<pthread_mutex_t> =
   |                                                     `- error: cannot find type 'pthread_mutex_t' in scope
25 |             UnsafeMutablePointer.allocate(capacity: 1)
26 |     #endif
/host/spi-builder-workspace/Sources/ConcurrencyHelpers/Lock.swift:33:24: error: cannot find 'pthread_mutexattr_t' in scope
31 |             mutex.initialize(to: os_unfair_lock())
32 |         #else
33 |             var attr = pthread_mutexattr_t()
   |                        `- error: cannot find 'pthread_mutexattr_t' in scope
34 |             pthread_mutexattr_init(&attr)
35 |
/host/spi-builder-workspace/Sources/ConcurrencyHelpers/Lock.swift:34:13: error: cannot find 'pthread_mutexattr_init' in scope
32 |         #else
33 |             var attr = pthread_mutexattr_t()
34 |             pthread_mutexattr_init(&attr)
   |             `- error: cannot find 'pthread_mutexattr_init' in scope
35 |
36 |             let err = pthread_mutex_init(mutex, &attr)
/host/spi-builder-workspace/Sources/ConcurrencyHelpers/Lock.swift:36:23: error: cannot find 'pthread_mutex_init' in scope
34 |             pthread_mutexattr_init(&attr)
35 |
36 |             let err = pthread_mutex_init(mutex, &attr)
   |                       `- error: cannot find 'pthread_mutex_init' in scope
37 |             precondition(err == 0, "\(#function) failed in pthread_mutex with error \(err)")
38 |         #endif
/host/spi-builder-workspace/Sources/ConcurrencyHelpers/Lock.swift:45:23: error: cannot find 'pthread_mutex_destroy' in scope
43 |             mutex.deinitialize(count: 1)
44 |         #else
45 |             let err = pthread_mutex_destroy(self.mutex)
   |                       `- error: cannot find 'pthread_mutex_destroy' in scope
46 |             precondition(err == 0, "\(#function) failed in pthread_mutex with error \(err)")
47 |         #endif
/host/spi-builder-workspace/Sources/ConcurrencyHelpers/Lock.swift:59:23: error: cannot find 'pthread_mutex_lock' in scope
57 |             os_unfair_lock_lock(mutex)
58 |         #else
59 |             let err = pthread_mutex_lock(mutex)
   |                       `- error: cannot find 'pthread_mutex_lock' in scope
60 |             precondition(err == 0, "\(#function) failed in pthread_mutex with error \(err)")
61 |         #endif
/host/spi-builder-workspace/Sources/ConcurrencyHelpers/Lock.swift:72:23: error: cannot find 'pthread_mutex_unlock' in scope
70 |             os_unfair_lock_unlock(mutex)
71 |         #else
72 |             let err = pthread_mutex_unlock(mutex)
   |                       `- error: cannot find 'pthread_mutex_unlock' in scope
73 |             precondition(err == 0, "\(#function) failed in pthread_mutex with error \(err)")
74 |         #endif
[35/41] Compiling PackageConcurrencyHelpers Lock.swift
/host/spi-builder-workspace/Sources/ConcurrencyHelpers/Lock.swift:17:12: error: Unsupported Platform
15 |     import Glibc
16 | #else
17 |     #error("Unsupported Platform")
   |            `- error: Unsupported Platform
18 | #endif
19 |
/host/spi-builder-workspace/Sources/ConcurrencyHelpers/Lock.swift:24:53: error: cannot find type 'pthread_mutex_t' in scope
22 |         fileprivate let mutex = UnsafeMutablePointer<os_unfair_lock>.allocate(capacity: 1)
23 |     #else
24 |         fileprivate let mutex: UnsafeMutablePointer<pthread_mutex_t> =
   |                                                     `- error: cannot find type 'pthread_mutex_t' in scope
25 |             UnsafeMutablePointer.allocate(capacity: 1)
26 |     #endif
/host/spi-builder-workspace/Sources/ConcurrencyHelpers/Lock.swift:33:24: error: cannot find 'pthread_mutexattr_t' in scope
31 |             mutex.initialize(to: os_unfair_lock())
32 |         #else
33 |             var attr = pthread_mutexattr_t()
   |                        `- error: cannot find 'pthread_mutexattr_t' in scope
34 |             pthread_mutexattr_init(&attr)
35 |
/host/spi-builder-workspace/Sources/ConcurrencyHelpers/Lock.swift:34:13: error: cannot find 'pthread_mutexattr_init' in scope
32 |         #else
33 |             var attr = pthread_mutexattr_t()
34 |             pthread_mutexattr_init(&attr)
   |             `- error: cannot find 'pthread_mutexattr_init' in scope
35 |
36 |             let err = pthread_mutex_init(mutex, &attr)
/host/spi-builder-workspace/Sources/ConcurrencyHelpers/Lock.swift:36:23: error: cannot find 'pthread_mutex_init' in scope
34 |             pthread_mutexattr_init(&attr)
35 |
36 |             let err = pthread_mutex_init(mutex, &attr)
   |                       `- error: cannot find 'pthread_mutex_init' in scope
37 |             precondition(err == 0, "\(#function) failed in pthread_mutex with error \(err)")
38 |         #endif
/host/spi-builder-workspace/Sources/ConcurrencyHelpers/Lock.swift:45:23: error: cannot find 'pthread_mutex_destroy' in scope
43 |             mutex.deinitialize(count: 1)
44 |         #else
45 |             let err = pthread_mutex_destroy(self.mutex)
   |                       `- error: cannot find 'pthread_mutex_destroy' in scope
46 |             precondition(err == 0, "\(#function) failed in pthread_mutex with error \(err)")
47 |         #endif
/host/spi-builder-workspace/Sources/ConcurrencyHelpers/Lock.swift:59:23: error: cannot find 'pthread_mutex_lock' in scope
57 |             os_unfair_lock_lock(mutex)
58 |         #else
59 |             let err = pthread_mutex_lock(mutex)
   |                       `- error: cannot find 'pthread_mutex_lock' in scope
60 |             precondition(err == 0, "\(#function) failed in pthread_mutex with error \(err)")
61 |         #endif
/host/spi-builder-workspace/Sources/ConcurrencyHelpers/Lock.swift:72:23: error: cannot find 'pthread_mutex_unlock' in scope
70 |             os_unfair_lock_unlock(mutex)
71 |         #else
72 |             let err = pthread_mutex_unlock(mutex)
   |                       `- error: cannot find 'pthread_mutex_unlock' in scope
73 |             precondition(err == 0, "\(#function) failed in pthread_mutex with error \(err)")
74 |         #endif
[36/41] Compiling PackageConcurrencyHelpers Spinlock.swift
[37/41] Compiling PackageConcurrencyHelpers RunSync.swift
[38/41] Compiling PackageConcurrencyHelpers YieldWithBackPressure.swift
/host/spi-builder-workspace/Sources/ConcurrencyHelpers/YieldWithBackPressure.swift:22:35: warning: sending 'message' risks causing data races; this is an error in the Swift 6 language mode
20 |                                            to continuation: AsyncStream<Message>.Continuation) async -> Bool {
21 |     while true {
22 |         let result = continuation.yield(message)
   |                                   |- warning: sending 'message' risks causing data races; this is an error in the Swift 6 language mode
   |                                   `- note: task-isolated 'message' is passed as a 'sending' parameter; Uses in callee may race with later task-isolated uses
23 |         switch result {
24 |         case .terminated:
[39/41] Compiling Helpers Box.swift
BUILD FAILURE 6.1 android