The Swift Package Index logo.Swift Package Index

Has it really been five years since Swift Package Index launched? Read our anniversary blog post!

Build Information

Successful build of MemoryLayoutKit, reference 0.0.4 (06dc9f), with Swift 6.2 (beta) for Linux on 18 Jun 2025 14:40:03 UTC.

Swift 6 data race errors: 0

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4609320-0":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.2-latest swift build --triple x86_64-unknown-linux-gnu 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.64.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/Octadero/MemoryLayoutKit.git
Reference: 0.0.4
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/Octadero/MemoryLayoutKit
 * tag               0.0.4      -> FETCH_HEAD
HEAD is now at 06dc9f9 Swift 4.2 ready, Xcode beta 5 tested
Cloned https://github.com/Octadero/MemoryLayoutKit.git
Revision (git rev-parse @):
06dc9f9ffbbc5844e72d9ddee83f4b78e8c564c0
SUCCESS checkout https://github.com/Octadero/MemoryLayoutKit.git at 0.0.4
========================================
Build
========================================
Selected platform:         linux
Swift version:             6.2
Building package at path:  $PWD
https://github.com/Octadero/MemoryLayoutKit.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-0":/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/8] Compiling MemoryLayoutKit MemoryLayoutKit.swift
[4/8] Compiling MemoryLayoutKit General.swift
[5/8] Compiling MemoryLayoutKit Data.swift
/host/spi-builder-workspace/Sources/MemoryLayoutKit/Data.swift:21:2: warning: 'public' modifier is redundant for instance method declared in a public extension
19 | /// Feature to print data as hex array.
20 | public extension Data {
21 | 	public func hexEncodedString() -> String {
   |  `- warning: 'public' modifier is redundant for instance method declared in a public extension
22 | 		return map { String(format: " 0x%02hhx", $0) }.joined()
23 | 	}
/host/spi-builder-workspace/Sources/MemoryLayoutKit/Data.swift:27:2: warning: 'public' modifier is redundant for instance method declared in a public extension
25 |
26 | public extension Data {
27 | 	public func decode<T>() -> T {
   |  `- warning: 'public' modifier is redundant for instance method declared in a public extension
28 | 		let pointer = UnsafeMutablePointer<T>.allocate(capacity: MemoryLayout<T>.size)
29 | 		NSData(data: self).getBytes(pointer, length: MemoryLayout<T>.size)
/host/spi-builder-workspace/Sources/MemoryLayoutKit/Data.swift:35:2: warning: 'public' modifier is redundant for initializer declared in a public extension
33 | 	}
34 |
35 | 	public init<T>(fromArray values: [T]) {
   |  `- warning: 'public' modifier is redundant for initializer declared in a public extension
36 | 		var values = values
37 | 		self.init(buffer: UnsafeBufferPointer(start: &values, count: values.count))
/host/spi-builder-workspace/Sources/MemoryLayoutKit/Data.swift:40:2: warning: 'public' modifier is redundant for instance method declared in a public extension
38 | 	}
39 |
40 | 	public func toArray<T>(type: T.Type) -> [T] {
   |  `- warning: 'public' modifier is redundant for instance method declared in a public extension
41 | 		return self.withUnsafeBytes {
42 | 			[T](UnsafeBufferPointer(start: $0, count: self.count/MemoryLayout<T>.stride))
/host/spi-builder-workspace/Sources/MemoryLayoutKit/Data.swift:37:21: warning: initialization of 'UnsafeBufferPointer<T>' results in a dangling buffer pointer [#TemporaryPointers]
35 | 	public init<T>(fromArray values: [T]) {
36 | 		var values = values
37 | 		self.init(buffer: UnsafeBufferPointer(start: &values, count: values.count))
   |                     |                          |- note: implicit argument conversion from '[T]' to 'UnsafePointer<T>?' produces a pointer valid only for the duration of the call to 'init(start:count:)'
   |                     |                          `- note: use the 'withUnsafeBufferPointer' method on Array in order to explicitly convert argument to buffer pointer valid for a defined scope
   |                     `- warning: initialization of 'UnsafeBufferPointer<T>' results in a dangling buffer pointer [#TemporaryPointers]
38 | 	}
39 |
[#TemporaryPointers]: <https://docs.swift.org/compiler/documentation/diagnostics/temporary-pointers>
[6/8] Emitting module MemoryLayoutKit
/host/spi-builder-workspace/Sources/MemoryLayoutKit/Data.swift:21:2: warning: 'public' modifier is redundant for instance method declared in a public extension
19 | /// Feature to print data as hex array.
20 | public extension Data {
21 | 	public func hexEncodedString() -> String {
   |  `- warning: 'public' modifier is redundant for instance method declared in a public extension
22 | 		return map { String(format: " 0x%02hhx", $0) }.joined()
23 | 	}
/host/spi-builder-workspace/Sources/MemoryLayoutKit/Data.swift:27:2: warning: 'public' modifier is redundant for instance method declared in a public extension
25 |
26 | public extension Data {
27 | 	public func decode<T>() -> T {
   |  `- warning: 'public' modifier is redundant for instance method declared in a public extension
28 | 		let pointer = UnsafeMutablePointer<T>.allocate(capacity: MemoryLayout<T>.size)
29 | 		NSData(data: self).getBytes(pointer, length: MemoryLayout<T>.size)
/host/spi-builder-workspace/Sources/MemoryLayoutKit/Data.swift:35:2: warning: 'public' modifier is redundant for initializer declared in a public extension
33 | 	}
34 |
35 | 	public init<T>(fromArray values: [T]) {
   |  `- warning: 'public' modifier is redundant for initializer declared in a public extension
36 | 		var values = values
37 | 		self.init(buffer: UnsafeBufferPointer(start: &values, count: values.count))
/host/spi-builder-workspace/Sources/MemoryLayoutKit/Data.swift:40:2: warning: 'public' modifier is redundant for instance method declared in a public extension
38 | 	}
39 |
40 | 	public func toArray<T>(type: T.Type) -> [T] {
   |  `- warning: 'public' modifier is redundant for instance method declared in a public extension
41 | 		return self.withUnsafeBytes {
42 | 			[T](UnsafeBufferPointer(start: $0, count: self.count/MemoryLayout<T>.stride))
/host/spi-builder-workspace/Sources/MemoryLayoutKit/SynchronizedArray.swift:121:5: warning: 'public' modifier is redundant for instance method declared in a public extension
119 | 	/// - Parameter transform: A closure that accepts an element of this sequence as its argument and returns an optional value.
120 | 	/// - Returns: An array of the non-nil results of calling transform with each element of the sequence.
121 |     public func compactMap<ElementOfResult>(_ transform: (Element) throws -> ElementOfResult?) rethrows -> [ElementOfResult] {
    |     `- warning: 'public' modifier is redundant for instance method declared in a public extension
122 | 		var result = [ElementOfResult]()
123 |         try queue.sync { result = try self.array.compactMap(transform) }
/host/spi-builder-workspace/Sources/MemoryLayoutKit/SynchronizedArray.swift:166:2: warning: 'public' modifier is redundant for instance method declared in a public extension
164 | 	}
165 |
166 | 	public func append<S>(contentsOf newElements: S) where S : Sequence, S.Iterator.Element == Element {
    |  `- warning: 'public' modifier is redundant for instance method declared in a public extension
167 | 		queue.async(flags: .barrier) {
168 | 			self.array.append(contentsOf: newElements)
[7/8] Compiling MemoryLayoutKit Array.swift
[8/8] Compiling MemoryLayoutKit SynchronizedArray.swift
/host/spi-builder-workspace/Sources/MemoryLayoutKit/SynchronizedArray.swift:121:5: warning: 'public' modifier is redundant for instance method declared in a public extension
119 | 	/// - Parameter transform: A closure that accepts an element of this sequence as its argument and returns an optional value.
120 | 	/// - Returns: An array of the non-nil results of calling transform with each element of the sequence.
121 |     public func compactMap<ElementOfResult>(_ transform: (Element) throws -> ElementOfResult?) rethrows -> [ElementOfResult] {
    |     `- warning: 'public' modifier is redundant for instance method declared in a public extension
122 | 		var result = [ElementOfResult]()
123 |         try queue.sync { result = try self.array.compactMap(transform) }
/host/spi-builder-workspace/Sources/MemoryLayoutKit/SynchronizedArray.swift:166:2: warning: 'public' modifier is redundant for instance method declared in a public extension
164 | 	}
165 |
166 | 	public func append<S>(contentsOf newElements: S) where S : Sequence, S.Iterator.Element == Element {
    |  `- warning: 'public' modifier is redundant for instance method declared in a public extension
167 | 		queue.async(flags: .barrier) {
168 | 			self.array.append(contentsOf: newElements)
/host/spi-builder-workspace/Sources/MemoryLayoutKit/SynchronizedArray.swift:168:15: warning: capture of non-Sendable type 'S.Type' in an isolated closure; this is an error in the Swift 6 language mode
166 | 	public func append<S>(contentsOf newElements: S) where S : Sequence, S.Iterator.Element == Element {
167 | 		queue.async(flags: .barrier) {
168 | 			self.array.append(contentsOf: newElements)
    |               `- warning: capture of non-Sendable type 'S.Type' in an isolated closure; this is an error in the Swift 6 language mode
169 | 		}
170 | 	}
/host/spi-builder-workspace/Sources/MemoryLayoutKit/SynchronizedArray.swift:166:35: warning: capture of non-Sendable type 'S.Type' in an isolated closure; this is an error in the Swift 6 language mode
164 | 	}
165 |
166 | 	public func append<S>(contentsOf newElements: S) where S : Sequence, S.Iterator.Element == Element {
    |                                   `- warning: capture of non-Sendable type 'S.Type' in an isolated closure; this is an error in the Swift 6 language mode
167 | 		queue.async(flags: .barrier) {
168 | 			self.array.append(contentsOf: newElements)
/host/spi-builder-workspace/Sources/MemoryLayoutKit/SynchronizedArray.swift:269:4: warning: mutation of captured var 'result' in concurrently-executing code; this is an error in the Swift 6 language mode [#SendableClosureCaptures]
267 | 		var result: Int = 0
268 | 		queue.async(flags: .barrier) {
269 | 			result = self.array.underestimatedCount
    |    `- warning: mutation of captured var 'result' in concurrently-executing code; this is an error in the Swift 6 language mode [#SendableClosureCaptures]
270 | 		}
271 | 		return result
/host/spi-builder-workspace/Sources/MemoryLayoutKit/SynchronizedArray.swift:370:4: warning: mutation of captured var 'result' in concurrently-executing code; this is an error in the Swift 6 language mode [#SendableClosureCaptures]
368 | 		var result = ""
369 | 		queue.async(flags: .barrier) {
370 | 			result = self.array.joined(separator: separator)
    |    `- warning: mutation of captured var 'result' in concurrently-executing code; this is an error in the Swift 6 language mode [#SendableClosureCaptures]
371 | 		}
372 | 		return result
[#SendableClosureCaptures]: <https://docs.swift.org/compiler/documentation/diagnostics/sendable-closure-captures>
Build complete! (10.99s)
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "MemoryLayoutKit",
  "name" : "MemoryLayoutKit",
  "path" : "/host/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "MemoryLayoutKit",
      "targets" : [
        "MemoryLayoutKit"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "MemoryLayoutKitTests",
      "module_type" : "SwiftTarget",
      "name" : "MemoryLayoutKitTests",
      "path" : "Tests/MemoryLayoutKitTests",
      "sources" : [
        "MemoryLayoutKitTests.swift"
      ],
      "target_dependencies" : [
        "MemoryLayoutKit"
      ],
      "type" : "test"
    },
    {
      "c99name" : "MemoryLayoutKit",
      "module_type" : "SwiftTarget",
      "name" : "MemoryLayoutKit",
      "path" : "Sources/MemoryLayoutKit",
      "product_memberships" : [
        "MemoryLayoutKit"
      ],
      "sources" : [
        "Array.swift",
        "Data.swift",
        "General.swift",
        "MemoryLayoutKit.swift",
        "SynchronizedArray.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "4.2"
}
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.