Build Information
Failed to build SwiftMQTT with Swift 5.9 for Linux.
Build Command
bash -c docker run --rm -v "checkouts-4609320-1":/host -w "$workDir" 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.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.9
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.9-latest swift build --triple x86_64-unknown-linux-gnu 2>&1
Building for debugging...
[1/19] Compiling SwiftMQTT MQTTConnAckPacket.swift
[2/19] Compiling SwiftMQTT MQTTConnectPacket.swift
[3/19] Compiling SwiftMQTT MQTTDisconnectPacket.swift
[4/19] Compiling SwiftMQTT MQTTPubAck.swift
[5/19] Compiling SwiftMQTT MQTTPubMsg.swift
[6/19] Compiling SwiftMQTT MQTTMessage.swift
[7/19] Compiling SwiftMQTT MQTTPacket.swift
[8/19] Compiling SwiftMQTT MQTTPacketFactory.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[9/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) {
~^~~~~
[10/21] 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)
~^~~~~~~~~~~~~~~~~~
[11/21] 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)
~^~~~~~~~~~~~~~~~~~
[12/21] 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)
~^~~~~~~~~~~~~~~~~~
[13/21] Compiling SwiftMQTT MQTTSubAckPacket.swift
[14/21] Compiling SwiftMQTT MQTTSubPacket.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
error: fatalError
BUILD FAILURE 5.9 linux