The Swift Package Index logo.Swift Package Index

Build Information

Failed to build SwiftCPython, reference main (950944), with Swift 6.1 for Wasm on 10 Nov 2026 00:49:17 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-54344844-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.1-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1

Build 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.1
Building package at path:  $PWD
https://github.com/libswiftpy/cpython.git
https://github.com/libswiftpy/cpython.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-54344844-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.1-latest swift build --swift-sdk wasm32-unknown-wasi -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures 2>&1
wasm-6.1-latest: Pulling from saguaro1/spi-images
Digest: sha256:c39884094bf9874b7a6bb32559a257cc0b80a9b15eb9e58adaa15f5bda5e4fb5
Status: Image is up to date for registry.gitlab.com/saguaro1/spi-images:wasm-6.1-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
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
<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 PythonOutput.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
<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 Python.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
<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 resource_bundle_accessor.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
<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
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-54344844-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.1-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1
wasm-6.1-latest: Pulling from saguaro1/spi-images
Digest: sha256:c39884094bf9874b7a6bb32559a257cc0b80a9b15eb9e58adaa15f5bda5e4fb5
Status: Image is up to date for registry.gitlab.com/saguaro1/spi-images:wasm-6.1-latest
[0/1] Planning build
Building for debugging...
[0/5] Write swift-version-24593BA9C3E375BF.txt
[2/9] 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
error: emit-module command failed with exit code 1 (use -v to see invocation)
[3/9] 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
[4/9] 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
[5/9] 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
BUILD FAILURE 6.1 wasm