The Swift Package Index logo.Swift Package Index

Build Information

Successful build of Mqtt with Swift 5.8 for Linux.

Build Command

docker run --rm -v "checkouts-4609320-0":/host -w "/host/spi-builder-workspace" registry.gitlab.com/finestructure/spi-images:basic-5.8-latest swift build 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.22.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/hjianbo/mqtt.git
Reference: 0.3.0
Cloned https://github.com/hjianbo/mqtt.git into spi-builder-workspace
SUCCESS checkout https://github.com/hjianbo/mqtt.git at 0.3.0
========================================
Build
========================================
Selected platform:         linux
Swift version:             5.8
Building package at path:  spi-builder-workspace
Running build ...
docker run --rm -v "checkouts-4609320-0":/host -w "/host/spi-builder-workspace" registry.gitlab.com/finestructure/spi-images:basic-5.8-latest swift build 2>&1
Fetching https://github.com/vapor/debugging.git
Fetching https://github.com/vapor/core.git
Fetching https://github.com/vapor/bits.git
[1/358] Fetching bits
[359/618] Fetching bits, debugging
[619/20761] Fetching bits, debugging, core
Fetching https://github.com/vapor/sockets
Fetched https://github.com/vapor/bits.git (0.84s)
Fetched https://github.com/vapor/debugging.git (0.84s)
Fetched https://github.com/vapor/core.git (0.86s)
[1/3312] Fetching sockets
Fetched https://github.com/vapor/sockets (0.27s)
Computing version for https://github.com/vapor/sockets
Computed https://github.com/vapor/sockets at 2.2.2 (0.31s)
Computing version for https://github.com/vapor/core.git
Computed https://github.com/vapor/core.git at 2.2.0 (0.31s)
Computing version for https://github.com/vapor/debugging.git
Computed https://github.com/vapor/debugging.git at 1.1.1 (0.30s)
Computing version for https://github.com/vapor/bits.git
Computed https://github.com/vapor/bits.git at 1.1.0 (0.30s)
Creating working copy for https://github.com/vapor/debugging.git
Working copy of https://github.com/vapor/debugging.git resolved at 1.1.1
Creating working copy for https://github.com/vapor/bits.git
Working copy of https://github.com/vapor/bits.git resolved at 1.1.0
Creating working copy for https://github.com/vapor/core.git
Working copy of https://github.com/vapor/core.git resolved at 2.2.0
Creating working copy for https://github.com/vapor/sockets
Working copy of https://github.com/vapor/sockets resolved at 2.2.2
warning: 'spi-builder-workspace': Invalid Exclude '/host/spi-builder-workspace/Sources/Mqtt/Examples': File not found.
Building for debugging...
[1/22] Emitting module Bits
[2/24] Emitting module Debugging
[3/24] Compiling Debugging Debuggable.swift
[6/26] Compiling Bits UnsignedInteger+BytesConvertible.swift
[7/26] Compiling Bits UnsignedInteger+Shifting.swift
[8/26] Compiling Bits Aliases.swift
[9/26] Compiling Bits Base64Encoder.swift
[10/26] Compiling Bits Byte+Alphabet.swift
[11/26] Compiling Bits Operators.swift
[12/26] Compiling Bits String+BytesConvertible.swift
[13/26] Compiling Bits Data+BytesConvertible.swift
[14/26] Compiling Bits HexEncoder.swift
[15/26] Compiling Bits Bytes+Percent.swift
[16/26] Compiling Bits BytesConvertible.swift
[17/26] Compiling Bits Bytes+Base64.swift
[18/26] Compiling Bits Bytes+Hex.swift
[19/26] Emitting module libc
[20/26] Compiling libc libc.swift
[21/27] Compiling Bits Byte+ControlCharacters.swift
[22/27] Compiling Bits Byte+Convenience.swift
[23/27] Compiling Bits Byte+PatternMatching.swift
[24/27] Compiling Bits Byte+Random.swift
[25/27] Compiling Bits Byte+UTF8Numbers.swift
[26/27] Compiling Bits ByteSequence+Conversions.swift
[31/52] Compiling Core Extendable.swift
[32/52] Compiling Core FileProtocol.swift
[33/52] Compiling Core Int+Hex.swift
[34/52] Compiling Core DispatchTime+Utilities.swift
[35/52] Compiling Core EmptyInitializable.swift
[36/52] Compiling Core Exports.swift
[37/54] Emitting module Core
[38/54] Compiling Core Lock.swift
[39/54] Compiling Core Portal.swift
[40/54] Compiling Core RFC1123.swift
[41/54] Compiling Core String.swift
[42/54] Compiling Core WorkingDirectory.swift
[43/54] Compiling Core Result.swift
[44/54] Compiling Core Semaphore.swift
[45/54] Compiling Core Sequence.swift
[46/54] Compiling Core StaticDataBuffer.swift
[47/54] Compiling Core String+CaseInsensitiveCompare.swift
[48/54] Compiling Core String+Polymorphic.swift
[49/54] Compiling Core Array.swift
[50/54] Compiling Core Bits.swift
[51/54] Compiling Core Cache.swift
[52/54] Compiling Core Collection+Safe.swift
[53/54] Compiling Core DataFile.swift
[54/54] Compiling Core Dispatch.swift
[57/66] Compiling Transport FoundationStream.swift
[58/67] Compiling Transport Stream.swift
[59/67] Compiling Transport StreamError.swift
[60/67] Compiling Transport Exports.swift
[61/67] Compiling Transport ClientStream.swift
[62/67] Emitting module Transport
[63/67] Compiling Transport InternetStream.swift
[64/67] Compiling Transport Port.swift
[65/67] Compiling Transport WriteableStream.swift
[66/67] Compiling Transport ServerStream.swift
[67/67] Compiling Transport ReadableStream.swift
[70/90] Emitting module Sockets
[71/92] Compiling Sockets Types.swift
[72/92] Compiling Sockets Exports.swift
[73/92] Compiling Sockets Config.swift
[74/92] Compiling Sockets RawSocket.swift
[75/92] Compiling Sockets Select.swift
[76/92] Compiling Sockets Socket.swift
[77/92] Compiling Sockets Descriptor.swift
[78/92] Compiling Sockets InternetSocket.swift
[79/92] Compiling Sockets Pipe.swift
[80/92] Compiling Sockets Conversions.swift
[81/92] Compiling Sockets Error.swift
[82/92] Compiling Sockets FDSet.swift
[83/92] Compiling Sockets TCPReadableSocket.swift
[84/92] Compiling Sockets TCPSocket.swift
[85/92] Compiling Sockets SocketOptions.swift
[86/92] Compiling Sockets TCPEstablishedSocket.swift
[87/92] Compiling Sockets TCPInternetSocket.swift
[88/92] Compiling Sockets Address+C.swift
[89/92] Compiling Sockets Address.swift
[90/92] Compiling Sockets Buffer.swift
[91/92] Compiling Sockets TCPWriteableSocket.swift
[92/92] Compiling Sockets UDPSocket.swift
[95/113] Emitting module Mqtt
[96/115] Compiling Mqtt PubRecPacket.swift
[97/115] Compiling Mqtt PubRelPacket.swift
[98/115] Compiling Mqtt MqttClient.swift
[99/115] Compiling Mqtt ConnAckPacket.swift
[100/115] Compiling Mqtt ConnectPacket.swift
[101/115] Compiling Mqtt DDLog.swift
[102/115] Compiling Mqtt Extension.swift
[103/115] Compiling Mqtt LocalStorage.swift
[104/115] Compiling Mqtt PublishPacket.swift
[105/115] Compiling Mqtt SubAckPacket.swift
[106/115] Compiling Mqtt PingRespPacket.swift
[107/115] Compiling Mqtt PubAckPacket.swift
[108/115] Compiling Mqtt PubCompPacket.swift
[109/115] Compiling Mqtt SubscribePacket.swift
[110/115] Compiling Mqtt UnsubAckPacket.swift
[111/115] Compiling Mqtt DisconnectPacket.swift
/host/spi-builder-workspace/Sources/Mqtt/Packet/Packet.swift:173:28: warning: initialization of 'UnsafePointer<UInt8>' results in a dangling pointer
        return Data(bytes: UnsafePointer<UInt8>(packToBytes), count: packToBytes.count)
                           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Mqtt/Packet/Packet.swift:173:49: note: implicit argument conversion from 'Array<UInt8>' to 'UnsafePointer<UInt8>' produces a pointer valid only for the duration of the call to 'init(_:)'
        return Data(bytes: UnsafePointer<UInt8>(packToBytes), count: packToBytes.count)
                                                ^~~~~~~~~~~
