The Swift Package Index logo.Swift Package Index

Build Information

Successful build of Mqtt with Swift 5.10 for Linux.

Build Command

bash -c docker run --rm -v "checkouts-4609320-0":/host -w "$workDir" registry.gitlab.com/finestructure/spi-images:basic-5.10-latest swift build 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.29.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/hjianbo/mqtt.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/hjianbo/mqtt
 * branch            master     -> FETCH_HEAD
 * [new branch]      master     -> origin/master
HEAD is now at 2af5589 Merge branch 'dev'
Cloned https://github.com/hjianbo/mqtt.git
Revision (git rev-parse @):
2af55898db7cccfc12accfd0a15fe4ecbf9fa579
SUCCESS checkout https://github.com/hjianbo/mqtt.git at master
========================================
Build
========================================
Selected platform:         linux
Swift version:             5.10
Building package at path:  $workDir
https://github.com/hjianbo/mqtt.git
Running build ...
bash -c docker run --rm -v "checkouts-4609320-0":/host -w "$workDir" registry.gitlab.com/finestructure/spi-images:basic-5.10-latest swift build 2>&1
Fetching https://github.com/vapor/bits.git
Fetching https://github.com/vapor/sockets
Fetching https://github.com/vapor/debugging.git
Fetching https://github.com/vapor/core.git
[1/358] Fetching bits
[349/3670] Fetching bits, sockets
[350/23813] Fetching bits, sockets, core
[684/24073] Fetching bits, sockets, core, debugging
Fetched https://github.com/vapor/debugging.git from cache (0.29s)
[6078/23813] Fetching bits, sockets, core
Fetched https://github.com/vapor/sockets from cache (0.96s)
Computing version for https://github.com/vapor/sockets
Fetched https://github.com/vapor/bits.git from cache (0.96s)
Fetched https://github.com/vapor/core.git from cache (0.98s)
Computed https://github.com/vapor/sockets at 2.2.2 (0.46s)
Computing version for https://github.com/vapor/core.git
Computed https://github.com/vapor/core.git at 2.2.0 (0.45s)
Computing version for https://github.com/vapor/debugging.git
Computed https://github.com/vapor/debugging.git at 1.1.1 (0.46s)
Computing version for https://github.com/vapor/bits.git
Computed https://github.com/vapor/bits.git at 1.1.0 (0.45s)
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/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/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...
[0/8] Write sources
[7/8] Write swift-version-24593BA9C3E375BF.txt
[9/30] Compiling Bits Operators.swift
[10/30] Compiling Bits String+BytesConvertible.swift
[11/32] Emitting module Bits
[12/32] Emitting module Debugging
[13/32] Compiling Bits Aliases.swift
[14/32] Compiling Bits Base64Encoder.swift
[15/32] Compiling Bits Byte+Alphabet.swift
[16/32] Compiling Debugging Debuggable.swift
[18/33] Compiling Bits UnsignedInteger+BytesConvertible.swift
[19/33] Compiling Bits UnsignedInteger+Shifting.swift
[20/33] Compiling Bits Data+BytesConvertible.swift
[21/33] Compiling Bits HexEncoder.swift
[22/33] Compiling Bits Bytes+Percent.swift
[23/33] Compiling Bits BytesConvertible.swift
[24/33] Emitting module libc
[25/33] Compiling libc libc.swift
[26/34] Compiling Bits Bytes+Base64.swift
[27/34] Compiling Bits Bytes+Hex.swift
[28/34] Compiling Bits Byte+ControlCharacters.swift
[29/34] Compiling Bits Byte+Convenience.swift
[30/34] Compiling Bits Byte+PatternMatching.swift
[31/34] Compiling Bits Byte+Random.swift
[32/34] Compiling Bits Byte+UTF8Numbers.swift
[33/34] Compiling Bits ByteSequence+Conversions.swift
[36/57] Emitting module Core
[37/59] Compiling Core Extendable.swift
[38/59] Compiling Core FileProtocol.swift
[39/59] Compiling Core Int+Hex.swift
[40/59] Compiling Core Lock.swift
[41/59] Compiling Core Portal.swift
[42/59] Compiling Core RFC1123.swift
[43/59] Compiling Core String.swift
[44/59] Compiling Core WorkingDirectory.swift
[45/59] Compiling Core DispatchTime+Utilities.swift
[46/59] Compiling Core EmptyInitializable.swift
[47/59] Compiling Core Exports.swift
[48/59] Compiling Core Array.swift
[49/59] Compiling Core Bits.swift
[50/59] Compiling Core Cache.swift
[51/59] Compiling Core Collection+Safe.swift
[52/59] Compiling Core DataFile.swift
[53/59] Compiling Core Dispatch.swift
[54/59] Compiling Core Result.swift
[55/59] Compiling Core Semaphore.swift
[56/59] Compiling Core Sequence.swift
[57/59] Compiling Core StaticDataBuffer.swift
[58/59] Compiling Core String+CaseInsensitiveCompare.swift
[59/59] Compiling Core String+Polymorphic.swift
[61/70] Compiling Transport Stream.swift
[62/71] Compiling Transport StreamError.swift
[63/71] Compiling Transport FoundationStream.swift
[64/71] Compiling Transport ReadableStream.swift
[65/71] Compiling Transport ServerStream.swift
[66/71] Compiling Transport Exports.swift
[67/71] Compiling Transport ClientStream.swift
[68/71] Emitting module Transport
[69/71] Compiling Transport InternetStream.swift
[70/71] Compiling Transport Port.swift
[71/71] Compiling Transport WriteableStream.swift
[73/93] Compiling Sockets TCPReadableSocket.swift
[74/93] Compiling Sockets TCPSocket.swift
[75/95] Compiling Sockets Types.swift
[76/95] Compiling Sockets Exports.swift
[77/95] Compiling Sockets Config.swift
[78/95] Emitting module Sockets
[79/95] Compiling Sockets Address+C.swift
[80/95] Compiling Sockets Address.swift
[81/95] Compiling Sockets Buffer.swift
[82/95] Compiling Sockets RawSocket.swift
[83/95] Compiling Sockets Select.swift
[84/95] Compiling Sockets Socket.swift
[85/95] Compiling Sockets Descriptor.swift
[86/95] Compiling Sockets InternetSocket.swift
[87/95] Compiling Sockets Pipe.swift
[88/95] Compiling Sockets SocketOptions.swift
[89/95] Compiling Sockets TCPEstablishedSocket.swift
[90/95] Compiling Sockets TCPInternetSocket.swift
[91/95] Compiling Sockets Conversions.swift
[92/95] Compiling Sockets Error.swift
[93/95] Compiling Sockets FDSet.swift
[94/95] Compiling Sockets TCPWriteableSocket.swift
[95/95] Compiling Sockets UDPSocket.swift
[97/115] Compiling Mqtt SubscribePacket.swift
[98/115] Compiling Mqtt UnsubAckPacket.swift
[99/117] Compiling Mqtt PubRecPacket.swift
[100/117] Compiling Mqtt PubRelPacket.swift
[101/117] Compiling Mqtt PingRespPacket.swift
[102/117] Compiling Mqtt PubAckPacket.swift
[103/117] Compiling Mqtt PubCompPacket.swift
[104/117] Compiling Mqtt PublishPacket.swift
[105/117] Compiling Mqtt SubAckPacket.swift
[106/117] Emitting module Mqtt
[107/117] 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)
                                                ^
[108/117] 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)
                                                ^
[109/117] 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)
                                                ^
[110/117] Compiling Mqtt DDLog.swift
[111/117] Compiling Mqtt Extension.swift
[112/117] Compiling Mqtt LocalStorage.swift
[113/117] Compiling Mqtt MqttClient.swift
[114/117] Compiling Mqtt ConnAckPacket.swift
[115/117] Compiling Mqtt ConnectPacket.swift
[116/117] 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
[117/117] 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! (21.55s)
Build complete.
Done.

Build Machine: Linux 2