Build Information
Failed to build XCTAssertCrash, reference 0.2.0 (880c52
), with Swift 6.1 for Android on 27 May 2025 13:11:37 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4606859-0":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:android-6.1-latest swift build --swift-sdk aarch64-unknown-linux-android24 2>&1
Build Log
========================================
RunAll
========================================
Builder version: 4.63.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/norio-nomura/xctassertcrash.git
Reference: 0.2.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/norio-nomura/xctassertcrash
* tag 0.2.0 -> FETCH_HEAD
HEAD is now at 880c524 Bump version to 0.2.0
Cloned https://github.com/norio-nomura/xctassertcrash.git
Revision (git rev-parse @):
880c5241254da53f32caf77248ee3d25cb2a9630
SUCCESS checkout https://github.com/norio-nomura/xctassertcrash.git at 0.2.0
========================================
Build
========================================
Selected platform: android
Swift version: 6.1
Building package at path: $PWD
https://github.com/norio-nomura/xctassertcrash.git
https://github.com/norio-nomura/xctassertcrash.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
"c_language_standard" : "gnu99",
"dependencies" : [
],
"manifest_display_name" : "XCTAssertCrash",
"name" : "XCTAssertCrash",
"path" : "/host/spi-builder-workspace",
"platforms" : [
{
"name" : "macos",
"version" : "10.10"
},
{
"name" : "ios",
"version" : "8.0"
},
{
"name" : "tvos",
"version" : "9.0"
}
],
"products" : [
{
"name" : "XCTAssertCrash",
"targets" : [
"XCTAssertCrash"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "XCTAssertCrashTests",
"module_type" : "SwiftTarget",
"name" : "XCTAssertCrashTests",
"path" : "Tests/XCTAssertCrashTests",
"sources" : [
"AbortTests.swift",
"XCTAssertCrashTests.swift",
"XCTestManifests.swift"
],
"target_dependencies" : [
"XCTAssertCrash"
],
"type" : "test"
},
{
"c99name" : "XCTAssertCrash",
"module_type" : "SwiftTarget",
"name" : "XCTAssertCrash",
"path" : "Sources/XCTAssertCrash",
"product_memberships" : [
"XCTAssertCrash"
],
"sources" : [
"MachException.swift",
"PosixSignal.swift",
"SwiftReportFatalErrorsToDebugger.swift",
"ThreadState.swift",
"XCTAssertCrash.swift"
],
"target_dependencies" : [
"CMachExceptionHandler"
],
"type" : "library"
},
{
"c99name" : "CMachExceptionHandler",
"module_type" : "ClangTarget",
"name" : "CMachExceptionHandler",
"path" : "Sources/CMachExceptionHandler",
"product_memberships" : [
"XCTAssertCrash"
],
"sources" : [
"CMachExceptionHandler.c",
"mach_excServer.c"
],
"type" : "library"
}
],
"tools_version" : "5.0"
}
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-0":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:android-6.1-latest swift build --swift-sdk aarch64-unknown-linux-android24 -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
android-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:9f3c606dcd2a4f06d17ba472aa533c43685ba7ba19a5c9bc23518a066eb7f86a
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:android-6.1-latest
Building for debugging...
[0/4] Write sources
[1/4] Compiling CMachExceptionHandler mach_excServer.c
[2/4] Write swift-version-24593BA9C3E375BF.txt
[2/4] Compiling CMachExceptionHandler CMachExceptionHandler.c
[5/10] Compiling XCTAssertCrash ThreadState.swift
[6/10] Compiling XCTAssertCrash XCTAssertCrash.swift
/host/spi-builder-workspace/Sources/XCTAssertCrash/XCTAssertCrash.swift:18:12: warning: var 'skipXCTAssertCrashIfIsBeingDebugged' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
16 | /// #endif
17 | /// ```
18 | public var skipXCTAssertCrashIfIsBeingDebugged: Bool = {
| |- warning: var 'skipXCTAssertCrashIfIsBeingDebugged' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'skipXCTAssertCrashIfIsBeingDebugged' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make var 'skipXCTAssertCrashIfIsBeingDebugged' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
19 | #if canImport(Darwin) && !os(tvOS) && !os(watchOS)
20 | return false
/host/spi-builder-workspace/Sources/XCTAssertCrash/XCTAssertCrash.swift:68:36: error: cannot find 'STDERR_FILENO' in scope
66 | #endif
67 |
68 | let stderrData = capture(from: STDERR_FILENO) {
| `- error: cannot find 'STDERR_FILENO' in scope
69 | let stdoutData = capture(from: STDIN_FILENO) {
70 | let sema = DispatchSemaphore(value: 0)
/host/spi-builder-workspace/Sources/XCTAssertCrash/XCTAssertCrash.swift:69:40: error: cannot find 'STDIN_FILENO' in scope
67 |
68 | let stderrData = capture(from: STDERR_FILENO) {
69 | let stdoutData = capture(from: STDIN_FILENO) {
| `- error: cannot find 'STDIN_FILENO' in scope
70 | let sema = DispatchSemaphore(value: 0)
71 | let thread: Thread
/host/spi-builder-workspace/Sources/XCTAssertCrash/XCTAssertCrash.swift:82:40: warning: converting non-sendable function value to '@Sendable () -> Void' may introduce data races
80 | }
81 | if #available(macOS 12, iOS 10, tvOS 10, watchOS 3, *) {
82 | thread = Thread(block: block)
| `- warning: converting non-sendable function value to '@Sendable () -> Void' may introduce data races
83 | } else {
84 | thread = _Thread(block: block)
/host/spi-builder-workspace/Sources/XCTAssertCrash/XCTAssertCrash.swift:134:14: warning: `isBeingDebugged` only supports Darwin and Linux.
132 | return false
133 | #else
134 | #warning("`isBeingDebugged` only supports Darwin and Linux.")
| `- warning: `isBeingDebugged` only supports Darwin and Linux.
135 | #endif
136 | }
/host/spi-builder-workspace/Sources/XCTAssertCrash/XCTAssertCrash.swift:170:19: error: cannot find 'dup' in scope
168 | let pipe = Pipe()
169 | let orig_fd: Int32 = fd
170 | let save_fd = dup(fd)
| `- error: cannot find 'dup' in scope
171 | let new_fd = pipe.fileHandleForWriting.fileDescriptor
172 | dup2(new_fd, orig_fd)
/host/spi-builder-workspace/Sources/XCTAssertCrash/XCTAssertCrash.swift:172:5: error: cannot find 'dup2' in scope
170 | let save_fd = dup(fd)
171 | let new_fd = pipe.fileHandleForWriting.fileDescriptor
172 | dup2(new_fd, orig_fd)
| `- error: cannot find 'dup2' in scope
173 | close(new_fd)
174 |
/host/spi-builder-workspace/Sources/XCTAssertCrash/XCTAssertCrash.swift:173:5: error: cannot find 'close' in scope
171 | let new_fd = pipe.fileHandleForWriting.fileDescriptor
172 | dup2(new_fd, orig_fd)
173 | close(new_fd)
| `- error: cannot find 'close' in scope
174 |
175 | expression()
/host/spi-builder-workspace/Sources/XCTAssertCrash/XCTAssertCrash.swift:177:9: error: cannot find 'dup2' in scope
175 | expression()
176 |
177 | _ = dup2(save_fd, orig_fd)
| `- error: cannot find 'dup2' in scope
178 | close(save_fd)
179 | return pipe.fileHandleForReading.readDataToEndOfFile()
/host/spi-builder-workspace/Sources/XCTAssertCrash/XCTAssertCrash.swift:178:5: error: cannot find 'close' in scope
176 |
177 | _ = dup2(save_fd, orig_fd)
178 | close(save_fd)
| `- error: cannot find 'close' in scope
179 | return pipe.fileHandleForReading.readDataToEndOfFile()
180 | }
error: emit-module command failed with exit code 1 (use -v to see invocation)
[7/10] Compiling XCTAssertCrash PosixSignal.swift
/host/spi-builder-workspace/Sources/XCTAssertCrash/PosixSignal.swift:37:16: warning: static property 'registeredSignalInfo' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
35 | }
36 |
37 | static var registeredSignalInfo = [SignalInfo]()
| |- warning: static property 'registeredSignalInfo' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'registeredSignalInfo' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'registeredSignalInfo' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
38 | static let queue = DispatchQueue(label: "XCTAssertCrash.registerHandlers()")
39 |
/host/spi-builder-workspace/Sources/XCTAssertCrash/PosixSignal.swift:105:18: warning: unsupported platform
103 | #else
104 | self.init()
105 | #warning("unsupported platform")
| `- warning: unsupported platform
106 | #endif
107 | }
[8/10] Compiling XCTAssertCrash MachException.swift
[9/10] Emitting module XCTAssertCrash
/host/spi-builder-workspace/Sources/XCTAssertCrash/PosixSignal.swift:37:16: warning: static property 'registeredSignalInfo' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
35 | }
36 |
37 | static var registeredSignalInfo = [SignalInfo]()
| |- warning: static property 'registeredSignalInfo' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'registeredSignalInfo' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'registeredSignalInfo' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
38 | static let queue = DispatchQueue(label: "XCTAssertCrash.registerHandlers()")
39 |
/host/spi-builder-workspace/Sources/XCTAssertCrash/SwiftReportFatalErrorsToDebugger.swift:28:24: warning: static property 'registeredThreads' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
26 |
27 | private static let queue = DispatchQueue(label: "XCTAssertCrash.MachExceptionHandler")
28 | private static var registeredThreads = Set<Thread>()
| |- warning: static property 'registeredThreads' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'registeredThreads' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'registeredThreads' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
29 | private static let name = "_swift_reportFatalErrorsToDebugger"
30 | private static let pointer = dlopen(nil, RTLD_GLOBAL)
/host/spi-builder-workspace/Sources/XCTAssertCrash/SwiftReportFatalErrorsToDebugger.swift:30:34: error: cannot find 'dlopen' in scope
28 | private static var registeredThreads = Set<Thread>()
29 | private static let name = "_swift_reportFatalErrorsToDebugger"
30 | private static let pointer = dlopen(nil, RTLD_GLOBAL)
| `- error: cannot find 'dlopen' in scope
31 | .map { dlsym($0, name) }
32 | .flatMap { unsafeBitCast($0, to: UnsafeMutablePointer<Bool>.self) }
/host/spi-builder-workspace/Sources/XCTAssertCrash/SwiftReportFatalErrorsToDebugger.swift:30:46: error: cannot find 'RTLD_GLOBAL' in scope
28 | private static var registeredThreads = Set<Thread>()
29 | private static let name = "_swift_reportFatalErrorsToDebugger"
30 | private static let pointer = dlopen(nil, RTLD_GLOBAL)
| `- error: cannot find 'RTLD_GLOBAL' in scope
31 | .map { dlsym($0, name) }
32 | .flatMap { unsafeBitCast($0, to: UnsafeMutablePointer<Bool>.self) }
/host/spi-builder-workspace/Sources/XCTAssertCrash/SwiftReportFatalErrorsToDebugger.swift:31:16: error: cannot find 'dlsym' in scope
29 | private static let name = "_swift_reportFatalErrorsToDebugger"
30 | private static let pointer = dlopen(nil, RTLD_GLOBAL)
31 | .map { dlsym($0, name) }
| `- error: cannot find 'dlsym' in scope
32 | .flatMap { unsafeBitCast($0, to: UnsafeMutablePointer<Bool>.self) }
33 | private static let originalValue = pointer?.pointee ?? false
/host/spi-builder-workspace/Sources/XCTAssertCrash/SwiftReportFatalErrorsToDebugger.swift:30:41: error: 'nil' requires a contextual type
28 | private static var registeredThreads = Set<Thread>()
29 | private static let name = "_swift_reportFatalErrorsToDebugger"
30 | private static let pointer = dlopen(nil, RTLD_GLOBAL)
| `- error: 'nil' requires a contextual type
31 | .map { dlsym($0, name) }
32 | .flatMap { unsafeBitCast($0, to: UnsafeMutablePointer<Bool>.self) }
/host/spi-builder-workspace/Sources/XCTAssertCrash/XCTAssertCrash.swift:18:12: warning: var 'skipXCTAssertCrashIfIsBeingDebugged' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
16 | /// #endif
17 | /// ```
18 | public var skipXCTAssertCrashIfIsBeingDebugged: Bool = {
| |- warning: var 'skipXCTAssertCrashIfIsBeingDebugged' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'skipXCTAssertCrashIfIsBeingDebugged' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make var 'skipXCTAssertCrashIfIsBeingDebugged' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
19 | #if canImport(Darwin) && !os(tvOS) && !os(watchOS)
20 | return false
[10/10] Compiling XCTAssertCrash SwiftReportFatalErrorsToDebugger.swift
/host/spi-builder-workspace/Sources/XCTAssertCrash/SwiftReportFatalErrorsToDebugger.swift:28:24: warning: static property 'registeredThreads' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
26 |
27 | private static let queue = DispatchQueue(label: "XCTAssertCrash.MachExceptionHandler")
28 | private static var registeredThreads = Set<Thread>()
| |- warning: static property 'registeredThreads' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'registeredThreads' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'registeredThreads' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
29 | private static let name = "_swift_reportFatalErrorsToDebugger"
30 | private static let pointer = dlopen(nil, RTLD_GLOBAL)
/host/spi-builder-workspace/Sources/XCTAssertCrash/SwiftReportFatalErrorsToDebugger.swift:30:34: error: cannot find 'dlopen' in scope
28 | private static var registeredThreads = Set<Thread>()
29 | private static let name = "_swift_reportFatalErrorsToDebugger"
30 | private static let pointer = dlopen(nil, RTLD_GLOBAL)
| `- error: cannot find 'dlopen' in scope
31 | .map { dlsym($0, name) }
32 | .flatMap { unsafeBitCast($0, to: UnsafeMutablePointer<Bool>.self) }
/host/spi-builder-workspace/Sources/XCTAssertCrash/SwiftReportFatalErrorsToDebugger.swift:30:46: error: cannot find 'RTLD_GLOBAL' in scope
28 | private static var registeredThreads = Set<Thread>()
29 | private static let name = "_swift_reportFatalErrorsToDebugger"
30 | private static let pointer = dlopen(nil, RTLD_GLOBAL)
| `- error: cannot find 'RTLD_GLOBAL' in scope
31 | .map { dlsym($0, name) }
32 | .flatMap { unsafeBitCast($0, to: UnsafeMutablePointer<Bool>.self) }
/host/spi-builder-workspace/Sources/XCTAssertCrash/SwiftReportFatalErrorsToDebugger.swift:31:16: error: cannot find 'dlsym' in scope
29 | private static let name = "_swift_reportFatalErrorsToDebugger"
30 | private static let pointer = dlopen(nil, RTLD_GLOBAL)
31 | .map { dlsym($0, name) }
| `- error: cannot find 'dlsym' in scope
32 | .flatMap { unsafeBitCast($0, to: UnsafeMutablePointer<Bool>.self) }
33 | private static let originalValue = pointer?.pointee ?? false
/host/spi-builder-workspace/Sources/XCTAssertCrash/SwiftReportFatalErrorsToDebugger.swift:30:41: error: 'nil' requires a contextual type
28 | private static var registeredThreads = Set<Thread>()
29 | private static let name = "_swift_reportFatalErrorsToDebugger"
30 | private static let pointer = dlopen(nil, RTLD_GLOBAL)
| `- error: 'nil' requires a contextual type
31 | .map { dlsym($0, name) }
32 | .flatMap { unsafeBitCast($0, to: UnsafeMutablePointer<Bool>.self) }
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-0":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:android-6.1-latest swift build --swift-sdk aarch64-unknown-linux-android24 2>&1
android-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:9f3c606dcd2a4f06d17ba472aa533c43685ba7ba19a5c9bc23518a066eb7f86a
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:android-6.1-latest
[0/1] Planning build
Building for debugging...
[0/1] Write swift-version-24593BA9C3E375BF.txt
[2/7] Compiling XCTAssertCrash ThreadState.swift
[3/7] Compiling XCTAssertCrash SwiftReportFatalErrorsToDebugger.swift
/host/spi-builder-workspace/Sources/XCTAssertCrash/SwiftReportFatalErrorsToDebugger.swift:30:34: error: cannot find 'dlopen' in scope
28 | private static var registeredThreads = Set<Thread>()
29 | private static let name = "_swift_reportFatalErrorsToDebugger"
30 | private static let pointer = dlopen(nil, RTLD_GLOBAL)
| `- error: cannot find 'dlopen' in scope
31 | .map { dlsym($0, name) }
32 | .flatMap { unsafeBitCast($0, to: UnsafeMutablePointer<Bool>.self) }
/host/spi-builder-workspace/Sources/XCTAssertCrash/SwiftReportFatalErrorsToDebugger.swift:30:46: error: cannot find 'RTLD_GLOBAL' in scope
28 | private static var registeredThreads = Set<Thread>()
29 | private static let name = "_swift_reportFatalErrorsToDebugger"
30 | private static let pointer = dlopen(nil, RTLD_GLOBAL)
| `- error: cannot find 'RTLD_GLOBAL' in scope
31 | .map { dlsym($0, name) }
32 | .flatMap { unsafeBitCast($0, to: UnsafeMutablePointer<Bool>.self) }
/host/spi-builder-workspace/Sources/XCTAssertCrash/SwiftReportFatalErrorsToDebugger.swift:31:16: error: cannot find 'dlsym' in scope
29 | private static let name = "_swift_reportFatalErrorsToDebugger"
30 | private static let pointer = dlopen(nil, RTLD_GLOBAL)
31 | .map { dlsym($0, name) }
| `- error: cannot find 'dlsym' in scope
32 | .flatMap { unsafeBitCast($0, to: UnsafeMutablePointer<Bool>.self) }
33 | private static let originalValue = pointer?.pointee ?? false
/host/spi-builder-workspace/Sources/XCTAssertCrash/SwiftReportFatalErrorsToDebugger.swift:30:41: error: 'nil' requires a contextual type
28 | private static var registeredThreads = Set<Thread>()
29 | private static let name = "_swift_reportFatalErrorsToDebugger"
30 | private static let pointer = dlopen(nil, RTLD_GLOBAL)
| `- error: 'nil' requires a contextual type
31 | .map { dlsym($0, name) }
32 | .flatMap { unsafeBitCast($0, to: UnsafeMutablePointer<Bool>.self) }
[4/7] Compiling XCTAssertCrash XCTAssertCrash.swift
/host/spi-builder-workspace/Sources/XCTAssertCrash/XCTAssertCrash.swift:68:36: error: cannot find 'STDERR_FILENO' in scope
66 | #endif
67 |
68 | let stderrData = capture(from: STDERR_FILENO) {
| `- error: cannot find 'STDERR_FILENO' in scope
69 | let stdoutData = capture(from: STDIN_FILENO) {
70 | let sema = DispatchSemaphore(value: 0)
/host/spi-builder-workspace/Sources/XCTAssertCrash/XCTAssertCrash.swift:69:40: error: cannot find 'STDIN_FILENO' in scope
67 |
68 | let stderrData = capture(from: STDERR_FILENO) {
69 | let stdoutData = capture(from: STDIN_FILENO) {
| `- error: cannot find 'STDIN_FILENO' in scope
70 | let sema = DispatchSemaphore(value: 0)
71 | let thread: Thread
/host/spi-builder-workspace/Sources/XCTAssertCrash/XCTAssertCrash.swift:82:40: warning: converting non-sendable function value to '@Sendable () -> Void' may introduce data races
80 | }
81 | if #available(macOS 12, iOS 10, tvOS 10, watchOS 3, *) {
82 | thread = Thread(block: block)
| `- warning: converting non-sendable function value to '@Sendable () -> Void' may introduce data races
83 | } else {
84 | thread = _Thread(block: block)
/host/spi-builder-workspace/Sources/XCTAssertCrash/XCTAssertCrash.swift:134:14: warning: `isBeingDebugged` only supports Darwin and Linux.
132 | return false
133 | #else
134 | #warning("`isBeingDebugged` only supports Darwin and Linux.")
| `- warning: `isBeingDebugged` only supports Darwin and Linux.
135 | #endif
136 | }
/host/spi-builder-workspace/Sources/XCTAssertCrash/XCTAssertCrash.swift:170:19: error: cannot find 'dup' in scope
168 | let pipe = Pipe()
169 | let orig_fd: Int32 = fd
170 | let save_fd = dup(fd)
| `- error: cannot find 'dup' in scope
171 | let new_fd = pipe.fileHandleForWriting.fileDescriptor
172 | dup2(new_fd, orig_fd)
/host/spi-builder-workspace/Sources/XCTAssertCrash/XCTAssertCrash.swift:172:5: error: cannot find 'dup2' in scope
170 | let save_fd = dup(fd)
171 | let new_fd = pipe.fileHandleForWriting.fileDescriptor
172 | dup2(new_fd, orig_fd)
| `- error: cannot find 'dup2' in scope
173 | close(new_fd)
174 |
/host/spi-builder-workspace/Sources/XCTAssertCrash/XCTAssertCrash.swift:173:5: error: cannot find 'close' in scope
171 | let new_fd = pipe.fileHandleForWriting.fileDescriptor
172 | dup2(new_fd, orig_fd)
173 | close(new_fd)
| `- error: cannot find 'close' in scope
174 |
175 | expression()
/host/spi-builder-workspace/Sources/XCTAssertCrash/XCTAssertCrash.swift:177:9: error: cannot find 'dup2' in scope
175 | expression()
176 |
177 | _ = dup2(save_fd, orig_fd)
| `- error: cannot find 'dup2' in scope
178 | close(save_fd)
179 | return pipe.fileHandleForReading.readDataToEndOfFile()
/host/spi-builder-workspace/Sources/XCTAssertCrash/XCTAssertCrash.swift:178:5: error: cannot find 'close' in scope
176 |
177 | _ = dup2(save_fd, orig_fd)
178 | close(save_fd)
| `- error: cannot find 'close' in scope
179 | return pipe.fileHandleForReading.readDataToEndOfFile()
180 | }
error: emit-module command failed with exit code 1 (use -v to see invocation)
[5/7] Compiling XCTAssertCrash MachException.swift
[6/7] Compiling XCTAssertCrash PosixSignal.swift
/host/spi-builder-workspace/Sources/XCTAssertCrash/PosixSignal.swift:105:18: warning: unsupported platform
103 | #else
104 | self.init()
105 | #warning("unsupported platform")
| `- warning: unsupported platform
106 | #endif
107 | }
[7/7] Emitting module XCTAssertCrash
/host/spi-builder-workspace/Sources/XCTAssertCrash/SwiftReportFatalErrorsToDebugger.swift:30:34: error: cannot find 'dlopen' in scope
28 | private static var registeredThreads = Set<Thread>()
29 | private static let name = "_swift_reportFatalErrorsToDebugger"
30 | private static let pointer = dlopen(nil, RTLD_GLOBAL)
| `- error: cannot find 'dlopen' in scope
31 | .map { dlsym($0, name) }
32 | .flatMap { unsafeBitCast($0, to: UnsafeMutablePointer<Bool>.self) }
/host/spi-builder-workspace/Sources/XCTAssertCrash/SwiftReportFatalErrorsToDebugger.swift:30:46: error: cannot find 'RTLD_GLOBAL' in scope
28 | private static var registeredThreads = Set<Thread>()
29 | private static let name = "_swift_reportFatalErrorsToDebugger"
30 | private static let pointer = dlopen(nil, RTLD_GLOBAL)
| `- error: cannot find 'RTLD_GLOBAL' in scope
31 | .map { dlsym($0, name) }
32 | .flatMap { unsafeBitCast($0, to: UnsafeMutablePointer<Bool>.self) }
/host/spi-builder-workspace/Sources/XCTAssertCrash/SwiftReportFatalErrorsToDebugger.swift:31:16: error: cannot find 'dlsym' in scope
29 | private static let name = "_swift_reportFatalErrorsToDebugger"
30 | private static let pointer = dlopen(nil, RTLD_GLOBAL)
31 | .map { dlsym($0, name) }
| `- error: cannot find 'dlsym' in scope
32 | .flatMap { unsafeBitCast($0, to: UnsafeMutablePointer<Bool>.self) }
33 | private static let originalValue = pointer?.pointee ?? false
/host/spi-builder-workspace/Sources/XCTAssertCrash/SwiftReportFatalErrorsToDebugger.swift:30:41: error: 'nil' requires a contextual type
28 | private static var registeredThreads = Set<Thread>()
29 | private static let name = "_swift_reportFatalErrorsToDebugger"
30 | private static let pointer = dlopen(nil, RTLD_GLOBAL)
| `- error: 'nil' requires a contextual type
31 | .map { dlsym($0, name) }
32 | .flatMap { unsafeBitCast($0, to: UnsafeMutablePointer<Bool>.self) }
BUILD FAILURE 6.1 android