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 0.4.0 (8adc74), with Swift 5.10 for Linux on 21 Apr 2025 16:56:51 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.10-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: 0.4.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/mattmassicotte/MainOffender
 * tag               0.4.0      -> FETCH_HEAD
HEAD is now at 8adc743 Remove hardcoded intend width
Cloned https://github.com/mattmassicotte/MainOffender.git
Revision (git rev-parse @):
8adc74300838c9a105c701e5de998c50edd93387
SPI manifest file found: $PWD/.spi.yml
SUCCESS checkout https://github.com/mattmassicotte/MainOffender.git at 0.4.0
========================================
Build
========================================
Selected platform:         linux
Swift version:             5.10
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.10-latest swift build --triple x86_64-unknown-linux-gnu 2>&1
basic-5.10-latest: Pulling from finestructure/spi-images
Digest: sha256:616ef225d0085997f26355ad9695b1159b91f6187a43f9ff135cb59d096bc97d
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-5.10-latest
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-24593BA9C3E375BF.txt
[3/10] Compiling MainOffender UndoManager+MainActor.swift
[4/10] Compiling MainOffender ThreadExecutor.swift
/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: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)
                ^~~~~~~~~~~~~~~
[5/10] Compiling MainOffender RunLoop+Async.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[6/10] Compiling MainOffender MainDispatchQueue.swift
[7/10] Compiling MainOffender MainActor+RunUnsafely.swift
[8/10] Compiling MainOffender NotificationCenter+Unsafe.swift
/host/spi-builder-workspace/Sources/MainOffender/NotificationCenter+Unsafe.swift:10:7: warning: initialization of immutable value 'nonMainblock' was never used; consider replacing with assignment to '_' or removing it
                let nonMainblock = unsafeBitCast(block, to: ((Notification) -> Void).self)
                ~~~~^~~~~~~~~~~~
                _
[9/10] Compiling MainOffender MainOperationQueue.swift
[10/10] 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
error: fatalError
BUILD FAILURE 5.10 linux