Build Information
Failed to build GroqSwift, reference main (3e3e24
), with Swift 6.1 for Wasm on 30 May 2025 10:51:11 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4606859-0":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1
Build Log
========================================
RunAll
========================================
Builder version: 4.63.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/engali94/groq_swift.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/engali94/groq_swift
* branch main -> FETCH_HEAD
* [new branch] main -> origin/main
HEAD is now at 3e3e24a Refactor Dockerfile and update Linux URLSession extension
Cloned https://github.com/engali94/groq_swift.git
Revision (git rev-parse @):
3e3e24aadc0a89834f6511208517948d568966a5
SPI manifest file found: $PWD/.spi.yml
SUCCESS checkout https://github.com/engali94/groq_swift.git at main
========================================
Build
========================================
Selected platform: wasm
Swift version: 6.1
Building package at path: $PWD
https://github.com/engali94/groq_swift.git
https://github.com/engali94/groq_swift.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
"dependencies" : [
{
"identity" : "swift-docc-plugin",
"requirement" : {
"range" : [
{
"lower_bound" : "1.0.0",
"upper_bound" : "2.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/apple/swift-docc-plugin"
},
{
"identity" : "swiftlintplugin",
"requirement" : {
"range" : [
{
"lower_bound" : "0.2.2",
"upper_bound" : "1.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/lukepistrol/SwiftLintPlugin"
}
],
"manifest_display_name" : "GroqSwift",
"name" : "GroqSwift",
"path" : "/host/spi-builder-workspace",
"platforms" : [
{
"name" : "macos",
"version" : "13.0"
},
{
"name" : "maccatalyst",
"version" : "13.0"
},
{
"name" : "ios",
"version" : "16.0"
},
{
"name" : "watchos",
"version" : "9.0"
},
{
"name" : "tvos",
"version" : "16.0"
},
{
"name" : "visionos",
"version" : "1.0"
}
],
"products" : [
{
"name" : "GroqSwift",
"targets" : [
"GroqSwift"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "GroqSwiftTests",
"module_type" : "SwiftTarget",
"name" : "GroqSwiftTests",
"path" : "Tests/GroqSwiftTests",
"sources" : [
"ChatCompletionTests.swift",
"ModelsTests.swift",
"StreamingTests.swift",
"TestUtils.swift"
],
"target_dependencies" : [
"GroqSwift"
],
"type" : "test"
},
{
"c99name" : "GroqSwift",
"module_type" : "SwiftTarget",
"name" : "GroqSwift",
"path" : "Sources/GroqSwift",
"product_memberships" : [
"GroqSwift"
],
"sources" : [
"Errors.swift",
"GroqClient.swift",
"Message.swift",
"Models.swift",
"URLSession+Linux.swift"
],
"type" : "library"
}
],
"tools_version" : "5.9"
}
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-0":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi -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
wasm-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:7e37457820e5f17452a98118754f345f2619722c485f2db0d8b666940a83afd2
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest
Fetching https://github.com/lukepistrol/SwiftLintPlugin
Fetching https://github.com/apple/swift-docc-plugin
[1/358] Fetching swiftlintplugin
[359/2407] Fetching swiftlintplugin, swift-docc-plugin
Fetched https://github.com/lukepistrol/SwiftLintPlugin from cache (0.41s)
Fetched https://github.com/apple/swift-docc-plugin from cache (0.41s)
Computing version for https://github.com/apple/swift-docc-plugin
Computed https://github.com/apple/swift-docc-plugin at 1.4.3 (2.81s)
Fetching https://github.com/swiftlang/swift-docc-symbolkit
[1/3392] Fetching swift-docc-symbolkit
Fetched https://github.com/swiftlang/swift-docc-symbolkit from cache (0.47s)
Computing version for https://github.com/swiftlang/swift-docc-symbolkit
Computed https://github.com/swiftlang/swift-docc-symbolkit at 1.0.0 (1.24s)
Computing version for https://github.com/lukepistrol/SwiftLintPlugin
Computed https://github.com/lukepistrol/SwiftLintPlugin at 0.59.1 (0.69s)
Creating working copy for https://github.com/swiftlang/swift-docc-symbolkit
Working copy of https://github.com/swiftlang/swift-docc-symbolkit resolved at 1.0.0
Creating working copy for https://github.com/apple/swift-docc-plugin
Working copy of https://github.com/apple/swift-docc-plugin resolved at 1.4.3
Creating working copy for https://github.com/lukepistrol/SwiftLintPlugin
Working copy of https://github.com/lukepistrol/SwiftLintPlugin resolved at 0.59.1
Downloading binary artifact https://github.com/realm/SwiftLint/releases/download/0.59.1/SwiftLintBinary.artifactbundle.zip
[1369/41085097] Downloading https://github.com/realm/SwiftLint/releases/download/0.59.1/SwiftLintBinary.artifactbundle.zip
Downloaded https://github.com/realm/SwiftLint/releases/download/0.59.1/SwiftLintBinary.artifactbundle.zip (4.04s)
[1/1] Compiling plugin SwiftLintFix
[2/2] Compiling plugin SwiftLint
[3/3] Compiling plugin Swift-DocC Preview
[4/4] Compiling plugin Swift-DocC
Building for debugging...
[4/6] Write sources
[5/6] Write swift-version-24593BA9C3E375BF.txt
[7/12] Compiling GroqSwift URLSession+Linux.swift
[8/12] Compiling GroqSwift Message.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[9/12] Compiling GroqSwift Errors.swift
[10/12] Compiling GroqSwift Models.swift
[11/12] Emitting module GroqSwift
/host/spi-builder-workspace/Sources/GroqSwift/GroqClient.swift:19:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
17 | private let apiKey: String
18 | private let host: URL
19 | private let session: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
20 |
21 | /// Initialize a new GroqClient
Foundation.URLSession:2:18: note: 'URLSession' 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 URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/GroqSwift/GroqClient.swift:29:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
27 | apiKey: String,
28 | host: URL = GroqClient.defaultHost,
29 | session: URLSession = .shared
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
30 | ) {
31 | self.apiKey = apiKey
Foundation.URLSession:2:18: note: 'URLSession' 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 URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/GroqSwift/GroqClient.swift:29:32: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
27 | apiKey: String,
28 | host: URL = GroqClient.defaultHost,
29 | session: URLSession = .shared
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
30 | ) {
31 | self.apiKey = apiKey
/host/spi-builder-workspace/Sources/GroqSwift/GroqClient.swift:254:87: error: cannot find type 'URLRequest' in scope
252 | // swiftlint:enable function_body_length
253 |
254 | private func createURLRequest(for request: ChatCompletionRequest) async throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
255 | var urlComponents = URLComponents(url: host, resolvingAgainstBaseURL: true)
256 | urlComponents?.path += "/chat/completions"
[12/12] Compiling GroqSwift GroqClient.swift
/host/spi-builder-workspace/Sources/GroqSwift/GroqClient.swift:19:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
17 | private let apiKey: String
18 | private let host: URL
19 | private let session: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
20 |
21 | /// Initialize a new GroqClient
Foundation.URLSession:2:18: note: 'URLSession' 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 URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/GroqSwift/GroqClient.swift:29:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
27 | apiKey: String,
28 | host: URL = GroqClient.defaultHost,
29 | session: URLSession = .shared
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
30 | ) {
31 | self.apiKey = apiKey
Foundation.URLSession:2:18: note: 'URLSession' 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 URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/GroqSwift/GroqClient.swift:29:32: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
27 | apiKey: String,
28 | host: URL = GroqClient.defaultHost,
29 | session: URLSession = .shared
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
30 | ) {
31 | self.apiKey = apiKey
/host/spi-builder-workspace/Sources/GroqSwift/GroqClient.swift:254:87: error: cannot find type 'URLRequest' in scope
252 | // swiftlint:enable function_body_length
253 |
254 | private func createURLRequest(for request: ChatCompletionRequest) async throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
255 | var urlComponents = URLComponents(url: host, resolvingAgainstBaseURL: true)
256 | urlComponents?.path += "/chat/completions"
/host/spi-builder-workspace/Sources/GroqSwift/GroqClient.swift:55:23: error: cannot find 'URLRequest' in scope
53 | }
54 |
55 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
56 | request.httpMethod = method
57 | request.allHTTPHeaderFields = headers()
/host/spi-builder-workspace/Sources/GroqSwift/GroqClient.swift:64:50: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
62 | }
63 |
64 | let (data, response) = try await session.data(for: request)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
65 |
66 | guard let httpResponse = response as? HTTPURLResponse else {
/host/spi-builder-workspace/Sources/GroqSwift/GroqClient.swift:193:38: error: cannot find 'URLRequest' in scope
191 | }
192 |
193 | var urlRequest = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
194 | urlRequest.httpMethod = "POST"
195 | urlRequest.allHTTPHeaderFields = headers()
/host/spi-builder-workspace/Sources/GroqSwift/GroqClient.swift:262:26: error: cannot find 'URLRequest' in scope
260 | }
261 |
262 | var urlRequest = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
263 | urlRequest.httpMethod = "POST"
264 | urlRequest.allHTTPHeaderFields = headers()
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-0":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1
wasm-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:7e37457820e5f17452a98118754f345f2619722c485f2db0d8b666940a83afd2
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest
[0/1] Planning build
[1/1] Compiling plugin SwiftLintFix
[2/2] Compiling plugin SwiftLint
[3/3] Compiling plugin Swift-DocC Preview
[4/4] Compiling plugin Swift-DocC
Building for debugging...
[4/5] Write swift-version-24593BA9C3E375BF.txt
[6/11] Compiling GroqSwift URLSession+Linux.swift
[7/11] Compiling GroqSwift Models.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[8/11] Compiling GroqSwift Errors.swift
[9/11] Emitting module GroqSwift
/host/spi-builder-workspace/Sources/GroqSwift/GroqClient.swift:19:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
17 | private let apiKey: String
18 | private let host: URL
19 | private let session: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
20 |
21 | /// Initialize a new GroqClient
Foundation.URLSession:2:18: note: 'URLSession' 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 URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/GroqSwift/GroqClient.swift:29:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
27 | apiKey: String,
28 | host: URL = GroqClient.defaultHost,
29 | session: URLSession = .shared
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
30 | ) {
31 | self.apiKey = apiKey
Foundation.URLSession:2:18: note: 'URLSession' 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 URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/GroqSwift/GroqClient.swift:29:32: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
27 | apiKey: String,
28 | host: URL = GroqClient.defaultHost,
29 | session: URLSession = .shared
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
30 | ) {
31 | self.apiKey = apiKey
/host/spi-builder-workspace/Sources/GroqSwift/GroqClient.swift:254:87: error: cannot find type 'URLRequest' in scope
252 | // swiftlint:enable function_body_length
253 |
254 | private func createURLRequest(for request: ChatCompletionRequest) async throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
255 | var urlComponents = URLComponents(url: host, resolvingAgainstBaseURL: true)
256 | urlComponents?.path += "/chat/completions"
[10/11] Compiling GroqSwift Message.swift
[11/11] Compiling GroqSwift GroqClient.swift
/host/spi-builder-workspace/Sources/GroqSwift/GroqClient.swift:19:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
17 | private let apiKey: String
18 | private let host: URL
19 | private let session: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
20 |
21 | /// Initialize a new GroqClient
Foundation.URLSession:2:18: note: 'URLSession' 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 URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/GroqSwift/GroqClient.swift:29:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
27 | apiKey: String,
28 | host: URL = GroqClient.defaultHost,
29 | session: URLSession = .shared
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
30 | ) {
31 | self.apiKey = apiKey
Foundation.URLSession:2:18: note: 'URLSession' 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 URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/GroqSwift/GroqClient.swift:29:32: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
27 | apiKey: String,
28 | host: URL = GroqClient.defaultHost,
29 | session: URLSession = .shared
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
30 | ) {
31 | self.apiKey = apiKey
/host/spi-builder-workspace/Sources/GroqSwift/GroqClient.swift:254:87: error: cannot find type 'URLRequest' in scope
252 | // swiftlint:enable function_body_length
253 |
254 | private func createURLRequest(for request: ChatCompletionRequest) async throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
255 | var urlComponents = URLComponents(url: host, resolvingAgainstBaseURL: true)
256 | urlComponents?.path += "/chat/completions"
/host/spi-builder-workspace/Sources/GroqSwift/GroqClient.swift:55:23: error: cannot find 'URLRequest' in scope
53 | }
54 |
55 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
56 | request.httpMethod = method
57 | request.allHTTPHeaderFields = headers()
/host/spi-builder-workspace/Sources/GroqSwift/GroqClient.swift:64:50: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
62 | }
63 |
64 | let (data, response) = try await session.data(for: request)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
65 |
66 | guard let httpResponse = response as? HTTPURLResponse else {
/host/spi-builder-workspace/Sources/GroqSwift/GroqClient.swift:193:38: error: cannot find 'URLRequest' in scope
191 | }
192 |
193 | var urlRequest = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
194 | urlRequest.httpMethod = "POST"
195 | urlRequest.allHTTPHeaderFields = headers()
/host/spi-builder-workspace/Sources/GroqSwift/GroqClient.swift:262:26: error: cannot find 'URLRequest' in scope
260 | }
261 |
262 | var urlRequest = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
263 | urlRequest.httpMethod = "POST"
264 | urlRequest.allHTTPHeaderFields = headers()
BUILD FAILURE 6.1 wasm