Build Information
Failed to build SwiftAgent, reference 0.8.0 (48bfda), with Swift 6.2 for Wasm on 15 Jan 2026 19:49:09 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-wasip1 2>&1Build Log
========================================
RunAll
========================================
Builder version: 4.68.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/SwiftedMind/SwiftAgent.git
Reference: 0.8.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/SwiftedMind/SwiftAgent
* tag 0.8.0 -> FETCH_HEAD
HEAD is now at 48bfda9 Update CHANGELOG
Cloned https://github.com/SwiftedMind/SwiftAgent.git
Revision (git rev-parse @):
48bfda9219a5014c117aff3294e7987e17218a9d
SUCCESS checkout https://github.com/SwiftedMind/SwiftAgent.git at 0.8.0
========================================
Build
========================================
Selected platform: wasm
Swift version: 6.2
Building package at path: $PWD
https://github.com/SwiftedMind/SwiftAgent.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-wasip1 2>&1
wasm-6.2-latest: Pulling from finestructure/spi-images
Digest: sha256:e45aebddbd3fb4404abe9276e0d450e6fc2ef4836b534e79623bcca11b80d266
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:wasm-6.2-latest
warning: multiple Swift SDKs match target triple `wasm32-unknown-wasip1` and host triple x86_64-unknown-linux-gnu, selected one at /root/.swiftpm/swift-sdks/swift-6.2-RELEASE_wasm.artifactbundle/swift-6.2-RELEASE_wasm/wasm32-unknown-wasip1/embedded-swift-sdk.json
Fetching https://github.com/MacPaw/OpenAI.git
[1/7798] Fetching openai
Fetched https://github.com/MacPaw/OpenAI.git from cache (0.92s)
Fetching https://github.com/swiftlang/swift-syntax.git
Fetching https://github.com/pointfreeco/swift-macro-testing
Fetching https://github.com/apple/swift-openapi-runtime
Fetching https://github.com/jamesrochabrun/SwiftAnthropic.git
Fetching https://github.com/mattt/EventSource
[1/5835] Fetching swift-openapi-runtime
[60/7124] Fetching swift-openapi-runtime, swiftanthropic
[1384/7323] Fetching swift-openapi-runtime, swiftanthropic, eventsource
[1626/8255] Fetching swift-openapi-runtime, swiftanthropic, eventsource, swift-macro-testing
Fetched https://github.com/mattt/EventSource from cache (0.28s)
[1/73657] Fetching swift-syntax
Fetched https://github.com/jamesrochabrun/SwiftAnthropic.git from cache (5.94s)
Fetched https://github.com/pointfreeco/swift-macro-testing from cache (5.94s)
Fetched https://github.com/apple/swift-openapi-runtime from cache (5.95s)
Fetched https://github.com/swiftlang/swift-syntax.git from cache (6.01s)
Computing version for https://github.com/pointfreeco/swift-macro-testing
Computed https://github.com/pointfreeco/swift-macro-testing at 0.6.4 (6.35s)
Fetching https://github.com/pointfreeco/swift-snapshot-testing
[1/15625] Fetching swift-snapshot-testing
Fetched https://github.com/pointfreeco/swift-snapshot-testing from cache (3.18s)
Computing version for https://github.com/jamesrochabrun/SwiftAnthropic.git
Computed https://github.com/jamesrochabrun/SwiftAnthropic.git at 2.2.0 (3.52s)
Fetching https://github.com/swift-server/async-http-client.git
[1/14575] Fetching async-http-client
Fetched https://github.com/swift-server/async-http-client.git from cache (0.86s)
Computing version for https://github.com/mattt/EventSource
Computed https://github.com/mattt/EventSource at 1.3.0 (1.20s)
Computing version for https://github.com/apple/swift-openapi-runtime
Computed https://github.com/apple/swift-openapi-runtime at 1.9.0 (0.37s)
Fetching https://github.com/apple/swift-http-types
[1/951] Fetching swift-http-types
Fetched https://github.com/apple/swift-http-types from cache (0.21s)
Computing version for https://github.com/swiftlang/swift-syntax.git
Computed https://github.com/swiftlang/swift-syntax.git at 602.0.0 (2.68s)
Computing version for https://github.com/swift-server/async-http-client.git
Computed https://github.com/swift-server/async-http-client.git at 1.30.3 (0.49s)
Fetching https://github.com/apple/swift-nio.git
Fetching https://github.com/apple/swift-nio-ssl.git
Fetching https://github.com/apple/swift-log.git
Fetching https://github.com/apple/swift-distributed-tracing.git
Fetching https://github.com/apple/swift-nio-extras.git
Fetching https://github.com/apple/swift-algorithms.git
[1/6052] Fetching swift-algorithms
[123/12472] Fetching swift-algorithms, swift-nio-extras
[1993/18257] Fetching swift-algorithms, swift-nio-extras, swift-log
[7859/23896] Fetching swift-algorithms, swift-nio-extras, swift-log, swift-distributed-tracing
[20662/39192] Fetching swift-algorithms, swift-nio-extras, swift-log, swift-distributed-tracing, swift-nio-ssl
[24340/120491] Fetching swift-algorithms, swift-nio-extras, swift-log, swift-distributed-tracing, swift-nio-ssl, swift-nio
Fetched https://github.com/apple/swift-nio-extras.git from cache (0.70s)
Fetched https://github.com/apple/swift-algorithms.git from cache (0.70s)
Fetching https://github.com/apple/swift-nio-http2.git
Fetching https://github.com/apple/swift-nio-transport-services.git
[14379/108019] Fetching swift-log, swift-distributed-tracing, swift-nio-ssl, swift-nio
Fetched https://github.com/apple/swift-log.git from cache (0.84s)
Fetching https://github.com/apple/swift-atomics.git
[10832/102234] Fetching swift-distributed-tracing, swift-nio-ssl, swift-nio
Fetched https://github.com/apple/swift-distributed-tracing.git from cache (0.88s)
[6006/96595] Fetching swift-nio-ssl, swift-nio
[8349/99404] Fetching swift-nio-ssl, swift-nio, swift-nio-transport-services
[13396/111128] Fetching swift-nio-ssl, swift-nio, swift-nio-transport-services, swift-nio-http2
[13703/112948] Fetching swift-nio-ssl, swift-nio, swift-nio-transport-services, swift-nio-http2, swift-atomics
Fetched https://github.com/apple/swift-atomics.git from cache (0.64s)
[37079/111128] Fetching swift-nio-ssl, swift-nio, swift-nio-transport-services, swift-nio-http2
Fetched https://github.com/apple/swift-nio-transport-services.git from cache (1.88s)
Fetched https://github.com/apple/swift-nio-http2.git from cache (1.90s)
[51881/96595] Fetching swift-nio-ssl, swift-nio
Fetched https://github.com/apple/swift-nio-ssl.git from cache (7.35s)
Fetched https://github.com/apple/swift-nio.git from cache (7.44s)
Computing version for https://github.com/apple/swift-distributed-tracing.git
Computed https://github.com/apple/swift-distributed-tracing.git at 1.3.1 (7.77s)
Fetching https://github.com/apple/swift-service-context.git
[1/1162] Fetching swift-service-context
Fetched https://github.com/apple/swift-service-context.git from cache (0.23s)
Computing version for https://github.com/apple/swift-log.git
Computed https://github.com/apple/swift-log.git at 1.9.0 (0.59s)
Computing version for https://github.com/apple/swift-service-context.git
Computed https://github.com/apple/swift-service-context.git at 1.2.1 (0.34s)
Computing version for https://github.com/apple/swift-algorithms.git
Computed https://github.com/apple/swift-algorithms.git at 1.2.1 (0.38s)
Fetching https://github.com/apple/swift-numerics.git
[1/6390] Fetching swift-numerics
Fetched https://github.com/apple/swift-numerics.git from cache (0.39s)
Computing version for https://github.com/apple/swift-nio-http2.git
Computed https://github.com/apple/swift-nio-http2.git at 1.39.0 (0.76s)
Computing version for https://github.com/apple/swift-atomics.git
Computed https://github.com/apple/swift-atomics.git at 1.3.0 (0.33s)
Computing version for https://github.com/apple/swift-nio-transport-services.git
Computed https://github.com/apple/swift-nio-transport-services.git at 1.26.0 (0.37s)
Computing version for https://github.com/apple/swift-numerics.git
Computed https://github.com/apple/swift-numerics.git at 1.1.1 (0.34s)
Computing version for https://github.com/apple/swift-nio-ssl.git
Computed https://github.com/apple/swift-nio-ssl.git at 2.36.0 (0.44s)
Computing version for https://github.com/apple/swift-nio-extras.git
Computed https://github.com/apple/swift-nio-extras.git at 1.31.3 (0.54s)
Fetching https://github.com/apple/swift-asn1.git
Fetching https://github.com/apple/swift-http-structured-headers.git
Fetching https://github.com/apple/swift-async-algorithms.git
Fetching https://github.com/apple/swift-certificates.git
Fetching https://github.com/swift-server/swift-service-lifecycle.git
[1/1692] Fetching swift-asn1
[475/2896] Fetching swift-asn1, swift-http-structured-headers
[2576/5464] Fetching swift-asn1, swift-http-structured-headers, swift-service-lifecycle
[4567/11362] Fetching swift-asn1, swift-http-structured-headers, swift-service-lifecycle, swift-async-algorithms
[5801/18444] Fetching swift-asn1, swift-http-structured-headers, swift-service-lifecycle, swift-async-algorithms, swift-certificates
Fetched https://github.com/apple/swift-http-structured-headers.git from cache (0.26s)
[4767/17240] Fetching swift-asn1, swift-service-lifecycle, swift-async-algorithms, swift-certificates
Fetched https://github.com/swift-server/swift-service-lifecycle.git from cache (0.34s)
[10188/14672] Fetching swift-asn1, swift-async-algorithms, swift-certificates
Fetched https://github.com/apple/swift-asn1.git from cache (0.52s)
Fetched https://github.com/apple/swift-async-algorithms.git from cache (0.52s)
Fetched https://github.com/apple/swift-certificates.git from cache (0.52s)
Computing version for https://github.com/swift-server/swift-service-lifecycle.git
Computed https://github.com/swift-server/swift-service-lifecycle.git at 2.9.1 (0.87s)
Computing version for https://github.com/apple/swift-async-algorithms.git
Computed https://github.com/apple/swift-async-algorithms.git at 1.1.1 (0.50s)
Fetching https://github.com/apple/swift-collections.git
[1/18623] Fetching swift-collections
Fetched https://github.com/apple/swift-collections.git from cache (1.29s)
Computing version for https://github.com/apple/swift-http-types
Computed https://github.com/apple/swift-http-types at 1.5.1 (1.63s)
Computing version for https://github.com/apple/swift-asn1.git
Computed https://github.com/apple/swift-asn1.git at 1.5.1 (2.09s)
Computing version for https://github.com/apple/swift-http-structured-headers.git
Computed https://github.com/apple/swift-http-structured-headers.git at 1.6.0 (0.33s)
Computing version for https://github.com/apple/swift-collections.git
Computed https://github.com/apple/swift-collections.git at 1.3.0 (0.52s)
Computing version for https://github.com/apple/swift-certificates.git
Computed https://github.com/apple/swift-certificates.git at 1.17.1 (0.46s)
Fetching https://github.com/apple/swift-crypto.git
[1/17460] Fetching swift-crypto
Fetched https://github.com/apple/swift-crypto.git from cache (1.90s)
Computing version for https://github.com/pointfreeco/swift-snapshot-testing
Computed https://github.com/pointfreeco/swift-snapshot-testing at 1.18.7 (2.24s)
Fetching https://github.com/pointfreeco/swift-custom-dump
[1/4823] Fetching swift-custom-dump
Fetched https://github.com/pointfreeco/swift-custom-dump from cache (0.42s)
Computing version for https://github.com/pointfreeco/swift-custom-dump
Computed https://github.com/pointfreeco/swift-custom-dump at 1.3.4 (0.75s)
Fetching https://github.com/pointfreeco/xctest-dynamic-overlay
[1/5607] Fetching xctest-dynamic-overlay
Fetched https://github.com/pointfreeco/xctest-dynamic-overlay from cache (0.76s)
Computing version for https://github.com/apple/swift-crypto.git
Computed https://github.com/apple/swift-crypto.git at 4.2.0 (1.80s)
Computing version for https://github.com/apple/swift-nio.git
Computed https://github.com/apple/swift-nio.git at 2.92.2 (0.83s)
Fetching https://github.com/apple/swift-system.git
[1/5415] Fetching swift-system
Fetched https://github.com/apple/swift-system.git from cache (0.47s)
Computing version for https://github.com/apple/swift-system.git
Computed https://github.com/apple/swift-system.git at 1.6.4 (0.88s)
Computing version for https://github.com/pointfreeco/xctest-dynamic-overlay
Computed https://github.com/pointfreeco/xctest-dynamic-overlay at 1.8.1 (0.36s)
Creating working copy for https://github.com/apple/swift-distributed-tracing.git
Working copy of https://github.com/apple/swift-distributed-tracing.git resolved at 1.3.1
Creating working copy for https://github.com/apple/swift-nio-transport-services.git
Working copy of https://github.com/apple/swift-nio-transport-services.git resolved at 1.26.0
Creating working copy for https://github.com/pointfreeco/swift-snapshot-testing
Working copy of https://github.com/pointfreeco/swift-snapshot-testing resolved at 1.18.7
Creating working copy for https://github.com/apple/swift-service-context.git
Working copy of https://github.com/apple/swift-service-context.git resolved at 1.2.1
Creating working copy for https://github.com/apple/swift-nio-ssl.git
Working copy of https://github.com/apple/swift-nio-ssl.git resolved at 2.36.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.3.0
Creating working copy for https://github.com/pointfreeco/xctest-dynamic-overlay
Working copy of https://github.com/pointfreeco/xctest-dynamic-overlay resolved at 1.8.1
Creating working copy for https://github.com/pointfreeco/swift-macro-testing
Working copy of https://github.com/pointfreeco/swift-macro-testing resolved at 0.6.4
Creating working copy for https://github.com/apple/swift-http-structured-headers.git
Working copy of https://github.com/apple/swift-http-structured-headers.git resolved at 1.6.0
Creating working copy for https://github.com/apple/swift-atomics.git
Working copy of https://github.com/apple/swift-atomics.git resolved at 1.3.0
Creating working copy for https://github.com/swift-server/async-http-client.git
Working copy of https://github.com/swift-server/async-http-client.git resolved at 1.30.3
Creating working copy for https://github.com/swift-server/swift-service-lifecycle.git
Working copy of https://github.com/swift-server/swift-service-lifecycle.git resolved at 2.9.1
Creating working copy for https://github.com/apple/swift-algorithms.git
Working copy of https://github.com/apple/swift-algorithms.git resolved at 1.2.1
Creating working copy for https://github.com/apple/swift-crypto.git
Working copy of https://github.com/apple/swift-crypto.git resolved at 4.2.0
Creating working copy for https://github.com/swiftlang/swift-syntax.git
Working copy of https://github.com/swiftlang/swift-syntax.git resolved at 602.0.0
Creating working copy for https://github.com/apple/swift-log.git
Working copy of https://github.com/apple/swift-log.git resolved at 1.9.0
Creating working copy for https://github.com/apple/swift-nio.git
Working copy of https://github.com/apple/swift-nio.git resolved at 2.92.2
Creating working copy for https://github.com/pointfreeco/swift-custom-dump
Working copy of https://github.com/pointfreeco/swift-custom-dump resolved at 1.3.4
Creating working copy for https://github.com/apple/swift-system.git
Working copy of https://github.com/apple/swift-system.git resolved at 1.6.4
Creating working copy for https://github.com/apple/swift-http-types
Working copy of https://github.com/apple/swift-http-types resolved at 1.5.1
Creating working copy for https://github.com/MacPaw/OpenAI.git
Working copy of https://github.com/MacPaw/OpenAI.git resolved at main (4ed3ea9)
Creating working copy for https://github.com/apple/swift-certificates.git
Working copy of https://github.com/apple/swift-certificates.git resolved at 1.17.1
Creating working copy for https://github.com/jamesrochabrun/SwiftAnthropic.git
Working copy of https://github.com/jamesrochabrun/SwiftAnthropic.git resolved at 2.2.0
Creating working copy for https://github.com/apple/swift-async-algorithms.git
Working copy of https://github.com/apple/swift-async-algorithms.git resolved at 1.1.1
Creating working copy for https://github.com/apple/swift-nio-http2.git
Working copy of https://github.com/apple/swift-nio-http2.git resolved at 1.39.0
Creating working copy for https://github.com/apple/swift-numerics.git
Working copy of https://github.com/apple/swift-numerics.git resolved at 1.1.1
Creating working copy for https://github.com/mattt/EventSource
Working copy of https://github.com/mattt/EventSource resolved at 1.3.0
Creating working copy for https://github.com/apple/swift-openapi-runtime
Working copy of https://github.com/apple/swift-openapi-runtime resolved at 1.9.0
Creating working copy for https://github.com/apple/swift-asn1.git
Working copy of https://github.com/apple/swift-asn1.git resolved at 1.5.1
Creating working copy for https://github.com/apple/swift-nio-extras.git
Working copy of https://github.com/apple/swift-nio-extras.git resolved at 1.31.3
Downloading package prebuilt https://download.swift.org/prebuilts/swift-syntax/602.0.0/swift-6.2-RELEASE-MacroSupport-ubuntu_jammy_x86_64.tar.gz
Downloaded https://download.swift.org/prebuilts/swift-syntax/602.0.0/swift-6.2-RELEASE-MacroSupport-ubuntu_jammy_x86_64.tar.gz (0.63s)
Building for debugging...
[0/467] Write sources
[34/467] Compiling CNIOWindows shim.c
[35/467] Compiling _AtomicsShims.c
[35/467] Compiling CNIOOpenBSD shim.c
[37/467] Compiling CNIOPosix event_loop_id.c
[37/467] Compiling _NumericsShims _NumericsShims.c
[39/467] Compiling CNIOWindows WSAStartup.c
[39/467] Compiling CNIOWASI CNIOWASI.c
[41/467] Compiling CNIOLinux liburing_shims.c
[42/467] Write swift-version-24593BA9C3E375BF.txt
[43/467] Compiling CNIOExtrasZlib empty.c
[44/467] Compiling CNIODarwin shim.c
[45/467] Compiling CNIOLLHTTP c_nio_http.c
[46/467] Compiling CNIOLLHTTP c_nio_api.c
[47/467] Compiling CNIOLinux shim.c
[48/467] Compiling fiat_p256_adx_sqr.S
[50/497] Emitting module ServiceContextModule
[50/497] Compiling CNIOLLHTTP c_nio_llhttp.c
[52/502] Emitting module _NIOBase64
[52/502] Compiling CNIOBoringSSLShims shims.c
[54/518] Emitting module Logging
error: emit-module command failed with exit code 1 (use -v to see invocation)
[55/518] Emitting module SwiftAnthropic
/host/spi-builder-workspace/.build/checkouts/SwiftAnthropic/Sources/Anthropic/AIProxy/AIProxyCertificatePinning.swift:9:8: error: no such module 'Foundation'
7 |
8 | #if !os(Linux)
9 | import Foundation
| `- error: no such module 'Foundation'
10 | import OSLog
11 |
[56/518] Compiling SwiftAnthropic AIProxyCertificatePinning.swift
/host/spi-builder-workspace/.build/checkouts/SwiftAnthropic/Sources/Anthropic/AIProxy/AIProxyCertificatePinning.swift:9:8: error: no such module 'Foundation'
7 |
8 | #if !os(Linux)
9 | import Foundation
| `- error: no such module 'Foundation'
10 | import OSLog
11 |
[57/518] Emitting module _NIODataStructures
BUILD FAILURE 6.2 wasm