Build Information
Failed to build PMTiles, reference 0.2.0 (3cca5d), with Swift 6.2 for Wasm on 9 Oct 2026 18:40:36 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-54344847-1":/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.2-latest swift build --swift-sdk swift-6.2-RELEASE_wasm 2>&1Build Log
========================================
RunAll
========================================
Builder version: 5.1.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/Xenoglyphiq/pmtiles-swift.git
Reference: 0.2.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/Xenoglyphiq/pmtiles-swift
* tag 0.2.0 -> FETCH_HEAD
HEAD is now at 3cca5df Spec v0.2.0; release 0.2.0 (#6)
Cloned https://github.com/Xenoglyphiq/pmtiles-swift.git
Revision (git rev-parse @):
3cca5df649f253316bda17382f455a4aeb338c8f
SUCCESS checkout https://github.com/Xenoglyphiq/pmtiles-swift.git at 0.2.0
========================================
Build
========================================
Selected platform: wasm
Swift version: 6.2
Building package at path: $PWD
https://github.com/Xenoglyphiq/pmtiles-swift.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-54344847-1":/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.2-latest swift build --swift-sdk swift-6.2-RELEASE_wasm 2>&1
wasm-6.2-latest: Pulling from saguaro1/spi-images
Digest: sha256:c092ff8dc506a2a30e6239b6992792fd4f7dfaaa46cac3b3c48d8fe35e954282
Status: Image is up to date for registry.gitlab.com/saguaro1/spi-images:wasm-6.2-latest
Building for debugging...
[0/29] Write sources
[8/29] Write swift-version-24593BA9C3E375BF.txt
[10/32] Emitting module PMTiles
[11/32] Compiling PMTiles Core.swift
[12/32] Compiling PMTiles Types.swift
[13/33] Wrapping AST for PMTiles for debugging
error: emit-module command failed with exit code 1 (use -v to see invocation)
[15/39] 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:15:50: error: value of type '_' expected to be instance of class or class-constrained type
13 | private let session: URLSession
14 |
15 | public init(url: URL, session: URLSession = .shared) {
| `- error: value of type '_' expected to be instance of class or class-constrained type
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) {
[16/39] Compiling inspect_archive main.swift
[17/39] Emitting module inspect_archive
[18/40] Wrapping AST for inspect_archive for debugging
[19/40] Write Objects.LinkFileList
[20/40] Linking inspect_archive.wasm
[22/40] 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") }
[23/40] 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
[24/40] 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:15:50: error: value of type '_' expected to be instance of class or class-constrained type
13 | private let session: URLSession
14 |
15 | public init(url: URL, session: URLSession = .shared) {
| `- error: value of type '_' expected to be instance of class or class-constrained type
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.2 wasm