Build Information
Failed to build package-frostflake, reference 6.0.0 (00a9e6
), with Swift 6.1 for Wasm on 29 May 2025 19:26:42 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.1-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1
Build Log
========================================
RunAll
========================================
Builder version: 4.63.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/ordo-one/package-frostflake.git
Reference: 6.0.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/ordo-one/package-frostflake
* tag 6.0.0 -> FETCH_HEAD
HEAD is now at 00a9e64 feat(major): Sync up with latest internal implementation (#69)
Cloned https://github.com/ordo-one/package-frostflake.git
Revision (git rev-parse @):
00a9e6444ce2ae013521b8faab635a36dbb214c7
SPI manifest file found: $PWD/.spi.yml
SUCCESS checkout https://github.com/ordo-one/package-frostflake.git at 6.0.0
========================================
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-system",
"requirement" : {
"range" : [
{
"lower_bound" : "1.0.0",
"upper_bound" : "2.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/apple/swift-system"
},
{
"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-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" : "13.0"
},
{
"name" : "ios",
"version" : "16.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"
],
"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",
"Lock.swift"
],
"type" : "library"
}
],
"tools_version" : "5.7"
}
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-2":/host -w "$PWD" registry.gitlab.com/finestructure/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 finestructure/spi-images
Digest: sha256:7e37457820e5f17452a98118754f345f2619722c485f2db0d8b666940a83afd2
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest
Fetching https://github.com/apple/swift-argument-parser
Fetching https://github.com/apple/swift-docc-plugin
Fetching https://github.com/apple/swift-system
[1/2049] Fetching swift-docc-plugin
[247/6440] Fetching swift-docc-plugin, swift-system
Fetched https://github.com/apple/swift-system from cache (0.37s)
[1/15379] Fetching swift-argument-parser
Fetched https://github.com/apple/swift-docc-plugin from cache (0.93s)
Fetched https://github.com/apple/swift-argument-parser from cache (0.94s)
Computing version for https://github.com/apple/swift-docc-plugin
Computed https://github.com/apple/swift-docc-plugin at 1.4.3 (1.50s)
Fetching https://github.com/swiftlang/swift-docc-symbolkit
[1/3391] Fetching swift-docc-symbolkit
Fetched https://github.com/swiftlang/swift-docc-symbolkit from cache (0.36s)
Computing version for https://github.com/swiftlang/swift-docc-symbolkit
Computed https://github.com/swiftlang/swift-docc-symbolkit at 1.0.0 (0.91s)
Computing version for https://github.com/apple/swift-system
Computed https://github.com/apple/swift-system at 1.5.0 (0.45s)
Computing version for https://github.com/apple/swift-argument-parser
Computed https://github.com/apple/swift-argument-parser at 1.5.1 (0.62s)
Creating working copy for https://github.com/apple/swift-argument-parser
Working copy of https://github.com/apple/swift-argument-parser resolved at 1.5.1
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.3
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
Creating working copy for https://github.com/apple/swift-system
Working copy of https://github.com/apple/swift-system resolved at 1.5.0
[1/1] Compiling plugin GenerateManual
[2/2] Compiling plugin Swift-DocC Preview
[3/3] Compiling plugin Swift-DocC
Building for debugging...
[3/17] Write sources
[8/17] Compiling CSystem shims.c
[8/17] Write swift-version-24593BA9C3E375BF.txt
error: emit-module command failed with exit code 1 (use -v to see invocation)
[11/54] Emitting module SystemPackage
/host/spi-builder-workspace/.build/checkouts/swift-system/Sources/System/Internals/Syscalls.swift:197:57: error: cannot find type 'DIR' in scope
195 | internal typealias system_DIRPtr = OpaquePointer
196 | #else
197 | internal typealias system_DIRPtr = UnsafeMutablePointer<DIR>
| `- error: cannot find type 'DIR' in scope
198 | #endif
199 |
/host/spi-builder-workspace/.build/checkouts/swift-system/Sources/System/Internals/Syscalls.swift:192:30: error: cannot find 'DT_DIR' in scope
190 | #if !os(Windows)
191 | internal let SYSTEM_AT_REMOVE_DIR = AT_REMOVEDIR
192 | internal let SYSTEM_DT_DIR = DT_DIR
| `- error: cannot find 'DT_DIR' in scope
193 | internal typealias system_dirent = dirent
194 | #if os(Linux) || os(Android) || os(FreeBSD) || os(OpenBSD)
[12/57] Compiling Frostflake FrostflakeDefinitions.swift
[13/57] Compiling Frostflake Lock.swift
/host/spi-builder-workspace/Sources/Frostflake/Lock.swift:18:12: error: Unsupported Platform
16 | import Glibc
17 | #else
18 | #error("Unsupported Platform")
| `- error: Unsupported Platform
19 | #endif
20 |
/host/spi-builder-workspace/Sources/Frostflake/Lock.swift:25:53: error: cannot find type 'pthread_mutex_t' in scope
23 | fileprivate let mutex = UnsafeMutablePointer<os_unfair_lock>.allocate(capacity: 1)
24 | #else
25 | fileprivate let mutex: UnsafeMutablePointer<pthread_mutex_t> =
| `- error: cannot find type 'pthread_mutex_t' in scope
26 | UnsafeMutablePointer.allocate(capacity: 1)
27 | #endif
/host/spi-builder-workspace/Sources/Frostflake/Lock.swift:34:24: error: cannot find 'pthread_mutexattr_t' in scope
32 | mutex.initialize(to: os_unfair_lock())
33 | #else
34 | var attr = pthread_mutexattr_t()
| `- error: cannot find 'pthread_mutexattr_t' in scope
35 | pthread_mutexattr_init(&attr)
36 |
/host/spi-builder-workspace/Sources/Frostflake/Lock.swift:35:13: error: cannot find 'pthread_mutexattr_init' in scope
33 | #else
34 | var attr = pthread_mutexattr_t()
35 | pthread_mutexattr_init(&attr)
| `- error: cannot find 'pthread_mutexattr_init' in scope
36 |
37 | let err = pthread_mutex_init(mutex, &attr)
/host/spi-builder-workspace/Sources/Frostflake/Lock.swift:37:23: error: cannot find 'pthread_mutex_init' in scope
35 | pthread_mutexattr_init(&attr)
36 |
37 | let err = pthread_mutex_init(mutex, &attr)
| `- error: cannot find 'pthread_mutex_init' in scope
38 | precondition(err == 0, "\(#function) failed in pthread_mutex with error \(err)")
39 | #endif
/host/spi-builder-workspace/Sources/Frostflake/Lock.swift:46:23: error: cannot find 'pthread_mutex_destroy' in scope
44 | mutex.deinitialize(count: 1)
45 | #else
46 | let err = pthread_mutex_destroy(self.mutex)
| `- error: cannot find 'pthread_mutex_destroy' in scope
47 | precondition(err == 0, "\(#function) failed in pthread_mutex with error \(err)")
48 | #endif
/host/spi-builder-workspace/Sources/Frostflake/Lock.swift:60:23: error: cannot find 'pthread_mutex_lock' in scope
58 | os_unfair_lock_lock(mutex)
59 | #else
60 | let err = pthread_mutex_lock(mutex)
| `- error: cannot find 'pthread_mutex_lock' in scope
61 | precondition(err == 0, "\(#function) failed in pthread_mutex with error \(err)")
62 | #endif
/host/spi-builder-workspace/Sources/Frostflake/Lock.swift:73:23: error: cannot find 'pthread_mutex_unlock' in scope
71 | os_unfair_lock_unlock(mutex)
72 | #else
73 | let err = pthread_mutex_unlock(mutex)
| `- error: cannot find 'pthread_mutex_unlock' in scope
74 | precondition(err == 0, "\(#function) failed in pthread_mutex with error \(err)")
75 | #endif
[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 Frostflake.swift
/host/spi-builder-workspace/Sources/Frostflake/Frostflake.swift:18:24: warning: static property 'privateSharedGenerator' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
16 |
17 | // Class variables and functions
18 | private static var privateSharedGenerator: Frostflake?
| |- warning: static property 'privateSharedGenerator' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'privateSharedGenerator' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'privateSharedGenerator' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
19 |
20 | /// Convenience static variable when using the same generator in many places
/host/spi-builder-workspace/Sources/Frostflake/Lock.swift:25:53: error: cannot find type 'pthread_mutex_t' in scope
23 | fileprivate let mutex = UnsafeMutablePointer<os_unfair_lock>.allocate(capacity: 1)
24 | #else
25 | fileprivate let mutex: UnsafeMutablePointer<pthread_mutex_t> =
| `- error: cannot find type 'pthread_mutex_t' in scope
26 | UnsafeMutablePointer.allocate(capacity: 1)
27 | #endif
error: emit-module command failed with exit code 1 (use -v to see invocation)
[16/57] Emitting module Frostflake
/host/spi-builder-workspace/Sources/Frostflake/Frostflake.swift:18:24: warning: static property 'privateSharedGenerator' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
16 |
17 | // Class variables and functions
18 | private static var privateSharedGenerator: Frostflake?
| |- warning: static property 'privateSharedGenerator' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'privateSharedGenerator' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'privateSharedGenerator' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
19 |
20 | /// Convenience static variable when using the same generator in many places
/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/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/Lock.swift:18:12: error: Unsupported Platform
16 | import Glibc
17 | #else
18 | #error("Unsupported Platform")
| `- error: Unsupported Platform
19 | #endif
20 |
/host/spi-builder-workspace/Sources/Frostflake/Lock.swift:25:53: error: cannot find type 'pthread_mutex_t' in scope
23 | fileprivate let mutex = UnsafeMutablePointer<os_unfair_lock>.allocate(capacity: 1)
24 | #else
25 | fileprivate let mutex: UnsafeMutablePointer<pthread_mutex_t> =
| `- error: cannot find type 'pthread_mutex_t' in scope
26 | UnsafeMutablePointer.allocate(capacity: 1)
27 | #endif
[17/57] Compiling SystemPackage Errno.swift
[18/57] Compiling SystemPackage ErrnoWindows.swift
[19/57] Compiling SystemPackage FileDescriptor.swift
[20/57] Compiling SystemPackage FileHelpers.swift
[21/57] Emitting module ArgumentParserToolInfo
[22/57] Compiling ArgumentParserToolInfo ToolInfo.swift
[23/58] Compiling Frostflake FrostflakeIdentifier+Base58.swift
[24/58] 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:20:23: error: cannot find 'timespec' in scope
18 | /// 32 bit number of seconds gives us ~136 years
19 | func currentSecondsSinceEpoch() -> UInt32 {
20 | var currentTime = timespec()
| `- error: cannot find 'timespec' in scope
21 | let result = clock_gettime(CLOCK_REALTIME, ¤tTime)
22 |
/host/spi-builder-workspace/Sources/Frostflake/FrostflakeHelpers.swift:21:18: error: cannot find 'clock_gettime' in scope
19 | func currentSecondsSinceEpoch() -> UInt32 {
20 | var currentTime = timespec()
21 | let result = clock_gettime(CLOCK_REALTIME, ¤tTime)
| `- error: cannot find 'clock_gettime' in scope
22 |
23 | guard result == 0 else {
/host/spi-builder-workspace/Sources/Frostflake/FrostflakeHelpers.swift:21:32: error: cannot find 'CLOCK_REALTIME' in scope
19 | func currentSecondsSinceEpoch() -> UInt32 {
20 | var currentTime = timespec()
21 | let result = clock_gettime(CLOCK_REALTIME, ¤tTime)
| `- error: cannot find 'CLOCK_REALTIME' in scope
22 |
23 | guard result == 0 else {
/host/spi-builder-workspace/Sources/Frostflake/FrostflakeHelpers.swift:24:78: error: cannot find 'errno' in scope
22 |
23 | guard result == 0 else {
24 | fatalError("Failed to get current time in clock_gettime(), errno = \(errno)")
| `- error: cannot find 'errno' in scope
25 | }
26 |
[25/58] Compiling SystemPackage Util+StringArray.swift
[26/58] Compiling SystemPackage Util.swift
[27/58] Compiling SystemPackage UtilConsumers.swift
[28/58] Compiling SystemPackage FileOperations.swift
[29/58] Compiling SystemPackage FilePath.swift
[30/58] Compiling SystemPackage FilePathComponentView.swift
[31/58] Compiling SystemPackage FilePathComponents.swift
[33/58] Compiling SystemPackage MachPort.swift
[34/58] Compiling SystemPackage PlatformString.swift
[35/58] Compiling SystemPackage SystemString.swift
[36/58] Compiling SystemPackage FilePathParsing.swift
[37/58] Compiling SystemPackage FilePathString.swift
[38/58] Compiling SystemPackage FilePathSyntax.swift
[39/58] Compiling SystemPackage FilePathTemp.swift
[40/58] Compiling SystemPackage Mocking.swift
/host/spi-builder-workspace/.build/checkouts/swift-system/Sources/System/Internals/Syscalls.swift:192:30: error: cannot find 'DT_DIR' in scope
190 | #if !os(Windows)
191 | internal let SYSTEM_AT_REMOVE_DIR = AT_REMOVEDIR
192 | internal let SYSTEM_DT_DIR = DT_DIR
| `- error: cannot find 'DT_DIR' in scope
193 | internal typealias system_dirent = dirent
194 | #if os(Linux) || os(Android) || os(FreeBSD) || os(OpenBSD)
/host/spi-builder-workspace/.build/checkouts/swift-system/Sources/System/Internals/Syscalls.swift:197:57: error: cannot find type 'DIR' in scope
195 | internal typealias system_DIRPtr = OpaquePointer
196 | #else
197 | internal typealias system_DIRPtr = UnsafeMutablePointer<DIR>
| `- error: cannot find type 'DIR' in scope
198 | #endif
199 |
/host/spi-builder-workspace/.build/checkouts/swift-system/Sources/System/Internals/Syscalls.swift:252:10: error: cannot find 'umask' in scope
250 | _ mode: CInterop.Mode
251 | ) -> CInterop.Mode {
252 | return umask(mode)
| `- error: cannot find 'umask' in scope
253 | }
254 |
[41/58] Compiling SystemPackage RawBuffer.swift
/host/spi-builder-workspace/.build/checkouts/swift-system/Sources/System/Internals/Syscalls.swift:192:30: error: cannot find 'DT_DIR' in scope
190 | #if !os(Windows)
191 | internal let SYSTEM_AT_REMOVE_DIR = AT_REMOVEDIR
192 | internal let SYSTEM_DT_DIR = DT_DIR
| `- error: cannot find 'DT_DIR' in scope
193 | internal typealias system_dirent = dirent
194 | #if os(Linux) || os(Android) || os(FreeBSD) || os(OpenBSD)
/host/spi-builder-workspace/.build/checkouts/swift-system/Sources/System/Internals/Syscalls.swift:197:57: error: cannot find type 'DIR' in scope
195 | internal typealias system_DIRPtr = OpaquePointer
196 | #else
197 | internal typealias system_DIRPtr = UnsafeMutablePointer<DIR>
| `- error: cannot find type 'DIR' in scope
198 | #endif
199 |
/host/spi-builder-workspace/.build/checkouts/swift-system/Sources/System/Internals/Syscalls.swift:252:10: error: cannot find 'umask' in scope
250 | _ mode: CInterop.Mode
251 | ) -> CInterop.Mode {
252 | return umask(mode)
| `- error: cannot find 'umask' in scope
253 | }
254 |
[42/58] Compiling SystemPackage Syscalls.swift
/host/spi-builder-workspace/.build/checkouts/swift-system/Sources/System/Internals/Syscalls.swift:192:30: error: cannot find 'DT_DIR' in scope
190 | #if !os(Windows)
191 | internal let SYSTEM_AT_REMOVE_DIR = AT_REMOVEDIR
192 | internal let SYSTEM_DT_DIR = DT_DIR
| `- error: cannot find 'DT_DIR' in scope
193 | internal typealias system_dirent = dirent
194 | #if os(Linux) || os(Android) || os(FreeBSD) || os(OpenBSD)
/host/spi-builder-workspace/.build/checkouts/swift-system/Sources/System/Internals/Syscalls.swift:197:57: error: cannot find type 'DIR' in scope
195 | internal typealias system_DIRPtr = OpaquePointer
196 | #else
197 | internal typealias system_DIRPtr = UnsafeMutablePointer<DIR>
| `- error: cannot find type 'DIR' in scope
198 | #endif
199 |
/host/spi-builder-workspace/.build/checkouts/swift-system/Sources/System/Internals/Syscalls.swift:252:10: error: cannot find 'umask' in scope
250 | _ mode: CInterop.Mode
251 | ) -> CInterop.Mode {
252 | return umask(mode)
| `- error: cannot find 'umask' in scope
253 | }
254 |
[43/58] Compiling SystemPackage WindowsSyscallAdapters.swift
/host/spi-builder-workspace/.build/checkouts/swift-system/Sources/System/Internals/Syscalls.swift:192:30: error: cannot find 'DT_DIR' in scope
190 | #if !os(Windows)
191 | internal let SYSTEM_AT_REMOVE_DIR = AT_REMOVEDIR
192 | internal let SYSTEM_DT_DIR = DT_DIR
| `- error: cannot find 'DT_DIR' in scope
193 | internal typealias system_dirent = dirent
194 | #if os(Linux) || os(Android) || os(FreeBSD) || os(OpenBSD)
/host/spi-builder-workspace/.build/checkouts/swift-system/Sources/System/Internals/Syscalls.swift:197:57: error: cannot find type 'DIR' in scope
195 | internal typealias system_DIRPtr = OpaquePointer
196 | #else
197 | internal typealias system_DIRPtr = UnsafeMutablePointer<DIR>
| `- error: cannot find type 'DIR' in scope
198 | #endif
199 |
/host/spi-builder-workspace/.build/checkouts/swift-system/Sources/System/Internals/Syscalls.swift:252:10: error: cannot find 'umask' in scope
250 | _ mode: CInterop.Mode
251 | ) -> CInterop.Mode {
252 | return umask(mode)
| `- error: cannot find 'umask' in scope
253 | }
254 |
[44/58] Compiling SystemPackage Backcompat.swift
[45/58] Compiling SystemPackage CInterop.swift
[46/58] Compiling SystemPackage Constants.swift
[47/58] Compiling SystemPackage Exports.swift
[48/58] Compiling SystemPackage FilePathTempPosix.swift
/host/spi-builder-workspace/.build/checkouts/swift-system/Sources/System/Internals/Syscalls.swift:197:57: error: cannot find type 'DIR' in scope
195 | internal typealias system_DIRPtr = OpaquePointer
196 | #else
197 | internal typealias system_DIRPtr = UnsafeMutablePointer<DIR>
| `- error: cannot find type 'DIR' in scope
198 | #endif
199 |
/host/spi-builder-workspace/.build/checkouts/swift-system/Sources/System/Internals/Syscalls.swift:192:30: error: cannot find 'DT_DIR' in scope
190 | #if !os(Windows)
191 | internal let SYSTEM_AT_REMOVE_DIR = AT_REMOVEDIR
192 | internal let SYSTEM_DT_DIR = DT_DIR
| `- error: cannot find 'DT_DIR' in scope
193 | internal typealias system_dirent = dirent
194 | #if os(Linux) || os(Android) || os(FreeBSD) || os(OpenBSD)
[49/58] Compiling SystemPackage FilePathTempWindows.swift
/host/spi-builder-workspace/.build/checkouts/swift-system/Sources/System/Internals/Syscalls.swift:197:57: error: cannot find type 'DIR' in scope
195 | internal typealias system_DIRPtr = OpaquePointer
196 | #else
197 | internal typealias system_DIRPtr = UnsafeMutablePointer<DIR>
| `- error: cannot find type 'DIR' in scope
198 | #endif
199 |
/host/spi-builder-workspace/.build/checkouts/swift-system/Sources/System/Internals/Syscalls.swift:192:30: error: cannot find 'DT_DIR' in scope
190 | #if !os(Windows)
191 | internal let SYSTEM_AT_REMOVE_DIR = AT_REMOVEDIR
192 | internal let SYSTEM_DT_DIR = DT_DIR
| `- error: cannot find 'DT_DIR' in scope
193 | internal typealias system_dirent = dirent
194 | #if os(Linux) || os(Android) || os(FreeBSD) || os(OpenBSD)
[50/58] Compiling SystemPackage FilePathWindows.swift
/host/spi-builder-workspace/.build/checkouts/swift-system/Sources/System/Internals/Syscalls.swift:197:57: error: cannot find type 'DIR' in scope
195 | internal typealias system_DIRPtr = OpaquePointer
196 | #else
197 | internal typealias system_DIRPtr = UnsafeMutablePointer<DIR>
| `- error: cannot find type 'DIR' in scope
198 | #endif
199 |
/host/spi-builder-workspace/.build/checkouts/swift-system/Sources/System/Internals/Syscalls.swift:192:30: error: cannot find 'DT_DIR' in scope
190 | #if !os(Windows)
191 | internal let SYSTEM_AT_REMOVE_DIR = AT_REMOVEDIR
192 | internal let SYSTEM_DT_DIR = DT_DIR
| `- error: cannot find 'DT_DIR' in scope
193 | internal typealias system_dirent = dirent
194 | #if os(Linux) || os(Android) || os(FreeBSD) || os(OpenBSD)
[51/58] Compiling SystemPackage FilePermissions.swift
/host/spi-builder-workspace/.build/checkouts/swift-system/Sources/System/Internals/Syscalls.swift:197:57: error: cannot find type 'DIR' in scope
195 | internal typealias system_DIRPtr = OpaquePointer
196 | #else
197 | internal typealias system_DIRPtr = UnsafeMutablePointer<DIR>
| `- error: cannot find type 'DIR' in scope
198 | #endif
199 |
/host/spi-builder-workspace/.build/checkouts/swift-system/Sources/System/Internals/Syscalls.swift:192:30: error: cannot find 'DT_DIR' in scope
190 | #if !os(Windows)
191 | internal let SYSTEM_AT_REMOVE_DIR = AT_REMOVEDIR
192 | internal let SYSTEM_DT_DIR = DT_DIR
| `- error: cannot find 'DT_DIR' in scope
193 | internal typealias system_dirent = dirent
194 | #if os(Linux) || os(Android) || os(FreeBSD) || os(OpenBSD)
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-2":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1
wasm-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:7e37457820e5f17452a98118754f345f2619722c485f2db0d8b666940a83afd2
Status: Image is up to date for registry.gitlab.com/finestructure/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
Building for debugging...
[3/11] Write swift-version-24593BA9C3E375BF.txt
[5/48] 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:20:23: error: cannot find 'timespec' in scope
18 | /// 32 bit number of seconds gives us ~136 years
19 | func currentSecondsSinceEpoch() -> UInt32 {
20 | var currentTime = timespec()
| `- error: cannot find 'timespec' in scope
21 | let result = clock_gettime(CLOCK_REALTIME, ¤tTime)
22 |
/host/spi-builder-workspace/Sources/Frostflake/FrostflakeHelpers.swift:21:18: error: cannot find 'clock_gettime' in scope
19 | func currentSecondsSinceEpoch() -> UInt32 {
20 | var currentTime = timespec()
21 | let result = clock_gettime(CLOCK_REALTIME, ¤tTime)
| `- error: cannot find 'clock_gettime' in scope
22 |
23 | guard result == 0 else {
/host/spi-builder-workspace/Sources/Frostflake/FrostflakeHelpers.swift:21:32: error: cannot find 'CLOCK_REALTIME' in scope
19 | func currentSecondsSinceEpoch() -> UInt32 {
20 | var currentTime = timespec()
21 | let result = clock_gettime(CLOCK_REALTIME, ¤tTime)
| `- error: cannot find 'CLOCK_REALTIME' in scope
22 |
23 | guard result == 0 else {
/host/spi-builder-workspace/Sources/Frostflake/FrostflakeHelpers.swift:24:78: error: cannot find 'errno' in scope
22 |
23 | guard result == 0 else {
24 | fatalError("Failed to get current time in clock_gettime(), errno = \(errno)")
| `- error: cannot find 'errno' in scope
25 | }
26 |
[6/48] Compiling Frostflake Lock.swift
/host/spi-builder-workspace/Sources/Frostflake/Lock.swift:18:12: error: Unsupported Platform
16 | import Glibc
17 | #else
18 | #error("Unsupported Platform")
| `- error: Unsupported Platform
19 | #endif
20 |
/host/spi-builder-workspace/Sources/Frostflake/Lock.swift:25:53: error: cannot find type 'pthread_mutex_t' in scope
23 | fileprivate let mutex = UnsafeMutablePointer<os_unfair_lock>.allocate(capacity: 1)
24 | #else
25 | fileprivate let mutex: UnsafeMutablePointer<pthread_mutex_t> =
| `- error: cannot find type 'pthread_mutex_t' in scope
26 | UnsafeMutablePointer.allocate(capacity: 1)
27 | #endif
/host/spi-builder-workspace/Sources/Frostflake/Lock.swift:34:24: error: cannot find 'pthread_mutexattr_t' in scope
32 | mutex.initialize(to: os_unfair_lock())
33 | #else
34 | var attr = pthread_mutexattr_t()
| `- error: cannot find 'pthread_mutexattr_t' in scope
35 | pthread_mutexattr_init(&attr)
36 |
/host/spi-builder-workspace/Sources/Frostflake/Lock.swift:35:13: error: cannot find 'pthread_mutexattr_init' in scope
33 | #else
34 | var attr = pthread_mutexattr_t()
35 | pthread_mutexattr_init(&attr)
| `- error: cannot find 'pthread_mutexattr_init' in scope
36 |
37 | let err = pthread_mutex_init(mutex, &attr)
/host/spi-builder-workspace/Sources/Frostflake/Lock.swift:37:23: error: cannot find 'pthread_mutex_init' in scope
35 | pthread_mutexattr_init(&attr)
36 |
37 | let err = pthread_mutex_init(mutex, &attr)
| `- error: cannot find 'pthread_mutex_init' in scope
38 | precondition(err == 0, "\(#function) failed in pthread_mutex with error \(err)")
39 | #endif
/host/spi-builder-workspace/Sources/Frostflake/Lock.swift:46:23: error: cannot find 'pthread_mutex_destroy' in scope
44 | mutex.deinitialize(count: 1)
45 | #else
46 | let err = pthread_mutex_destroy(self.mutex)
| `- error: cannot find 'pthread_mutex_destroy' in scope
47 | precondition(err == 0, "\(#function) failed in pthread_mutex with error \(err)")
48 | #endif
/host/spi-builder-workspace/Sources/Frostflake/Lock.swift:60:23: error: cannot find 'pthread_mutex_lock' in scope
58 | os_unfair_lock_lock(mutex)
59 | #else
60 | let err = pthread_mutex_lock(mutex)
| `- error: cannot find 'pthread_mutex_lock' in scope
61 | precondition(err == 0, "\(#function) failed in pthread_mutex with error \(err)")
62 | #endif
/host/spi-builder-workspace/Sources/Frostflake/Lock.swift:73:23: error: cannot find 'pthread_mutex_unlock' in scope
71 | os_unfair_lock_unlock(mutex)
72 | #else
73 | let err = pthread_mutex_unlock(mutex)
| `- error: cannot find 'pthread_mutex_unlock' in scope
74 | precondition(err == 0, "\(#function) failed in pthread_mutex with error \(err)")
75 | #endif
[7/48] Compiling Frostflake FrostflakeDefinitions.swift
[8/48] 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)
[9/48] Compiling Frostflake FrostflakeIdentifier+Base58.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[10/48] 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/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/Lock.swift:18:12: error: Unsupported Platform
16 | import Glibc
17 | #else
18 | #error("Unsupported Platform")
| `- error: Unsupported Platform
19 | #endif
20 |
/host/spi-builder-workspace/Sources/Frostflake/Lock.swift:25:53: error: cannot find type 'pthread_mutex_t' in scope
23 | fileprivate let mutex = UnsafeMutablePointer<os_unfair_lock>.allocate(capacity: 1)
24 | #else
25 | fileprivate let mutex: UnsafeMutablePointer<pthread_mutex_t> =
| `- error: cannot find type 'pthread_mutex_t' in scope
26 | UnsafeMutablePointer.allocate(capacity: 1)
27 | #endif
[11/48] Compiling Frostflake Frostflake.swift
/host/spi-builder-workspace/Sources/Frostflake/Lock.swift:25:53: error: cannot find type 'pthread_mutex_t' in scope
23 | fileprivate let mutex = UnsafeMutablePointer<os_unfair_lock>.allocate(capacity: 1)
24 | #else
25 | fileprivate let mutex: UnsafeMutablePointer<pthread_mutex_t> =
| `- error: cannot find type 'pthread_mutex_t' in scope
26 | UnsafeMutablePointer.allocate(capacity: 1)
27 | #endif
BUILD FAILURE 6.1 wasm