Build Information
Failed to build swift-log-loki, reference v1.1.0 (fb800a
), with Swift 6.1 for Android on 29 May 2025 08:23:06 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4609320-0":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:android-6.1-latest swift build --swift-sdk aarch64-unknown-linux-android24 2>&1
Build Log
========================================
RunAll
========================================
Builder version: 4.63.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/lovetodream/swift-log-loki.git
Reference: v1.1.0
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/lovetodream/swift-log-loki
* tag v1.1.0 -> FETCH_HEAD
HEAD is now at fb800a4 feat: add support for additional platforms
Cloned https://github.com/lovetodream/swift-log-loki.git
Revision (git rev-parse @):
fb800a495f8ee7d46796333d956dd4d92c14da40
SUCCESS checkout https://github.com/lovetodream/swift-log-loki.git at v1.1.0
========================================
Build
========================================
Selected platform: android
Swift version: 6.1
Building package at path: $PWD
https://github.com/lovetodream/swift-log-loki.git
https://github.com/lovetodream/swift-log-loki.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
"dependencies" : [
{
"identity" : "swift-log",
"requirement" : {
"range" : [
{
"lower_bound" : "1.0.0",
"upper_bound" : "2.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/apple/swift-log.git"
},
{
"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.git"
},
{
"identity" : "swift-protobuf",
"requirement" : {
"range" : [
{
"lower_bound" : "1.6.0",
"upper_bound" : "2.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/apple/swift-protobuf.git"
},
{
"identity" : "swift-snappy",
"requirement" : {
"range" : [
{
"lower_bound" : "1.0.0",
"upper_bound" : "2.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/lovetodream/swift-snappy"
}
],
"manifest_display_name" : "swift-log-loki",
"name" : "swift-log-loki",
"path" : "/host/spi-builder-workspace",
"platforms" : [
{
"name" : "macos",
"version" : "11.0"
},
{
"name" : "ios",
"version" : "14.0"
},
{
"name" : "tvos",
"version" : "14.0"
},
{
"name" : "watchos",
"version" : "7.0"
}
],
"products" : [
{
"name" : "LoggingLoki",
"targets" : [
"LoggingLoki"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "LoggingLokiTests",
"module_type" : "SwiftTarget",
"name" : "LoggingLokiTests",
"path" : "Tests/LoggingLokiTests",
"sources" : [
"LoggingLokiTests.swift"
],
"target_dependencies" : [
"LoggingLoki"
],
"type" : "test"
},
{
"c99name" : "LoggingLoki",
"module_type" : "SwiftTarget",
"name" : "LoggingLoki",
"path" : "Sources/LoggingLoki",
"product_dependencies" : [
"Logging",
"SwiftProtobuf",
"Snappy"
],
"product_memberships" : [
"LoggingLoki"
],
"sources" : [
"Batch.swift",
"BatchEntry.swift",
"Batcher.swift",
"LokiError.swift",
"LokiLogHandler.swift",
"LokiRequest.swift",
"LokiSession.swift",
"LokiStream.swift",
"NIOLock.swift",
"NIOLockedValueBox.swift",
"Proto/gen/swift/descriptor.pb.swift",
"Proto/gen/swift/gogo.pb.swift",
"Proto/gen/swift/logproto.pb.swift",
"Proto/gen/swift/stats.pb.swift",
"Proto/gen/swift/timestamp.pb.swift",
"TypeAliases.swift"
],
"type" : "library"
}
],
"tools_version" : "5.7"
}
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-0":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:android-6.1-latest swift build --swift-sdk aarch64-unknown-linux-android24 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures 2>&1
android-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:fe1962677657b2408c217cb5cceb3c09bc1d91486e360cebbc6eee461a5945d8
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:android-6.1-latest
Fetching https://github.com/apple/swift-log.git
Fetching https://github.com/lovetodream/swift-snappy
Fetching https://github.com/apple/swift-docc-plugin.git
Fetching https://github.com/apple/swift-protobuf.git
[1/194] Fetching swift-snappy
[166/4030] Fetching swift-snappy, swift-log
[886/6079] Fetching swift-snappy, swift-log, swift-docc-plugin
Fetched https://github.com/lovetodream/swift-snappy from cache (0.38s)
[4082/5885] Fetching swift-log, swift-docc-plugin
[5886/44860] Fetching swift-log, swift-docc-plugin, swift-protobuf
Fetched https://github.com/apple/swift-log.git from cache (5.35s)
Fetched https://github.com/apple/swift-docc-plugin.git from cache (5.36s)
Fetched https://github.com/apple/swift-protobuf.git from cache (5.41s)
Computing version for https://github.com/lovetodream/swift-snappy
Computed https://github.com/lovetodream/swift-snappy at 1.0.0 (6.18s)
Fetching https://github.com/apple/swift-system
[1/4391] Fetching swift-system
Fetched https://github.com/apple/swift-system from cache (0.44s)
Computing version for https://github.com/apple/swift-docc-plugin.git
Computed https://github.com/apple/swift-docc-plugin.git at 1.4.3 (1.15s)
Fetching https://github.com/swiftlang/swift-docc-symbolkit
[1/3391] Fetching swift-docc-symbolkit
Fetched https://github.com/swiftlang/swift-docc-symbolkit from cache (0.50s)
Computing version for https://github.com/swiftlang/swift-docc-symbolkit
Computed https://github.com/swiftlang/swift-docc-symbolkit at 1.0.0 (1.66s)
Computing version for https://github.com/apple/swift-system
Computed https://github.com/apple/swift-system at 1.5.0 (0.46s)
Computing version for https://github.com/apple/swift-log.git
Computed https://github.com/apple/swift-log.git at 1.6.3 (0.93s)
Computing version for https://github.com/apple/swift-protobuf.git
Computed https://github.com/apple/swift-protobuf.git at 1.30.0 (0.43s)
Creating working copy for https://github.com/apple/swift-protobuf.git
Working copy of https://github.com/apple/swift-protobuf.git resolved at 1.30.0
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/lovetodream/swift-snappy
Working copy of https://github.com/lovetodream/swift-snappy resolved at 1.0.0
Creating working copy for https://github.com/apple/swift-docc-plugin.git
Working copy of https://github.com/apple/swift-docc-plugin.git resolved at 1.4.3
Creating working copy for https://github.com/apple/swift-log.git
Working copy of https://github.com/apple/swift-log.git resolved at 1.6.3
Creating working copy for https://github.com/apple/swift-system
Working copy of https://github.com/apple/swift-system resolved at 1.5.0
warning: 'spi-builder-workspace': found 5 file(s) which are unhandled; explicitly declare them as resources or exclude from the target
/host/spi-builder-workspace/Sources/LoggingLoki/Proto/logproto.proto
/host/spi-builder-workspace/Sources/LoggingLoki/Proto/timestamp.proto
/host/spi-builder-workspace/Sources/LoggingLoki/Proto/stats.proto
/host/spi-builder-workspace/Sources/LoggingLoki/Proto/gogo.proto
/host/spi-builder-workspace/Sources/LoggingLoki/Proto/descriptor.proto
[1/1] Compiling plugin SwiftProtobufPlugin
[2/2] Compiling plugin Swift-DocC Preview
[3/3] Compiling plugin Swift-DocC
Building for debugging...
[3/13] Write sources
[8/13] Copying PrivacyInfo.xcprivacy
[9/13] Compiling CSystem shims.c
[10/13] Compiling SnappyC snappy.c
[11/13] Write swift-version-24593BA9C3E375BF.txt
[12/13] Compiling SnappyC map.c
[14/129] Compiling SwiftProtobuf ExtensibleMessage.swift
[15/129] Compiling SwiftProtobuf ExtensionFieldValueSet.swift
[16/129] Compiling SwiftProtobuf ExtensionFields.swift
[17/129] Compiling SwiftProtobuf ExtensionMap.swift
[18/132] Compiling SwiftProtobuf AnyMessageStorage.swift
[19/132] Compiling SwiftProtobuf AnyUnpackError.swift
[20/132] Compiling SwiftProtobuf AsyncMessageSequence.swift
[21/132] Compiling SwiftProtobuf CustomJSONCodable.swift
[22/132] Compiling SwiftProtobuf Decoder.swift
[23/132] Compiling SwiftProtobuf DoubleParser.swift
[24/132] Compiling SwiftProtobuf Enum.swift
[25/132] Compiling SystemPackage Util+StringArray.swift
[26/132] Compiling SystemPackage Util.swift
[27/132] Compiling SystemPackage UtilConsumers.swift
[28/132] Compiling Logging MetadataProvider.swift
[29/132] Compiling Logging Logging.swift
[30/132] Compiling SwiftProtobuf FieldTag.swift
[31/132] Compiling SwiftProtobuf FieldTypes.swift
[32/132] Compiling SwiftProtobuf Google_Protobuf_Any+Extensions.swift
[33/132] Compiling SwiftProtobuf Google_Protobuf_Any+Registry.swift
[34/132] Emitting module SystemPackage
[35/132] Compiling SwiftProtobuf Google_Protobuf_Duration+Extensions.swift
[36/132] Compiling SwiftProtobuf Google_Protobuf_FieldMask+Extensions.swift
[37/132] Compiling SwiftProtobuf Google_Protobuf_ListValue+Extensions.swift
[38/132] Compiling SwiftProtobuf Google_Protobuf_NullValue+Extensions.swift
[39/132] Compiling Logging LogHandler.swift
[40/132] Emitting module Logging
[41/132] Compiling Logging Locks.swift
[42/133] Compiling SwiftProtobuf Google_Protobuf_Struct+Extensions.swift
[43/133] Compiling SwiftProtobuf Google_Protobuf_Timestamp+Extensions.swift
[44/133] Compiling SwiftProtobuf Google_Protobuf_Value+Extensions.swift
[45/133] Compiling SwiftProtobuf Google_Protobuf_Wrappers+Extensions.swift
[46/133] Compiling SwiftProtobuf HashVisitor.swift
[47/133] Compiling SwiftProtobuf Internal.swift
[48/133] Compiling SwiftProtobuf JSONDecoder.swift
[49/133] Compiling SwiftProtobuf JSONDecodingError.swift
[52/134] Compiling SwiftProtobuf TextFormatEncodingVisitor.swift
[53/134] Compiling SwiftProtobuf TextFormatScanner.swift
[54/134] Compiling SwiftProtobuf TimeUtils.swift
[55/134] Compiling SwiftProtobuf UnknownStorage.swift
[56/134] Compiling SwiftProtobuf UnsafeRawPointer+Shims.swift
[57/134] Compiling SwiftProtobuf Varint.swift
[58/134] Compiling SwiftProtobuf Version.swift
[59/134] Compiling SwiftProtobuf Visitor.swift
[60/134] Compiling SwiftProtobuf WireFormat.swift
[61/134] Compiling SwiftProtobuf ZigZag.swift
[62/134] Compiling SwiftProtobuf any.pb.swift
[63/145] Compiling SwiftProtobuf JSONDecodingOptions.swift
[64/145] Compiling SwiftProtobuf JSONEncoder.swift
[65/145] Compiling SwiftProtobuf JSONEncodingError.swift
[66/145] Compiling SwiftProtobuf JSONEncodingOptions.swift
[67/145] Compiling SwiftProtobuf JSONEncodingVisitor.swift
[68/145] Compiling SwiftProtobuf JSONMapEncodingVisitor.swift
[69/145] Compiling SwiftProtobuf JSONScanner.swift
[70/145] Compiling SwiftProtobuf MathUtils.swift
[71/145] Compiling SwiftProtobuf Message+AnyAdditions.swift
[72/145] Compiling SwiftProtobuf Message+BinaryAdditions.swift
[73/145] Compiling SwiftProtobuf Message+BinaryAdditions_Data.swift
[74/145] Compiling SwiftProtobuf Message+FieldMask.swift
[75/147] Compiling SwiftProtobuf Message+JSONAdditions.swift
[76/147] Compiling SwiftProtobuf Message+JSONAdditions_Data.swift
[77/147] Compiling SwiftProtobuf Message+JSONArrayAdditions.swift
[78/147] Compiling SwiftProtobuf Message+JSONArrayAdditions_Data.swift
[79/147] Compiling SwiftProtobuf Message+TextFormatAdditions.swift
[80/147] Compiling SwiftProtobuf Message.swift
[81/147] Compiling SwiftProtobuf MessageExtension.swift
[82/147] Compiling SwiftProtobuf NameMap.swift
[83/147] Compiling SwiftProtobuf PathDecoder.swift
[84/147] Compiling SwiftProtobuf PathVisitor.swift
[85/147] Compiling SwiftProtobuf ProtoNameProviding.swift
[86/147] Compiling SwiftProtobuf ProtobufAPIVersionCheck.swift
[87/147] Compiling SwiftProtobuf ProtobufMap.swift
[88/147] Compiling SwiftProtobuf SelectiveVisitor.swift
[89/147] Compiling SwiftProtobuf SimpleExtensionMap.swift
[90/147] Compiling SwiftProtobuf StringUtils.swift
[91/147] Compiling SwiftProtobuf SwiftProtobufContiguousBytes.swift
[92/147] Compiling SwiftProtobuf SwiftProtobufError.swift
[93/147] Compiling SwiftProtobuf TextFormatDecoder.swift
[94/147] Compiling SwiftProtobuf TextFormatDecodingError.swift
[95/147] Compiling SwiftProtobuf TextFormatDecodingOptions.swift
[96/147] Compiling SwiftProtobuf TextFormatEncoder.swift
[97/147] Compiling SwiftProtobuf TextFormatEncodingOptions.swift
[122/147] Emitting module SwiftProtobuf
[129/147] Compiling SwiftProtobuf BinaryDelimited.swift
[130/147] Compiling SwiftProtobuf BinaryEncoder.swift
[131/147] Compiling SwiftProtobuf BinaryEncodingError.swift
[132/147] Compiling SwiftProtobuf BinaryEncodingOptions.swift
[133/147] Compiling SwiftProtobuf BinaryEncodingSizeVisitor.swift
[134/147] Compiling SwiftProtobuf BinaryEncodingVisitor.swift
[135/147] Emitting module Snappy
[136/147] Compiling Snappy Snappy.swift
[138/148] Compiling SwiftProtobuf api.pb.swift
[139/148] Compiling SwiftProtobuf descriptor.pb.swift
[140/148] Compiling SwiftProtobuf duration.pb.swift
[141/148] Compiling SwiftProtobuf empty.pb.swift
[142/148] Compiling SwiftProtobuf field_mask.pb.swift
[143/148] Compiling SwiftProtobuf source_context.pb.swift
[144/148] Compiling SwiftProtobuf struct.pb.swift
[145/148] Compiling SwiftProtobuf timestamp.pb.swift
[146/148] Compiling SwiftProtobuf type.pb.swift
[147/148] Compiling SwiftProtobuf wrappers.pb.swift
[148/148] Compiling SwiftProtobuf resource_bundle_accessor.swift
[150/164] Compiling LoggingLoki LokiLogHandler.swift
[151/164] Compiling LoggingLoki LokiRequest.swift
[152/164] Compiling LoggingLoki LokiSession.swift
/host/spi-builder-workspace/Sources/LoggingLoki/LokiSession.swift:60:21: warning: capture of 'completion' with non-sendable type '(Result<StatusCode, any Error>) -> Void' (aka '(Result<Int, any Error>) -> ()') in a '@Sendable' closure; this is an error in the Swift 6 language mode
58 | let task = dataTask(with: request) { data, response, error in
59 | if let error = error {
60 | completion(.failure(error))
| |- warning: capture of 'completion' with non-sendable type '(Result<StatusCode, any Error>) -> Void' (aka '(Result<Int, any Error>) -> ()') in a '@Sendable' closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
61 | } else if let httpResponse = response as? HTTPURLResponse, (200..<300).contains(httpResponse.statusCode) {
62 | completion(.success(httpResponse.statusCode))
[153/164] Compiling LoggingLoki LokiStream.swift
/host/spi-builder-workspace/Sources/LoggingLoki/LokiSession.swift:60:21: warning: capture of 'completion' with non-sendable type '(Result<StatusCode, any Error>) -> Void' (aka '(Result<Int, any Error>) -> ()') in a '@Sendable' closure; this is an error in the Swift 6 language mode
58 | let task = dataTask(with: request) { data, response, error in
59 | if let error = error {
60 | completion(.failure(error))
| |- warning: capture of 'completion' with non-sendable type '(Result<StatusCode, any Error>) -> Void' (aka '(Result<Int, any Error>) -> ()') in a '@Sendable' closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
61 | } else if let httpResponse = response as? HTTPURLResponse, (200..<300).contains(httpResponse.statusCode) {
62 | completion(.success(httpResponse.statusCode))
[154/164] Compiling LoggingLoki NIOLock.swift
/host/spi-builder-workspace/Sources/LoggingLoki/NIOLock.swift:28:8: error: The concurrency NIOLock module was unable to identify your C library.
26 | import Musl
27 | #else
28 | #error("The concurrency NIOLock module was unable to identify your C library.")
| `- error: The concurrency NIOLock module was unable to identify your C library.
29 | #endif
30 |
/host/spi-builder-workspace/Sources/LoggingLoki/NIOLock.swift:36:27: error: cannot find type 'pthread_mutex_t' in scope
34 | #else
35 | @usableFromInline
36 | typealias LockPrimitive = pthread_mutex_t
| `- error: cannot find type 'pthread_mutex_t' in scope
37 | #endif
38 |
/host/spi-builder-workspace/Sources/LoggingLoki/NIOLock.swift:50:20: error: cannot find 'pthread_mutexattr_t' in scope
48 | InitializeSRWLock(mutex)
49 | #else
50 | var attr = pthread_mutexattr_t()
| `- error: cannot find 'pthread_mutexattr_t' in scope
51 | pthread_mutexattr_init(&attr)
52 | debugOnly {
/host/spi-builder-workspace/Sources/LoggingLoki/NIOLock.swift:51:9: error: cannot find 'pthread_mutexattr_init' in scope
49 | #else
50 | var attr = pthread_mutexattr_t()
51 | pthread_mutexattr_init(&attr)
| `- error: cannot find 'pthread_mutexattr_init' in scope
52 | debugOnly {
53 | pthread_mutexattr_settype(&attr, .init(PTHREAD_MUTEX_ERRORCHECK))
/host/spi-builder-workspace/Sources/LoggingLoki/NIOLock.swift:53:13: error: cannot find 'pthread_mutexattr_settype' in scope
51 | pthread_mutexattr_init(&attr)
52 | debugOnly {
53 | pthread_mutexattr_settype(&attr, .init(PTHREAD_MUTEX_ERRORCHECK))
| `- error: cannot find 'pthread_mutexattr_settype' in scope
54 | }
55 |
/host/spi-builder-workspace/Sources/LoggingLoki/NIOLock.swift:53:52: error: cannot find 'PTHREAD_MUTEX_ERRORCHECK' in scope
51 | pthread_mutexattr_init(&attr)
52 | debugOnly {
53 | pthread_mutexattr_settype(&attr, .init(PTHREAD_MUTEX_ERRORCHECK))
| `- error: cannot find 'PTHREAD_MUTEX_ERRORCHECK' in scope
54 | }
55 |
/host/spi-builder-workspace/Sources/LoggingLoki/NIOLock.swift:53:47: error: cannot infer contextual base in reference to member 'init'
51 | pthread_mutexattr_init(&attr)
52 | debugOnly {
53 | pthread_mutexattr_settype(&attr, .init(PTHREAD_MUTEX_ERRORCHECK))
| `- error: cannot infer contextual base in reference to member 'init'
54 | }
55 |
/host/spi-builder-workspace/Sources/LoggingLoki/NIOLock.swift:56:19: error: cannot find 'pthread_mutex_init' in scope
54 | }
55 |
56 | let err = pthread_mutex_init(mutex, &attr)
| `- error: cannot find 'pthread_mutex_init' in scope
57 | precondition(err == 0, "\(#function) failed in pthread_mutex with error \(err)")
58 | #endif
/host/spi-builder-workspace/Sources/LoggingLoki/NIOLock.swift:68:19: error: cannot find 'pthread_mutex_destroy' in scope
66 | // SRWLOCK does not need to be free'd
67 | #else
68 | let err = pthread_mutex_destroy(mutex)
| `- error: cannot find 'pthread_mutex_destroy' in scope
69 | precondition(err == 0, "\(#function) failed in pthread_mutex with error \(err)")
70 | #endif
/host/spi-builder-workspace/Sources/LoggingLoki/NIOLock.swift:80:19: error: cannot find 'pthread_mutex_lock' in scope
78 | AcquireSRWLockExclusive(mutex)
79 | #else
80 | let err = pthread_mutex_lock(mutex)
| `- error: cannot find 'pthread_mutex_lock' in scope
81 | precondition(err == 0, "\(#function) failed in pthread_mutex with error \(err)")
82 | #endif
/host/spi-builder-workspace/Sources/LoggingLoki/NIOLock.swift:92:19: error: cannot find 'pthread_mutex_unlock' in scope
90 | ReleaseSRWLockExclusive(mutex)
91 | #else
92 | let err = pthread_mutex_unlock(mutex)
| `- error: cannot find 'pthread_mutex_unlock' in scope
93 | precondition(err == 0, "\(#function) failed in pthread_mutex with error \(err)")
94 | #endif
/host/spi-builder-workspace/Sources/LoggingLoki/NIOLock.swift:131:27: error: type of expression is ambiguous without a type annotation
129 | @inlinable
130 | static func create(value: Value) -> Self {
131 | let buffer = Self.create(minimumCapacity: 1) { _ in
| `- error: type of expression is ambiguous without a type annotation
132 | return value
133 | }
/host/spi-builder-workspace/Sources/LoggingLoki/NIOLock.swift:145:14: error: type of expression is ambiguous without a type annotation
143 | @inlinable
144 | func lock() {
145 | self.withUnsafeMutablePointerToElements { lockPtr in
| `- error: type of expression is ambiguous without a type annotation
146 | LockOperations.lock(lockPtr)
147 | }
/host/spi-builder-workspace/Sources/LoggingLoki/NIOLock.swift:152:14: error: type of expression is ambiguous without a type annotation
150 | @inlinable
151 | func unlock() {
152 | self.withUnsafeMutablePointerToElements { lockPtr in
| `- error: type of expression is ambiguous without a type annotation
153 | LockOperations.unlock(lockPtr)
154 | }
/host/spi-builder-workspace/Sources/LoggingLoki/NIOLock.swift:159:14: error: type of expression is ambiguous without a type annotation
157 | @inlinable
158 | deinit {
159 | self.withUnsafeMutablePointerToElements { lockPtr in
| `- error: type of expression is ambiguous without a type annotation
160 | LockOperations.destroy(lockPtr)
161 | }
/host/spi-builder-workspace/Sources/LoggingLoki/NIOLock.swift:166:18: error: type of expression is ambiguous without a type annotation
164 | @inlinable
165 | func withLockPrimitive<T>(_ body: (UnsafeMutablePointer<LockPrimitive>) throws -> T) rethrows -> T {
166 | try self.withUnsafeMutablePointerToElements { lockPtr in
| `- error: type of expression is ambiguous without a type annotation
167 | return try body(lockPtr)
168 | }
/host/spi-builder-workspace/Sources/LoggingLoki/NIOLock.swift:173:18: error: type of expression is ambiguous without a type annotation
171 | @inlinable
172 | func withLockedValue<T>(_ mutate: (inout Value) throws -> T) rethrows -> T {
173 | try self.withUnsafeMutablePointers { valuePtr, lockPtr in
| `- error: type of expression is ambiguous without a type annotation
174 | LockOperations.lock(lockPtr)
175 | defer { LockOperations.unlock(lockPtr) }
[155/164] Compiling LoggingLoki NIOLockedValueBox.swift
/host/spi-builder-workspace/Sources/LoggingLoki/NIOLock.swift:28:8: error: The concurrency NIOLock module was unable to identify your C library.
26 | import Musl
27 | #else
28 | #error("The concurrency NIOLock module was unable to identify your C library.")
| `- error: The concurrency NIOLock module was unable to identify your C library.
29 | #endif
30 |
/host/spi-builder-workspace/Sources/LoggingLoki/NIOLock.swift:36:27: error: cannot find type 'pthread_mutex_t' in scope
34 | #else
35 | @usableFromInline
36 | typealias LockPrimitive = pthread_mutex_t
| `- error: cannot find type 'pthread_mutex_t' in scope
37 | #endif
38 |
/host/spi-builder-workspace/Sources/LoggingLoki/NIOLock.swift:50:20: error: cannot find 'pthread_mutexattr_t' in scope
48 | InitializeSRWLock(mutex)
49 | #else
50 | var attr = pthread_mutexattr_t()
| `- error: cannot find 'pthread_mutexattr_t' in scope
51 | pthread_mutexattr_init(&attr)
52 | debugOnly {
/host/spi-builder-workspace/Sources/LoggingLoki/NIOLock.swift:51:9: error: cannot find 'pthread_mutexattr_init' in scope
49 | #else
50 | var attr = pthread_mutexattr_t()
51 | pthread_mutexattr_init(&attr)
| `- error: cannot find 'pthread_mutexattr_init' in scope
52 | debugOnly {
53 | pthread_mutexattr_settype(&attr, .init(PTHREAD_MUTEX_ERRORCHECK))
/host/spi-builder-workspace/Sources/LoggingLoki/NIOLock.swift:53:13: error: cannot find 'pthread_mutexattr_settype' in scope
51 | pthread_mutexattr_init(&attr)
52 | debugOnly {
53 | pthread_mutexattr_settype(&attr, .init(PTHREAD_MUTEX_ERRORCHECK))
| `- error: cannot find 'pthread_mutexattr_settype' in scope
54 | }
55 |
/host/spi-builder-workspace/Sources/LoggingLoki/NIOLock.swift:53:52: error: cannot find 'PTHREAD_MUTEX_ERRORCHECK' in scope
51 | pthread_mutexattr_init(&attr)
52 | debugOnly {
53 | pthread_mutexattr_settype(&attr, .init(PTHREAD_MUTEX_ERRORCHECK))
| `- error: cannot find 'PTHREAD_MUTEX_ERRORCHECK' in scope
54 | }
55 |
/host/spi-builder-workspace/Sources/LoggingLoki/NIOLock.swift:53:47: error: cannot infer contextual base in reference to member 'init'
51 | pthread_mutexattr_init(&attr)
52 | debugOnly {
53 | pthread_mutexattr_settype(&attr, .init(PTHREAD_MUTEX_ERRORCHECK))
| `- error: cannot infer contextual base in reference to member 'init'
54 | }
55 |
/host/spi-builder-workspace/Sources/LoggingLoki/NIOLock.swift:56:19: error: cannot find 'pthread_mutex_init' in scope
54 | }
55 |
56 | let err = pthread_mutex_init(mutex, &attr)
| `- error: cannot find 'pthread_mutex_init' in scope
57 | precondition(err == 0, "\(#function) failed in pthread_mutex with error \(err)")
58 | #endif
/host/spi-builder-workspace/Sources/LoggingLoki/NIOLock.swift:68:19: error: cannot find 'pthread_mutex_destroy' in scope
66 | // SRWLOCK does not need to be free'd
67 | #else
68 | let err = pthread_mutex_destroy(mutex)
| `- error: cannot find 'pthread_mutex_destroy' in scope
69 | precondition(err == 0, "\(#function) failed in pthread_mutex with error \(err)")
70 | #endif
/host/spi-builder-workspace/Sources/LoggingLoki/NIOLock.swift:80:19: error: cannot find 'pthread_mutex_lock' in scope
78 | AcquireSRWLockExclusive(mutex)
79 | #else
80 | let err = pthread_mutex_lock(mutex)
| `- error: cannot find 'pthread_mutex_lock' in scope
81 | precondition(err == 0, "\(#function) failed in pthread_mutex with error \(err)")
82 | #endif
/host/spi-builder-workspace/Sources/LoggingLoki/NIOLock.swift:92:19: error: cannot find 'pthread_mutex_unlock' in scope
90 | ReleaseSRWLockExclusive(mutex)
91 | #else
92 | let err = pthread_mutex_unlock(mutex)
| `- error: cannot find 'pthread_mutex_unlock' in scope
93 | precondition(err == 0, "\(#function) failed in pthread_mutex with error \(err)")
94 | #endif
/host/spi-builder-workspace/Sources/LoggingLoki/NIOLock.swift:131:27: error: type of expression is ambiguous without a type annotation
129 | @inlinable
130 | static func create(value: Value) -> Self {
131 | let buffer = Self.create(minimumCapacity: 1) { _ in
| `- error: type of expression is ambiguous without a type annotation
132 | return value
133 | }
/host/spi-builder-workspace/Sources/LoggingLoki/NIOLock.swift:145:14: error: type of expression is ambiguous without a type annotation
143 | @inlinable
144 | func lock() {
145 | self.withUnsafeMutablePointerToElements { lockPtr in
| `- error: type of expression is ambiguous without a type annotation
146 | LockOperations.lock(lockPtr)
147 | }
/host/spi-builder-workspace/Sources/LoggingLoki/NIOLock.swift:152:14: error: type of expression is ambiguous without a type annotation
150 | @inlinable
151 | func unlock() {
152 | self.withUnsafeMutablePointerToElements { lockPtr in
| `- error: type of expression is ambiguous without a type annotation
153 | LockOperations.unlock(lockPtr)
154 | }
/host/spi-builder-workspace/Sources/LoggingLoki/NIOLock.swift:159:14: error: type of expression is ambiguous without a type annotation
157 | @inlinable
158 | deinit {
159 | self.withUnsafeMutablePointerToElements { lockPtr in
| `- error: type of expression is ambiguous without a type annotation
160 | LockOperations.destroy(lockPtr)
161 | }
/host/spi-builder-workspace/Sources/LoggingLoki/NIOLock.swift:166:18: error: type of expression is ambiguous without a type annotation
164 | @inlinable
165 | func withLockPrimitive<T>(_ body: (UnsafeMutablePointer<LockPrimitive>) throws -> T) rethrows -> T {
166 | try self.withUnsafeMutablePointerToElements { lockPtr in
| `- error: type of expression is ambiguous without a type annotation
167 | return try body(lockPtr)
168 | }
/host/spi-builder-workspace/Sources/LoggingLoki/NIOLock.swift:173:18: error: type of expression is ambiguous without a type annotation
171 | @inlinable
172 | func withLockedValue<T>(_ mutate: (inout Value) throws -> T) rethrows -> T {
173 | try self.withUnsafeMutablePointers { valuePtr, lockPtr in
| `- error: type of expression is ambiguous without a type annotation
174 | LockOperations.lock(lockPtr)
175 | defer { LockOperations.unlock(lockPtr) }
[156/166] Compiling LoggingLoki timestamp.pb.swift
[157/166] Compiling LoggingLoki TypeAliases.swift
[158/166] Compiling LoggingLoki Batcher.swift
[159/166] Compiling LoggingLoki LokiError.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[160/166] Compiling LoggingLoki Batch.swift
[161/166] Compiling LoggingLoki BatchEntry.swift
[162/166] Emitting module LoggingLoki
/host/spi-builder-workspace/Sources/LoggingLoki/NIOLock.swift:28:8: error: The concurrency NIOLock module was unable to identify your C library.
26 | import Musl
27 | #else
28 | #error("The concurrency NIOLock module was unable to identify your C library.")
| `- error: The concurrency NIOLock module was unable to identify your C library.
29 | #endif
30 |
/host/spi-builder-workspace/Sources/LoggingLoki/NIOLock.swift:36:27: error: cannot find type 'pthread_mutex_t' in scope
34 | #else
35 | @usableFromInline
36 | typealias LockPrimitive = pthread_mutex_t
| `- error: cannot find type 'pthread_mutex_t' in scope
37 | #endif
38 |
/host/spi-builder-workspace/Sources/LoggingLoki/NIOLock.swift:50:20: error: cannot find 'pthread_mutexattr_t' in scope
48 | InitializeSRWLock(mutex)
49 | #else
50 | var attr = pthread_mutexattr_t()
| `- error: cannot find 'pthread_mutexattr_t' in scope
51 | pthread_mutexattr_init(&attr)
52 | debugOnly {
/host/spi-builder-workspace/Sources/LoggingLoki/NIOLock.swift:51:9: error: cannot find 'pthread_mutexattr_init' in scope
49 | #else
50 | var attr = pthread_mutexattr_t()
51 | pthread_mutexattr_init(&attr)
| `- error: cannot find 'pthread_mutexattr_init' in scope
52 | debugOnly {
53 | pthread_mutexattr_settype(&attr, .init(PTHREAD_MUTEX_ERRORCHECK))
/host/spi-builder-workspace/Sources/LoggingLoki/NIOLock.swift:53:13: error: cannot find 'pthread_mutexattr_settype' in scope
51 | pthread_mutexattr_init(&attr)
52 | debugOnly {
53 | pthread_mutexattr_settype(&attr, .init(PTHREAD_MUTEX_ERRORCHECK))
| `- error: cannot find 'pthread_mutexattr_settype' in scope
54 | }
55 |
/host/spi-builder-workspace/Sources/LoggingLoki/NIOLock.swift:53:52: error: cannot find 'PTHREAD_MUTEX_ERRORCHECK' in scope
51 | pthread_mutexattr_init(&attr)
52 | debugOnly {
53 | pthread_mutexattr_settype(&attr, .init(PTHREAD_MUTEX_ERRORCHECK))
| `- error: cannot find 'PTHREAD_MUTEX_ERRORCHECK' in scope
54 | }
55 |
/host/spi-builder-workspace/Sources/LoggingLoki/NIOLock.swift:53:47: error: cannot infer contextual base in reference to member 'init'
51 | pthread_mutexattr_init(&attr)
52 | debugOnly {
53 | pthread_mutexattr_settype(&attr, .init(PTHREAD_MUTEX_ERRORCHECK))
| `- error: cannot infer contextual base in reference to member 'init'
54 | }
55 |
/host/spi-builder-workspace/Sources/LoggingLoki/NIOLock.swift:56:19: error: cannot find 'pthread_mutex_init' in scope
54 | }
55 |
56 | let err = pthread_mutex_init(mutex, &attr)
| `- error: cannot find 'pthread_mutex_init' in scope
57 | precondition(err == 0, "\(#function) failed in pthread_mutex with error \(err)")
58 | #endif
/host/spi-builder-workspace/Sources/LoggingLoki/NIOLock.swift:68:19: error: cannot find 'pthread_mutex_destroy' in scope
66 | // SRWLOCK does not need to be free'd
67 | #else
68 | let err = pthread_mutex_destroy(mutex)
| `- error: cannot find 'pthread_mutex_destroy' in scope
69 | precondition(err == 0, "\(#function) failed in pthread_mutex with error \(err)")
70 | #endif
/host/spi-builder-workspace/Sources/LoggingLoki/NIOLock.swift:80:19: error: cannot find 'pthread_mutex_lock' in scope
78 | AcquireSRWLockExclusive(mutex)
79 | #else
80 | let err = pthread_mutex_lock(mutex)
| `- error: cannot find 'pthread_mutex_lock' in scope
81 | precondition(err == 0, "\(#function) failed in pthread_mutex with error \(err)")
82 | #endif
/host/spi-builder-workspace/Sources/LoggingLoki/NIOLock.swift:92:19: error: cannot find 'pthread_mutex_unlock' in scope
90 | ReleaseSRWLockExclusive(mutex)
91 | #else
92 | let err = pthread_mutex_unlock(mutex)
| `- error: cannot find 'pthread_mutex_unlock' in scope
93 | precondition(err == 0, "\(#function) failed in pthread_mutex with error \(err)")
94 | #endif
/host/spi-builder-workspace/Sources/LoggingLoki/NIOLock.swift:131:27: error: type of expression is ambiguous without a type annotation
129 | @inlinable
130 | static func create(value: Value) -> Self {
131 | let buffer = Self.create(minimumCapacity: 1) { _ in
| `- error: type of expression is ambiguous without a type annotation
132 | return value
133 | }
/host/spi-builder-workspace/Sources/LoggingLoki/NIOLock.swift:145:14: error: type of expression is ambiguous without a type annotation
143 | @inlinable
144 | func lock() {
145 | self.withUnsafeMutablePointerToElements { lockPtr in
| `- error: type of expression is ambiguous without a type annotation
146 | LockOperations.lock(lockPtr)
147 | }
/host/spi-builder-workspace/Sources/LoggingLoki/NIOLock.swift:152:14: error: type of expression is ambiguous without a type annotation
150 | @inlinable
151 | func unlock() {
152 | self.withUnsafeMutablePointerToElements { lockPtr in
| `- error: type of expression is ambiguous without a type annotation
153 | LockOperations.unlock(lockPtr)
154 | }
/host/spi-builder-workspace/Sources/LoggingLoki/NIOLock.swift:159:14: error: type of expression is ambiguous without a type annotation
157 | @inlinable
158 | deinit {
159 | self.withUnsafeMutablePointerToElements { lockPtr in
| `- error: type of expression is ambiguous without a type annotation
160 | LockOperations.destroy(lockPtr)
161 | }
/host/spi-builder-workspace/Sources/LoggingLoki/NIOLock.swift:166:18: error: type of expression is ambiguous without a type annotation
164 | @inlinable
165 | func withLockPrimitive<T>(_ body: (UnsafeMutablePointer<LockPrimitive>) throws -> T) rethrows -> T {
166 | try self.withUnsafeMutablePointerToElements { lockPtr in
| `- error: type of expression is ambiguous without a type annotation
167 | return try body(lockPtr)
168 | }
/host/spi-builder-workspace/Sources/LoggingLoki/NIOLock.swift:173:18: error: type of expression is ambiguous without a type annotation
171 | @inlinable
172 | func withLockedValue<T>(_ mutate: (inout Value) throws -> T) rethrows -> T {
173 | try self.withUnsafeMutablePointers { valuePtr, lockPtr in
| `- error: type of expression is ambiguous without a type annotation
174 | LockOperations.lock(lockPtr)
175 | defer { LockOperations.unlock(lockPtr) }
/host/spi-builder-workspace/Sources/LoggingLoki/Proto/gen/swift/descriptor.pb.swift:2573:16: warning: static property 'defaultInstance' is not concurrency-safe because non-'Sendable' type 'Google_Protobuf_FieldDescriptorProto._StorageClass' may have shared mutable state; this is an error in the Swift 6 language mode
2558 | ]
2559 |
2560 | fileprivate class _StorageClass {
| `- note: class '_StorageClass' does not conform to the 'Sendable' protocol
2561 | var _name: String? = nil
2562 | var _number: Int32? = nil
:
2571 | var _proto3Optional: Bool? = nil
2572 |
2573 | static let defaultInstance = _StorageClass()
| |- warning: static property 'defaultInstance' is not concurrency-safe because non-'Sendable' type 'Google_Protobuf_FieldDescriptorProto._StorageClass' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'defaultInstance' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
2574 |
2575 | private init() {}
/host/spi-builder-workspace/Sources/LoggingLoki/Proto/gen/swift/descriptor.pb.swift:3112:16: warning: static property 'defaultInstance' is not concurrency-safe because non-'Sendable' type 'Google_Protobuf_FileOptions._StorageClass' may have shared mutable state; this is an error in the Swift 6 language mode
3087 | ]
3088 |
3089 | fileprivate class _StorageClass {
| `- note: class '_StorageClass' does not conform to the 'Sendable' protocol
3090 | var _javaPackage: String? = nil
3091 | var _javaOuterClassname: String? = nil
:
3110 | var _uninterpretedOption: [Google_Protobuf_UninterpretedOption] = []
3111 |
3112 | static let defaultInstance = _StorageClass()
| |- warning: static property 'defaultInstance' is not concurrency-safe because non-'Sendable' type 'Google_Protobuf_FileOptions._StorageClass' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'defaultInstance' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
3113 |
3114 | private init() {}
/host/spi-builder-workspace/Sources/LoggingLoki/Proto/gen/swift/logproto.pb.swift:55:14: warning: static property 'allCases' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
53 | extension Logproto_Direction: CaseIterable {
54 | // The compiler won't synthesize support with the UNRECOGNIZED case.
55 | static var allCases: [Logproto_Direction] = [
| |- warning: static property 'allCases' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'allCases' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'allCases' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
56 | .forward,
57 | .backward,
/host/spi-builder-workspace/Sources/LoggingLoki/Proto/gen/swift/stats.pb.swift:190:16: warning: static property 'defaultInstance' is not concurrency-safe because non-'Sendable' type 'Stats_Result._StorageClass' may have shared mutable state; this is an error in the Swift 6 language mode
183 | ]
184 |
185 | fileprivate class _StorageClass {
| `- note: class '_StorageClass' does not conform to the 'Sendable' protocol
186 | var _summary: Stats_Summary? = nil
187 | var _store: Stats_Store? = nil
188 | var _ingester: Stats_Ingester? = nil
189 |
190 | static let defaultInstance = _StorageClass()
| |- warning: static property 'defaultInstance' is not concurrency-safe because non-'Sendable' type 'Stats_Result._StorageClass' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'defaultInstance' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
191 |
192 | private init() {}
[163/166] Compiling LoggingLoki logproto.pb.swift
/host/spi-builder-workspace/Sources/LoggingLoki/Proto/gen/swift/logproto.pb.swift:55:14: warning: static property 'allCases' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
53 | extension Logproto_Direction: CaseIterable {
54 | // The compiler won't synthesize support with the UNRECOGNIZED case.
55 | static var allCases: [Logproto_Direction] = [
| |- warning: static property 'allCases' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'allCases' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'allCases' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
56 | .forward,
57 | .backward,
/host/spi-builder-workspace/Sources/LoggingLoki/Proto/gen/swift/stats.pb.swift:190:16: warning: static property 'defaultInstance' is not concurrency-safe because non-'Sendable' type 'Stats_Result._StorageClass' may have shared mutable state; this is an error in the Swift 6 language mode
183 | ]
184 |
185 | fileprivate class _StorageClass {
| `- note: class '_StorageClass' does not conform to the 'Sendable' protocol
186 | var _summary: Stats_Summary? = nil
187 | var _store: Stats_Store? = nil
188 | var _ingester: Stats_Ingester? = nil
189 |
190 | static let defaultInstance = _StorageClass()
| |- warning: static property 'defaultInstance' is not concurrency-safe because non-'Sendable' type 'Stats_Result._StorageClass' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'defaultInstance' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
191 |
192 | private init() {}
[164/166] Compiling LoggingLoki stats.pb.swift
/host/spi-builder-workspace/Sources/LoggingLoki/Proto/gen/swift/logproto.pb.swift:55:14: warning: static property 'allCases' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
53 | extension Logproto_Direction: CaseIterable {
54 | // The compiler won't synthesize support with the UNRECOGNIZED case.
55 | static var allCases: [Logproto_Direction] = [
| |- warning: static property 'allCases' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'allCases' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'allCases' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
56 | .forward,
57 | .backward,
/host/spi-builder-workspace/Sources/LoggingLoki/Proto/gen/swift/stats.pb.swift:190:16: warning: static property 'defaultInstance' is not concurrency-safe because non-'Sendable' type 'Stats_Result._StorageClass' may have shared mutable state; this is an error in the Swift 6 language mode
183 | ]
184 |
185 | fileprivate class _StorageClass {
| `- note: class '_StorageClass' does not conform to the 'Sendable' protocol
186 | var _summary: Stats_Summary? = nil
187 | var _store: Stats_Store? = nil
188 | var _ingester: Stats_Ingester? = nil
189 |
190 | static let defaultInstance = _StorageClass()
| |- warning: static property 'defaultInstance' is not concurrency-safe because non-'Sendable' type 'Stats_Result._StorageClass' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'defaultInstance' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
191 |
192 | private init() {}
[165/166] Compiling LoggingLoki descriptor.pb.swift
/host/spi-builder-workspace/Sources/LoggingLoki/Proto/gen/swift/descriptor.pb.swift:2573:16: warning: static property 'defaultInstance' is not concurrency-safe because non-'Sendable' type 'Google_Protobuf_FieldDescriptorProto._StorageClass' may have shared mutable state; this is an error in the Swift 6 language mode
2558 | ]
2559 |
2560 | fileprivate class _StorageClass {
| `- note: class '_StorageClass' does not conform to the 'Sendable' protocol
2561 | var _name: String? = nil
2562 | var _number: Int32? = nil
:
2571 | var _proto3Optional: Bool? = nil
2572 |
2573 | static let defaultInstance = _StorageClass()
| |- warning: static property 'defaultInstance' is not concurrency-safe because non-'Sendable' type 'Google_Protobuf_FieldDescriptorProto._StorageClass' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'defaultInstance' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
2574 |
2575 | private init() {}
/host/spi-builder-workspace/Sources/LoggingLoki/Proto/gen/swift/descriptor.pb.swift:3112:16: warning: static property 'defaultInstance' is not concurrency-safe because non-'Sendable' type 'Google_Protobuf_FileOptions._StorageClass' may have shared mutable state; this is an error in the Swift 6 language mode
3087 | ]
3088 |
3089 | fileprivate class _StorageClass {
| `- note: class '_StorageClass' does not conform to the 'Sendable' protocol
3090 | var _javaPackage: String? = nil
3091 | var _javaOuterClassname: String? = nil
:
3110 | var _uninterpretedOption: [Google_Protobuf_UninterpretedOption] = []
3111 |
3112 | static let defaultInstance = _StorageClass()
| |- warning: static property 'defaultInstance' is not concurrency-safe because non-'Sendable' type 'Google_Protobuf_FileOptions._StorageClass' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'defaultInstance' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
3113 |
3114 | private init() {}
[166/166] Compiling LoggingLoki gogo.pb.swift
/host/spi-builder-workspace/Sources/LoggingLoki/Proto/gen/swift/descriptor.pb.swift:2573:16: warning: static property 'defaultInstance' is not concurrency-safe because non-'Sendable' type 'Google_Protobuf_FieldDescriptorProto._StorageClass' may have shared mutable state; this is an error in the Swift 6 language mode
2558 | ]
2559 |
2560 | fileprivate class _StorageClass {
| `- note: class '_StorageClass' does not conform to the 'Sendable' protocol
2561 | var _name: String? = nil
2562 | var _number: Int32? = nil
:
2571 | var _proto3Optional: Bool? = nil
2572 |
2573 | static let defaultInstance = _StorageClass()
| |- warning: static property 'defaultInstance' is not concurrency-safe because non-'Sendable' type 'Google_Protobuf_FieldDescriptorProto._StorageClass' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'defaultInstance' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
2574 |
2575 | private init() {}
/host/spi-builder-workspace/Sources/LoggingLoki/Proto/gen/swift/descriptor.pb.swift:3112:16: warning: static property 'defaultInstance' is not concurrency-safe because non-'Sendable' type 'Google_Protobuf_FileOptions._StorageClass' may have shared mutable state; this is an error in the Swift 6 language mode
3087 | ]
3088 |
3089 | fileprivate class _StorageClass {
| `- note: class '_StorageClass' does not conform to the 'Sendable' protocol
3090 | var _javaPackage: String? = nil
3091 | var _javaOuterClassname: String? = nil
:
3110 | var _uninterpretedOption: [Google_Protobuf_UninterpretedOption] = []
3111 |
3112 | static let defaultInstance = _StorageClass()
| |- warning: static property 'defaultInstance' is not concurrency-safe because non-'Sendable' type 'Google_Protobuf_FileOptions._StorageClass' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'defaultInstance' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
3113 |
3114 | private init() {}
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-0":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:android-6.1-latest swift build --swift-sdk aarch64-unknown-linux-android24 2>&1
android-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:fe1962677657b2408c217cb5cceb3c09bc1d91486e360cebbc6eee461a5945d8
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:android-6.1-latest
warning: 'spi-builder-workspace': found 5 file(s) which are unhandled; explicitly declare them as resources or exclude from the target
/host/spi-builder-workspace/Sources/LoggingLoki/Proto/gogo.proto
/host/spi-builder-workspace/Sources/LoggingLoki/Proto/stats.proto
/host/spi-builder-workspace/Sources/LoggingLoki/Proto/logproto.proto
/host/spi-builder-workspace/Sources/LoggingLoki/Proto/descriptor.proto
/host/spi-builder-workspace/Sources/LoggingLoki/Proto/timestamp.proto
[0/1] Planning build
[1/1] Compiling plugin SwiftProtobufPlugin
[2/2] Compiling plugin Swift-DocC Preview
[3/3] Compiling plugin Swift-DocC
Building for debugging...
[3/4] Write swift-version-24593BA9C3E375BF.txt
[5/120] Compiling Logging MetadataProvider.swift
[6/120] Compiling Logging LogHandler.swift
[7/120] Compiling SwiftProtobuf BinaryDecodingError.swift
[8/120] Compiling SwiftProtobuf BinaryDecodingOptions.swift
[9/120] Compiling SwiftProtobuf BinaryDelimited.swift
[10/120] Compiling SwiftProtobuf BinaryEncoder.swift
[11/123] Emitting module Logging
[12/123] Compiling SwiftProtobuf JSONDecodingError.swift
[13/123] Compiling SwiftProtobuf CustomJSONCodable.swift
[14/123] Compiling SwiftProtobuf Decoder.swift
[15/123] Compiling SwiftProtobuf DoubleParser.swift
[16/123] Emitting module SystemPackage
[17/123] Compiling SwiftProtobuf AnyMessageStorage.swift
[18/123] Compiling SwiftProtobuf AnyUnpackError.swift
[19/123] Compiling SwiftProtobuf AsyncMessageSequence.swift
[20/123] Compiling SwiftProtobuf BinaryDecoder.swift
[21/123] Compiling SwiftProtobuf BinaryEncodingError.swift
[22/123] Compiling SwiftProtobuf BinaryEncodingOptions.swift
[23/123] Compiling SwiftProtobuf BinaryEncodingSizeVisitor.swift
[24/123] Compiling SwiftProtobuf BinaryEncodingVisitor.swift
[25/123] Compiling SwiftProtobuf Google_Protobuf_Struct+Extensions.swift
[26/123] Compiling SwiftProtobuf Google_Protobuf_Timestamp+Extensions.swift
[27/123] Compiling SwiftProtobuf Google_Protobuf_Value+Extensions.swift
[28/123] Compiling SwiftProtobuf Google_Protobuf_Wrappers+Extensions.swift
[29/123] Compiling SwiftProtobuf HashVisitor.swift
[30/123] Compiling SwiftProtobuf Internal.swift
[31/123] Compiling SwiftProtobuf JSONDecoder.swift
[32/123] Compiling SwiftProtobuf Google_Protobuf_Duration+Extensions.swift
[33/123] Compiling SwiftProtobuf Google_Protobuf_FieldMask+Extensions.swift
[34/123] Compiling SwiftProtobuf Google_Protobuf_ListValue+Extensions.swift
[35/123] Compiling SwiftProtobuf Google_Protobuf_NullValue+Extensions.swift
[36/123] Compiling Logging Locks.swift
[37/123] Compiling Logging Logging.swift
[38/124] Compiling SystemPackage Util+StringArray.swift
[39/124] Compiling SystemPackage Util.swift
[40/124] Compiling SystemPackage UtilConsumers.swift
[43/125] Compiling SwiftProtobuf Message+JSONAdditions.swift
[44/125] Compiling SwiftProtobuf Message+JSONAdditions_Data.swift
[45/125] Compiling SwiftProtobuf Message+JSONArrayAdditions.swift
[46/125] Compiling SwiftProtobuf Message+JSONArrayAdditions_Data.swift
[47/125] Compiling SwiftProtobuf Message+TextFormatAdditions.swift
[48/125] Compiling SwiftProtobuf Message.swift
[49/125] Compiling SwiftProtobuf MessageExtension.swift
[50/125] Compiling SwiftProtobuf NameMap.swift
[51/125] Compiling SwiftProtobuf PathDecoder.swift
[52/125] Compiling SwiftProtobuf PathVisitor.swift
[53/125] Compiling SwiftProtobuf ProtoNameProviding.swift
[54/125] Compiling SwiftProtobuf ProtobufAPIVersionCheck.swift
[55/136] Emitting module SwiftProtobuf
[56/138] Emitting module Snappy
[57/138] Compiling Snappy Snappy.swift
[71/139] Compiling SwiftProtobuf JSONDecodingOptions.swift
[72/139] Compiling SwiftProtobuf JSONEncoder.swift
[73/139] Compiling SwiftProtobuf JSONEncodingError.swift
[74/139] Compiling SwiftProtobuf JSONEncodingOptions.swift
[75/139] Compiling SwiftProtobuf JSONEncodingVisitor.swift
[76/139] Compiling SwiftProtobuf JSONMapEncodingVisitor.swift
[77/139] Compiling SwiftProtobuf JSONScanner.swift
[78/139] Compiling SwiftProtobuf MathUtils.swift
[79/139] Compiling SwiftProtobuf Message+AnyAdditions.swift
[80/139] Compiling SwiftProtobuf Message+BinaryAdditions.swift
[81/139] Compiling SwiftProtobuf Message+BinaryAdditions_Data.swift
[82/139] Compiling SwiftProtobuf Message+FieldMask.swift
[89/139] Compiling SwiftProtobuf ExtensionFields.swift
[90/139] Compiling SwiftProtobuf ExtensionMap.swift
[91/139] Compiling SwiftProtobuf FieldTag.swift
[92/139] Compiling SwiftProtobuf FieldTypes.swift
[93/139] Compiling SwiftProtobuf Google_Protobuf_Any+Extensions.swift
[94/139] Compiling SwiftProtobuf Google_Protobuf_Any+Registry.swift
[95/139] Compiling SwiftProtobuf TextFormatEncodingVisitor.swift
[96/139] Compiling SwiftProtobuf TextFormatScanner.swift
[97/139] Compiling SwiftProtobuf TimeUtils.swift
[98/139] Compiling SwiftProtobuf UnknownStorage.swift
[99/139] Compiling SwiftProtobuf UnsafeRawPointer+Shims.swift
[100/139] Compiling SwiftProtobuf Varint.swift
[101/139] Compiling SwiftProtobuf Version.swift
[102/139] Compiling SwiftProtobuf Visitor.swift
[103/139] Compiling SwiftProtobuf WireFormat.swift
[104/139] Compiling SwiftProtobuf ZigZag.swift
[105/139] Compiling SwiftProtobuf any.pb.swift
[106/139] Compiling SwiftProtobuf ProtobufMap.swift
[107/139] Compiling SwiftProtobuf SelectiveVisitor.swift
[108/139] Compiling SwiftProtobuf SimpleExtensionMap.swift
[109/139] Compiling SwiftProtobuf StringUtils.swift
[110/139] Compiling SwiftProtobuf SwiftProtobufContiguousBytes.swift
[111/139] Compiling SwiftProtobuf SwiftProtobufError.swift
[112/139] Compiling SwiftProtobuf TextFormatDecoder.swift
[113/139] Compiling SwiftProtobuf TextFormatDecodingError.swift
[114/139] Compiling SwiftProtobuf TextFormatDecodingOptions.swift
[115/139] Compiling SwiftProtobuf TextFormatEncoder.swift
[116/139] Compiling SwiftProtobuf TextFormatEncodingOptions.swift
[129/139] Compiling SwiftProtobuf api.pb.swift
[130/139] Compiling SwiftProtobuf descriptor.pb.swift
[131/139] Compiling SwiftProtobuf duration.pb.swift
[132/139] Compiling SwiftProtobuf empty.pb.swift
[133/139] Compiling SwiftProtobuf field_mask.pb.swift
[134/139] Compiling SwiftProtobuf source_context.pb.swift
[135/139] Compiling SwiftProtobuf struct.pb.swift
[136/139] Compiling SwiftProtobuf timestamp.pb.swift
[137/139] Compiling SwiftProtobuf type.pb.swift
[138/139] Compiling SwiftProtobuf wrappers.pb.swift
[139/139] Compiling SwiftProtobuf resource_bundle_accessor.swift
[141/155] Compiling LoggingLoki NIOLock.swift
/host/spi-builder-workspace/Sources/LoggingLoki/NIOLock.swift:28:8: error: The concurrency NIOLock module was unable to identify your C library.
26 | import Musl
27 | #else
28 | #error("The concurrency NIOLock module was unable to identify your C library.")
| `- error: The concurrency NIOLock module was unable to identify your C library.
29 | #endif
30 |
/host/spi-builder-workspace/Sources/LoggingLoki/NIOLock.swift:36:27: error: cannot find type 'pthread_mutex_t' in scope
34 | #else
35 | @usableFromInline
36 | typealias LockPrimitive = pthread_mutex_t
| `- error: cannot find type 'pthread_mutex_t' in scope
37 | #endif
38 |
/host/spi-builder-workspace/Sources/LoggingLoki/NIOLock.swift:50:20: error: cannot find 'pthread_mutexattr_t' in scope
48 | InitializeSRWLock(mutex)
49 | #else
50 | var attr = pthread_mutexattr_t()
| `- error: cannot find 'pthread_mutexattr_t' in scope
51 | pthread_mutexattr_init(&attr)
52 | debugOnly {
/host/spi-builder-workspace/Sources/LoggingLoki/NIOLock.swift:51:9: error: cannot find 'pthread_mutexattr_init' in scope
49 | #else
50 | var attr = pthread_mutexattr_t()
51 | pthread_mutexattr_init(&attr)
| `- error: cannot find 'pthread_mutexattr_init' in scope
52 | debugOnly {
53 | pthread_mutexattr_settype(&attr, .init(PTHREAD_MUTEX_ERRORCHECK))
/host/spi-builder-workspace/Sources/LoggingLoki/NIOLock.swift:53:13: error: cannot find 'pthread_mutexattr_settype' in scope
51 | pthread_mutexattr_init(&attr)
52 | debugOnly {
53 | pthread_mutexattr_settype(&attr, .init(PTHREAD_MUTEX_ERRORCHECK))
| `- error: cannot find 'pthread_mutexattr_settype' in scope
54 | }
55 |
/host/spi-builder-workspace/Sources/LoggingLoki/NIOLock.swift:53:52: error: cannot find 'PTHREAD_MUTEX_ERRORCHECK' in scope
51 | pthread_mutexattr_init(&attr)
52 | debugOnly {
53 | pthread_mutexattr_settype(&attr, .init(PTHREAD_MUTEX_ERRORCHECK))
| `- error: cannot find 'PTHREAD_MUTEX_ERRORCHECK' in scope
54 | }
55 |
/host/spi-builder-workspace/Sources/LoggingLoki/NIOLock.swift:53:47: error: cannot infer contextual base in reference to member 'init'
51 | pthread_mutexattr_init(&attr)
52 | debugOnly {
53 | pthread_mutexattr_settype(&attr, .init(PTHREAD_MUTEX_ERRORCHECK))
| `- error: cannot infer contextual base in reference to member 'init'
54 | }
55 |
/host/spi-builder-workspace/Sources/LoggingLoki/NIOLock.swift:56:19: error: cannot find 'pthread_mutex_init' in scope
54 | }
55 |
56 | let err = pthread_mutex_init(mutex, &attr)
| `- error: cannot find 'pthread_mutex_init' in scope
57 | precondition(err == 0, "\(#function) failed in pthread_mutex with error \(err)")
58 | #endif
/host/spi-builder-workspace/Sources/LoggingLoki/NIOLock.swift:68:19: error: cannot find 'pthread_mutex_destroy' in scope
66 | // SRWLOCK does not need to be free'd
67 | #else
68 | let err = pthread_mutex_destroy(mutex)
| `- error: cannot find 'pthread_mutex_destroy' in scope
69 | precondition(err == 0, "\(#function) failed in pthread_mutex with error \(err)")
70 | #endif
/host/spi-builder-workspace/Sources/LoggingLoki/NIOLock.swift:80:19: error: cannot find 'pthread_mutex_lock' in scope
78 | AcquireSRWLockExclusive(mutex)
79 | #else
80 | let err = pthread_mutex_lock(mutex)
| `- error: cannot find 'pthread_mutex_lock' in scope
81 | precondition(err == 0, "\(#function) failed in pthread_mutex with error \(err)")
82 | #endif
/host/spi-builder-workspace/Sources/LoggingLoki/NIOLock.swift:92:19: error: cannot find 'pthread_mutex_unlock' in scope
90 | ReleaseSRWLockExclusive(mutex)
91 | #else
92 | let err = pthread_mutex_unlock(mutex)
| `- error: cannot find 'pthread_mutex_unlock' in scope
93 | precondition(err == 0, "\(#function) failed in pthread_mutex with error \(err)")
94 | #endif
/host/spi-builder-workspace/Sources/LoggingLoki/NIOLock.swift:131:27: error: type of expression is ambiguous without a type annotation
129 | @inlinable
130 | static func create(value: Value) -> Self {
131 | let buffer = Self.create(minimumCapacity: 1) { _ in
| `- error: type of expression is ambiguous without a type annotation
132 | return value
133 | }
/host/spi-builder-workspace/Sources/LoggingLoki/NIOLock.swift:145:14: error: type of expression is ambiguous without a type annotation
143 | @inlinable
144 | func lock() {
145 | self.withUnsafeMutablePointerToElements { lockPtr in
| `- error: type of expression is ambiguous without a type annotation
146 | LockOperations.lock(lockPtr)
147 | }
/host/spi-builder-workspace/Sources/LoggingLoki/NIOLock.swift:152:14: error: type of expression is ambiguous without a type annotation
150 | @inlinable
151 | func unlock() {
152 | self.withUnsafeMutablePointerToElements { lockPtr in
| `- error: type of expression is ambiguous without a type annotation
153 | LockOperations.unlock(lockPtr)
154 | }
/host/spi-builder-workspace/Sources/LoggingLoki/NIOLock.swift:159:14: error: type of expression is ambiguous without a type annotation
157 | @inlinable
158 | deinit {
159 | self.withUnsafeMutablePointerToElements { lockPtr in
| `- error: type of expression is ambiguous without a type annotation
160 | LockOperations.destroy(lockPtr)
161 | }
/host/spi-builder-workspace/Sources/LoggingLoki/NIOLock.swift:166:18: error: type of expression is ambiguous without a type annotation
164 | @inlinable
165 | func withLockPrimitive<T>(_ body: (UnsafeMutablePointer<LockPrimitive>) throws -> T) rethrows -> T {
166 | try self.withUnsafeMutablePointerToElements { lockPtr in
| `- error: type of expression is ambiguous without a type annotation
167 | return try body(lockPtr)
168 | }
/host/spi-builder-workspace/Sources/LoggingLoki/NIOLock.swift:173:18: error: type of expression is ambiguous without a type annotation
171 | @inlinable
172 | func withLockedValue<T>(_ mutate: (inout Value) throws -> T) rethrows -> T {
173 | try self.withUnsafeMutablePointers { valuePtr, lockPtr in
| `- error: type of expression is ambiguous without a type annotation
174 | LockOperations.lock(lockPtr)
175 | defer { LockOperations.unlock(lockPtr) }
[142/155] Compiling LoggingLoki NIOLockedValueBox.swift
/host/spi-builder-workspace/Sources/LoggingLoki/NIOLock.swift:28:8: error: The concurrency NIOLock module was unable to identify your C library.
26 | import Musl
27 | #else
28 | #error("The concurrency NIOLock module was unable to identify your C library.")
| `- error: The concurrency NIOLock module was unable to identify your C library.
29 | #endif
30 |
/host/spi-builder-workspace/Sources/LoggingLoki/NIOLock.swift:36:27: error: cannot find type 'pthread_mutex_t' in scope
34 | #else
35 | @usableFromInline
36 | typealias LockPrimitive = pthread_mutex_t
| `- error: cannot find type 'pthread_mutex_t' in scope
37 | #endif
38 |
/host/spi-builder-workspace/Sources/LoggingLoki/NIOLock.swift:50:20: error: cannot find 'pthread_mutexattr_t' in scope
48 | InitializeSRWLock(mutex)
49 | #else
50 | var attr = pthread_mutexattr_t()
| `- error: cannot find 'pthread_mutexattr_t' in scope
51 | pthread_mutexattr_init(&attr)
52 | debugOnly {
/host/spi-builder-workspace/Sources/LoggingLoki/NIOLock.swift:51:9: error: cannot find 'pthread_mutexattr_init' in scope
49 | #else
50 | var attr = pthread_mutexattr_t()
51 | pthread_mutexattr_init(&attr)
| `- error: cannot find 'pthread_mutexattr_init' in scope
52 | debugOnly {
53 | pthread_mutexattr_settype(&attr, .init(PTHREAD_MUTEX_ERRORCHECK))
/host/spi-builder-workspace/Sources/LoggingLoki/NIOLock.swift:53:13: error: cannot find 'pthread_mutexattr_settype' in scope
51 | pthread_mutexattr_init(&attr)
52 | debugOnly {
53 | pthread_mutexattr_settype(&attr, .init(PTHREAD_MUTEX_ERRORCHECK))
| `- error: cannot find 'pthread_mutexattr_settype' in scope
54 | }
55 |
/host/spi-builder-workspace/Sources/LoggingLoki/NIOLock.swift:53:52: error: cannot find 'PTHREAD_MUTEX_ERRORCHECK' in scope
51 | pthread_mutexattr_init(&attr)
52 | debugOnly {
53 | pthread_mutexattr_settype(&attr, .init(PTHREAD_MUTEX_ERRORCHECK))
| `- error: cannot find 'PTHREAD_MUTEX_ERRORCHECK' in scope
54 | }
55 |
/host/spi-builder-workspace/Sources/LoggingLoki/NIOLock.swift:53:47: error: cannot infer contextual base in reference to member 'init'
51 | pthread_mutexattr_init(&attr)
52 | debugOnly {
53 | pthread_mutexattr_settype(&attr, .init(PTHREAD_MUTEX_ERRORCHECK))
| `- error: cannot infer contextual base in reference to member 'init'
54 | }
55 |
/host/spi-builder-workspace/Sources/LoggingLoki/NIOLock.swift:56:19: error: cannot find 'pthread_mutex_init' in scope
54 | }
55 |
56 | let err = pthread_mutex_init(mutex, &attr)
| `- error: cannot find 'pthread_mutex_init' in scope
57 | precondition(err == 0, "\(#function) failed in pthread_mutex with error \(err)")
58 | #endif
/host/spi-builder-workspace/Sources/LoggingLoki/NIOLock.swift:68:19: error: cannot find 'pthread_mutex_destroy' in scope
66 | // SRWLOCK does not need to be free'd
67 | #else
68 | let err = pthread_mutex_destroy(mutex)
| `- error: cannot find 'pthread_mutex_destroy' in scope
69 | precondition(err == 0, "\(#function) failed in pthread_mutex with error \(err)")
70 | #endif
/host/spi-builder-workspace/Sources/LoggingLoki/NIOLock.swift:80:19: error: cannot find 'pthread_mutex_lock' in scope
78 | AcquireSRWLockExclusive(mutex)
79 | #else
80 | let err = pthread_mutex_lock(mutex)
| `- error: cannot find 'pthread_mutex_lock' in scope
81 | precondition(err == 0, "\(#function) failed in pthread_mutex with error \(err)")
82 | #endif
/host/spi-builder-workspace/Sources/LoggingLoki/NIOLock.swift:92:19: error: cannot find 'pthread_mutex_unlock' in scope
90 | ReleaseSRWLockExclusive(mutex)
91 | #else
92 | let err = pthread_mutex_unlock(mutex)
| `- error: cannot find 'pthread_mutex_unlock' in scope
93 | precondition(err == 0, "\(#function) failed in pthread_mutex with error \(err)")
94 | #endif
/host/spi-builder-workspace/Sources/LoggingLoki/NIOLock.swift:131:27: error: type of expression is ambiguous without a type annotation
129 | @inlinable
130 | static func create(value: Value) -> Self {
131 | let buffer = Self.create(minimumCapacity: 1) { _ in
| `- error: type of expression is ambiguous without a type annotation
132 | return value
133 | }
/host/spi-builder-workspace/Sources/LoggingLoki/NIOLock.swift:145:14: error: type of expression is ambiguous without a type annotation
143 | @inlinable
144 | func lock() {
145 | self.withUnsafeMutablePointerToElements { lockPtr in
| `- error: type of expression is ambiguous without a type annotation
146 | LockOperations.lock(lockPtr)
147 | }
/host/spi-builder-workspace/Sources/LoggingLoki/NIOLock.swift:152:14: error: type of expression is ambiguous without a type annotation
150 | @inlinable
151 | func unlock() {
152 | self.withUnsafeMutablePointerToElements { lockPtr in
| `- error: type of expression is ambiguous without a type annotation
153 | LockOperations.unlock(lockPtr)
154 | }
/host/spi-builder-workspace/Sources/LoggingLoki/NIOLock.swift:159:14: error: type of expression is ambiguous without a type annotation
157 | @inlinable
158 | deinit {
159 | self.withUnsafeMutablePointerToElements { lockPtr in
| `- error: type of expression is ambiguous without a type annotation
160 | LockOperations.destroy(lockPtr)
161 | }
/host/spi-builder-workspace/Sources/LoggingLoki/NIOLock.swift:166:18: error: type of expression is ambiguous without a type annotation
164 | @inlinable
165 | func withLockPrimitive<T>(_ body: (UnsafeMutablePointer<LockPrimitive>) throws -> T) rethrows -> T {
166 | try self.withUnsafeMutablePointerToElements { lockPtr in
| `- error: type of expression is ambiguous without a type annotation
167 | return try body(lockPtr)
168 | }
/host/spi-builder-workspace/Sources/LoggingLoki/NIOLock.swift:173:18: error: type of expression is ambiguous without a type annotation
171 | @inlinable
172 | func withLockedValue<T>(_ mutate: (inout Value) throws -> T) rethrows -> T {
173 | try self.withUnsafeMutablePointers { valuePtr, lockPtr in
| `- error: type of expression is ambiguous without a type annotation
174 | LockOperations.lock(lockPtr)
175 | defer { LockOperations.unlock(lockPtr) }
[143/157] Compiling LoggingLoki Batcher.swift
[144/157] Compiling LoggingLoki LokiError.swift
[145/157] Compiling LoggingLoki LokiLogHandler.swift
[146/157] Compiling LoggingLoki LokiRequest.swift
[147/157] Compiling LoggingLoki LokiSession.swift
[148/157] Compiling LoggingLoki LokiStream.swift
[149/157] Compiling LoggingLoki timestamp.pb.swift
[150/157] Compiling LoggingLoki TypeAliases.swift
[151/157] Compiling LoggingLoki Batch.swift
[152/157] Compiling LoggingLoki BatchEntry.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[153/157] Emitting module LoggingLoki
/host/spi-builder-workspace/Sources/LoggingLoki/NIOLock.swift:28:8: error: The concurrency NIOLock module was unable to identify your C library.
26 | import Musl
27 | #else
28 | #error("The concurrency NIOLock module was unable to identify your C library.")
| `- error: The concurrency NIOLock module was unable to identify your C library.
29 | #endif
30 |
/host/spi-builder-workspace/Sources/LoggingLoki/NIOLock.swift:36:27: error: cannot find type 'pthread_mutex_t' in scope
34 | #else
35 | @usableFromInline
36 | typealias LockPrimitive = pthread_mutex_t
| `- error: cannot find type 'pthread_mutex_t' in scope
37 | #endif
38 |
/host/spi-builder-workspace/Sources/LoggingLoki/NIOLock.swift:50:20: error: cannot find 'pthread_mutexattr_t' in scope
48 | InitializeSRWLock(mutex)
49 | #else
50 | var attr = pthread_mutexattr_t()
| `- error: cannot find 'pthread_mutexattr_t' in scope
51 | pthread_mutexattr_init(&attr)
52 | debugOnly {
/host/spi-builder-workspace/Sources/LoggingLoki/NIOLock.swift:51:9: error: cannot find 'pthread_mutexattr_init' in scope
49 | #else
50 | var attr = pthread_mutexattr_t()
51 | pthread_mutexattr_init(&attr)
| `- error: cannot find 'pthread_mutexattr_init' in scope
52 | debugOnly {
53 | pthread_mutexattr_settype(&attr, .init(PTHREAD_MUTEX_ERRORCHECK))
/host/spi-builder-workspace/Sources/LoggingLoki/NIOLock.swift:53:13: error: cannot find 'pthread_mutexattr_settype' in scope
51 | pthread_mutexattr_init(&attr)
52 | debugOnly {
53 | pthread_mutexattr_settype(&attr, .init(PTHREAD_MUTEX_ERRORCHECK))
| `- error: cannot find 'pthread_mutexattr_settype' in scope
54 | }
55 |
/host/spi-builder-workspace/Sources/LoggingLoki/NIOLock.swift:53:52: error: cannot find 'PTHREAD_MUTEX_ERRORCHECK' in scope
51 | pthread_mutexattr_init(&attr)
52 | debugOnly {
53 | pthread_mutexattr_settype(&attr, .init(PTHREAD_MUTEX_ERRORCHECK))
| `- error: cannot find 'PTHREAD_MUTEX_ERRORCHECK' in scope
54 | }
55 |
/host/spi-builder-workspace/Sources/LoggingLoki/NIOLock.swift:53:47: error: cannot infer contextual base in reference to member 'init'
51 | pthread_mutexattr_init(&attr)
52 | debugOnly {
53 | pthread_mutexattr_settype(&attr, .init(PTHREAD_MUTEX_ERRORCHECK))
| `- error: cannot infer contextual base in reference to member 'init'
54 | }
55 |
/host/spi-builder-workspace/Sources/LoggingLoki/NIOLock.swift:56:19: error: cannot find 'pthread_mutex_init' in scope
54 | }
55 |
56 | let err = pthread_mutex_init(mutex, &attr)
| `- error: cannot find 'pthread_mutex_init' in scope
57 | precondition(err == 0, "\(#function) failed in pthread_mutex with error \(err)")
58 | #endif
/host/spi-builder-workspace/Sources/LoggingLoki/NIOLock.swift:68:19: error: cannot find 'pthread_mutex_destroy' in scope
66 | // SRWLOCK does not need to be free'd
67 | #else
68 | let err = pthread_mutex_destroy(mutex)
| `- error: cannot find 'pthread_mutex_destroy' in scope
69 | precondition(err == 0, "\(#function) failed in pthread_mutex with error \(err)")
70 | #endif
/host/spi-builder-workspace/Sources/LoggingLoki/NIOLock.swift:80:19: error: cannot find 'pthread_mutex_lock' in scope
78 | AcquireSRWLockExclusive(mutex)
79 | #else
80 | let err = pthread_mutex_lock(mutex)
| `- error: cannot find 'pthread_mutex_lock' in scope
81 | precondition(err == 0, "\(#function) failed in pthread_mutex with error \(err)")
82 | #endif
/host/spi-builder-workspace/Sources/LoggingLoki/NIOLock.swift:92:19: error: cannot find 'pthread_mutex_unlock' in scope
90 | ReleaseSRWLockExclusive(mutex)
91 | #else
92 | let err = pthread_mutex_unlock(mutex)
| `- error: cannot find 'pthread_mutex_unlock' in scope
93 | precondition(err == 0, "\(#function) failed in pthread_mutex with error \(err)")
94 | #endif
/host/spi-builder-workspace/Sources/LoggingLoki/NIOLock.swift:131:27: error: type of expression is ambiguous without a type annotation
129 | @inlinable
130 | static func create(value: Value) -> Self {
131 | let buffer = Self.create(minimumCapacity: 1) { _ in
| `- error: type of expression is ambiguous without a type annotation
132 | return value
133 | }
/host/spi-builder-workspace/Sources/LoggingLoki/NIOLock.swift:145:14: error: type of expression is ambiguous without a type annotation
143 | @inlinable
144 | func lock() {
145 | self.withUnsafeMutablePointerToElements { lockPtr in
| `- error: type of expression is ambiguous without a type annotation
146 | LockOperations.lock(lockPtr)
147 | }
/host/spi-builder-workspace/Sources/LoggingLoki/NIOLock.swift:152:14: error: type of expression is ambiguous without a type annotation
150 | @inlinable
151 | func unlock() {
152 | self.withUnsafeMutablePointerToElements { lockPtr in
| `- error: type of expression is ambiguous without a type annotation
153 | LockOperations.unlock(lockPtr)
154 | }
/host/spi-builder-workspace/Sources/LoggingLoki/NIOLock.swift:159:14: error: type of expression is ambiguous without a type annotation
157 | @inlinable
158 | deinit {
159 | self.withUnsafeMutablePointerToElements { lockPtr in
| `- error: type of expression is ambiguous without a type annotation
160 | LockOperations.destroy(lockPtr)
161 | }
/host/spi-builder-workspace/Sources/LoggingLoki/NIOLock.swift:166:18: error: type of expression is ambiguous without a type annotation
164 | @inlinable
165 | func withLockPrimitive<T>(_ body: (UnsafeMutablePointer<LockPrimitive>) throws -> T) rethrows -> T {
166 | try self.withUnsafeMutablePointerToElements { lockPtr in
| `- error: type of expression is ambiguous without a type annotation
167 | return try body(lockPtr)
168 | }
/host/spi-builder-workspace/Sources/LoggingLoki/NIOLock.swift:173:18: error: type of expression is ambiguous without a type annotation
171 | @inlinable
172 | func withLockedValue<T>(_ mutate: (inout Value) throws -> T) rethrows -> T {
173 | try self.withUnsafeMutablePointers { valuePtr, lockPtr in
| `- error: type of expression is ambiguous without a type annotation
174 | LockOperations.lock(lockPtr)
175 | defer { LockOperations.unlock(lockPtr) }
[154/157] Compiling LoggingLoki logproto.pb.swift
[155/157] Compiling LoggingLoki stats.pb.swift
[156/157] Compiling LoggingLoki descriptor.pb.swift
[157/157] Compiling LoggingLoki gogo.pb.swift
BUILD FAILURE 6.1 android