Build Information
Failed to build mcp-swift-sdk, reference 0.10.1 (f1b50e
), with Swift 6.2 (beta) for Wasm on 14 Aug 2025 17:45:36 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4606859-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.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/modelcontextprotocol/swift-sdk.git
Reference: 0.10.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/modelcontextprotocol/swift-sdk
* tag 0.10.1 -> FETCH_HEAD
HEAD is now at f1b50e6 Update README to document support for Alpine Linux (#153)
Cloned https://github.com/modelcontextprotocol/swift-sdk.git
Revision (git rev-parse @):
f1b50e6de22b5206068bb09851d585f560d893c4
SUCCESS checkout https://github.com/modelcontextprotocol/swift-sdk.git at 0.10.1
========================================
Build
========================================
Selected platform: wasm
Swift version: 6.2
Building package at path: $PWD
https://github.com/modelcontextprotocol/swift-sdk.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-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/mattt/eventsource.git
Fetching https://github.com/apple/swift-log.git
[1/110] Fetching eventsource
[38/3996] Fetching eventsource, swift-log
Fetching https://github.com/apple/swift-system.git
Fetched https://github.com/mattt/eventsource.git from cache (0.38s)
[1866/3886] Fetching swift-log
Fetched https://github.com/apple/swift-log.git from cache (0.66s)
[1/4878] Fetching swift-system
Fetched https://github.com/apple/swift-system.git from cache (0.64s)
Computing version for https://github.com/mattt/eventsource.git
Computed https://github.com/mattt/eventsource.git at 1.1.1 (1.98s)
Computing version for https://github.com/apple/swift-log.git
Computed https://github.com/apple/swift-log.git at 1.6.4 (0.81s)
Computing version for https://github.com/apple/swift-system.git
Computed https://github.com/apple/swift-system.git at 1.6.2 (1.04s)
Creating working copy for https://github.com/mattt/eventsource.git
Working copy of https://github.com/mattt/eventsource.git resolved at 1.1.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/apple/swift-system.git
Working copy of https://github.com/apple/swift-system.git resolved at 1.6.2
Building for debugging...
[0/5] Write sources
[3/5] Compiling CSystem shims.c
[4/5] Write swift-version-24593BA9C3E375BF.txt
[6/41] Compiling SystemPackage FilePathWindows.swift
[7/41] Compiling SystemPackage FilePermissions.swift
[8/41] Compiling SystemPackage IOCompletion.swift
[9/41] Compiling SystemPackage IORequest.swift
[10/45] Compiling SystemPackage FilePathSyntax.swift
[11/45] Compiling SystemPackage FilePathTemp.swift
[12/45] Compiling SystemPackage FilePathTempPosix.swift
[13/45] Compiling SystemPackage FilePathTempWindows.swift
[14/45] Compiling Logging Locks.swift
[15/45] Emitting module Logging
[16/45] Compiling SystemPackage Errno.swift
[17/45] Compiling SystemPackage ErrnoWindows.swift
[18/45] Compiling SystemPackage FileDescriptor.swift
[19/45] Compiling SystemPackage FileHelpers.swift
[20/45] Compiling SystemPackage FileOperations.swift
[21/45] Compiling SystemPackage FilePath.swift
[22/45] Compiling SystemPackage FilePathComponentView.swift
[23/45] Compiling SystemPackage FilePathComponents.swift
[24/45] Compiling SystemPackage FilePathParsing.swift
[25/45] Compiling SystemPackage FilePathString.swift
[26/45] Emitting module SystemPackage
[27/45] Compiling SystemPackage IORing.swift
[28/45] Compiling SystemPackage RawIORequest.swift
[29/45] Compiling SystemPackage Backcompat.swift
[30/45] Compiling SystemPackage CInterop.swift
[31/45] Compiling Logging MetadataProvider.swift
[32/45] Compiling SystemPackage Syscalls.swift
[33/45] Compiling SystemPackage WindowsSyscallAdapters.swift
[34/45] Compiling SystemPackage MachPort.swift
[35/45] Compiling SystemPackage PlatformString.swift
[36/45] Compiling SystemPackage Constants.swift
[37/45] Compiling SystemPackage Exports.swift
[38/45] Compiling SystemPackage Mocking.swift
[39/45] Compiling SystemPackage RawBuffer.swift
[40/45] Compiling Logging LogHandler.swift
[41/45] Compiling Logging Logging.swift
[43/46] Compiling SystemPackage SystemString.swift
[44/46] Compiling SystemPackage Util+StringArray.swift
[45/46] Compiling SystemPackage Util.swift
[46/46] Compiling SystemPackage UtilConsumers.swift
[48/66] Compiling MCP Messages.swift
/host/spi-builder-workspace/Sources/MCP/Base/Error.swift:1:8: error: no such module 'Foundation'
1 | import Foundation
| `- error: no such module 'Foundation'
2 |
3 | #if canImport(System)
[49/66] Compiling MCP Transport.swift
/host/spi-builder-workspace/Sources/MCP/Base/Error.swift:1:8: error: no such module 'Foundation'
1 | import Foundation
| `- error: no such module 'Foundation'
2 |
3 | #if canImport(System)
[50/66] Compiling MCP HTTPClientTransport.swift
/host/spi-builder-workspace/Sources/MCP/Base/Error.swift:1:8: error: no such module 'Foundation'
1 | import Foundation
| `- error: no such module 'Foundation'
2 |
3 | #if canImport(System)
error: emit-module command failed with exit code 1 (use -v to see invocation)
[51/68] Emitting module MCP
/host/spi-builder-workspace/Sources/MCP/Base/Error.swift:1:8: error: no such module 'Foundation'
1 | import Foundation
| `- error: no such module 'Foundation'
2 |
3 | #if canImport(System)
[52/68] Compiling MCP Server.swift
/host/spi-builder-workspace/Sources/MCP/Base/Error.swift:1:8: error: no such module 'Foundation'
1 | import Foundation
| `- error: no such module 'Foundation'
2 |
3 | #if canImport(System)
[53/68] Compiling MCP Tools.swift
/host/spi-builder-workspace/Sources/MCP/Base/Error.swift:1:8: error: no such module 'Foundation'
1 | import Foundation
| `- error: no such module 'Foundation'
2 |
3 | #if canImport(System)
[54/68] Compiling MCP Sampling.swift
/host/spi-builder-workspace/Sources/MCP/Base/Error.swift:1:8: error: no such module 'Foundation'
1 | import Foundation
| `- error: no such module 'Foundation'
2 |
3 | #if canImport(System)
[55/68] Compiling MCP Data+Extensions.swift
/host/spi-builder-workspace/Sources/MCP/Base/Error.swift:1:8: error: no such module 'Foundation'
1 | import Foundation
| `- error: no such module 'Foundation'
2 |
3 | #if canImport(System)
[56/68] Compiling MCP Prompts.swift
/host/spi-builder-workspace/Sources/MCP/Base/Error.swift:1:8: error: no such module 'Foundation'
1 | import Foundation
| `- error: no such module 'Foundation'
2 |
3 | #if canImport(System)
[57/68] Compiling MCP Resources.swift
/host/spi-builder-workspace/Sources/MCP/Base/Error.swift:1:8: error: no such module 'Foundation'
1 | import Foundation
| `- error: no such module 'Foundation'
2 |
3 | #if canImport(System)
[58/68] Compiling MCP Versioning.swift
/host/spi-builder-workspace/Sources/MCP/Base/Error.swift:1:8: error: no such module 'Foundation'
1 | import Foundation
| `- error: no such module 'Foundation'
2 |
3 | #if canImport(System)
[59/68] Compiling MCP Client.swift
/host/spi-builder-workspace/Sources/MCP/Base/Error.swift:1:8: error: no such module 'Foundation'
1 | import Foundation
| `- error: no such module 'Foundation'
2 |
3 | #if canImport(System)
[60/68] Compiling MCP Error.swift
/host/spi-builder-workspace/Sources/MCP/Base/Error.swift:1:8: error: no such module 'Foundation'
1 | import Foundation
| `- error: no such module 'Foundation'
2 |
3 | #if canImport(System)
[61/68] Compiling MCP ID.swift
/host/spi-builder-workspace/Sources/MCP/Base/Error.swift:1:8: error: no such module 'Foundation'
1 | import Foundation
| `- error: no such module 'Foundation'
2 |
3 | #if canImport(System)
[62/68] Compiling MCP Lifecycle.swift
/host/spi-builder-workspace/Sources/MCP/Base/Error.swift:1:8: error: no such module 'Foundation'
1 | import Foundation
| `- error: no such module 'Foundation'
2 |
3 | #if canImport(System)
[63/68] Compiling MCP InMemoryTransport.swift
/host/spi-builder-workspace/Sources/MCP/Base/Error.swift:1:8: error: no such module 'Foundation'
1 | import Foundation
| `- error: no such module 'Foundation'
2 |
3 | #if canImport(System)
[64/68] Compiling MCP NetworkTransport.swift
/host/spi-builder-workspace/Sources/MCP/Base/Error.swift:1:8: error: no such module 'Foundation'
1 | import Foundation
| `- error: no such module 'Foundation'
2 |
3 | #if canImport(System)
[65/68] Compiling MCP StdioTransport.swift
/host/spi-builder-workspace/Sources/MCP/Base/Error.swift:1:8: error: no such module 'Foundation'
1 | import Foundation
| `- error: no such module 'Foundation'
2 |
3 | #if canImport(System)
[66/68] Compiling MCP UnitInterval.swift
/host/spi-builder-workspace/Sources/MCP/Base/Error.swift:1:8: error: no such module 'Foundation'
1 | import Foundation
| `- error: no such module 'Foundation'
2 |
3 | #if canImport(System)
[67/68] Compiling MCP Ping.swift
/host/spi-builder-workspace/Sources/MCP/Base/Error.swift:1:8: error: no such module 'Foundation'
1 | import Foundation
| `- error: no such module 'Foundation'
2 |
3 | #if canImport(System)
[68/68] Compiling MCP Value.swift
/host/spi-builder-workspace/Sources/MCP/Base/Error.swift:1:8: error: no such module 'Foundation'
1 | import Foundation
| `- error: no such module 'Foundation'
2 |
3 | #if canImport(System)
BUILD FAILURE 6.2 wasm