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 0.1.5 (79932a), with Swift 6.2 (beta) for Wasm on 16 Aug 2025 06:33:54 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4609320-2":/host -w "$PWD" 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.66.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/Recouse/OpenAI.git
Reference: 0.1.5
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
 * tag               0.1.5      -> FETCH_HEAD
HEAD is now at 79932a7 Fix reasoning output in Responses
Cloned https://github.com/Recouse/OpenAI.git
Revision (git rev-parse @):
79932a75402e3cd28a4519e9633f7ec59fb9cc5d
SUCCESS checkout https://github.com/Recouse/OpenAI.git at 0.1.5
========================================
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-2":/host -w "$PWD" 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:44384f43f933eaa0f42803e9ef7c3d8388c5841ccc831a15a5edf63d8c273423
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:wasm-6.2-latest
Fetching https://github.com/Recouse/EventSource.git
Fetching https://github.com/apple/swift-log.git
Fetching https://github.com/mattt/JSONSchema.git
[1/754] Fetching eventsource
[755/942] Fetching eventsource, jsonschema
[943/4828] Fetching eventsource, jsonschema, swift-log
Fetched https://github.com/Recouse/EventSource.git from cache (0.30s)
[4074/4074] Fetching jsonschema, swift-log
Fetched https://github.com/mattt/JSONSchema.git from cache (0.31s)
Fetched https://github.com/apple/swift-log.git from cache (0.79s)
Computing version for https://github.com/apple/swift-log.git
Computed https://github.com/apple/swift-log.git at 1.6.4 (1.29s)
Computing version for https://github.com/mattt/JSONSchema.git
Computed https://github.com/mattt/JSONSchema.git at 1.3.0 (0.53s)
Fetching https://github.com/apple/swift-collections.git
[1/16977] Fetching swift-collections
Fetched https://github.com/apple/swift-collections.git from cache (1.15s)
Computing version for https://github.com/Recouse/EventSource.git
Computed https://github.com/Recouse/EventSource.git at 0.1.5 (1.50s)
Computing version for https://github.com/apple/swift-collections.git
Computed https://github.com/apple/swift-collections.git at 1.2.1 (0.65s)
Creating working copy for https://github.com/mattt/JSONSchema.git
Working copy of https://github.com/mattt/JSONSchema.git resolved at 1.3.0
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/apple/swift-log.git
Working copy of https://github.com/apple/swift-log.git resolved at 1.6.4
Creating working copy for https://github.com/Recouse/EventSource.git
Working copy of https://github.com/Recouse/EventSource.git resolved at 0.1.5
Building for debugging...
[0/7] Write sources
[6/7] Write swift-version-24593BA9C3E375BF.txt
[8/35] 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 {
[9/36] 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 {
[10/36] Compiling InternalCollectionsUtilities FixedWidthInteger+roundUpToPowerOfTwo.swift
[11/36] Compiling InternalCollectionsUtilities Integer rank.swift
[12/37] Compiling InternalCollectionsUtilities _UnsafeBitSet.swift
[13/37] Compiling InternalCollectionsUtilities _SortedCollection.swift
[14/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 {
[15/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 {
[16/37] 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 {
[17/37] 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 {
[18/37] 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 {
[19/37] Emitting module InternalCollectionsUtilities
[20/37] Compiling InternalCollectionsUtilities UInt+first and last set bit.swift
[21/37] Compiling InternalCollectionsUtilities UInt+reversed.swift
[22/37] Compiling InternalCollectionsUtilities _UnsafeBitSet+Index.swift
[23/37] Compiling InternalCollectionsUtilities _UnsafeBitSet+_Word.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[24/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 {
/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 {
[27/37] Compiling InternalCollectionsUtilities UnsafeBufferPointer+Extras.swift
[28/37] Compiling InternalCollectionsUtilities Descriptions.swift
[29/37] Compiling InternalCollectionsUtilities RandomAccessCollection+Offsets.swift
[30/37] Compiling InternalCollectionsUtilities _UniqueCollection.swift
[31/37] Compiling InternalCollectionsUtilities Debugging.swift
[32/37] Compiling Logging LogHandler.swift
[33/37] Emitting module Logging
[34/37] Compiling Logging Locks.swift
BUILD FAILURE 6.2 wasm