Build Information
Failed to build swift-analytics, reference 1.10.1 (b595fd
), with Swift 6.1 for Android on 1 Jun 2025 02:46:35 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4609320-1":/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/dankinsoid/swift-analytics.git
Reference: 1.10.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/dankinsoid/swift-analytics
* tag 1.10.1 -> FETCH_HEAD
HEAD is now at b595fdb docs: Update documentation to reflect parameter type change to Encodable
Cloned https://github.com/dankinsoid/swift-analytics.git
Revision (git rev-parse @):
b595fdbe390a3d3505919f87b3c276012a7fc7f5
SUCCESS checkout https://github.com/dankinsoid/swift-analytics.git at 1.10.1
========================================
Build
========================================
Selected platform: android
Swift version: 6.1
Building package at path: $PWD
https://github.com/dankinsoid/swift-analytics.git
https://github.com/dankinsoid/swift-analytics.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
"dependencies" : [
],
"manifest_display_name" : "swift-analytics",
"name" : "swift-analytics",
"path" : "/host/spi-builder-workspace",
"platforms" : [
],
"products" : [
{
"name" : "SwiftAnalytics",
"targets" : [
"SwiftAnalytics"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "SwiftAnalyticsTests",
"module_type" : "SwiftTarget",
"name" : "SwiftAnalyticsTests",
"path" : "Tests/SwiftAnalyticsTests",
"sources" : [
"ParametersValueEncoderDecoderTests.swift",
"SwiftAnalyticsTests.swift"
],
"target_dependencies" : [
"SwiftAnalytics"
],
"type" : "test"
},
{
"c99name" : "SwiftAnalytics",
"module_type" : "SwiftTarget",
"name" : "SwiftAnalytics",
"path" : "Sources/SwiftAnalytics",
"product_memberships" : [
"SwiftAnalytics"
],
"sources" : [
"Analytics.swift",
"AnalyticsHandler.swift",
"AnalyticsSystem.swift",
"AnyCodingKey.swift",
"Locks.swift",
"MockAnalyticsHandler.swift",
"MultiplexAnalyticsHandler.swift",
"NOOPAnalyticsHandler.swift",
"ParametersProvider.swift",
"ParametersValue+JSONString.swift",
"ParametersValueDecoder.swift",
"ParametersValueEncoder.swift",
"WithAnalyticsParameters.swift"
],
"type" : "library"
}
],
"tools_version" : "5.6"
}
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-1":/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/2] Write sources
[1/2] Write swift-version-24593BA9C3E375BF.txt
[3/15] Compiling SwiftAnalytics ParametersValueEncoder.swift
/host/spi-builder-workspace/Sources/SwiftAnalytics/ParametersValueEncoder.swift:447:16: warning: static property 'iso8601DateFormatterWithOptions' is not concurrency-safe because non-'Sendable' type 'ISO8601DateFormatter' may have shared mutable state; this is an error in the Swift 6 language mode
445 |
446 | @available(macOS 10.12, iOS 10.0, watchOS 3.0, tvOS 10.0, *)
447 | static let iso8601DateFormatterWithOptions: ISO8601DateFormatter = {
| |- warning: static property 'iso8601DateFormatterWithOptions' is not concurrency-safe because non-'Sendable' type 'ISO8601DateFormatter' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'iso8601DateFormatterWithOptions' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
448 | let formatter = ISO8601DateFormatter()
449 | return formatter
Foundation.ISO8601DateFormatter:1:12: note: class 'ISO8601DateFormatter' does not conform to the 'Sendable' protocol
1 | open class ISO8601DateFormatter : Formatter, NSSecureCoding {
| `- note: class 'ISO8601DateFormatter' does not conform to the 'Sendable' protocol
2 | open var timeZone: TimeZone! { get set }
3 | open var formatOptions: ISO8601DateFormatter.Options { get set }
/host/spi-builder-workspace/Sources/SwiftAnalytics/ParametersValueEncoder.swift:477:29: error: pattern variable binding cannot appear in an expression
475 | }
476 |
477 | case let .formatted(formatter):
| `- error: pattern variable binding cannot appear in an expression
478 | return .string(formatter.string(from: date))
479 |
[4/16] Compiling SwiftAnalytics ParametersValueDecoder.swift
/host/spi-builder-workspace/Sources/SwiftAnalytics/ParametersValueDecoder.swift:716:29: error: pattern variable binding cannot appear in an expression
714 | }
715 |
716 | case let .formatted(formatter):
| `- error: pattern variable binding cannot appear in an expression
717 | guard case let .string(string) = value else {
718 | throw DecodingError.typeMismatch(Date.self, DecodingError.Context(
[5/16] Compiling SwiftAnalytics ParametersProvider.swift
/host/spi-builder-workspace/Sources/SwiftAnalytics/ParametersProvider.swift:12:8: error: Unsupported runtime
10 | import WASILibc
11 | #else
12 | #error("Unsupported runtime")
| `- error: Unsupported runtime
13 | #endif
14 |
[6/16] Compiling SwiftAnalytics ParametersValue+JSONString.swift
/host/spi-builder-workspace/Sources/SwiftAnalytics/ParametersProvider.swift:12:8: error: Unsupported runtime
10 | import WASILibc
11 | #else
12 | #error("Unsupported runtime")
| `- error: Unsupported runtime
13 | #endif
14 |
error: emit-module command failed with exit code 1 (use -v to see invocation)
[7/16] Compiling SwiftAnalytics Locks.swift
/host/spi-builder-workspace/Sources/SwiftAnalytics/Locks.swift:40:8: error: Unsupported runtime
38 | import Musl
39 | #else
40 | #error("Unsupported runtime")
| `- error: Unsupported runtime
41 | #endif
42 |
/host/spi-builder-workspace/Sources/SwiftAnalytics/Locks.swift:56:46: error: cannot find type 'pthread_mutex_t' in scope
54 | UnsafeMutablePointer.allocate(capacity: 1)
55 | #else
56 | fileprivate let mutex: UnsafeMutablePointer<pthread_mutex_t> =
| `- error: cannot find type 'pthread_mutex_t' in scope
57 | UnsafeMutablePointer.allocate(capacity: 1)
58 | #endif
/host/spi-builder-workspace/Sources/SwiftAnalytics/Locks.swift:159:47: error: cannot find type 'pthread_rwlock_t' in scope
157 | fileprivate var shared = true
158 | #else
159 | fileprivate let rwlock: UnsafeMutablePointer<pthread_rwlock_t> =
| `- error: cannot find type 'pthread_rwlock_t' in scope
160 | UnsafeMutablePointer.allocate(capacity: 1)
161 | #endif
/host/spi-builder-workspace/Sources/SwiftAnalytics/Locks.swift:67:14: error: cannot find 'pthread_mutexattr_t' in scope
65 | InitializeSRWLock(mutex)
66 | #else
67 | var attr = pthread_mutexattr_t()
| `- error: cannot find 'pthread_mutexattr_t' in scope
68 | pthread_mutexattr_init(&attr)
69 | pthread_mutexattr_settype(&attr, .init(PTHREAD_MUTEX_ERRORCHECK))
/host/spi-builder-workspace/Sources/SwiftAnalytics/Locks.swift:68:3: error: cannot find 'pthread_mutexattr_init' in scope
66 | #else
67 | var attr = pthread_mutexattr_t()
68 | pthread_mutexattr_init(&attr)
| `- error: cannot find 'pthread_mutexattr_init' in scope
69 | pthread_mutexattr_settype(&attr, .init(PTHREAD_MUTEX_ERRORCHECK))
70 |
/host/spi-builder-workspace/Sources/SwiftAnalytics/Locks.swift:69:3: error: cannot find 'pthread_mutexattr_settype' in scope
67 | var attr = pthread_mutexattr_t()
68 | pthread_mutexattr_init(&attr)
69 | pthread_mutexattr_settype(&attr, .init(PTHREAD_MUTEX_ERRORCHECK))
| `- error: cannot find 'pthread_mutexattr_settype' in scope
70 |
71 | let err = pthread_mutex_init(mutex, &attr)
/host/spi-builder-workspace/Sources/SwiftAnalytics/Locks.swift:69:42: error: cannot find 'PTHREAD_MUTEX_ERRORCHECK' in scope
67 | var attr = pthread_mutexattr_t()
68 | pthread_mutexattr_init(&attr)
69 | pthread_mutexattr_settype(&attr, .init(PTHREAD_MUTEX_ERRORCHECK))
| `- error: cannot find 'PTHREAD_MUTEX_ERRORCHECK' in scope
70 |
71 | let err = pthread_mutex_init(mutex, &attr)
/host/spi-builder-workspace/Sources/SwiftAnalytics/Locks.swift:69:37: error: cannot infer contextual base in reference to member 'init'
67 | var attr = pthread_mutexattr_t()
68 | pthread_mutexattr_init(&attr)
69 | pthread_mutexattr_settype(&attr, .init(PTHREAD_MUTEX_ERRORCHECK))
| `- error: cannot infer contextual base in reference to member 'init'
70 |
71 | let err = pthread_mutex_init(mutex, &attr)
/host/spi-builder-workspace/Sources/SwiftAnalytics/Locks.swift:71:13: error: cannot find 'pthread_mutex_init' in scope
69 | pthread_mutexattr_settype(&attr, .init(PTHREAD_MUTEX_ERRORCHECK))
70 |
71 | let err = pthread_mutex_init(mutex, &attr)
| `- error: cannot find 'pthread_mutex_init' in scope
72 | precondition(err == 0, "\(#function) failed in pthread_mutex with error \(err)")
73 | #endif
/host/spi-builder-workspace/Sources/SwiftAnalytics/Locks.swift:83:13: error: cannot find 'pthread_mutex_destroy' in scope
81 | self.mutex.deallocate()
82 | #else
83 | let err = pthread_mutex_destroy(self.mutex)
| `- error: cannot find 'pthread_mutex_destroy' in scope
84 | precondition(err == 0, "\(#function) failed in pthread_mutex with error \(err)")
85 | self.mutex.deallocate()
/host/spi-builder-workspace/Sources/SwiftAnalytics/Locks.swift:99:13: error: cannot find 'pthread_mutex_lock' in scope
97 | AcquireSRWLockExclusive(mutex)
98 | #else
99 | let err = pthread_mutex_lock(mutex)
| `- error: cannot find 'pthread_mutex_lock' in scope
100 | precondition(err == 0, "\(#function) failed in pthread_mutex with error \(err)")
101 | #endif
/host/spi-builder-workspace/Sources/SwiftAnalytics/Locks.swift:114:13: error: cannot find 'pthread_mutex_unlock' in scope
112 | ReleaseSRWLockExclusive(mutex)
113 | #else
114 | let err = pthread_mutex_unlock(mutex)
| `- error: cannot find 'pthread_mutex_unlock' in scope
115 | precondition(err == 0, "\(#function) failed in pthread_mutex with error \(err)")
116 | #endif
/host/spi-builder-workspace/Sources/SwiftAnalytics/Locks.swift:170:13: error: cannot find 'pthread_rwlock_init' in scope
168 | InitializeSRWLock(rwlock)
169 | #else
170 | let err = pthread_rwlock_init(rwlock, nil)
| `- error: cannot find 'pthread_rwlock_init' in scope
171 | precondition(err == 0, "\(#function) failed in pthread_rwlock with error \(err)")
172 | #endif
/host/spi-builder-workspace/Sources/SwiftAnalytics/Locks.swift:170:41: error: 'nil' requires a contextual type
168 | InitializeSRWLock(rwlock)
169 | #else
170 | let err = pthread_rwlock_init(rwlock, nil)
| `- error: 'nil' requires a contextual type
171 | precondition(err == 0, "\(#function) failed in pthread_rwlock with error \(err)")
172 | #endif
/host/spi-builder-workspace/Sources/SwiftAnalytics/Locks.swift:182:13: error: cannot find 'pthread_rwlock_destroy' in scope
180 | self.rwlock.deallocate()
181 | #else
182 | let err = pthread_rwlock_destroy(self.rwlock)
| `- error: cannot find 'pthread_rwlock_destroy' in scope
183 | precondition(err == 0, "\(#function) failed in pthread_rwlock with error \(err)")
184 | self.rwlock.deallocate()
/host/spi-builder-workspace/Sources/SwiftAnalytics/Locks.swift:199:13: error: cannot find 'pthread_rwlock_rdlock' in scope
197 | shared = true
198 | #else
199 | let err = pthread_rwlock_rdlock(rwlock)
| `- error: cannot find 'pthread_rwlock_rdlock' in scope
200 | precondition(err == 0, "\(#function) failed in pthread_rwlock with error \(err)")
201 | #endif
/host/spi-builder-workspace/Sources/SwiftAnalytics/Locks.swift:215:13: error: cannot find 'pthread_rwlock_wrlock' in scope
213 | shared = false
214 | #else
215 | let err = pthread_rwlock_wrlock(rwlock)
| `- error: cannot find 'pthread_rwlock_wrlock' in scope
216 | precondition(err == 0, "\(#function) failed in pthread_rwlock with error \(err)")
217 | #endif
/host/spi-builder-workspace/Sources/SwiftAnalytics/Locks.swift:235:13: error: cannot find 'pthread_rwlock_unlock' in scope
233 | }
234 | #else
235 | let err = pthread_rwlock_unlock(rwlock)
| `- error: cannot find 'pthread_rwlock_unlock' in scope
236 | precondition(err == 0, "\(#function) failed in pthread_rwlock with error \(err)")
237 | #endif
/host/spi-builder-workspace/Sources/SwiftAnalytics/MockAnalyticsHandler.swift:6:13: warning: stored property 'parameters' of 'Sendable'-conforming class 'MockAnalyticsHandler' is mutable; this is an error in the Swift 6 language mode
4 | public final class MockAnalyticsHandler: AnalyticsHandler {
5 |
6 | public var parameters: Analytics.Parameters
| `- warning: stored property 'parameters' of 'Sendable'-conforming class 'MockAnalyticsHandler' is mutable; this is an error in the Swift 6 language mode
7 | public var events: [Analytics.Event] = []
8 |
[8/16] Compiling SwiftAnalytics MockAnalyticsHandler.swift
/host/spi-builder-workspace/Sources/SwiftAnalytics/Locks.swift:40:8: error: Unsupported runtime
38 | import Musl
39 | #else
40 | #error("Unsupported runtime")
| `- error: Unsupported runtime
41 | #endif
42 |
/host/spi-builder-workspace/Sources/SwiftAnalytics/Locks.swift:56:46: error: cannot find type 'pthread_mutex_t' in scope
54 | UnsafeMutablePointer.allocate(capacity: 1)
55 | #else
56 | fileprivate let mutex: UnsafeMutablePointer<pthread_mutex_t> =
| `- error: cannot find type 'pthread_mutex_t' in scope
57 | UnsafeMutablePointer.allocate(capacity: 1)
58 | #endif
/host/spi-builder-workspace/Sources/SwiftAnalytics/Locks.swift:159:47: error: cannot find type 'pthread_rwlock_t' in scope
157 | fileprivate var shared = true
158 | #else
159 | fileprivate let rwlock: UnsafeMutablePointer<pthread_rwlock_t> =
| `- error: cannot find type 'pthread_rwlock_t' in scope
160 | UnsafeMutablePointer.allocate(capacity: 1)
161 | #endif
/host/spi-builder-workspace/Sources/SwiftAnalytics/Locks.swift:67:14: error: cannot find 'pthread_mutexattr_t' in scope
65 | InitializeSRWLock(mutex)
66 | #else
67 | var attr = pthread_mutexattr_t()
| `- error: cannot find 'pthread_mutexattr_t' in scope
68 | pthread_mutexattr_init(&attr)
69 | pthread_mutexattr_settype(&attr, .init(PTHREAD_MUTEX_ERRORCHECK))
/host/spi-builder-workspace/Sources/SwiftAnalytics/Locks.swift:68:3: error: cannot find 'pthread_mutexattr_init' in scope
66 | #else
67 | var attr = pthread_mutexattr_t()
68 | pthread_mutexattr_init(&attr)
| `- error: cannot find 'pthread_mutexattr_init' in scope
69 | pthread_mutexattr_settype(&attr, .init(PTHREAD_MUTEX_ERRORCHECK))
70 |
/host/spi-builder-workspace/Sources/SwiftAnalytics/Locks.swift:69:3: error: cannot find 'pthread_mutexattr_settype' in scope
67 | var attr = pthread_mutexattr_t()
68 | pthread_mutexattr_init(&attr)
69 | pthread_mutexattr_settype(&attr, .init(PTHREAD_MUTEX_ERRORCHECK))
| `- error: cannot find 'pthread_mutexattr_settype' in scope
70 |
71 | let err = pthread_mutex_init(mutex, &attr)
/host/spi-builder-workspace/Sources/SwiftAnalytics/Locks.swift:69:42: error: cannot find 'PTHREAD_MUTEX_ERRORCHECK' in scope
67 | var attr = pthread_mutexattr_t()
68 | pthread_mutexattr_init(&attr)
69 | pthread_mutexattr_settype(&attr, .init(PTHREAD_MUTEX_ERRORCHECK))
| `- error: cannot find 'PTHREAD_MUTEX_ERRORCHECK' in scope
70 |
71 | let err = pthread_mutex_init(mutex, &attr)
/host/spi-builder-workspace/Sources/SwiftAnalytics/Locks.swift:69:37: error: cannot infer contextual base in reference to member 'init'
67 | var attr = pthread_mutexattr_t()
68 | pthread_mutexattr_init(&attr)
69 | pthread_mutexattr_settype(&attr, .init(PTHREAD_MUTEX_ERRORCHECK))
| `- error: cannot infer contextual base in reference to member 'init'
70 |
71 | let err = pthread_mutex_init(mutex, &attr)
/host/spi-builder-workspace/Sources/SwiftAnalytics/Locks.swift:71:13: error: cannot find 'pthread_mutex_init' in scope
69 | pthread_mutexattr_settype(&attr, .init(PTHREAD_MUTEX_ERRORCHECK))
70 |
71 | let err = pthread_mutex_init(mutex, &attr)
| `- error: cannot find 'pthread_mutex_init' in scope
72 | precondition(err == 0, "\(#function) failed in pthread_mutex with error \(err)")
73 | #endif
/host/spi-builder-workspace/Sources/SwiftAnalytics/Locks.swift:83:13: error: cannot find 'pthread_mutex_destroy' in scope
81 | self.mutex.deallocate()
82 | #else
83 | let err = pthread_mutex_destroy(self.mutex)
| `- error: cannot find 'pthread_mutex_destroy' in scope
84 | precondition(err == 0, "\(#function) failed in pthread_mutex with error \(err)")
85 | self.mutex.deallocate()
/host/spi-builder-workspace/Sources/SwiftAnalytics/Locks.swift:99:13: error: cannot find 'pthread_mutex_lock' in scope
97 | AcquireSRWLockExclusive(mutex)
98 | #else
99 | let err = pthread_mutex_lock(mutex)
| `- error: cannot find 'pthread_mutex_lock' in scope
100 | precondition(err == 0, "\(#function) failed in pthread_mutex with error \(err)")
101 | #endif
/host/spi-builder-workspace/Sources/SwiftAnalytics/Locks.swift:114:13: error: cannot find 'pthread_mutex_unlock' in scope
112 | ReleaseSRWLockExclusive(mutex)
113 | #else
114 | let err = pthread_mutex_unlock(mutex)
| `- error: cannot find 'pthread_mutex_unlock' in scope
115 | precondition(err == 0, "\(#function) failed in pthread_mutex with error \(err)")
116 | #endif
/host/spi-builder-workspace/Sources/SwiftAnalytics/Locks.swift:170:13: error: cannot find 'pthread_rwlock_init' in scope
168 | InitializeSRWLock(rwlock)
169 | #else
170 | let err = pthread_rwlock_init(rwlock, nil)
| `- error: cannot find 'pthread_rwlock_init' in scope
171 | precondition(err == 0, "\(#function) failed in pthread_rwlock with error \(err)")
172 | #endif
/host/spi-builder-workspace/Sources/SwiftAnalytics/Locks.swift:170:41: error: 'nil' requires a contextual type
168 | InitializeSRWLock(rwlock)
169 | #else
170 | let err = pthread_rwlock_init(rwlock, nil)
| `- error: 'nil' requires a contextual type
171 | precondition(err == 0, "\(#function) failed in pthread_rwlock with error \(err)")
172 | #endif
/host/spi-builder-workspace/Sources/SwiftAnalytics/Locks.swift:182:13: error: cannot find 'pthread_rwlock_destroy' in scope
180 | self.rwlock.deallocate()
181 | #else
182 | let err = pthread_rwlock_destroy(self.rwlock)
| `- error: cannot find 'pthread_rwlock_destroy' in scope
183 | precondition(err == 0, "\(#function) failed in pthread_rwlock with error \(err)")
184 | self.rwlock.deallocate()
/host/spi-builder-workspace/Sources/SwiftAnalytics/Locks.swift:199:13: error: cannot find 'pthread_rwlock_rdlock' in scope
197 | shared = true
198 | #else
199 | let err = pthread_rwlock_rdlock(rwlock)
| `- error: cannot find 'pthread_rwlock_rdlock' in scope
200 | precondition(err == 0, "\(#function) failed in pthread_rwlock with error \(err)")
201 | #endif
/host/spi-builder-workspace/Sources/SwiftAnalytics/Locks.swift:215:13: error: cannot find 'pthread_rwlock_wrlock' in scope
213 | shared = false
214 | #else
215 | let err = pthread_rwlock_wrlock(rwlock)
| `- error: cannot find 'pthread_rwlock_wrlock' in scope
216 | precondition(err == 0, "\(#function) failed in pthread_rwlock with error \(err)")
217 | #endif
/host/spi-builder-workspace/Sources/SwiftAnalytics/Locks.swift:235:13: error: cannot find 'pthread_rwlock_unlock' in scope
233 | }
234 | #else
235 | let err = pthread_rwlock_unlock(rwlock)
| `- error: cannot find 'pthread_rwlock_unlock' in scope
236 | precondition(err == 0, "\(#function) failed in pthread_rwlock with error \(err)")
237 | #endif
/host/spi-builder-workspace/Sources/SwiftAnalytics/MockAnalyticsHandler.swift:6:13: warning: stored property 'parameters' of 'Sendable'-conforming class 'MockAnalyticsHandler' is mutable; this is an error in the Swift 6 language mode
4 | public final class MockAnalyticsHandler: AnalyticsHandler {
5 |
6 | public var parameters: Analytics.Parameters
| `- warning: stored property 'parameters' of 'Sendable'-conforming class 'MockAnalyticsHandler' is mutable; this is an error in the Swift 6 language mode
7 | public var events: [Analytics.Event] = []
8 |
[9/16] Compiling SwiftAnalytics Analytics.swift
[10/16] Compiling SwiftAnalytics AnalyticsHandler.swift
[11/16] Compiling SwiftAnalytics MultiplexAnalyticsHandler.swift
[12/16] Compiling SwiftAnalytics NOOPAnalyticsHandler.swift
[13/16] Compiling SwiftAnalytics AnalyticsSystem.swift
/host/spi-builder-workspace/Sources/SwiftAnalytics/AnalyticsSystem.swift:8:21: warning: static property '_handler' is not concurrency-safe because non-'Sendable' type 'AnalyticsSystem.HandlerBox' may have shared mutable state; this is an error in the Swift 6 language mode
6 | public enum AnalyticsSystem {
7 |
8 | private static let _handler = HandlerBox(NOOPAnalyticsHandler.instance)
| |- warning: static property '_handler' is not concurrency-safe because non-'Sendable' type 'AnalyticsSystem.HandlerBox' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property '_handler' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
9 |
10 | /// `bootstrap` is an one-time configuration function which globally selects the desired analytics backend
:
41 | }
42 |
43 | private final class HandlerBox {
| `- note: class 'HandlerBox' does not conform to the 'Sendable' protocol
44 |
45 | private let lock = ReadWriteLock()
/host/spi-builder-workspace/Sources/SwiftAnalytics/Locks.swift:159:47: error: cannot find type 'pthread_rwlock_t' in scope
157 | fileprivate var shared = true
158 | #else
159 | fileprivate let rwlock: UnsafeMutablePointer<pthread_rwlock_t> =
| `- error: cannot find type 'pthread_rwlock_t' in scope
160 | UnsafeMutablePointer.allocate(capacity: 1)
161 | #endif
[14/16] Compiling SwiftAnalytics AnyCodingKey.swift
/host/spi-builder-workspace/Sources/SwiftAnalytics/AnalyticsSystem.swift:8:21: warning: static property '_handler' is not concurrency-safe because non-'Sendable' type 'AnalyticsSystem.HandlerBox' may have shared mutable state; this is an error in the Swift 6 language mode
6 | public enum AnalyticsSystem {
7 |
8 | private static let _handler = HandlerBox(NOOPAnalyticsHandler.instance)
| |- warning: static property '_handler' is not concurrency-safe because non-'Sendable' type 'AnalyticsSystem.HandlerBox' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property '_handler' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
9 |
10 | /// `bootstrap` is an one-time configuration function which globally selects the desired analytics backend
:
41 | }
42 |
43 | private final class HandlerBox {
| `- note: class 'HandlerBox' does not conform to the 'Sendable' protocol
44 |
45 | private let lock = ReadWriteLock()
/host/spi-builder-workspace/Sources/SwiftAnalytics/Locks.swift:159:47: error: cannot find type 'pthread_rwlock_t' in scope
157 | fileprivate var shared = true
158 | #else
159 | fileprivate let rwlock: UnsafeMutablePointer<pthread_rwlock_t> =
| `- error: cannot find type 'pthread_rwlock_t' in scope
160 | UnsafeMutablePointer.allocate(capacity: 1)
161 | #endif
[15/16] Emitting module SwiftAnalytics
/host/spi-builder-workspace/Sources/SwiftAnalytics/AnalyticsSystem.swift:8:21: warning: static property '_handler' is not concurrency-safe because non-'Sendable' type 'AnalyticsSystem.HandlerBox' may have shared mutable state; this is an error in the Swift 6 language mode
6 | public enum AnalyticsSystem {
7 |
8 | private static let _handler = HandlerBox(NOOPAnalyticsHandler.instance)
| |- warning: static property '_handler' is not concurrency-safe because non-'Sendable' type 'AnalyticsSystem.HandlerBox' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property '_handler' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
9 |
10 | /// `bootstrap` is an one-time configuration function which globally selects the desired analytics backend
:
41 | }
42 |
43 | private final class HandlerBox {
| `- note: class 'HandlerBox' does not conform to the 'Sendable' protocol
44 |
45 | private let lock = ReadWriteLock()
/host/spi-builder-workspace/Sources/SwiftAnalytics/Locks.swift:40:8: error: Unsupported runtime
38 | import Musl
39 | #else
40 | #error("Unsupported runtime")
| `- error: Unsupported runtime
41 | #endif
42 |
/host/spi-builder-workspace/Sources/SwiftAnalytics/Locks.swift:56:46: error: cannot find type 'pthread_mutex_t' in scope
54 | UnsafeMutablePointer.allocate(capacity: 1)
55 | #else
56 | fileprivate let mutex: UnsafeMutablePointer<pthread_mutex_t> =
| `- error: cannot find type 'pthread_mutex_t' in scope
57 | UnsafeMutablePointer.allocate(capacity: 1)
58 | #endif
/host/spi-builder-workspace/Sources/SwiftAnalytics/Locks.swift:159:47: error: cannot find type 'pthread_rwlock_t' in scope
157 | fileprivate var shared = true
158 | #else
159 | fileprivate let rwlock: UnsafeMutablePointer<pthread_rwlock_t> =
| `- error: cannot find type 'pthread_rwlock_t' in scope
160 | UnsafeMutablePointer.allocate(capacity: 1)
161 | #endif
/host/spi-builder-workspace/Sources/SwiftAnalytics/MockAnalyticsHandler.swift:6:13: warning: stored property 'parameters' of 'Sendable'-conforming class 'MockAnalyticsHandler' is mutable; this is an error in the Swift 6 language mode
4 | public final class MockAnalyticsHandler: AnalyticsHandler {
5 |
6 | public var parameters: Analytics.Parameters
| `- warning: stored property 'parameters' of 'Sendable'-conforming class 'MockAnalyticsHandler' is mutable; this is an error in the Swift 6 language mode
7 | public var events: [Analytics.Event] = []
8 |
/host/spi-builder-workspace/Sources/SwiftAnalytics/ParametersProvider.swift:12:8: error: Unsupported runtime
10 | import WASILibc
11 | #else
12 | #error("Unsupported runtime")
| `- error: Unsupported runtime
13 | #endif
14 |
/host/spi-builder-workspace/Sources/SwiftAnalytics/ParametersValueEncoder.swift:447:16: warning: static property 'iso8601DateFormatterWithOptions' is not concurrency-safe because non-'Sendable' type 'ISO8601DateFormatter' may have shared mutable state; this is an error in the Swift 6 language mode
445 |
446 | @available(macOS 10.12, iOS 10.0, watchOS 3.0, tvOS 10.0, *)
447 | static let iso8601DateFormatterWithOptions: ISO8601DateFormatter = {
| |- warning: static property 'iso8601DateFormatterWithOptions' is not concurrency-safe because non-'Sendable' type 'ISO8601DateFormatter' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'iso8601DateFormatterWithOptions' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
448 | let formatter = ISO8601DateFormatter()
449 | return formatter
Foundation.ISO8601DateFormatter:1:12: note: class 'ISO8601DateFormatter' does not conform to the 'Sendable' protocol
1 | open class ISO8601DateFormatter : Formatter, NSSecureCoding {
| `- note: class 'ISO8601DateFormatter' does not conform to the 'Sendable' protocol
2 | open var timeZone: TimeZone! { get set }
3 | open var formatOptions: ISO8601DateFormatter.Options { get set }
[16/16] Compiling SwiftAnalytics WithAnalyticsParameters.swift
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-1":/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
Building for debugging...
[0/1] Write swift-version-24593BA9C3E375BF.txt
[2/14] Compiling SwiftAnalytics Locks.swift
/host/spi-builder-workspace/Sources/SwiftAnalytics/Locks.swift:40:8: error: Unsupported runtime
38 | import Musl
39 | #else
40 | #error("Unsupported runtime")
| `- error: Unsupported runtime
41 | #endif
42 |
/host/spi-builder-workspace/Sources/SwiftAnalytics/Locks.swift:56:46: error: cannot find type 'pthread_mutex_t' in scope
54 | UnsafeMutablePointer.allocate(capacity: 1)
55 | #else
56 | fileprivate let mutex: UnsafeMutablePointer<pthread_mutex_t> =
| `- error: cannot find type 'pthread_mutex_t' in scope
57 | UnsafeMutablePointer.allocate(capacity: 1)
58 | #endif
/host/spi-builder-workspace/Sources/SwiftAnalytics/Locks.swift:159:47: error: cannot find type 'pthread_rwlock_t' in scope
157 | fileprivate var shared = true
158 | #else
159 | fileprivate let rwlock: UnsafeMutablePointer<pthread_rwlock_t> =
| `- error: cannot find type 'pthread_rwlock_t' in scope
160 | UnsafeMutablePointer.allocate(capacity: 1)
161 | #endif
/host/spi-builder-workspace/Sources/SwiftAnalytics/Locks.swift:67:14: error: cannot find 'pthread_mutexattr_t' in scope
65 | InitializeSRWLock(mutex)
66 | #else
67 | var attr = pthread_mutexattr_t()
| `- error: cannot find 'pthread_mutexattr_t' in scope
68 | pthread_mutexattr_init(&attr)
69 | pthread_mutexattr_settype(&attr, .init(PTHREAD_MUTEX_ERRORCHECK))
/host/spi-builder-workspace/Sources/SwiftAnalytics/Locks.swift:68:3: error: cannot find 'pthread_mutexattr_init' in scope
66 | #else
67 | var attr = pthread_mutexattr_t()
68 | pthread_mutexattr_init(&attr)
| `- error: cannot find 'pthread_mutexattr_init' in scope
69 | pthread_mutexattr_settype(&attr, .init(PTHREAD_MUTEX_ERRORCHECK))
70 |
/host/spi-builder-workspace/Sources/SwiftAnalytics/Locks.swift:69:3: error: cannot find 'pthread_mutexattr_settype' in scope
67 | var attr = pthread_mutexattr_t()
68 | pthread_mutexattr_init(&attr)
69 | pthread_mutexattr_settype(&attr, .init(PTHREAD_MUTEX_ERRORCHECK))
| `- error: cannot find 'pthread_mutexattr_settype' in scope
70 |
71 | let err = pthread_mutex_init(mutex, &attr)
/host/spi-builder-workspace/Sources/SwiftAnalytics/Locks.swift:69:42: error: cannot find 'PTHREAD_MUTEX_ERRORCHECK' in scope
67 | var attr = pthread_mutexattr_t()
68 | pthread_mutexattr_init(&attr)
69 | pthread_mutexattr_settype(&attr, .init(PTHREAD_MUTEX_ERRORCHECK))
| `- error: cannot find 'PTHREAD_MUTEX_ERRORCHECK' in scope
70 |
71 | let err = pthread_mutex_init(mutex, &attr)
/host/spi-builder-workspace/Sources/SwiftAnalytics/Locks.swift:69:37: error: cannot infer contextual base in reference to member 'init'
67 | var attr = pthread_mutexattr_t()
68 | pthread_mutexattr_init(&attr)
69 | pthread_mutexattr_settype(&attr, .init(PTHREAD_MUTEX_ERRORCHECK))
| `- error: cannot infer contextual base in reference to member 'init'
70 |
71 | let err = pthread_mutex_init(mutex, &attr)
/host/spi-builder-workspace/Sources/SwiftAnalytics/Locks.swift:71:13: error: cannot find 'pthread_mutex_init' in scope
69 | pthread_mutexattr_settype(&attr, .init(PTHREAD_MUTEX_ERRORCHECK))
70 |
71 | let err = pthread_mutex_init(mutex, &attr)
| `- error: cannot find 'pthread_mutex_init' in scope
72 | precondition(err == 0, "\(#function) failed in pthread_mutex with error \(err)")
73 | #endif
/host/spi-builder-workspace/Sources/SwiftAnalytics/Locks.swift:83:13: error: cannot find 'pthread_mutex_destroy' in scope
81 | self.mutex.deallocate()
82 | #else
83 | let err = pthread_mutex_destroy(self.mutex)
| `- error: cannot find 'pthread_mutex_destroy' in scope
84 | precondition(err == 0, "\(#function) failed in pthread_mutex with error \(err)")
85 | self.mutex.deallocate()
/host/spi-builder-workspace/Sources/SwiftAnalytics/Locks.swift:99:13: error: cannot find 'pthread_mutex_lock' in scope
97 | AcquireSRWLockExclusive(mutex)
98 | #else
99 | let err = pthread_mutex_lock(mutex)
| `- error: cannot find 'pthread_mutex_lock' in scope
100 | precondition(err == 0, "\(#function) failed in pthread_mutex with error \(err)")
101 | #endif
/host/spi-builder-workspace/Sources/SwiftAnalytics/Locks.swift:114:13: error: cannot find 'pthread_mutex_unlock' in scope
112 | ReleaseSRWLockExclusive(mutex)
113 | #else
114 | let err = pthread_mutex_unlock(mutex)
| `- error: cannot find 'pthread_mutex_unlock' in scope
115 | precondition(err == 0, "\(#function) failed in pthread_mutex with error \(err)")
116 | #endif
/host/spi-builder-workspace/Sources/SwiftAnalytics/Locks.swift:170:13: error: cannot find 'pthread_rwlock_init' in scope
168 | InitializeSRWLock(rwlock)
169 | #else
170 | let err = pthread_rwlock_init(rwlock, nil)
| `- error: cannot find 'pthread_rwlock_init' in scope
171 | precondition(err == 0, "\(#function) failed in pthread_rwlock with error \(err)")
172 | #endif
/host/spi-builder-workspace/Sources/SwiftAnalytics/Locks.swift:170:41: error: 'nil' requires a contextual type
168 | InitializeSRWLock(rwlock)
169 | #else
170 | let err = pthread_rwlock_init(rwlock, nil)
| `- error: 'nil' requires a contextual type
171 | precondition(err == 0, "\(#function) failed in pthread_rwlock with error \(err)")
172 | #endif
/host/spi-builder-workspace/Sources/SwiftAnalytics/Locks.swift:182:13: error: cannot find 'pthread_rwlock_destroy' in scope
180 | self.rwlock.deallocate()
181 | #else
182 | let err = pthread_rwlock_destroy(self.rwlock)
| `- error: cannot find 'pthread_rwlock_destroy' in scope
183 | precondition(err == 0, "\(#function) failed in pthread_rwlock with error \(err)")
184 | self.rwlock.deallocate()
/host/spi-builder-workspace/Sources/SwiftAnalytics/Locks.swift:199:13: error: cannot find 'pthread_rwlock_rdlock' in scope
197 | shared = true
198 | #else
199 | let err = pthread_rwlock_rdlock(rwlock)
| `- error: cannot find 'pthread_rwlock_rdlock' in scope
200 | precondition(err == 0, "\(#function) failed in pthread_rwlock with error \(err)")
201 | #endif
/host/spi-builder-workspace/Sources/SwiftAnalytics/Locks.swift:215:13: error: cannot find 'pthread_rwlock_wrlock' in scope
213 | shared = false
214 | #else
215 | let err = pthread_rwlock_wrlock(rwlock)
| `- error: cannot find 'pthread_rwlock_wrlock' in scope
216 | precondition(err == 0, "\(#function) failed in pthread_rwlock with error \(err)")
217 | #endif
/host/spi-builder-workspace/Sources/SwiftAnalytics/Locks.swift:235:13: error: cannot find 'pthread_rwlock_unlock' in scope
233 | }
234 | #else
235 | let err = pthread_rwlock_unlock(rwlock)
| `- error: cannot find 'pthread_rwlock_unlock' in scope
236 | precondition(err == 0, "\(#function) failed in pthread_rwlock with error \(err)")
237 | #endif
[3/14] Compiling SwiftAnalytics MockAnalyticsHandler.swift
/host/spi-builder-workspace/Sources/SwiftAnalytics/Locks.swift:40:8: error: Unsupported runtime
38 | import Musl
39 | #else
40 | #error("Unsupported runtime")
| `- error: Unsupported runtime
41 | #endif
42 |
/host/spi-builder-workspace/Sources/SwiftAnalytics/Locks.swift:56:46: error: cannot find type 'pthread_mutex_t' in scope
54 | UnsafeMutablePointer.allocate(capacity: 1)
55 | #else
56 | fileprivate let mutex: UnsafeMutablePointer<pthread_mutex_t> =
| `- error: cannot find type 'pthread_mutex_t' in scope
57 | UnsafeMutablePointer.allocate(capacity: 1)
58 | #endif
/host/spi-builder-workspace/Sources/SwiftAnalytics/Locks.swift:159:47: error: cannot find type 'pthread_rwlock_t' in scope
157 | fileprivate var shared = true
158 | #else
159 | fileprivate let rwlock: UnsafeMutablePointer<pthread_rwlock_t> =
| `- error: cannot find type 'pthread_rwlock_t' in scope
160 | UnsafeMutablePointer.allocate(capacity: 1)
161 | #endif
/host/spi-builder-workspace/Sources/SwiftAnalytics/Locks.swift:67:14: error: cannot find 'pthread_mutexattr_t' in scope
65 | InitializeSRWLock(mutex)
66 | #else
67 | var attr = pthread_mutexattr_t()
| `- error: cannot find 'pthread_mutexattr_t' in scope
68 | pthread_mutexattr_init(&attr)
69 | pthread_mutexattr_settype(&attr, .init(PTHREAD_MUTEX_ERRORCHECK))
/host/spi-builder-workspace/Sources/SwiftAnalytics/Locks.swift:68:3: error: cannot find 'pthread_mutexattr_init' in scope
66 | #else
67 | var attr = pthread_mutexattr_t()
68 | pthread_mutexattr_init(&attr)
| `- error: cannot find 'pthread_mutexattr_init' in scope
69 | pthread_mutexattr_settype(&attr, .init(PTHREAD_MUTEX_ERRORCHECK))
70 |
/host/spi-builder-workspace/Sources/SwiftAnalytics/Locks.swift:69:3: error: cannot find 'pthread_mutexattr_settype' in scope
67 | var attr = pthread_mutexattr_t()
68 | pthread_mutexattr_init(&attr)
69 | pthread_mutexattr_settype(&attr, .init(PTHREAD_MUTEX_ERRORCHECK))
| `- error: cannot find 'pthread_mutexattr_settype' in scope
70 |
71 | let err = pthread_mutex_init(mutex, &attr)
/host/spi-builder-workspace/Sources/SwiftAnalytics/Locks.swift:69:42: error: cannot find 'PTHREAD_MUTEX_ERRORCHECK' in scope
67 | var attr = pthread_mutexattr_t()
68 | pthread_mutexattr_init(&attr)
69 | pthread_mutexattr_settype(&attr, .init(PTHREAD_MUTEX_ERRORCHECK))
| `- error: cannot find 'PTHREAD_MUTEX_ERRORCHECK' in scope
70 |
71 | let err = pthread_mutex_init(mutex, &attr)
/host/spi-builder-workspace/Sources/SwiftAnalytics/Locks.swift:69:37: error: cannot infer contextual base in reference to member 'init'
67 | var attr = pthread_mutexattr_t()
68 | pthread_mutexattr_init(&attr)
69 | pthread_mutexattr_settype(&attr, .init(PTHREAD_MUTEX_ERRORCHECK))
| `- error: cannot infer contextual base in reference to member 'init'
70 |
71 | let err = pthread_mutex_init(mutex, &attr)
/host/spi-builder-workspace/Sources/SwiftAnalytics/Locks.swift:71:13: error: cannot find 'pthread_mutex_init' in scope
69 | pthread_mutexattr_settype(&attr, .init(PTHREAD_MUTEX_ERRORCHECK))
70 |
71 | let err = pthread_mutex_init(mutex, &attr)
| `- error: cannot find 'pthread_mutex_init' in scope
72 | precondition(err == 0, "\(#function) failed in pthread_mutex with error \(err)")
73 | #endif
/host/spi-builder-workspace/Sources/SwiftAnalytics/Locks.swift:83:13: error: cannot find 'pthread_mutex_destroy' in scope
81 | self.mutex.deallocate()
82 | #else
83 | let err = pthread_mutex_destroy(self.mutex)
| `- error: cannot find 'pthread_mutex_destroy' in scope
84 | precondition(err == 0, "\(#function) failed in pthread_mutex with error \(err)")
85 | self.mutex.deallocate()
/host/spi-builder-workspace/Sources/SwiftAnalytics/Locks.swift:99:13: error: cannot find 'pthread_mutex_lock' in scope
97 | AcquireSRWLockExclusive(mutex)
98 | #else
99 | let err = pthread_mutex_lock(mutex)
| `- error: cannot find 'pthread_mutex_lock' in scope
100 | precondition(err == 0, "\(#function) failed in pthread_mutex with error \(err)")
101 | #endif
/host/spi-builder-workspace/Sources/SwiftAnalytics/Locks.swift:114:13: error: cannot find 'pthread_mutex_unlock' in scope
112 | ReleaseSRWLockExclusive(mutex)
113 | #else
114 | let err = pthread_mutex_unlock(mutex)
| `- error: cannot find 'pthread_mutex_unlock' in scope
115 | precondition(err == 0, "\(#function) failed in pthread_mutex with error \(err)")
116 | #endif
/host/spi-builder-workspace/Sources/SwiftAnalytics/Locks.swift:170:13: error: cannot find 'pthread_rwlock_init' in scope
168 | InitializeSRWLock(rwlock)
169 | #else
170 | let err = pthread_rwlock_init(rwlock, nil)
| `- error: cannot find 'pthread_rwlock_init' in scope
171 | precondition(err == 0, "\(#function) failed in pthread_rwlock with error \(err)")
172 | #endif
/host/spi-builder-workspace/Sources/SwiftAnalytics/Locks.swift:170:41: error: 'nil' requires a contextual type
168 | InitializeSRWLock(rwlock)
169 | #else
170 | let err = pthread_rwlock_init(rwlock, nil)
| `- error: 'nil' requires a contextual type
171 | precondition(err == 0, "\(#function) failed in pthread_rwlock with error \(err)")
172 | #endif
/host/spi-builder-workspace/Sources/SwiftAnalytics/Locks.swift:182:13: error: cannot find 'pthread_rwlock_destroy' in scope
180 | self.rwlock.deallocate()
181 | #else
182 | let err = pthread_rwlock_destroy(self.rwlock)
| `- error: cannot find 'pthread_rwlock_destroy' in scope
183 | precondition(err == 0, "\(#function) failed in pthread_rwlock with error \(err)")
184 | self.rwlock.deallocate()
/host/spi-builder-workspace/Sources/SwiftAnalytics/Locks.swift:199:13: error: cannot find 'pthread_rwlock_rdlock' in scope
197 | shared = true
198 | #else
199 | let err = pthread_rwlock_rdlock(rwlock)
| `- error: cannot find 'pthread_rwlock_rdlock' in scope
200 | precondition(err == 0, "\(#function) failed in pthread_rwlock with error \(err)")
201 | #endif
/host/spi-builder-workspace/Sources/SwiftAnalytics/Locks.swift:215:13: error: cannot find 'pthread_rwlock_wrlock' in scope
213 | shared = false
214 | #else
215 | let err = pthread_rwlock_wrlock(rwlock)
| `- error: cannot find 'pthread_rwlock_wrlock' in scope
216 | precondition(err == 0, "\(#function) failed in pthread_rwlock with error \(err)")
217 | #endif
/host/spi-builder-workspace/Sources/SwiftAnalytics/Locks.swift:235:13: error: cannot find 'pthread_rwlock_unlock' in scope
233 | }
234 | #else
235 | let err = pthread_rwlock_unlock(rwlock)
| `- error: cannot find 'pthread_rwlock_unlock' in scope
236 | precondition(err == 0, "\(#function) failed in pthread_rwlock with error \(err)")
237 | #endif
[4/14] Compiling SwiftAnalytics MultiplexAnalyticsHandler.swift
[5/14] Compiling SwiftAnalytics NOOPAnalyticsHandler.swift
[6/14] Compiling SwiftAnalytics AnalyticsSystem.swift
/host/spi-builder-workspace/Sources/SwiftAnalytics/Locks.swift:159:47: error: cannot find type 'pthread_rwlock_t' in scope
157 | fileprivate var shared = true
158 | #else
159 | fileprivate let rwlock: UnsafeMutablePointer<pthread_rwlock_t> =
| `- error: cannot find type 'pthread_rwlock_t' in scope
160 | UnsafeMutablePointer.allocate(capacity: 1)
161 | #endif
[7/14] Compiling SwiftAnalytics AnyCodingKey.swift
/host/spi-builder-workspace/Sources/SwiftAnalytics/Locks.swift:159:47: error: cannot find type 'pthread_rwlock_t' in scope
157 | fileprivate var shared = true
158 | #else
159 | fileprivate let rwlock: UnsafeMutablePointer<pthread_rwlock_t> =
| `- error: cannot find type 'pthread_rwlock_t' in scope
160 | UnsafeMutablePointer.allocate(capacity: 1)
161 | #endif
error: emit-module command failed with exit code 1 (use -v to see invocation)
[8/15] Compiling SwiftAnalytics Analytics.swift
[9/15] Compiling SwiftAnalytics AnalyticsHandler.swift
[10/15] Emitting module SwiftAnalytics
/host/spi-builder-workspace/Sources/SwiftAnalytics/Locks.swift:40:8: error: Unsupported runtime
38 | import Musl
39 | #else
40 | #error("Unsupported runtime")
| `- error: Unsupported runtime
41 | #endif
42 |
/host/spi-builder-workspace/Sources/SwiftAnalytics/Locks.swift:56:46: error: cannot find type 'pthread_mutex_t' in scope
54 | UnsafeMutablePointer.allocate(capacity: 1)
55 | #else
56 | fileprivate let mutex: UnsafeMutablePointer<pthread_mutex_t> =
| `- error: cannot find type 'pthread_mutex_t' in scope
57 | UnsafeMutablePointer.allocate(capacity: 1)
58 | #endif
/host/spi-builder-workspace/Sources/SwiftAnalytics/Locks.swift:159:47: error: cannot find type 'pthread_rwlock_t' in scope
157 | fileprivate var shared = true
158 | #else
159 | fileprivate let rwlock: UnsafeMutablePointer<pthread_rwlock_t> =
| `- error: cannot find type 'pthread_rwlock_t' in scope
160 | UnsafeMutablePointer.allocate(capacity: 1)
161 | #endif
/host/spi-builder-workspace/Sources/SwiftAnalytics/ParametersProvider.swift:12:8: error: Unsupported runtime
10 | import WASILibc
11 | #else
12 | #error("Unsupported runtime")
| `- error: Unsupported runtime
13 | #endif
14 |
[11/15] Compiling SwiftAnalytics WithAnalyticsParameters.swift
[12/15] Compiling SwiftAnalytics ParametersValueDecoder.swift
/host/spi-builder-workspace/Sources/SwiftAnalytics/ParametersValueDecoder.swift:716:29: error: pattern variable binding cannot appear in an expression
714 | }
715 |
716 | case let .formatted(formatter):
| `- error: pattern variable binding cannot appear in an expression
717 | guard case let .string(string) = value else {
718 | throw DecodingError.typeMismatch(Date.self, DecodingError.Context(
[13/15] Compiling SwiftAnalytics ParametersValueEncoder.swift
/host/spi-builder-workspace/Sources/SwiftAnalytics/ParametersValueEncoder.swift:477:29: error: pattern variable binding cannot appear in an expression
475 | }
476 |
477 | case let .formatted(formatter):
| `- error: pattern variable binding cannot appear in an expression
478 | return .string(formatter.string(from: date))
479 |
[14/15] Compiling SwiftAnalytics ParametersProvider.swift
/host/spi-builder-workspace/Sources/SwiftAnalytics/ParametersProvider.swift:12:8: error: Unsupported runtime
10 | import WASILibc
11 | #else
12 | #error("Unsupported runtime")
| `- error: Unsupported runtime
13 | #endif
14 |
[15/15] Compiling SwiftAnalytics ParametersValue+JSONString.swift
/host/spi-builder-workspace/Sources/SwiftAnalytics/ParametersProvider.swift:12:8: error: Unsupported runtime
10 | import WASILibc
11 | #else
12 | #error("Unsupported runtime")
| `- error: Unsupported runtime
13 | #endif
14 |
BUILD FAILURE 6.1 android