The Swift Package Index logo.Swift Package Index

Has it really been five years since Swift Package Index launched? Read our anniversary blog post!

Build Information

Failed to build XCTAssertCrash, reference master (4b414b), with Swift 6.2 (beta) for Android on 18 Jun 2025 02:41:06 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4609320-0":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:android-6.2-latest swift build --swift-sdk aarch64-unknown-linux-android28 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.64.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/norio-nomura/xctassertcrash.git
Reference: master
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
 * branch            master     -> FETCH_HEAD
 * [new branch]      master     -> origin/master
HEAD is now at 4b414b3 [GitHub Actions] Update action-swiftlint to 3.0.1
Cloned https://github.com/norio-nomura/xctassertcrash.git
Revision (git rev-parse @):
4b414b3b865299332b4b0c185c530fe3ea681867
SUCCESS checkout https://github.com/norio-nomura/xctassertcrash.git at master
========================================
Build
========================================
Selected platform:         android
Swift version:             6.2
Building package at path:  $PWD
https://github.com/norio-nomura/xctassertcrash.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-0":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:android-6.2-latest swift build --swift-sdk aarch64-unknown-linux-android28 2>&1
android-6.2-latest: Pulling from finestructure/spi-images
Digest: sha256:b7c4a6b4153ff40ef9277e2157e708f835b8eb011095d53bd8db4594eb2b7798
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:android-6.2-latest
Building for debugging...
[0/4] Write sources
[1/4] Compiling CMachExceptionHandler CMachExceptionHandler.c
[2/4] Compiling CMachExceptionHandler mach_excServer.c
[3/4] Write swift-version-8C5A4AE7A8CE2BA.txt
[5/10] Compiling XCTAssertCrash ThreadState.swift
[6/10] 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) }
[7/10] Compiling XCTAssertCrash XCTAssertCrash.swift
/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: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: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)
[8/10] Compiling XCTAssertCrash MachException.swift
[9/10] 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 |     }
[10/10] 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.2 android