The Swift Package Index logo.Swift Package Index

Build Information

Failed to build ReadiumZIPFoundation, reference 3.0.1 (adb49c), with Swift 6.0 for Linux on 6 Nov 2025 15:18:03 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4606859-1":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/finestructure/spi-images:basic-6.0-latest swift build --triple x86_64-unknown-linux-gnu 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.68.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/readium/ZIPFoundation.git
Reference: 3.0.1
Initialized empty Git repository in /host/spi-builder-workspace/.git/
hint: Using 'master' as the name for the initial branch. This default branch name
hint: is subject to change. To configure the initial branch name to use in all
hint: of your new repositories, which will suppress this warning, call:
hint:
hint: 	git config --global init.defaultBranch <name>
hint:
hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and
hint: 'development'. The just-created branch can be renamed via this command:
hint:
hint: 	git branch -m <name>
From https://github.com/readium/ZIPFoundation
 * tag               3.0.1      -> FETCH_HEAD
HEAD is now at adb49c8 3.0.1 (#15)
Cloned https://github.com/readium/ZIPFoundation.git
Revision (git rev-parse @):
adb49c8bfe060cc187370b12fa081012a6440b86
SUCCESS checkout https://github.com/readium/ZIPFoundation.git at 3.0.1
========================================
Build
========================================
Selected platform:         linux
Swift version:             6.0
Building package at path:  $PWD
https://github.com/readium/ZIPFoundation.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-1":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/finestructure/spi-images:basic-6.0-latest swift build --triple x86_64-unknown-linux-gnu 2>&1
basic-6.0-latest: Pulling from finestructure/spi-images
Digest: sha256:046a2cda21bb64b2d09e6d52c84584e938ec1698de194871f3d7088597b2bb28
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.0-latest
warning: 'spi-builder-workspace': found 1 file(s) which are unhandled; explicitly declare them as resources or exclude from the target
    /host/spi-builder-workspace/Sources/ZIPFoundation/Resources/PrivacyInfo.xcprivacy
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-24593BA9C3E375BF.txt
[3/19] Emitting module ReadiumZIPFoundation
/host/spi-builder-workspace/Sources/ZIPFoundation/Data+Serialization.swift:22:1: warning: extension declares a conformance of imported type 'UnsafeMutablePointer' to imported protocol 'Sendable'; this will not behave correctly if the owners of 'Swift' introduce this conformance in the future
 20 | extension FILEPointer: @unchecked @retroactive Sendable {}
 21 | #else
 22 | extension FILEPointer: @unchecked Sendable {}
    | |- warning: extension declares a conformance of imported type 'UnsafeMutablePointer' to imported protocol 'Sendable'; this will not behave correctly if the owners of 'Swift' introduce this conformance in the future
    | `- note: add '@retroactive' to silence this warning
 23 | #endif
 24 |
[4/21] Compiling ReadiumZIPFoundation Archive+BackingConfiguration.swift
[5/21] Compiling ReadiumZIPFoundation Archive+Helpers.swift
[6/21] Compiling ReadiumZIPFoundation Archive+Progress.swift
[7/21] Compiling ReadiumZIPFoundation SharedMutableValue.swift
[8/21] Compiling ReadiumZIPFoundation URL+ZIP.swift
[9/21] Compiling ReadiumZIPFoundation FileDataSource.swift
[10/21] Compiling ReadiumZIPFoundation FileManager+ZIP.swift
[11/21] Compiling ReadiumZIPFoundation Data+Serialization.swift
/host/spi-builder-workspace/Sources/ZIPFoundation/Data+Serialization.swift:22:1: warning: extension declares a conformance of imported type 'UnsafeMutablePointer' to imported protocol 'Sendable'; this will not behave correctly if the owners of 'Swift' introduce this conformance in the future
 20 | extension FILEPointer: @unchecked @retroactive Sendable {}
 21 | #else
 22 | extension FILEPointer: @unchecked Sendable {}
    | |- warning: extension declares a conformance of imported type 'UnsafeMutablePointer' to imported protocol 'Sendable'; this will not behave correctly if the owners of 'Swift' introduce this conformance in the future
    | `- note: add '@retroactive' to silence this warning
 23 | #endif
 24 |
[12/21] Compiling ReadiumZIPFoundation DataSource.swift
/host/spi-builder-workspace/Sources/ZIPFoundation/Data+Serialization.swift:22:1: warning: extension declares a conformance of imported type 'UnsafeMutablePointer' to imported protocol 'Sendable'; this will not behave correctly if the owners of 'Swift' introduce this conformance in the future
 20 | extension FILEPointer: @unchecked @retroactive Sendable {}
 21 | #else
 22 | extension FILEPointer: @unchecked Sendable {}
    | |- warning: extension declares a conformance of imported type 'UnsafeMutablePointer' to imported protocol 'Sendable'; this will not behave correctly if the owners of 'Swift' introduce this conformance in the future
    | `- note: add '@retroactive' to silence this warning
 23 | #endif
 24 |
[13/21] Compiling ReadiumZIPFoundation Archive+Reading.swift
[14/21] Compiling ReadiumZIPFoundation Archive+Writing.swift
[15/21] Compiling ReadiumZIPFoundation Archive+ZIP64.swift
[16/21] Compiling ReadiumZIPFoundation Date+ZIP.swift
[17/21] Compiling ReadiumZIPFoundation Entry+Serialization.swift
[18/21] Compiling ReadiumZIPFoundation Entry+ZIP64.swift
[19/21] Compiling ReadiumZIPFoundation Entry.swift
[20/21] Compiling ReadiumZIPFoundation Archive.swift
/host/spi-builder-workspace/Sources/ZIPFoundation/Data+Compression.swift:184:51: error: cannot pass function of type '(UnsafeMutableRawBufferPointer) async throws -> ()' to parameter expecting synchronous function type
182 |             zipCRC32 = inputChunk.crc32(checksum: zipCRC32)
183 |             stream.avail_in = UInt32(inputChunk.count)
184 |             try inputChunk.withUnsafeMutableBytes { (rawBufferPointer) in
    |                                                   `- error: cannot pass function of type '(UnsafeMutableRawBufferPointer) async throws -> ()' to parameter expecting synchronous function type
185 |                 if let baseAddress = rawBufferPointer.baseAddress {
186 |                     let pointer = baseAddress.assumingMemoryBound(to: UInt8.self)
    :
207 |
208 |                     outputChunk.count = bufferSize - Int(stream.avail_out)
209 |                     try await consumer(outputChunk)
    |                         `- note: 'async' inferred from asynchronous operation used here
210 |                 } while stream.avail_out == 0
211 |             }
/host/spi-builder-workspace/Sources/ZIPFoundation/Data+Compression.swift:229:46: error: cannot pass function of type '(UnsafeMutableRawBufferPointer) async throws -> ()' to parameter expecting synchronous function type
227 |             var chunk = try await provider(position, bufferSize)
228 |             position += Int64(chunk.count)
229 |             try chunk.withUnsafeMutableBytes { (rawBufferPointer) in
    |                                              `- error: cannot pass function of type '(UnsafeMutableRawBufferPointer) async throws -> ()' to parameter expecting synchronous function type
230 |                 if let baseAddress = rawBufferPointer.baseAddress, rawBufferPointer.count > 0 {
231 |                     let pointer = baseAddress.assumingMemoryBound(to: UInt8.self)
    :
250 |                         let remainingLength = UInt32(bufferSize) - stream.avail_out
251 |                         outputData.count = Int(remainingLength)
252 |                         try await consumer(outputData)
    |                             `- note: 'async' inferred from asynchronous operation used here
253 |                         if !skipCRC32 { unzipCRC32 = outputData.crc32(checksum: unzipCRC32) }
254 |                     } while stream.avail_out == 0
[21/21] Compiling ReadiumZIPFoundation Data+Compression.swift
/host/spi-builder-workspace/Sources/ZIPFoundation/Data+Compression.swift:184:51: error: cannot pass function of type '(UnsafeMutableRawBufferPointer) async throws -> ()' to parameter expecting synchronous function type
182 |             zipCRC32 = inputChunk.crc32(checksum: zipCRC32)
183 |             stream.avail_in = UInt32(inputChunk.count)
184 |             try inputChunk.withUnsafeMutableBytes { (rawBufferPointer) in
    |                                                   `- error: cannot pass function of type '(UnsafeMutableRawBufferPointer) async throws -> ()' to parameter expecting synchronous function type
185 |                 if let baseAddress = rawBufferPointer.baseAddress {
186 |                     let pointer = baseAddress.assumingMemoryBound(to: UInt8.self)
    :
207 |
208 |                     outputChunk.count = bufferSize - Int(stream.avail_out)
209 |                     try await consumer(outputChunk)
    |                         `- note: 'async' inferred from asynchronous operation used here
210 |                 } while stream.avail_out == 0
211 |             }
/host/spi-builder-workspace/Sources/ZIPFoundation/Data+Compression.swift:229:46: error: cannot pass function of type '(UnsafeMutableRawBufferPointer) async throws -> ()' to parameter expecting synchronous function type
227 |             var chunk = try await provider(position, bufferSize)
228 |             position += Int64(chunk.count)
229 |             try chunk.withUnsafeMutableBytes { (rawBufferPointer) in
    |                                              `- error: cannot pass function of type '(UnsafeMutableRawBufferPointer) async throws -> ()' to parameter expecting synchronous function type
230 |                 if let baseAddress = rawBufferPointer.baseAddress, rawBufferPointer.count > 0 {
231 |                     let pointer = baseAddress.assumingMemoryBound(to: UInt8.self)
    :
250 |                         let remainingLength = UInt32(bufferSize) - stream.avail_out
251 |                         outputData.count = Int(remainingLength)
252 |                         try await consumer(outputData)
    |                             `- note: 'async' inferred from asynchronous operation used here
253 |                         if !skipCRC32 { unzipCRC32 = outputData.crc32(checksum: unzipCRC32) }
254 |                     } while stream.avail_out == 0
BUILD FAILURE 6.0 linux