/host/spi-builder-workspace/Sources/Mqtt/Packet/Packet.swift:173:49: note: use the 'withUnsafeBufferPointer' method on Array in order to explicitly convert argument to buffer pointer valid for a defined scope
        return Data(bytes: UnsafePointer<UInt8>(packToBytes), count: packToBytes.count)
                                                ^
/host/spi-builder-workspace/Sources/Mqtt/Packet/Packet.swift:205:28: warning: initialization of 'UnsafePointer<UInt8>' results in a dangling pointer
        return Data(bytes: UnsafePointer<UInt8>(packToBytes), count: packToBytes.count)
                           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Mqtt/Packet/Packet.swift:205:49: note: implicit argument conversion from 'Array<UInt8>' to 'UnsafePointer<UInt8>' produces a pointer valid only for the duration of the call to 'init(_:)'
        return Data(bytes: UnsafePointer<UInt8>(packToBytes), count: packToBytes.count)
                                                ^~~~~~~~~~~
/host/spi-builder-workspace/Sources/Mqtt/Packet/Packet.swift:205:49: note: use the 'withUnsafeBufferPointer' method on Array in order to explicitly convert argument to buffer pointer valid for a defined scope
        return Data(bytes: UnsafePointer<UInt8>(packToBytes), count: packToBytes.count)
                                                ^
