The Swift Package Index logo.Swift Package Index

Build Information

Failed to build SwiftTerm, reference main (56d5cb), with Swift 6.4 for Wasm on 22 Nov 2026 18:42:14 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-54344849-1":/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.4-latest swift build --swift-sdk swift-6.4.0-RELEASE_wasm 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 5.1.4
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/migueldeicaza/SwiftTerm.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/migueldeicaza/SwiftTerm
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at 56d5cb3 Let a resize applied at once replace the counts a font change queued for the next frame (#858)
Cloned https://github.com/migueldeicaza/SwiftTerm.git
Revision (git rev-parse @):
56d5cb3961306ecebae63ad208c6bb1ca1339bc2
SUCCESS checkout https://github.com/migueldeicaza/SwiftTerm.git at main
========================================
Build
========================================
Selected platform:         wasm
Swift version:             6.4
Building package at path:  $PWD
https://github.com/migueldeicaza/SwiftTerm.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-54344849-1":/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.4-latest swift build --swift-sdk swift-6.4.0-RELEASE_wasm 2>&1
wasm-6.4-latest: Pulling from saguaro1/spi-images
Digest: sha256:d7b72fae8894fba3c2632fd7068ea480e9b111160d8dd7b4d9df5fbcfe7a40ee
Status: Image is up to date for registry.gitlab.com/saguaro1/spi-images:wasm-6.4-latest
Fetching https://github.com/apple/swift-argument-parser
Fetching https://github.com/tayloraswift/swift-png
Fetching https://github.com/apple/swift-docc-plugin
[1/7688] Fetching swift-png
[309/10069] Fetching swift-png, swift-docc-plugin
[4535/29511] Fetching swift-png, swift-docc-plugin, swift-argument-parser
Fetched https://github.com/apple/swift-docc-plugin (2.76s)
Fetched https://github.com/apple/swift-argument-parser (2.76s)
Fetched https://github.com/tayloraswift/swift-png (2.85s)
Computing version for https://github.com/tayloraswift/swift-png
Computed https://github.com/tayloraswift/swift-png at 4.5.2 (3.03s)
Fetching https://github.com/rarestype/h
[1/1399] Fetching h
Fetched https://github.com/rarestype/h (0.38s)
Computing version for https://github.com/rarestype/h
Computed https://github.com/rarestype/h at 1.0.1 (0.54s)
Computing version for https://github.com/apple/swift-docc-plugin
Computed https://github.com/apple/swift-docc-plugin at 1.5.0 (0.88s)
Fetching https://github.com/swiftlang/swift-docc-symbolkit
[1/3867] Fetching swift-docc-symbolkit
Fetched https://github.com/swiftlang/swift-docc-symbolkit (0.53s)
Computing version for https://github.com/swiftlang/swift-docc-symbolkit
Computed https://github.com/swiftlang/swift-docc-symbolkit at 1.0.0 (0.73s)
Computing version for https://github.com/apple/swift-argument-parser
Computed https://github.com/apple/swift-argument-parser at 1.8.2 (0.15s)
Creating working copy for https://github.com/tayloraswift/swift-png
Working copy of https://github.com/tayloraswift/swift-png resolved at 4.5.2
Creating working copy for https://github.com/apple/swift-argument-parser
Working copy of https://github.com/apple/swift-argument-parser resolved at 1.8.2
Creating working copy for https://github.com/rarestype/h
Working copy of https://github.com/rarestype/h resolved at 1.0.1
Creating working copy for https://github.com/apple/swift-docc-plugin
Working copy of https://github.com/apple/swift-docc-plugin resolved at 1.5.0
Creating working copy for https://github.com/swiftlang/swift-docc-symbolkit
Working copy of https://github.com/swiftlang/swift-docc-symbolkit resolved at 1.0.0
Building for debugging...
[Computing dependencies]
[Pre-planning 1 / 417]
[Planning deferred tasks]
[78 / 146] SwiftTerm_SwiftTermTests
[91 / 154] BaseDigits
[94 / 160] Base16
[97 / 160] Base16
[107 / 160] CRC
[112 / 164] CRC
[127 / 186] LZ77
[128 / 186] LZ77
[129 / 187] LZ77
[130 / 187] LZ77
[142 / 187] LZ77
[143 / 187] LZ77
[147 / 187] ArgumentParserToolInfo
[151 / 187] ArgumentParserToolInfo
[152 / 187] ArgumentParserToolInfo
[154 / 187] ArgumentParser-product
[156 / 188] SwiftTermBuildInfoGenerator-product
[162 / 189] PNG
[166 / 198] PNG
[168 / 199] PNG
[172 / 199] PNG
[177 / 199] PNG-product
[180 / 199] PNG
[180 / 199] ArgumentParser
[187 / 201] SwiftTerm
[197 / 211] SwiftTerm
[209 / 220] termcast-product
error: SwiftCompile normal wasm32 failed with a nonzero exit code. Command line:     cd /host

/host/spi-builder-workspace/Sources/Termcast/TermcastRecorder.swift:19:26: error: cannot find type 'LocalProcess' in scope
 17 | @MainActor
 18 | private final class TermcastInputHandler {
 19 |     private let process: LocalProcess
    |                          `- error: cannot find type 'LocalProcess' in scope
 20 |     private let startTime: TimeInterval
 21 |     private let fileHandle: FileHandle?
/host/spi-builder-workspace/Sources/Termcast/TermcastRecorder.swift:24:19: error: cannot find type 'LocalProcess' in scope
 22 |     private let encoder = JSONEncoder()
 23 |
 24 |     init(process: LocalProcess, startTime: TimeInterval, fileHandle: FileHandle?) {
    |                   `- error: cannot find type 'LocalProcess' in scope
 25 |         self.process = process
 26 |         self.startTime = startTime
/host/spi-builder-workspace/Sources/Termcast/TermcastRecorder.swift:53:26: error: cannot find type 'LocalProcess' in scope
 51 |     private var fileHandle: FileHandle?
 52 |     private var startTime: TimeInterval = 0
 53 |     private var process: LocalProcess?
    |                          `- error: cannot find type 'LocalProcess' in scope
 54 |     private var initialWindowSize: winsize = winsize()
 55 |     private let encoder = JSONEncoder()
/host/spi-builder-workspace/Sources/Termcast/TermcastRecorder.swift:54:36: error: cannot find type 'winsize' in scope
 52 |     private var startTime: TimeInterval = 0
 53 |     private var process: LocalProcess?
 54 |     private var initialWindowSize: winsize = winsize()
    |                                    `- error: cannot find type 'winsize' in scope
 55 |     private let encoder = JSONEncoder()
 56 |     private var timeoutTimer: DispatchSourceTimer?
/host/spi-builder-workspace/Sources/Termcast/TermcastRecorder.swift:56:31: error: cannot find type 'DispatchSourceTimer' in scope
 54 |     private var initialWindowSize: winsize = winsize()
 55 |     private let encoder = JSONEncoder()
 56 |     private var timeoutTimer: DispatchSourceTimer?
    |                               `- error: cannot find type 'DispatchSourceTimer' in scope
 57 |     private var originalTermios: termios = termios()
 58 |     private var originalStdoutTermios: termios = termios()
/host/spi-builder-workspace/Sources/Termcast/TermcastRecorder.swift:57:34: error: cannot find type 'termios' in scope
 55 |     private let encoder = JSONEncoder()
 56 |     private var timeoutTimer: DispatchSourceTimer?
 57 |     private var originalTermios: termios = termios()
    |                                  `- error: cannot find type 'termios' in scope
 58 |     private var originalStdoutTermios: termios = termios()
 59 |     private var terminalModeSet = false
/host/spi-builder-workspace/Sources/Termcast/TermcastRecorder.swift:58:40: error: cannot find type 'termios' in scope
 56 |     private var timeoutTimer: DispatchSourceTimer?
 57 |     private var originalTermios: termios = termios()
 58 |     private var originalStdoutTermios: termios = termios()
    |                                        `- error: cannot find type 'termios' in scope
 59 |     private var terminalModeSet = false
 60 |     private var stdoutModeSet = false
/host/spi-builder-workspace/Sources/Termcast/TermcastRecorder.swift:54:46: error: cannot find 'winsize' in scope
 52 |     private var startTime: TimeInterval = 0
 53 |     private var process: LocalProcess?
 54 |     private var initialWindowSize: winsize = winsize()
    |                                              `- error: cannot find 'winsize' in scope
 55 |     private let encoder = JSONEncoder()
 56 |     private var timeoutTimer: DispatchSourceTimer?
/host/spi-builder-workspace/Sources/Termcast/TermcastRecorder.swift:57:44: error: cannot find 'termios' in scope
 55 |     private let encoder = JSONEncoder()
 56 |     private var timeoutTimer: DispatchSourceTimer?
 57 |     private var originalTermios: termios = termios()
    |                                            `- error: cannot find 'termios' in scope
 58 |     private var originalStdoutTermios: termios = termios()
 59 |     private var terminalModeSet = false
/host/spi-builder-workspace/Sources/Termcast/TermcastRecorder.swift:58:50: error: cannot find 'termios' in scope
 56 |     private var timeoutTimer: DispatchSourceTimer?
 57 |     private var originalTermios: termios = termios()
 58 |     private var originalStdoutTermios: termios = termios()
    |                                                  `- error: cannot find 'termios' in scope
 59 |     private var terminalModeSet = false
 60 |     private var stdoutModeSet = false
/host/spi-builder-workspace/Sources/Termcast/TermcastRecorder.swift:381:29: error: cannot find type 'LocalProcessDelegate' in scope
379 | }
380 |
381 | extension TermcastRecorder: LocalProcessDelegate {
    |                             `- error: cannot find type 'LocalProcessDelegate' in scope
382 |     func processTerminated(_ source: LocalProcess, exitCode: Int32?) {
383 |         debugMessage("[DEBUG] Process terminated with exit code: \(exitCode ?? -1)\n")
/host/spi-builder-workspace/Sources/Termcast/TermcastRecorder.swift:382:38: error: cannot find type 'LocalProcess' in scope
380 |
381 | extension TermcastRecorder: LocalProcessDelegate {
382 |     func processTerminated(_ source: LocalProcess, exitCode: Int32?) {
    |                                      `- error: cannot find type 'LocalProcess' in scope
383 |         debugMessage("[DEBUG] Process terminated with exit code: \(exitCode ?? -1)\n")
384 |         restoreTerminalMode()
/host/spi-builder-workspace/Sources/Termcast/TermcastRecorder.swift:403:29: error: cannot find type 'winsize' in scope
401 |     }
402 |
403 |     func getWindowSize() -> winsize {
    |                             `- error: cannot find type 'winsize' in scope
404 |         return initialWindowSize
405 |     }
Failed frontend command:
/usr/bin/swift-frontend -frontend -emit-module -experimental-skip-non-inlinable-function-bodies-without-types /host/spi-builder-workspace/Sources/Termcast/AsciicastFormat.swift /host/spi-builder-workspace/Sources/Termcast/TermcastPlayer.swift /host/spi-builder-workspace/Sources/Termcast/TermcastRecorder.swift /host/spi-builder-workspace/Sources/Termcast/main.swift -target wasm32-unknown-wasip1 -disable-objc-interop -sdk /root/.swiftpm/swift-sdks/swift-6.4.0-RELEASE_wasm.artifactbundle/swift-6.4.0-RELEASE_wasm/wasm32-unknown-wasip1/WASI.sdk -sysroot /root/.swiftpm/swift-sdks/swift-6.4.0-RELEASE_wasm.artifactbundle/swift-6.4.0-RELEASE_wasm/wasm32-unknown-wasip1/WASI.sdk -I /host/spi-builder-workspace/.build/out/Products/Debug-webassembly-wasm32 -module-cache-path /host/spi-builder-workspace/.build/out/ModuleCache.noindex -color-diagnostics -Xcc -fcolor-diagnostics -enable-testing -g -debug-info-format\=dwarf -dwarf-version\=4 -swift-version 6 -Onone -D SWIFT_PACKAGE -D DEBUG -D PortableGraphics -D Xcode -serialize-debugging-options -enable-experimental-feature DebugDescriptionMacro -empty-abi-descriptor -external-plugin-path /usr/lib/swift/host/plugins/testing\#/usr/bin/swift-plugin-server -validate-clang-modules-once -clang-build-session-file /host/spi-builder-workspace/.build/out/ModuleCache.noindex/Session.modulevalidation -Xcc -working-directory -Xcc /host -resource-dir /root/.swiftpm/swift-sdks/swift-6.4.0-RELEASE_wasm.artifactbundle/swift-6.4.0-RELEASE_wasm/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static -use-static-resource-dir -enable-anonymous-context-mangled-names -file-compilation-dir /host -Xcc -resource-dir -Xcc /root/.swiftpm/swift-sdks/swift-6.4.0-RELEASE_wasm.artifactbundle/swift-6.4.0-RELEASE_wasm/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/clang -Xcc -D_LIBCPP_HARDENING_MODE\=_LIBCPP_HARDENING_MODE_DEBUG -Xcc -fmodules-prune-interval\=86400 -Xcc -fmodules-prune-after\=345600 -Xcc -I/host/spi-builder-workspace/.build/out/Products/Debug-webassembly-wasm32/include -Xcc -I/host/spi-builder-workspace/.build/out/Intermediates.noindex/SwiftTerm.build/Debug-webassembly-wasm32/termcast-p.build/DerivedSources-normal/wasm32 -Xcc -I/host/spi-builder-workspace/.build/out/Intermediates.noindex/SwiftTerm.build/Debug-webassembly-wasm32/termcast-p.build/DerivedSources/wasm32 -Xcc -I/host/spi-builder-workspace/.build/out/Intermediates.noindex/SwiftTerm.build/Debug-webassembly-wasm32/termcast-p.build/DerivedSources -Xcc -DSWIFT_PACKAGE -Xcc -DDEBUG\=1 -no-auto-bridging-header-chaining -module-name Termcast -package-name spi_builder_workspace -const-gather-protocols-file /host/spi-builder-workspace/.build/out/Intermediates.noindex/SwiftTerm.build/Debug-webassembly-wasm32/termcast-p.build/Objects-normal/wasm32/termcast_const_extract_protocols.json -in-process-plugin-server-path /usr/lib/swift/host/libSwiftInProcPluginServer.so -plugin-path /usr/lib/swift/host/plugins -plugin-path /usr/local/lib/swift/host/plugins -emit-module-doc-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/SwiftTerm.build/Debug-webassembly-wasm32/termcast-p.build/Objects-normal/wasm32/Modules/Termcast.swiftdoc -emit-module-source-info-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/SwiftTerm.build/Debug-webassembly-wasm32/termcast-p.build/Objects-normal/wasm32/Modules/Termcast.swiftsourceinfo -serialize-diagnostics-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/SwiftTerm.build/Debug-webassembly-wasm32/termcast-p.build/Objects-normal/wasm32/termcast-primary-emit-module.dia -emit-dependencies-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/SwiftTerm.build/Debug-webassembly-wasm32/termcast-p.build/Objects-normal/wasm32/termcast-primary-emit-module.d -o /host/spi-builder-workspace/.build/out/Intermediates.noindex/SwiftTerm.build/Debug-webassembly-wasm32/termcast-p.build/Objects-normal/wasm32/Modules/Termcast.swiftmodule
error: Build failed
BUILD FAILURE 6.4 wasm