The Swift Package Index logo.Swift Package Index

Has it really been five years since Swift Package Index launched? Read our anniversary blog post!

Build Information

Failed to build package-datetime, reference main (897298), with Swift 6.2 (beta) for Wasm on 20 Jun 2025 08:08:38 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4609320-2":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:wasm-6.2-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.64.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/ordo-one/package-datetime.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/ordo-one/package-datetime
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at 897298b ci: 🔄 synced local '.github/workflows/' with remote 'workflows/swift'
Cloned https://github.com/ordo-one/package-datetime.git
Revision (git rev-parse @):
897298b2b3c1d61f1401f225a28e83c89bfa29bb
SUCCESS checkout https://github.com/ordo-one/package-datetime.git at main
========================================
Build
========================================
Selected platform:         wasm
Swift version:             6.2
Building package at path:  $PWD
https://github.com/ordo-one/package-datetime.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-2":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:wasm-6.2-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1
wasm-6.2-latest: Pulling from finestructure/spi-images
Digest: sha256:44384f43f933eaa0f42803e9ef7c3d8388c5841ccc831a15a5edf63d8c273423
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:wasm-6.2-latest
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-24593BA9C3E375BF.txt
[3/8] Compiling DateTime EpochDateTime.swift
/host/spi-builder-workspace/Sources/DateTime/BenchmarkClock.swift:22:12: error: Unsupported Platform
 20 |     import Glibc
 21 | #else
 22 |     #error("Unsupported Platform")
    |            `- error: Unsupported Platform
 23 | #endif
 24 |
/host/spi-builder-workspace/Sources/DateTime/FoundationExports.swift:11:26: error: no such module 'Foundation'
 9 | // This file contains the specific Foundation constructs we allow to use internally
10 |
11 | @_exported import struct Foundation.Calendar
   |                          `- error: no such module 'Foundation'
12 | @_exported import struct Foundation.Date
13 | @_exported import struct Foundation.TimeZone
[4/8] Compiling DateTime FoundationExports.swift
/host/spi-builder-workspace/Sources/DateTime/BenchmarkClock.swift:22:12: error: Unsupported Platform
 20 |     import Glibc
 21 | #else
 22 |     #error("Unsupported Platform")
    |            `- error: Unsupported Platform
 23 | #endif
 24 |
/host/spi-builder-workspace/Sources/DateTime/FoundationExports.swift:11:26: error: no such module 'Foundation'
 9 | // This file contains the specific Foundation constructs we allow to use internally
10 |
11 | @_exported import struct Foundation.Calendar
   |                          `- error: no such module 'Foundation'
12 | @_exported import struct Foundation.Date
13 | @_exported import struct Foundation.TimeZone
[5/8] Compiling DateTime Duration+Convenience.swift
/host/spi-builder-workspace/Sources/DateTime/BenchmarkClock.swift:22:12: error: Unsupported Platform
 20 |     import Glibc
 21 | #else
 22 |     #error("Unsupported Platform")
    |            `- error: Unsupported Platform
 23 | #endif
 24 |
/host/spi-builder-workspace/Sources/DateTime/FoundationExports.swift:11:26: error: no such module 'Foundation'
 9 | // This file contains the specific Foundation constructs we allow to use internally
10 |
11 | @_exported import struct Foundation.Calendar
   |                          `- error: no such module 'Foundation'
12 | @_exported import struct Foundation.Date
13 | @_exported import struct Foundation.TimeZone
[6/8] Compiling DateTime InternalUTCClock.swift
/host/spi-builder-workspace/Sources/DateTime/BenchmarkClock.swift:22:12: error: Unsupported Platform
 20 |     import Glibc
 21 | #else
 22 |     #error("Unsupported Platform")
    |            `- error: Unsupported Platform
 23 | #endif
 24 |
/host/spi-builder-workspace/Sources/DateTime/FoundationExports.swift:11:26: error: no such module 'Foundation'
 9 | // This file contains the specific Foundation constructs we allow to use internally
10 |
11 | @_exported import struct Foundation.Calendar
   |                          `- error: no such module 'Foundation'
12 | @_exported import struct Foundation.Date
13 | @_exported import struct Foundation.TimeZone
error: emit-module command failed with exit code 1 (use -v to see invocation)
[7/8] Emitting module DateTime
/host/spi-builder-workspace/Sources/DateTime/BenchmarkClock.swift:22:12: error: Unsupported Platform
 20 |     import Glibc
 21 | #else
 22 |     #error("Unsupported Platform")
    |            `- error: Unsupported Platform
 23 | #endif
 24 |
/host/spi-builder-workspace/Sources/DateTime/FoundationExports.swift:11:26: error: no such module 'Foundation'
 9 | // This file contains the specific Foundation constructs we allow to use internally
10 |
11 | @_exported import struct Foundation.Calendar
   |                          `- error: no such module 'Foundation'
12 | @_exported import struct Foundation.Date
13 | @_exported import struct Foundation.TimeZone
[8/8] Compiling DateTime BenchmarkClock.swift
/host/spi-builder-workspace/Sources/DateTime/BenchmarkClock.swift:22:12: error: Unsupported Platform
 20 |     import Glibc
 21 | #else
 22 |     #error("Unsupported Platform")
    |            `- error: Unsupported Platform
 23 | #endif
 24 |
/host/spi-builder-workspace/Sources/DateTime/BenchmarkClock.swift:71:20: error: Unsupported Platform
 69 |             return Duration(secondsComponent: seconds, attosecondsComponent: attoseconds)
 70 |         #else
 71 |             #error("Unsupported Platform")
    |                    `- error: Unsupported Platform
 72 |         #endif
 73 |     }
/host/spi-builder-workspace/Sources/DateTime/BenchmarkClock.swift:97:20: error: Unsupported Platform
 95 |                                                            attosecondsComponent: Int64(attoseconds)))
 96 |         #else
 97 |             #error("Unsupported Platform")
    |                    `- error: Unsupported Platform
 98 |         #endif
 99 |     }
/host/spi-builder-workspace/Sources/DateTime/FoundationExports.swift:11:26: error: no such module 'Foundation'
 9 | // This file contains the specific Foundation constructs we allow to use internally
10 |
11 | @_exported import struct Foundation.Calendar
   |                          `- error: no such module 'Foundation'
12 | @_exported import struct Foundation.Date
13 | @_exported import struct Foundation.TimeZone
BUILD FAILURE 6.2 wasm