The Swift Package Index logo.Swift Package Index

Build Information

Failed to build PMTiles, reference main (84d4f9), with Swift 6.1 for Wasm on 9 Oct 2026 18:33:10 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-54344847-2":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/saguaro1/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 5.1.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/Xenoglyphiq/pmtiles-swift.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/Xenoglyphiq/pmtiles-swift
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at 84d4f9b CI: skip docs-only changes; create releases from tags (#7)
Cloned https://github.com/Xenoglyphiq/pmtiles-swift.git
Revision (git rev-parse @):
84d4f9b8415e051688f42dea6869af5e0df40aa2
SUCCESS checkout https://github.com/Xenoglyphiq/pmtiles-swift.git at main
========================================
Build
========================================
Selected platform:         wasm
Swift version:             6.1
Building package at path:  $PWD
https://github.com/Xenoglyphiq/pmtiles-swift.git
https://github.com/Xenoglyphiq/pmtiles-swift.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-54344847-2":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/saguaro1/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi -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
wasm-6.1-latest: Pulling from saguaro1/spi-images
Digest: sha256:005e294ea72e7f7733559677ac003354f37dc6afb35c5bbab6bc9a95fc174f44
Status: Image is up to date for registry.gitlab.com/saguaro1/spi-images:wasm-6.1-latest
Building for debugging...
[0/29] Write sources
[8/29] Write swift-version-24593BA9C3E375BF.txt
[10/32] Compiling PMTiles Types.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[11/32] Emitting module PMTiles
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[12/32] Compiling PMTiles Core.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[13/33] Wrapping AST for PMTiles for debugging
[15/39] Emitting module inspect_archive
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[16/39] Compiling PMTilesIO IO.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
/host/spi-builder-workspace/Sources/PMTilesIO/IO.swift:40:14: error: cannot find 'open' in scope
 38 |
 39 |     public init(path: String) throws(PMTilesError) {
 40 |         fd = open(path, O_RDONLY)
    |              `- error: cannot find 'open' in scope
 41 |         guard fd >= 0 else { throw PMTilesError(.io, "pmtiles.source_failed") }
 42 |     }
/host/spi-builder-workspace/Sources/PMTilesIO/IO.swift:40:25: error: cannot find 'O_RDONLY' in scope
 38 |
 39 |     public init(path: String) throws(PMTilesError) {
 40 |         fd = open(path, O_RDONLY)
    |                         `- error: cannot find 'O_RDONLY' in scope
 41 |         guard fd >= 0 else { throw PMTilesError(.io, "pmtiles.source_failed") }
 42 |     }
/host/spi-builder-workspace/Sources/PMTilesIO/IO.swift:44:14: error: cannot find 'close' in scope
 42 |     }
 43 |
 44 |     deinit { close(fd) }
    |              `- error: cannot find 'close' in scope
 45 |
 46 |     public func read(offset: UInt64, length: UInt64) async throws(PMTilesError) -> [UInt8] {
/host/spi-builder-workspace/Sources/PMTilesIO/IO.swift:55:17: error: cannot find 'pread' in scope
 53 |         while done < total {
 54 |             let n = buf.withUnsafeMutableBytes { p in
 55 |                 pread(fd, p.baseAddress! + done, total - done, off_t(offset) + off_t(done))
    |                 `- error: cannot find 'pread' in scope
 56 |             }
 57 |             if n < 0 { throw PMTilesError(.io, "pmtiles.source_failed") }
