Build Information
Failed to build XCTAssertUnrecoverable, reference 1.0.0 (6f5b67), with Swift 6.1 for Wasm on 27 May 2025 06:25:16 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4609320-3":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1Build Log
========================================
RunAll
========================================
Builder version: 4.63.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/ukitaka/XCTAssertUnrecoverable.git
Reference: 1.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/ukitaka/XCTAssertUnrecoverable
* tag 1.0.0 -> FETCH_HEAD
HEAD is now at 6f5b67d Update to 1.0.0
Cloned https://github.com/ukitaka/XCTAssertUnrecoverable.git
Revision (git rev-parse @):
6f5b67d149203155149d7ed7456444ec33156673
SUCCESS checkout https://github.com/ukitaka/XCTAssertUnrecoverable.git at 1.0.0
========================================
Build
========================================
Selected platform: wasm
Swift version: 6.1
Building package at path: $PWD
https://github.com/ukitaka/XCTAssertUnrecoverable.git
https://github.com/ukitaka/XCTAssertUnrecoverable.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
"dependencies" : [
],
"manifest_display_name" : "XCTAssertUnrecoverable",
"name" : "XCTAssertUnrecoverable",
"path" : "/host/spi-builder-workspace",
"platforms" : [
],
"products" : [
{
"name" : "XCTAssertUnrecoverable",
"targets" : [
"XCTAssertUnrecoverable"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "XCTAssertUnrecoverableTests",
"module_type" : "SwiftTarget",
"name" : "XCTAssertUnrecoverableTests",
"path" : "Tests/XCTAssertUnrecoverableTests",
"sources" : [
"XCTAssertUnrecoverableTests.swift"
],
"target_dependencies" : [
"XCTAssertUnrecoverable"
],
"type" : "test"
},
{
"c99name" : "XCTAssertUnrecoverable",
"module_type" : "SwiftTarget",
"name" : "XCTAssertUnrecoverable",
"path" : "Sources",
"product_memberships" : [
"XCTAssertUnrecoverable"
],
"sources" : [
"Fortify.swift",
"XCTAssertUnrecoverable.swift"
],
"type" : "library"
}
],
"tools_version" : "4.1"
}
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-3":/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:059e0fdbe549369b902c0d423739510ddee50a4a70258d1404125eb9394ef31c
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-24593BA9C3E375BF.txt
error: emit-module command failed with exit code 1 (use -v to see invocation)
[3/5] Emitting module XCTAssertUnrecoverable
/host/spi-builder-workspace/Sources/Fortify.swift:44:14: warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
42 | }
43 |
44 | @_silgen_name ("setjmp")
| `- warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
45 | public func setjump(_: UnsafeMutablePointer<jmp_buf>!) -> Int32
46 |
/host/spi-builder-workspace/Sources/Fortify.swift:47:14: warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
45 | public func setjump(_: UnsafeMutablePointer<jmp_buf>!) -> Int32
46 |
47 | @_silgen_name ("longjmp")
| `- warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
48 | public func longjump(_: UnsafeMutablePointer<jmp_buf>!, _: Int32) -> Never
49 |
/host/spi-builder-workspace/Sources/Fortify.swift:45:45: error: cannot find type 'jmp_buf' in scope
43 |
44 | @_silgen_name ("setjmp")
45 | public func setjump(_: UnsafeMutablePointer<jmp_buf>!) -> Int32
| `- error: cannot find type 'jmp_buf' in scope
46 |
47 | @_silgen_name ("longjmp")
/host/spi-builder-workspace/Sources/Fortify.swift:48:46: error: cannot find type 'jmp_buf' in scope
46 |
47 | @_silgen_name ("longjmp")
48 | public func longjump(_: UnsafeMutablePointer<jmp_buf>!, _: Int32) -> Never
| `- error: cannot find type 'jmp_buf' in scope
49 |
50 | private let empty_buf = [UInt8](repeating: 0, count: MemoryLayout<jmp_buf>.size)
/host/spi-builder-workspace/Sources/Fortify.swift:50:67: error: cannot find type 'jmp_buf' in scope
48 | public func longjump(_: UnsafeMutablePointer<jmp_buf>!, _: Int32) -> Never
49 |
50 | private let empty_buf = [UInt8](repeating: 0, count: MemoryLayout<jmp_buf>.size)
| `- error: cannot find type 'jmp_buf' in scope
51 |
52 | open class Fortify: ThreadLocal {
/host/spi-builder-workspace/Sources/Fortify.swift:54:24: warning: static property 'pthreadKey' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
52 | open class Fortify: ThreadLocal {
53 |
54 | static private var pthreadKey: pthread_key_t = 0
| |- warning: static property 'pthreadKey' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'pthreadKey' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'pthreadKey' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
55 |
56 | open class var threadLocal: Fortify {
/host/spi-builder-workspace/Sources/Fortify.swift:60:26: error: cannot find 'jmp_buf' in scope
58 | }
59 |
60 | private var stack = [jmp_buf]()
| `- error: cannot find 'jmp_buf' in scope
61 | public var error: Error?
62 |
/host/spi-builder-workspace/Sources/Fortify.swift:60:25: error: cannot call value of non-function type '[Any]'
58 | }
59 |
60 | private var stack = [jmp_buf]()
| `- error: cannot call value of non-function type '[Any]'
61 | public var error: Error?
62 |
/host/spi-builder-workspace/Sources/Fortify.swift:80:13: error: cannot find 'signal' in scope
78 |
79 | public static let installHandlerOnce: Void = {
80 | _ = signal(SIGILL, { (signo: Int32) in
| `- error: cannot find 'signal' in scope
81 | Fortify.escape(msg: "Signal \(signo)")
82 | })
/host/spi-builder-workspace/Sources/Fortify.swift:80:20: error: cannot find 'SIGILL' in scope
78 |
79 | public static let installHandlerOnce: Void = {
80 | _ = signal(SIGILL, { (signo: Int32) in
| `- error: cannot find 'SIGILL' in scope
81 | Fortify.escape(msg: "Signal \(signo)")
82 | })
/host/spi-builder-workspace/Sources/Fortify.swift:83:13: error: cannot find 'signal' in scope
81 | Fortify.escape(msg: "Signal \(signo)")
82 | })
83 | _ = signal(SIGABRT, { (signo: Int32) in
| `- error: cannot find 'signal' in scope
84 | Fortify.escape(msg: "Signal \(signo)")
85 | })
/host/spi-builder-workspace/Sources/Fortify.swift:83:20: error: cannot find 'SIGABRT' in scope
81 | Fortify.escape(msg: "Signal \(signo)")
82 | })
83 | _ = signal(SIGABRT, { (signo: Int32) in
| `- error: cannot find 'SIGABRT' in scope
84 | Fortify.escape(msg: "Signal \(signo)")
85 | })
[4/5] Compiling XCTAssertUnrecoverable Fortify.swift
/host/spi-builder-workspace/Sources/Fortify.swift:44:14: warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
42 | }
43 |
44 | @_silgen_name ("setjmp")
| `- warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
45 | public func setjump(_: UnsafeMutablePointer<jmp_buf>!) -> Int32
46 |
/host/spi-builder-workspace/Sources/Fortify.swift:47:14: warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
45 | public func setjump(_: UnsafeMutablePointer<jmp_buf>!) -> Int32
46 |
47 | @_silgen_name ("longjmp")
| `- warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
48 | public func longjump(_: UnsafeMutablePointer<jmp_buf>!, _: Int32) -> Never
49 |
/host/spi-builder-workspace/Sources/Fortify.swift:45:45: error: cannot find type 'jmp_buf' in scope
43 |
44 | @_silgen_name ("setjmp")
45 | public func setjump(_: UnsafeMutablePointer<jmp_buf>!) -> Int32
| `- error: cannot find type 'jmp_buf' in scope
46 |
47 | @_silgen_name ("longjmp")
/host/spi-builder-workspace/Sources/Fortify.swift:48:46: error: cannot find type 'jmp_buf' in scope
46 |
47 | @_silgen_name ("longjmp")
48 | public func longjump(_: UnsafeMutablePointer<jmp_buf>!, _: Int32) -> Never
| `- error: cannot find type 'jmp_buf' in scope
49 |
50 | private let empty_buf = [UInt8](repeating: 0, count: MemoryLayout<jmp_buf>.size)
/host/spi-builder-workspace/Sources/Fortify.swift:50:67: error: cannot find type 'jmp_buf' in scope
48 | public func longjump(_: UnsafeMutablePointer<jmp_buf>!, _: Int32) -> Never
49 |
50 | private let empty_buf = [UInt8](repeating: 0, count: MemoryLayout<jmp_buf>.size)
| `- error: cannot find type 'jmp_buf' in scope
51 |
52 | open class Fortify: ThreadLocal {
/host/spi-builder-workspace/Sources/Fortify.swift:54:24: warning: static property 'pthreadKey' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
52 | open class Fortify: ThreadLocal {
53 |
54 | static private var pthreadKey: pthread_key_t = 0
| |- warning: static property 'pthreadKey' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'pthreadKey' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'pthreadKey' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
55 |
56 | open class var threadLocal: Fortify {
/host/spi-builder-workspace/Sources/Fortify.swift:60:26: error: cannot find 'jmp_buf' in scope
58 | }
59 |
60 | private var stack = [jmp_buf]()
| `- error: cannot find 'jmp_buf' in scope
61 | public var error: Error?
62 |
/host/spi-builder-workspace/Sources/Fortify.swift:60:25: error: cannot call value of non-function type '[Any]'
58 | }
59 |
60 | private var stack = [jmp_buf]()
| `- error: cannot call value of non-function type '[Any]'
61 | public var error: Error?
62 |
/host/spi-builder-workspace/Sources/Fortify.swift:80:13: error: cannot find 'signal' in scope
78 |
79 | public static let installHandlerOnce: Void = {
80 | _ = signal(SIGILL, { (signo: Int32) in
| `- error: cannot find 'signal' in scope
81 | Fortify.escape(msg: "Signal \(signo)")
82 | })
/host/spi-builder-workspace/Sources/Fortify.swift:80:20: error: cannot find 'SIGILL' in scope
78 |
79 | public static let installHandlerOnce: Void = {
80 | _ = signal(SIGILL, { (signo: Int32) in
| `- error: cannot find 'SIGILL' in scope
81 | Fortify.escape(msg: "Signal \(signo)")
82 | })
/host/spi-builder-workspace/Sources/Fortify.swift:83:13: error: cannot find 'signal' in scope
81 | Fortify.escape(msg: "Signal \(signo)")
82 | })
83 | _ = signal(SIGABRT, { (signo: Int32) in
| `- error: cannot find 'signal' in scope
84 | Fortify.escape(msg: "Signal \(signo)")
85 | })
/host/spi-builder-workspace/Sources/Fortify.swift:83:20: error: cannot find 'SIGABRT' in scope
81 | Fortify.escape(msg: "Signal \(signo)")
82 | })
83 | _ = signal(SIGABRT, { (signo: Int32) in
| `- error: cannot find 'SIGABRT' in scope
84 | Fortify.escape(msg: "Signal \(signo)")
85 | })
/host/spi-builder-workspace/Sources/Fortify.swift:19:23: error: cannot find 'pthread_key_create' in scope
17 | let needsKey = keyVar.pointee == 0
18 | if needsKey {
19 | let ret = pthread_key_create(keyVar, {
| `- error: cannot find 'pthread_key_create' in scope
20 | #if os(Linux) || os(Android)
21 | Unmanaged<ThreadLocal>.fromOpaque($0!).release()
/host/spi-builder-workspace/Sources/Fortify.swift:30:27: error: cannot find 'pthread_getspecific' in scope
28 | }
29 | }
30 | if let existing = pthread_getspecific(keyVar.pointee) {
| `- error: cannot find 'pthread_getspecific' in scope
31 | return Unmanaged<T>.fromOpaque(existing).takeUnretainedValue()
32 | }
/host/spi-builder-workspace/Sources/Fortify.swift:35:23: error: cannot find 'pthread_setspecific' in scope
33 | else {
34 | let unmanaged = Unmanaged.passRetained(T())
35 | let ret = pthread_setspecific(keyVar.pointee, unmanaged.toOpaque())
| `- error: cannot find 'pthread_setspecific' in scope
36 | if ret != 0 {
37 | NSLog("Could not pthread_setspecific: %s", strerror(ret))
/host/spi-builder-workspace/Sources/Fortify.swift:70:31: error: cannot find 'dlopen' in scope
68 | let libName: String? = nil
69 | #endif
70 | if let stdlibHandle = dlopen(libName, Int32(RTLD_LAZY | RTLD_NOLOAD)),
| `- error: cannot find 'dlopen' in scope
71 | let disableExclusivity = dlsym(stdlibHandle, "_swift_disableExclusivityChecking") {
72 | disableExclusivity.assumingMemoryBound(to: Bool.self).pointee = true
/host/spi-builder-workspace/Sources/Fortify.swift:70:53: error: cannot find 'RTLD_LAZY' in scope
68 | let libName: String? = nil
69 | #endif
70 | if let stdlibHandle = dlopen(libName, Int32(RTLD_LAZY | RTLD_NOLOAD)),
| `- error: cannot find 'RTLD_LAZY' in scope
71 | let disableExclusivity = dlsym(stdlibHandle, "_swift_disableExclusivityChecking") {
72 | disableExclusivity.assumingMemoryBound(to: Bool.self).pointee = true
/host/spi-builder-workspace/Sources/Fortify.swift:70:65: error: cannot find 'RTLD_NOLOAD' in scope
68 | let libName: String? = nil
69 | #endif
70 | if let stdlibHandle = dlopen(libName, Int32(RTLD_LAZY | RTLD_NOLOAD)),
| `- error: cannot find 'RTLD_NOLOAD' in scope
71 | let disableExclusivity = dlsym(stdlibHandle, "_swift_disableExclusivityChecking") {
72 | disableExclusivity.assumingMemoryBound(to: Bool.self).pointee = true
/host/spi-builder-workspace/Sources/Fortify.swift:71:38: error: cannot find 'dlsym' in scope
69 | #endif
70 | if let stdlibHandle = dlopen(libName, Int32(RTLD_LAZY | RTLD_NOLOAD)),
71 | let disableExclusivity = dlsym(stdlibHandle, "_swift_disableExclusivityChecking") {
| `- error: cannot find 'dlsym' in scope
72 | disableExclusivity.assumingMemoryBound(to: Bool.self).pointee = true
73 | }
/host/spi-builder-workspace/Sources/Fortify.swift:95:67: error: cannot find 'jmp_buf' in scope
93 |
94 | empty_buf.withUnsafeBytes {
95 | let buf_ptr = $0.baseAddress!.assumingMemoryBound(to: jmp_buf.self)
| `- error: cannot find 'jmp_buf' in scope
96 | local.stack.append(buf_ptr.pointee)
97 | }
/host/spi-builder-workspace/Sources/Fortify.swift:127:13: error: cannot find 'pthread_setcancelstate' in scope
125 | // pthread_exit(nil) just crashes
126 | var oldState: Int32 = 0
127 | pthread_setcancelstate(Int32(PTHREAD_CANCEL_ENABLE), &oldState)
| `- error: cannot find 'pthread_setcancelstate' in scope
128 | pthread_setcanceltype(Int32(PTHREAD_CANCEL_DEFERRED), &oldState)
129 | // pthread_cancel() never seems to be implemented
/host/spi-builder-workspace/Sources/Fortify.swift:127:42: error: cannot find 'PTHREAD_CANCEL_ENABLE' in scope
125 | // pthread_exit(nil) just crashes
126 | var oldState: Int32 = 0
127 | pthread_setcancelstate(Int32(PTHREAD_CANCEL_ENABLE), &oldState)
| `- error: cannot find 'PTHREAD_CANCEL_ENABLE' in scope
128 | pthread_setcanceltype(Int32(PTHREAD_CANCEL_DEFERRED), &oldState)
129 | // pthread_cancel() never seems to be implemented
/host/spi-builder-workspace/Sources/Fortify.swift:128:13: error: cannot find 'pthread_setcanceltype' in scope
126 | var oldState: Int32 = 0
127 | pthread_setcancelstate(Int32(PTHREAD_CANCEL_ENABLE), &oldState)
128 | pthread_setcanceltype(Int32(PTHREAD_CANCEL_DEFERRED), &oldState)
| `- error: cannot find 'pthread_setcanceltype' in scope
129 | // pthread_cancel() never seems to be implemented
130 | let cancelled = pthread_cancel(pthread_self())
/host/spi-builder-workspace/Sources/Fortify.swift:128:41: error: cannot find 'PTHREAD_CANCEL_DEFERRED' in scope
126 | var oldState: Int32 = 0
127 | pthread_setcancelstate(Int32(PTHREAD_CANCEL_ENABLE), &oldState)
128 | pthread_setcanceltype(Int32(PTHREAD_CANCEL_DEFERRED), &oldState)
| `- error: cannot find 'PTHREAD_CANCEL_DEFERRED' in scope
129 | // pthread_cancel() never seems to be implemented
130 | let cancelled = pthread_cancel(pthread_self())
/host/spi-builder-workspace/Sources/Fortify.swift:130:29: error: cannot find 'pthread_cancel' in scope
128 | pthread_setcanceltype(Int32(PTHREAD_CANCEL_DEFERRED), &oldState)
129 | // pthread_cancel() never seems to be implemented
130 | let cancelled = pthread_cancel(pthread_self())
| `- error: cannot find 'pthread_cancel' in scope
131 | if cancelled != 0 {
132 | NSLog("pthread_cancel() failed: %s", strerror(cancelled))
/host/spi-builder-workspace/Sources/Fortify.swift:130:44: error: cannot find 'pthread_self' in scope
128 | pthread_setcanceltype(Int32(PTHREAD_CANCEL_DEFERRED), &oldState)
129 | // pthread_cancel() never seems to be implemented
130 | let cancelled = pthread_cancel(pthread_self())
| `- error: cannot find 'pthread_self' in scope
131 | if cancelled != 0 {
132 | NSLog("pthread_cancel() failed: %s", strerror(cancelled))
/host/spi-builder-workspace/Sources/Fortify.swift:137:13: error: cannot find 'Thread' in scope
135 | #endif
136 | NSLog("cancel/exit not available/implemented or crashes, parking thread")
137 | Thread.sleep(until: Date.distantFuture)
| `- error: cannot find 'Thread' in scope
138 | }
139 |
[5/5] Compiling XCTAssertUnrecoverable XCTAssertUnrecoverable.swift
/host/spi-builder-workspace/Sources/Fortify.swift:60:26: error: cannot find 'jmp_buf' in scope
58 | }
59 |
60 | private var stack = [jmp_buf]()
| `- error: cannot find 'jmp_buf' in scope
61 | public var error: Error?
62 |
/host/spi-builder-workspace/Sources/Fortify.swift:60:25: error: cannot call value of non-function type '[Any]'
58 | }
59 |
60 | private var stack = [jmp_buf]()
| `- error: cannot call value of non-function type '[Any]'
61 | public var error: Error?
62 |
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-3":/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:059e0fdbe549369b902c0d423739510ddee50a4a70258d1404125eb9394ef31c
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest
[0/1] Planning build
Building for debugging...
[0/1] Write swift-version-24593BA9C3E375BF.txt
error: emit-module command failed with exit code 1 (use -v to see invocation)
[2/4] Emitting module XCTAssertUnrecoverable
/host/spi-builder-workspace/Sources/Fortify.swift:44:14: warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
42 | }
43 |
44 | @_silgen_name ("setjmp")
| `- warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
45 | public func setjump(_: UnsafeMutablePointer<jmp_buf>!) -> Int32
46 |
/host/spi-builder-workspace/Sources/Fortify.swift:47:14: warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
45 | public func setjump(_: UnsafeMutablePointer<jmp_buf>!) -> Int32
46 |
47 | @_silgen_name ("longjmp")
| `- warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
48 | public func longjump(_: UnsafeMutablePointer<jmp_buf>!, _: Int32) -> Never
49 |
/host/spi-builder-workspace/Sources/Fortify.swift:45:45: error: cannot find type 'jmp_buf' in scope
43 |
44 | @_silgen_name ("setjmp")
45 | public func setjump(_: UnsafeMutablePointer<jmp_buf>!) -> Int32
| `- error: cannot find type 'jmp_buf' in scope
46 |
47 | @_silgen_name ("longjmp")
/host/spi-builder-workspace/Sources/Fortify.swift:48:46: error: cannot find type 'jmp_buf' in scope
46 |
47 | @_silgen_name ("longjmp")
48 | public func longjump(_: UnsafeMutablePointer<jmp_buf>!, _: Int32) -> Never
| `- error: cannot find type 'jmp_buf' in scope
49 |
50 | private let empty_buf = [UInt8](repeating: 0, count: MemoryLayout<jmp_buf>.size)
/host/spi-builder-workspace/Sources/Fortify.swift:50:67: error: cannot find type 'jmp_buf' in scope
48 | public func longjump(_: UnsafeMutablePointer<jmp_buf>!, _: Int32) -> Never
49 |
50 | private let empty_buf = [UInt8](repeating: 0, count: MemoryLayout<jmp_buf>.size)
| `- error: cannot find type 'jmp_buf' in scope
51 |
52 | open class Fortify: ThreadLocal {
/host/spi-builder-workspace/Sources/Fortify.swift:60:26: error: cannot find 'jmp_buf' in scope
58 | }
59 |
60 | private var stack = [jmp_buf]()
| `- error: cannot find 'jmp_buf' in scope
61 | public var error: Error?
62 |
/host/spi-builder-workspace/Sources/Fortify.swift:60:25: error: cannot call value of non-function type '[Any]'
58 | }
59 |
60 | private var stack = [jmp_buf]()
| `- error: cannot call value of non-function type '[Any]'
61 | public var error: Error?
62 |
/host/spi-builder-workspace/Sources/Fortify.swift:80:13: error: cannot find 'signal' in scope
78 |
79 | public static let installHandlerOnce: Void = {
80 | _ = signal(SIGILL, { (signo: Int32) in
| `- error: cannot find 'signal' in scope
81 | Fortify.escape(msg: "Signal \(signo)")
82 | })
/host/spi-builder-workspace/Sources/Fortify.swift:80:20: error: cannot find 'SIGILL' in scope
78 |
79 | public static let installHandlerOnce: Void = {
80 | _ = signal(SIGILL, { (signo: Int32) in
| `- error: cannot find 'SIGILL' in scope
81 | Fortify.escape(msg: "Signal \(signo)")
82 | })
/host/spi-builder-workspace/Sources/Fortify.swift:83:13: error: cannot find 'signal' in scope
81 | Fortify.escape(msg: "Signal \(signo)")
82 | })
83 | _ = signal(SIGABRT, { (signo: Int32) in
| `- error: cannot find 'signal' in scope
84 | Fortify.escape(msg: "Signal \(signo)")
85 | })
/host/spi-builder-workspace/Sources/Fortify.swift:83:20: error: cannot find 'SIGABRT' in scope
81 | Fortify.escape(msg: "Signal \(signo)")
82 | })
83 | _ = signal(SIGABRT, { (signo: Int32) in
| `- error: cannot find 'SIGABRT' in scope
84 | Fortify.escape(msg: "Signal \(signo)")
85 | })
[3/4] Compiling XCTAssertUnrecoverable Fortify.swift
/host/spi-builder-workspace/Sources/Fortify.swift:44:14: warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
42 | }
43 |
44 | @_silgen_name ("setjmp")
| `- warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
45 | public func setjump(_: UnsafeMutablePointer<jmp_buf>!) -> Int32
46 |
/host/spi-builder-workspace/Sources/Fortify.swift:47:14: warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
45 | public func setjump(_: UnsafeMutablePointer<jmp_buf>!) -> Int32
46 |
47 | @_silgen_name ("longjmp")
| `- warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
48 | public func longjump(_: UnsafeMutablePointer<jmp_buf>!, _: Int32) -> Never
49 |
/host/spi-builder-workspace/Sources/Fortify.swift:45:45: error: cannot find type 'jmp_buf' in scope
43 |
44 | @_silgen_name ("setjmp")
45 | public func setjump(_: UnsafeMutablePointer<jmp_buf>!) -> Int32
| `- error: cannot find type 'jmp_buf' in scope
46 |
47 | @_silgen_name ("longjmp")
/host/spi-builder-workspace/Sources/Fortify.swift:48:46: error: cannot find type 'jmp_buf' in scope
46 |
47 | @_silgen_name ("longjmp")
48 | public func longjump(_: UnsafeMutablePointer<jmp_buf>!, _: Int32) -> Never
| `- error: cannot find type 'jmp_buf' in scope
49 |
50 | private let empty_buf = [UInt8](repeating: 0, count: MemoryLayout<jmp_buf>.size)
/host/spi-builder-workspace/Sources/Fortify.swift:50:67: error: cannot find type 'jmp_buf' in scope
48 | public func longjump(_: UnsafeMutablePointer<jmp_buf>!, _: Int32) -> Never
49 |
50 | private let empty_buf = [UInt8](repeating: 0, count: MemoryLayout<jmp_buf>.size)
| `- error: cannot find type 'jmp_buf' in scope
51 |
52 | open class Fortify: ThreadLocal {
/host/spi-builder-workspace/Sources/Fortify.swift:60:26: error: cannot find 'jmp_buf' in scope
58 | }
59 |
60 | private var stack = [jmp_buf]()
| `- error: cannot find 'jmp_buf' in scope
61 | public var error: Error?
62 |
/host/spi-builder-workspace/Sources/Fortify.swift:60:25: error: cannot call value of non-function type '[Any]'
58 | }
59 |
60 | private var stack = [jmp_buf]()
| `- error: cannot call value of non-function type '[Any]'
61 | public var error: Error?
62 |
/host/spi-builder-workspace/Sources/Fortify.swift:80:13: error: cannot find 'signal' in scope
78 |
79 | public static let installHandlerOnce: Void = {
80 | _ = signal(SIGILL, { (signo: Int32) in
| `- error: cannot find 'signal' in scope
81 | Fortify.escape(msg: "Signal \(signo)")
82 | })
/host/spi-builder-workspace/Sources/Fortify.swift:80:20: error: cannot find 'SIGILL' in scope
78 |
79 | public static let installHandlerOnce: Void = {
80 | _ = signal(SIGILL, { (signo: Int32) in
| `- error: cannot find 'SIGILL' in scope
81 | Fortify.escape(msg: "Signal \(signo)")
82 | })
/host/spi-builder-workspace/Sources/Fortify.swift:83:13: error: cannot find 'signal' in scope
81 | Fortify.escape(msg: "Signal \(signo)")
82 | })
83 | _ = signal(SIGABRT, { (signo: Int32) in
| `- error: cannot find 'signal' in scope
84 | Fortify.escape(msg: "Signal \(signo)")
85 | })
/host/spi-builder-workspace/Sources/Fortify.swift:83:20: error: cannot find 'SIGABRT' in scope
81 | Fortify.escape(msg: "Signal \(signo)")
82 | })
83 | _ = signal(SIGABRT, { (signo: Int32) in
| `- error: cannot find 'SIGABRT' in scope
84 | Fortify.escape(msg: "Signal \(signo)")
85 | })
/host/spi-builder-workspace/Sources/Fortify.swift:19:23: error: cannot find 'pthread_key_create' in scope
17 | let needsKey = keyVar.pointee == 0
18 | if needsKey {
19 | let ret = pthread_key_create(keyVar, {
| `- error: cannot find 'pthread_key_create' in scope
20 | #if os(Linux) || os(Android)
21 | Unmanaged<ThreadLocal>.fromOpaque($0!).release()
/host/spi-builder-workspace/Sources/Fortify.swift:30:27: error: cannot find 'pthread_getspecific' in scope
28 | }
29 | }
30 | if let existing = pthread_getspecific(keyVar.pointee) {
| `- error: cannot find 'pthread_getspecific' in scope
31 | return Unmanaged<T>.fromOpaque(existing).takeUnretainedValue()
32 | }
/host/spi-builder-workspace/Sources/Fortify.swift:35:23: error: cannot find 'pthread_setspecific' in scope
33 | else {
34 | let unmanaged = Unmanaged.passRetained(T())
35 | let ret = pthread_setspecific(keyVar.pointee, unmanaged.toOpaque())
| `- error: cannot find 'pthread_setspecific' in scope
36 | if ret != 0 {
37 | NSLog("Could not pthread_setspecific: %s", strerror(ret))
/host/spi-builder-workspace/Sources/Fortify.swift:70:31: error: cannot find 'dlopen' in scope
68 | let libName: String? = nil
69 | #endif
70 | if let stdlibHandle = dlopen(libName, Int32(RTLD_LAZY | RTLD_NOLOAD)),
| `- error: cannot find 'dlopen' in scope
71 | let disableExclusivity = dlsym(stdlibHandle, "_swift_disableExclusivityChecking") {
72 | disableExclusivity.assumingMemoryBound(to: Bool.self).pointee = true
/host/spi-builder-workspace/Sources/Fortify.swift:70:53: error: cannot find 'RTLD_LAZY' in scope
68 | let libName: String? = nil
69 | #endif
70 | if let stdlibHandle = dlopen(libName, Int32(RTLD_LAZY | RTLD_NOLOAD)),
| `- error: cannot find 'RTLD_LAZY' in scope
71 | let disableExclusivity = dlsym(stdlibHandle, "_swift_disableExclusivityChecking") {
72 | disableExclusivity.assumingMemoryBound(to: Bool.self).pointee = true
/host/spi-builder-workspace/Sources/Fortify.swift:70:65: error: cannot find 'RTLD_NOLOAD' in scope
68 | let libName: String? = nil
69 | #endif
70 | if let stdlibHandle = dlopen(libName, Int32(RTLD_LAZY | RTLD_NOLOAD)),
| `- error: cannot find 'RTLD_NOLOAD' in scope
71 | let disableExclusivity = dlsym(stdlibHandle, "_swift_disableExclusivityChecking") {
72 | disableExclusivity.assumingMemoryBound(to: Bool.self).pointee = true
/host/spi-builder-workspace/Sources/Fortify.swift:71:38: error: cannot find 'dlsym' in scope
69 | #endif
70 | if let stdlibHandle = dlopen(libName, Int32(RTLD_LAZY | RTLD_NOLOAD)),
71 | let disableExclusivity = dlsym(stdlibHandle, "_swift_disableExclusivityChecking") {
| `- error: cannot find 'dlsym' in scope
72 | disableExclusivity.assumingMemoryBound(to: Bool.self).pointee = true
73 | }
/host/spi-builder-workspace/Sources/Fortify.swift:95:67: error: cannot find 'jmp_buf' in scope
93 |
94 | empty_buf.withUnsafeBytes {
95 | let buf_ptr = $0.baseAddress!.assumingMemoryBound(to: jmp_buf.self)
| `- error: cannot find 'jmp_buf' in scope
96 | local.stack.append(buf_ptr.pointee)
97 | }
/host/spi-builder-workspace/Sources/Fortify.swift:127:13: error: cannot find 'pthread_setcancelstate' in scope
125 | // pthread_exit(nil) just crashes
126 | var oldState: Int32 = 0
127 | pthread_setcancelstate(Int32(PTHREAD_CANCEL_ENABLE), &oldState)
| `- error: cannot find 'pthread_setcancelstate' in scope
128 | pthread_setcanceltype(Int32(PTHREAD_CANCEL_DEFERRED), &oldState)
129 | // pthread_cancel() never seems to be implemented
/host/spi-builder-workspace/Sources/Fortify.swift:127:42: error: cannot find 'PTHREAD_CANCEL_ENABLE' in scope
125 | // pthread_exit(nil) just crashes
126 | var oldState: Int32 = 0
127 | pthread_setcancelstate(Int32(PTHREAD_CANCEL_ENABLE), &oldState)
| `- error: cannot find 'PTHREAD_CANCEL_ENABLE' in scope
128 | pthread_setcanceltype(Int32(PTHREAD_CANCEL_DEFERRED), &oldState)
129 | // pthread_cancel() never seems to be implemented
/host/spi-builder-workspace/Sources/Fortify.swift:128:13: error: cannot find 'pthread_setcanceltype' in scope
126 | var oldState: Int32 = 0
127 | pthread_setcancelstate(Int32(PTHREAD_CANCEL_ENABLE), &oldState)
128 | pthread_setcanceltype(Int32(PTHREAD_CANCEL_DEFERRED), &oldState)
| `- error: cannot find 'pthread_setcanceltype' in scope
129 | // pthread_cancel() never seems to be implemented
130 | let cancelled = pthread_cancel(pthread_self())
/host/spi-builder-workspace/Sources/Fortify.swift:128:41: error: cannot find 'PTHREAD_CANCEL_DEFERRED' in scope
126 | var oldState: Int32 = 0
127 | pthread_setcancelstate(Int32(PTHREAD_CANCEL_ENABLE), &oldState)
128 | pthread_setcanceltype(Int32(PTHREAD_CANCEL_DEFERRED), &oldState)
| `- error: cannot find 'PTHREAD_CANCEL_DEFERRED' in scope
129 | // pthread_cancel() never seems to be implemented
130 | let cancelled = pthread_cancel(pthread_self())
/host/spi-builder-workspace/Sources/Fortify.swift:130:29: error: cannot find 'pthread_cancel' in scope
128 | pthread_setcanceltype(Int32(PTHREAD_CANCEL_DEFERRED), &oldState)
129 | // pthread_cancel() never seems to be implemented
130 | let cancelled = pthread_cancel(pthread_self())
| `- error: cannot find 'pthread_cancel' in scope
131 | if cancelled != 0 {
132 | NSLog("pthread_cancel() failed: %s", strerror(cancelled))
/host/spi-builder-workspace/Sources/Fortify.swift:130:44: error: cannot find 'pthread_self' in scope
128 | pthread_setcanceltype(Int32(PTHREAD_CANCEL_DEFERRED), &oldState)
129 | // pthread_cancel() never seems to be implemented
130 | let cancelled = pthread_cancel(pthread_self())
| `- error: cannot find 'pthread_self' in scope
131 | if cancelled != 0 {
132 | NSLog("pthread_cancel() failed: %s", strerror(cancelled))
/host/spi-builder-workspace/Sources/Fortify.swift:137:13: error: cannot find 'Thread' in scope
135 | #endif
136 | NSLog("cancel/exit not available/implemented or crashes, parking thread")
137 | Thread.sleep(until: Date.distantFuture)
| `- error: cannot find 'Thread' in scope
138 | }
139 |
[4/4] Compiling XCTAssertUnrecoverable XCTAssertUnrecoverable.swift
/host/spi-builder-workspace/Sources/Fortify.swift:60:26: error: cannot find 'jmp_buf' in scope
58 | }
59 |
60 | private var stack = [jmp_buf]()
| `- error: cannot find 'jmp_buf' in scope
61 | public var error: Error?
62 |
/host/spi-builder-workspace/Sources/Fortify.swift:60:25: error: cannot call value of non-function type '[Any]'
58 | }
59 |
60 | private var stack = [jmp_buf]()
| `- error: cannot call value of non-function type '[Any]'
61 | public var error: Error?
62 |
BUILD FAILURE 6.1 wasm