Build Information
Failed to build SwiftMQTT with Swift 5.10 for Linux.
Build Command
bash -c docker run --rm -v "checkouts-4606859-0":/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: 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.10
Building package at path: $workDir
https://github.com/aciidgh/SwiftMQTT.git
Running build ...
bash -c docker run --rm -v "checkouts-4606859-0":/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:94:6: error: Objective-C interoperability is disabled
@objc internal func stream(_ aStream: Stream, handle eventCode: Stream.Event) {
~^~~~~
[4/23] Compiling SwiftMQTT MQTTUnSubAckPacket.swift
[5/23] Compiling SwiftMQTT MQTTUnsubPacket.swift
[6/23] Compiling SwiftMQTT MQTTConnAckPacket.swift
[7/23] Compiling SwiftMQTT MQTTConnectPacket.swift
[8/23] Compiling SwiftMQTT MQTTDisconnectPacket.swift
[9/23] Compiling SwiftMQTT MQTTMessage.swift
[10/23] Compiling SwiftMQTT MQTTPacket.swift
[11/23] Compiling SwiftMQTT MQTTPacketFactory.swift
[12/23] Compiling SwiftMQTT MQTTPubAck.swift
[13/23] Compiling SwiftMQTT MQTTPubMsg.swift
[14/23] Compiling SwiftMQTT MQTTSubAckPacket.swift
[15/23] Compiling SwiftMQTT MQTTSubPacket.swift
[16/23] Compiling SwiftMQTT MQTTPacketFixedHeader.swift
[17/23] Compiling SwiftMQTT MQTTPingPacket.swift
[18/23] Compiling SwiftMQTT MQTTPingResp.swift
[19/23] Compiling SwiftMQTT MQTTPublishPacket.swift
[20/23] Compiling SwiftMQTT MQTTStreamable.swift
[21/23] 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)
~^~~~~~~~~~~~~~~~~~
[22/23] 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)
~^~~~~~~~~~~~~~~~~~
[23/23] 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)
~^~~~~~~~~~~~~~~~~~
error: fatalError
BUILD FAILURE 5.10 linux