The Swift Package Index logo.Swift Package Index

Build Information

Failed to build package-frostflake, reference main (6cece5), with Swift 6.1 for Wasm on 27 Mar 2026 20:21:01 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/swiftpackageindex/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.69.2
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/ordo-one/package-frostflake.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-frostflake
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at 6cece53 ci: 🔄 synced local '.swift-version' with remote 'dotfiles/swift-version'
Cloned https://github.com/ordo-one/package-frostflake.git
Revision (git rev-parse @):
6cece534935797b3bf9c0d125a5f1febc4f6b7b9
SPI manifest file found: $PWD/.spi.yml
SUCCESS checkout https://github.com/ordo-one/package-frostflake.git at main
========================================
Build
========================================
Selected platform:         wasm
Swift version:             6.1
Building package at path:  $PWD
https://github.com/ordo-one/package-frostflake.git
https://github.com/ordo-one/package-frostflake.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
  "dependencies" : [
    {
      "identity" : "swift-argument-parser",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "1.0.0",
            "upper_bound" : "2.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/apple/swift-argument-parser"
    },
    {
      "identity" : "swift-system",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "1.0.0",
            "upper_bound" : "2.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/apple/swift-system"
    },
    {
      "identity" : "swift-docc-plugin",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "1.0.0",
            "upper_bound" : "2.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/apple/swift-docc-plugin"
    }
  ],
  "manifest_display_name" : "package-frostflake",
  "name" : "package-frostflake",
  "path" : "/host/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "macos",
      "version" : "15.0"
    },
    {
      "name" : "ios",
      "version" : "18.0"
    }
  ],
  "products" : [
    {
      "name" : "Frostflake",
      "targets" : [
        "Frostflake"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    },
    {
      "name" : "flake",
      "targets" : [
        "FrostflakeUtility"
      ],
      "type" : {
        "executable" : null
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "FrostflakeUtility",
      "module_type" : "SwiftTarget",
      "name" : "FrostflakeUtility",
      "path" : "Sources/FrostflakeUtility",
      "product_dependencies" : [
        "ArgumentParser",
        "SystemPackage"
      ],
      "product_memberships" : [
        "flake"
      ],
      "sources" : [
        "FrostflakeUtility.swift"
      ],
      "target_dependencies" : [
        "Frostflake"
      ],
      "type" : "executable"
    },
    {
      "c99name" : "FrostflakeTests",
      "module_type" : "SwiftTarget",
      "name" : "FrostflakeTests",
      "path" : "Tests/FrostflakeTests",
      "sources" : [
        "EpochDateTime.swift",
        "FrostflakeTests.swift",
        "SharedGeneratorSuiteTrait.swift",
        "SharedGeneratorTests.swift"
      ],
      "target_dependencies" : [
        "FrostflakeUtility",
        "Frostflake"
      ],
      "type" : "test"
    },
    {
      "c99name" : "Frostflake",
      "module_type" : "SwiftTarget",
      "name" : "Frostflake",
      "path" : "Sources/Frostflake",
      "product_memberships" : [
        "Frostflake",
        "flake"
      ],
      "sources" : [
        "Frostflake.swift",
        "FrostflakeDefinitions.swift",
        "FrostflakeHelpers.swift",
        "FrostflakeIdentifier+Base58.swift",
        "FrostflakeIdentifier.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "6.0"
}
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/swiftpackageindex/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats 2>&1
wasm-6.1-latest: Pulling from swiftpackageindex/spi-images
Digest: sha256:c3bd0c8eb125dea46564a1eb8b09ee779ba7ae350b1ee58b5e9d6ff6c39cef37
Status: Image is up to date for registry.gitlab.com/swiftpackageindex/spi-images:wasm-6.1-latest
Fetching https://github.com/apple/swift-system
Fetching https://github.com/apple/swift-argument-parser
Fetching https://github.com/apple/swift-docc-plugin
[1/2171] Fetching swift-docc-plugin
[240/19635] Fetching swift-docc-plugin, swift-argument-parser
[1136/25236] Fetching swift-docc-plugin, swift-argument-parser, swift-system
Fetched https://github.com/apple/swift-docc-plugin from cache (0.67s)
Fetched https://github.com/apple/swift-system from cache (0.78s)
Fetched https://github.com/apple/swift-argument-parser from cache (0.79s)
Computing version for https://github.com/apple/swift-docc-plugin
Computed https://github.com/apple/swift-docc-plugin at 1.4.6 (3.46s)
Fetching https://github.com/swiftlang/swift-docc-symbolkit
[1/3671] Fetching swift-docc-symbolkit
Fetched https://github.com/swiftlang/swift-docc-symbolkit from cache (0.42s)
Computing version for https://github.com/swiftlang/swift-docc-symbolkit
Computed https://github.com/swiftlang/swift-docc-symbolkit at 1.0.0 (1.08s)
Computing version for https://github.com/apple/swift-system
Computed https://github.com/apple/swift-system at 1.6.4 (0.62s)
Computing version for https://github.com/apple/swift-argument-parser
Computed https://github.com/apple/swift-argument-parser at 1.7.1 (0.58s)
Creating working copy for https://github.com/apple/swift-docc-plugin
Working copy of https://github.com/apple/swift-docc-plugin resolved at 1.4.6
Creating working copy for https://github.com/apple/swift-argument-parser
Working copy of https://github.com/apple/swift-argument-parser resolved at 1.7.1
Creating working copy for https://github.com/apple/swift-system
Working copy of https://github.com/apple/swift-system resolved at 1.6.4
Creating working copy for https://github.com/swiftlang/swift-docc-symbolkit
Working copy of https://github.com/swiftlang/swift-docc-symbolkit resolved at 1.0.0
[1/1] Compiling plugin Swift-DocC Preview
[2/2] Compiling plugin Swift-DocC
[3/3] Compiling plugin GenerateManual
[4/4] Compiling plugin GenerateDoccReference
Building for debugging...
[4/18] Write sources
[9/18] Compiling CSystem shims.c
[10/18] Write swift-version-24593BA9C3E375BF.txt
[12/57] Compiling Frostflake FrostflakeIdentifier+Base58.swift
[13/57] Compiling Frostflake FrostflakeHelpers.swift
/host/spi-builder-workspace/Sources/Frostflake/FrostflakeHelpers.swift:14:12: error: Unsupported Platform
12 |     import Glibc
13 | #else
14 |     #error("Unsupported Platform")
   |            `- error: Unsupported Platform
15 | #endif
16 |
/host/spi-builder-workspace/Sources/Frostflake/FrostflakeHelpers.swift:29:34: error: cannot find type 'timespec' in scope
27 | }
28 |
29 | private func getCurrentTime() -> timespec {
   |                                  `- error: cannot find type 'timespec' in scope
30 |     var currentTime = timespec()
31 |     let result = clock_gettime(CLOCK_REALTIME, &currentTime)
/host/spi-builder-workspace/Sources/Frostflake/FrostflakeHelpers.swift:30:23: error: cannot find 'timespec' in scope
28 |
29 | private func getCurrentTime() -> timespec {
30 |     var currentTime = timespec()
   |                       `- error: cannot find 'timespec' in scope
31 |     let result = clock_gettime(CLOCK_REALTIME, &currentTime)
32 |
/host/spi-builder-workspace/Sources/Frostflake/FrostflakeHelpers.swift:31:18: error: cannot find 'clock_gettime' in scope
29 | private func getCurrentTime() -> timespec {
30 |     var currentTime = timespec()
31 |     let result = clock_gettime(CLOCK_REALTIME, &currentTime)
   |                  `- error: cannot find 'clock_gettime' in scope
32 |
33 |     guard result == 0 else {
/host/spi-builder-workspace/Sources/Frostflake/FrostflakeHelpers.swift:31:32: error: cannot find 'CLOCK_REALTIME' in scope
29 | private func getCurrentTime() -> timespec {
30 |     var currentTime = timespec()
31 |     let result = clock_gettime(CLOCK_REALTIME, &currentTime)
   |                                `- error: cannot find 'CLOCK_REALTIME' in scope
32 |
33 |     guard result == 0 else {
/host/spi-builder-workspace/Sources/Frostflake/FrostflakeHelpers.swift:34:78: error: cannot find 'errno' in scope
32 |
33 |     guard result == 0 else {
34 |         fatalError("Failed to get current time in clock_gettime(), errno = \(errno)")
   |                                                                              `- error: cannot find 'errno' in scope
35 |     }
36 |     return currentTime
[14/57] Compiling Frostflake FrostflakeIdentifier.swift
/host/spi-builder-workspace/Sources/Frostflake/FrostflakeIdentifier.swift:6:12: error: Unsupported Platform
 4 |     import Glibc
 5 | #else
 6 |     #error("Unsupported Platform")
   |            `- error: Unsupported Platform
 7 | #endif
 8 |
/host/spi-builder-workspace/Sources/Frostflake/FrostflakeIdentifier.swift:29:24: error: cannot find 'tm' in scope
27 |         let generatorIdentifier = (rawValue & 0xFFFF_FFFF) & (0xFFFF_FFFF >> Frostflake.sequenceNumberBits)
28 |
29 |         var tmStruct = tm()
   |                        `- error: cannot find 'tm' in scope
30 |         var time = Int(seconds)
31 |         gmtime_r(&time, &tmStruct)
/host/spi-builder-workspace/Sources/Frostflake/FrostflakeIdentifier.swift:31:9: error: cannot find 'gmtime_r' in scope
29 |         var tmStruct = tm()
30 |         var time = Int(seconds)
31 |         gmtime_r(&time, &tmStruct)
   |         `- error: cannot find 'gmtime_r' in scope
32 |         let year = Int(tmStruct.tm_year + 1_900)
33 |         let month = Int(tmStruct.tm_mon + 1)
[15/57] Compiling Frostflake FrostflakeDefinitions.swift
[16/57] Emitting module SystemPackage
[17/61] Compiling ArgumentParserToolInfo ToolInfo.swift
[18/61] Emitting module ArgumentParserToolInfo
[19/62] Compiling SystemPackage FilePathSyntax.swift
[20/62] Compiling SystemPackage FilePathTemp.swift
[21/62] Compiling SystemPackage FilePathTempPosix.swift
[22/62] Compiling SystemPackage FilePathTempWindows.swift
[23/62] Compiling SystemPackage Errno.swift
[24/62] Compiling SystemPackage ErrnoWindows.swift
[25/62] Compiling SystemPackage FileDescriptor.swift
[26/62] Compiling SystemPackage FileHelpers.swift
[27/62] Compiling SystemPackage FileOperations.swift
[28/62] Compiling SystemPackage FilePath.swift
[29/62] Compiling SystemPackage FilePathComponentView.swift
[30/62] Compiling SystemPackage FilePathComponents.swift
[31/62] Compiling SystemPackage FilePathParsing.swift
[32/62] Compiling SystemPackage FilePathString.swift
[33/62] Wrapping AST for ArgumentParserToolInfo for debugging
[35/72] Compiling SystemPackage Constants.swift
[36/72] Compiling SystemPackage Exports.swift
[37/72] Compiling SystemPackage Mocking.swift
[38/72] Compiling SystemPackage RawBuffer.swift
[39/81] Compiling SystemPackage Syscalls.swift
[40/81] Compiling SystemPackage WindowsSyscallAdapters.swift
[41/81] Compiling SystemPackage MachPort.swift
[42/81] Compiling SystemPackage PlatformString.swift
[43/108] Compiling ArgumentParser Foundation.swift
[44/108] Compiling ArgumentParser Mutex.swift
[45/108] Compiling ArgumentParser Platform.swift
[46/108] Compiling ArgumentParser SequenceExtensions.swift
[47/108] Compiling ArgumentParser StringExtensions.swift
[48/108] Compiling ArgumentParser SwiftExtensions.swift
[49/108] Compiling ArgumentParser DumpHelpGenerator.swift
[50/108] Compiling ArgumentParser HelpCommand.swift
[51/108] Compiling ArgumentParser CommandParser.swift
[52/108] Compiling ArgumentParser InputKey.swift
[53/108] Compiling ArgumentParser InputOrigin.swift
[54/108] Compiling ArgumentParser Name.swift
[55/109] Wrapping AST for SystemPackage for debugging
error: emit-module command failed with exit code 1 (use -v to see invocation)
[57/109] Emitting module Frostflake
/host/spi-builder-workspace/Sources/Frostflake/FrostflakeHelpers.swift:14:12: error: Unsupported Platform
12 |     import Glibc
13 | #else
14 |     #error("Unsupported Platform")
   |            `- error: Unsupported Platform
15 | #endif
16 |
/host/spi-builder-workspace/Sources/Frostflake/FrostflakeHelpers.swift:29:34: error: cannot find type 'timespec' in scope
27 | }
28 |
29 | private func getCurrentTime() -> timespec {
   |                                  `- error: cannot find type 'timespec' in scope
30 |     var currentTime = timespec()
31 |     let result = clock_gettime(CLOCK_REALTIME, &currentTime)
/host/spi-builder-workspace/Sources/Frostflake/FrostflakeIdentifier.swift:6:12: error: Unsupported Platform
 4 |     import Glibc
 5 | #else
 6 |     #error("Unsupported Platform")
   |            `- error: Unsupported Platform
 7 | #endif
 8 |
[58/109] Compiling Frostflake Frostflake.swift
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/swiftpackageindex/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1
wasm-6.1-latest: Pulling from swiftpackageindex/spi-images
Digest: sha256:c3bd0c8eb125dea46564a1eb8b09ee779ba7ae350b1ee58b5e9d6ff6c39cef37
Status: Image is up to date for registry.gitlab.com/swiftpackageindex/spi-images:wasm-6.1-latest
[0/1] Planning build
[1/1] Compiling plugin Swift-DocC Preview
[2/2] Compiling plugin Swift-DocC
[3/3] Compiling plugin GenerateManual
[4/4] Compiling plugin GenerateDoccReference
Building for debugging...
[4/12] Write swift-version-24593BA9C3E375BF.txt
[6/43] Compiling Frostflake FrostflakeHelpers.swift
/host/spi-builder-workspace/Sources/Frostflake/FrostflakeHelpers.swift:14:12: error: Unsupported Platform
12 |     import Glibc
13 | #else
14 |     #error("Unsupported Platform")
   |            `- error: Unsupported Platform
15 | #endif
16 |
/host/spi-builder-workspace/Sources/Frostflake/FrostflakeHelpers.swift:29:34: error: cannot find type 'timespec' in scope
27 | }
28 |
29 | private func getCurrentTime() -> timespec {
   |                                  `- error: cannot find type 'timespec' in scope
30 |     var currentTime = timespec()
31 |     let result = clock_gettime(CLOCK_REALTIME, &currentTime)
/host/spi-builder-workspace/Sources/Frostflake/FrostflakeHelpers.swift:30:23: error: cannot find 'timespec' in scope
28 |
29 | private func getCurrentTime() -> timespec {
30 |     var currentTime = timespec()
   |                       `- error: cannot find 'timespec' in scope
31 |     let result = clock_gettime(CLOCK_REALTIME, &currentTime)
32 |
/host/spi-builder-workspace/Sources/Frostflake/FrostflakeHelpers.swift:31:18: error: cannot find 'clock_gettime' in scope
29 | private func getCurrentTime() -> timespec {
30 |     var currentTime = timespec()
31 |     let result = clock_gettime(CLOCK_REALTIME, &currentTime)
   |                  `- error: cannot find 'clock_gettime' in scope
32 |
33 |     guard result == 0 else {
/host/spi-builder-workspace/Sources/Frostflake/FrostflakeHelpers.swift:31:32: error: cannot find 'CLOCK_REALTIME' in scope
29 | private func getCurrentTime() -> timespec {
30 |     var currentTime = timespec()
31 |     let result = clock_gettime(CLOCK_REALTIME, &currentTime)
   |                                `- error: cannot find 'CLOCK_REALTIME' in scope
32 |
33 |     guard result == 0 else {
/host/spi-builder-workspace/Sources/Frostflake/FrostflakeHelpers.swift:34:78: error: cannot find 'errno' in scope
32 |
33 |     guard result == 0 else {
34 |         fatalError("Failed to get current time in clock_gettime(), errno = \(errno)")
   |                                                                              `- error: cannot find 'errno' in scope
35 |     }
36 |     return currentTime
[7/51] Compiling Frostflake FrostflakeDefinitions.swift
[8/51] Compiling Frostflake FrostflakeIdentifier+Base58.swift
[9/51] Compiling Frostflake FrostflakeIdentifier.swift
/host/spi-builder-workspace/Sources/Frostflake/FrostflakeIdentifier.swift:6:12: error: Unsupported Platform
 4 |     import Glibc
 5 | #else
 6 |     #error("Unsupported Platform")
   |            `- error: Unsupported Platform
 7 | #endif
 8 |
/host/spi-builder-workspace/Sources/Frostflake/FrostflakeIdentifier.swift:29:24: error: cannot find 'tm' in scope
27 |         let generatorIdentifier = (rawValue & 0xFFFF_FFFF) & (0xFFFF_FFFF >> Frostflake.sequenceNumberBits)
28 |
29 |         var tmStruct = tm()
   |                        `- error: cannot find 'tm' in scope
30 |         var time = Int(seconds)
31 |         gmtime_r(&time, &tmStruct)
/host/spi-builder-workspace/Sources/Frostflake/FrostflakeIdentifier.swift:31:9: error: cannot find 'gmtime_r' in scope
29 |         var tmStruct = tm()
30 |         var time = Int(seconds)
31 |         gmtime_r(&time, &tmStruct)
   |         `- error: cannot find 'gmtime_r' in scope
32 |         let year = Int(tmStruct.tm_year + 1_900)
33 |         let month = Int(tmStruct.tm_mon + 1)
[10/51] Compiling SystemPackage IORing.swift
[11/51] Compiling SystemPackage RawIORequest.swift
[12/51] Compiling SystemPackage Backcompat.swift
[13/51] Compiling SystemPackage CInterop.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[14/55] Compiling Frostflake Frostflake.swift
[15/55] Emitting module Frostflake
/host/spi-builder-workspace/Sources/Frostflake/FrostflakeHelpers.swift:14:12: error: Unsupported Platform
12 |     import Glibc
13 | #else
14 |     #error("Unsupported Platform")
   |            `- error: Unsupported Platform
15 | #endif
16 |
/host/spi-builder-workspace/Sources/Frostflake/FrostflakeHelpers.swift:29:34: error: cannot find type 'timespec' in scope
27 | }
28 |
29 | private func getCurrentTime() -> timespec {
   |                                  `- error: cannot find type 'timespec' in scope
30 |     var currentTime = timespec()
31 |     let result = clock_gettime(CLOCK_REALTIME, &currentTime)
/host/spi-builder-workspace/Sources/Frostflake/FrostflakeIdentifier.swift:6:12: error: Unsupported Platform
 4 |     import Glibc
 5 | #else
 6 |     #error("Unsupported Platform")
   |            `- error: Unsupported Platform
 7 | #endif
 8 |
[16/55] Emitting module ArgumentParserToolInfo
BUILD FAILURE 6.1 wasm