The Swift Package Index logo.Swift Package Index

Build Information

Failed to build OpenAI, reference 1.1.1 (de472c), with Swift 6.4 for Linux on 22 Sep 2026 16:37:18 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-54344845-1":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/saguaro1/spi-images:basic-6.4-latest swift build --triple x86_64-unknown-linux-gnu 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 5.1.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/m1guelpf/swift-openai-responses.git
Reference: 1.1.1
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/m1guelpf/swift-openai-responses
 * tag               1.1.1      -> FETCH_HEAD
HEAD is now at de472c3 add `input_fidelity` to image generation tool
Cloned https://github.com/m1guelpf/swift-openai-responses.git
Revision (git rev-parse @):
de472c3e8d9fce9ab04498b9e4a7c477ead2aae1
SPI manifest file found: $PWD/.spi.yml
SUCCESS checkout https://github.com/m1guelpf/swift-openai-responses.git at 1.1.1
========================================
Build
========================================
Selected platform:         linux
Swift version:             6.4
Building package at path:  $PWD
https://github.com/m1guelpf/swift-openai-responses.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-54344845-1":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/saguaro1/spi-images:basic-6.4-latest swift build --triple x86_64-unknown-linux-gnu 2>&1
basic-6.4-latest: Pulling from saguaro1/spi-images
Digest: sha256:c77fcce225e223ac0fafed844619173fc6de8d62dd560eeb28db3182af6a282b
Status: Image is up to date for registry.gitlab.com/saguaro1/spi-images:basic-6.4-latest
Fetching https://github.com/SwiftyLab/MetaCodable.git
[1/210645] Fetching metacodable
Fetched https://github.com/SwiftyLab/MetaCodable.git (48.76s)
Computing version for https://github.com/SwiftyLab/MetaCodable.git
Computed https://github.com/SwiftyLab/MetaCodable.git at 1.6.1 (49.96s)
Fetching https://github.com/apple/swift-collections.git
Fetching https://github.com/swiftlang/swift-syntax.git
Fetching https://github.com/apple/swift-argument-parser.git
[1/18918] Fetching swift-argument-parser
[4353/46572] Fetching swift-argument-parser, swift-collections
Fetched https://github.com/apple/swift-argument-parser.git (0.85s)
[13827/27654] Fetching swift-collections
[27655/107661] Fetching swift-collections, swift-syntax
Fetched https://github.com/apple/swift-collections.git (3.31s)
Fetched https://github.com/swiftlang/swift-syntax.git (3.31s)
Computing version for https://github.com/swiftlang/swift-syntax.git
Computed https://github.com/swiftlang/swift-syntax.git at 603.0.2 (4.50s)
Computing version for https://github.com/apple/swift-argument-parser.git
Computed https://github.com/apple/swift-argument-parser.git at 1.8.2 (0.17s)
Computing version for https://github.com/apple/swift-collections.git
Computed https://github.com/apple/swift-collections.git at 1.6.0 (0.28s)
Creating working copy for https://github.com/apple/swift-argument-parser.git
Working copy of https://github.com/apple/swift-argument-parser.git resolved at 1.8.2
Creating working copy for https://github.com/apple/swift-collections.git
Working copy of https://github.com/apple/swift-collections.git resolved at 1.6.0
Creating working copy for https://github.com/swiftlang/swift-syntax.git
Working copy of https://github.com/swiftlang/swift-syntax.git resolved at 603.0.2
Creating working copy for https://github.com/SwiftyLab/MetaCodable.git
Working copy of https://github.com/SwiftyLab/MetaCodable.git resolved at 1.6.1
Building for debugging...
[Computing dependencies]
[Pre-planning 1 / 802]
[Planning deferred tasks]
[165 / 344] SwiftSyntax603
[207 / 365] SwiftSyntax509
[209 / 365] SwiftSyntax509
[221 / 367] SwiftSyntax
[226 / 368] SwiftSyntax601
[229 / 368]
[238 / 372]
[243 / 373] SwiftSyntax
[250 / 391] SwiftSyntax
[251 / 391] SwiftSyntax
[252 / 392] SwiftSyntax
[253 / 392] SwiftSyntax
[254 / 392] OrderedCollections
[255 / 392] OrderedCollections
[256 / 392] OrderedCollections
[258 / 392] OrderedCollections
[262 / 392] OrderedCollections
[263 / 392] OrderedCollections-product
[265 / 392] OrderedCollections-product
[269 / 392] OrderedCollections
[272 / 393] SwiftSyntax
[285 / 421] SwiftParser
[286 / 421] SwiftDiagnostics
[291 / 421] SwiftDiagnostics
[294 / 421] SwiftBasicFormat
[299 / 421] SwiftParser
[300 / 421] SwiftParser
[301 / 421] SwiftParser
[303 / 421] SwiftParser
[309 / 421] SwiftDiagnostics
[311 / 421] SwiftDiagnostics
[312 / 421] SwiftDiagnostics
[314 / 421] SwiftOperators
[318 / 421] SwiftParserDiagnostics
[320 / 421]
[324 / 441] SwiftOperators
[326 / 442] SwiftParserDiagnostics
[327 / 443] SwiftParser
[329 / 444] SwiftParserDiagnostics
[330 / 444] SwiftOperators
[338 / 444] SwiftParserDiagnostics
[342 / 444] SwiftParserDiagnostics
[344 / 444] SwiftOperators
[346 / 444] SwiftParserDiagnostics
[348 / 444] SwiftOperators-product
[349 / 444] SwiftOperators-product
[353 / 444] SwiftDiagnostics
[357 / 445] SwiftSyntaxBuilder
[361 / 454] SwiftSyntaxBuilder
[362 / 455] SwiftSyntaxBuilder
[364 / 456] SwiftSyntaxBuilder
[373 / 456] SwiftSyntaxBuilder-product
[379 / 466] SwiftIfConfig
[380 / 466] SwiftIfConfig
[384 / 466] SwiftIfConfig
[390 / 466] SwiftIfConfig
[395 / 476] SwiftSyntaxMacros
[399 / 477] SwiftSyntaxBuilder
[407 / 478] SwiftIfConfig
[415 / 488] SwiftSyntaxMacroExpansion
[419 / 489] SwiftSyntaxMacros
[421 / 489]
[432 / 500] SwiftCompilerPluginMessageHandling
[433 / 509] PluginCore
[436 / 509] SwiftCompilerPluginMessageHandling
[437 / 509] SwiftCompilerPluginMessageHandling
[439 / 509] SwiftCompilerPluginMessageHandling
[445 / 509] SwiftCompilerPlugin
[447 / 510] SwiftSyntaxMacroExpansion
[449 / 510] SwiftSyntaxMacroExpansion
[451 / 511] SwiftCompilerPluginMessageHandling
[459 / 511] PluginCore
[460 / 511] PluginCore
[463 / 514] SwiftCompilerPlugin
[468 / 514] PluginCore
[469 / 515] SwiftCompilerPlugin
[470 / 515] PluginCore
[472 / 516] SwiftSyntax
[475 / 517] SwiftSyntax
[482 / 517] SwiftIfConfig
[492 / 518] MacroPlugin
[495 / 521] MacroPlugin
[500 / 522] MacroPlugin
[510 / 532] MetaCodable
[516 / 533] HelperCoders
[524 / 543] MetaCodable
[528 / 543]
[542 / 553] OpenAI
[543 / 554] OpenAI
error: SwiftCompile normal x86_64 /host/spi-builder-workspace/src/OpenAI.swift failed with a nonzero exit code. Command line:     cd /host
    builtin-SwiftPerFileCompile OpenAI.swift
