Build Information
Failed to build NyaruDB2, reference main (320682
), with Swift 6.2 (beta) for Android on 23 Jun 2025 21:20:32 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4606859-2":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:android-6.2-latest swift build --swift-sdk aarch64-unknown-linux-android28 2>&1
Build Log
========================================
RunAll
========================================
Builder version: 4.64.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/galileostudio/nyarudb2.git
Reference: main
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/galileostudio/nyarudb2
* branch main -> FETCH_HEAD
* [new branch] main -> origin/main
HEAD is now at 3206824 Merge pull request #4 from sciasxp/persistency_lifecycle
Cloned https://github.com/galileostudio/nyarudb2.git
Revision (git rev-parse @):
3206824a00ae9b63e78bce5ec0a2b7cf1d9014a1
SUCCESS checkout https://github.com/galileostudio/nyarudb2.git at main
========================================
Build
========================================
Selected platform: android
Swift version: 6.2
Building package at path: $PWD
https://github.com/galileostudio/nyarudb2.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-2":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:android-6.2-latest swift build --swift-sdk aarch64-unknown-linux-android28 2>&1
android-6.2-latest: Pulling from finestructure/spi-images
Digest: sha256:b7c4a6b4153ff40ef9277e2157e708f835b8eb011095d53bd8db4594eb2b7798
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:android-6.2-latest
Building for debugging...
[0/11] Write sources
[3/11] Write swift-version-8C5A4AE7A8CE2BA.txt
[5/25] Compiling NyaruDB2 DynamicDecoder.swift
[6/25] Compiling NyaruDB2 FileProtection.swift
[7/26] Compiling NyaruDB2 NyaruDB2.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[8/26] Compiling NyaruDB2 ShardManager.swift
[9/26] Compiling NyaruDB2 StatsEngine.swift
[10/26] Compiling NyaruDB2 QueryEngine.swift
/host/spi-builder-workspace/Sources/NyaruDB2/Core/QueryEngine/QueryEngine.swift:130:25: warning: capture of non-sendable type 'T.Type' in an isolated closure; this is an error in the Swift 6 language mode
128 | for value in values {
129 | group.addTask {
130 | try await self.storage.fetchFromIndex(
| `- warning: capture of non-sendable type 'T.Type' in an isolated closure; this is an error in the Swift 6 language mode
131 | collection: self.collection,
132 | field: indexField,
/host/spi-builder-workspace/Sources/NyaruDB2/Core/QueryEngine/QueryEngine.swift:112:18: warning: capture of non-sendable type 'T.Type' in an isolated closure; this is an error in the Swift 6 language mode
110 | /// - Throws: An error if the execution of the query fails.
111 | /// - Note: This method is asynchronous and must be called with `await`.
112 | private func executeIndexOnly(plan: ExecutionPlan) async throws -> [T] {
| `- warning: capture of non-sendable type 'T.Type' in an isolated closure; this is an error in the Swift 6 language mode
113 |
114 | guard let indexField = plan.usedIndex else { return [] }
/host/spi-builder-workspace/Sources/NyaruDB2/Core/QueryEngine/QueryEngine.swift:165:41: warning: capture of non-sendable type 'T.Type' in an isolated closure; this is an error in the Swift 6 language mode
163 | for shard in shards {
164 | group.addTask {
165 | let docs: [T] = try await shard.loadDocuments()
| `- warning: capture of non-sendable type 'T.Type' in an isolated closure; this is an error in the Swift 6 language mode
166 |
167 | return docs.filter { self.evaluateDocument($0) }
/host/spi-builder-workspace/Sources/NyaruDB2/Core/QueryEngine/QueryEngine.swift:151:18: warning: capture of non-sendable type 'T.Type' in an isolated closure; this is an error in the Swift 6 language mode
149 | /// - Throws: An error if the execution fails.
150 | /// - Note: This method is asynchronous and must be called with `await`.
151 | private func executeHybrid(plan: ExecutionPlan) async throws -> [T] {
| `- warning: capture of non-sendable type 'T.Type' in an isolated closure; this is an error in the Swift 6 language mode
152 |
153 | let allShards = try await storage.getShardManagers(for: collection)
/host/spi-builder-workspace/Sources/NyaruDB2/Core/QueryEngine/QueryEngine.swift:353:30: warning: capture of non-sendable type 'T.Type' in an isolated closure; this is an error in the Swift 6 language mode
351 | // Obtém os shards da coleção
352 | let shards = try await storage.getShardManagers(
353 | for: collection
| `- warning: capture of non-sendable type 'T.Type' in an isolated closure; this is an error in the Swift 6 language mode
354 | )
355 | // Itera sobre os shards
/host/spi-builder-workspace/Sources/NyaruDB2/Core/QueryEngine/QueryEngine.swift:347:17: warning: capture of non-sendable type 'T.Type' in an isolated closure; this is an error in the Swift 6 language mode
345 | /// - Returns: An `AsyncThrowingStream` of type `T` that can throw an error during iteration.
346 | /// - Throws: An error if the stream encounters an issue during fetching.
347 | public func fetchStream(from storage: StorageEngine) -> AsyncThrowingStream<T, Error> {
| `- warning: capture of non-sendable type 'T.Type' in an isolated closure; this is an error in the Swift 6 language mode
348 | AsyncThrowingStream { continuation in
349 | Task {
[11/26] Compiling NyaruDB2 QueryPlanner.swift
/host/spi-builder-workspace/Sources/NyaruDB2/Core/QueryEngine/QueryEngine.swift:130:25: warning: capture of non-sendable type 'T.Type' in an isolated closure; this is an error in the Swift 6 language mode
128 | for value in values {
129 | group.addTask {
130 | try await self.storage.fetchFromIndex(
| `- warning: capture of non-sendable type 'T.Type' in an isolated closure; this is an error in the Swift 6 language mode
131 | collection: self.collection,
132 | field: indexField,
/host/spi-builder-workspace/Sources/NyaruDB2/Core/QueryEngine/QueryEngine.swift:112:18: warning: capture of non-sendable type 'T.Type' in an isolated closure; this is an error in the Swift 6 language mode
110 | /// - Throws: An error if the execution of the query fails.
111 | /// - Note: This method is asynchronous and must be called with `await`.
112 | private func executeIndexOnly(plan: ExecutionPlan) async throws -> [T] {
| `- warning: capture of non-sendable type 'T.Type' in an isolated closure; this is an error in the Swift 6 language mode
113 |
114 | guard let indexField = plan.usedIndex else { return [] }
/host/spi-builder-workspace/Sources/NyaruDB2/Core/QueryEngine/QueryEngine.swift:165:41: warning: capture of non-sendable type 'T.Type' in an isolated closure; this is an error in the Swift 6 language mode
163 | for shard in shards {
164 | group.addTask {
165 | let docs: [T] = try await shard.loadDocuments()
| `- warning: capture of non-sendable type 'T.Type' in an isolated closure; this is an error in the Swift 6 language mode
166 |
167 | return docs.filter { self.evaluateDocument($0) }
/host/spi-builder-workspace/Sources/NyaruDB2/Core/QueryEngine/QueryEngine.swift:151:18: warning: capture of non-sendable type 'T.Type' in an isolated closure; this is an error in the Swift 6 language mode
149 | /// - Throws: An error if the execution fails.
150 | /// - Note: This method is asynchronous and must be called with `await`.
151 | private func executeHybrid(plan: ExecutionPlan) async throws -> [T] {
| `- warning: capture of non-sendable type 'T.Type' in an isolated closure; this is an error in the Swift 6 language mode
152 |
153 | let allShards = try await storage.getShardManagers(for: collection)
/host/spi-builder-workspace/Sources/NyaruDB2/Core/QueryEngine/QueryEngine.swift:353:30: warning: capture of non-sendable type 'T.Type' in an isolated closure; this is an error in the Swift 6 language mode
351 | // Obtém os shards da coleção
352 | let shards = try await storage.getShardManagers(
353 | for: collection
| `- warning: capture of non-sendable type 'T.Type' in an isolated closure; this is an error in the Swift 6 language mode
354 | )
355 | // Itera sobre os shards
/host/spi-builder-workspace/Sources/NyaruDB2/Core/QueryEngine/QueryEngine.swift:347:17: warning: capture of non-sendable type 'T.Type' in an isolated closure; this is an error in the Swift 6 language mode
345 | /// - Returns: An `AsyncThrowingStream` of type `T` that can throw an error during iteration.
346 | /// - Throws: An error if the stream encounters an issue during fetching.
347 | public func fetchStream(from storage: StorageEngine) -> AsyncThrowingStream<T, Error> {
| `- warning: capture of non-sendable type 'T.Type' in an isolated closure; this is an error in the Swift 6 language mode
348 | AsyncThrowingStream { continuation in
349 | Task {
[12/26] Compiling NyaruDB2 CollectionCatalog.swift
[13/26] Compiling NyaruDB2 DocumentCollection.swift
[14/26] Compiling NyaruDB2 BTreeIndex.swift
/host/spi-builder-workspace/Sources/NyaruDB2/Core/IndexManager/BTreeIndex.swift:288:44: warning: capture of non-sendable type 'Key.Type' in an isolated closure; this is an error in the Swift 6 language mode
286 | // Encode the tree (here we encode the root which is recursive)
287 | let encoder = JSONEncoder()
288 | let data = try encoder.encode(currentRoot)
| `- warning: capture of non-sendable type 'Key.Type' in an isolated closure; this is an error in the Swift 6 language mode
289 |
290 | // Optionally, compress the data before writing.
/host/spi-builder-workspace/Sources/NyaruDB2/Core/IndexManager/BTreeIndex.swift:282:13: warning: capture of non-sendable type 'Key.Type' in an isolated closure; this is an error in the Swift 6 language mode
280 | /// storage space available for the operation to complete successfully.
281 | public func persist(to url: URL) async throws {
282 | let currentRoot = self.root
| `- warning: capture of non-sendable type 'Key.Type' in an isolated closure; this is an error in the Swift 6 language mode
283 | try await withCheckedThrowingContinuation { continuation in
284 | serializationQueue.async {
[15/26] Compiling NyaruDB2 IndexManager.swift
/host/spi-builder-workspace/Sources/NyaruDB2/Core/IndexManager/BTreeIndex.swift:288:44: warning: capture of non-sendable type 'Key.Type' in an isolated closure; this is an error in the Swift 6 language mode
286 | // Encode the tree (here we encode the root which is recursive)
287 | let encoder = JSONEncoder()
288 | let data = try encoder.encode(currentRoot)
| `- warning: capture of non-sendable type 'Key.Type' in an isolated closure; this is an error in the Swift 6 language mode
289 |
290 | // Optionally, compress the data before writing.
/host/spi-builder-workspace/Sources/NyaruDB2/Core/IndexManager/BTreeIndex.swift:282:13: warning: capture of non-sendable type 'Key.Type' in an isolated closure; this is an error in the Swift 6 language mode
280 | /// storage space available for the operation to complete successfully.
281 | public func persist(to url: URL) async throws {
282 | let currentRoot = self.root
| `- warning: capture of non-sendable type 'Key.Type' in an isolated closure; this is an error in the Swift 6 language mode
283 | try await withCheckedThrowingContinuation { continuation in
284 | serializationQueue.async {
[16/26] Compiling NyaruDB2 StorageEngine.swift
/host/spi-builder-workspace/Sources/NyaruDB2/Core/StorageEngine/StorageEngine.swift:156:31: warning: capture of non-sendable type 'T.Type' in an isolated closure; this is an error in the Swift 6 language mode
154 | -> AsyncThrowingStream<T, Error>
155 | {
156 | AsyncThrowingStream { continuation in
| `- warning: capture of non-sendable type 'T.Type' in an isolated closure; this is an error in the Swift 6 language mode
157 | Task {
158 | do {
/host/spi-builder-workspace/Sources/NyaruDB2/Core/StorageEngine/StorageEngine.swift:165:21: warning: capture of non-sendable type 'T.Type' in an isolated closure; this is an error in the Swift 6 language mode
163 | .forEach { continuation.yield($0) }
164 | }
165 | continuation.finish()
| `- warning: capture of non-sendable type 'T.Type' in an isolated closure; this is an error in the Swift 6 language mode
166 | } catch {
167 | continuation.finish(throwing: error)
/host/spi-builder-workspace/Sources/NyaruDB2/Core/StorageEngine/StorageEngine.swift:367:33: warning: result of call to 'fileExists(atPath:isDirectory:)' is unused [#no-usage]
365 | let collections = items.filter { url in
366 | var isDirectory: ObjCBool = false
367 | FileManager.default.fileExists(
| `- warning: result of call to 'fileExists(atPath:isDirectory:)' is unused [#no-usage]
368 | atPath: url.path,
369 | isDirectory: &isDirectory
/host/spi-builder-workspace/Sources/NyaruDB2/Core/StorageEngine/StorageEngine.swift:566:29: warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
564 | /// - Returns: An array containing the transformed elements.
565 | /// - Throws: Rethrows any error thrown by the `transform` closure.
566 | func concurrentMap<T>(_ transform: @escaping (Element) async throws -> T)
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
567 | async rethrows -> [T]
568 | {
[17/26] Emitting module NyaruDB2
/host/spi-builder-workspace/Sources/NyaruDB2/Core/ShardManager/CompressionMethod.swift:89:46: error: cannot find type 'compression_algorithm' in scope
87 | /// - Returns: A `Data` object containing the compressed data.
88 | /// - Throws: An error if the compression process fails.
89 | private func compress(data: Data, algorithm: compression_algorithm) throws
| `- error: cannot find type 'compression_algorithm' in scope
90 | -> Data
91 | {
/host/spi-builder-workspace/Sources/NyaruDB2/Core/ShardManager/CompressionMethod.swift:167:48: error: cannot find type 'compression_algorithm' in scope
165 | /// - Returns: The decompressed data.
166 | /// - Throws: An error if the decompression process fails.
167 | private func decompress(data: Data, algorithm: compression_algorithm) throws
| `- error: cannot find type 'compression_algorithm' in scope
168 | -> Data
169 | {
[18/26] Compiling NyaruDB2 CompressionMethod.swift
/host/spi-builder-workspace/Sources/NyaruDB2/Core/ShardManager/CompressionMethod.swift:89:46: error: cannot find type 'compression_algorithm' in scope
87 | /// - Returns: A `Data` object containing the compressed data.
88 | /// - Throws: An error if the compression process fails.
89 | private func compress(data: Data, algorithm: compression_algorithm) throws
| `- error: cannot find type 'compression_algorithm' in scope
90 | -> Data
91 | {
/host/spi-builder-workspace/Sources/NyaruDB2/Core/ShardManager/CompressionMethod.swift:167:48: error: cannot find type 'compression_algorithm' in scope
165 | /// - Returns: The decompressed data.
166 | /// - Throws: An error if the decompression process fails.
167 | private func decompress(data: Data, algorithm: compression_algorithm) throws
| `- error: cannot find type 'compression_algorithm' in scope
168 | -> Data
169 | {
/host/spi-builder-workspace/Sources/NyaruDB2/Core/ShardManager/CompressionMethod.swift:52:52: error: cannot find 'COMPRESSION_LZFSE' in scope
50 | return try gzipCompress(data: data)
51 | case .lzfse:
52 | return try compress(data: data, algorithm: COMPRESSION_LZFSE)
| `- error: cannot find 'COMPRESSION_LZFSE' in scope
53 | case .lz4:
54 | return try compress(data: data, algorithm: COMPRESSION_LZ4)
/host/spi-builder-workspace/Sources/NyaruDB2/Core/ShardManager/CompressionMethod.swift:52:28: error: extraneous argument labels 'data:algorithm:' in call
50 | return try gzipCompress(data: data)
51 | case .lzfse:
52 | return try compress(data: data, algorithm: COMPRESSION_LZFSE)
| `- error: extraneous argument labels 'data:algorithm:' in call
53 | case .lz4:
54 | return try compress(data: data, algorithm: COMPRESSION_LZ4)
/host/spi-builder-workspace/Sources/NyaruDB2/Core/ShardManager/CompressionMethod.swift:52:28: error: missing arguments for parameters #3, #4 in call
50 | return try gzipCompress(data: data)
51 | case .lzfse:
52 | return try compress(data: data, algorithm: COMPRESSION_LZFSE)
| `- error: missing arguments for parameters #3, #4 in call
53 | case .lz4:
54 | return try compress(data: data, algorithm: COMPRESSION_LZ4)
/root/.swiftpm/swift-sdks/swift-6.2-DEVELOPMENT-SNAPSHOT-2025-05-15-a-android-0.1.artifactbundle/swift-android/ndk-sysroot/usr/include/zlib.h:1278:21: note: 'compress' declared here
1276 | */
1277 |
1278 | ZEXTERN int ZEXPORT compress(Bytef *dest, uLongf *destLen,
| `- note: 'compress' declared here
1279 | const Bytef *source, uLong sourceLen);
1280 | /*
/host/spi-builder-workspace/Sources/NyaruDB2/Core/ShardManager/CompressionMethod.swift:52:35: error: cannot convert value of type 'Data' to expected argument type 'UnsafeMutablePointer<Bytef>' (aka 'UnsafeMutablePointer<UInt8>')
50 | return try gzipCompress(data: data)
51 | case .lzfse:
52 | return try compress(data: data, algorithm: COMPRESSION_LZFSE)
| `- error: cannot convert value of type 'Data' to expected argument type 'UnsafeMutablePointer<Bytef>' (aka 'UnsafeMutablePointer<UInt8>')
53 | case .lz4:
54 | return try compress(data: data, algorithm: COMPRESSION_LZ4)
/host/spi-builder-workspace/Sources/NyaruDB2/Core/ShardManager/CompressionMethod.swift:52:20: error: cannot convert return expression of type 'Int32' to return type 'Data'
50 | return try gzipCompress(data: data)
51 | case .lzfse:
52 | return try compress(data: data, algorithm: COMPRESSION_LZFSE)
| `- error: cannot convert return expression of type 'Int32' to return type 'Data'
53 | case .lz4:
54 | return try compress(data: data, algorithm: COMPRESSION_LZ4)
/host/spi-builder-workspace/Sources/NyaruDB2/Core/ShardManager/CompressionMethod.swift:54:52: error: cannot find 'COMPRESSION_LZ4' in scope
52 | return try compress(data: data, algorithm: COMPRESSION_LZFSE)
53 | case .lz4:
54 | return try compress(data: data, algorithm: COMPRESSION_LZ4)
| `- error: cannot find 'COMPRESSION_LZ4' in scope
55 | }
56 | }
/host/spi-builder-workspace/Sources/NyaruDB2/Core/ShardManager/CompressionMethod.swift:54:20: error: cannot convert return expression of type 'Int32' to return type 'Data'
52 | return try compress(data: data, algorithm: COMPRESSION_LZFSE)
53 | case .lz4:
54 | return try compress(data: data, algorithm: COMPRESSION_LZ4)
| `- error: cannot convert return expression of type 'Int32' to return type 'Data'
55 | }
56 | }
/host/spi-builder-workspace/Sources/NyaruDB2/Core/ShardManager/CompressionMethod.swift:54:28: error: extraneous argument labels 'data:algorithm:' in call
52 | return try compress(data: data, algorithm: COMPRESSION_LZFSE)
53 | case .lz4:
54 | return try compress(data: data, algorithm: COMPRESSION_LZ4)
| `- error: extraneous argument labels 'data:algorithm:' in call
55 | }
56 | }
/host/spi-builder-workspace/Sources/NyaruDB2/Core/ShardManager/CompressionMethod.swift:54:28: error: missing arguments for parameters #3, #4 in call
52 | return try compress(data: data, algorithm: COMPRESSION_LZFSE)
53 | case .lz4:
54 | return try compress(data: data, algorithm: COMPRESSION_LZ4)
| `- error: missing arguments for parameters #3, #4 in call
55 | }
56 | }
/root/.swiftpm/swift-sdks/swift-6.2-DEVELOPMENT-SNAPSHOT-2025-05-15-a-android-0.1.artifactbundle/swift-android/ndk-sysroot/usr/include/zlib.h:1278:21: note: 'compress' declared here
1276 | */
1277 |
1278 | ZEXTERN int ZEXPORT compress(Bytef *dest, uLongf *destLen,
| `- note: 'compress' declared here
1279 | const Bytef *source, uLong sourceLen);
1280 | /*
/host/spi-builder-workspace/Sources/NyaruDB2/Core/ShardManager/CompressionMethod.swift:54:35: error: cannot convert value of type 'Data' to expected argument type 'UnsafeMutablePointer<Bytef>' (aka 'UnsafeMutablePointer<UInt8>')
52 | return try compress(data: data, algorithm: COMPRESSION_LZFSE)
53 | case .lz4:
54 | return try compress(data: data, algorithm: COMPRESSION_LZ4)
| `- error: cannot convert value of type 'Data' to expected argument type 'UnsafeMutablePointer<Bytef>' (aka 'UnsafeMutablePointer<UInt8>')
55 | }
56 | }
/host/spi-builder-workspace/Sources/NyaruDB2/Core/ShardManager/CompressionMethod.swift:75:54: error: cannot find 'COMPRESSION_LZFSE' in scope
73 | return try gzipDecompress(data: data)
74 | case .lzfse:
75 | return try decompress(data: data, algorithm: COMPRESSION_LZFSE)
| `- error: cannot find 'COMPRESSION_LZFSE' in scope
76 | case .lz4:
77 | return try decompress(data: data, algorithm: COMPRESSION_LZ4)
/host/spi-builder-workspace/Sources/NyaruDB2/Core/ShardManager/CompressionMethod.swift:77:54: error: cannot find 'COMPRESSION_LZ4' in scope
75 | return try decompress(data: data, algorithm: COMPRESSION_LZFSE)
76 | case .lz4:
77 | return try decompress(data: data, algorithm: COMPRESSION_LZ4)
| `- error: cannot find 'COMPRESSION_LZ4' in scope
78 | }
79 | }
/host/spi-builder-workspace/Sources/NyaruDB2/Core/ShardManager/CompressionMethod.swift:98:18: error: cannot find 'compression_stream' in scope
96 | defer { destinationBuffer.deallocate() }
97 |
98 | var stream = compression_stream(
| `- error: cannot find 'compression_stream' in scope
99 | dst_ptr: destinationBuffer,
100 | dst_size: dstBufferSize,
/host/spi-builder-workspace/Sources/NyaruDB2/Core/ShardManager/CompressionMethod.swift:106:16: error: 'nil' requires a contextual type
104 | ),
105 | src_size: data.count,
106 | state: nil
| `- error: 'nil' requires a contextual type
107 | )
108 |
/host/spi-builder-workspace/Sources/NyaruDB2/Core/ShardManager/CompressionMethod.swift:110:22: error: cannot find 'compression_stream_init' in scope
108 |
109 | // Inicializa o stream para codificação (compressão)
110 | let statusInit = compression_stream_init(
| `- error: cannot find 'compression_stream_init' in scope
111 | &stream,
112 | COMPRESSION_STREAM_ENCODE,
/host/spi-builder-workspace/Sources/NyaruDB2/Core/ShardManager/CompressionMethod.swift:112:9: error: cannot find 'COMPRESSION_STREAM_ENCODE' in scope
110 | let statusInit = compression_stream_init(
111 | &stream,
112 | COMPRESSION_STREAM_ENCODE,
| `- error: cannot find 'COMPRESSION_STREAM_ENCODE' in scope
113 | algorithm
114 | )
/host/spi-builder-workspace/Sources/NyaruDB2/Core/ShardManager/CompressionMethod.swift:115:25: error: cannot find 'COMPRESSION_STATUS_OK' in scope
113 | algorithm
114 | )
115 | guard statusInit == COMPRESSION_STATUS_OK else {
| `- error: cannot find 'COMPRESSION_STATUS_OK' in scope
116 | throw CompressionError.compressionFailed
117 | }
/host/spi-builder-workspace/Sources/NyaruDB2/Core/ShardManager/CompressionMethod.swift:118:13: error: cannot find 'compression_stream_destroy' in scope
116 | throw CompressionError.compressionFailed
117 | }
118 | defer { compression_stream_destroy(&stream) }
| `- error: cannot find 'compression_stream_destroy' in scope
119 |
120 | var outputData = Data()
/host/spi-builder-workspace/Sources/NyaruDB2/Core/ShardManager/CompressionMethod.swift:137:30: error: cannot find 'COMPRESSION_STREAM_FINALIZE' in scope
135 |
136 | while true {
137 | let flag = Int32(COMPRESSION_STREAM_FINALIZE.rawValue)
| `- error: cannot find 'COMPRESSION_STREAM_FINALIZE' in scope
138 | let status = compression_stream_process(&stream, flag)
139 | switch status {
/host/spi-builder-workspace/Sources/NyaruDB2/Core/ShardManager/CompressionMethod.swift:138:26: error: cannot find 'compression_stream_process' in scope
136 | while true {
137 | let flag = Int32(COMPRESSION_STREAM_FINALIZE.rawValue)
138 | let status = compression_stream_process(&stream, flag)
| `- error: cannot find 'compression_stream_process' in scope
139 | switch status {
140 | case COMPRESSION_STATUS_OK, COMPRESSION_STATUS_END:
/host/spi-builder-workspace/Sources/NyaruDB2/Core/ShardManager/CompressionMethod.swift:146:30: error: cannot find 'COMPRESSION_STATUS_END' in scope
144 | outputData.append(destinationBuffer, count: count)
145 | }
146 | if status == COMPRESSION_STATUS_END {
| `- error: cannot find 'COMPRESSION_STATUS_END' in scope
147 | return
148 | }
/host/spi-builder-workspace/Sources/NyaruDB2/Core/ShardManager/CompressionMethod.swift:177:18: error: cannot find 'compression_stream' in scope
175 | defer { destinationBuffer.deallocate() }
176 |
177 | var stream = compression_stream(
| `- error: cannot find 'compression_stream' in scope
178 | dst_ptr: destinationBuffer,
179 | dst_size: dstBufferSize,
/host/spi-builder-workspace/Sources/NyaruDB2/Core/ShardManager/CompressionMethod.swift:185:16: error: 'nil' requires a contextual type
183 | ),
184 | src_size: data.count,
185 | state: nil
| `- error: 'nil' requires a contextual type
186 | )
187 |
/host/spi-builder-workspace/Sources/NyaruDB2/Core/ShardManager/CompressionMethod.swift:188:22: error: cannot find 'compression_stream_init' in scope
186 | )
187 |
188 | let statusInit = compression_stream_init(
| `- error: cannot find 'compression_stream_init' in scope
189 | &stream,
190 | COMPRESSION_STREAM_DECODE,
/host/spi-builder-workspace/Sources/NyaruDB2/Core/ShardManager/CompressionMethod.swift:190:9: error: cannot find 'COMPRESSION_STREAM_DECODE' in scope
188 | let statusInit = compression_stream_init(
189 | &stream,
190 | COMPRESSION_STREAM_DECODE,
| `- error: cannot find 'COMPRESSION_STREAM_DECODE' in scope
191 | algorithm
192 | )
/host/spi-builder-workspace/Sources/NyaruDB2/Core/ShardManager/CompressionMethod.swift:193:25: error: cannot find 'COMPRESSION_STATUS_OK' in scope
191 | algorithm
192 | )
193 | guard statusInit == COMPRESSION_STATUS_OK else {
| `- error: cannot find 'COMPRESSION_STATUS_OK' in scope
194 | throw CompressionError.decompressionFailed
195 | }
/host/spi-builder-workspace/Sources/NyaruDB2/Core/ShardManager/CompressionMethod.swift:196:13: error: cannot find 'compression_stream_destroy' in scope
194 | throw CompressionError.decompressionFailed
195 | }
196 | defer { compression_stream_destroy(&stream) }
| `- error: cannot find 'compression_stream_destroy' in scope
197 |
198 | var outputData = Data()
/host/spi-builder-workspace/Sources/NyaruDB2/Core/ShardManager/CompressionMethod.swift:214:26: error: cannot find 'compression_stream_process' in scope
212 |
213 | while true {
214 | let status = compression_stream_process(&stream, 0)
| `- error: cannot find 'compression_stream_process' in scope
215 | switch status {
216 | case COMPRESSION_STATUS_OK, COMPRESSION_STATUS_END:
/host/spi-builder-workspace/Sources/NyaruDB2/Core/ShardManager/CompressionMethod.swift:221:30: error: cannot find 'COMPRESSION_STATUS_END' in scope
219 | outputData.append(destinationBuffer, count: count)
220 | }
221 | if status == COMPRESSION_STATUS_END {
| `- error: cannot find 'COMPRESSION_STATUS_END' in scope
222 | return
223 | }
/host/spi-builder-workspace/Sources/NyaruDB2/Core/ShardManager/Shard.swift:164:41: warning: capture of non-sendable type 'T.Type' in an isolated closure; this is an error in the Swift 6 language mode
162 | Task {
163 | do {
164 | let docs: [T] = try await self.loadDocuments()
| `- warning: capture of non-sendable type 'T.Type' in an isolated closure; this is an error in the Swift 6 language mode
165 | for doc in docs {
166 | continuation.yield(doc)
/host/spi-builder-workspace/Sources/NyaruDB2/Core/ShardManager/Shard.swift:161:31: warning: capture of non-sendable type 'T.Type' in an isolated closure; this is an error in the Swift 6 language mode
159 | public func loadDocumentsLazy<T: Codable>() -> AsyncThrowingStream<T, Error>
160 | {
161 | AsyncThrowingStream { continuation in
| `- warning: capture of non-sendable type 'T.Type' in an isolated closure; this is an error in the Swift 6 language mode
162 | Task {
163 | do {
[19/26] Compiling NyaruDB2 Shard.swift
/host/spi-builder-workspace/Sources/NyaruDB2/Core/ShardManager/CompressionMethod.swift:89:46: error: cannot find type 'compression_algorithm' in scope
87 | /// - Returns: A `Data` object containing the compressed data.
88 | /// - Throws: An error if the compression process fails.
89 | private func compress(data: Data, algorithm: compression_algorithm) throws
| `- error: cannot find type 'compression_algorithm' in scope
90 | -> Data
91 | {
/host/spi-builder-workspace/Sources/NyaruDB2/Core/ShardManager/CompressionMethod.swift:167:48: error: cannot find type 'compression_algorithm' in scope
165 | /// - Returns: The decompressed data.
166 | /// - Throws: An error if the decompression process fails.
167 | private func decompress(data: Data, algorithm: compression_algorithm) throws
| `- error: cannot find type 'compression_algorithm' in scope
168 | -> Data
169 | {
/host/spi-builder-workspace/Sources/NyaruDB2/Core/ShardManager/CompressionMethod.swift:52:52: error: cannot find 'COMPRESSION_LZFSE' in scope
50 | return try gzipCompress(data: data)
51 | case .lzfse:
52 | return try compress(data: data, algorithm: COMPRESSION_LZFSE)
| `- error: cannot find 'COMPRESSION_LZFSE' in scope
53 | case .lz4:
54 | return try compress(data: data, algorithm: COMPRESSION_LZ4)
/host/spi-builder-workspace/Sources/NyaruDB2/Core/ShardManager/CompressionMethod.swift:52:28: error: extraneous argument labels 'data:algorithm:' in call
50 | return try gzipCompress(data: data)
51 | case .lzfse:
52 | return try compress(data: data, algorithm: COMPRESSION_LZFSE)
| `- error: extraneous argument labels 'data:algorithm:' in call
53 | case .lz4:
54 | return try compress(data: data, algorithm: COMPRESSION_LZ4)
/host/spi-builder-workspace/Sources/NyaruDB2/Core/ShardManager/CompressionMethod.swift:52:28: error: missing arguments for parameters #3, #4 in call
50 | return try gzipCompress(data: data)
51 | case .lzfse:
52 | return try compress(data: data, algorithm: COMPRESSION_LZFSE)
| `- error: missing arguments for parameters #3, #4 in call
53 | case .lz4:
54 | return try compress(data: data, algorithm: COMPRESSION_LZ4)
/root/.swiftpm/swift-sdks/swift-6.2-DEVELOPMENT-SNAPSHOT-2025-05-15-a-android-0.1.artifactbundle/swift-android/ndk-sysroot/usr/include/zlib.h:1278:21: note: 'compress' declared here
1276 | */
1277 |
1278 | ZEXTERN int ZEXPORT compress(Bytef *dest, uLongf *destLen,
| `- note: 'compress' declared here
1279 | const Bytef *source, uLong sourceLen);
1280 | /*
/host/spi-builder-workspace/Sources/NyaruDB2/Core/ShardManager/CompressionMethod.swift:52:35: error: cannot convert value of type 'Data' to expected argument type 'UnsafeMutablePointer<Bytef>' (aka 'UnsafeMutablePointer<UInt8>')
50 | return try gzipCompress(data: data)
51 | case .lzfse:
52 | return try compress(data: data, algorithm: COMPRESSION_LZFSE)
| `- error: cannot convert value of type 'Data' to expected argument type 'UnsafeMutablePointer<Bytef>' (aka 'UnsafeMutablePointer<UInt8>')
53 | case .lz4:
54 | return try compress(data: data, algorithm: COMPRESSION_LZ4)
/host/spi-builder-workspace/Sources/NyaruDB2/Core/ShardManager/CompressionMethod.swift:52:20: error: cannot convert return expression of type 'Int32' to return type 'Data'
50 | return try gzipCompress(data: data)
51 | case .lzfse:
52 | return try compress(data: data, algorithm: COMPRESSION_LZFSE)
| `- error: cannot convert return expression of type 'Int32' to return type 'Data'
53 | case .lz4:
54 | return try compress(data: data, algorithm: COMPRESSION_LZ4)
/host/spi-builder-workspace/Sources/NyaruDB2/Core/ShardManager/CompressionMethod.swift:54:52: error: cannot find 'COMPRESSION_LZ4' in scope
52 | return try compress(data: data, algorithm: COMPRESSION_LZFSE)
53 | case .lz4:
54 | return try compress(data: data, algorithm: COMPRESSION_LZ4)
| `- error: cannot find 'COMPRESSION_LZ4' in scope
55 | }
56 | }
/host/spi-builder-workspace/Sources/NyaruDB2/Core/ShardManager/CompressionMethod.swift:54:20: error: cannot convert return expression of type 'Int32' to return type 'Data'
52 | return try compress(data: data, algorithm: COMPRESSION_LZFSE)
53 | case .lz4:
54 | return try compress(data: data, algorithm: COMPRESSION_LZ4)
| `- error: cannot convert return expression of type 'Int32' to return type 'Data'
55 | }
56 | }
/host/spi-builder-workspace/Sources/NyaruDB2/Core/ShardManager/CompressionMethod.swift:54:28: error: extraneous argument labels 'data:algorithm:' in call
52 | return try compress(data: data, algorithm: COMPRESSION_LZFSE)
53 | case .lz4:
54 | return try compress(data: data, algorithm: COMPRESSION_LZ4)
| `- error: extraneous argument labels 'data:algorithm:' in call
55 | }
56 | }
/host/spi-builder-workspace/Sources/NyaruDB2/Core/ShardManager/CompressionMethod.swift:54:28: error: missing arguments for parameters #3, #4 in call
52 | return try compress(data: data, algorithm: COMPRESSION_LZFSE)
53 | case .lz4:
54 | return try compress(data: data, algorithm: COMPRESSION_LZ4)
| `- error: missing arguments for parameters #3, #4 in call
55 | }
56 | }
/root/.swiftpm/swift-sdks/swift-6.2-DEVELOPMENT-SNAPSHOT-2025-05-15-a-android-0.1.artifactbundle/swift-android/ndk-sysroot/usr/include/zlib.h:1278:21: note: 'compress' declared here
1276 | */
1277 |
1278 | ZEXTERN int ZEXPORT compress(Bytef *dest, uLongf *destLen,
| `- note: 'compress' declared here
1279 | const Bytef *source, uLong sourceLen);
1280 | /*
/host/spi-builder-workspace/Sources/NyaruDB2/Core/ShardManager/CompressionMethod.swift:54:35: error: cannot convert value of type 'Data' to expected argument type 'UnsafeMutablePointer<Bytef>' (aka 'UnsafeMutablePointer<UInt8>')
52 | return try compress(data: data, algorithm: COMPRESSION_LZFSE)
53 | case .lz4:
54 | return try compress(data: data, algorithm: COMPRESSION_LZ4)
| `- error: cannot convert value of type 'Data' to expected argument type 'UnsafeMutablePointer<Bytef>' (aka 'UnsafeMutablePointer<UInt8>')
55 | }
56 | }
/host/spi-builder-workspace/Sources/NyaruDB2/Core/ShardManager/CompressionMethod.swift:75:54: error: cannot find 'COMPRESSION_LZFSE' in scope
73 | return try gzipDecompress(data: data)
74 | case .lzfse:
75 | return try decompress(data: data, algorithm: COMPRESSION_LZFSE)
| `- error: cannot find 'COMPRESSION_LZFSE' in scope
76 | case .lz4:
77 | return try decompress(data: data, algorithm: COMPRESSION_LZ4)
/host/spi-builder-workspace/Sources/NyaruDB2/Core/ShardManager/CompressionMethod.swift:77:54: error: cannot find 'COMPRESSION_LZ4' in scope
75 | return try decompress(data: data, algorithm: COMPRESSION_LZFSE)
76 | case .lz4:
77 | return try decompress(data: data, algorithm: COMPRESSION_LZ4)
| `- error: cannot find 'COMPRESSION_LZ4' in scope
78 | }
79 | }
/host/spi-builder-workspace/Sources/NyaruDB2/Core/ShardManager/CompressionMethod.swift:98:18: error: cannot find 'compression_stream' in scope
96 | defer { destinationBuffer.deallocate() }
97 |
98 | var stream = compression_stream(
| `- error: cannot find 'compression_stream' in scope
99 | dst_ptr: destinationBuffer,
100 | dst_size: dstBufferSize,
/host/spi-builder-workspace/Sources/NyaruDB2/Core/ShardManager/CompressionMethod.swift:106:16: error: 'nil' requires a contextual type
104 | ),
105 | src_size: data.count,
106 | state: nil
| `- error: 'nil' requires a contextual type
107 | )
108 |
/host/spi-builder-workspace/Sources/NyaruDB2/Core/ShardManager/CompressionMethod.swift:110:22: error: cannot find 'compression_stream_init' in scope
108 |
109 | // Inicializa o stream para codificação (compressão)
110 | let statusInit = compression_stream_init(
| `- error: cannot find 'compression_stream_init' in scope
111 | &stream,
112 | COMPRESSION_STREAM_ENCODE,
/host/spi-builder-workspace/Sources/NyaruDB2/Core/ShardManager/CompressionMethod.swift:112:9: error: cannot find 'COMPRESSION_STREAM_ENCODE' in scope
110 | let statusInit = compression_stream_init(
111 | &stream,
112 | COMPRESSION_STREAM_ENCODE,
| `- error: cannot find 'COMPRESSION_STREAM_ENCODE' in scope
113 | algorithm
114 | )
/host/spi-builder-workspace/Sources/NyaruDB2/Core/ShardManager/CompressionMethod.swift:115:25: error: cannot find 'COMPRESSION_STATUS_OK' in scope
113 | algorithm
114 | )
115 | guard statusInit == COMPRESSION_STATUS_OK else {
| `- error: cannot find 'COMPRESSION_STATUS_OK' in scope
116 | throw CompressionError.compressionFailed
117 | }
/host/spi-builder-workspace/Sources/NyaruDB2/Core/ShardManager/CompressionMethod.swift:118:13: error: cannot find 'compression_stream_destroy' in scope
116 | throw CompressionError.compressionFailed
117 | }
118 | defer { compression_stream_destroy(&stream) }
| `- error: cannot find 'compression_stream_destroy' in scope
119 |
120 | var outputData = Data()
/host/spi-builder-workspace/Sources/NyaruDB2/Core/ShardManager/CompressionMethod.swift:137:30: error: cannot find 'COMPRESSION_STREAM_FINALIZE' in scope
135 |
136 | while true {
137 | let flag = Int32(COMPRESSION_STREAM_FINALIZE.rawValue)
| `- error: cannot find 'COMPRESSION_STREAM_FINALIZE' in scope
138 | let status = compression_stream_process(&stream, flag)
139 | switch status {
/host/spi-builder-workspace/Sources/NyaruDB2/Core/ShardManager/CompressionMethod.swift:138:26: error: cannot find 'compression_stream_process' in scope
136 | while true {
137 | let flag = Int32(COMPRESSION_STREAM_FINALIZE.rawValue)
138 | let status = compression_stream_process(&stream, flag)
| `- error: cannot find 'compression_stream_process' in scope
139 | switch status {
140 | case COMPRESSION_STATUS_OK, COMPRESSION_STATUS_END:
/host/spi-builder-workspace/Sources/NyaruDB2/Core/ShardManager/CompressionMethod.swift:146:30: error: cannot find 'COMPRESSION_STATUS_END' in scope
144 | outputData.append(destinationBuffer, count: count)
145 | }
146 | if status == COMPRESSION_STATUS_END {
| `- error: cannot find 'COMPRESSION_STATUS_END' in scope
147 | return
148 | }
/host/spi-builder-workspace/Sources/NyaruDB2/Core/ShardManager/CompressionMethod.swift:177:18: error: cannot find 'compression_stream' in scope
175 | defer { destinationBuffer.deallocate() }
176 |
177 | var stream = compression_stream(
| `- error: cannot find 'compression_stream' in scope
178 | dst_ptr: destinationBuffer,
179 | dst_size: dstBufferSize,
/host/spi-builder-workspace/Sources/NyaruDB2/Core/ShardManager/CompressionMethod.swift:185:16: error: 'nil' requires a contextual type
183 | ),
184 | src_size: data.count,
185 | state: nil
| `- error: 'nil' requires a contextual type
186 | )
187 |
/host/spi-builder-workspace/Sources/NyaruDB2/Core/ShardManager/CompressionMethod.swift:188:22: error: cannot find 'compression_stream_init' in scope
186 | )
187 |
188 | let statusInit = compression_stream_init(
| `- error: cannot find 'compression_stream_init' in scope
189 | &stream,
190 | COMPRESSION_STREAM_DECODE,
/host/spi-builder-workspace/Sources/NyaruDB2/Core/ShardManager/CompressionMethod.swift:190:9: error: cannot find 'COMPRESSION_STREAM_DECODE' in scope
188 | let statusInit = compression_stream_init(
189 | &stream,
190 | COMPRESSION_STREAM_DECODE,
| `- error: cannot find 'COMPRESSION_STREAM_DECODE' in scope
191 | algorithm
192 | )
/host/spi-builder-workspace/Sources/NyaruDB2/Core/ShardManager/CompressionMethod.swift:193:25: error: cannot find 'COMPRESSION_STATUS_OK' in scope
191 | algorithm
192 | )
193 | guard statusInit == COMPRESSION_STATUS_OK else {
| `- error: cannot find 'COMPRESSION_STATUS_OK' in scope
194 | throw CompressionError.decompressionFailed
195 | }
/host/spi-builder-workspace/Sources/NyaruDB2/Core/ShardManager/CompressionMethod.swift:196:13: error: cannot find 'compression_stream_destroy' in scope
194 | throw CompressionError.decompressionFailed
195 | }
196 | defer { compression_stream_destroy(&stream) }
| `- error: cannot find 'compression_stream_destroy' in scope
197 |
198 | var outputData = Data()
/host/spi-builder-workspace/Sources/NyaruDB2/Core/ShardManager/CompressionMethod.swift:214:26: error: cannot find 'compression_stream_process' in scope
212 |
213 | while true {
214 | let status = compression_stream_process(&stream, 0)
| `- error: cannot find 'compression_stream_process' in scope
215 | switch status {
216 | case COMPRESSION_STATUS_OK, COMPRESSION_STATUS_END:
/host/spi-builder-workspace/Sources/NyaruDB2/Core/ShardManager/CompressionMethod.swift:221:30: error: cannot find 'COMPRESSION_STATUS_END' in scope
219 | outputData.append(destinationBuffer, count: count)
220 | }
221 | if status == COMPRESSION_STATUS_END {
| `- error: cannot find 'COMPRESSION_STATUS_END' in scope
222 | return
223 | }
/host/spi-builder-workspace/Sources/NyaruDB2/Core/ShardManager/Shard.swift:164:41: warning: capture of non-sendable type 'T.Type' in an isolated closure; this is an error in the Swift 6 language mode
162 | Task {
163 | do {
164 | let docs: [T] = try await self.loadDocuments()
| `- warning: capture of non-sendable type 'T.Type' in an isolated closure; this is an error in the Swift 6 language mode
165 | for doc in docs {
166 | continuation.yield(doc)
/host/spi-builder-workspace/Sources/NyaruDB2/Core/ShardManager/Shard.swift:161:31: warning: capture of non-sendable type 'T.Type' in an isolated closure; this is an error in the Swift 6 language mode
159 | public func loadDocumentsLazy<T: Codable>() -> AsyncThrowingStream<T, Error>
160 | {
161 | AsyncThrowingStream { continuation in
| `- warning: capture of non-sendable type 'T.Type' in an isolated closure; this is an error in the Swift 6 language mode
162 | Task {
163 | do {
BUILD FAILURE 6.2 android