The Swift Package Index logo.Swift Package Index

Build Information

Failed to build SwiftTerm, reference v1.99.2 (a183c1), with Swift 6.4 for Wasm on 31 Oct 2026 17:52:25 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-54344847-3":/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: v1.99.2
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
 * tag               v1.99.2    -> FETCH_HEAD
HEAD is now at a183c15 make LocalProcessTerminalView.dataReceived(slice:) unavailable (#742)
Cloned https://github.com/migueldeicaza/SwiftTerm.git
Revision (git rev-parse @):
a183c15b52858530a17de57dcc72b93eeebc9857
SUCCESS checkout https://github.com/migueldeicaza/SwiftTerm.git at v1.99.2
========================================
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-54344847-3":/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:0ad19d16955074ecc72bbe910025b19c4e4614184c1a48afc82660d4c7620121
Status: Image is up to date for registry.gitlab.com/saguaro1/spi-images:wasm-6.4-latest
Fetching https://github.com/apple/swift-docc-plugin
Fetching https://github.com/tayloraswift/swift-png
Fetching https://github.com/apple/swift-argument-parser
[1/7626] Fetching swift-png
[2/9971] Fetching swift-png, swift-docc-plugin
[4482/29291] Fetching swift-png, swift-docc-plugin, swift-argument-parser
Fetched https://github.com/apple/swift-argument-parser (0.98s)
[5015/9971] Fetching swift-png, swift-docc-plugin
Fetched https://github.com/apple/swift-docc-plugin (4.10s)
Fetched https://github.com/tayloraswift/swift-png (4.19s)
Computing version for https://github.com/tayloraswift/swift-png
Computed https://github.com/tayloraswift/swift-png at 4.5.2 (4.36s)
Fetching https://github.com/rarestype/h
[1/1374] Fetching h
Fetched https://github.com/rarestype/h (0.44s)
Computing version for https://github.com/rarestype/h
Computed https://github.com/rarestype/h at 1.0.1 (0.60s)
Computing version for https://github.com/apple/swift-docc-plugin
Computed https://github.com/apple/swift-docc-plugin at 1.5.0 (0.90s)
Fetching https://github.com/swiftlang/swift-docc-symbolkit
[1/3850] Fetching swift-docc-symbolkit
Fetched https://github.com/swiftlang/swift-docc-symbolkit (0.58s)
Computing version for https://github.com/swiftlang/swift-docc-symbolkit
Computed https://github.com/swiftlang/swift-docc-symbolkit at 1.0.0 (0.80s)
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/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/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/tayloraswift/swift-png
Working copy of https://github.com/tayloraswift/swift-png resolved at 4.5.2
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
Creating working copy for https://github.com/rarestype/h
Working copy of https://github.com/rarestype/h resolved at 1.0.1
Building for debugging...
[Computing dependencies]
[Pre-planning 1 / 417]
[Planning deferred tasks]
[77 / 146] ArgumentParserToolInfo
[92 / 155]
[95 / 160] ArgumentParserToolInfo
[105 / 160] CRC
[106 / 160] Base16
[111 / 163]
[120 / 166] ArgumentParser
[125 / 186] LZ77
[128 / 187] LZ77
[132 / 187] LZ77
[133 / 187] PNG
[139 / 187] LZ77
[140 / 187] LZ77-product
[143 / 187] BaseDigits
[147 / 187] BaseDigits
[151 / 187] ArgumentParser
[153 / 187] ArgumentParser-product
[154 / 187] ArgumentParser-product
[162 / 190] SwiftTermBuildInfoGenerator-product
[164 / 199] SwiftTermBuildInfoGenerator-product
[166 / 199] PNG
[167 / 199] PNG
[168 / 199] PNG
[170 / 199] PNG
[174 / 199] PNG
[176 / 199] PNG-product
[177 / 199] ArgumentParser
[180 / 199] ArgumentParser
[181 / 200] ArgumentParser
[183 / 200] PNG
[187 / 201] SwiftTerm
[197 / 211] SwiftTerm
[204 / 213] SwiftTerm
[210 / 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