Build Information
Failed to build SwiftCPython, reference main (950944), with Swift 6.2 for Wasm on 10 Nov 2026 01:04:29 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-58779149-0":/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:wasm-6.2-latest swift build --swift-sdk swift-6.2-RELEASE_wasm 2>&1Build Log
========================================
RunAll
========================================
Builder version: 5.1.4
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/libswiftpy/cpython.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/libswiftpy/cpython
* branch main -> FETCH_HEAD
* [new branch] main -> origin/main
HEAD is now at 950944f Add a minimal Swift package that embeds CPython
Cloned https://github.com/libswiftpy/cpython.git
Revision (git rev-parse @):
950944f0f3aaeaa1cc9dee6b583d83d6567e6514
SUCCESS checkout https://github.com/libswiftpy/cpython.git at main
========================================
Build
========================================
Selected platform: wasm
Swift version: 6.2
Building package at path: $PWD
https://github.com/libswiftpy/cpython.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-58779149-0":/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:wasm-6.2-latest swift build --swift-sdk swift-6.2-RELEASE_wasm 2>&1
wasm-6.2-latest: Pulling from saguaro1/spi-images
Digest: sha256:ba6864ed1873dc28d63134b1bd648b09c5ec8270a0ae95720b7f96d84a66a058
Status: Image is up to date for registry.gitlab.com/saguaro1/spi-images:wasm-6.2-latest
Building for debugging...
[0/8] Write sources
[2/8] Copying PythonHome
[3/8] Write swift-version-24593BA9C3E375BF.txt
error: emit-module command failed with exit code 1 (use -v to see invocation)
[5/12] Emitting module Python
<module-includes>:1:10: note: in file included from <module-includes>:1:
1 | #include "shim.h"
| `- note: in file included from <module-includes>:1:
2 |
/host/spi-builder-workspace/Swift/Sources/CPython/shim.h:6:10: error: 'TargetConditionals.h' file not found
4 | // per build, and TargetConditionals picks the right one — including telling
5 | // an iOS simulator destination apart from a device.
6 | #include <TargetConditionals.h>
| `- error: 'TargetConditionals.h' file not found
7 |
8 | #if TARGET_OS_SIMULATOR
/host/spi-builder-workspace/Swift/Sources/Python/Python.swift:1:8: error: could not build C module 'CPython'
1 | import CPython
| `- error: could not build C module 'CPython'
2 |
3 | import Foundation
[6/12] Compiling Python Python.swift
<module-includes>:1:10: note: in file included from <module-includes>:1:
1 | #include "shim.h"
| `- note: in file included from <module-includes>:1:
2 |
/host/spi-builder-workspace/Swift/Sources/CPython/shim.h:6:10: error: 'TargetConditionals.h' file not found
4 | // per build, and TargetConditionals picks the right one — including telling
5 | // an iOS simulator destination apart from a device.
6 | #include <TargetConditionals.h>
| `- error: 'TargetConditionals.h' file not found
7 |
8 | #if TARGET_OS_SIMULATOR
/host/spi-builder-workspace/Swift/Sources/Python/Python.swift:1:8: error: could not build C module 'CPython'
1 | import CPython
| `- error: could not build C module 'CPython'
2 |
3 | import Foundation
[7/12] Compiling Python resource_bundle_accessor.swift
<module-includes>:1:10: note: in file included from <module-includes>:1:
1 | #include "shim.h"
| `- note: in file included from <module-includes>:1:
2 |
/host/spi-builder-workspace/Swift/Sources/CPython/shim.h:6:10: error: 'TargetConditionals.h' file not found
4 | // per build, and TargetConditionals picks the right one — including telling
5 | // an iOS simulator destination apart from a device.
6 | #include <TargetConditionals.h>
| `- error: 'TargetConditionals.h' file not found
7 |
8 | #if TARGET_OS_SIMULATOR
/host/spi-builder-workspace/Swift/Sources/Python/Python.swift:1:8: error: could not build C module 'CPython'
1 | import CPython
| `- error: could not build C module 'CPython'
2 |
3 | import Foundation
[8/12] Compiling Python PythonOutput.swift
<module-includes>:1:10: note: in file included from <module-includes>:1:
1 | #include "shim.h"
| `- note: in file included from <module-includes>:1:
2 |
/host/spi-builder-workspace/Swift/Sources/CPython/shim.h:6:10: error: 'TargetConditionals.h' file not found
4 | // per build, and TargetConditionals picks the right one — including telling
5 | // an iOS simulator destination apart from a device.
6 | #include <TargetConditionals.h>
| `- error: 'TargetConditionals.h' file not found
7 |
8 | #if TARGET_OS_SIMULATOR
/host/spi-builder-workspace/Swift/Sources/Python/Python.swift:1:8: error: could not build C module 'CPython'
1 | import CPython
| `- error: could not build C module 'CPython'
2 |
3 | import Foundation
BUILD FAILURE 6.2 wasm