The Swift Package Index logo.Swift Package Index

Build Information

Failed to build OpenAIStructure, reference v1.2.0 (ba86ac), with Swift 6.4 for Linux on 22 Sep 2026 06:50:22 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-54344844-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/yukiny0811/OpenAIStructure.git
Reference: v1.2.0
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/yukiny0811/OpenAIStructure
 * tag               v1.2.0     -> FETCH_HEAD
HEAD is now at ba86acb string request
Cloned https://github.com/yukiny0811/OpenAIStructure.git
Revision (git rev-parse @):
ba86acb8aa02209f01c2f1e5e76303b752d49e6b
SUCCESS checkout https://github.com/yukiny0811/OpenAIStructure.git at v1.2.0
========================================
Build
========================================
Selected platform:         linux
Swift version:             6.4
Building package at path:  $PWD
https://github.com/yukiny0811/OpenAIStructure.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-54344844-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/swiftlang/swift-syntax.git
[1/80002] Fetching swift-syntax
Fetched https://github.com/swiftlang/swift-syntax.git (3.37s)
Computing version for https://github.com/swiftlang/swift-syntax.git
Computed https://github.com/swiftlang/swift-syntax.git at 600.0.1 (4.62s)
Creating working copy for https://github.com/swiftlang/swift-syntax.git
Working copy of https://github.com/swiftlang/swift-syntax.git resolved at 600.0.1
Building for debugging...
[Computing dependencies]
[Pre-planning 1 / 591]
[Planning deferred tasks]
warning: no rule to process file '/host/spi-builder-workspace/Sources/OpenAIStructureClient/Media.xcassets' of type 'folder.assetcatalog' for architecture 'x86_64'
[119 / 237] SwiftSyntax510
[141 / 244] SwiftSyntax
[147 / 253] SwiftSyntax
[148 / 254] SwiftSyntax510
[153 / 255] SwiftSyntax510
[157 / 256] SwiftSyntax509
[159 / 256] SwiftSyntax
[170 / 266] SwiftDiagnostics
[172 / 283] SwiftParser
[173 / 283] SwiftParser
[179 / 283] SwiftBasicFormat
[180 / 283] SwiftParser
[183 / 283] SwiftBasicFormat
[188 / 283] SwiftParser
[189 / 283] SwiftParser
[192 / 283] SwiftParser
[196 / 283] SwiftParser
[198 / 283] SwiftDiagnostics
[199 / 283] SwiftDiagnostics
[200 / 283] SwiftOperators
[202 / 283] SwiftOperators
[203 / 283] SwiftBasicFormat
[205 / 284] SwiftParserDiagnostics
[208 / 284] SwiftDiagnostics
[212 / 304] SwiftOperators
[213 / 304] SwiftParserDiagnostics
[214 / 305] SwiftBasicFormat
[217 / 306] SwiftParserDiagnostics
[221 / 306] SwiftParserDiagnostics
[222 / 306] SwiftSyntaxBuilder
[225 / 306] SwiftOperators
[230 / 306] SwiftParserDiagnostics
[234 / 306] SwiftParser
[235 / 306] SwiftOperators
[237 / 306] SwiftOperators
[238 / 306] SwiftOperators
[239 / 306] SwiftOperators
[240 / 306] SwiftOperators
[241 / 306] SwiftBasicFormat
[242 / 306]
[245 / 316] SwiftSyntaxBuilder
[246 / 316] SwiftSyntaxBuilder
[247 / 317] SwiftSyntaxBuilder
[248 / 317] SwiftSyntaxBuilder
[250 / 317] SwiftSyntaxBuilder
[254 / 317] SwiftSyntaxBuilder
[255 / 317] SwiftSyntaxMacros
[256 / 317] SwiftSyntaxMacros
[258 / 318] SwiftParserDiagnostics
[259 / 318] SwiftOperators
[261 / 318]
[264 / 328] SwiftSyntaxMacros
[265 / 328] SwiftSyntaxMacros
[267 / 328] SwiftSyntaxBuilder
[273 / 328] SwiftSyntaxMacros-product
[276 / 328] SwiftSyntaxMacroExpansion
[280 / 338] SwiftSyntaxMacroExpansion
[281 / 338] SwiftSyntaxMacroExpansion
[281 / 339] SwiftSyntaxMacroExpansion
[284 / 339] SwiftSyntaxMacroExpansion
[289 / 340] SwiftSyntaxMacroExpansion
[294 / 340] SwiftSyntaxMacroExpansion
[299 / 350] SwiftCompilerPluginMessageHandling
[300 / 350] SwiftCompilerPluginMessageHandling
[301 / 350] SwiftCompilerPluginMessageHandling
[302 / 350] SwiftCompilerPluginMessageHandling
[304 / 350] SwiftCompilerPluginMessageHandling
[305 / 350] SwiftCompilerPluginMessageHandling
[306 / 350] SwiftCompilerPluginMessageHandling
[313 / 353] SwiftCompilerPlugin
[314 / 353] SwiftCompilerPlugin
[319 / 354] SwiftSyntaxMacroExpansion
[322 / 355] SwiftSyntax
[322 / 355] SwiftCompilerPluginMessageHandling
[324 / 356] SwiftSyntax
[327 / 357] SwiftSyntax
[333 / 357] SwiftSyntaxBuilder
[342 / 358] OpenAIStructureMacros
[344 / 360] OpenAIStructureMacros
[345 / 360] OpenAIStructureMacros
[349 / 361] OpenAIStructureMacros
[350 / 362] OpenAIStructure
[359 / 371] OpenAIStructure
error: SwiftCompile normal x86_64 /host/spi-builder-workspace/Sources/OpenAIStructure/OpenAIRequest.swift failed with a nonzero exit code. Command line:     cd /host
    builtin-SwiftPerFileCompile OpenAIRequest.swift