[112/115] Compiling Mqtt Packet.swift
/host/spi-builder-workspace/Sources/Mqtt/Packet/Packet.swift:173:28: warning: initialization of 'UnsafePointer<UInt8>' results in a dangling pointer
        return Data(bytes: UnsafePointer<UInt8>(packToBytes), count: packToBytes.count)
                           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Mqtt/Packet/Packet.swift:173:49: note: implicit argument conversion from 'Array<UInt8>' to 'UnsafePointer<UInt8>' produces a pointer valid only for the duration of the call to 'init(_:)'
        return Data(bytes: UnsafePointer<UInt8>(packToBytes), count: packToBytes.count)
                                                ^~~~~~~~~~~
/host/spi-builder-workspace/Sources/Mqtt/Packet/Packet.swift:173:49: note: use the 'withUnsafeBufferPointer' method on Array in order to explicitly convert argument to buffer pointer valid for a defined scope
        return Data(bytes: UnsafePointer<UInt8>(packToBytes), count: packToBytes.count)
                                                ^
/host/spi-builder-workspace/Sources/Mqtt/Packet/Packet.swift:205:28: warning: initialization of 'UnsafePointer<UInt8>' results in a dangling pointer
        return Data(bytes: UnsafePointer<UInt8>(packToBytes), count: packToBytes.count)
                           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Mqtt/Packet/Packet.swift:205:49: note: implicit argument conversion from 'Array<UInt8>' to 'UnsafePointer<UInt8>' produces a pointer valid only for the duration of the call to 'init(_:)'
        return Data(bytes: UnsafePointer<UInt8>(packToBytes), count: packToBytes.count)
                                                ^~~~~~~~~~~
/host/spi-builder-workspace/Sources/Mqtt/Packet/Packet.swift:205:49: note: use the 'withUnsafeBufferPointer' method on Array in order to explicitly convert argument to buffer pointer valid for a defined scope
        return Data(bytes: UnsafePointer<UInt8>(packToBytes), count: packToBytes.count)
                                                ^
[113/115] Compiling Mqtt PingReqPacket.swift
/host/spi-builder-workspace/Sources/Mqtt/Packet/Packet.swift:173:28: warning: initialization of 'UnsafePointer<UInt8>' results in a dangling pointer
        return Data(bytes: UnsafePointer<UInt8>(packToBytes), count: packToBytes.count)
                           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Mqtt/Packet/Packet.swift:173:49: note: implicit argument conversion from 'Array<UInt8>' to 'UnsafePointer<UInt8>' produces a pointer valid only for the duration of the call to 'init(_:)'
        return Data(bytes: UnsafePointer<UInt8>(packToBytes), count: packToBytes.count)
                                                ^~~~~~~~~~~
/host/spi-builder-workspace/Sources/Mqtt/Packet/Packet.swift:173:49: note: use the 'withUnsafeBufferPointer' method on Array in order to explicitly convert argument to buffer pointer valid for a defined scope
        return Data(bytes: UnsafePointer<UInt8>(packToBytes), count: packToBytes.count)
                                                ^
/host/spi-builder-workspace/Sources/Mqtt/Packet/Packet.swift:205:28: warning: initialization of 'UnsafePointer<UInt8>' results in a dangling pointer
        return Data(bytes: UnsafePointer<UInt8>(packToBytes), count: packToBytes.count)
                           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Mqtt/Packet/Packet.swift:205:49: note: implicit argument conversion from 'Array<UInt8>' to 'UnsafePointer<UInt8>' produces a pointer valid only for the duration of the call to 'init(_:)'
        return Data(bytes: UnsafePointer<UInt8>(packToBytes), count: packToBytes.count)
                                                ^~~~~~~~~~~
/host/spi-builder-workspace/Sources/Mqtt/Packet/Packet.swift:205:49: note: use the 'withUnsafeBufferPointer' method on Array in order to explicitly convert argument to buffer pointer valid for a defined scope
        return Data(bytes: UnsafePointer<UInt8>(packToBytes), count: packToBytes.count)
                                                ^
[114/115] Compiling Mqtt UnsubscribePacket.swift
/host/spi-builder-workspace/Sources/Mqtt/Session/Session.swift:515:13: warning: variable 'buffer' was never mutated; consider changing to 'let' constant
        var buffer = try socket.read(max: readLength)
        ~~~ ^
        let
[115/115] Compiling Mqtt Session.swift
/host/spi-builder-workspace/Sources/Mqtt/Session/Session.swift:515:13: warning: variable 'buffer' was never mutated; consider changing to 'let' constant
        var buffer = try socket.read(max: readLength)
        ~~~ ^
        let
Build complete! (12.03s)
Build complete.
Done.

Build Machine: Linux 2