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 SwiftMQTT with Swift 5.10 for Linux.

Build Command

bash -c docker run --rm -v "checkouts-4606859-1":/host -w "$workDir" 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.39.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/aciidgh/SwiftMQTT.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/aciidgh/SwiftMQTT
 * branch            master     -> FETCH_HEAD
 * [new branch]      master     -> origin/master
HEAD is now at 6667e19 Bug/nil run loop (#41)
Cloned https://github.com/aciidgh/SwiftMQTT.git
Revision (git rev-parse @):
6667e19b0d63f00cfe7769b133ab95b1bbbf136a
SUCCESS checkout https://github.com/aciidgh/SwiftMQTT.git at master
========================================
Build
========================================
Selected platform:         linux
Swift version:             5.10
Building package at path:  $workDir
https://github.com/aciidgh/SwiftMQTT.git
Running build ...
bash -c docker run --rm -v "checkouts-4606859-1":/host -w "$workDir" registry.gitlab.com/finestructure/spi-images:basic-5.10-latest swift build --triple x86_64-unknown-linux-gnu 2>&1
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/21] Emitting module SwiftMQTT
/host/spi-builder-workspace/SwiftMQTT/SwiftMQTT/MQTTSessionStream.swift:95:6: error: Objective-C interoperability is disabled
    @objc internal func stream(_ aStream: Stream, handle eventCode: Stream.Event) {
    ~^~~~~

[4/23] Compiling SwiftMQTT MQTTMessage.swift
[5/23] Compiling SwiftMQTT MQTTPacket.swift
[6/23] Compiling SwiftMQTT MQTTPacketFactory.swift
[7/23] Compiling SwiftMQTT MQTTUnSubAckPacket.swift
[8/23] Compiling SwiftMQTT MQTTUnsubPacket.swift
[9/23] Compiling SwiftMQTT MQTTSubAckPacket.swift
[10/23] Compiling SwiftMQTT MQTTSubPacket.swift
[11/23] Compiling SwiftMQTT MQTTPubAck.swift
[12/23] Compiling SwiftMQTT MQTTPubMsg.swift
[13/23] Compiling SwiftMQTT MQTTPublishPacket.swift
[14/23] Compiling SwiftMQTT MQTTStreamable.swift
[15/23] Compiling SwiftMQTT MQTTPacketFixedHeader.swift
[16/23] Compiling SwiftMQTT MQTTPingPacket.swift
[17/23] Compiling SwiftMQTT MQTTPingResp.swift
[18/23] Compiling SwiftMQTT MQTTExtensions.swift
/host/spi-builder-workspace/SwiftMQTT/SwiftMQTT/MQTTSessionStream.swift:95:6: error: Objective-C interoperability is disabled
    @objc internal func stream(_ aStream: Stream, handle eventCode: Stream.Event) {
    ~^~~~~

/host/spi-builder-workspace/SwiftMQTT/SwiftMQTT/MQTTSessionStream.swift:31:16: error: type 'Stream' has no member 'getStreamsToHost'
        Stream.getStreamsToHost(withName: host, port: Int(port), inputStream: &inputStream, outputStream: &outputStream)
        ~~~~~~ ^~~~~~~~~~~~~~~~
/host/spi-builder-workspace/SwiftMQTT/SwiftMQTT/MQTTSessionStream.swift:51:71: error: type 'RunLoop.Mode' has no member 'defaultRunLoopMode'
            inputStream?.schedule(in: self.currentRunLoop!, forMode: .defaultRunLoopMode)
                                                                     ~^~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/SwiftMQTT/SwiftMQTT/MQTTSessionStream.swift:74:61: error: type 'RunLoop.Mode' has no member 'defaultRunLoopMode'
        inputStream?.remove(from: currentRunLoop, forMode: .defaultRunLoopMode)
                                                           ~^~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/SwiftMQTT/SwiftMQTT/MQTTSessionStream.swift:76:62: error: type 'RunLoop.Mode' has no member 'defaultRunLoopMode'
        outputStream?.remove(from: currentRunLoop, forMode: .defaultRunLoopMode)
                                                            ~^~~~~~~~~~~~~~~~~~
[19/23] Compiling SwiftMQTT MQTTSession.swift
/host/spi-builder-workspace/SwiftMQTT/SwiftMQTT/MQTTSessionStream.swift:95:6: error: Objective-C interoperability is disabled
    @objc internal func stream(_ aStream: Stream, handle eventCode: Stream.Event) {
    ~^~~~~

/host/spi-builder-workspace/SwiftMQTT/SwiftMQTT/MQTTSessionStream.swift:31:16: error: type 'Stream' has no member 'getStreamsToHost'
        Stream.getStreamsToHost(withName: host, port: Int(port), inputStream: &inputStream, outputStream: &outputStream)
        ~~~~~~ ^~~~~~~~~~~~~~~~
/host/spi-builder-workspace/SwiftMQTT/SwiftMQTT/MQTTSessionStream.swift:51:71: error: type 'RunLoop.Mode' has no member 'defaultRunLoopMode'
            inputStream?.schedule(in: self.currentRunLoop!, forMode: .defaultRunLoopMode)
                                                                     ~^~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/SwiftMQTT/SwiftMQTT/MQTTSessionStream.swift:74:61: error: type 'RunLoop.Mode' has no member 'defaultRunLoopMode'
        inputStream?.remove(from: currentRunLoop, forMode: .defaultRunLoopMode)
                                                           ~^~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/SwiftMQTT/SwiftMQTT/MQTTSessionStream.swift:76:62: error: type 'RunLoop.Mode' has no member 'defaultRunLoopMode'
        outputStream?.remove(from: currentRunLoop, forMode: .defaultRunLoopMode)
                                                            ~^~~~~~~~~~~~~~~~~~
[20/23] Compiling SwiftMQTT MQTTSessionStream.swift
/host/spi-builder-workspace/SwiftMQTT/SwiftMQTT/MQTTSessionStream.swift:95:6: error: Objective-C interoperability is disabled
    @objc internal func stream(_ aStream: Stream, handle eventCode: Stream.Event) {
    ~^~~~~

/host/spi-builder-workspace/SwiftMQTT/SwiftMQTT/MQTTSessionStream.swift:31:16: error: type 'Stream' has no member 'getStreamsToHost'
        Stream.getStreamsToHost(withName: host, port: Int(port), inputStream: &inputStream, outputStream: &outputStream)
        ~~~~~~ ^~~~~~~~~~~~~~~~
/host/spi-builder-workspace/SwiftMQTT/SwiftMQTT/MQTTSessionStream.swift:51:71: error: type 'RunLoop.Mode' has no member 'defaultRunLoopMode'
            inputStream?.schedule(in: self.currentRunLoop!, forMode: .defaultRunLoopMode)
                                                                     ~^~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/SwiftMQTT/SwiftMQTT/MQTTSessionStream.swift:74:61: error: type 'RunLoop.Mode' has no member 'defaultRunLoopMode'
        inputStream?.remove(from: currentRunLoop, forMode: .defaultRunLoopMode)
                                                           ~^~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/SwiftMQTT/SwiftMQTT/MQTTSessionStream.swift:76:62: error: type 'RunLoop.Mode' has no member 'defaultRunLoopMode'
        outputStream?.remove(from: currentRunLoop, forMode: .defaultRunLoopMode)
                                                            ~^~~~~~~~~~~~~~~~~~
[21/23] Compiling SwiftMQTT MQTTConnAckPacket.swift
[22/23] Compiling SwiftMQTT MQTTConnectPacket.swift
[23/23] Compiling SwiftMQTT MQTTDisconnectPacket.swift
error: fatalError
BUILD FAILURE 5.10 linux