The Swift Package Index logo.Swift Package Index

Has it really been five years since Swift Package Index launched? Read our anniversary blog post!

Build Information

Failed to build OpenAI, reference main (01c08e), with Swift 6.2 (beta) for Wasm on 2 Sep 2025 12:44:46 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4609320-0":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/finestructure/spi-images:wasm-6.2-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.67.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/Recouse/OpenAI.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/Recouse/OpenAI
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at 01c08ef Add more response types
Cloned https://github.com/Recouse/OpenAI.git
Revision (git rev-parse @):
01c08efdd5bc3ac48b40ae3a877800056aacfb82
SUCCESS checkout https://github.com/Recouse/OpenAI.git at main
========================================
Build
========================================
Selected platform:         wasm
Swift version:             6.2
Building package at path:  $PWD
https://github.com/Recouse/OpenAI.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-0":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/finestructure/spi-images:wasm-6.2-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1
wasm-6.2-latest: Pulling from finestructure/spi-images
Digest: sha256:3160178686d03086db4c1712d78c1980537bb37521128c64baade7f466b6b4aa
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:wasm-6.2-latest
Fetching https://github.com/apple/swift-log.git
Fetching https://github.com/mattt/JSONSchema.git
Fetching https://github.com/Recouse/EventSource.git
[1/192] Fetching jsonschema
[193/952] Fetching jsonschema, eventsource
[953/4855] Fetching jsonschema, eventsource, swift-log
Fetched https://github.com/mattt/JSONSchema.git from cache (0.33s)
Fetched https://github.com/Recouse/EventSource.git from cache (0.33s)
Fetched https://github.com/apple/swift-log.git from cache (0.95s)
Computing version for https://github.com/apple/swift-log.git
Computed https://github.com/apple/swift-log.git at 1.6.4 (1.45s)
Computing version for https://github.com/Recouse/EventSource.git
Computed https://github.com/Recouse/EventSource.git at 0.1.5 (0.33s)
Computing version for https://github.com/mattt/JSONSchema.git
Computed https://github.com/mattt/JSONSchema.git at 1.3.1 (0.87s)
Fetching https://github.com/apple/swift-collections.git
[1/17394] Fetching swift-collections
Fetched https://github.com/apple/swift-collections.git from cache (1.24s)
Computing version for https://github.com/apple/swift-collections.git
Computed https://github.com/apple/swift-collections.git at 1.2.1 (2.05s)
Creating working copy for https://github.com/apple/swift-collections.git
Working copy of https://github.com/apple/swift-collections.git resolved at 1.2.1
Creating working copy for https://github.com/Recouse/EventSource.git
Working copy of https://github.com/Recouse/EventSource.git resolved at 0.1.5
Creating working copy for https://github.com/mattt/JSONSchema.git
Working copy of https://github.com/mattt/JSONSchema.git resolved at 1.3.1
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.4
Building for debugging...
[0/7] Write sources
[6/7] Write swift-version-24593BA9C3E375BF.txt
[8/35] Compiling EventSource Data+Trim.swift
[9/35] Compiling EventSource EventParser.swift
[10/35] Emitting module InternalCollectionsUtilities
[11/36] Compiling InternalCollectionsUtilities UInt+first and last set bit.swift
[12/36] Compiling InternalCollectionsUtilities UInt+reversed.swift
[13/36] Compiling InternalCollectionsUtilities Descriptions.swift
[14/36] Compiling InternalCollectionsUtilities RandomAccessCollection+Offsets.swift
[15/36] Compiling InternalCollectionsUtilities _UniqueCollection.swift
[16/36] Compiling InternalCollectionsUtilities Debugging.swift
[17/36] Compiling InternalCollectionsUtilities UnsafeBufferPointer+Extras.swift
[18/36] Compiling InternalCollectionsUtilities _UnsafeBitSet+Index.swift
[19/36] Compiling InternalCollectionsUtilities _UnsafeBitSet+_Word.swift
[20/36] Compiling InternalCollectionsUtilities _UnsafeBitSet.swift
[21/36] Compiling InternalCollectionsUtilities _SortedCollection.swift
[22/36] Compiling EventSource Mutex.swift
/host/spi-builder-workspace/.build/checkouts/EventSource/Sources/EventSource/Data+Trim.swift:8:8: error: no such module 'Foundation'
 6 | //
 7 |
 8 | import Foundation
   |        `- error: no such module 'Foundation'
 9 |
10 | extension Data {
error: emit-module command failed with exit code 1 (use -v to see invocation)
[23/37] Emitting module EventSource
/host/spi-builder-workspace/.build/checkouts/EventSource/Sources/EventSource/Data+Trim.swift:8:8: error: no such module 'Foundation'
 6 | //
 7 |
 8 | import Foundation
   |        `- error: no such module 'Foundation'
 9 |
