Build Information
Successful build of SimpleHttpClient, reference master (d50a95
), with Swift 6.0 for macOS (SPM) on 31 Oct 2024 08:33:24 UTC.
Swift 6 data race errors: 2
Build Command
env DEVELOPER_DIR=/Applications/Xcode-16.1.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete
Build Log
========================================
RunAll
========================================
Builder version: 4.56.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/ibm-bluemix-mobile-services/bluemix-simple-http-client-swift.git
Reference: master
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/ibm-bluemix-mobile-services/bluemix-simple-http-client-swift
* branch master -> FETCH_HEAD
* [new branch] master -> origin/master
HEAD is now at d50a951 Merge pull request #29 from ibm-bluemix-mobile-services/development
Cloned https://github.com/ibm-bluemix-mobile-services/bluemix-simple-http-client-swift.git
Revision (git rev-parse @):
d50a951ae5d78f2b2837f186048609a8d1d7216e
SUCCESS checkout https://github.com/ibm-bluemix-mobile-services/bluemix-simple-http-client-swift.git at master
Fetching https://github.com/IBM-Swift/Kitura-net.git
Fetching https://github.com/ibm-bluemix-mobile-services/bluemix-simple-logger-swift.git
[1/245] Fetching bluemix-simple-logger-swift
[197/9789] Fetching bluemix-simple-logger-swift, kitura-net
Fetched https://github.com/IBM-Swift/Kitura-net.git from cache (1.64s)
Fetched https://github.com/ibm-bluemix-mobile-services/bluemix-simple-logger-swift.git from cache (1.64s)
Computing version for https://github.com/ibm-bluemix-mobile-services/bluemix-simple-logger-swift.git
Computed https://github.com/ibm-bluemix-mobile-services/bluemix-simple-logger-swift.git at 0.6.0 (0.67s)
Computing version for https://github.com/IBM-Swift/Kitura-net.git
Computed https://github.com/IBM-Swift/Kitura-net.git at 2.4.200 (0.65s)
Fetching https://github.com/Kitura/BlueSSLService.git
Fetching https://github.com/Kitura/BlueSocket.git
Fetching https://github.com/Kitura/LoggerAPI.git
[1/771] Fetching loggerapi
[148/2859] Fetching loggerapi, bluesslservice
[576/5801] Fetching loggerapi, bluesslservice, bluesocket
Fetched https://github.com/Kitura/BlueSSLService.git from cache (1.23s)
Fetched https://github.com/Kitura/BlueSocket.git from cache (1.23s)
Fetched https://github.com/Kitura/LoggerAPI.git from cache (1.23s)
Computing version for https://github.com/Kitura/BlueSSLService.git
Computed https://github.com/Kitura/BlueSSLService.git at 1.0.200 (0.65s)
Computing version for https://github.com/Kitura/BlueSocket.git
Computed https://github.com/Kitura/BlueSocket.git at 1.0.200 (0.65s)
Computing version for https://github.com/Kitura/LoggerAPI.git
Computed https://github.com/Kitura/LoggerAPI.git at 1.9.200 (0.67s)
Fetching https://github.com/apple/swift-log.git
[1/3649] Fetching swift-log
Fetched https://github.com/apple/swift-log.git from cache (1.21s)
Computing version for https://github.com/apple/swift-log.git
Computed https://github.com/apple/swift-log.git at 1.6.1 (0.48s)
Creating working copy for https://github.com/ibm-bluemix-mobile-services/bluemix-simple-logger-swift.git
Working copy of https://github.com/ibm-bluemix-mobile-services/bluemix-simple-logger-swift.git resolved at 0.6.0
Creating working copy for https://github.com/Kitura/BlueSSLService.git
Working copy of https://github.com/Kitura/BlueSSLService.git resolved at 1.0.200
Creating working copy for https://github.com/apple/swift-log.git
Working copy of https://github.com/apple/swift-log.git resolved at 1.6.1
Creating working copy for https://github.com/IBM-Swift/Kitura-net.git
Working copy of https://github.com/IBM-Swift/Kitura-net.git resolved at 2.4.200
Creating working copy for https://github.com/Kitura/LoggerAPI.git
Working copy of https://github.com/Kitura/LoggerAPI.git resolved at 1.9.200
Creating working copy for https://github.com/Kitura/BlueSocket.git
Working copy of https://github.com/Kitura/BlueSocket.git resolved at 1.0.200
========================================
ResolveProductDependencies
========================================
Resolving dependencies ...
{
"identity": ".resolve-product-dependencies",
"name": "resolve-dependencies",
"url": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies",
"version": "unspecified",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies",
"dependencies": [
{
"identity": "bluemix-simple-http-client-swift",
"name": "SimpleHttpClient",
"url": "https://github.com/ibm-bluemix-mobile-services/bluemix-simple-http-client-swift.git",
"version": "unspecified",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/bluemix-simple-http-client-swift",
"dependencies": [
{
"identity": "bluemix-simple-logger-swift",
"name": "SimpleLogger",
"url": "https://github.com/ibm-bluemix-mobile-services/bluemix-simple-logger-swift.git",
"version": "0.6.0",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/bluemix-simple-logger-swift",
"dependencies": [
]
},
{
"identity": "kitura-net",
"name": "Kitura-net",
"url": "https://github.com/IBM-Swift/Kitura-net.git",
"version": "2.4.200",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/Kitura-net",
"dependencies": [
{
"identity": "loggerapi",
"name": "LoggerAPI",
"url": "https://github.com/Kitura/LoggerAPI.git",
"version": "1.9.200",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/LoggerAPI",
"dependencies": [
{
"identity": "swift-log",
"name": "swift-log",
"url": "https://github.com/apple/swift-log.git",
"version": "1.6.1",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/swift-log",
"dependencies": [
]
}
]
},
{
"identity": "bluesocket",
"name": "Socket",
"url": "https://github.com/Kitura/BlueSocket.git",
"version": "1.0.200",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/BlueSocket",
"dependencies": [
]
},
{
"identity": "bluesslservice",
"name": "SSLService",
"url": "https://github.com/Kitura/BlueSSLService.git",
"version": "1.0.200",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/BlueSSLService",
"dependencies": [
{
"identity": "bluesocket",
"name": "Socket",
"url": "https://github.com/Kitura/BlueSocket.git",
"version": "1.0.200",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/BlueSocket",
"dependencies": [
]
}
]
}
]
}
]
}
]
}
Fetching https://github.com/ibm-bluemix-mobile-services/bluemix-simple-http-client-swift.git
[5/432] Fetching bluemix-simple-http-client-swift
Fetched https://github.com/ibm-bluemix-mobile-services/bluemix-simple-http-client-swift.git from cache (0.83s)
Fetching https://github.com/IBM-Swift/Kitura-net.git from cache
Fetching https://github.com/ibm-bluemix-mobile-services/bluemix-simple-logger-swift.git from cache
Fetched https://github.com/ibm-bluemix-mobile-services/bluemix-simple-logger-swift.git from cache (0.54s)
Fetched https://github.com/IBM-Swift/Kitura-net.git from cache (0.66s)
Computing version for https://github.com/ibm-bluemix-mobile-services/bluemix-simple-logger-swift.git
Computed https://github.com/ibm-bluemix-mobile-services/bluemix-simple-logger-swift.git at 0.6.0 (0.03s)
Computing version for https://github.com/IBM-Swift/Kitura-net.git
Computed https://github.com/IBM-Swift/Kitura-net.git at 2.4.200 (0.03s)
Fetching https://github.com/Kitura/BlueSocket.git from cache
Fetching https://github.com/Kitura/LoggerAPI.git from cache
Fetching https://github.com/Kitura/BlueSSLService.git from cache
Fetched https://github.com/Kitura/LoggerAPI.git from cache (0.58s)
Fetched https://github.com/Kitura/BlueSocket.git from cache (0.59s)
Fetched https://github.com/Kitura/BlueSSLService.git from cache (0.59s)
Computing version for https://github.com/Kitura/BlueSSLService.git
Computed https://github.com/Kitura/BlueSSLService.git at 1.0.200 (0.03s)
Computing version for https://github.com/Kitura/BlueSocket.git
Computed https://github.com/Kitura/BlueSocket.git at 1.0.200 (0.03s)
Computing version for https://github.com/Kitura/LoggerAPI.git
Computed https://github.com/Kitura/LoggerAPI.git at 1.9.200 (0.03s)
Fetching https://github.com/apple/swift-log.git from cache
Fetched https://github.com/apple/swift-log.git from cache (0.52s)
Computing version for https://github.com/apple/swift-log.git
Computed https://github.com/apple/swift-log.git at 1.6.1 (0.02s)
Creating working copy for https://github.com/apple/swift-log.git
Working copy of https://github.com/apple/swift-log.git resolved at 1.6.1
Creating working copy for https://github.com/IBM-Swift/Kitura-net.git
Working copy of https://github.com/IBM-Swift/Kitura-net.git resolved at 2.4.200
Creating working copy for https://github.com/Kitura/BlueSocket.git
Working copy of https://github.com/Kitura/BlueSocket.git resolved at 1.0.200
Creating working copy for https://github.com/Kitura/LoggerAPI.git
Working copy of https://github.com/Kitura/LoggerAPI.git resolved at 1.9.200
Creating working copy for https://github.com/ibm-bluemix-mobile-services/bluemix-simple-http-client-swift.git
Working copy of https://github.com/ibm-bluemix-mobile-services/bluemix-simple-http-client-swift.git resolved at master (d50a951)
Creating working copy for https://github.com/Kitura/BlueSSLService.git
Working copy of https://github.com/Kitura/BlueSSLService.git resolved at 1.0.200
Creating working copy for https://github.com/ibm-bluemix-mobile-services/bluemix-simple-logger-swift.git
Working copy of https://github.com/ibm-bluemix-mobile-services/bluemix-simple-logger-swift.git resolved at 0.6.0
warning: '.resolve-product-dependencies': dependency 'bluemix-simple-http-client-swift' is not used by any target
Found 2 product dependencies
- SimpleLogger
- Kitura-net
========================================
Build
========================================
Selected platform: macosSpm
Swift version: 6.0
Building package at path: $PWD
https://github.com/ibm-bluemix-mobile-services/bluemix-simple-http-client-swift.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.1.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete
Building for debugging...
[0/10] Write sources
[7/10] Write swift-version--7754E27361AE5C74.txt
[8/21] Compiling CHTTPParser utils.c
[9/21] Compiling CHTTPParser http_parser.c
[11/21] Compiling Logging MetadataProvider.swift
[12/21] Emitting module Logging
[13/21] Compiling Logging Locks.swift
[14/21] Compiling Logging Logging.swift
[15/21] Compiling Logging LogHandler.swift
[16/23] Emitting module LoggerAPI
[17/23] Compiling LoggerAPI Logger.swift
[18/23] Emitting module SimpleLogger
[19/23] Compiling SimpleLogger SimpleLogger.swift
[20/23] Compiling Socket SocketUtils.swift
[21/23] Compiling Socket SocketProtocols.swift
[22/23] Compiling Socket Socket.swift
[23/23] Emitting module Socket
[24/26] Compiling SSLService SSLService.swift
[25/26] Compiling SSLService SSLPointerTricks.swift
[26/26] Emitting module SSLService
[27/61] Compiling KituraNet ServerLifecycleListener.swift
[28/61] Compiling KituraNet ServerMonitor.swift
[29/61] Compiling KituraNet ServerState.swift
[30/64] Compiling KituraNet IncomingSocketManager.swift
[31/64] Compiling KituraNet IncomingSocketProcessor.swift
[32/64] Compiling KituraNet IncomingSocketProcessorCreator.swift
[33/64] Compiling KituraNet ListenerGroup.swift
[34/64] Compiling KituraNet ServerOptions.swift
[35/64] Compiling KituraNet ServerRequest.swift
[36/64] Compiling KituraNet ServerResponse.swift
[37/64] Compiling KituraNet ConnectionUpgrader.swift
[38/64] Compiling KituraNet Error.swift
[39/64] Compiling KituraNet FastCGI.swift
[40/64] Compiling KituraNet FastCGIRecordCreate.swift
[41/64] Emitting module KituraNet
[42/64] Compiling KituraNet HTTP.swift
[43/64] Compiling KituraNet HTTPServer.swift
[44/64] Compiling KituraNet HTTPServerRequest.swift
[45/64] Compiling KituraNet HTTPServerResponse.swift
[46/64] Compiling KituraNet IncomingHTTPSocketProcessor.swift
[47/64] Compiling KituraNet KeepAliveState.swift
[48/64] Compiling KituraNet HTTPParser.swift
[49/64] Compiling KituraNet HTTPParserStatus.swift
[50/64] Compiling KituraNet ParseResults.swift
[51/64] Compiling KituraNet URLParser.swift
[52/64] Compiling KituraNet HeadersContainer.swift
[53/64] Compiling KituraNet IncomingSocketHandler.swift
[54/64] Compiling KituraNet BufferList.swift
[55/64] Compiling KituraNet ClientRequest.swift
[56/64] Compiling KituraNet ClientResponse.swift
[57/64] Compiling KituraNet ConnectionUpgradeFactory.swift
[58/64] Compiling KituraNet FastCGIRecordParser.swift
[59/64] Compiling KituraNet FastCGIServer.swift
[60/64] Compiling KituraNet FastCGIServerRequest.swift
[61/64] Compiling KituraNet FastCGIServerResponse.swift
[62/64] Compiling KituraNet SPIUtils.swift
[63/64] Compiling KituraNet Server.swift
[64/64] Compiling KituraNet ServerDelegate.swift
[65/68] Compiling SimpleHttpClient HttpResource.swift
[66/68] Compiling SimpleHttpClient HttpError.swift
[67/68] Compiling SimpleHttpClient HttpClient.swift
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/Users/admin/builder/spi-builder-workspace/Sources/SimpleHttpClient/HttpClient.swift:21:12: warning: let 'NOOPNetworkRequestCompletionHandler' is not concurrency-safe because non-'Sendable' type 'NetworkRequestCompletionHandler' (aka '(Optional<HttpError>, Optional<Int>, Optional<Dictionary<String, String>>, Optional<Data>) -> ()') may have shared mutable state; this is an error in the Swift 6 language mode
19 | public typealias NetworkRequestCompletionHandler = (_ error:HttpError?, _ status:Int?, _ headers: [String:String]?, _ data:Data?) -> Void
20 |
21 | public let NOOPNetworkRequestCompletionHandler:NetworkRequestCompletionHandler = {(a,b,c,d)->Void in}
| |- warning: let 'NOOPNetworkRequestCompletionHandler' is not concurrency-safe because non-'Sendable' type 'NetworkRequestCompletionHandler' (aka '(Optional<HttpError>, Optional<Int>, Optional<Dictionary<String, String>>, Optional<Data>) -> ()') may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'NOOPNetworkRequestCompletionHandler' 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
22 |
23 | /// Use HttpClient to make Http requests
/Users/admin/builder/spi-builder-workspace/Sources/SimpleHttpClient/HttpClient.swift:26:20: warning: static property 'logger' is not concurrency-safe because non-'Sendable' type 'Logger' may have shared mutable state; this is an error in the Swift 6 language mode
24 | public class HttpClient{
25 |
26 | public static let logger = Logger(forName: "HttpClient")
| `- warning: static property 'logger' is not concurrency-safe because non-'Sendable' type 'Logger' may have shared mutable state; this is an error in the Swift 6 language mode
27 | //public static let urlSession = URLSession(configuration: URLSessionConfiguration.default)
28 |
/Users/admin/builder/spi-builder-workspace/.build/checkouts/bluemix-simple-logger-swift/Sources/SimpleLogger.swift:17:14: note: class 'Logger' does not conform to the 'Sendable' protocol
15 |
16 | /// BluemixObjectStore internal logging infrastructure
17 | public class Logger{
| `- note: class 'Logger' does not conform to the 'Sendable' protocol
18 |
19 | public let name:String
/Users/admin/builder/spi-builder-workspace/Sources/SimpleHttpClient/HttpClient.swift:15:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'SimpleLogger'
13 |
14 | import Foundation
15 | import SimpleLogger
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'SimpleLogger'
16 | import KituraNet
17 |
:
24 | public class HttpClient{
25 |
26 | public static let logger = Logger(forName: "HttpClient")
| |- note: annotate 'logger' 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
27 | //public static let urlSession = URLSession(configuration: URLSessionConfiguration.default)
28 |
[68/68] Emitting module SimpleHttpClient
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/Users/admin/builder/spi-builder-workspace/Sources/SimpleHttpClient/HttpClient.swift:21:12: warning: let 'NOOPNetworkRequestCompletionHandler' is not concurrency-safe because non-'Sendable' type 'NetworkRequestCompletionHandler' (aka '(Optional<HttpError>, Optional<Int>, Optional<Dictionary<String, String>>, Optional<Data>) -> ()') may have shared mutable state; this is an error in the Swift 6 language mode
19 | public typealias NetworkRequestCompletionHandler = (_ error:HttpError?, _ status:Int?, _ headers: [String:String]?, _ data:Data?) -> Void
20 |
21 | public let NOOPNetworkRequestCompletionHandler:NetworkRequestCompletionHandler = {(a,b,c,d)->Void in}
| |- warning: let 'NOOPNetworkRequestCompletionHandler' is not concurrency-safe because non-'Sendable' type 'NetworkRequestCompletionHandler' (aka '(Optional<HttpError>, Optional<Int>, Optional<Dictionary<String, String>>, Optional<Data>) -> ()') may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'NOOPNetworkRequestCompletionHandler' 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
22 |
23 | /// Use HttpClient to make Http requests
/Users/admin/builder/spi-builder-workspace/Sources/SimpleHttpClient/HttpClient.swift:26:20: warning: static property 'logger' is not concurrency-safe because non-'Sendable' type 'Logger' may have shared mutable state; this is an error in the Swift 6 language mode
24 | public class HttpClient{
25 |
26 | public static let logger = Logger(forName: "HttpClient")
| `- warning: static property 'logger' is not concurrency-safe because non-'Sendable' type 'Logger' may have shared mutable state; this is an error in the Swift 6 language mode
27 | //public static let urlSession = URLSession(configuration: URLSessionConfiguration.default)
28 |
/Users/admin/builder/spi-builder-workspace/.build/checkouts/bluemix-simple-logger-swift/Sources/SimpleLogger.swift:17:14: note: class 'Logger' does not conform to the 'Sendable' protocol
15 |
16 | /// BluemixObjectStore internal logging infrastructure
17 | public class Logger{
| `- note: class 'Logger' does not conform to the 'Sendable' protocol
18 |
19 | public let name:String
/Users/admin/builder/spi-builder-workspace/Sources/SimpleHttpClient/HttpClient.swift:15:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'SimpleLogger'
13 |
14 | import Foundation
15 | import SimpleLogger
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'SimpleLogger'
16 | import KituraNet
17 |
:
24 | public class HttpClient{
25 |
26 | public static let logger = Logger(forName: "HttpClient")
| |- note: annotate 'logger' 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
27 | //public static let urlSession = URLSession(configuration: URLSessionConfiguration.default)
28 |
Build complete! (14.63s)
Build complete.
{
"dependencies" : [
{
"identity" : "bluemix-simple-logger-swift",
"requirement" : {
"range" : [
{
"lower_bound" : "0.6.0",
"upper_bound" : "1.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/ibm-bluemix-mobile-services/bluemix-simple-logger-swift.git"
},
{
"identity" : "kitura-net",
"requirement" : {
"range" : [
{
"lower_bound" : "2.1.0",
"upper_bound" : "3.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/IBM-Swift/Kitura-net.git"
}
],
"manifest_display_name" : "SimpleHttpClient",
"name" : "SimpleHttpClient",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
],
"products" : [
{
"name" : "SimpleHttpClient",
"targets" : [
"SimpleHttpClient"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "SimpleHttpClientTests",
"module_type" : "SwiftTarget",
"name" : "SimpleHttpClientTests",
"path" : "Tests/SimpleHttpClientTests",
"sources" : [
"HttpClientTest.swift"
],
"target_dependencies" : [
"SimpleHttpClient"
],
"type" : "test"
},
{
"c99name" : "SimpleHttpClient",
"module_type" : "SwiftTarget",
"name" : "SimpleHttpClient",
"path" : "Sources/SimpleHttpClient",
"product_dependencies" : [
"KituraNet",
"SimpleLogger"
],
"product_memberships" : [
"SimpleHttpClient"
],
"sources" : [
"HttpClient.swift",
"HttpError.swift",
"HttpResource.swift"
],
"type" : "library"
}
],
"tools_version" : "5.0"
}
Done.