Build Information
Failed to build yswift, reference main (976d5a), with Swift 6.2 for Wasm on 20 Jun 2025 05:21:29 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4606859-3":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:wasm-6.2-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1Build Log
========================================
RunAll
========================================
Builder version: 4.64.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/ObuchiYuki/yswift.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/ObuchiYuki/yswift
* branch main -> FETCH_HEAD
* [new branch] main -> origin/main
HEAD is now at 976d5ae [fix] comment
Cloned https://github.com/ObuchiYuki/yswift.git
Revision (git rev-parse @):
976d5ae49522bac2e205bb29447dcd3ca516d3fa
SUCCESS checkout https://github.com/ObuchiYuki/yswift.git at main
========================================
Build
========================================
Selected platform: wasm
Swift version: 6.2
Building package at path: $PWD
https://github.com/ObuchiYuki/yswift.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-3":/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
Fetching https://github.com/ObuchiYuki/lib0-swift.git
Fetching https://github.com/ObuchiYuki/Promise.git
[1/1316] Fetching promise
[989/1478] Fetching promise, lib0-swift
Fetched https://github.com/ObuchiYuki/lib0-swift.git from cache (0.40s)
Fetched https://github.com/ObuchiYuki/Promise.git from cache (0.40s)
Computing version for https://github.com/ObuchiYuki/lib0-swift.git
Computed https://github.com/ObuchiYuki/lib0-swift.git at 1.0.4 (1.04s)
Computing version for https://github.com/ObuchiYuki/Promise.git
Computed https://github.com/ObuchiYuki/Promise.git at 1.3.0 (0.72s)
Creating working copy for https://github.com/ObuchiYuki/lib0-swift.git
Working copy of https://github.com/ObuchiYuki/lib0-swift.git resolved at 1.0.4
Creating working copy for https://github.com/ObuchiYuki/Promise.git
Working copy of https://github.com/ObuchiYuki/Promise.git resolved at 1.3.0
warning: 'spi-builder-workspace': found 1 file(s) which are unhandled; explicitly declare them as resources or exclude from the target
/host/spi-builder-workspace/Sources/yswift/Object/YXmlFragment.swift.dontimplement
Building for debugging...
[0/4] Write sources
[3/4] Write swift-version-24593BA9C3E375BF.txt
[5/27] Compiling Promise Promise+Operators.swift
/host/spi-builder-workspace/.build/checkouts/Promise/Sources/Promise/Lock.swift:13:8: error: Unsupported platform
11 | import Glibc // for Linux
12 | #else
13 | #error("Unsupported platform")
| `- error: Unsupported platform
14 | #endif
15 |
[6/27] Compiling Promise Promise+OptionalResolve.swift
/host/spi-builder-workspace/.build/checkouts/Promise/Sources/Promise/Lock.swift:13:8: error: Unsupported platform
11 | import Glibc // for Linux
12 | #else
13 | #error("Unsupported platform")
| `- error: Unsupported platform
14 | #endif
15 |
error: emit-module command failed with exit code 1 (use -v to see invocation)
[7/29] Emitting module Promise
/host/spi-builder-workspace/.build/checkouts/Promise/Sources/Promise/Lock.swift:13:8: error: Unsupported platform
11 | import Glibc // for Linux
12 | #else
13 | #error("Unsupported platform")
| `- error: Unsupported platform
14 | #endif
15 |
/host/spi-builder-workspace/.build/checkouts/Promise/Sources/Promise/Lock.swift:18:54: error: cannot find type 'pthread_mutexattr_t' in scope
16 | @usableFromInline final class Lock {
17 | #if DEBUG
18 | @usableFromInline static let attr: UnsafePointer<pthread_mutexattr_t> = {
| `- error: cannot find type 'pthread_mutexattr_t' in scope
19 | let attr = UnsafeMutablePointer<pthread_mutexattr_t>.allocate(capacity: 1)
20 | _HANDLE_PTHREAD_CALL(pthread_mutexattr_init(attr), "pthread_mutexattr_init")
/host/spi-builder-workspace/.build/checkouts/Promise/Sources/Promise/Lock.swift:26:35: error: cannot find 'pthread_mutex_t' in scope
24 | #endif
25 |
26 | @usableFromInline var mutex = pthread_mutex_t()
| `- error: cannot find 'pthread_mutex_t' in scope
27 |
28 | @inlinable @inline(__always)
/host/spi-builder-workspace/.build/checkouts/Promise/Sources/Promise/Lock.swift:51:41: error: cannot find type 'pthread_mutexattr_t' in scope
49 | @usableFromInline final class RecursiveLock {
50 | @usableFromInline static let attr = {
51 | let attr = UnsafeMutablePointer<pthread_mutexattr_t>.allocate(capacity: 1)
| `- error: cannot find type 'pthread_mutexattr_t' in scope
52 | _HANDLE_PTHREAD_CALL(pthread_mutexattr_init(attr), "pthread_mutexattr_init")
53 | _HANDLE_PTHREAD_CALL(pthread_mutexattr_settype(attr, PTHREAD_MUTEX_RECURSIVE), "pthread_mutexattr_settype")
/host/spi-builder-workspace/.build/checkouts/Promise/Sources/Promise/Lock.swift:52:30: error: cannot find 'pthread_mutexattr_init' in scope
50 | @usableFromInline static let attr = {
51 | let attr = UnsafeMutablePointer<pthread_mutexattr_t>.allocate(capacity: 1)
52 | _HANDLE_PTHREAD_CALL(pthread_mutexattr_init(attr), "pthread_mutexattr_init")
| `- error: cannot find 'pthread_mutexattr_init' in scope
53 | _HANDLE_PTHREAD_CALL(pthread_mutexattr_settype(attr, PTHREAD_MUTEX_RECURSIVE), "pthread_mutexattr_settype")
54 | return UnsafePointer(attr)
/host/spi-builder-workspace/.build/checkouts/Promise/Sources/Promise/Lock.swift:53:30: error: cannot find 'pthread_mutexattr_settype' in scope
51 | let attr = UnsafeMutablePointer<pthread_mutexattr_t>.allocate(capacity: 1)
52 | _HANDLE_PTHREAD_CALL(pthread_mutexattr_init(attr), "pthread_mutexattr_init")
53 | _HANDLE_PTHREAD_CALL(pthread_mutexattr_settype(attr, PTHREAD_MUTEX_RECURSIVE), "pthread_mutexattr_settype")
| `- error: cannot find 'pthread_mutexattr_settype' in scope
54 | return UnsafePointer(attr)
55 | }()
/host/spi-builder-workspace/.build/checkouts/Promise/Sources/Promise/Lock.swift:53:62: error: cannot find 'PTHREAD_MUTEX_RECURSIVE' in scope
51 | let attr = UnsafeMutablePointer<pthread_mutexattr_t>.allocate(capacity: 1)
52 | _HANDLE_PTHREAD_CALL(pthread_mutexattr_init(attr), "pthread_mutexattr_init")
53 | _HANDLE_PTHREAD_CALL(pthread_mutexattr_settype(attr, PTHREAD_MUTEX_RECURSIVE), "pthread_mutexattr_settype")
| `- error: cannot find 'PTHREAD_MUTEX_RECURSIVE' in scope
54 | return UnsafePointer(attr)
55 | }()
/host/spi-builder-workspace/.build/checkouts/Promise/Sources/Promise/Lock.swift:57:55: error: cannot find type 'pthread_mutex_t' in scope
55 | }()
56 |
57 | @usableFromInline var mutex: UnsafeMutablePointer<pthread_mutex_t>
| `- error: cannot find type 'pthread_mutex_t' in scope
58 |
59 | @inlinable @inline(__always)
/host/spi-builder-workspace/.build/checkouts/Promise/Sources/Promise/Lock.swift:30:30: error: cannot find 'pthread_mutex_init' in scope
28 | @inlinable @inline(__always)
29 | init() {
30 | _HANDLE_PTHREAD_CALL(pthread_mutex_init(&mutex, Lock.attr), "pthread_mutex_init")
| `- error: cannot find 'pthread_mutex_init' in scope
31 | }
32 |
/host/spi-builder-workspace/.build/checkouts/Promise/Sources/Promise/Lock.swift:35:30: error: cannot find 'pthread_mutex_destroy' in scope
33 | @inlinable @inline(__always)
34 | deinit {
35 | _HANDLE_PTHREAD_CALL(pthread_mutex_destroy(&mutex), "pthread_mutex_destroy")
| `- error: cannot find 'pthread_mutex_destroy' in scope
36 | }
37 |
/host/spi-builder-workspace/.build/checkouts/Promise/Sources/Promise/Lock.swift:40:30: error: cannot find 'pthread_mutex_lock' in scope
38 | @inlinable @inline(__always)
39 | func lock() {
40 | _HANDLE_PTHREAD_CALL(pthread_mutex_lock(&mutex), "pthread_mutex_lock")
| `- error: cannot find 'pthread_mutex_lock' in scope
41 | }
42 |
/host/spi-builder-workspace/.build/checkouts/Promise/Sources/Promise/Lock.swift:45:30: error: cannot find 'pthread_mutex_unlock' in scope
43 | @inlinable @inline(__always)
44 | func unlock() {
45 | _HANDLE_PTHREAD_CALL(pthread_mutex_unlock(&mutex), "pthread_mutex_unlock")
| `- error: cannot find 'pthread_mutex_unlock' in scope
46 | }
47 | }
/host/spi-builder-workspace/.build/checkouts/Promise/Sources/Promise/Lock.swift:61:43: error: cannot find type 'pthread_mutex_t' in scope
59 | @inlinable @inline(__always)
60 | init() {
61 | self.mutex = UnsafeMutablePointer<pthread_mutex_t>.allocate(capacity: 1)
| `- error: cannot find type 'pthread_mutex_t' in scope
62 | _HANDLE_PTHREAD_CALL(pthread_mutex_init(mutex, RecursiveLock.attr), "pthread_mutex_init")
63 | }
/host/spi-builder-workspace/.build/checkouts/Promise/Sources/Promise/Lock.swift:62:30: error: cannot find 'pthread_mutex_init' in scope
60 | init() {
61 | self.mutex = UnsafeMutablePointer<pthread_mutex_t>.allocate(capacity: 1)
62 | _HANDLE_PTHREAD_CALL(pthread_mutex_init(mutex, RecursiveLock.attr), "pthread_mutex_init")
| `- error: cannot find 'pthread_mutex_init' in scope
63 | }
64 |
/host/spi-builder-workspace/.build/checkouts/Promise/Sources/Promise/Lock.swift:67:30: error: cannot find 'pthread_mutex_destroy' in scope
65 | @inlinable @inline(__always)
66 | deinit {
67 | _HANDLE_PTHREAD_CALL(pthread_mutex_destroy(mutex), "pthread_mutex_destroy")
| `- error: cannot find 'pthread_mutex_destroy' in scope
68 | }
69 |
/host/spi-builder-workspace/.build/checkouts/Promise/Sources/Promise/Lock.swift:72:30: error: cannot find 'pthread_mutex_lock' in scope
70 | @inlinable @inline(__always)
71 | func lock() {
72 | _HANDLE_PTHREAD_CALL(pthread_mutex_lock(mutex), "pthread_mutex_lock")
| `- error: cannot find 'pthread_mutex_lock' in scope
73 | }
74 |
/host/spi-builder-workspace/.build/checkouts/Promise/Sources/Promise/Lock.swift:77:30: error: cannot find 'pthread_mutex_unlock' in scope
75 | @inlinable @inline(__always)
76 | func unlock() {
77 | _HANDLE_PTHREAD_CALL(pthread_mutex_unlock(mutex), "pthread_mutex_unlock")
| `- error: cannot find 'pthread_mutex_unlock' in scope
78 | }
79 | }
/host/spi-builder-workspace/.build/checkouts/Promise/Sources/Promise/Lock.swift:84:68: error: cannot find 'strerror' in scope
82 | func _HANDLE_PTHREAD_CALL(_ res: Int32, _ funcname: @autoclosure () -> StaticString) {
83 | if res != 0 {
84 | fatalError("\(funcname()) failed: \(String(validatingUTF8: strerror(res)) ?? "Unkown Error")")
| `- error: cannot find 'strerror' in scope
85 | }
86 | }
[8/29] Compiling lib0 LZEncoder.swift
/host/spi-builder-workspace/.build/checkouts/lib0-swift/Sources/lib0/Coder/LZCoder+Swift.swift:8:8: error: no such module 'Foundation'
6 | //
7 |
8 | import Foundation
| `- error: no such module 'Foundation'
9 |
10 | public typealias LZVariadicCodable = LZVariadicEncodable & LZVariadicDecodable
[9/29] Compiling lib0 LZObservableObject.swift
/host/spi-builder-workspace/.build/checkouts/lib0-swift/Sources/lib0/Coder/LZCoder+Swift.swift:8:8: error: no such module 'Foundation'
6 | //
7 |
8 | import Foundation
| `- error: no such module 'Foundation'
9 |
10 | public typealias LZVariadicCodable = LZVariadicEncodable & LZVariadicDecodable
[10/29] Compiling lib0 LZEncoder+Swift.swift
/host/spi-builder-workspace/.build/checkouts/lib0-swift/Sources/lib0/Coder/LZCoder+Swift.swift:8:8: error: no such module 'Foundation'
6 | //
7 |
8 | import Foundation
| `- error: no such module 'Foundation'
9 |
10 | public typealias LZVariadicCodable = LZVariadicEncodable & LZVariadicDecodable
[11/29] Compiling Promise Promise+Util.swift
/host/spi-builder-workspace/.build/checkouts/Promise/Sources/Promise/Lock.swift:13:8: error: Unsupported platform
11 | import Glibc // for Linux
12 | #else
13 | #error("Unsupported platform")
| `- error: Unsupported platform
14 | #endif
15 |
[12/29] Compiling Promise Promise.swift
/host/spi-builder-workspace/.build/checkouts/Promise/Sources/Promise/Lock.swift:13:8: error: Unsupported platform
11 | import Glibc // for Linux
12 | #else
13 | #error("Unsupported platform")
| `- error: Unsupported platform
14 | #endif
15 |
[13/30] Compiling Promise Promise+Cancel.swift
/host/spi-builder-workspace/.build/checkouts/Promise/Sources/Promise/Lock.swift:13:8: error: Unsupported platform
11 | import Glibc // for Linux
12 | #else
13 | #error("Unsupported platform")
| `- error: Unsupported platform
14 | #endif
15 |
[14/30] Compiling Promise Promise+Combination.swift
/host/spi-builder-workspace/.build/checkouts/Promise/Sources/Promise/Lock.swift:13:8: error: Unsupported platform
11 | import Glibc // for Linux
12 | #else
13 | #error("Unsupported platform")
| `- error: Unsupported platform
14 | #endif
15 |
[15/30] Compiling Promise Promise+Concurrency.swift
/host/spi-builder-workspace/.build/checkouts/Promise/Sources/Promise/Lock.swift:13:8: error: Unsupported platform
11 | import Glibc // for Linux
12 | #else
13 | #error("Unsupported platform")
| `- error: Unsupported platform
14 | #endif
15 |
/host/spi-builder-workspace/.build/checkouts/Promise/Sources/Promise/Lock.swift:18:54: error: cannot find type 'pthread_mutexattr_t' in scope
16 | @usableFromInline final class Lock {
17 | #if DEBUG
18 | @usableFromInline static let attr: UnsafePointer<pthread_mutexattr_t> = {
| `- error: cannot find type 'pthread_mutexattr_t' in scope
19 | let attr = UnsafeMutablePointer<pthread_mutexattr_t>.allocate(capacity: 1)
20 | _HANDLE_PTHREAD_CALL(pthread_mutexattr_init(attr), "pthread_mutexattr_init")
/host/spi-builder-workspace/.build/checkouts/Promise/Sources/Promise/Lock.swift:26:35: error: cannot find 'pthread_mutex_t' in scope
24 | #endif
25 |
26 | @usableFromInline var mutex = pthread_mutex_t()
| `- error: cannot find 'pthread_mutex_t' in scope
27 |
28 | @inlinable @inline(__always)
/host/spi-builder-workspace/.build/checkouts/Promise/Sources/Promise/Lock.swift:51:41: error: cannot find type 'pthread_mutexattr_t' in scope
49 | @usableFromInline final class RecursiveLock {
50 | @usableFromInline static let attr = {
51 | let attr = UnsafeMutablePointer<pthread_mutexattr_t>.allocate(capacity: 1)
| `- error: cannot find type 'pthread_mutexattr_t' in scope
52 | _HANDLE_PTHREAD_CALL(pthread_mutexattr_init(attr), "pthread_mutexattr_init")
53 | _HANDLE_PTHREAD_CALL(pthread_mutexattr_settype(attr, PTHREAD_MUTEX_RECURSIVE), "pthread_mutexattr_settype")
/host/spi-builder-workspace/.build/checkouts/Promise/Sources/Promise/Lock.swift:52:30: error: cannot find 'pthread_mutexattr_init' in scope
50 | @usableFromInline static let attr = {
51 | let attr = UnsafeMutablePointer<pthread_mutexattr_t>.allocate(capacity: 1)
52 | _HANDLE_PTHREAD_CALL(pthread_mutexattr_init(attr), "pthread_mutexattr_init")
| `- error: cannot find 'pthread_mutexattr_init' in scope
53 | _HANDLE_PTHREAD_CALL(pthread_mutexattr_settype(attr, PTHREAD_MUTEX_RECURSIVE), "pthread_mutexattr_settype")
54 | return UnsafePointer(attr)
/host/spi-builder-workspace/.build/checkouts/Promise/Sources/Promise/Lock.swift:53:30: error: cannot find 'pthread_mutexattr_settype' in scope
51 | let attr = UnsafeMutablePointer<pthread_mutexattr_t>.allocate(capacity: 1)
52 | _HANDLE_PTHREAD_CALL(pthread_mutexattr_init(attr), "pthread_mutexattr_init")
53 | _HANDLE_PTHREAD_CALL(pthread_mutexattr_settype(attr, PTHREAD_MUTEX_RECURSIVE), "pthread_mutexattr_settype")
| `- error: cannot find 'pthread_mutexattr_settype' in scope
54 | return UnsafePointer(attr)
55 | }()
/host/spi-builder-workspace/.build/checkouts/Promise/Sources/Promise/Lock.swift:53:62: error: cannot find 'PTHREAD_MUTEX_RECURSIVE' in scope
51 | let attr = UnsafeMutablePointer<pthread_mutexattr_t>.allocate(capacity: 1)
52 | _HANDLE_PTHREAD_CALL(pthread_mutexattr_init(attr), "pthread_mutexattr_init")
53 | _HANDLE_PTHREAD_CALL(pthread_mutexattr_settype(attr, PTHREAD_MUTEX_RECURSIVE), "pthread_mutexattr_settype")
| `- error: cannot find 'PTHREAD_MUTEX_RECURSIVE' in scope
54 | return UnsafePointer(attr)
55 | }()
/host/spi-builder-workspace/.build/checkouts/Promise/Sources/Promise/Lock.swift:57:55: error: cannot find type 'pthread_mutex_t' in scope
55 | }()
56 |
57 | @usableFromInline var mutex: UnsafeMutablePointer<pthread_mutex_t>
| `- error: cannot find type 'pthread_mutex_t' in scope
58 |
59 | @inlinable @inline(__always)
/host/spi-builder-workspace/.build/checkouts/Promise/Sources/Promise/Lock.swift:30:30: error: cannot find 'pthread_mutex_init' in scope
28 | @inlinable @inline(__always)
29 | init() {
30 | _HANDLE_PTHREAD_CALL(pthread_mutex_init(&mutex, Lock.attr), "pthread_mutex_init")
| `- error: cannot find 'pthread_mutex_init' in scope
31 | }
32 |
/host/spi-builder-workspace/.build/checkouts/Promise/Sources/Promise/Lock.swift:35:30: error: cannot find 'pthread_mutex_destroy' in scope
33 | @inlinable @inline(__always)
34 | deinit {
35 | _HANDLE_PTHREAD_CALL(pthread_mutex_destroy(&mutex), "pthread_mutex_destroy")
| `- error: cannot find 'pthread_mutex_destroy' in scope
36 | }
37 |
/host/spi-builder-workspace/.build/checkouts/Promise/Sources/Promise/Lock.swift:40:30: error: cannot find 'pthread_mutex_lock' in scope
38 | @inlinable @inline(__always)
39 | func lock() {
40 | _HANDLE_PTHREAD_CALL(pthread_mutex_lock(&mutex), "pthread_mutex_lock")
| `- error: cannot find 'pthread_mutex_lock' in scope
41 | }
42 |
/host/spi-builder-workspace/.build/checkouts/Promise/Sources/Promise/Lock.swift:45:30: error: cannot find 'pthread_mutex_unlock' in scope
43 | @inlinable @inline(__always)
44 | func unlock() {
45 | _HANDLE_PTHREAD_CALL(pthread_mutex_unlock(&mutex), "pthread_mutex_unlock")
| `- error: cannot find 'pthread_mutex_unlock' in scope
46 | }
47 | }
/host/spi-builder-workspace/.build/checkouts/Promise/Sources/Promise/Lock.swift:61:43: error: cannot find type 'pthread_mutex_t' in scope
59 | @inlinable @inline(__always)
60 | init() {
61 | self.mutex = UnsafeMutablePointer<pthread_mutex_t>.allocate(capacity: 1)
| `- error: cannot find type 'pthread_mutex_t' in scope
62 | _HANDLE_PTHREAD_CALL(pthread_mutex_init(mutex, RecursiveLock.attr), "pthread_mutex_init")
63 | }
/host/spi-builder-workspace/.build/checkouts/Promise/Sources/Promise/Lock.swift:62:30: error: cannot find 'pthread_mutex_init' in scope
60 | init() {
61 | self.mutex = UnsafeMutablePointer<pthread_mutex_t>.allocate(capacity: 1)
62 | _HANDLE_PTHREAD_CALL(pthread_mutex_init(mutex, RecursiveLock.attr), "pthread_mutex_init")
| `- error: cannot find 'pthread_mutex_init' in scope
63 | }
64 |
/host/spi-builder-workspace/.build/checkouts/Promise/Sources/Promise/Lock.swift:67:30: error: cannot find 'pthread_mutex_destroy' in scope
65 | @inlinable @inline(__always)
66 | deinit {
67 | _HANDLE_PTHREAD_CALL(pthread_mutex_destroy(mutex), "pthread_mutex_destroy")
| `- error: cannot find 'pthread_mutex_destroy' in scope
68 | }
69 |
/host/spi-builder-workspace/.build/checkouts/Promise/Sources/Promise/Lock.swift:72:30: error: cannot find 'pthread_mutex_lock' in scope
70 | @inlinable @inline(__always)
71 | func lock() {
72 | _HANDLE_PTHREAD_CALL(pthread_mutex_lock(mutex), "pthread_mutex_lock")
| `- error: cannot find 'pthread_mutex_lock' in scope
73 | }
74 |
/host/spi-builder-workspace/.build/checkouts/Promise/Sources/Promise/Lock.swift:77:30: error: cannot find 'pthread_mutex_unlock' in scope
75 | @inlinable @inline(__always)
76 | func unlock() {
77 | _HANDLE_PTHREAD_CALL(pthread_mutex_unlock(mutex), "pthread_mutex_unlock")
| `- error: cannot find 'pthread_mutex_unlock' in scope
78 | }
79 | }
/host/spi-builder-workspace/.build/checkouts/Promise/Sources/Promise/Lock.swift:84:68: error: cannot find 'strerror' in scope
82 | func _HANDLE_PTHREAD_CALL(_ res: Int32, _ funcname: @autoclosure () -> StaticString) {
83 | if res != 0 {
84 | fatalError("\(funcname()) failed: \(String(validatingUTF8: strerror(res)) ?? "Unkown Error")")
| `- error: cannot find 'strerror' in scope
85 | }
86 | }
[16/30] Compiling Promise Lock.swift
/host/spi-builder-workspace/.build/checkouts/Promise/Sources/Promise/Lock.swift:13:8: error: Unsupported platform
11 | import Glibc // for Linux
12 | #else
13 | #error("Unsupported platform")
| `- error: Unsupported platform
14 | #endif
15 |
/host/spi-builder-workspace/.build/checkouts/Promise/Sources/Promise/Lock.swift:18:54: error: cannot find type 'pthread_mutexattr_t' in scope
16 | @usableFromInline final class Lock {
17 | #if DEBUG
18 | @usableFromInline static let attr: UnsafePointer<pthread_mutexattr_t> = {
| `- error: cannot find type 'pthread_mutexattr_t' in scope
19 | let attr = UnsafeMutablePointer<pthread_mutexattr_t>.allocate(capacity: 1)
20 | _HANDLE_PTHREAD_CALL(pthread_mutexattr_init(attr), "pthread_mutexattr_init")
/host/spi-builder-workspace/.build/checkouts/Promise/Sources/Promise/Lock.swift:26:35: error: cannot find 'pthread_mutex_t' in scope
24 | #endif
25 |
26 | @usableFromInline var mutex = pthread_mutex_t()
| `- error: cannot find 'pthread_mutex_t' in scope
27 |
28 | @inlinable @inline(__always)
/host/spi-builder-workspace/.build/checkouts/Promise/Sources/Promise/Lock.swift:51:41: error: cannot find type 'pthread_mutexattr_t' in scope
49 | @usableFromInline final class RecursiveLock {
50 | @usableFromInline static let attr = {
51 | let attr = UnsafeMutablePointer<pthread_mutexattr_t>.allocate(capacity: 1)
| `- error: cannot find type 'pthread_mutexattr_t' in scope
52 | _HANDLE_PTHREAD_CALL(pthread_mutexattr_init(attr), "pthread_mutexattr_init")
53 | _HANDLE_PTHREAD_CALL(pthread_mutexattr_settype(attr, PTHREAD_MUTEX_RECURSIVE), "pthread_mutexattr_settype")
/host/spi-builder-workspace/.build/checkouts/Promise/Sources/Promise/Lock.swift:52:30: error: cannot find 'pthread_mutexattr_init' in scope
50 | @usableFromInline static let attr = {
51 | let attr = UnsafeMutablePointer<pthread_mutexattr_t>.allocate(capacity: 1)
52 | _HANDLE_PTHREAD_CALL(pthread_mutexattr_init(attr), "pthread_mutexattr_init")
| `- error: cannot find 'pthread_mutexattr_init' in scope
53 | _HANDLE_PTHREAD_CALL(pthread_mutexattr_settype(attr, PTHREAD_MUTEX_RECURSIVE), "pthread_mutexattr_settype")
54 | return UnsafePointer(attr)
/host/spi-builder-workspace/.build/checkouts/Promise/Sources/Promise/Lock.swift:53:30: error: cannot find 'pthread_mutexattr_settype' in scope
51 | let attr = UnsafeMutablePointer<pthread_mutexattr_t>.allocate(capacity: 1)
52 | _HANDLE_PTHREAD_CALL(pthread_mutexattr_init(attr), "pthread_mutexattr_init")
53 | _HANDLE_PTHREAD_CALL(pthread_mutexattr_settype(attr, PTHREAD_MUTEX_RECURSIVE), "pthread_mutexattr_settype")
| `- error: cannot find 'pthread_mutexattr_settype' in scope
54 | return UnsafePointer(attr)
55 | }()
/host/spi-builder-workspace/.build/checkouts/Promise/Sources/Promise/Lock.swift:53:62: error: cannot find 'PTHREAD_MUTEX_RECURSIVE' in scope
51 | let attr = UnsafeMutablePointer<pthread_mutexattr_t>.allocate(capacity: 1)
52 | _HANDLE_PTHREAD_CALL(pthread_mutexattr_init(attr), "pthread_mutexattr_init")
53 | _HANDLE_PTHREAD_CALL(pthread_mutexattr_settype(attr, PTHREAD_MUTEX_RECURSIVE), "pthread_mutexattr_settype")
| `- error: cannot find 'PTHREAD_MUTEX_RECURSIVE' in scope
54 | return UnsafePointer(attr)
55 | }()
/host/spi-builder-workspace/.build/checkouts/Promise/Sources/Promise/Lock.swift:57:55: error: cannot find type 'pthread_mutex_t' in scope
55 | }()
56 |
57 | @usableFromInline var mutex: UnsafeMutablePointer<pthread_mutex_t>
| `- error: cannot find type 'pthread_mutex_t' in scope
58 |
59 | @inlinable @inline(__always)
/host/spi-builder-workspace/.build/checkouts/Promise/Sources/Promise/Lock.swift:30:30: error: cannot find 'pthread_mutex_init' in scope
28 | @inlinable @inline(__always)
29 | init() {
30 | _HANDLE_PTHREAD_CALL(pthread_mutex_init(&mutex, Lock.attr), "pthread_mutex_init")
| `- error: cannot find 'pthread_mutex_init' in scope
31 | }
32 |
/host/spi-builder-workspace/.build/checkouts/Promise/Sources/Promise/Lock.swift:35:30: error: cannot find 'pthread_mutex_destroy' in scope
33 | @inlinable @inline(__always)
34 | deinit {
35 | _HANDLE_PTHREAD_CALL(pthread_mutex_destroy(&mutex), "pthread_mutex_destroy")
| `- error: cannot find 'pthread_mutex_destroy' in scope
36 | }
37 |
/host/spi-builder-workspace/.build/checkouts/Promise/Sources/Promise/Lock.swift:40:30: error: cannot find 'pthread_mutex_lock' in scope
38 | @inlinable @inline(__always)
39 | func lock() {
40 | _HANDLE_PTHREAD_CALL(pthread_mutex_lock(&mutex), "pthread_mutex_lock")
| `- error: cannot find 'pthread_mutex_lock' in scope
41 | }
42 |
/host/spi-builder-workspace/.build/checkouts/Promise/Sources/Promise/Lock.swift:45:30: error: cannot find 'pthread_mutex_unlock' in scope
43 | @inlinable @inline(__always)
44 | func unlock() {
45 | _HANDLE_PTHREAD_CALL(pthread_mutex_unlock(&mutex), "pthread_mutex_unlock")
| `- error: cannot find 'pthread_mutex_unlock' in scope
46 | }
47 | }
/host/spi-builder-workspace/.build/checkouts/Promise/Sources/Promise/Lock.swift:61:43: error: cannot find type 'pthread_mutex_t' in scope
59 | @inlinable @inline(__always)
60 | init() {
61 | self.mutex = UnsafeMutablePointer<pthread_mutex_t>.allocate(capacity: 1)
| `- error: cannot find type 'pthread_mutex_t' in scope
62 | _HANDLE_PTHREAD_CALL(pthread_mutex_init(mutex, RecursiveLock.attr), "pthread_mutex_init")
63 | }
/host/spi-builder-workspace/.build/checkouts/Promise/Sources/Promise/Lock.swift:62:30: error: cannot find 'pthread_mutex_init' in scope
60 | init() {
61 | self.mutex = UnsafeMutablePointer<pthread_mutex_t>.allocate(capacity: 1)
62 | _HANDLE_PTHREAD_CALL(pthread_mutex_init(mutex, RecursiveLock.attr), "pthread_mutex_init")
| `- error: cannot find 'pthread_mutex_init' in scope
63 | }
64 |
/host/spi-builder-workspace/.build/checkouts/Promise/Sources/Promise/Lock.swift:67:30: error: cannot find 'pthread_mutex_destroy' in scope
65 | @inlinable @inline(__always)
66 | deinit {
67 | _HANDLE_PTHREAD_CALL(pthread_mutex_destroy(mutex), "pthread_mutex_destroy")
| `- error: cannot find 'pthread_mutex_destroy' in scope
68 | }
69 |
/host/spi-builder-workspace/.build/checkouts/Promise/Sources/Promise/Lock.swift:72:30: error: cannot find 'pthread_mutex_lock' in scope
70 | @inlinable @inline(__always)
71 | func lock() {
72 | _HANDLE_PTHREAD_CALL(pthread_mutex_lock(mutex), "pthread_mutex_lock")
| `- error: cannot find 'pthread_mutex_lock' in scope
73 | }
74 |
/host/spi-builder-workspace/.build/checkouts/Promise/Sources/Promise/Lock.swift:77:30: error: cannot find 'pthread_mutex_unlock' in scope
75 | @inlinable @inline(__always)
76 | func unlock() {
77 | _HANDLE_PTHREAD_CALL(pthread_mutex_unlock(mutex), "pthread_mutex_unlock")
| `- error: cannot find 'pthread_mutex_unlock' in scope
78 | }
79 | }
/host/spi-builder-workspace/.build/checkouts/Promise/Sources/Promise/Lock.swift:84:68: error: cannot find 'strerror' in scope
82 | func _HANDLE_PTHREAD_CALL(_ res: Int32, _ funcname: @autoclosure () -> StaticString) {
83 | if res != 0 {
84 | fatalError("\(funcname()) failed: \(String(validatingUTF8: strerror(res)) ?? "Unkown Error")")
| `- error: cannot find 'strerror' in scope
85 | }
86 | }
[17/30] Compiling Promise Promise+Debug.swift
/host/spi-builder-workspace/.build/checkouts/Promise/Sources/Promise/Lock.swift:13:8: error: Unsupported platform
11 | import Glibc // for Linux
12 | #else
13 | #error("Unsupported platform")
| `- error: Unsupported platform
14 | #endif
15 |
[18/30] Compiling Promise Promise+Init.swift
/host/spi-builder-workspace/.build/checkouts/Promise/Sources/Promise/Lock.swift:13:8: error: Unsupported platform
11 | import Glibc // for Linux
12 | #else
13 | #error("Unsupported platform")
| `- error: Unsupported platform
14 | #endif
15 |
[19/30] Compiling Promise Promise+Wait.swift
/host/spi-builder-workspace/.build/checkouts/Promise/Sources/Promise/Lock.swift:13:8: error: Unsupported platform
11 | import Glibc // for Linux
12 | #else
13 | #error("Unsupported platform")
| `- error: Unsupported platform
14 | #endif
15 |
[20/30] Compiling Promise Promise+Combine.swift
/host/spi-builder-workspace/.build/checkouts/Promise/Sources/Promise/Lock.swift:13:8: error: Unsupported platform
11 | import Glibc // for Linux
12 | #else
13 | #error("Unsupported platform")
| `- error: Unsupported platform
14 | #endif
15 |
[21/30] Compiling lib0 Observable.swift
/host/spi-builder-workspace/.build/checkouts/lib0-swift/Sources/lib0/Coder/LZCoder+Swift.swift:8:8: error: no such module 'Foundation'
6 | //
7 |
8 | import Foundation
| `- error: no such module 'Foundation'
9 |
10 | public typealias LZVariadicCodable = LZVariadicEncodable & LZVariadicDecodable
[22/30] Compiling Promise Promise+GCD.swift
/host/spi-builder-workspace/.build/checkouts/Promise/Sources/Promise/Lock.swift:13:8: error: Unsupported platform
11 | import Glibc // for Linux
12 | #else
13 | #error("Unsupported platform")
| `- error: Unsupported platform
14 | #endif
15 |
[23/30] Compiling Promise Promise+MeasureInterval.swift
/host/spi-builder-workspace/.build/checkouts/Promise/Sources/Promise/Lock.swift:13:8: error: Unsupported platform
11 | import Glibc // for Linux
12 | #else
13 | #error("Unsupported platform")
| `- error: Unsupported platform
14 | #endif
15 |
[24/30] Compiling Promise Promise+Timeout.swift
/host/spi-builder-workspace/.build/checkouts/Promise/Sources/Promise/Lock.swift:13:8: error: Unsupported platform
11 | import Glibc // for Linux
12 | #else
13 | #error("Unsupported platform")
| `- error: Unsupported platform
14 | #endif
15 |
[25/30] Compiling Promise Promise+URLSession.swift
/host/spi-builder-workspace/.build/checkouts/Promise/Sources/Promise/Lock.swift:13:8: error: Unsupported platform
11 | import Glibc // for Linux
12 | #else
13 | #error("Unsupported platform")
| `- error: Unsupported platform
14 | #endif
15 |
[26/30] Compiling lib0 LZDecoder.swift
/host/spi-builder-workspace/.build/checkouts/lib0-swift/Sources/lib0/Coder/LZCoder+Swift.swift:8:8: error: no such module 'Foundation'
6 | //
7 |
8 | import Foundation
| `- error: no such module 'Foundation'
9 |
10 | public typealias LZVariadicCodable = LZVariadicEncodable & LZVariadicDecodable
[27/30] Compiling lib0 LZDecoderError.swift
/host/spi-builder-workspace/.build/checkouts/lib0-swift/Sources/lib0/Coder/LZCoder+Swift.swift:8:8: error: no such module 'Foundation'
6 | //
7 |
8 | import Foundation
| `- error: no such module 'Foundation'
9 |
10 | public typealias LZVariadicCodable = LZVariadicEncodable & LZVariadicDecodable
error: emit-module command failed with exit code 1 (use -v to see invocation)
[28/30] Emitting module lib0
/host/spi-builder-workspace/.build/checkouts/lib0-swift/Sources/lib0/Coder/LZCoder+Swift.swift:8:8: error: no such module 'Foundation'
6 | //
7 |
8 | import Foundation
| `- error: no such module 'Foundation'
9 |
10 | public typealias LZVariadicCodable = LZVariadicEncodable & LZVariadicDecodable
[29/30] Compiling lib0 LZDecoder+Swift.swift
/host/spi-builder-workspace/.build/checkouts/lib0-swift/Sources/lib0/Coder/LZCoder+Swift.swift:8:8: error: no such module 'Foundation'
6 | //
7 |
8 | import Foundation
| `- error: no such module 'Foundation'
9 |
10 | public typealias LZVariadicCodable = LZVariadicEncodable & LZVariadicDecodable
[30/30] Compiling lib0 LZCoder+Swift.swift
/host/spi-builder-workspace/.build/checkouts/lib0-swift/Sources/lib0/Coder/LZCoder+Swift.swift:8:8: error: no such module 'Foundation'
6 | //
7 |
8 | import Foundation
| `- error: no such module 'Foundation'
9 |
10 | public typealias LZVariadicCodable = LZVariadicEncodable & LZVariadicDecodable
BUILD FAILURE 6.2 wasm