Build Information
Failed to build S3Kit, reference 1.0.21 (3cb731), with Swift 6.2 for Linux on 18 Jun 2025 23:28:48 UTC.
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>&1Build Log
========================================
RunAll
========================================
Builder version: 4.64.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/saltzmanjoelh/S3Kit.git
Reference: 1.0.21
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/saltzmanjoelh/S3Kit
* tag 1.0.21 -> FETCH_HEAD
HEAD is now at 3cb7315 Removed IBM-Swift/CommonCrypto
Cloned https://github.com/saltzmanjoelh/S3Kit.git
Revision (git rev-parse @):
3cb73159620ccc56f11542c4460cf24a9b2759e6
SUCCESS checkout https://github.com/saltzmanjoelh/S3Kit.git at 1.0.21
========================================
Build
========================================
Selected platform: linux
Swift version: 6.2
Building package at path: $PWD
https://github.com/saltzmanjoelh/S3Kit.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/5] Write sources
[1/5] Write swift-version-24593BA9C3E375BF.txt
error: emit-module command failed with exit code 1 (use -v to see invocation)
[3/9] Emitting module S3Kit
/host/spi-builder-workspace/Sources/S3Kit/S3Kit.swift:62:131: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
60 |
61 |
62 | public func upload(file fileURL: URL, to bucket: String, in region: String = "us-east-1") throws -> (data: NSData?, response: HTTPURLResponse) {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
63 |
64 | let s3URL = URL(string: "https://s3.amazonaws.com/\(bucket)/\(fileURL.lastPathComponent)")!
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/S3Kit/S3Kit.swift:177:131: error: cannot find type 'URLRequest' in scope
175 | }
176 |
177 | public func downloadRequest(forFile fileURL: URL, fromBucket bucket: String, inRegion region: String = "us-east-1") throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
178 |
179 | let s3URL = URL(string: "https://s3.amazonaws.com/\(bucket)/\(fileURL.lastPathComponent)")!
[4/9] Compiling S3Kit S3Kit.swift
/host/spi-builder-workspace/Sources/S3Kit/S3Kit.swift:62:131: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
60 |
61 |
62 | public func upload(file fileURL: URL, to bucket: String, in region: String = "us-east-1") throws -> (data: NSData?, response: HTTPURLResponse) {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
63 |
64 | let s3URL = URL(string: "https://s3.amazonaws.com/\(bucket)/\(fileURL.lastPathComponent)")!
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/S3Kit/S3Kit.swift:177:131: error: cannot find type 'URLRequest' in scope
175 | }
176 |
177 | public func downloadRequest(forFile fileURL: URL, fromBucket bucket: String, inRegion region: String = "us-east-1") throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
178 |
179 | let s3URL = URL(string: "https://s3.amazonaws.com/\(bucket)/\(fileURL.lastPathComponent)")!
/host/spi-builder-workspace/Sources/S3Kit/S3Kit.swift:74:23: error: cannot find 'NSMutableURLRequest' in scope
72 |
73 | //create an URL Request
74 | let request = NSMutableURLRequest(url: s3URL)
| `- error: cannot find 'NSMutableURLRequest' in scope
75 | request.cachePolicy = .reloadIgnoringCacheData
76 | request.httpMethod = "PUT"
/host/spi-builder-workspace/Sources/S3Kit/S3Kit.swift:75:32: error: cannot infer contextual base in reference to member 'reloadIgnoringCacheData'
73 | //create an URL Request
74 | let request = NSMutableURLRequest(url: s3URL)
75 | request.cachePolicy = .reloadIgnoringCacheData
| `- error: cannot infer contextual base in reference to member 'reloadIgnoringCacheData'
76 | request.httpMethod = "PUT"
77 | request.httpBodyStream = fileStream
/host/spi-builder-workspace/Sources/S3Kit/S3Kit.swift:92:36: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
90 |
91 | //send the request
92 | var data: Data?, response: URLResponse?, error: NSError?
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
93 | let semaphore = DispatchSemaphore(value: 0)
94 | URLSession.shared.dataTask(with: request as URLRequest) { (d:Data?, r:URLResponse?, e:Error?) -> Void in
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/S3Kit/S3Kit.swift:94:53: error: cannot find type 'URLRequest' in scope
92 | var data: Data?, response: URLResponse?, error: NSError?
93 | let semaphore = DispatchSemaphore(value: 0)
94 | URLSession.shared.dataTask(with: request as URLRequest) { (d:Data?, r:URLResponse?, e:Error?) -> Void in
| `- error: cannot find type 'URLRequest' in scope
95 | data = d
96 | response = r
/host/spi-builder-workspace/Sources/S3Kit/S3Kit.swift:94:20: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
92 | var data: Data?, response: URLResponse?, error: NSError?
93 | let semaphore = DispatchSemaphore(value: 0)
94 | URLSession.shared.dataTask(with: request as URLRequest) { (d:Data?, r:URLResponse?, e:Error?) -> Void in
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
95 | data = d
96 | response = r
/host/spi-builder-workspace/Sources/S3Kit/S3Kit.swift:110:42: warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
108 |
109 |
110 | guard let urlResponse = response as? HTTPURLResponse else {
| `- warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
111 | throw S3KitError.noResponse
112 | }
/host/spi-builder-workspace/Sources/S3Kit/S3Kit.swift:110:46: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
108 |
109 |
110 | guard let urlResponse = response as? HTTPURLResponse else {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
111 | throw S3KitError.noResponse
112 | }
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/S3Kit/S3Kit.swift:113:24: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
111 | throw S3KitError.noResponse
112 | }
113 | if urlResponse.statusCode != 200 {
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
114 | var description = ""
115 | if let theData = data {
/host/spi-builder-workspace/Sources/S3Kit/S3Kit.swift:138:23: error: cannot find 'NSMutableURLRequest' in scope
136 |
137 | //create an URL Request
138 | let request = NSMutableURLRequest(url: s3URL)
| `- error: cannot find 'NSMutableURLRequest' in scope
139 | request.httpMethod = "HEAD"
140 |
/host/spi-builder-workspace/Sources/S3Kit/S3Kit.swift:150:23: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
148 |
149 | //send the request
150 | var response: URLResponse?, error: NSError?
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
151 | let semaphore = DispatchSemaphore(value: 0)
152 | URLSession.shared.dataTask(with: request as URLRequest) {
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/S3Kit/S3Kit.swift:152:53: error: cannot find type 'URLRequest' in scope
150 | var response: URLResponse?, error: NSError?
151 | let semaphore = DispatchSemaphore(value: 0)
152 | URLSession.shared.dataTask(with: request as URLRequest) {
| `- error: cannot find type 'URLRequest' in scope
153 | response = $1; error = $2 as NSError?
154 | var description = ""
/host/spi-builder-workspace/Sources/S3Kit/S3Kit.swift:152:20: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
150 | var response: URLResponse?, error: NSError?
151 | let semaphore = DispatchSemaphore(value: 0)
152 | URLSession.shared.dataTask(with: request as URLRequest) {
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
153 | response = $1; error = $2 as NSError?
154 | var description = ""
/host/spi-builder-workspace/Sources/S3Kit/S3Kit.swift:153:24: error: value of type '_' expected to be an instance of a class or class-constrained type in assignment
151 | let semaphore = DispatchSemaphore(value: 0)
152 | URLSession.shared.dataTask(with: request as URLRequest) {
153 | response = $1; error = $2 as NSError?
| `- error: value of type '_' expected to be an instance of a class or class-constrained type in assignment
154 | var description = ""
155 | if let data = $0 {
/host/spi-builder-workspace/Sources/S3Kit/S3Kit.swift:171:42: warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
169 | throw error!
170 | }
171 | guard let urlResponse = response as? HTTPURLResponse else {
| `- warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
172 | throw S3KitError.noResponse
173 | }
/host/spi-builder-workspace/Sources/S3Kit/S3Kit.swift:171:46: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
169 | throw error!
170 | }
171 | guard let urlResponse = response as? HTTPURLResponse else {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
172 | throw S3KitError.noResponse
173 | }
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/S3Kit/S3Kit.swift:174:28: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
172 | throw S3KitError.noResponse
173 | }
174 | return urlResponse.statusCode == 200
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
175 | }
176 |
/host/spi-builder-workspace/Sources/S3Kit/S3Kit.swift:183:23: error: cannot find 'URLRequest' in scope
181 |
182 | //create an URL Request
183 | var request = URLRequest(url: s3URL)
| `- error: cannot find 'URLRequest' in scope
184 | request.httpMethod = "GET"
185 | request.cachePolicy = .reloadIgnoringCacheData
/host/spi-builder-workspace/Sources/S3Kit/S3Kit.swift:185:32: error: cannot infer contextual base in reference to member 'reloadIgnoringCacheData'
183 | var request = URLRequest(url: s3URL)
184 | request.httpMethod = "GET"
185 | request.cachePolicy = .reloadIgnoringCacheData
| `- error: cannot infer contextual base in reference to member 'reloadIgnoringCacheData'
186 |
187 | //create the signed headers
[5/9] Compiling S3Kit S3V4Signer.swift
/host/spi-builder-workspace/Sources/S3Kit/S3V4Signer.swift:67:54: error: cannot find 'CC_SHA256_DIGEST_LENGTH' in scope
65 | public func sha256(str: String) -> String {
66 | let data = str.data(using: String.Encoding.utf8)!
67 | var hash = [UInt8](repeating: 0, count: Int(CC_SHA256_DIGEST_LENGTH))
| `- error: cannot find 'CC_SHA256_DIGEST_LENGTH' in scope
68 | _ = data.withUnsafeBytes{
69 | CC_SHA256($0, CC_LONG(data.count), &hash)
/host/spi-builder-workspace/Sources/S3Kit/S3V4Signer.swift:69:13: error: cannot find 'CC_SHA256' in scope
67 | var hash = [UInt8](repeating: 0, count: Int(CC_SHA256_DIGEST_LENGTH))
68 | _ = data.withUnsafeBytes{
69 | CC_SHA256($0, CC_LONG(data.count), &hash)
| `- error: cannot find 'CC_SHA256' in scope
70 | }
71 |
/host/spi-builder-workspace/Sources/S3Kit/S3V4Signer.swift:69:27: error: cannot find 'CC_LONG' in scope
67 | var hash = [UInt8](repeating: 0, count: Int(CC_SHA256_DIGEST_LENGTH))
68 | _ = data.withUnsafeBytes{
69 | CC_SHA256($0, CC_LONG(data.count), &hash)
| `- error: cannot find 'CC_LONG' in scope
70 | }
71 |
/host/spi-builder-workspace/Sources/S3Kit/S3V4Signer.swift:72:51: error: cannot find 'CC_SHA256_DIGEST_LENGTH' in scope
70 | }
71 |
72 | let res = NSData(bytes: hash, length: Int(CC_SHA256_DIGEST_LENGTH))
| `- error: cannot find 'CC_SHA256_DIGEST_LENGTH' in scope
73 | return hexdigest(data: res)
74 | }
/host/spi-builder-workspace/Sources/S3Kit/S3V4Signer.swift:77:27: warning: 'cString(using:)' is deprecated: On platforms without Objective-C autorelease pools, use withCString(encodedAs:_) instead [#DeprecatedDeclaration]
75 |
76 | private func hmac(string: NSString, key: NSData) -> NSData {
77 | let data = string.cString(using: String.Encoding.utf8.rawValue)
| `- warning: 'cString(using:)' is deprecated: On platforms without Objective-C autorelease pools, use withCString(encodedAs:_) instead [#DeprecatedDeclaration]
78 | let dataLen = Int(string.lengthOfBytes(using: String.Encoding.utf8.rawValue))
79 | let digestLen = Int(CC_SHA256_DIGEST_LENGTH)
/host/spi-builder-workspace/Sources/S3Kit/S3V4Signer.swift:79:29: error: cannot find 'CC_SHA256_DIGEST_LENGTH' in scope
77 | let data = string.cString(using: String.Encoding.utf8.rawValue)
78 | let dataLen = Int(string.lengthOfBytes(using: String.Encoding.utf8.rawValue))
79 | let digestLen = Int(CC_SHA256_DIGEST_LENGTH)
| `- error: cannot find 'CC_SHA256_DIGEST_LENGTH' in scope
80 | let result = UnsafeMutablePointer<CUnsignedChar>.allocate(capacity: digestLen)
81 | CCHmac(CCHmacAlgorithm(kCCHmacAlgSHA256), key.bytes, key.length, data, dataLen, result);
/host/spi-builder-workspace/Sources/S3Kit/S3V4Signer.swift:81:9: error: cannot find 'CCHmac' in scope
79 | let digestLen = Int(CC_SHA256_DIGEST_LENGTH)
80 | let result = UnsafeMutablePointer<CUnsignedChar>.allocate(capacity: digestLen)
81 | CCHmac(CCHmacAlgorithm(kCCHmacAlgSHA256), key.bytes, key.length, data, dataLen, result);
| `- error: cannot find 'CCHmac' in scope
82 | return NSData(bytes: result, length: digestLen)
83 | }
/host/spi-builder-workspace/Sources/S3Kit/S3V4Signer.swift:81:16: error: cannot find 'CCHmacAlgorithm' in scope
79 | let digestLen = Int(CC_SHA256_DIGEST_LENGTH)
80 | let result = UnsafeMutablePointer<CUnsignedChar>.allocate(capacity: digestLen)
81 | CCHmac(CCHmacAlgorithm(kCCHmacAlgSHA256), key.bytes, key.length, data, dataLen, result);
| `- error: cannot find 'CCHmacAlgorithm' in scope
82 | return NSData(bytes: result, length: digestLen)
83 | }
/host/spi-builder-workspace/Sources/S3Kit/S3V4Signer.swift:81:32: error: cannot find 'kCCHmacAlgSHA256' in scope
79 | let digestLen = Int(CC_SHA256_DIGEST_LENGTH)
80 | let result = UnsafeMutablePointer<CUnsignedChar>.allocate(capacity: digestLen)
81 | CCHmac(CCHmacAlgorithm(kCCHmacAlgSHA256), key.bytes, key.length, data, dataLen, result);
| `- error: cannot find 'kCCHmacAlgSHA256' in scope
82 | return NSData(bytes: result, length: digestLen)
83 | }
[#DeprecatedDeclaration]: <https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration>
[6/9] Compiling S3Kit Data+SHA256.swift
/host/spi-builder-workspace/Sources/S3Kit/Data+SHA256.swift:39:32: error: missing argument for parameter 'capacity' in call
37 | #endif
38 |
39 | let hash = NSMutableString()
| `- error: missing argument for parameter 'capacity' in call
40 | for byte in bytes {
41 | hash.appendFormat("%02x", byte)
Foundation.NSMutableString.init:2:17: note: 'init(capacity:)' declared here
1 | class NSMutableString {
2 | required public init(capacity: Int)}
| `- note: 'init(capacity:)' declared here
3 |
/host/spi-builder-workspace/Sources/S3Kit/Data+SHA256.swift:40:17: error: cannot find 'bytes' in scope
38 |
39 | let hash = NSMutableString()
40 | for byte in bytes {
| `- error: cannot find 'bytes' in scope
41 | hash.appendFormat("%02x", byte)
42 | }
BUILD FAILURE 6.2 linux