Build Information
Successful build of BRUtils with Swift 6.0 for Linux.
Swift 6 data race errors: 1
Build Command
bash -c docker run --rm -v "checkouts-4609320-0":/host -w "$workDir" registry.gitlab.com/finestructure/spi-images:basic-6.0-latest swift build --triple x86_64-unknown-linux-gnu -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete 2>&1
Build Log
========================================
RunAll
========================================
Builder version: 4.40.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/Balancingrock/BRUtils.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/Balancingrock/BRUtils
* branch master -> FETCH_HEAD
* [new branch] master -> origin/master
HEAD is now at b2ba81e Added license, swift version and platforms
Cloned https://github.com/Balancingrock/BRUtils.git
Revision (git rev-parse @):
b2ba81ea6098d32dd3a59c35b70fd7be72ea6afd
SUCCESS checkout https://github.com/Balancingrock/BRUtils.git at master
========================================
Build
========================================
Selected platform: linux
Swift version: 6.0
Building package at path: $workDir
https://github.com/Balancingrock/BRUtils.git
Running build ...
bash -c docker run --rm -v "checkouts-4609320-0":/host -w "$workDir" registry.gitlab.com/finestructure/spi-images:basic-6.0-latest swift build --triple x86_64-unknown-linux-gnu -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete 2>&1
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-24593BA9C3E375BF.txt
[3/11] Compiling BRUtils Int.Extensions.swift
[4/11] Compiling BRUtils NSNumber.Extensions.swift
[5/12] Compiling BRUtils GlobalFunctions.swift
[6/12] Emitting module BRUtils
/host/spi-builder-workspace/Sources/BRUtils/Endianness.swift:57:12: warning: let 'machineEndianness' is not concurrency-safe because non-'Sendable' type 'Endianness' may have shared mutable state; this is an error in the Swift 6 language mode
39 | /// The endianess type
40 |
41 | public enum Endianness {
| `- note: consider making enum 'Endianness' conform to the 'Sendable' protocol
42 |
43 |
:
55 | /// The endianness of the local computer
56 |
57 | public let machineEndianness: Endianness = {
| |- warning: let 'machineEndianness' is not concurrency-safe because non-'Sendable' type 'Endianness' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'machineEndianness' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
58 | func test(_ ptr: UnsafePointer<UInt16>) -> Endianness {
59 | let mptr = UnsafeRawPointer(ptr)
[7/12] Compiling BRUtils Array.Extensions.swift
[8/12] Compiling BRUtils Bool.Extensions.swift
[9/12] Compiling BRUtils Date.Extensions.swift
[10/12] Compiling BRUtils Data.Extensions.swift
[11/12] Compiling BRUtils Endianness.swift
/host/spi-builder-workspace/Sources/BRUtils/Endianness.swift:57:12: warning: let 'machineEndianness' is not concurrency-safe because non-'Sendable' type 'Endianness' may have shared mutable state; this is an error in the Swift 6 language mode
39 | /// The endianess type
40 |
41 | public enum Endianness {
| `- note: consider making enum 'Endianness' conform to the 'Sendable' protocol
42 |
43 |
:
55 | /// The endianness of the local computer
56 |
57 | public let machineEndianness: Endianness = {
| |- warning: let 'machineEndianness' is not concurrency-safe because non-'Sendable' type 'Endianness' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'machineEndianness' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
58 | func test(_ ptr: UnsafePointer<UInt16>) -> Endianness {
59 | let mptr = UnsafeRawPointer(ptr)
[12/12] Compiling BRUtils TimeRelated.swift
Build complete! (13.47s)
Build complete.
{
"dependencies" : [
],
"manifest_display_name" : "BRUtils",
"name" : "BRUtils",
"path" : "/host/spi-builder-workspace",
"platforms" : [
{
"name" : "macos",
"version" : "10.10"
},
{
"name" : "ios",
"version" : "8.0"
}
],
"products" : [
{
"name" : "BRUtils",
"targets" : [
"BRUtils"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"swift_languages_versions" : [
"4",
"4.2",
"5"
],
"targets" : [
{
"c99name" : "BRUtils",
"module_type" : "SwiftTarget",
"name" : "BRUtils",
"path" : "Sources/BRUtils",
"product_memberships" : [
"BRUtils"
],
"sources" : [
"Array.Extensions.swift",
"Bool.Extensions.swift",
"Data.Extensions.swift",
"Date.Extensions.swift",
"Endianness.swift",
"GlobalFunctions.swift",
"Int.Extensions.swift",
"NSNumber.Extensions.swift",
"TimeRelated.swift"
],
"type" : "library"
}
],
"tools_version" : "5.0"
}
Done.