/host/spi-builder-workspace/Sources/OpenAIStructure/OpenAIRequest.swift:28:19: error: cannot find 'URLRequest' in scope
 26 |
 27 |     public static func request<T: OpenAIStructureObject>(input: String, instructions: String, model: OpenAIModel, object: T.Type, apiKey: String) async throws -> T {
 28 |         var req = URLRequest(url: endpoint)
    |                   `- error: cannot find 'URLRequest' in scope
 29 |         req.httpMethod = "POST"
 30 |         req.addValue("application/json", forHTTPHeaderField: "Content-Type")
/host/spi-builder-workspace/Sources/OpenAIStructure/OpenAIRequest.swift:58:46: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 56 |         req.httpBody = try JSONEncoder().encode(payload)
 57 |         req.timeoutInterval = 300
 58 |         let (data, _) = try await URLSession.shared.data(for: req)
    |                                              `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 59 |         guard let decoded = try? JSONDecoder().decode(OpenAIResponse.self, from: data) else {
 60 |             throw OpenAIStructureError(message: String(data: data, encoding: .utf8) ?? "error")
/host/spi-builder-workspace/Sources/OpenAIStructure/OpenAIRequest.swift:96:19: error: cannot find 'URLRequest' in scope
 94 |
 95 |     public static func request<T: OpenAIStructureObject>(input: String, instructions: String, image: Data, model: OpenAIModel, object: T.Type, apiKey: String) async throws -> T {
 96 |         var req = URLRequest(url: endpoint)
    |                   `- error: cannot find 'URLRequest' in scope
 97 |         req.httpMethod = "POST"
 98 |         req.addValue("application/json", forHTTPHeaderField: "Content-Type")
/host/spi-builder-workspace/Sources/OpenAIStructure/OpenAIRequest.swift:134:46: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
132 |         req.httpBody = try JSONEncoder().encode(payload)
133 |         req.timeoutInterval = 300
134 |         let (data, _) = try await URLSession.shared.data(for: req)
    |                                              `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
135 |         guard let decoded = try? JSONDecoder().decode(OpenAIResponse.self, from: data) else {
136 |             throw OpenAIStructureError(message: String(data: data, encoding: .utf8) ?? "error")
/host/spi-builder-workspace/Sources/OpenAIStructure/OpenAIRequest.swift:168:19: error: cannot find 'URLRequest' in scope
166 |     public static func request(input: String, instructions: String, model: OpenAIModel, apiKey: String) async throws -> String {
167 |         let endpoint = URL(string: "https://api.openai.com/v1/responses")!
168 |         var req = URLRequest(url: endpoint)
    |                   `- error: cannot find 'URLRequest' in scope
169 |         req.httpMethod = "POST"
170 |         req.addValue("application/json", forHTTPHeaderField: "Content-Type")
/host/spi-builder-workspace/Sources/OpenAIStructure/OpenAIRequest.swift:194:46: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
192 |         req.httpBody = try JSONEncoder().encode(payload)
193 |         req.timeoutInterval = 300
194 |         let (data, _) = try await URLSession.shared.data(for: req)
    |                                              `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
195 |         guard let decoded = try? JSONDecoder().decode(OpenAIResponse.self, from: data) else {
196 |             throw OpenAIStructureError(message: String(data: data, encoding: .utf8) ?? "error")
Failed frontend command:
/usr/bin/swift-frontend -frontend -c /host/spi-builder-workspace/Sources/OpenAIStructure/AnyCodable.swift /host/spi-builder-workspace/Sources/OpenAIStructure/OpenAIModel.swift -primary-file /host/spi-builder-workspace/Sources/OpenAIStructure/OpenAIRequest.swift /host/spi-builder-workspace/Sources/OpenAIStructure/OpenAIResponse.swift /host/spi-builder-workspace/Sources/OpenAIStructure/OpenAIStructure.swift /host/spi-builder-workspace/Sources/OpenAIStructure/OpenAIStructureError.swift /host/spi-builder-workspace/Sources/OpenAIStructure/OpenAIStructureObject.swift /host/spi-builder-workspace/Sources/OpenAIStructure/SchemaRequest.swift -emit-dependencies-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/OpenAIStructure.build/Debug-linux-x86_64/OpenAIStructure-t.build/Objects-normal/x86_64/OpenAIRequest.d -emit-const-values-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/OpenAIStructure.build/Debug-linux-x86_64/OpenAIStructure-t.build/Objects-normal/x86_64/OpenAIRequest.swiftconstvalues -emit-reference-dependencies-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/OpenAIStructure.build/Debug-linux-x86_64/OpenAIStructure-t.build/Objects-normal/x86_64/OpenAIRequest.swiftdeps -serialize-diagnostics-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/OpenAIStructure.build/Debug-linux-x86_64/OpenAIStructure-t.build/Objects-normal/x86_64/OpenAIRequest.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/OpenAIStructureMacros\#OpenAIStructureMacros -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/OpenAIStructure.build/Debug-linux-x86_64/OpenAIStructure-t.build/DerivedSources-normal/x86_64 -Xcc -I/host/spi-builder-workspace/.build/out/Intermediates.noindex/OpenAIStructure.build/Debug-linux-x86_64/OpenAIStructure-t.build/DerivedSources/x86_64 -Xcc -I/host/spi-builder-workspace/.build/out/Intermediates.noindex/OpenAIStructure.build/Debug-linux-x86_64/OpenAIStructure-t.build/DerivedSources -Xcc -DSWIFT_PACKAGE -Xcc -DDEBUG\=1 -no-auto-bridging-header-chaining -module-name OpenAIStructure -package-name spi_builder_workspace -const-gather-protocols-file /host/spi-builder-workspace/.build/out/Intermediates.noindex/OpenAIStructure.build/Debug-linux-x86_64/OpenAIStructure-t.build/Objects-normal/x86_64/OpenAIStructure_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/OpenAIStructure.build/Debug-linux-x86_64/OpenAIStructure-t.build/Objects-normal/x86_64/OpenAIRequest.o -index-unit-output-path /OpenAIStructure.build/Debug-linux-x86_64/OpenAIStructure-t.build/Objects-normal/x86_64/OpenAIRequest.o -index-store-path /host/spi-builder-workspace/.build/out -index-system-modules
error: Build failed
BUILD FAILURE 6.4 linux