Build Information
Successful build of SwiftBinary, reference master (a50d71), with Swift 6.2 for Linux on 17 Jun 2025 19:54:06 UTC.
Swift 6 data race errors: 0
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4606859-3":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.2-latest swift build --triple x86_64-unknown-linux-gnu 2>&1Build Log
========================================
RunAll
========================================
Builder version: 4.64.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/andersonlucasg3/Swift.Binary.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/andersonlucasg3/Swift.Binary
* branch master -> FETCH_HEAD
* [new branch] master -> origin/master
HEAD is now at a50d712 Merge branch 'hotfix/1.1.2'
Cloned https://github.com/andersonlucasg3/Swift.Binary.git
Revision (git rev-parse @):
a50d712a9babea657af2950b6374fac802c6365c
SUCCESS checkout https://github.com/andersonlucasg3/Swift.Binary.git at master
========================================
Build
========================================
Selected platform: linux
Swift version: 6.2
Building package at path: $PWD
https://github.com/andersonlucasg3/Swift.Binary.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-3":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.2-latest swift build --triple x86_64-unknown-linux-gnu 2>&1
basic-6.2-latest: Pulling from finestructure/spi-images
Digest: sha256:f81a7bd7aa87a0f81848d48c5bcc03f5f78deebd37fa5f9be9913077205d3687
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.2-latest
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-24593BA9C3E375BF.txt
[3/14] Compiling SwiftBinary Encodable.swift
/host/spi-builder-workspace/Sources/SwiftBinary/Encodable.swift:12:2: warning: 'public' modifier is redundant for instance method declared in a public extension
10 |
11 | public extension Encodable {
12 | public func writeString(_ string: String, into data: inout Data) {
| `- warning: 'public' modifier is redundant for instance method declared in a public extension
13 | var length = Int32(string.lengthOfBytes(using: .utf8))
14 | data.append(self.unsafeBytes(of: &length))
/host/spi-builder-workspace/Sources/SwiftBinary/Encodable.swift:19:2: warning: 'public' modifier is redundant for instance method declared in a public extension
17 | }
18 |
19 | public func writeData(_ dt: Data, into data: inout Data) {
| `- warning: 'public' modifier is redundant for instance method declared in a public extension
20 | var length = Int32(dt.count)
21 | data.append(self.unsafeBytes(of: &length))
/host/spi-builder-workspace/Sources/SwiftBinary/Encodable.swift:25:2: warning: 'public' modifier is redundant for instance method declared in a public extension
23 | }
24 |
25 | public func writeOther<T>(_ other: T, info data: inout Data) {
| `- warning: 'public' modifier is redundant for instance method declared in a public extension
26 | var value = other
27 | data.append(self.unsafeBytes(of: &value))
/host/spi-builder-workspace/Sources/SwiftBinary/Encodable.swift:30:2: warning: 'public' modifier is redundant for instance method declared in a public extension
28 | }
29 |
30 | public func unsafeBytes<T>(of value: inout T) -> UnsafeBufferPointer<UInt8> {
| `- warning: 'public' modifier is redundant for instance method declared in a public extension
31 | let size = MemoryLayout.size(ofValue: value)
32 | return withUnsafePointer(to: &value, {
[4/14] Compiling SwiftBinary IvarArray.swift
/host/spi-builder-workspace/Sources/SwiftBinary/Encodable.swift:12:2: warning: 'public' modifier is redundant for instance method declared in a public extension
10 |
11 | public extension Encodable {
12 | public func writeString(_ string: String, into data: inout Data) {
| `- warning: 'public' modifier is redundant for instance method declared in a public extension
13 | var length = Int32(string.lengthOfBytes(using: .utf8))
14 | data.append(self.unsafeBytes(of: &length))
/host/spi-builder-workspace/Sources/SwiftBinary/Encodable.swift:19:2: warning: 'public' modifier is redundant for instance method declared in a public extension
17 | }
18 |
19 | public func writeData(_ dt: Data, into data: inout Data) {
| `- warning: 'public' modifier is redundant for instance method declared in a public extension
20 | var length = Int32(dt.count)
21 | data.append(self.unsafeBytes(of: &length))
/host/spi-builder-workspace/Sources/SwiftBinary/Encodable.swift:25:2: warning: 'public' modifier is redundant for instance method declared in a public extension
23 | }
24 |
25 | public func writeOther<T>(_ other: T, info data: inout Data) {
| `- warning: 'public' modifier is redundant for instance method declared in a public extension
26 | var value = other
27 | data.append(self.unsafeBytes(of: &value))
/host/spi-builder-workspace/Sources/SwiftBinary/Encodable.swift:30:2: warning: 'public' modifier is redundant for instance method declared in a public extension
28 | }
29 |
30 | public func unsafeBytes<T>(of value: inout T) -> UnsafeBufferPointer<UInt8> {
| `- warning: 'public' modifier is redundant for instance method declared in a public extension
31 | let size = MemoryLayout.size(ofValue: value)
32 | return withUnsafePointer(to: &value, {
[5/15] Compiling SwiftBinary Decodable.swift
/host/spi-builder-workspace/Sources/SwiftBinary/Decodable.swift:13:2: warning: 'public' modifier is redundant for instance method declared in a public extension
11 |
12 | public extension Decodable {
13 | public func readString(from bytes: inout UnsafePointer<UInt8>) -> String {
| `- warning: 'public' modifier is redundant for instance method declared in a public extension
14 | let length = Int(bytes.withMemoryRebound(to: Int32.self, capacity: 1, { $0.pointee }))
15 | bytes = bytes.advanced(by: MemoryLayout<Int32>.size)
/host/spi-builder-workspace/Sources/SwiftBinary/Decodable.swift:22:2: warning: 'public' modifier is redundant for instance method declared in a public extension
20 | }
21 |
22 | public func readData(from bytes: inout UnsafePointer<UInt8>) -> Data {
| `- warning: 'public' modifier is redundant for instance method declared in a public extension
23 | let length = Int(bytes.withMemoryRebound(to: Int32.self, capacity: 1, { $0.pointee }))
24 | bytes = bytes.advanced(by: MemoryLayout<Int32>.size)
/host/spi-builder-workspace/Sources/SwiftBinary/Decodable.swift:31:2: warning: 'public' modifier is redundant for instance method declared in a public extension
29 | }
30 |
31 | public func readOther<T>(from bytes: inout UnsafePointer<UInt8>, advance: Bool? = nil) -> T {
| `- warning: 'public' modifier is redundant for instance method declared in a public extension
32 | let value = bytes.withMemoryRebound(to: T.self, capacity: 1, { $0.pointee })
33 | if advance.value(true) {
/host/spi-builder-workspace/Sources/SwiftBinary/Dictionary+AnyNotNil.swift:11:2: warning: 'public' modifier is redundant for instance method declared in a public extension
9 |
10 | public extension Dictionary where Key == String, Value == Any {
11 | public mutating func append(_ value: Any, for key: String) {
| `- warning: 'public' modifier is redundant for instance method declared in a public extension
12 | let optionalValue = value as? OptionalProtocol
13 | if optionalValue.isSome() {
[6/15] Compiling SwiftBinary Dictionary+AnyNotNil.swift
/host/spi-builder-workspace/Sources/SwiftBinary/Decodable.swift:13:2: warning: 'public' modifier is redundant for instance method declared in a public extension
11 |
12 | public extension Decodable {
13 | public func readString(from bytes: inout UnsafePointer<UInt8>) -> String {
| `- warning: 'public' modifier is redundant for instance method declared in a public extension
14 | let length = Int(bytes.withMemoryRebound(to: Int32.self, capacity: 1, { $0.pointee }))
15 | bytes = bytes.advanced(by: MemoryLayout<Int32>.size)
/host/spi-builder-workspace/Sources/SwiftBinary/Decodable.swift:22:2: warning: 'public' modifier is redundant for instance method declared in a public extension
20 | }
21 |
22 | public func readData(from bytes: inout UnsafePointer<UInt8>) -> Data {
| `- warning: 'public' modifier is redundant for instance method declared in a public extension
23 | let length = Int(bytes.withMemoryRebound(to: Int32.self, capacity: 1, { $0.pointee }))
24 | bytes = bytes.advanced(by: MemoryLayout<Int32>.size)
/host/spi-builder-workspace/Sources/SwiftBinary/Decodable.swift:31:2: warning: 'public' modifier is redundant for instance method declared in a public extension
29 | }
30 |
31 | public func readOther<T>(from bytes: inout UnsafePointer<UInt8>, advance: Bool? = nil) -> T {
| `- warning: 'public' modifier is redundant for instance method declared in a public extension
32 | let value = bytes.withMemoryRebound(to: T.self, capacity: 1, { $0.pointee })
33 | if advance.value(true) {
/host/spi-builder-workspace/Sources/SwiftBinary/Dictionary+AnyNotNil.swift:11:2: warning: 'public' modifier is redundant for instance method declared in a public extension
9 |
10 | public extension Dictionary where Key == String, Value == Any {
11 | public mutating func append(_ value: Any, for key: String) {
| `- warning: 'public' modifier is redundant for instance method declared in a public extension
12 | let optionalValue = value as? OptionalProtocol
13 | if optionalValue.isSome() {
[7/15] Emitting module SwiftBinary
/host/spi-builder-workspace/Sources/SwiftBinary/Decodable.swift:13:2: warning: 'public' modifier is redundant for instance method declared in a public extension
11 |
12 | public extension Decodable {
13 | public func readString(from bytes: inout UnsafePointer<UInt8>) -> String {
| `- warning: 'public' modifier is redundant for instance method declared in a public extension
14 | let length = Int(bytes.withMemoryRebound(to: Int32.self, capacity: 1, { $0.pointee }))
15 | bytes = bytes.advanced(by: MemoryLayout<Int32>.size)
/host/spi-builder-workspace/Sources/SwiftBinary/Decodable.swift:22:2: warning: 'public' modifier is redundant for instance method declared in a public extension
20 | }
21 |
22 | public func readData(from bytes: inout UnsafePointer<UInt8>) -> Data {
| `- warning: 'public' modifier is redundant for instance method declared in a public extension
23 | let length = Int(bytes.withMemoryRebound(to: Int32.self, capacity: 1, { $0.pointee }))
24 | bytes = bytes.advanced(by: MemoryLayout<Int32>.size)
/host/spi-builder-workspace/Sources/SwiftBinary/Decodable.swift:31:2: warning: 'public' modifier is redundant for instance method declared in a public extension
29 | }
30 |
31 | public func readOther<T>(from bytes: inout UnsafePointer<UInt8>, advance: Bool? = nil) -> T {
| `- warning: 'public' modifier is redundant for instance method declared in a public extension
32 | let value = bytes.withMemoryRebound(to: T.self, capacity: 1, { $0.pointee })
33 | if advance.value(true) {
/host/spi-builder-workspace/Sources/SwiftBinary/Dictionary+AnyNotNil.swift:11:2: warning: 'public' modifier is redundant for instance method declared in a public extension
9 |
10 | public extension Dictionary where Key == String, Value == Any {
11 | public mutating func append(_ value: Any, for key: String) {
| `- warning: 'public' modifier is redundant for instance method declared in a public extension
12 | let optionalValue = value as? OptionalProtocol
13 | if optionalValue.isSome() {
/host/spi-builder-workspace/Sources/SwiftBinary/Encodable.swift:12:2: warning: 'public' modifier is redundant for instance method declared in a public extension
10 |
11 | public extension Encodable {
12 | public func writeString(_ string: String, into data: inout Data) {
| `- warning: 'public' modifier is redundant for instance method declared in a public extension
13 | var length = Int32(string.lengthOfBytes(using: .utf8))
14 | data.append(self.unsafeBytes(of: &length))
/host/spi-builder-workspace/Sources/SwiftBinary/Encodable.swift:19:2: warning: 'public' modifier is redundant for instance method declared in a public extension
17 | }
18 |
19 | public func writeData(_ dt: Data, into data: inout Data) {
| `- warning: 'public' modifier is redundant for instance method declared in a public extension
20 | var length = Int32(dt.count)
21 | data.append(self.unsafeBytes(of: &length))
/host/spi-builder-workspace/Sources/SwiftBinary/Encodable.swift:25:2: warning: 'public' modifier is redundant for instance method declared in a public extension
23 | }
24 |
25 | public func writeOther<T>(_ other: T, info data: inout Data) {
| `- warning: 'public' modifier is redundant for instance method declared in a public extension
26 | var value = other
27 | data.append(self.unsafeBytes(of: &value))
/host/spi-builder-workspace/Sources/SwiftBinary/Encodable.swift:30:2: warning: 'public' modifier is redundant for instance method declared in a public extension
28 | }
29 |
30 | public func unsafeBytes<T>(of value: inout T) -> UnsafeBufferPointer<UInt8> {
| `- warning: 'public' modifier is redundant for instance method declared in a public extension
31 | let size = MemoryLayout.size(ofValue: value)
32 | return withUnsafePointer(to: &value, {
[8/15] Compiling SwiftBinary Convertable.swift
/host/spi-builder-workspace/Sources/SwiftBinary/Convertable.swift:22:16: warning: initialization of 'UnsafeMutablePointer<T>' results in a dangling pointer [#TemporaryPointers]
20 | public extension Convertable {
21 | func ref<T>(from: inout T) -> Any {
22 | return UnsafeMutablePointer<T>(&from)
| | |- note: implicit argument conversion from 'T' to 'UnsafeMutablePointer<T>' produces a pointer valid only for the duration of the call to 'init(_:)'
| | `- note: use 'withUnsafeMutablePointer' in order to explicitly convert argument to pointer valid for a defined scope
| `- warning: initialization of 'UnsafeMutablePointer<T>' results in a dangling pointer [#TemporaryPointers]
23 | }
24 | }
[#TemporaryPointers]: <https://docs.swift.org/compiler/documentation/diagnostics/temporary-pointers>
[9/15] Compiling SwiftBinary DataType.swift
/host/spi-builder-workspace/Sources/SwiftBinary/Convertable.swift:22:16: warning: initialization of 'UnsafeMutablePointer<T>' results in a dangling pointer [#TemporaryPointers]
20 | public extension Convertable {
21 | func ref<T>(from: inout T) -> Any {
22 | return UnsafeMutablePointer<T>(&from)
| | |- note: implicit argument conversion from 'T' to 'UnsafeMutablePointer<T>' produces a pointer valid only for the duration of the call to 'init(_:)'
| | `- note: use 'withUnsafeMutablePointer' in order to explicitly convert argument to pointer valid for a defined scope
| `- warning: initialization of 'UnsafeMutablePointer<T>' results in a dangling pointer [#TemporaryPointers]
23 | }
24 | }
[#TemporaryPointers]: <https://docs.swift.org/compiler/documentation/diagnostics/temporary-pointers>
[10/15] Compiling SwiftBinary Optional+Extensions.swift
[11/15] Compiling SwiftBinary Token.swift
[12/15] Compiling SwiftBinary IvarObject.swift
[13/15] Compiling SwiftBinary IvarToken.swift
[14/15] Compiling SwiftBinary ObjectDecoder.swift
[15/15] Compiling SwiftBinary ObjectEncoder.swift
/host/spi-builder-workspace/Sources/SwiftBinary/ObjectEncoder.swift:125:50: warning: forced cast from 'T' to 'AnyObject' always succeeds; did you mean to use 'as'?
123 | } else {
124 | #if os(Linux)
125 | return try self.encodeObject(ofObject: value as! AnyObject, forKey: key)
| `- warning: forced cast from 'T' to 'AnyObject' always succeeds; did you mean to use 'as'?
126 | #else
127 | return try self.encodeObject(ofObject: value as AnyObject, forKey: key)
/host/spi-builder-workspace/Sources/SwiftBinary/ObjectEncoder.swift:160:55: warning: forced cast from 'Any' to 'AnyObject' always succeeds; did you mean to use 'as'?
158 | for val in values {
159 | #if os(Linux)
160 | array.append(try self.encodeObject(ofObject: val as! AnyObject))
| `- warning: forced cast from 'Any' to 'AnyObject' always succeeds; did you mean to use 'as'?
161 | #else
162 | array.append(try self.encodeObject(ofObject: val as AnyObject))
Build complete! (13.22s)
Build complete.
{
"dependencies" : [
],
"manifest_display_name" : "SwiftBinary",
"name" : "SwiftBinary",
"path" : "/host/spi-builder-workspace",
"platforms" : [
],
"products" : [
{
"name" : "SwiftBinary",
"targets" : [
"SwiftBinary"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "SwiftBinaryTests",
"module_type" : "SwiftTarget",
"name" : "SwiftBinaryTests",
"path" : "Tests/SwiftBinaryTests",
"sources" : [
"SwiftBinaryLinuxTests.swift",
"SwiftBinaryTests.swift"
],
"target_dependencies" : [
"SwiftBinary"
],
"type" : "test"
},
{
"c99name" : "SwiftBinary",
"module_type" : "SwiftTarget",
"name" : "SwiftBinary",
"path" : "Sources/SwiftBinary",
"product_memberships" : [
"SwiftBinary"
],
"sources" : [
"Convertable.swift",
"DataType.swift",
"Decodable.swift",
"Dictionary+AnyNotNil.swift",
"Encodable.swift",
"IvarArray.swift",
"IvarObject.swift",
"IvarToken.swift",
"ObjectDecoder.swift",
"ObjectEncoder.swift",
"Optional+Extensions.swift",
"Token.swift"
],
"type" : "library"
}
],
"tools_version" : "4.0"
}
basic-6.2-latest: Pulling from finestructure/spi-images
Digest: sha256:f81a7bd7aa87a0f81848d48c5bcc03f5f78deebd37fa5f9be9913077205d3687
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.2-latest
Done.