error: SwiftCompile normal x86_64 /host/spi-builder-workspace/src/Support/MultiPartData.swift failed with a nonzero exit code. Command line:     cd /host
    builtin-SwiftPerFileCompile MultiPartData.swift
/host/spi-builder-workspace/src/OpenAI.swift:203:62: error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
201 | 	///
202 | 	/// - Throws: If the request fails to send or has a non-200 status code.
203 | 	func stream(request: URLRequest) async throws -> URLSession.AsyncBytes {
    |                                                              `- error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
204 | 		let (data, res) = try await URLSession.shared.bytes(for: request)
205 |
FoundationNetworking.URLSession:1:12: note: 'URLSession' declared here
 1 | open class URLSession : NSObject, @unchecked Sendable {
   |            `- note: 'URLSession' declared here
 2 |     open class var shared: URLSession { get }
 3 |     public init(configuration: URLSessionConfiguration)
/host/spi-builder-workspace/src/OpenAI.swift:92:31: error: extraneous argument label 'request:' in call
 90 | 		req.addValue("application/json", forHTTPHeaderField: "Content-Type")
 91 |
 92 | 		let bytes = try await stream(request: req)
    |                               `- error: extraneous argument label 'request:' in call
 93 |
 94 | 		let (stream, continuation) = AsyncThrowingStream.makeStream(of: Event.self)
/host/spi-builder-workspace/src/OpenAI.swift:92:41: error: cannot convert value of type 'URLRequest' to expected argument type 'Request'
 90 | 		req.addValue("application/json", forHTTPHeaderField: "Content-Type")
 91 |
 92 | 		let bytes = try await stream(request: req)
    |                                         `- error: cannot convert value of type 'URLRequest' to expected argument type 'Request'
 93 |
 94 | 		let (stream, continuation) = AsyncThrowingStream.makeStream(of: Event.self)
/host/spi-builder-workspace/src/OpenAI.swift:162:7: error: value of type 'URLRequest' has no member 'attach'
160 | 		var req = request
161 | 		req.httpMethod = "POST"
162 | 		req.attach(formData: form)
    |       `- error: value of type 'URLRequest' has no member 'attach'
163 | 		req.url!.append(path: "v1/files")
164 |
/host/spi-builder-workspace/src/OpenAI.swift:204:49: error: value of type 'URLSession' has no member 'bytes'
202 | 	/// - Throws: If the request fails to send or has a non-200 status code.
203 | 	func stream(request: URLRequest) async throws -> URLSession.AsyncBytes {
204 | 		let (data, res) = try await URLSession.shared.bytes(for: request)
    |                                                 `- error: value of type 'URLSession' has no member 'bytes'
205 |
206 | 		guard let res = res as? HTTPURLResponse else { throw Error.invalidResponse(res) }
/host/spi-builder-workspace/src/Support/MultiPartData.swift:55:11: error: cannot find type 'URLRequest' in scope
53 | }
54 |
55 | extension URLRequest {
   |           `- error: cannot find type 'URLRequest' in scope
56 | 	mutating func attach(formData form: FormData) {
57 | 		httpBody = form.data
Failed frontend command:
/usr/bin/swift-frontend -frontend -c /host/spi-builder-workspace/src/Conversation.swift /host/spi-builder-workspace/src/Extensions/AsyncBytes+collect.swift /host/spi-builder-workspace/src/Extensions/Collection+safeAccess.swift /host/spi-builder-workspace/src/Models/Config.swift /host/spi-builder-workspace/src/Models/Event.swift /host/spi-builder-workspace/src/Models/File.swift /host/spi-builder-workspace/src/Models/Input.swift /host/spi-builder-workspace/src/Models/Item.swift /host/spi-builder-workspace/src/Models/Message.swift /host/spi-builder-workspace/src/Models/Model.swift /host/spi-builder-workspace/src/Models/Request.swift /host/spi-builder-workspace/src/Models/Response.swift /host/spi-builder-workspace/src/Models/Tool.swift /host/spi-builder-workspace/src/Models/WebhookEvent.swift -primary-file /host/spi-builder-workspace/src/OpenAI.swift -primary-file /host/spi-builder-workspace/src/Support/MultiPartData.swift -emit-dependencies-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/OpenAI.build/Debug-linux-x86_64/OpenAI-t.build/Objects-normal/x86_64/OpenAI.d -emit-const-values-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/OpenAI.build/Debug-linux-x86_64/OpenAI-t.build/Objects-normal/x86_64/OpenAI.swiftconstvalues -emit-reference-dependencies-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/OpenAI.build/Debug-linux-x86_64/OpenAI-t.build/Objects-normal/x86_64/OpenAI.swiftdeps -serialize-diagnostics-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/OpenAI.build/Debug-linux-x86_64/OpenAI-t.build/Objects-normal/x86_64/OpenAI.dia -emit-dependencies-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/OpenAI.build/Debug-linux-x86_64/OpenAI-t.build/Objects-normal/x86_64/MultiPartData.d -emit-const-values-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/OpenAI.build/Debug-linux-x86_64/OpenAI-t.build/Objects-normal/x86_64/MultiPartData.swiftconstvalues -emit-reference-dependencies-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/OpenAI.build/Debug-linux-x86_64/OpenAI-t.build/Objects-normal/x86_64/MultiPartData.swiftdeps -serialize-diagnostics-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/OpenAI.build/Debug-linux-x86_64/OpenAI-t.build/Objects-normal/x86_64/MultiPartData.dia -target x86_64-unknown-linux-gnu -disable-objc-interop -I /host/spi-builder-workspace/.build/out/Products/Debug-linux-x86_64 -module-cache-path /host/spi-builder-workspace/.build/out/ModuleCache.noindex -color-diagnostics -Xcc -fcolor-diagnostics -enable-testing -g -debug-info-format\=dwarf -dwarf-version\=4 -swift-version 6 -Onone -D SWIFT_PACKAGE -D DEBUG -D SWIFT_MODULE_RESOURCE_BUNDLE_UNAVAILABLE -D Xcode -serialize-debugging-options -load-plugin-executable /host/spi-builder-workspace/.build/out/Products/Debug-linux-x86_64/MacroPlugin\#MacroPlugin -enable-experimental-feature DebugDescriptionMacro -empty-abi-descriptor -external-plugin-path /usr/lib/swift/host/plugins/testing\#/usr/bin/swift-plugin-server -validate-clang-modules-once -clang-build-session-file /host/spi-builder-workspace/.build/out/ModuleCache.noindex/Session.modulevalidation -Xcc -working-directory -Xcc /host -enable-anonymous-context-mangled-names -file-compilation-dir /host -Xcc -fno-omit-frame-pointer -Xcc -D_LIBCPP_HARDENING_MODE\=_LIBCPP_HARDENING_MODE_DEBUG -Xcc -fmodules-prune-interval\=86400 -Xcc -fmodules-prune-after\=345600 -Xcc -I/host/spi-builder-workspace/.build/out/Products/Debug-linux-x86_64/include -Xcc -I/host/spi-builder-workspace/.build/out/Intermediates.noindex/OpenAI.build/Debug-linux-x86_64/OpenAI-t.build/DerivedSources-normal/x86_64 -Xcc -I/host/spi-builder-workspace/.build/out/Intermediates.noindex/OpenAI.build/Debug-linux-x86_64/OpenAI-t.build/DerivedSources/x86_64 -Xcc -I/host/spi-builder-workspace/.build/out/Intermediates.noindex/OpenAI.build/Debug-linux-x86_64/OpenAI-t.build/DerivedSources -Xcc -DSWIFT_PACKAGE -Xcc -DDEBUG\=1 -no-auto-bridging-header-chaining -module-name OpenAI -package-name spi_builder_workspace -const-gather-protocols-file /host/spi-builder-workspace/.build/out/Intermediates.noindex/OpenAI.build/Debug-linux-x86_64/OpenAI-t.build/Objects-normal/x86_64/OpenAI_const_extract_protocols.json -in-process-plugin-server-path /usr/lib/swift/host/libSwiftInProcPluginServer.so -plugin-path /usr/lib/swift/host/plugins -plugin-path /usr/local/lib/swift/host/plugins -parse-as-library -o /host/spi-builder-workspace/.build/out/Intermediates.noindex/OpenAI.build/Debug-linux-x86_64/OpenAI-t.build/Objects-normal/x86_64/OpenAI.o -o /host/spi-builder-workspace/.build/out/Intermediates.noindex/OpenAI.build/Debug-linux-x86_64/OpenAI-t.build/Objects-normal/x86_64/MultiPartData.o -index-unit-output-path /OpenAI.build/Debug-linux-x86_64/OpenAI-t.build/Objects-normal/x86_64/OpenAI.o -index-unit-output-path /OpenAI.build/Debug-linux-x86_64/OpenAI-t.build/Objects-normal/x86_64/MultiPartData.o -index-store-path /host/spi-builder-workspace/.build/out -index-system-modules
error: Build failed
BUILD FAILURE 6.4 linux