10 | extension Data {
[24/37] Compiling EventSource Extensions.swift
/host/spi-builder-workspace/.build/checkouts/EventSource/Sources/EventSource/Data+Trim.swift:8:8: error: no such module 'Foundation'
 6 | //
 7 |
 8 | import Foundation
   |        `- error: no such module 'Foundation'
 9 |
10 | extension Data {
[25/37] Compiling EventSource EventSourceError.swift
/host/spi-builder-workspace/.build/checkouts/EventSource/Sources/EventSource/Data+Trim.swift:8:8: error: no such module 'Foundation'
 6 | //
 7 |
 8 | import Foundation
   |        `- error: no such module 'Foundation'
 9 |
10 | extension Data {
/host/spi-builder-workspace/.build/checkouts/EventSource/Sources/EventSource/Data+Trim.swift:8:8: error: no such module 'Foundation'
 6 | //
 7 |
 8 | import Foundation
   |        `- error: no such module 'Foundation'
 9 |
10 | extension Data {
/host/spi-builder-workspace/.build/checkouts/EventSource/Sources/EventSource/Data+Trim.swift:8:8: error: no such module 'Foundation'
 6 | //
 7 |
 8 | import Foundation
   |        `- error: no such module 'Foundation'
 9 |
10 | extension Data {
[28/37] Compiling InternalCollectionsUtilities UnsafeMutableBufferPointer+Extras.swift
[29/38] Compiling EventSource Headers.swift
/host/spi-builder-workspace/.build/checkouts/EventSource/Sources/EventSource/Data+Trim.swift:8:8: error: no such module 'Foundation'
 6 | //
 7 |
 8 | import Foundation
   |        `- error: no such module 'Foundation'
 9 |
10 | extension Data {
[30/38] Compiling EventSource EventSource.swift
/host/spi-builder-workspace/.build/checkouts/EventSource/Sources/EventSource/Data+Trim.swift:8:8: error: no such module 'Foundation'
 6 | //
 7 |
 8 | import Foundation
   |        `- error: no such module 'Foundation'
 9 |
10 | extension Data {
[31/38] Compiling EventSource ServerEvent.swift
/host/spi-builder-workspace/.build/checkouts/EventSource/Sources/EventSource/Data+Trim.swift:8:8: error: no such module 'Foundation'
 6 | //
 7 |
 8 | import Foundation
   |        `- error: no such module 'Foundation'
 9 |
10 | extension Data {
[32/38] Compiling EventSource SessionDelegate.swift
/host/spi-builder-workspace/.build/checkouts/EventSource/Sources/EventSource/Data+Trim.swift:8:8: error: no such module 'Foundation'
 6 | //
 7 |
 8 | import Foundation
   |        `- error: no such module 'Foundation'
 9 |
10 | extension Data {
[34/38] Emitting module Logging
[35/38] Compiling Logging Locks.swift
[36/38] Compiling Logging LogHandler.swift
BUILD FAILURE 6.2 wasm