The Swift Package Index logo.Swift Package Index

Build Information

Failed to build SwiftTerm, reference v1.99.3 (282c3c), with Swift 6.2 for Wasm on 7 Nov 2026 22:40:58 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-54344846-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

Build Log

========================================
RunAll
========================================
Builder version: 5.1.4
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/migueldeicaza/SwiftTerm.git
Reference: v1.99.3
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.3    -> FETCH_HEAD
HEAD is now at 282c3c3 Hide concealed text (SGR 8) when rendering (#822)
Cloned https://github.com/migueldeicaza/SwiftTerm.git
Revision (git rev-parse @):
282c3c3a932b55c129628876b70f37d993af1615
SUCCESS checkout https://github.com/migueldeicaza/SwiftTerm.git at v1.99.3
========================================
Build
========================================
Selected platform:         wasm
Swift version:             6.2
Building package at path:  $PWD
https://github.com/migueldeicaza/SwiftTerm.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-54344846-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
Fetching https://github.com/apple/swift-docc-plugin
Fetching https://github.com/tayloraswift/swift-png
Fetching https://github.com/apple/swift-argument-parser
[1/7636] Fetching swift-png
[460/9981] Fetching swift-png, swift-docc-plugin
Fetched https://github.com/apple/swift-docc-plugin from cache (0.49s)
[2140/26980] Fetching swift-png, swift-argument-parser
Fetched https://github.com/apple/swift-argument-parser from cache (2.66s)
Fetched https://github.com/tayloraswift/swift-png from cache (2.75s)
Computing version for https://github.com/tayloraswift/swift-png
Computed https://github.com/tayloraswift/swift-png at 4.5.2 (2.92s)
Fetching https://github.com/rarestype/h
[1/1384] Fetching h
Fetched https://github.com/rarestype/h from cache (0.42s)
Computing version for https://github.com/rarestype/h
Computed https://github.com/rarestype/h at 1.0.1 (0.58s)
Computing version for https://github.com/apple/swift-docc-plugin
Computed https://github.com/apple/swift-docc-plugin at 1.5.0 (0.86s)
Fetching https://github.com/swiftlang/swift-docc-symbolkit
[1/3864] Fetching swift-docc-symbolkit
Fetched https://github.com/swiftlang/swift-docc-symbolkit from cache (0.57s)
Computing version for https://github.com/swiftlang/swift-docc-symbolkit
Computed https://github.com/swiftlang/swift-docc-symbolkit at 1.0.0 (0.77s)
Computing version for https://github.com/apple/swift-argument-parser
Computed https://github.com/apple/swift-argument-parser at 1.8.2 (0.14s)
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/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
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/tayloraswift/swift-png
Working copy of https://github.com/tayloraswift/swift-png resolved at 4.5.2
[0/5] Write sources
[1/5] Write swift-version-24593BA9C3E375BF.txt
[3/9] Compiling SwiftTermBuildInfoGenerator XtgettcapTableGenerator.swift
[4/9] Compiling SwiftTermBuildInfoGenerator TerminfoSource.swift
[5/9] Compiling SwiftTermBuildInfoGenerator BuildInfoGenerator.swift
[6/9] Emitting module SwiftTermBuildInfoGenerator
[7/10] Wrapping AST for SwiftTermBuildInfoGenerator for debugging
[8/10] Write Objects.LinkFileList
[9/10] Linking SwiftTermBuildInfoGenerator-tool
[1/1] Compiling plugin SwiftTermBuildInfoPlugin
[2/2] Compiling plugin Swift-DocC Preview
[3/3] Compiling plugin Swift-DocC
[4/4] Compiling plugin GenerateManual
[5/5] Compiling plugin GenerateDoccReference
Building for debugging...
[5/39] Write sources
[16/39] Write swift-version-24593BA9C3E375BF.txt
[17/47] Wrapping AST for SwiftTermBuildInfoGenerator for debugging
[18/47] Write Objects.LinkFileList
[19/47] Linking SwiftTermBuildInfoGenerator-tool
[20/47] Generate SwiftTerm build information
[21/47] Write sources
[23/47] Emitting module BaseDigits
[24/47] Compiling BaseDigits BaseDigits.swift
[25/48] Wrapping AST for BaseDigits for debugging
[27/53] Emitting module Base16
[28/53] Compiling Base16 Base16.Values.swift
[29/53] Compiling Base16 Base16.UppercaseDigits.swift
[30/53] Compiling Base16 Base16.LowercaseDigits.swift
[31/53] Compiling Base16 Base16.swift
[33/54] Emitting module ArgumentParserToolInfo
[34/54] Compiling ArgumentParserToolInfo ToolInfo.swift
[34/55] Wrapping AST for Base16 for debugging
[36/57] Wrapping AST for ArgumentParserToolInfo for debugging
[38/104] Compiling CRC CRC32.swift
[39/104] Emitting module CRC
[40/105] Wrapping AST for CRC for debugging
[42/158] Emitting module ArgumentParser
[43/164] Compiling SwiftTermBuildInfoGenerator XtgettcapTableGenerator.swift
[44/164] Compiling SwiftTermBuildInfoGenerator TerminfoSource.swift
[45/164] Compiling SwiftTermBuildInfoGenerator BuildInfoGenerator.swift
[46/164] Emitting module SwiftTermBuildInfoGenerator
[47/165] Wrapping AST for SwiftTermBuildInfoGenerator for debugging
[48/165] Write Objects.LinkFileList
[50/165] Compiling LZ77 LZ77.Metaword.swift
[51/165] Compiling LZ77 LZ77.RunLiteral.swift
[52/165] Compiling LZ77 LZ77.BlockMetadata.swift
[53/165] Compiling LZ77 LZ77.BlockShape.swift
[54/165] Compiling LZ77 LZ77.BlockState.swift
[55/165] Compiling LZ77 LZ77.BlockType.swift
[56/165] Emitting module LZ77
[57/172] Compiling LZ77 LZ77.InflatorIn.swift
[58/172] Compiling LZ77 LZ77.InflatorOut.swift
[59/172] Compiling LZ77 LZ77.InflatorState.swift
[60/172] Compiling LZ77 LZ77.InflatorTables.swift
[61/172] Compiling LZ77 LZ77.StreamHeader.swift
[62/172] Compiling LZ77 LZ77.StreamHeaderError.swift
[63/172] Compiling LZ77 LZ77.Composites.swift
[63/172] Linking SwiftTermBuildInfoGenerator.wasm
[65/172] Compiling LZ77 LZ77.Reversed.swift
[66/172] Compiling LZ77 LZ77.swift
[67/172] Compiling LZ77 SIMD16 (ext).swift
[68/172] Compiling LZ77 LZ77.Format.swift
[69/172] Compiling LZ77 LZ77.FormatType.swift
[70/172] Compiling LZ77 LZ77.MRC32.swift
[71/172] Compiling LZ77 LZ77.StreamIntegral.swift
[72/172] Compiling ArgumentParser AsyncCompletionsValidator.swift
[73/172] Compiling ArgumentParser CodingKeyValidator.swift
[74/172] Compiling ArgumentParser NonsenseFlagsValidator.swift
[75/172] Compiling ArgumentParser ParsableArgumentsValidation.swift
[76/172] Compiling ArgumentParser PositionalArgumentsValidator.swift
[77/172] Compiling ArgumentParser UniqueNamesValidator.swift
[78/172] Compiling LZ77 Gzip.swift
[79/172] Compiling LZ77 LZ77.Codeword.swift
[84/172] Compiling LZ77 LZ77.DecompressionError.swift
[85/172] Compiling LZ77 LZ77.Inflator.swift
[86/172] Compiling LZ77 LZ77.InflatorBuffers.Stream.swift
[87/172] Compiling LZ77 LZ77.InflatorBuffers.swift
[88/172] Compiling LZ77 F14.District.Index.swift
[89/172] Compiling LZ77 F14.District.swift
[105/172] Compiling LZ77 LZ77.Distance.swift
[106/172] Compiling LZ77 LZ77.Heap.swift
[107/172] Compiling LZ77 LZ77.HuffmanPattern.swift
[108/172] Compiling LZ77 LZ77.HuffmanTree.swift
[112/172] Compiling LZ77 LZ77.DeflatorMatches.swift
[113/172] Compiling LZ77 LZ77.DeflatorOut.swift
[114/172] Compiling LZ77 LZ77.DeflatorSearch.swift
[115/172] Compiling LZ77 LZ77.DeflatorTables.swift
[116/172] Compiling LZ77 LZ77.DeflatorTerm.Meta.swift
[117/172] Compiling LZ77 LZ77.DeflatorTerm.swift
[118/172] Compiling LZ77 LZ77.DeflatorWindow.Element.swift
[126/172] Compiling LZ77 LZ77.DeflatorWindow.swift
[127/172] Compiling LZ77 Gzip.Format.swift
[128/172] Compiling LZ77 Gzip.Inflator.swift
[129/172] Compiling LZ77 Gzip.InflatorState.swift
[130/172] Compiling LZ77 Gzip.StreamHeader.swift
[131/172] Compiling LZ77 Gzip.StreamHeaderError.swift
[134/172] Compiling LZ77 LZ77.Decades.swift
[135/172] Compiling LZ77 LZ77.Deflator.swift
[136/172] Compiling LZ77 LZ77.DeflatorBuffers.Stream.swift
[137/172] Compiling LZ77 LZ77.DeflatorBuffers.swift
[138/172] Compiling LZ77 LZ77.DeflatorDicing.Node.swift
[139/172] Compiling LZ77 LZ77.DeflatorDicing.swift
[140/172] Compiling LZ77 LZ77.DeflatorIn.swift
[141/172] Compiling LZ77 LZ77.DeflatorMatches.Depths.swift
[142/173] Wrapping AST for LZ77 for debugging
[144/217] Compiling PNG PNG.DecodingError.swift
[145/217] Compiling PNG PNG.Metadata.swift
[146/217] Compiling PNG PNG.Standard.swift
[147/217] Compiling PNG PNG.Encoder.Pass.swift
[148/217] Compiling PNG PNG.Encoder.swift
[149/217] Compiling PNG PNG.FormattingError.swift
[150/217] Compiling PNG PNG.Format.Pixel.swift
[151/217] Compiling PNG PNG.Histogram.swift
[152/217] Compiling PNG PNG.Palette.swift
[153/217] Compiling PNG PNG.ParsingError.swift
[154/217] Compiling PNG PNG.Percentmille.swift
[155/217] Compiling PNG PNG.BytestreamDestination.swift
[156/217] Compiling PNG PNG.BytestreamSource.swift
[157/217] Compiling PNG PNG.Chunk.swift
[158/217] Compiling PNG PNG.Format.swift
[159/217] Compiling PNG PNG.Layout.swift
[160/217] Compiling PNG General.swift
[161/217] Compiling PNG LZ77.DecompressionError (ext).swift
[162/217] Compiling PNG LZ77.DeflateHeaderError (ext).swift
[163/217] Compiling PNG PNG.swift
[164/217] Compiling PNG PNG.Background.Case.swift
[165/218] Emitting module PNG
[166/224] Wrapping AST for ArgumentParser for debugging
[174/224] Compiling PNG PNG.PhysicalDimensions.swift
[175/224] Compiling PNG PNG.SignificantBits.Case.swift
[176/224] Compiling PNG PNG.SignificantBits.swift
[177/224] Compiling PNG PNG.SuggestedPalette.Entries.swift
[178/224] Compiling PNG PNG.SuggestedPalette.swift
[179/224] Compiling PNG PNG.Text.swift
[180/224] Compiling PNG PNG.TimeModified.swift
[181/224] Compiling PNG PNG.Transparency.Case.swift
[182/224] Compiling PNG PNG.Transparency.swift
[183/224] Compiling PNG System.swift
[184/224] Compiling PNG UnsafeMutableBufferPointer (ext).swift
[185/224] Compiling PNG __Entrypoint.swift
[194/224] Compiling PNG PNG.Background.swift
[195/224] Compiling PNG PNG.Chromaticity.swift
[196/224] Compiling PNG PNG.ColorProfile.swift
[197/224] Compiling PNG PNG.ColorRendering.swift
[198/224] Compiling PNG Array (ext).swift
[199/224] Compiling PNG ArraySlice (ext).swift
[200/224] Compiling PNG PNG.Color.swift
[201/224] Compiling PNG PNG.RGBA.swift
[202/224] Compiling PNG PNG.VA.swift
[203/224] Compiling PNG PNG.Context.swift
[204/224] Compiling PNG PNG.Decoder.swift
[205/224] Compiling PNG PNG.Gamma.swift
[206/224] Compiling PNG PNG.Header.swift
[214/224] Compiling PNG PNG.LexingError.swift
[215/224] Compiling PNG PNG.Error.swift
[216/224] Compiling PNG PNG.Image.swift
[217/225] Wrapping AST for PNG for debugging
[219/283] Compiling SwiftTerm TerminalRenderSnapshot.swift
[220/283] Compiling SwiftTerm TerminalViewport.swift
[221/283] Compiling SwiftTerm WASIHostEvents.swift
[222/283] Compiling SwiftTerm Position.swift
[223/283] Compiling SwiftTerm Profiling.swift
[224/283] Compiling SwiftTerm ProgramStatus.swift
[225/283] Compiling SwiftTerm Pty.swift
[226/283] Compiling SwiftTerm SearchEngine.swift
[227/291] Compiling SwiftTerm SearchLineCache.swift
[228/291] Compiling SwiftTerm SearchOptions.swift
[229/291] Compiling SwiftTerm SearchService.swift
[230/291] Compiling SwiftTerm SearchState.swift
[231/291] Compiling SwiftTerm SelectionService.swift
[232/291] Compiling SwiftTerm SemanticPrompt.swift
[233/291] Compiling SwiftTerm SixelDcsHandler.swift
[234/291] Compiling SwiftTerm SyncDebug.swift
[235/291] Compiling SwiftTerm Colors.swift
[236/291] Compiling SwiftTerm CsiParameters.swift
[237/291] Compiling SwiftTerm DECPrivateModes.swift
[238/291] Compiling SwiftTerm EmbeddedSupport.swift
[239/291] Compiling SwiftTerm EscapeSequenceParser.swift
[240/291] Compiling SwiftTerm EscapeSequences.swift
[241/291] Compiling SwiftTerm ExtensionsTerminal.swift
[242/291] Compiling SwiftTerm File.swift
[243/291] Compiling SwiftTerm KittyKeyboardProtocol.swift
[244/291] Compiling SwiftTerm KittyPlaceholder.swift
[245/291] Compiling SwiftTerm Line.swift
[246/291] Compiling SwiftTerm LineChangeTracker.swift
[247/291] Compiling SwiftTerm LocalProcess.swift
[248/291] Compiling SwiftTerm Locked.swift
[249/291] Compiling SwiftTerm TerminalKittyPlaceholders.swift
[250/291] Compiling SwiftTerm TerminalRasterImage.swift
[251/291] Emitting module SwiftTerm
[252/291] Compiling SwiftTerm HangulInput.swift
[253/291] Compiling SwiftTerm HeadlessTerminal.swift
[254/291] Compiling SwiftTerm IOTimerQueue.swift
[255/291] Compiling SwiftTerm KittyClipboardGrants.swift
[256/291] Compiling SwiftTerm KittyClipboardProtocol.swift
[257/291] Compiling SwiftTerm KittyGraphics.swift
[258/291] Compiling SwiftTerm KittyGraphicsSnapshot.swift
[259/291] Compiling SwiftTerm KittyKeyboardEncoder.swift
[260/291] Compiling SwiftTerm Bidi.swift
[261/291] Compiling SwiftTerm Buffer.swift
[262/291] Compiling SwiftTerm BufferLine.swift
[263/291] Compiling SwiftTerm BufferSet.swift
[264/291] Compiling SwiftTerm ByteRunScanner.swift
[265/291] Compiling SwiftTerm CellStorage.swift
[266/291] Compiling SwiftTerm CharData.swift
[267/291] Compiling SwiftTerm CharSets.swift
[268/291] Compiling SwiftTerm CircularList.swift
[269/291] Compiling SwiftTerm TerminalTapPolicy.swift
[270/291] Compiling SwiftTerm TerminalViewSearch.swift
[271/291] Compiling SwiftTerm TerminalWebInput.swift
[272/291] Compiling SwiftTerm TextInputUTF16.swift
[273/291] Compiling SwiftTerm UnicodeWidthData.swift
[274/291] Compiling SwiftTerm Utilities.swift
[275/291] Compiling SwiftTerm SwiftTermBuildInfo.swift
[276/291] Compiling SwiftTerm SwiftTermTerminfo.swift
[277/291] Compiling SwiftTerm Terminal.swift
[278/291] Compiling SwiftTerm TerminalContentSnapshot.swift
[279/291] Compiling SwiftTerm TerminalIOPipeline.swift
[280/291] Compiling SwiftTerm TerminalLock.swift
[281/291] Compiling SwiftTerm TerminalMouseInput.swift
[282/291] Compiling SwiftTerm TerminalOptions.swift
[283/291] Compiling SwiftTerm TerminalPaste.swift
[284/291] Compiling SwiftTerm TerminalRowText.swift
[285/292] Wrapping AST for SwiftTerm for debugging
[287/299] Compiling SwiftTermFuzz main.swift
[288/299] Emitting module SwiftTermFuzz
[289/300] Wrapping AST for SwiftTermFuzz for debugging
[290/300] Write Objects.LinkFileList
error: emit-module command failed with exit code 1 (use -v to see invocation)
[292/300] Compiling Termcast AsciicastFormat.swift
[293/300] Emitting module Termcast
/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: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 |     }
[294/300] Compiling Termcast main.swift
[295/300] Compiling Termcast TermcastPlayer.swift
[296/300] Compiling Termcast TermcastRecorder.swift
/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: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 |     }
/host/spi-builder-workspace/Sources/Termcast/TermcastRecorder.swift:69:29: warning: result of call to 'createFile(atPath:contents:attributes:)' is unused [#no-usage]
 67 |
 68 |         // Create the file and get handle
 69 |         FileManager.default.createFile(atPath: filePath, contents: nil)
    |                             `- warning: result of call to 'createFile(atPath:contents:attributes:)' is unused [#no-usage]
 70 |         fileHandle = try FileHandle(forWritingTo: url)
 71 |         debugMessage("[DEBUG] File handle created\n")
/host/spi-builder-workspace/Sources/Termcast/TermcastRecorder.swift:92:19: error: cannot find 'LocalProcess' in scope
 90 |         // Create and start the local process
 91 |         let recorder = self
 92 |         process = LocalProcess(delegate: recorder)
    |                   `- error: cannot find 'LocalProcess' in scope
 93 |         debugMessage("[DEBUG] LocalProcess created\n")
 94 |
/host/spi-builder-workspace/Sources/Termcast/TermcastRecorder.swift:120:22: error: value of type 'RunLoop' has no member 'run'
118 |         debugMessage("[DEBUG] Entering main run loop\n")
119 |         // Wait for process to finish
120 |         RunLoop.main.run()
    |                      `- error: value of type 'RunLoop' has no member 'run'
121 |     }
122 |
/host/spi-builder-workspace/Sources/Termcast/TermcastRecorder.swift:140:51: error: cannot infer contextual base in reference to member 'utf8'
138 |         let headerData = try encoder.encode(header)
139 |         let headerLine = String(data: headerData, encoding: .utf8)! + "\n"
140 |         fileHandle?.write(headerLine.data(using: .utf8)!)
    |                                                   `- error: cannot infer contextual base in reference to member 'utf8'
141 |     }
142 |
/host/spi-builder-workspace/Sources/Termcast/TermcastRecorder.swift:154:17: error: cannot find 'winsize' in scope
152 |
153 |     private func getTerminalSize() -> (width: Int, height: Int) {
154 |         var w = winsize()
    |                 `- error: cannot find 'winsize' in scope
155 | #if os(macOS)
156 |         if ioctl(STDOUT_FILENO, TIOCGWINSZ, &w) == 0 {
/host/spi-builder-workspace/Sources/Termcast/TermcastRecorder.swift:160:38: error: cannot find 'TIOCGWINSZ' in scope
158 |         }
159 | #else
160 |         if ioctl(STDOUT_FILENO, UInt(TIOCGWINSZ), &w) == 0 {
    |                                      `- error: cannot find 'TIOCGWINSZ' in scope
161 |             return (width: Int(w.ws_col), height: Int(w.ws_row))
162 |         }
/host/spi-builder-workspace/Sources/Termcast/TermcastRecorder.swift:168:22: error: cannot find 'DispatchSource' in scope
166 |
167 |     private func setupResizeHandler() {
168 |         let source = DispatchSource.makeSignalSource(signal: SIGWINCH, queue: .main)
    |                      `- error: cannot find 'DispatchSource' in scope
169 |         source.setEventHandler { [weak self] in
170 |             let newSize = self?.getTerminalSize() ?? (width: 80, height: 24)
/host/spi-builder-workspace/Sources/Termcast/TermcastRecorder.swift:168:62: error: cannot find 'SIGWINCH' in scope
166 |
167 |     private func setupResizeHandler() {
168 |         let source = DispatchSource.makeSignalSource(signal: SIGWINCH, queue: .main)
    |                                                              `- error: cannot find 'SIGWINCH' in scope
169 |         source.setEventHandler { [weak self] in
170 |             let newSize = self?.getTerminalSize() ?? (width: 80, height: 24)
/host/spi-builder-workspace/Sources/Termcast/TermcastRecorder.swift:168:80: error: cannot infer contextual base in reference to member 'main'
166 |
167 |     private func setupResizeHandler() {
168 |         let source = DispatchSource.makeSignalSource(signal: SIGWINCH, queue: .main)
    |                                                                                `- error: cannot infer contextual base in reference to member 'main'
169 |         source.setEventHandler { [weak self] in
170 |             let newSize = self?.getTerminalSize() ?? (width: 80, height: 24)
/host/spi-builder-workspace/Sources/Termcast/TermcastRecorder.swift:177:30: error: cannot find 'winsize' in scope
175 |
176 |             // Update the process window size
177 |             var newWinsize = winsize()
    |                              `- error: cannot find 'winsize' in scope
178 |             newWinsize.ws_col = UInt16(newSize.width)
179 |             newWinsize.ws_row = UInt16(newSize.height)
/host/spi-builder-workspace/Sources/Termcast/TermcastRecorder.swift:181:21: error: cannot find 'PseudoTerminalHelpers' in scope
179 |             newWinsize.ws_row = UInt16(newSize.height)
180 |             if let masterFd = self?.process?.childfd {
181 |                 _ = PseudoTerminalHelpers.setWinSize(masterPtyDescriptor: masterFd, windowSize: &newWinsize)
    |                     `- error: cannot find 'PseudoTerminalHelpers' in scope
182 |             }
183 |         }
/host/spi-builder-workspace/Sources/Termcast/TermcastRecorder.swift:184:9: error: cannot find 'signal' in scope
182 |             }
183 |         }
184 |         signal(SIGWINCH, SIG_IGN)
    |         `- error: cannot find 'signal' in scope
185 |         source.activate()
186 |     }
/host/spi-builder-workspace/Sources/Termcast/TermcastRecorder.swift:184:16: error: cannot find 'SIGWINCH' in scope
182 |             }
183 |         }
184 |         signal(SIGWINCH, SIG_IGN)
    |                `- error: cannot find 'SIGWINCH' in scope
185 |         source.activate()
186 |     }
/host/spi-builder-workspace/Sources/Termcast/TermcastRecorder.swift:184:26: error: cannot find 'SIG_IGN' in scope
182 |             }
183 |         }
184 |         signal(SIGWINCH, SIG_IGN)
    |                          `- error: cannot find 'SIG_IGN' in scope
185 |         source.activate()
186 |     }
/host/spi-builder-workspace/Sources/Termcast/TermcastRecorder.swift:199:12: error: cannot find 'tcgetattr' in scope
197 |
198 |         // Save original terminal settings
199 |         if tcgetattr(STDIN_FILENO, &originalTermios) != 0 {
    |            `- error: cannot find 'tcgetattr' in scope
200 |             let error = errno
201 |             debugMessage("[DEBUG] tcgetattr failed with errno: \(error)\n")
/host/spi-builder-workspace/Sources/Termcast/TermcastRecorder.swift:214:40: error: cannot find 'ECHO' in scope
212 |         rawTermios.c_cflag |= UInt(CS8)
213 | #else
214 |         rawTermios.c_lflag &= ~(UInt32(ECHO | ICANON | ISIG | IEXTEN))
    |                                        `- error: cannot find 'ECHO' in scope
215 |         rawTermios.c_iflag &= ~(UInt32(IXON | ICRNL | BRKINT | INPCK | ISTRIP))
216 |         rawTermios.c_oflag &= ~(UInt32(OPOST))
/host/spi-builder-workspace/Sources/Termcast/TermcastRecorder.swift:214:47: error: cannot find 'ICANON' in scope
212 |         rawTermios.c_cflag |= UInt(CS8)
213 | #else
214 |         rawTermios.c_lflag &= ~(UInt32(ECHO | ICANON | ISIG | IEXTEN))
    |                                               `- error: cannot find 'ICANON' in scope
215 |         rawTermios.c_iflag &= ~(UInt32(IXON | ICRNL | BRKINT | INPCK | ISTRIP))
216 |         rawTermios.c_oflag &= ~(UInt32(OPOST))
/host/spi-builder-workspace/Sources/Termcast/TermcastRecorder.swift:214:56: error: cannot find 'ISIG' in scope
212 |         rawTermios.c_cflag |= UInt(CS8)
213 | #else
214 |         rawTermios.c_lflag &= ~(UInt32(ECHO | ICANON | ISIG | IEXTEN))
    |                                                        `- error: cannot find 'ISIG' in scope
215 |         rawTermios.c_iflag &= ~(UInt32(IXON | ICRNL | BRKINT | INPCK | ISTRIP))
216 |         rawTermios.c_oflag &= ~(UInt32(OPOST))
/host/spi-builder-workspace/Sources/Termcast/TermcastRecorder.swift:214:63: error: cannot find 'IEXTEN' in scope
212 |         rawTermios.c_cflag |= UInt(CS8)
213 | #else
214 |         rawTermios.c_lflag &= ~(UInt32(ECHO | ICANON | ISIG | IEXTEN))
    |                                                               `- error: cannot find 'IEXTEN' in scope
215 |         rawTermios.c_iflag &= ~(UInt32(IXON | ICRNL | BRKINT | INPCK | ISTRIP))
216 |         rawTermios.c_oflag &= ~(UInt32(OPOST))
/host/spi-builder-workspace/Sources/Termcast/TermcastRecorder.swift:215:40: error: cannot find 'IXON' in scope
213 | #else
214 |         rawTermios.c_lflag &= ~(UInt32(ECHO | ICANON | ISIG | IEXTEN))
215 |         rawTermios.c_iflag &= ~(UInt32(IXON | ICRNL | BRKINT | INPCK | ISTRIP))
    |                                        `- error: cannot find 'IXON' in scope
216 |         rawTermios.c_oflag &= ~(UInt32(OPOST))
217 |         rawTermios.c_cflag |= UInt32(CS8)
/host/spi-builder-workspace/Sources/Termcast/TermcastRecorder.swift:215:47: error: cannot find 'ICRNL' in scope
213 | #else
214 |         rawTermios.c_lflag &= ~(UInt32(ECHO | ICANON | ISIG | IEXTEN))
215 |         rawTermios.c_iflag &= ~(UInt32(IXON | ICRNL | BRKINT | INPCK | ISTRIP))
    |                                               `- error: cannot find 'ICRNL' in scope
216 |         rawTermios.c_oflag &= ~(UInt32(OPOST))
217 |         rawTermios.c_cflag |= UInt32(CS8)
/host/spi-builder-workspace/Sources/Termcast/TermcastRecorder.swift:215:55: error: cannot find 'BRKINT' in scope
213 | #else
214 |         rawTermios.c_lflag &= ~(UInt32(ECHO | ICANON | ISIG | IEXTEN))
215 |         rawTermios.c_iflag &= ~(UInt32(IXON | ICRNL | BRKINT | INPCK | ISTRIP))
    |                                                       `- error: cannot find 'BRKINT' in scope
216 |         rawTermios.c_oflag &= ~(UInt32(OPOST))
217 |         rawTermios.c_cflag |= UInt32(CS8)
/host/spi-builder-workspace/Sources/Termcast/TermcastRecorder.swift:215:64: error: cannot find 'INPCK' in scope
213 | #else
214 |         rawTermios.c_lflag &= ~(UInt32(ECHO | ICANON | ISIG | IEXTEN))
215 |         rawTermios.c_iflag &= ~(UInt32(IXON | ICRNL | BRKINT | INPCK | ISTRIP))
    |                                                                `- error: cannot find 'INPCK' in scope
216 |         rawTermios.c_oflag &= ~(UInt32(OPOST))
217 |         rawTermios.c_cflag |= UInt32(CS8)
/host/spi-builder-workspace/Sources/Termcast/TermcastRecorder.swift:215:72: error: cannot find 'ISTRIP' in scope
213 | #else
214 |         rawTermios.c_lflag &= ~(UInt32(ECHO | ICANON | ISIG | IEXTEN))
215 |         rawTermios.c_iflag &= ~(UInt32(IXON | ICRNL | BRKINT | INPCK | ISTRIP))
    |                                                                        `- error: cannot find 'ISTRIP' in scope
216 |         rawTermios.c_oflag &= ~(UInt32(OPOST))
217 |         rawTermios.c_cflag |= UInt32(CS8)
/host/spi-builder-workspace/Sources/Termcast/TermcastRecorder.swift:216:40: error: cannot find 'OPOST' in scope
214 |         rawTermios.c_lflag &= ~(UInt32(ECHO | ICANON | ISIG | IEXTEN))
215 |         rawTermios.c_iflag &= ~(UInt32(IXON | ICRNL | BRKINT | INPCK | ISTRIP))
216 |         rawTermios.c_oflag &= ~(UInt32(OPOST))
    |                                        `- error: cannot find 'OPOST' in scope
217 |         rawTermios.c_cflag |= UInt32(CS8)
218 | #endif
/host/spi-builder-workspace/Sources/Termcast/TermcastRecorder.swift:217:38: error: cannot find 'CS8' in scope
215 |         rawTermios.c_iflag &= ~(UInt32(IXON | ICRNL | BRKINT | INPCK | ISTRIP))
216 |         rawTermios.c_oflag &= ~(UInt32(OPOST))
217 |         rawTermios.c_cflag |= UInt32(CS8)
    |                                      `- error: cannot find 'CS8' in scope
218 | #endif
219 |         rawTermios.c_cc.16 = 1  // VMIN
/host/spi-builder-workspace/Sources/Termcast/TermcastRecorder.swift:223:12: error: cannot find 'tcsetattr' in scope
221 |
222 |         // Apply raw mode settings
223 |         if tcsetattr(STDIN_FILENO, TCSAFLUSH, &rawTermios) != 0 {
    |            `- error: cannot find 'tcsetattr' in scope
224 |             let error = errno
225 |             debugMessage("[DEBUG] tcsetattr failed with errno: \(error)\n")
/host/spi-builder-workspace/Sources/Termcast/TermcastRecorder.swift:223:36: error: cannot find 'TCSAFLUSH' in scope
221 |
222 |         // Apply raw mode settings
223 |         if tcsetattr(STDIN_FILENO, TCSAFLUSH, &rawTermios) != 0 {
    |                                    `- error: cannot find 'TCSAFLUSH' in scope
224 |             let error = errno
225 |             debugMessage("[DEBUG] tcsetattr failed with errno: \(error)\n")
/host/spi-builder-workspace/Sources/Termcast/TermcastRecorder.swift:230:29: error: cannot find 'termios' in scope
228 |
229 |         // Verify raw mode was set
230 |         var verifyTermios = termios()
    |                             `- error: cannot find 'termios' in scope
231 |         if tcgetattr(STDIN_FILENO, &verifyTermios) == 0 {
232 |             debugMessage("[DEBUG] Verified c_lflag after raw mode: \(verifyTermios.c_lflag)\n")
/host/spi-builder-workspace/Sources/Termcast/TermcastRecorder.swift:231:12: error: cannot find 'tcgetattr' in scope
229 |         // Verify raw mode was set
230 |         var verifyTermios = termios()
231 |         if tcgetattr(STDIN_FILENO, &verifyTermios) == 0 {
    |            `- error: cannot find 'tcgetattr' in scope
232 |             debugMessage("[DEBUG] Verified c_lflag after raw mode: \(verifyTermios.c_lflag)\n")
233 |         }
/host/spi-builder-workspace/Sources/Termcast/TermcastRecorder.swift:243:12: error: cannot find 'tcgetattr' in scope
241 |
242 |         // Save original stdout settings
243 |         if tcgetattr(STDOUT_FILENO, &originalStdoutTermios) != 0 {
    |            `- error: cannot find 'tcgetattr' in scope
244 |             debugMessage("[DEBUG] Warning: Failed to get stdout terminal attributes\n")
245 |             return
/host/spi-builder-workspace/Sources/Termcast/TermcastRecorder.swift:258:26: error: cannot find 'termios' in scope
256 |
257 |         // Get terminal settings from the pty
258 |         var ptyTermios = termios()
    |                          `- error: cannot find 'termios' in scope
259 |         if tcgetattr(masterFd, &ptyTermios) != 0 {
260 |             debugMessage("[DEBUG] Warning: Failed to get pty terminal attributes\n")
/host/spi-builder-workspace/Sources/Termcast/TermcastRecorder.swift:259:12: error: cannot find 'tcgetattr' in scope
257 |         // Get terminal settings from the pty
258 |         var ptyTermios = termios()
259 |         if tcgetattr(masterFd, &ptyTermios) != 0 {
    |            `- error: cannot find 'tcgetattr' in scope
260 |             debugMessage("[DEBUG] Warning: Failed to get pty terminal attributes\n")
261 |             return
/host/spi-builder-workspace/Sources/Termcast/TermcastRecorder.swift:270:12: error: cannot find 'tcsetattr' in scope
268 |         newStdoutTermios.c_oflag = ptyTermios.c_oflag  // Copy output processing flags
269 |
270 |         if tcsetattr(STDOUT_FILENO, TCSANOW, &newStdoutTermios) != 0 {
    |            `- error: cannot find 'tcsetattr' in scope
271 |             debugMessage("[DEBUG] Warning: Failed to set stdout terminal attributes\n")
272 |             return
/host/spi-builder-workspace/Sources/Termcast/TermcastRecorder.swift:270:37: error: cannot find 'TCSANOW' in scope
268 |         newStdoutTermios.c_oflag = ptyTermios.c_oflag  // Copy output processing flags
269 |
270 |         if tcsetattr(STDOUT_FILENO, TCSANOW, &newStdoutTermios) != 0 {
    |                                     `- error: cannot find 'TCSANOW' in scope
271 |             debugMessage("[DEBUG] Warning: Failed to set stdout terminal attributes\n")
272 |             return
/host/spi-builder-workspace/Sources/Termcast/TermcastRecorder.swift:297:9: error: cannot find 'DispatchQueue' in scope
295 |             fileHandle: fileHandle)
296 |
297 |         DispatchQueue.global().async {
    |         `- error: cannot find 'DispatchQueue' in scope
298 |             debugMessage("[DEBUG] Input forwarding thread started (NEW VERSION)\n")
299 |
/host/spi-builder-workspace/Sources/Termcast/TermcastRecorder.swift:309:66: error: cannot find 'O_NONBLOCK' in scope
307 |                 // Use blocking read with a timeout by setting stdin to non-blocking temporarily
308 |                 let originalFlags = fcntl(STDIN_FILENO, F_GETFL)
309 |                 _ = fcntl(STDIN_FILENO, F_SETFL, originalFlags | O_NONBLOCK)
    |                                                                  `- error: cannot find 'O_NONBLOCK' in scope
310 |
311 |                 var buffer = [UInt8](repeating: 0, count: 1)
/host/spi-builder-workspace/Sources/Termcast/TermcastRecorder.swift:325:21: error: cannot find 'DispatchQueue' in scope
323 |                     // Keep process and recording state on the main actor. The
324 |                     // main queue preserves the input order from this reader.
325 |                     DispatchQueue.main.async {
    |                     `- error: cannot find 'DispatchQueue' in scope
326 |                         inputHandler.forward(data: data, inputString: inputString)
327 |                     }
/host/spi-builder-workspace/Sources/Termcast/TermcastRecorder.swift:349:24: error: cannot find 'DispatchSource' in scope
347 |
348 |     private func setupTimeoutTimer(_ timeout: Double) {
349 |         timeoutTimer = DispatchSource.makeTimerSource(queue: .main)
    |                        `- error: cannot find 'DispatchSource' in scope
350 |         timeoutTimer?.schedule(deadline: .now() + timeout, repeating: .never)
351 |         timeoutTimer?.setEventHandler { [weak self] in
/host/spi-builder-workspace/Sources/Termcast/TermcastRecorder.swift:349:63: error: cannot infer contextual base in reference to member 'main'
347 |
348 |     private func setupTimeoutTimer(_ timeout: Double) {
349 |         timeoutTimer = DispatchSource.makeTimerSource(queue: .main)
    |                                                               `- error: cannot infer contextual base in reference to member 'main'
350 |         timeoutTimer?.schedule(deadline: .now() + timeout, repeating: .never)
351 |         timeoutTimer?.setEventHandler { [weak self] in
/host/spi-builder-workspace/Sources/Termcast/TermcastRecorder.swift:350:43: error: cannot call value of non-function type 'Date'
348 |     private func setupTimeoutTimer(_ timeout: Double) {
349 |         timeoutTimer = DispatchSource.makeTimerSource(queue: .main)
350 |         timeoutTimer?.schedule(deadline: .now() + timeout, repeating: .never)
    |                                           `- error: cannot call value of non-function type 'Date'
351 |         timeoutTimer?.setEventHandler { [weak self] in
352 |             debugMessage("\nRecording timeout reached. Terminating...\n")
/host/spi-builder-workspace/Sources/Termcast/TermcastRecorder.swift:350:72: error: cannot infer contextual base in reference to member 'never'
348 |     private func setupTimeoutTimer(_ timeout: Double) {
349 |         timeoutTimer = DispatchSource.makeTimerSource(queue: .main)
350 |         timeoutTimer?.schedule(deadline: .now() + timeout, repeating: .never)
    |                                                                        `- error: cannot infer contextual base in reference to member 'never'
351 |         timeoutTimer?.setEventHandler { [weak self] in
352 |             debugMessage("\nRecording timeout reached. Terminating...\n")
/host/spi-builder-workspace/Sources/Termcast/TermcastRecorder.swift:370:13: error: cannot find 'tcsetattr' in scope
368 |         if terminalModeSet {
369 |             debugMessage("[DEBUG] Restoring original stdin terminal mode\n")
370 |             tcsetattr(STDIN_FILENO, TCSAFLUSH, &originalTermios)
    |             `- error: cannot find 'tcsetattr' in scope
371 |             terminalModeSet = false
372 |         }
/host/spi-builder-workspace/Sources/Termcast/TermcastRecorder.swift:370:37: error: cannot find 'TCSAFLUSH' in scope
368 |         if terminalModeSet {
369 |             debugMessage("[DEBUG] Restoring original stdin terminal mode\n")
370 |             tcsetattr(STDIN_FILENO, TCSAFLUSH, &originalTermios)
    |                                     `- error: cannot find 'TCSAFLUSH' in scope
371 |             terminalModeSet = false
372 |         }
/host/spi-builder-workspace/Sources/Termcast/TermcastRecorder.swift:375:13: error: cannot find 'tcsetattr' in scope
373 |         if stdoutModeSet {
374 |             debugMessage("[DEBUG] Restoring original stdout terminal mode\n")
375 |             tcsetattr(STDOUT_FILENO, TCSAFLUSH, &originalStdoutTermios)
    |             `- error: cannot find 'tcsetattr' in scope
376 |             stdoutModeSet = false
377 |         }
/host/spi-builder-workspace/Sources/Termcast/TermcastRecorder.swift:375:38: error: cannot find 'TCSAFLUSH' in scope
373 |         if stdoutModeSet {
374 |             debugMessage("[DEBUG] Restoring original stdout terminal mode\n")
375 |             tcsetattr(STDOUT_FILENO, TCSAFLUSH, &originalStdoutTermios)
    |                                      `- error: cannot find 'TCSAFLUSH' in scope
376 |             stdoutModeSet = false
377 |         }
[296/300] Linking SwiftTermFuzz.wasm
BUILD FAILURE 6.2 wasm