Build Information
Successful build of xsys, reference main (084e2f
), with Swift 6.0 for Linux on 28 Nov 2024 07:50:02 UTC.
Swift 6 data race errors: 5
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4609320-0":/host -w "$PWD" 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 -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures 2>&1
Build Log
========================================
RunAll
========================================
Builder version: 4.58.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/NozeIO/xsys.git
Reference: main
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/NozeIO/xsys
* branch main -> FETCH_HEAD
* [new branch] main -> origin/main
HEAD is now at 084e2ff More `@inlinable`
Cloned https://github.com/NozeIO/xsys.git
Revision (git rev-parse @):
084e2ff0667dd43f0a31868aa40463b287d2d9df
SUCCESS checkout https://github.com/NozeIO/xsys.git at main
========================================
Build
========================================
Selected platform: linux
Swift version: 6.0
Building package at path: $PWD
https://github.com/NozeIO/xsys.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.0-latest swift build --triple x86_64-unknown-linux-gnu -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures 2>&1
basic-6.0-latest: Pulling from finestructure/spi-images
Digest: sha256:47d26c99ca4f1ac0a332c85fd5b13ff4390e72115219984a57a68fe9d1063a05
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.0-latest
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-24593BA9C3E375BF.txt
[3/16] Compiling xsys socket.swift
[4/16] Compiling xsys time.swift
[5/17] Compiling xsys ntohs.swift
[6/17] Compiling xsys sockaddr_any.swift
[7/17] Compiling xsys timespec.swift
/host/spi-builder-workspace/Sources/xsys/timespec.swift:92:1: warning: extension declares a conformance of imported type 'timespec' to imported protocol 'CustomStringConvertible'; this will not behave correctly if the owners of 'SwiftGlibc' introduce this conformance in the future
90 | }
91 |
92 | extension timespec: CustomStringConvertible {
| |- warning: extension declares a conformance of imported type 'timespec' to imported protocol 'CustomStringConvertible'; this will not behave correctly if the owners of 'SwiftGlibc' introduce this conformance in the future
| `- note: add '@retroactive' to silence this warning
93 | @inlinable
94 | public var description : String {
/host/spi-builder-workspace/Sources/xsys/timespec.swift:104:1: warning: extension declares a conformance of imported type 'timeval' to imported protocol 'CustomStringConvertible'; this will not behave correctly if the owners of 'SwiftGlibc' introduce this conformance in the future
102 | }
103 |
104 | extension timeval: CustomStringConvertible {
| |- warning: extension declares a conformance of imported type 'timeval' to imported protocol 'CustomStringConvertible'; this will not behave correctly if the owners of 'SwiftGlibc' introduce this conformance in the future
| `- note: add '@retroactive' to silence this warning
105 | @inlinable
106 | public var description : String {
[8/17] Compiling xsys dylib.swift
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/host/spi-builder-workspace/Sources/xsys/fd.swift:16:14: warning: let 'open' is not concurrency-safe because non-'Sendable' type 'xsysOpenType' (aka '(UnsafePointer<Int8>, Int32) -> Int32') may have shared mutable state; this is an error in the Swift 6 language mode
14 | import Glibc
15 |
16 | public let open : xsysOpenType = Glibc.open
| |- warning: let 'open' is not concurrency-safe because non-'Sendable' type 'xsysOpenType' (aka '(UnsafePointer<Int8>, Int32) -> Int32') may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'open' 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
17 | public let close = Glibc.close
18 | public let read = Glibc.read
[9/17] Compiling xsys fd.swift
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/host/spi-builder-workspace/Sources/xsys/fd.swift:16:14: warning: let 'open' is not concurrency-safe because non-'Sendable' type 'xsysOpenType' (aka '(UnsafePointer<Int8>, Int32) -> Int32') may have shared mutable state; this is an error in the Swift 6 language mode
14 | import Glibc
15 |
16 | public let open : xsysOpenType = Glibc.open
| |- warning: let 'open' is not concurrency-safe because non-'Sendable' type 'xsysOpenType' (aka '(UnsafePointer<Int8>, Int32) -> Int32') may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'open' 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
17 | public let close = Glibc.close
18 | public let read = Glibc.read
[10/17] Compiling xsys ioctl.swift
/host/spi-builder-workspace/Sources/xsys/ioctl.swift:49:23: warning: let 'dlHandle' is not concurrency-safe because non-'Sendable' type 'UnsafeMutableRawPointer?' may have shared mutable state; this is an error in the Swift 6 language mode
47 | // but not in Xcode yet?
48 |
49 | @usableFromInline let dlHandle = dlopen(nil, RTLD_NOW)
| |- warning: let 'dlHandle' is not concurrency-safe because non-'Sendable' type 'UnsafeMutableRawPointer?' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'dlHandle' 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
50 | @usableFromInline let fnFcntl = dlsym(dlHandle, "fcntl")
51 | @usableFromInline let fnIoctl = dlsym(dlHandle, "ioctl")
Swift.Optional:1:21: note: generic enum 'Optional' does not conform to the 'Sendable' protocol
1 | @frozen public enum Optional<Wrapped> : ~Copyable where Wrapped : ~Copyable {
| `- note: generic enum 'Optional' does not conform to the 'Sendable' protocol
2 | case none
3 | case some(Wrapped)
/host/spi-builder-workspace/Sources/xsys/ioctl.swift:50:23: warning: let 'fnFcntl' is not concurrency-safe because non-'Sendable' type 'UnsafeMutableRawPointer?' may have shared mutable state; this is an error in the Swift 6 language mode
48 |
49 | @usableFromInline let dlHandle = dlopen(nil, RTLD_NOW)
50 | @usableFromInline let fnFcntl = dlsym(dlHandle, "fcntl")
| |- warning: let 'fnFcntl' is not concurrency-safe because non-'Sendable' type 'UnsafeMutableRawPointer?' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'fnFcntl' 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
51 | @usableFromInline let fnIoctl = dlsym(dlHandle, "ioctl")
52 |
Swift.Optional:1:21: note: generic enum 'Optional' does not conform to the 'Sendable' protocol
1 | @frozen public enum Optional<Wrapped> : ~Copyable where Wrapped : ~Copyable {
| `- note: generic enum 'Optional' does not conform to the 'Sendable' protocol
2 | case none
3 | case some(Wrapped)
/host/spi-builder-workspace/Sources/xsys/ioctl.swift:51:23: warning: let 'fnIoctl' is not concurrency-safe because non-'Sendable' type 'UnsafeMutableRawPointer?' may have shared mutable state; this is an error in the Swift 6 language mode
49 | @usableFromInline let dlHandle = dlopen(nil, RTLD_NOW)
50 | @usableFromInline let fnFcntl = dlsym(dlHandle, "fcntl")
51 | @usableFromInline let fnIoctl = dlsym(dlHandle, "ioctl")
| |- warning: let 'fnIoctl' is not concurrency-safe because non-'Sendable' type 'UnsafeMutableRawPointer?' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'fnIoctl' 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
52 |
53 | @usableFromInline typealias fcntlViType =
Swift.Optional:1:21: note: generic enum 'Optional' does not conform to the 'Sendable' protocol
1 | @frozen public enum Optional<Wrapped> : ~Copyable where Wrapped : ~Copyable {
| `- note: generic enum 'Optional' does not conform to the 'Sendable' protocol
2 | case none
3 | case some(Wrapped)
[11/17] Compiling xsys misc.swift
/host/spi-builder-workspace/Sources/xsys/ioctl.swift:49:23: warning: let 'dlHandle' is not concurrency-safe because non-'Sendable' type 'UnsafeMutableRawPointer?' may have shared mutable state; this is an error in the Swift 6 language mode
47 | // but not in Xcode yet?
48 |
49 | @usableFromInline let dlHandle = dlopen(nil, RTLD_NOW)
| |- warning: let 'dlHandle' is not concurrency-safe because non-'Sendable' type 'UnsafeMutableRawPointer?' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'dlHandle' 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
50 | @usableFromInline let fnFcntl = dlsym(dlHandle, "fcntl")
51 | @usableFromInline let fnIoctl = dlsym(dlHandle, "ioctl")
Swift.Optional:1:21: note: generic enum 'Optional' does not conform to the 'Sendable' protocol
1 | @frozen public enum Optional<Wrapped> : ~Copyable where Wrapped : ~Copyable {
| `- note: generic enum 'Optional' does not conform to the 'Sendable' protocol
2 | case none
3 | case some(Wrapped)
/host/spi-builder-workspace/Sources/xsys/ioctl.swift:50:23: warning: let 'fnFcntl' is not concurrency-safe because non-'Sendable' type 'UnsafeMutableRawPointer?' may have shared mutable state; this is an error in the Swift 6 language mode
48 |
49 | @usableFromInline let dlHandle = dlopen(nil, RTLD_NOW)
50 | @usableFromInline let fnFcntl = dlsym(dlHandle, "fcntl")
| |- warning: let 'fnFcntl' is not concurrency-safe because non-'Sendable' type 'UnsafeMutableRawPointer?' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'fnFcntl' 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
51 | @usableFromInline let fnIoctl = dlsym(dlHandle, "ioctl")
52 |
Swift.Optional:1:21: note: generic enum 'Optional' does not conform to the 'Sendable' protocol
1 | @frozen public enum Optional<Wrapped> : ~Copyable where Wrapped : ~Copyable {
| `- note: generic enum 'Optional' does not conform to the 'Sendable' protocol
2 | case none
3 | case some(Wrapped)
/host/spi-builder-workspace/Sources/xsys/ioctl.swift:51:23: warning: let 'fnIoctl' is not concurrency-safe because non-'Sendable' type 'UnsafeMutableRawPointer?' may have shared mutable state; this is an error in the Swift 6 language mode
49 | @usableFromInline let dlHandle = dlopen(nil, RTLD_NOW)
50 | @usableFromInline let fnFcntl = dlsym(dlHandle, "fcntl")
51 | @usableFromInline let fnIoctl = dlsym(dlHandle, "ioctl")
| |- warning: let 'fnIoctl' is not concurrency-safe because non-'Sendable' type 'UnsafeMutableRawPointer?' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'fnIoctl' 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
52 |
53 | @usableFromInline typealias fcntlViType =
Swift.Optional:1:21: note: generic enum 'Optional' does not conform to the 'Sendable' protocol
1 | @frozen public enum Optional<Wrapped> : ~Copyable where Wrapped : ~Copyable {
| `- note: generic enum 'Optional' does not conform to the 'Sendable' protocol
2 | case none
3 | case some(Wrapped)
[12/17] Compiling xsys Module.swift
/host/spi-builder-workspace/Sources/xsys/Module.swift:19:12: warning: let 'module' is not concurrency-safe because non-'Sendable' type 'XSysModule' may have shared mutable state; this is an error in the Swift 6 language mode
15 | #endif
16 |
17 | public struct XSysModule {
| `- note: consider making struct 'XSysModule' conform to the 'Sendable' protocol
18 | }
19 | public let module = XSysModule()
| |- warning: let 'module' is not concurrency-safe because non-'Sendable' type 'XSysModule' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'module' 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
20 |
[13/17] Compiling xsys POSIXError.swift
/host/spi-builder-workspace/Sources/xsys/Module.swift:19:12: warning: let 'module' is not concurrency-safe because non-'Sendable' type 'XSysModule' may have shared mutable state; this is an error in the Swift 6 language mode
15 | #endif
16 |
17 | public struct XSysModule {
| `- note: consider making struct 'XSysModule' conform to the 'Sendable' protocol
18 | }
19 | public let module = XSysModule()
| |- warning: let 'module' is not concurrency-safe because non-'Sendable' type 'XSysModule' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'module' 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
20 |
[14/17] Emitting module xsys
/host/spi-builder-workspace/Sources/xsys/Module.swift:19:12: warning: let 'module' is not concurrency-safe because non-'Sendable' type 'XSysModule' may have shared mutable state; this is an error in the Swift 6 language mode
15 | #endif
16 |
17 | public struct XSysModule {
| `- note: consider making struct 'XSysModule' conform to the 'Sendable' protocol
18 | }
19 | public let module = XSysModule()
| |- warning: let 'module' is not concurrency-safe because non-'Sendable' type 'XSysModule' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'module' 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
20 |
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/host/spi-builder-workspace/Sources/xsys/fd.swift:16:14: warning: let 'open' is not concurrency-safe because non-'Sendable' type 'xsysOpenType' (aka '(UnsafePointer<Int8>, Int32) -> Int32') may have shared mutable state; this is an error in the Swift 6 language mode
14 | import Glibc
15 |
16 | public let open : xsysOpenType = Glibc.open
| |- warning: let 'open' is not concurrency-safe because non-'Sendable' type 'xsysOpenType' (aka '(UnsafePointer<Int8>, Int32) -> Int32') may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'open' 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
17 | public let close = Glibc.close
18 | public let read = Glibc.read
/host/spi-builder-workspace/Sources/xsys/ioctl.swift:49:23: warning: let 'dlHandle' is not concurrency-safe because non-'Sendable' type 'UnsafeMutableRawPointer?' may have shared mutable state; this is an error in the Swift 6 language mode
47 | // but not in Xcode yet?
48 |
49 | @usableFromInline let dlHandle = dlopen(nil, RTLD_NOW)
| |- warning: let 'dlHandle' is not concurrency-safe because non-'Sendable' type 'UnsafeMutableRawPointer?' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'dlHandle' 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
50 | @usableFromInline let fnFcntl = dlsym(dlHandle, "fcntl")
51 | @usableFromInline let fnIoctl = dlsym(dlHandle, "ioctl")
Swift.Optional:1:21: note: generic enum 'Optional' does not conform to the 'Sendable' protocol
1 | @frozen public enum Optional<Wrapped> : ~Copyable where Wrapped : ~Copyable {
| `- note: generic enum 'Optional' does not conform to the 'Sendable' protocol
2 | case none
3 | case some(Wrapped)
/host/spi-builder-workspace/Sources/xsys/ioctl.swift:50:23: warning: let 'fnFcntl' is not concurrency-safe because non-'Sendable' type 'UnsafeMutableRawPointer?' may have shared mutable state; this is an error in the Swift 6 language mode
48 |
49 | @usableFromInline let dlHandle = dlopen(nil, RTLD_NOW)
50 | @usableFromInline let fnFcntl = dlsym(dlHandle, "fcntl")
| |- warning: let 'fnFcntl' is not concurrency-safe because non-'Sendable' type 'UnsafeMutableRawPointer?' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'fnFcntl' 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
51 | @usableFromInline let fnIoctl = dlsym(dlHandle, "ioctl")
52 |
Swift.Optional:1:21: note: generic enum 'Optional' does not conform to the 'Sendable' protocol
1 | @frozen public enum Optional<Wrapped> : ~Copyable where Wrapped : ~Copyable {
| `- note: generic enum 'Optional' does not conform to the 'Sendable' protocol
2 | case none
3 | case some(Wrapped)
/host/spi-builder-workspace/Sources/xsys/ioctl.swift:51:23: warning: let 'fnIoctl' is not concurrency-safe because non-'Sendable' type 'UnsafeMutableRawPointer?' may have shared mutable state; this is an error in the Swift 6 language mode
49 | @usableFromInline let dlHandle = dlopen(nil, RTLD_NOW)
50 | @usableFromInline let fnFcntl = dlsym(dlHandle, "fcntl")
51 | @usableFromInline let fnIoctl = dlsym(dlHandle, "ioctl")
| |- warning: let 'fnIoctl' is not concurrency-safe because non-'Sendable' type 'UnsafeMutableRawPointer?' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'fnIoctl' 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
52 |
53 | @usableFromInline typealias fcntlViType =
Swift.Optional:1:21: note: generic enum 'Optional' does not conform to the 'Sendable' protocol
1 | @frozen public enum Optional<Wrapped> : ~Copyable where Wrapped : ~Copyable {
| `- note: generic enum 'Optional' does not conform to the 'Sendable' protocol
2 | case none
3 | case some(Wrapped)
/host/spi-builder-workspace/Sources/xsys/timespec.swift:92:1: warning: extension declares a conformance of imported type 'timespec' to imported protocol 'CustomStringConvertible'; this will not behave correctly if the owners of 'SwiftGlibc' introduce this conformance in the future
90 | }
91 |
92 | extension timespec: CustomStringConvertible {
| |- warning: extension declares a conformance of imported type 'timespec' to imported protocol 'CustomStringConvertible'; this will not behave correctly if the owners of 'SwiftGlibc' introduce this conformance in the future
| `- note: add '@retroactive' to silence this warning
93 | @inlinable
94 | public var description : String {
/host/spi-builder-workspace/Sources/xsys/timespec.swift:104:1: warning: extension declares a conformance of imported type 'timeval' to imported protocol 'CustomStringConvertible'; this will not behave correctly if the owners of 'SwiftGlibc' introduce this conformance in the future
102 | }
103 |
104 | extension timeval: CustomStringConvertible {
| |- warning: extension declares a conformance of imported type 'timeval' to imported protocol 'CustomStringConvertible'; this will not behave correctly if the owners of 'SwiftGlibc' introduce this conformance in the future
| `- note: add '@retroactive' to silence this warning
105 | @inlinable
106 | public var description : String {
[15/17] Compiling xsys SocketAddress.swift
[16/17] Compiling xsys UUID.swift
[17/17] Compiling xsys timeval_any.swift
Build complete! (5.88s)
Build complete.
{
"dependencies" : [
],
"manifest_display_name" : "xsys",
"name" : "xsys",
"path" : "/host/spi-builder-workspace",
"platforms" : [
],
"products" : [
{
"name" : "xsys",
"targets" : [
"xsys"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "xsysTests",
"module_type" : "SwiftTarget",
"name" : "xsysTests",
"path" : "Tests/xsysTests",
"sources" : [
"XCTestManifests.swift",
"xsysTests.swift"
],
"target_dependencies" : [
"xsys"
],
"type" : "test"
},
{
"c99name" : "xsys",
"module_type" : "SwiftTarget",
"name" : "xsys",
"path" : "Sources/xsys",
"product_memberships" : [
"xsys"
],
"sources" : [
"Module.swift",
"POSIXError.swift",
"SocketAddress.swift",
"UUID.swift",
"dylib.swift",
"fd.swift",
"ioctl.swift",
"misc.swift",
"ntohs.swift",
"sockaddr_any.swift",
"socket.swift",
"time.swift",
"timespec.swift",
"timeval_any.swift"
],
"type" : "library"
}
],
"tools_version" : "5.0"
}
basic-6.0-latest: Pulling from finestructure/spi-images
Digest: sha256:47d26c99ca4f1ac0a332c85fd5b13ff4390e72115219984a57a68fe9d1063a05
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.0-latest
Done.