The Swift Package Index logo.Swift Package Index

Track the adoption of Swift 6 strict concurrency checks for data race safety. How many packages are Ready for Swift 6?

Build Information

Failed to build SpeziAccessGuard, reference 0.3.2 (ee4cf2), with Swift 6.0 for Linux on 4 Nov 2024 14:05:11 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4606859-1":/host -w "$PWD" 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.56.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/StanfordSpezi/SpeziAccessGuard.git
Reference: 0.3.2
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/StanfordSpezi/SpeziAccessGuard
 * tag               0.3.2      -> FETCH_HEAD
HEAD is now at ee4cf25 Update to Spezi 1.0 (#20)
Cloned https://github.com/StanfordSpezi/SpeziAccessGuard.git
Revision (git rev-parse @):
ee4cf259a3d009bba340ea15b00092f04cf42cc3
SPI manifest file found: $PWD/.spi.yml
SUCCESS checkout https://github.com/StanfordSpezi/SpeziAccessGuard.git at 0.3.2
========================================
Build
========================================
Selected platform:         linux
Swift version:             6.0
Building package at path:  $PWD
https://github.com/StanfordSpezi/SpeziAccessGuard.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-1":/host -w "$PWD" 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
basic-6.0-latest: Pulling from finestructure/spi-images
Digest: sha256:47d26c99ca4f1ac0a332c85fd5b13ff4390e72115219984a57a68fe9d1063a05
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.0-latest
Fetching https://github.com/StanfordSpezi/SpeziStorage
Fetching https://github.com/StanfordSpezi/Spezi
Fetching https://github.com/StanfordSpezi/SpeziViews
[1/2485] Fetching speziviews
[722/3332] Fetching speziviews, spezistorage
[1693/12258] Fetching speziviews, spezistorage, spezi
Fetched https://github.com/StanfordSpezi/SpeziStorage from cache (0.33s)
Fetched https://github.com/StanfordSpezi/Spezi from cache (0.41s)
Fetched https://github.com/StanfordSpezi/SpeziViews from cache (0.42s)
Computing version for https://github.com/StanfordSpezi/SpeziViews
Computed https://github.com/StanfordSpezi/SpeziViews at 1.7.0 (2.48s)
Fetching https://github.com/apple/swift-collections.git
[1/15475] Fetching swift-collections
Fetched https://github.com/apple/swift-collections.git from cache (1.12s)
Computing version for https://github.com/apple/swift-collections.git
Computed https://github.com/apple/swift-collections.git at 1.1.4 (2.26s)
Computing version for https://github.com/StanfordSpezi/SpeziStorage
Computed https://github.com/StanfordSpezi/SpeziStorage at 1.2.1 (0.63s)
Fetching https://github.com/StanfordBDHG/XCTRuntimeAssertions
Fetching https://github.com/StanfordSpezi/SpeziFoundation
[1/374] Fetching xctruntimeassertions
[375/834] Fetching xctruntimeassertions, spezifoundation
Fetched https://github.com/StanfordSpezi/SpeziFoundation from cache (0.23s)
Fetched https://github.com/StanfordBDHG/XCTRuntimeAssertions from cache (0.23s)
Computing version for https://github.com/StanfordSpezi/SpeziFoundation
Computed https://github.com/StanfordSpezi/SpeziFoundation at 2.0.0 (0.56s)
Fetching https://github.com/apple/swift-atomics.git
[1/1569] Fetching swift-atomics
Fetched https://github.com/apple/swift-atomics.git from cache (0.35s)
Computing version for https://github.com/apple/swift-atomics.git
Computed https://github.com/apple/swift-atomics.git at 1.2.0 (0.45s)
Computing version for https://github.com/StanfordSpezi/Spezi
Computed https://github.com/StanfordSpezi/Spezi at 1.8.0 (0.57s)
Computing version for https://github.com/StanfordBDHG/XCTRuntimeAssertions
Computed https://github.com/StanfordBDHG/XCTRuntimeAssertions at 1.1.3 (0.52s)
Creating working copy for https://github.com/StanfordSpezi/SpeziStorage
Working copy of https://github.com/StanfordSpezi/SpeziStorage resolved at 1.2.1
Creating working copy for https://github.com/StanfordSpezi/Spezi
Working copy of https://github.com/StanfordSpezi/Spezi resolved at 1.8.0
Creating working copy for https://github.com/StanfordBDHG/XCTRuntimeAssertions
Working copy of https://github.com/StanfordBDHG/XCTRuntimeAssertions resolved at 1.1.3
Creating working copy for https://github.com/StanfordSpezi/SpeziFoundation
Working copy of https://github.com/StanfordSpezi/SpeziFoundation resolved at 2.0.0
Creating working copy for https://github.com/StanfordSpezi/SpeziViews
Working copy of https://github.com/StanfordSpezi/SpeziViews resolved at 1.7.0
Creating working copy for https://github.com/apple/swift-collections.git
Working copy of https://github.com/apple/swift-collections.git resolved at 1.1.4
Creating working copy for https://github.com/apple/swift-atomics.git
Working copy of https://github.com/apple/swift-atomics.git resolved at 1.2.0
warning: 'spi-builder-workspace': found 2 file(s) which are unhandled; explicitly declare them as resources or exclude from the target
    /host/spi-builder-workspace/Sources/SpeziAccessGuard/Resources/Localizable.xcstrings
    /host/spi-builder-workspace/Sources/SpeziAccessGuard/Resources/Localizable.xcstrings.license
warning: 'speziviews': found 2 file(s) which are unhandled; explicitly declare them as resources or exclude from the target
    /host/spi-builder-workspace/.build/checkouts/SpeziViews/Sources/SpeziViews/Resources/Localizable.xcstrings.license
    /host/spi-builder-workspace/.build/checkouts/SpeziViews/Sources/SpeziViews/Resources/Localizable.xcstrings
Building for debugging...
[0/14] Write sources
[0/14] Copying Localizable.xcstrings.license
[0/14] Copying Localizable.xcstrings
[0/14] Copying Info.plist
[0/14] Write sources
[12/14] Compiling _AtomicsShims.c
[13/14] Write swift-version-24593BA9C3E375BF.txt
[15/58] Emitting module XCTRuntimeAssertions
[16/59] Emitting module Atomics
[17/61] Compiling InternalCollectionsUtilities RandomAccessCollection+Offsets.swift
[18/61] Compiling InternalCollectionsUtilities Specialize.swift
[19/63] Compiling InternalCollectionsUtilities UnsafeMutableBufferPointer+SE-0370.swift
[20/63] Compiling InternalCollectionsUtilities UnsafeMutablePointer+SE-0370.swift
[21/63] Compiling InternalCollectionsUtilities UnsafeRawPointer extensions.swift
[24/63] Compiling XCTRuntimeAssertions Assert.swift
[25/63] Compiling Atomics IntegerOperations.swift
[26/63] Compiling Atomics Unmanaged extensions.swift
[27/63] Compiling InternalCollectionsUtilities UnsafeBufferPointer+Extras.swift
[28/63] Compiling InternalCollectionsUtilities UnsafeMutableBufferPointer+Extras.swift
[29/63] Compiling InternalCollectionsUtilities Debugging.swift
[30/63] Compiling InternalCollectionsUtilities Descriptions.swift
[31/63] Compiling InternalCollectionsUtilities _SortedCollection.swift
[32/63] Compiling InternalCollectionsUtilities _UniqueCollection.swift
[33/63] Emitting module InternalCollectionsUtilities
[37/63] Compiling InternalCollectionsUtilities UInt+reversed.swift
[38/63] Compiling InternalCollectionsUtilities _UnsafeBitSet+Index.swift
[39/63] Compiling InternalCollectionsUtilities FixedWidthInteger+roundUpToPowerOfTwo.swift
[40/63] Compiling InternalCollectionsUtilities Integer rank.swift
[41/63] Compiling InternalCollectionsUtilities UInt+first and last set bit.swift
[42/63] Compiling InternalCollectionsUtilities _UnsafeBitSet+_Word.swift
[43/63] Compiling InternalCollectionsUtilities _UnsafeBitSet.swift
[59/142] Compiling OrderedCollections OrderedSet+Partial SetAlgebra subtract.swift
[60/142] Compiling OrderedCollections OrderedSet+Partial SetAlgebra subtracting.swift
[61/142] Compiling OrderedCollections OrderedSet+Partial SetAlgebra symmetricDifference.swift
[62/142] Compiling OrderedCollections OrderedSet+Partial SetAlgebra union.swift
[63/142] Compiling OrderedCollections OrderedSet+Partial SetAlgebra+Basics.swift
[64/142] Compiling OrderedCollections OrderedSet+RandomAccessCollection.swift
[65/142] Compiling OrderedCollections OrderedSet+ReserveCapacity.swift
[66/149] Compiling OrderedCollections OrderedSet+Partial SetAlgebra intersection.swift
[67/149] Compiling OrderedCollections OrderedSet+Partial SetAlgebra isDisjoint.swift
[68/149] Compiling OrderedCollections OrderedSet+Partial SetAlgebra isEqualSet.swift
[69/149] Compiling OrderedCollections OrderedSet+Partial SetAlgebra isStrictSubset.swift
[70/149] Compiling OrderedCollections OrderedSet+Partial SetAlgebra isStrictSuperset.swift
[71/149] Compiling OrderedCollections OrderedSet+Partial SetAlgebra isSubset.swift
[72/149] Compiling OrderedCollections OrderedSet+Partial SetAlgebra isSuperset.swift
[73/149] Compiling OrderedCollections OrderedSet+Initializers.swift
[74/149] Compiling OrderedCollections OrderedSet+Insertions.swift
[75/149] Compiling OrderedCollections OrderedSet+Invariants.swift
[76/149] Compiling OrderedCollections OrderedSet+Partial MutableCollection.swift
[77/149] Compiling OrderedCollections OrderedSet+Partial RangeReplaceableCollection.swift
[78/149] Compiling OrderedCollections OrderedSet+Partial SetAlgebra formIntersection.swift
[79/149] Compiling OrderedCollections OrderedSet+Partial SetAlgebra formSymmetricDifference.swift
[80/149] Compiling OrderedCollections OrderedSet+Partial SetAlgebra formUnion.swift
[81/149] Compiling OrderedCollections OrderedDictionary.swift
[82/149] Compiling OrderedCollections OrderedSet+Codable.swift
[83/149] Compiling OrderedCollections OrderedSet+CustomReflectable.swift
[84/149] Compiling OrderedCollections OrderedSet+Descriptions.swift
[85/149] Compiling OrderedCollections OrderedSet+Diffing.swift
[86/149] Compiling OrderedCollections OrderedSet+Equatable.swift
[87/149] Compiling OrderedCollections OrderedSet+ExpressibleByArrayLiteral.swift
[88/149] Compiling OrderedCollections OrderedSet+Hashable.swift
[89/149] Compiling OrderedCollections OrderedDictionary+Codable.swift
[90/149] Compiling OrderedCollections OrderedDictionary+CustomReflectable.swift
[91/149] Compiling OrderedCollections OrderedDictionary+Deprecations.swift
[92/149] Compiling OrderedCollections OrderedDictionary+Descriptions.swift
[93/149] Compiling OrderedCollections OrderedDictionary+Elements.SubSequence.swift
[94/149] Compiling OrderedCollections OrderedDictionary+Elements.swift
[95/149] Compiling OrderedCollections OrderedDictionary+Equatable.swift
[96/149] Compiling OrderedCollections OrderedDictionary+ExpressibleByDictionaryLiteral.swift
[97/149] Compiling OrderedCollections OrderedDictionary+Hashable.swift
[98/149] Compiling OrderedCollections OrderedDictionary+Initializers.swift
[99/149] Compiling OrderedCollections OrderedDictionary+Invariants.swift
[100/149] Compiling OrderedCollections OrderedDictionary+Partial MutableCollection.swift
[101/149] Compiling OrderedCollections OrderedDictionary+Partial RangeReplaceableCollection.swift
[102/149] Compiling OrderedCollections OrderedDictionary+Sendable.swift
[103/149] Compiling OrderedCollections OrderedDictionary+Sequence.swift
[104/149] Compiling OrderedCollections OrderedDictionary+Values.swift
[105/149] Compiling OrderedCollections _HashTable+Bucket.swift
[106/149] Compiling OrderedCollections _HashTable+BucketIterator.swift
[107/149] Compiling OrderedCollections _HashTable+Constants.swift
[108/149] Compiling OrderedCollections _HashTable+CustomStringConvertible.swift
[109/149] Compiling OrderedCollections _HashTable+Testing.swift
[110/149] Compiling OrderedCollections _HashTable+UnsafeHandle.swift
[111/149] Compiling OrderedCollections _HashTable.swift
[112/149] Compiling OrderedCollections _Hashtable+Header.swift
[113/149] Compiling XCTRuntimeAssertions XCTRuntimeAssertionInjector.swift
[114/149] Compiling XCTRuntimeAssertions Precondition.swift
[115/149] Compiling XCTRuntimeAssertions NeverReturn.swift
[116/149] Compiling XCTRuntimeAssertions Counter.swift
[117/149] Compiling OrderedCollections OrderedSet+Sendable.swift
[118/149] Compiling OrderedCollections OrderedSet+SubSequence.swift
[119/149] Compiling OrderedCollections OrderedSet+Testing.swift
[120/149] Compiling OrderedCollections OrderedSet+UnorderedView.swift
[121/149] Compiling OrderedCollections OrderedSet+UnstableInternals.swift
[122/149] Compiling OrderedCollections OrderedSet.swift
[123/149] Compiling OrderedCollections _UnsafeBitset.swift
[124/149] Compiling XCTRuntimeAssertions XCTRuntimePrecondition.swift
[125/149] Compiling XCTRuntimeAssertions XCTRuntimeAssertion.swift
[126/149] Compiling XCTRuntimeAssertions XCTFail.swift
/host/spi-builder-workspace/.build/checkouts/SpeziFoundation/Sources/SpeziFoundation/Concurrency/RecursiveRWLock.swift:20:32: error: type 'pthread_t' (aka 'UInt') does not conform to protocol 'AtomicOptionalWrappable'
 18 |     let rwLock: UnsafeMutablePointer<pthread_rwlock_t>
 19 |
 20 |     private let writerThread = ManagedAtomic<pthread_t?>(nil)
    |                                `- error: type 'pthread_t' (aka 'UInt') does not conform to protocol 'AtomicOptionalWrappable'
 21 |     private var writerCount = 0
 22 |     private var readerCount = 0
/host/spi-builder-workspace/.build/checkouts/SpeziFoundation/Sources/SpeziFoundation/Concurrency/RecursiveRWLock.swift:20:32: error: 'ManagedAtomic' requires that 'pthread_t' (aka 'UInt') conform to 'AtomicOptionalWrappable'
 18 |     let rwLock: UnsafeMutablePointer<pthread_rwlock_t>
 19 |
 20 |     private let writerThread = ManagedAtomic<pthread_t?>(nil)
    |                                `- error: 'ManagedAtomic' requires that 'pthread_t' (aka 'UInt') conform to 'AtomicOptionalWrappable'
 21 |     private var writerCount = 0
 22 |     private var readerCount = 0
/host/spi-builder-workspace/.build/checkouts/swift-atomics/Sources/Atomics/Types/ManagedAtomic.swift:15:14: note: requirement specified as 'pthread_t' (aka 'UInt') : 'AtomicOptionalWrappable'
 13 | /// A reference type holding an atomic value, with automatic memory management.
 14 | @_fixed_layout
 15 | public class ManagedAtomic<Value: AtomicValue>
    |              |- note: requirement specified as 'pthread_t' (aka 'UInt') : 'AtomicOptionalWrappable'
    |              `- note: requirement from conditional conformance of 'pthread_t?' (aka 'Optional<UInt>') to 'AtomicValue'
 16 | where Value.AtomicRepresentation.Value == Value {
 17 |   // Note: the Value.AtomicRepresentation.Value == Value requirement could be relaxed,
/host/spi-builder-workspace/.build/checkouts/SpeziFoundation/Sources/SpeziFoundation/Concurrency/RecursiveRWLock.swift:33:54: error: cannot infer contextual base in reference to member 'relaxed'
 31 |         let selfThread = pthread_self()
 32 |
 33 |         if let writer = writerThread.load(ordering: .relaxed),
    |                                                      `- error: cannot infer contextual base in reference to member 'relaxed'
 34 |            pthread_equal(writer, selfThread) != 0 {
 35 |             // we know that the writerThread is us, so access to `writerCount` is synchronized (its us that holds the rwLock).
/host/spi-builder-workspace/.build/checkouts/SpeziFoundation/Sources/SpeziFoundation/Concurrency/RecursiveRWLock.swift:43:51: error: cannot infer contextual base in reference to member 'relaxed'
 41 |         pthreadWriteLock()
 42 |
 43 |         writerThread.store(selfThread, ordering: .relaxed)
    |                                                   `- error: cannot infer contextual base in reference to member 'relaxed'
 44 |         writerCount = 1
 45 |     }
/host/spi-builder-workspace/.build/checkouts/SpeziFoundation/Sources/SpeziFoundation/Concurrency/RecursiveRWLock.swift:55:28: error: 'nil' requires a contextual type
 53 |
 54 |         // otherwise it is the last unlock
 55 |         writerThread.store(nil, ordering: .relaxed)
    |                            `- error: 'nil' requires a contextual type
 56 |         writerCount = 0
 57 |
/host/spi-builder-workspace/.build/checkouts/SpeziFoundation/Sources/SpeziFoundation/Concurrency/RecursiveRWLock.swift:55:44: error: cannot infer contextual base in reference to member 'relaxed'
 53 |
 54 |         // otherwise it is the last unlock
 55 |         writerThread.store(nil, ordering: .relaxed)
    |                                            `- error: cannot infer contextual base in reference to member 'relaxed'
 56 |         writerCount = 0
 57 |
/host/spi-builder-workspace/.build/checkouts/SpeziFoundation/Sources/SpeziFoundation/Concurrency/RecursiveRWLock.swift:64:54: error: cannot infer contextual base in reference to member 'relaxed'
 62 |         let selfThread = pthread_self()
 63 |
 64 |         if let writer = writerThread.load(ordering: .relaxed),
    |                                                      `- error: cannot infer contextual base in reference to member 'relaxed'
 65 |            pthread_equal(writer, selfThread) != 0 {
 66 |             // we know that the writerThread is us, so access to `readerCount` is synchronized (its us that holds the rwLock).
/host/spi-builder-workspace/.build/checkouts/SpeziFoundation/Sources/SpeziFoundation/Concurrency/RecursiveRWLock.swift:20:32: error: type 'pthread_t' (aka 'UInt') does not conform to protocol 'AtomicOptionalWrappable'
 18 |     let rwLock: UnsafeMutablePointer<pthread_rwlock_t>
 19 |
 20 |     private let writerThread = ManagedAtomic<pthread_t?>(nil)
    |                                `- error: type 'pthread_t' (aka 'UInt') does not conform to protocol 'AtomicOptionalWrappable'
 21 |     private var writerCount = 0
 22 |     private var readerCount = 0
/host/spi-builder-workspace/.build/checkouts/SpeziFoundation/Sources/SpeziFoundation/Concurrency/RecursiveRWLock.swift:20:32: error: 'ManagedAtomic' requires that 'pthread_t' (aka 'UInt') conform to 'AtomicOptionalWrappable'
 18 |     let rwLock: UnsafeMutablePointer<pthread_rwlock_t>
 19 |
 20 |     private let writerThread = ManagedAtomic<pthread_t?>(nil)
    |                                `- error: 'ManagedAtomic' requires that 'pthread_t' (aka 'UInt') conform to 'AtomicOptionalWrappable'
 21 |     private var writerCount = 0
 22 |     private var readerCount = 0
/host/spi-builder-workspace/.build/checkouts/swift-atomics/Sources/Atomics/Types/ManagedAtomic.swift:15:14: note: requirement specified as 'pthread_t' (aka 'UInt') : 'AtomicOptionalWrappable'
 13 | /// A reference type holding an atomic value, with automatic memory management.
 14 | @_fixed_layout
 15 | public class ManagedAtomic<Value: AtomicValue>
    |              |- note: requirement specified as 'pthread_t' (aka 'UInt') : 'AtomicOptionalWrappable'
    |              `- note: requirement from conditional conformance of 'pthread_t?' (aka 'Optional<UInt>') to 'AtomicValue'
 16 | where Value.AtomicRepresentation.Value == Value {
 17 |   // Note: the Value.AtomicRepresentation.Value == Value requirement could be relaxed,
/host/spi-builder-workspace/.build/checkouts/SpeziFoundation/Sources/SpeziFoundation/Concurrency/RecursiveRWLock.swift:33:54: error: cannot infer contextual base in reference to member 'relaxed'
 31 |         let selfThread = pthread_self()
 32 |
 33 |         if let writer = writerThread.load(ordering: .relaxed),
    |                                                      `- error: cannot infer contextual base in reference to member 'relaxed'
 34 |            pthread_equal(writer, selfThread) != 0 {
 35 |             // we know that the writerThread is us, so access to `writerCount` is synchronized (its us that holds the rwLock).
/host/spi-builder-workspace/.build/checkouts/SpeziFoundation/Sources/SpeziFoundation/Concurrency/RecursiveRWLock.swift:43:51: error: cannot infer contextual base in reference to member 'relaxed'
 41 |         pthreadWriteLock()
 42 |
 43 |         writerThread.store(selfThread, ordering: .relaxed)
    |                                                   `- error: cannot infer contextual base in reference to member 'relaxed'
 44 |         writerCount = 1
 45 |     }
/host/spi-builder-workspace/.build/checkouts/SpeziFoundation/Sources/SpeziFoundation/Concurrency/RecursiveRWLock.swift:55:28: error: 'nil' requires a contextual type
 53 |
 54 |         // otherwise it is the last unlock
 55 |         writerThread.store(nil, ordering: .relaxed)
    |                            `- error: 'nil' requires a contextual type
 56 |         writerCount = 0
 57 |
/host/spi-builder-workspace/.build/checkouts/SpeziFoundation/Sources/SpeziFoundation/Concurrency/RecursiveRWLock.swift:55:44: error: cannot infer contextual base in reference to member 'relaxed'
 53 |
 54 |         // otherwise it is the last unlock
 55 |         writerThread.store(nil, ordering: .relaxed)
    |                                            `- error: cannot infer contextual base in reference to member 'relaxed'
 56 |         writerCount = 0
 57 |
/host/spi-builder-workspace/.build/checkouts/SpeziFoundation/Sources/SpeziFoundation/Concurrency/RecursiveRWLock.swift:64:54: error: cannot infer contextual base in reference to member 'relaxed'
 62 |         let selfThread = pthread_self()
 63 |
 64 |         if let writer = writerThread.load(ordering: .relaxed),
    |                                                      `- error: cannot infer contextual base in reference to member 'relaxed'
 65 |            pthread_equal(writer, selfThread) != 0 {
 66 |             // we know that the writerThread is us, so access to `readerCount` is synchronized (its us that holds the rwLock).
/host/spi-builder-workspace/.build/checkouts/SpeziFoundation/Sources/SpeziFoundation/Concurrency/RecursiveRWLock.swift:20:32: error: type 'pthread_t' (aka 'UInt') does not conform to protocol 'AtomicOptionalWrappable'
 18 |     let rwLock: UnsafeMutablePointer<pthread_rwlock_t>
 19 |
 20 |     private let writerThread = ManagedAtomic<pthread_t?>(nil)
    |                                `- error: type 'pthread_t' (aka 'UInt') does not conform to protocol 'AtomicOptionalWrappable'
 21 |     private var writerCount = 0
 22 |     private var readerCount = 0
/host/spi-builder-workspace/.build/checkouts/SpeziFoundation/Sources/SpeziFoundation/Concurrency/RecursiveRWLock.swift:20:32: error: 'ManagedAtomic' requires that 'pthread_t' (aka 'UInt') conform to 'AtomicOptionalWrappable'
 18 |     let rwLock: UnsafeMutablePointer<pthread_rwlock_t>
 19 |
 20 |     private let writerThread = ManagedAtomic<pthread_t?>(nil)
    |                                `- error: 'ManagedAtomic' requires that 'pthread_t' (aka 'UInt') conform to 'AtomicOptionalWrappable'
 21 |     private var writerCount = 0
 22 |     private var readerCount = 0
/host/spi-builder-workspace/.build/checkouts/swift-atomics/Sources/Atomics/Types/ManagedAtomic.swift:15:14: note: requirement specified as 'pthread_t' (aka 'UInt') : 'AtomicOptionalWrappable'
 13 | /// A reference type holding an atomic value, with automatic memory management.
 14 | @_fixed_layout
 15 | public class ManagedAtomic<Value: AtomicValue>
    |              |- note: requirement specified as 'pthread_t' (aka 'UInt') : 'AtomicOptionalWrappable'
    |              `- note: requirement from conditional conformance of 'pthread_t?' (aka 'Optional<UInt>') to 'AtomicValue'
 16 | where Value.AtomicRepresentation.Value == Value {
 17 |   // Note: the Value.AtomicRepresentation.Value == Value requirement could be relaxed,
/host/spi-builder-workspace/.build/checkouts/SpeziFoundation/Sources/SpeziFoundation/Concurrency/RecursiveRWLock.swift:33:54: error: cannot infer contextual base in reference to member 'relaxed'
 31 |         let selfThread = pthread_self()
 32 |
 33 |         if let writer = writerThread.load(ordering: .relaxed),
    |                                                      `- error: cannot infer contextual base in reference to member 'relaxed'
 34 |            pthread_equal(writer, selfThread) != 0 {
 35 |             // we know that the writerThread is us, so access to `writerCount` is synchronized (its us that holds the rwLock).
/host/spi-builder-workspace/.build/checkouts/SpeziFoundation/Sources/SpeziFoundation/Concurrency/RecursiveRWLock.swift:43:51: error: cannot infer contextual base in reference to member 'relaxed'
 41 |         pthreadWriteLock()
 42 |
 43 |         writerThread.store(selfThread, ordering: .relaxed)
    |                                                   `- error: cannot infer contextual base in reference to member 'relaxed'
 44 |         writerCount = 1
 45 |     }
/host/spi-builder-workspace/.build/checkouts/SpeziFoundation/Sources/SpeziFoundation/Concurrency/RecursiveRWLock.swift:55:28: error: 'nil' requires a contextual type
 53 |
 54 |         // otherwise it is the last unlock
 55 |         writerThread.store(nil, ordering: .relaxed)
    |                            `- error: 'nil' requires a contextual type
 56 |         writerCount = 0
 57 |
/host/spi-builder-workspace/.build/checkouts/SpeziFoundation/Sources/SpeziFoundation/Concurrency/RecursiveRWLock.swift:55:44: error: cannot infer contextual base in reference to member 'relaxed'
 53 |
 54 |         // otherwise it is the last unlock
 55 |         writerThread.store(nil, ordering: .relaxed)
    |                                            `- error: cannot infer contextual base in reference to member 'relaxed'
 56 |         writerCount = 0
 57 |
/host/spi-builder-workspace/.build/checkouts/SpeziFoundation/Sources/SpeziFoundation/Concurrency/RecursiveRWLock.swift:64:54: error: cannot infer contextual base in reference to member 'relaxed'
 62 |         let selfThread = pthread_self()
 63 |
 64 |         if let writer = writerThread.load(ordering: .relaxed),
    |                                                      `- error: cannot infer contextual base in reference to member 'relaxed'
 65 |            pthread_equal(writer, selfThread) != 0 {
 66 |             // we know that the writerThread is us, so access to `readerCount` is synchronized (its us that holds the rwLock).
/host/spi-builder-workspace/.build/checkouts/SpeziFoundation/Sources/SpeziFoundation/Misc/TimeoutError.swift:21:27: error: cannot find 'LocalizedStringResource' in scope
 19 | extension TimeoutError: LocalizedError {
 20 |     public var errorDescription: String? {
 21 |         String(localized: LocalizedStringResource("Timeout", bundle: .atURL(Bundle.module.bundleURL)))
    |                           `- error: cannot find 'LocalizedStringResource' in scope
 22 |     }
 23 |
/host/spi-builder-workspace/.build/checkouts/SpeziFoundation/Sources/SpeziFoundation/Misc/TimeoutError.swift:21:9: error: no exact matches in call to initializer
 19 | extension TimeoutError: LocalizedError {
 20 |     public var errorDescription: String? {
 21 |         String(localized: LocalizedStringResource("Timeout", bundle: .atURL(Bundle.module.bundleURL)))
    |         `- error: no exact matches in call to initializer
 22 |     }
 23 |
Swift.String:2:12: note: incorrect labels for candidate (have: '(localized:)', expected: '(_:)')
1 | extension String {
2 |     public init?(_ codeUnits: Substring.UTF8View)
  |            `- note: incorrect labels for candidate (have: '(localized:)', expected: '(_:)')
3 | }
Swift.String:2:12: note: incorrect labels for candidate (have: '(localized:)', expected: '(_:)')
1 | extension String {
2 |     public init?(_ codeUnits: Substring.UTF16View)
  |            `- note: incorrect labels for candidate (have: '(localized:)', expected: '(_:)')
3 | }
/host/spi-builder-workspace/.build/checkouts/SpeziFoundation/Sources/SpeziFoundation/Misc/TimeoutError.swift:21:71: error: cannot infer contextual base in reference to member 'atURL'
 19 | extension TimeoutError: LocalizedError {
 20 |     public var errorDescription: String? {
 21 |         String(localized: LocalizedStringResource("Timeout", bundle: .atURL(Bundle.module.bundleURL)))
    |                                                                       `- error: cannot infer contextual base in reference to member 'atURL'
 22 |     }
 23 |
/host/spi-builder-workspace/.build/checkouts/SpeziFoundation/Sources/SpeziFoundation/Misc/TimeoutError.swift:25:27: error: cannot find 'LocalizedStringResource' in scope
 23 |
 24 |     public var failureReason: String? {
 25 |         String(localized: LocalizedStringResource("The operation timed out.", bundle: .atURL(Bundle.module.bundleURL)))
    |                           `- error: cannot find 'LocalizedStringResource' in scope
 26 |     }
 27 | }
/host/spi-builder-workspace/.build/checkouts/SpeziFoundation/Sources/SpeziFoundation/Misc/TimeoutError.swift:25:9: error: no exact matches in call to initializer
 23 |
 24 |     public var failureReason: String? {
 25 |         String(localized: LocalizedStringResource("The operation timed out.", bundle: .atURL(Bundle.module.bundleURL)))
    |         `- error: no exact matches in call to initializer
 26 |     }
 27 | }
Swift.String:2:12: note: incorrect labels for candidate (have: '(localized:)', expected: '(_:)')
1 | extension String {
2 |     public init?(_ codeUnits: Substring.UTF8View)
  |            `- note: incorrect labels for candidate (have: '(localized:)', expected: '(_:)')
3 | }
Swift.String:2:12: note: incorrect labels for candidate (have: '(localized:)', expected: '(_:)')
1 | extension String {
2 |     public init?(_ codeUnits: Substring.UTF16View)
  |            `- note: incorrect labels for candidate (have: '(localized:)', expected: '(_:)')
3 | }
/host/spi-builder-workspace/.build/checkouts/SpeziFoundation/Sources/SpeziFoundation/Misc/TimeoutError.swift:25:88: error: cannot infer contextual base in reference to member 'atURL'
 23 |
 24 |     public var failureReason: String? {
 25 |         String(localized: LocalizedStringResource("The operation timed out.", bundle: .atURL(Bundle.module.bundleURL)))
    |                                                                                        `- error: cannot infer contextual base in reference to member 'atURL'
 26 |     }
 27 | }
/host/spi-builder-workspace/.build/checkouts/SpeziFoundation/Sources/SpeziFoundation/Misc/TimeoutError.swift:21:27: error: cannot find 'LocalizedStringResource' in scope
 19 | extension TimeoutError: LocalizedError {
 20 |     public var errorDescription: String? {
 21 |         String(localized: LocalizedStringResource("Timeout", bundle: .atURL(Bundle.module.bundleURL)))
    |                           `- error: cannot find 'LocalizedStringResource' in scope
 22 |     }
 23 |
/host/spi-builder-workspace/.build/checkouts/SpeziFoundation/Sources/SpeziFoundation/Misc/TimeoutError.swift:21:9: error: no exact matches in call to initializer
 19 | extension TimeoutError: LocalizedError {
 20 |     public var errorDescription: String? {
 21 |         String(localized: LocalizedStringResource("Timeout", bundle: .atURL(Bundle.module.bundleURL)))
    |         `- error: no exact matches in call to initializer
 22 |     }
 23 |
Swift.String:2:12: note: incorrect labels for candidate (have: '(localized:)', expected: '(_:)')
1 | extension String {
2 |     public init?(_ codeUnits: Substring.UTF8View)
  |            `- note: incorrect labels for candidate (have: '(localized:)', expected: '(_:)')
3 | }
Swift.String:2:12: note: incorrect labels for candidate (have: '(localized:)', expected: '(_:)')
1 | extension String {
2 |     public init?(_ codeUnits: Substring.UTF16View)
  |            `- note: incorrect labels for candidate (have: '(localized:)', expected: '(_:)')
3 | }
/host/spi-builder-workspace/.build/checkouts/SpeziFoundation/Sources/SpeziFoundation/Misc/TimeoutError.swift:21:71: error: cannot infer contextual base in reference to member 'atURL'
 19 | extension TimeoutError: LocalizedError {
 20 |     public var errorDescription: String? {
 21 |         String(localized: LocalizedStringResource("Timeout", bundle: .atURL(Bundle.module.bundleURL)))
    |                                                                       `- error: cannot infer contextual base in reference to member 'atURL'
 22 |     }
 23 |
/host/spi-builder-workspace/.build/checkouts/SpeziFoundation/Sources/SpeziFoundation/Misc/TimeoutError.swift:25:27: error: cannot find 'LocalizedStringResource' in scope
 23 |
 24 |     public var failureReason: String? {
 25 |         String(localized: LocalizedStringResource("The operation timed out.", bundle: .atURL(Bundle.module.bundleURL)))
    |                           `- error: cannot find 'LocalizedStringResource' in scope
 26 |     }
 27 | }
/host/spi-builder-workspace/.build/checkouts/SpeziFoundation/Sources/SpeziFoundation/Misc/TimeoutError.swift:25:9: error: no exact matches in call to initializer
 23 |
 24 |     public var failureReason: String? {
 25 |         String(localized: LocalizedStringResource("The operation timed out.", bundle: .atURL(Bundle.module.bundleURL)))
    |         `- error: no exact matches in call to initializer
 26 |     }
 27 | }
Swift.String:2:12: note: incorrect labels for candidate (have: '(localized:)', expected: '(_:)')
1 | extension String {
2 |     public init?(_ codeUnits: Substring.UTF8View)
  |            `- note: incorrect labels for candidate (have: '(localized:)', expected: '(_:)')
3 | }
Swift.String:2:12: note: incorrect labels for candidate (have: '(localized:)', expected: '(_:)')
1 | extension String {
2 |     public init?(_ codeUnits: Substring.UTF16View)
  |            `- note: incorrect labels for candidate (have: '(localized:)', expected: '(_:)')
3 | }
/host/spi-builder-workspace/.build/checkouts/SpeziFoundation/Sources/SpeziFoundation/Misc/TimeoutError.swift:25:88: error: cannot infer contextual base in reference to member 'atURL'
 23 |
 24 |     public var failureReason: String? {
 25 |         String(localized: LocalizedStringResource("The operation timed out.", bundle: .atURL(Bundle.module.bundleURL)))
    |                                                                                        `- error: cannot infer contextual base in reference to member 'atURL'
 26 |     }
 27 | }
/host/spi-builder-workspace/.build/checkouts/SpeziFoundation/Sources/SpeziFoundation/Misc/TimeoutError.swift:21:27: error: cannot find 'LocalizedStringResource' in scope
 19 | extension TimeoutError: LocalizedError {
 20 |     public var errorDescription: String? {
 21 |         String(localized: LocalizedStringResource("Timeout", bundle: .atURL(Bundle.module.bundleURL)))
    |                           `- error: cannot find 'LocalizedStringResource' in scope
 22 |     }
 23 |
/host/spi-builder-workspace/.build/checkouts/SpeziFoundation/Sources/SpeziFoundation/Misc/TimeoutError.swift:21:9: error: no exact matches in call to initializer
 19 | extension TimeoutError: LocalizedError {
 20 |     public var errorDescription: String? {
 21 |         String(localized: LocalizedStringResource("Timeout", bundle: .atURL(Bundle.module.bundleURL)))
    |         `- error: no exact matches in call to initializer
 22 |     }
 23 |
Swift.String:2:12: note: incorrect labels for candidate (have: '(localized:)', expected: '(_:)')
1 | extension String {
2 |     public init?(_ codeUnits: Substring.UTF8View)
  |            `- note: incorrect labels for candidate (have: '(localized:)', expected: '(_:)')
3 | }
Swift.String:2:12: note: incorrect labels for candidate (have: '(localized:)', expected: '(_:)')
1 | extension String {
2 |     public init?(_ codeUnits: Substring.UTF16View)
  |            `- note: incorrect labels for candidate (have: '(localized:)', expected: '(_:)')
3 | }
/host/spi-builder-workspace/.build/checkouts/SpeziFoundation/Sources/SpeziFoundation/Misc/TimeoutError.swift:21:71: error: cannot infer contextual base in reference to member 'atURL'
 19 | extension TimeoutError: LocalizedError {
 20 |     public var errorDescription: String? {
 21 |         String(localized: LocalizedStringResource("Timeout", bundle: .atURL(Bundle.module.bundleURL)))
    |                                                                       `- error: cannot infer contextual base in reference to member 'atURL'
 22 |     }
 23 |
/host/spi-builder-workspace/.build/checkouts/SpeziFoundation/Sources/SpeziFoundation/Misc/TimeoutError.swift:25:27: error: cannot find 'LocalizedStringResource' in scope
 23 |
 24 |     public var failureReason: String? {
 25 |         String(localized: LocalizedStringResource("The operation timed out.", bundle: .atURL(Bundle.module.bundleURL)))
    |                           `- error: cannot find 'LocalizedStringResource' in scope
 26 |     }
 27 | }
/host/spi-builder-workspace/.build/checkouts/SpeziFoundation/Sources/SpeziFoundation/Misc/TimeoutError.swift:25:9: error: no exact matches in call to initializer
 23 |
 24 |     public var failureReason: String? {
 25 |         String(localized: LocalizedStringResource("The operation timed out.", bundle: .atURL(Bundle.module.bundleURL)))
    |         `- error: no exact matches in call to initializer
 26 |     }
 27 | }
Swift.String:2:12: note: incorrect labels for candidate (have: '(localized:)', expected: '(_:)')
1 | extension String {
2 |     public init?(_ codeUnits: Substring.UTF8View)
  |            `- note: incorrect labels for candidate (have: '(localized:)', expected: '(_:)')
3 | }
Swift.String:2:12: note: incorrect labels for candidate (have: '(localized:)', expected: '(_:)')
1 | extension String {
2 |     public init?(_ codeUnits: Substring.UTF16View)
  |            `- note: incorrect labels for candidate (have: '(localized:)', expected: '(_:)')
3 | }
/host/spi-builder-workspace/.build/checkouts/SpeziFoundation/Sources/SpeziFoundation/Misc/TimeoutError.swift:25:88: error: cannot infer contextual base in reference to member 'atURL'
 23 |
 24 |     public var failureReason: String? {
 25 |         String(localized: LocalizedStringResource("The operation timed out.", bundle: .atURL(Bundle.module.bundleURL)))
    |                                                                                        `- error: cannot infer contextual base in reference to member 'atURL'
 26 |     }
 27 | }
[146/152] Compiling SpeziFoundation SharedRepository.swift
[147/152] Compiling SpeziFoundation resource_bundle_accessor.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[151/152] Emitting module SpeziFoundation
/host/spi-builder-workspace/.build/checkouts/SpeziFoundation/Sources/SpeziFoundation/Concurrency/RecursiveRWLock.swift:20:32: error: type 'pthread_t' (aka 'UInt') does not conform to protocol 'AtomicOptionalWrappable'
 18 |     let rwLock: UnsafeMutablePointer<pthread_rwlock_t>
 19 |
 20 |     private let writerThread = ManagedAtomic<pthread_t?>(nil)
    |                                `- error: type 'pthread_t' (aka 'UInt') does not conform to protocol 'AtomicOptionalWrappable'
 21 |     private var writerCount = 0
 22 |     private var readerCount = 0
/host/spi-builder-workspace/.build/checkouts/SpeziFoundation/Sources/SpeziFoundation/Concurrency/RecursiveRWLock.swift:20:32: error: 'ManagedAtomic' requires that 'pthread_t' (aka 'UInt') conform to 'AtomicOptionalWrappable'
 18 |     let rwLock: UnsafeMutablePointer<pthread_rwlock_t>
 19 |
 20 |     private let writerThread = ManagedAtomic<pthread_t?>(nil)
    |                                `- error: 'ManagedAtomic' requires that 'pthread_t' (aka 'UInt') conform to 'AtomicOptionalWrappable'
 21 |     private var writerCount = 0
 22 |     private var readerCount = 0
/host/spi-builder-workspace/.build/checkouts/swift-atomics/Sources/Atomics/Types/ManagedAtomic.swift:15:14: note: requirement specified as 'pthread_t' (aka 'UInt') : 'AtomicOptionalWrappable'
 13 | /// A reference type holding an atomic value, with automatic memory management.
 14 | @_fixed_layout
 15 | public class ManagedAtomic<Value: AtomicValue>
    |              |- note: requirement specified as 'pthread_t' (aka 'UInt') : 'AtomicOptionalWrappable'
    |              `- note: requirement from conditional conformance of 'pthread_t?' (aka 'Optional<UInt>') to 'AtomicValue'
 16 | where Value.AtomicRepresentation.Value == Value {
 17 |   // Note: the Value.AtomicRepresentation.Value == Value requirement could be relaxed,
BUILD FAILURE 6.0 linux