Build Information
Failed to build SwiftMQTT with Swift 5.8 for Linux.
Build Command
bash -c docker run --rm -v "checkouts-4609320-1":/host -w "$workDir" registry.gitlab.com/finestructure/spi-images:basic-5.8-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: 3.0.1
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
* tag 3.0.1 -> FETCH_HEAD
HEAD is now at e412d41 Cleanup build warnings
Cloned https://github.com/aciidgh/SwiftMQTT.git
Revision (git rev-parse @):
e412d414fbc03cabcee7fcbc8432aa1efb558c94
SUCCESS checkout https://github.com/aciidgh/SwiftMQTT.git at 3.0.1
========================================
Build
========================================
Selected platform: linux
Swift version: 5.8
Building package at path: $workDir
https://github.com/aciidgh/SwiftMQTT.git
Running build ...
bash -c docker run --rm -v "checkouts-4609320-1":/host -w "$workDir" registry.gitlab.com/finestructure/spi-images:basic-5.8-latest swift build --triple x86_64-unknown-linux-gnu 2>&1
Building for debugging...
error: emit-module command failed with exit code 1 (use -v to see invocation)
[1/19] Emitting module SwiftMQTT
/host/spi-builder-workspace/SwiftMQTT/SwiftMQTT/MQTTSessionStream.swift:94:6: error: Objective-C interoperability is disabled
@objc internal func stream(_ aStream: Stream, handle eventCode: Stream.Event) {
~^~~~~
[2/21] Compiling SwiftMQTT MQTTConnAckPacket.swift
[3/21] Compiling SwiftMQTT MQTTConnectPacket.swift
[4/21] Compiling SwiftMQTT MQTTDisconnectPacket.swift
[5/21] Compiling SwiftMQTT MQTTExtensions.swift
/host/spi-builder-workspace/SwiftMQTT/SwiftMQTT/MQTTSessionStream.swift:94: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:70: error: type 'RunLoop.Mode' has no member 'defaultRunLoopMode'
inputStream?.schedule(in: self.currentRunLoop, forMode: .defaultRunLoopMode)
~^~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/SwiftMQTT/SwiftMQTT/MQTTSessionStream.swift:73:61: error: type 'RunLoop.Mode' has no member 'defaultRunLoopMode'
inputStream?.remove(from: currentRunLoop, forMode: .defaultRunLoopMode)
~^~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/SwiftMQTT/SwiftMQTT/MQTTSessionStream.swift:75:62: error: type 'RunLoop.Mode' has no member 'defaultRunLoopMode'
outputStream?.remove(from: currentRunLoop, forMode: .defaultRunLoopMode)
~^~~~~~~~~~~~~~~~~~
[6/21] Compiling SwiftMQTT MQTTSession.swift
/host/spi-builder-workspace/SwiftMQTT/SwiftMQTT/MQTTSessionStream.swift:94: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:70: error: type 'RunLoop.Mode' has no member 'defaultRunLoopMode'
inputStream?.schedule(in: self.currentRunLoop, forMode: .defaultRunLoopMode)
~^~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/SwiftMQTT/SwiftMQTT/MQTTSessionStream.swift:73:61: error: type 'RunLoop.Mode' has no member 'defaultRunLoopMode'
inputStream?.remove(from: currentRunLoop, forMode: .defaultRunLoopMode)
~^~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/SwiftMQTT/SwiftMQTT/MQTTSessionStream.swift:75:62: error: type 'RunLoop.Mode' has no member 'defaultRunLoopMode'
outputStream?.remove(from: currentRunLoop, forMode: .defaultRunLoopMode)
~^~~~~~~~~~~~~~~~~~
[7/21] Compiling SwiftMQTT MQTTSessionStream.swift
/host/spi-builder-workspace/SwiftMQTT/SwiftMQTT/MQTTSessionStream.swift:94: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:70: error: type 'RunLoop.Mode' has no member 'defaultRunLoopMode'
inputStream?.schedule(in: self.currentRunLoop, forMode: .defaultRunLoopMode)
~^~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/SwiftMQTT/SwiftMQTT/MQTTSessionStream.swift:73:61: error: type 'RunLoop.Mode' has no member 'defaultRunLoopMode'
inputStream?.remove(from: currentRunLoop, forMode: .defaultRunLoopMode)
~^~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/SwiftMQTT/SwiftMQTT/MQTTSessionStream.swift:75:62: error: type 'RunLoop.Mode' has no member 'defaultRunLoopMode'
outputStream?.remove(from: currentRunLoop, forMode: .defaultRunLoopMode)
~^~~~~~~~~~~~~~~~~~
[8/21] Compiling SwiftMQTT MQTTSubAckPacket.swift
[9/21] Compiling SwiftMQTT MQTTSubPacket.swift
[10/21] Compiling SwiftMQTT MQTTMessage.swift
[11/21] Compiling SwiftMQTT MQTTPacket.swift
[12/21] Compiling SwiftMQTT MQTTPacketFactory.swift
[13/21] Compiling SwiftMQTT MQTTPubAck.swift
[14/21] Compiling SwiftMQTT MQTTPubMsg.swift
[15/21] Compiling SwiftMQTT MQTTPublishPacket.swift
[16/21] Compiling SwiftMQTT MQTTStreamable.swift
[17/21] Compiling SwiftMQTT MQTTPacketFixedHeader.swift
[18/21] Compiling SwiftMQTT MQTTPingPacket.swift
[19/21] Compiling SwiftMQTT MQTTPingResp.swift
[20/21] Compiling SwiftMQTT MQTTUnSubAckPacket.swift
[21/21] Compiling SwiftMQTT MQTTUnsubPacket.swift
BUILD FAILURE 5.8 linux