The Swift Package Index logo.Swift Package Index

Track the adoption of Swift 6 strict concurrency checks for data race safety. How many packages are Ready for Swift 6?

Build Information

Failed to build MainOffender, reference main (a5c60f), with Swift 5.9 for Linux on 21 Apr 2025 16:57:44 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4609320-0":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-5.9-latest swift build --triple x86_64-unknown-linux-gnu 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.60.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/mattmassicotte/MainOffender.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/mattmassicotte/MainOffender
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at a5c60fe Update contact info
Cloned https://github.com/mattmassicotte/MainOffender.git
Revision (git rev-parse @):
a5c60feeb800a0d41d0fbc3f102f6c286fe3c549
SPI manifest file found: $PWD/.spi.yml
SUCCESS checkout https://github.com/mattmassicotte/MainOffender.git at main
========================================
Build
========================================
Selected platform:         linux
Swift version:             5.9
Building package at path:  $PWD
https://github.com/mattmassicotte/MainOffender.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-0":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-5.9-latest swift build --triple x86_64-unknown-linux-gnu 2>&1
basic-5.9-latest: Pulling from finestructure/spi-images
Digest: sha256:93fe18f778ec94e026baa8cc68b2ae87de241b204c49ca7a3a12cf55897227aa
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-5.9-latest
Building for debugging...
[1/8] Compiling MainOffender UndoManager+MainActor.swift
/host/spi-builder-workspace/Sources/MainOffender/UndoManager+MainActor.swift:16:23: error: consecutive statements on a line must be separated by ';'
                        nonisolated(unsafe) let mainTarget = handlerTarget
                                           ^
                                           ;
[2/8] Compiling MainOffender RunLoop+Async.swift
[3/8] Compiling MainOffender ThreadExecutor.swift
/host/spi-builder-workspace/Sources/MainOffender/ThreadExecutor.swift:14:22: error: consecutive statements on a line must be separated by ';'
                nonisolated(unsafe) var context: RunLoopContext? = nil
                                   ^
                                   ;
/host/spi-builder-workspace/Sources/MainOffender/ThreadExecutor.swift:5:16: error: cannot find type 'CFRunLoop' in scope
                let runLoop: CFRunLoop
                             ^~~~~~~~~