/host/spi-builder-workspace/Sources/PMTilesIO/IO.swift:55:64: error: cannot find 'off_t' in scope
 53 |         while done < total {
 54 |             let n = buf.withUnsafeMutableBytes { p in
 55 |                 pread(fd, p.baseAddress! + done, total - done, off_t(offset) + off_t(done))
    |                                                                `- error: cannot find 'off_t' in scope
 56 |             }
 57 |             if n < 0 { throw PMTilesError(.io, "pmtiles.source_failed") }
/host/spi-builder-workspace/Sources/PMTilesIO/IO.swift:55:80: error: cannot find 'off_t' in scope
 53 |         while done < total {
 54 |             let n = buf.withUnsafeMutableBytes { p in
 55 |                 pread(fd, p.baseAddress! + done, total - done, off_t(offset) + off_t(done))
    |                                                                                `- error: cannot find 'off_t' in scope
 56 |             }
 57 |             if n < 0 { throw PMTilesError(.io, "pmtiles.source_failed") }
[17/39] Compiling inspect_archive main.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[18/40] Wrapping AST for inspect_archive for debugging
[19/40] Write Objects.LinkFileList
wasm-ld: warning: /root/.swiftpm/swift-sdks/swift-wasm-6.1-RELEASE-wasm32-unknown-wasi.artifactbundle/6.1-RELEASE-wasm32-unknown-wasi/wasm32-unknown-wasi/swift.xctoolchain/usr/lib/swift_static/wasi/lib_FoundationCollections.a: archive member '_FoundationCollections.autolink' is neither Wasm object file nor LLVM bitcode
wasm-ld: warning: /root/.swiftpm/swift-sdks/swift-wasm-6.1-RELEASE-wasm32-unknown-wasi.artifactbundle/6.1-RELEASE-wasm32-unknown-wasi/wasm32-unknown-wasi/swift.xctoolchain/usr/lib/swift_static/wasi/libFoundation.a: archive member 'Foundation.autolink' is neither Wasm object file nor LLVM bitcode
wasm-ld: warning: /root/.swiftpm/swift-sdks/swift-wasm-6.1-RELEASE-wasm32-unknown-wasi.artifactbundle/6.1-RELEASE-wasm32-unknown-wasi/wasm32-unknown-wasi/swift.xctoolchain/usr/lib/swift_static/wasi/libFoundationEssentials.a: archive member 'FoundationEssentials.autolink' is neither Wasm object file nor LLVM bitcode
wasm-ld: warning: /root/.swiftpm/swift-sdks/swift-wasm-6.1-RELEASE-wasm32-unknown-wasi.artifactbundle/6.1-RELEASE-wasm32-unknown-wasi/wasm32-unknown-wasi/swift.xctoolchain/usr/lib/swift_static/wasi/libFoundationInternationalization.a: archive member 'FoundationInternationalization.autolink' is neither Wasm object file nor LLVM bitcode
[20/40] Linking inspect_archive.wasm
error: emit-module command failed with exit code 1 (use -v to see invocation)
[22/40] Emitting module PMTilesIO
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
/host/spi-builder-workspace/Sources/PMTilesIO/HTTPSource.swift:13:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
11 | public struct HTTPSource: ByteSource {
12 |     public let url: URL
13 |     private let session: URLSession
   |                          `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
14 |
15 |     public init(url: URL, session: URLSession = .shared) {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/PMTilesIO/HTTPSource.swift:15:36: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
13 |     private let session: URLSession
14 |
15 |     public init(url: URL, session: URLSession = .shared) {
   |                                    `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
16 |         self.url = url
17 |         self.session = session
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/PMTilesIO/HTTPSource.swift:15:50: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
13 |     private let session: URLSession
14 |
15 |     public init(url: URL, session: URLSession = .shared) {
   |                                                  `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
16 |         self.url = url
17 |         self.session = session
/host/spi-builder-workspace/Sources/PMTilesIO/HTTPSource.swift:13:17: error: stored property 'session' of 'Sendable'-conforming struct 'HTTPSource' has non-sendable type 'URLSession' (aka 'AnyObject')
11 | public struct HTTPSource: ByteSource {
12 |     public let url: URL
13 |     private let session: URLSession
   |                 `- error: stored property 'session' of 'Sendable'-conforming struct 'HTTPSource' has non-sendable type 'URLSession' (aka 'AnyObject')
14 |
15 |     public init(url: URL, session: URLSession = .shared) {
[23/40] Compiling PMTilesIO Gzip.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
/host/spi-builder-workspace/Sources/PMTilesIO/Gzip.swift:67:5: error: the compiler is unable to type-check this expression in reasonable time; try breaking up the expression into distinct sub-expressions
 65 | package func crc32(_ bytes: [UInt8]) -> UInt32 {
 66 |     var c: UInt32 = 0xFFFF_FFFF
 67 |     crcTables.withUnsafeBufferPointer { t in
    |     `- error: the compiler is unable to type-check this expression in reasonable time; try breaking up the expression into distinct sub-expressions
 68 |         bytes.withUnsafeBufferPointer { b in
 69 |             var i = 0
[24/40] Compiling PMTilesIO HTTPSource.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
/host/spi-builder-workspace/Sources/PMTilesIO/HTTPSource.swift:13:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
11 | public struct HTTPSource: ByteSource {
12 |     public let url: URL
13 |     private let session: URLSession
   |                          `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
14 |
15 |     public init(url: URL, session: URLSession = .shared) {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/PMTilesIO/HTTPSource.swift:15:36: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
13 |     private let session: URLSession
14 |
15 |     public init(url: URL, session: URLSession = .shared) {
   |                                    `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
16 |         self.url = url
17 |         self.session = session
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/PMTilesIO/HTTPSource.swift:15:50: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
13 |     private let session: URLSession
14 |
15 |     public init(url: URL, session: URLSession = .shared) {
   |                                                  `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
16 |         self.url = url
17 |         self.session = session
/host/spi-builder-workspace/Sources/PMTilesIO/HTTPSource.swift:13:17: error: stored property 'session' of 'Sendable'-conforming struct 'HTTPSource' has non-sendable type 'URLSession' (aka 'AnyObject')
11 | public struct HTTPSource: ByteSource {
12 |     public let url: URL
13 |     private let session: URLSession
   |                 `- error: stored property 'session' of 'Sendable'-conforming struct 'HTTPSource' has non-sendable type 'URLSession' (aka 'AnyObject')
14 |
15 |     public init(url: URL, session: URLSession = .shared) {
/host/spi-builder-workspace/Sources/PMTilesIO/HTTPSource.swift:22:23: error: cannot find 'URLRequest' in scope
20 |     public func read(offset: UInt64, length: UInt64) async throws(PMTilesError) -> [UInt8] {
21 |         if length == 0 { return [] }
22 |         var request = URLRequest(url: url)
   |                       `- error: cannot find 'URLRequest' in scope
23 |         request.setValue("bytes=\(offset)-\(offset + length - 1)", forHTTPHeaderField: "Range")
24 |         // Ask for the bytes as stored. Some servers otherwise apply the range to a
/host/spi-builder-workspace/Sources/PMTilesIO/HTTPSource.swift:29:23: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
27 |         request.setValue("identity", forHTTPHeaderField: "Accept-Encoding")
28 |         let data: Data
29 |         let response: URLResponse
   |                       `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
30 |         do {
31 |             (data, response) = try await session.data(for: request)
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/PMTilesIO/HTTPSource.swift:31:50: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
29 |         let response: URLResponse
30 |         do {
31 |             (data, response) = try await session.data(for: request)
   |                                                  `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
32 |         } catch {
33 |             throw PMTilesError(.io, "pmtiles.source_failed")
/host/spi-builder-workspace/Sources/PMTilesIO/HTTPSource.swift:35:35: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
33 |             throw PMTilesError(.io, "pmtiles.source_failed")
34 |         }
35 |         guard let http = response as? HTTPURLResponse else { throw PMTilesError(.io, "pmtiles.source_failed") }
   |                                   `- warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
36 |         switch http.statusCode {
37 |         case 206:
/host/spi-builder-workspace/Sources/PMTilesIO/HTTPSource.swift:35:39: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
33 |             throw PMTilesError(.io, "pmtiles.source_failed")
34 |         }
35 |         guard let http = response as? HTTPURLResponse else { throw PMTilesError(.io, "pmtiles.source_failed") }
   |                                       `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
36 |         switch http.statusCode {
37 |         case 206:
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
  |                  `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/PMTilesIO/HTTPSource.swift:36:21: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
34 |         }
35 |         guard let http = response as? HTTPURLResponse else { throw PMTilesError(.io, "pmtiles.source_failed") }
36 |         switch http.statusCode {
   |                     `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
37 |         case 206:
38 |             return [UInt8](data)
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-54344847-2":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/saguaro1/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1
wasm-6.1-latest: Pulling from saguaro1/spi-images
Digest: sha256:005e294ea72e7f7733559677ac003354f37dc6afb35c5bbab6bc9a95fc174f44
Status: Image is up to date for registry.gitlab.com/saguaro1/spi-images:wasm-6.1-latest
[0/1] Planning build
Building for debugging...
[0/21] Write swift-version-24593BA9C3E375BF.txt
[2/24] Compiling PMTiles Types.swift
[3/24] Emitting module PMTiles
[4/24] Compiling PMTiles Core.swift
[6/30] Compiling inspect_archive main.swift
[7/30] Emitting module inspect_archive
[8/30] Write Objects.LinkFileList
wasm-ld: warning: /root/.swiftpm/swift-sdks/swift-wasm-6.1-RELEASE-wasm32-unknown-wasi.artifactbundle/6.1-RELEASE-wasm32-unknown-wasi/wasm32-unknown-wasi/swift.xctoolchain/usr/lib/swift_static/wasi/lib_FoundationCollections.a: archive member '_FoundationCollections.autolink' is neither Wasm object file nor LLVM bitcode
wasm-ld: warning: /root/.swiftpm/swift-sdks/swift-wasm-6.1-RELEASE-wasm32-unknown-wasi.artifactbundle/6.1-RELEASE-wasm32-unknown-wasi/wasm32-unknown-wasi/swift.xctoolchain/usr/lib/swift_static/wasi/libFoundation.a: archive member 'Foundation.autolink' is neither Wasm object file nor LLVM bitcode
wasm-ld: warning: /root/.swiftpm/swift-sdks/swift-wasm-6.1-RELEASE-wasm32-unknown-wasi.artifactbundle/6.1-RELEASE-wasm32-unknown-wasi/wasm32-unknown-wasi/swift.xctoolchain/usr/lib/swift_static/wasi/libFoundationEssentials.a: archive member 'FoundationEssentials.autolink' is neither Wasm object file nor LLVM bitcode
wasm-ld: warning: /root/.swiftpm/swift-sdks/swift-wasm-6.1-RELEASE-wasm32-unknown-wasi.artifactbundle/6.1-RELEASE-wasm32-unknown-wasi/wasm32-unknown-wasi/swift.xctoolchain/usr/lib/swift_static/wasi/libFoundationInternationalization.a: archive member 'FoundationInternationalization.autolink' is neither Wasm object file nor LLVM bitcode
[9/30] Linking inspect_archive.wasm
error: emit-module command failed with exit code 1 (use -v to see invocation)
[11/30] Emitting module PMTilesIO
/host/spi-builder-workspace/Sources/PMTilesIO/HTTPSource.swift:13:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
11 | public struct HTTPSource: ByteSource {
12 |     public let url: URL
13 |     private let session: URLSession
   |                          `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
14 |
15 |     public init(url: URL, session: URLSession = .shared) {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/PMTilesIO/HTTPSource.swift:15:36: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
13 |     private let session: URLSession
14 |
15 |     public init(url: URL, session: URLSession = .shared) {
   |                                    `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
16 |         self.url = url
17 |         self.session = session
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/PMTilesIO/HTTPSource.swift:15:50: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
13 |     private let session: URLSession
14 |
15 |     public init(url: URL, session: URLSession = .shared) {
   |                                                  `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
16 |         self.url = url
17 |         self.session = session
/host/spi-builder-workspace/Sources/PMTilesIO/HTTPSource.swift:13:17: error: stored property 'session' of 'Sendable'-conforming struct 'HTTPSource' has non-sendable type 'URLSession' (aka 'AnyObject')
11 | public struct HTTPSource: ByteSource {
12 |     public let url: URL
13 |     private let session: URLSession
   |                 `- error: stored property 'session' of 'Sendable'-conforming struct 'HTTPSource' has non-sendable type 'URLSession' (aka 'AnyObject')
14 |
15 |     public init(url: URL, session: URLSession = .shared) {
[12/30] Compiling PMTilesIO IO.swift
/host/spi-builder-workspace/Sources/PMTilesIO/IO.swift:40:14: error: cannot find 'open' in scope
 38 |
 39 |     public init(path: String) throws(PMTilesError) {
 40 |         fd = open(path, O_RDONLY)
    |              `- error: cannot find 'open' in scope
 41 |         guard fd >= 0 else { throw PMTilesError(.io, "pmtiles.source_failed") }
 42 |     }
/host/spi-builder-workspace/Sources/PMTilesIO/IO.swift:40:25: error: cannot find 'O_RDONLY' in scope
 38 |
 39 |     public init(path: String) throws(PMTilesError) {
 40 |         fd = open(path, O_RDONLY)
    |                         `- error: cannot find 'O_RDONLY' in scope
 41 |         guard fd >= 0 else { throw PMTilesError(.io, "pmtiles.source_failed") }
 42 |     }
/host/spi-builder-workspace/Sources/PMTilesIO/IO.swift:44:14: error: cannot find 'close' in scope
 42 |     }
 43 |
 44 |     deinit { close(fd) }
    |              `- error: cannot find 'close' in scope
 45 |
 46 |     public func read(offset: UInt64, length: UInt64) async throws(PMTilesError) -> [UInt8] {
/host/spi-builder-workspace/Sources/PMTilesIO/IO.swift:55:17: error: cannot find 'pread' in scope
 53 |         while done < total {
 54 |             let n = buf.withUnsafeMutableBytes { p in
 55 |                 pread(fd, p.baseAddress! + done, total - done, off_t(offset) + off_t(done))
    |                 `- error: cannot find 'pread' in scope
 56 |             }
 57 |             if n < 0 { throw PMTilesError(.io, "pmtiles.source_failed") }
/host/spi-builder-workspace/Sources/PMTilesIO/IO.swift:55:64: error: cannot find 'off_t' in scope
 53 |         while done < total {
 54 |             let n = buf.withUnsafeMutableBytes { p in
 55 |                 pread(fd, p.baseAddress! + done, total - done, off_t(offset) + off_t(done))
    |                                                                `- error: cannot find 'off_t' in scope
 56 |             }
 57 |             if n < 0 { throw PMTilesError(.io, "pmtiles.source_failed") }
/host/spi-builder-workspace/Sources/PMTilesIO/IO.swift:55:80: error: cannot find 'off_t' in scope
 53 |         while done < total {
 54 |             let n = buf.withUnsafeMutableBytes { p in
 55 |                 pread(fd, p.baseAddress! + done, total - done, off_t(offset) + off_t(done))
    |                                                                                `- error: cannot find 'off_t' in scope
 56 |             }
 57 |             if n < 0 { throw PMTilesError(.io, "pmtiles.source_failed") }
[13/30] Compiling PMTilesIO Gzip.swift
/host/spi-builder-workspace/Sources/PMTilesIO/Gzip.swift:67:5: error: the compiler is unable to type-check this expression in reasonable time; try breaking up the expression into distinct sub-expressions
 65 | package func crc32(_ bytes: [UInt8]) -> UInt32 {
 66 |     var c: UInt32 = 0xFFFF_FFFF
 67 |     crcTables.withUnsafeBufferPointer { t in
    |     `- error: the compiler is unable to type-check this expression in reasonable time; try breaking up the expression into distinct sub-expressions
 68 |         bytes.withUnsafeBufferPointer { b in
 69 |             var i = 0
[14/30] Compiling PMTilesIO HTTPSource.swift
/host/spi-builder-workspace/Sources/PMTilesIO/HTTPSource.swift:13:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
11 | public struct HTTPSource: ByteSource {
12 |     public let url: URL
13 |     private let session: URLSession
   |                          `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
14 |
15 |     public init(url: URL, session: URLSession = .shared) {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/PMTilesIO/HTTPSource.swift:15:36: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
13 |     private let session: URLSession
14 |
15 |     public init(url: URL, session: URLSession = .shared) {
   |                                    `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
16 |         self.url = url
17 |         self.session = session
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/PMTilesIO/HTTPSource.swift:15:50: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
13 |     private let session: URLSession
14 |
15 |     public init(url: URL, session: URLSession = .shared) {
   |                                                  `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
16 |         self.url = url
17 |         self.session = session
/host/spi-builder-workspace/Sources/PMTilesIO/HTTPSource.swift:13:17: error: stored property 'session' of 'Sendable'-conforming struct 'HTTPSource' has non-sendable type 'URLSession' (aka 'AnyObject')
11 | public struct HTTPSource: ByteSource {
12 |     public let url: URL
13 |     private let session: URLSession
   |                 `- error: stored property 'session' of 'Sendable'-conforming struct 'HTTPSource' has non-sendable type 'URLSession' (aka 'AnyObject')
14 |
15 |     public init(url: URL, session: URLSession = .shared) {
/host/spi-builder-workspace/Sources/PMTilesIO/HTTPSource.swift:22:23: error: cannot find 'URLRequest' in scope
20 |     public func read(offset: UInt64, length: UInt64) async throws(PMTilesError) -> [UInt8] {
21 |         if length == 0 { return [] }
22 |         var request = URLRequest(url: url)
   |                       `- error: cannot find 'URLRequest' in scope
23 |         request.setValue("bytes=\(offset)-\(offset + length - 1)", forHTTPHeaderField: "Range")
24 |         // Ask for the bytes as stored. Some servers otherwise apply the range to a
/host/spi-builder-workspace/Sources/PMTilesIO/HTTPSource.swift:29:23: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
27 |         request.setValue("identity", forHTTPHeaderField: "Accept-Encoding")
28 |         let data: Data
29 |         let response: URLResponse
   |                       `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
30 |         do {
31 |             (data, response) = try await session.data(for: request)
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/PMTilesIO/HTTPSource.swift:31:50: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
29 |         let response: URLResponse
30 |         do {
31 |             (data, response) = try await session.data(for: request)
   |                                                  `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
32 |         } catch {
33 |             throw PMTilesError(.io, "pmtiles.source_failed")
/host/spi-builder-workspace/Sources/PMTilesIO/HTTPSource.swift:35:35: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
33 |             throw PMTilesError(.io, "pmtiles.source_failed")
34 |         }
35 |         guard let http = response as? HTTPURLResponse else { throw PMTilesError(.io, "pmtiles.source_failed") }
   |                                   `- warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
36 |         switch http.statusCode {
37 |         case 206:
/host/spi-builder-workspace/Sources/PMTilesIO/HTTPSource.swift:35:39: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
33 |             throw PMTilesError(.io, "pmtiles.source_failed")
34 |         }
35 |         guard let http = response as? HTTPURLResponse else { throw PMTilesError(.io, "pmtiles.source_failed") }
   |                                       `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
36 |         switch http.statusCode {
37 |         case 206:
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
  |                  `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/PMTilesIO/HTTPSource.swift:36:21: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
34 |         }
35 |         guard let http = response as? HTTPURLResponse else { throw PMTilesError(.io, "pmtiles.source_failed") }
36 |         switch http.statusCode {
   |                     `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
37 |         case 206:
38 |             return [UInt8](data)
BUILD FAILURE 6.1 wasm