/host/spi-builder-workspace/Sources/MainOffender/ThreadExecutor.swift:6:15: error: cannot find type 'CFRunLoopSource' in scope
                let source: CFRunLoopSource
                            ^~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/MainOffender/ThreadExecutor.swift:45:37: error: cannot find type 'CFRunLoopSource' in scope
        static func createEmptySource() -> CFRunLoopSource {
                                           ^~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/MainOffender/ThreadExecutor.swift:11:14: warning: stored property 'semaphore' of 'Sendable'-conforming class 'ThreadRunLoop' has non-sendable type 'DispatchSemaphore'
        private let semaphore: DispatchSemaphore
                    ^
Dispatch.DispatchSemaphore:1:14: note: class 'DispatchSemaphore' does not conform to the 'Sendable' protocol
public class DispatchSemaphore : DispatchObject {
             ^
/host/spi-builder-workspace/Sources/MainOffender/ThreadExecutor.swift:1:1: remark: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Dispatch'
import Foundation
^
@preconcurrency
/host/spi-builder-workspace/Sources/MainOffender/ThreadExecutor.swift:97:14: warning: 'Executor.enqueue(UnownedJob)' is deprecated as a protocol requirement; conform type 'ThreadExecutor' to 'Executor' by implementing 'func enqueue(ExecutorJob)' instead
        public func enqueue(_ job: UnownedJob) {
                    ^
/host/spi-builder-workspace/Sources/MainOffender/ThreadExecutor.swift:14:3: error: cannot find 'nonisolated' in scope
                nonisolated(unsafe) var context: RunLoopContext? = nil
                ^~~~~~~~~~~
/host/spi-builder-workspace/Sources/MainOffender/ThreadExecutor.swift:14:15: error: cannot find 'unsafe' in scope
                nonisolated(unsafe) var context: RunLoopContext? = nil
                            ^~~~~~
/host/spi-builder-workspace/Sources/MainOffender/ThreadExecutor.swift:24:21: error: cannot find 'CFRunLoopGetCurrent' in scope
                        guard let loop = CFRunLoopGetCurrent() else {
                                         ^~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/MainOffender/ThreadExecutor.swift:30:4: error: cannot find 'CFRunLoopAddSource' in scope
                        CFRunLoopAddSource(loop, source, CFRunLoopMode.defaultMode)
                        ^~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/MainOffender/ThreadExecutor.swift:30:37: error: cannot find 'CFRunLoopMode' in scope
                        CFRunLoopAddSource(loop, source, CFRunLoopMode.defaultMode)
                                                         ^~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/MainOffender/ThreadExecutor.swift:35:4: error: cannot find 'CFRunLoopRun' in scope
                        CFRunLoopRun()
                        ^~~~~~~~~~~~
/host/spi-builder-workspace/Sources/MainOffender/ThreadExecutor.swift:46:23: error: cannot find 'CFRunLoopSourceContext' in scope
                var sourceContext = CFRunLoopSourceContext(
                                    ^~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/MainOffender/ThreadExecutor.swift:48:10: error: 'nil' requires a contextual type
                        info: nil,
                              ^
/host/spi-builder-workspace/Sources/MainOffender/ThreadExecutor.swift:49:12: error: 'nil' requires a contextual type
                        retain: nil,
                                ^
/host/spi-builder-workspace/Sources/MainOffender/ThreadExecutor.swift:50:13: error: 'nil' requires a contextual type
                        release: nil,
                                 ^
/host/spi-builder-workspace/Sources/MainOffender/ThreadExecutor.swift:51:21: error: 'nil' requires a contextual type
                        copyDescription: nil,
                                         ^
/host/spi-builder-workspace/Sources/MainOffender/ThreadExecutor.swift:52:11: error: 'nil' requires a contextual type
                        equal: nil,
                               ^
/host/spi-builder-workspace/Sources/MainOffender/ThreadExecutor.swift:53:10: error: 'nil' requires a contextual type
                        hash: nil,
                              ^
/host/spi-builder-workspace/Sources/MainOffender/ThreadExecutor.swift:66:3: error: cannot find 'CFRunLoopStop' in scope
                CFRunLoopStop(context.runLoop)
                ^~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/MainOffender/ThreadExecutor.swift:76:3: error: cannot find 'CFRunLoopPerformBlock' in scope
                CFRunLoopPerformBlock(context.runLoop, CFRunLoopMode.defaultMode.rawValue, work)
                ^~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/MainOffender/ThreadExecutor.swift:76:42: error: cannot find 'CFRunLoopMode' in scope
                CFRunLoopPerformBlock(context.runLoop, CFRunLoopMode.defaultMode.rawValue, work)
                                                       ^~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/MainOffender/ThreadExecutor.swift:77:3: error: cannot find 'CFRunLoopWakeUp' in scope
                CFRunLoopWakeUp(context.runLoop)
                ^~~~~~~~~~~~~~~
[4/8] Compiling MainOffender NotificationCenter+Unsafe.swift
/host/spi-builder-workspace/Sources/MainOffender/NotificationCenter+Unsafe.swift:13:23: error: consecutive statements on a line must be separated by ';'
                        nonisolated(unsafe) let mainNotification = notification
                                           ^
                                           ;
/host/spi-builder-workspace/Sources/MainOffender/NotificationCenter+Unsafe.swift:13:4: error: cannot find 'nonisolated' in scope
                        nonisolated(unsafe) let mainNotification = notification
                        ^~~~~~~~~~~
/host/spi-builder-workspace/Sources/MainOffender/NotificationCenter+Unsafe.swift:13:16: error: cannot find 'unsafe' in scope
                        nonisolated(unsafe) let mainNotification = notification
                                    ^~~~~~
[5/8] Compiling MainOffender MainDispatchQueue.swift
[6/8] Compiling MainOffender MainOperationQueue.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[7/8] Emitting module MainOffender
/host/spi-builder-workspace/Sources/MainOffender/ThreadExecutor.swift:5:16: error: cannot find type 'CFRunLoop' in scope
                let runLoop: CFRunLoop
                             ^~~~~~~~~
/host/spi-builder-workspace/Sources/MainOffender/ThreadExecutor.swift:6:15: error: cannot find type 'CFRunLoopSource' in scope
                let source: CFRunLoopSource
                            ^~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/MainOffender/ThreadExecutor.swift:45:37: error: cannot find type 'CFRunLoopSource' in scope
        static func createEmptySource() -> CFRunLoopSource {
                                           ^~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/MainOffender/ThreadExecutor.swift:11:14: warning: stored property 'semaphore' of 'Sendable'-conforming class 'ThreadRunLoop' has non-sendable type 'DispatchSemaphore'
        private let semaphore: DispatchSemaphore
                    ^
Dispatch.DispatchSemaphore:1:14: note: class 'DispatchSemaphore' does not conform to the 'Sendable' protocol
public class DispatchSemaphore : DispatchObject {
             ^
/host/spi-builder-workspace/Sources/MainOffender/ThreadExecutor.swift:1:1: remark: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Dispatch'
import Foundation
^
@preconcurrency
/host/spi-builder-workspace/Sources/MainOffender/ThreadExecutor.swift:97:14: warning: 'Executor.enqueue(UnownedJob)' is deprecated as a protocol requirement; conform type 'ThreadExecutor' to 'Executor' by implementing 'func enqueue(ExecutorJob)' instead
        public func enqueue(_ job: UnownedJob) {
                    ^
[8/8] Compiling MainOffender MainActor+RunUnsafely.swift
error: fatalError
BUILD FAILURE 5.9 linux