The Swift Package Index logo.Swift Package Index

Build Information

Failed to build SwiftHighlight, reference main (6e405a), with Swift 6.1 for Wasm on 3 Oct 2026 06:42:23 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-53886770-2":/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.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/CreatureSurvive/SwiftHighlight.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/CreatureSurvive/SwiftHighlight
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at 6e405ac Run the SwiftUI README example on the main actor
Cloned https://github.com/CreatureSurvive/SwiftHighlight.git
Revision (git rev-parse @):
6e405acc136ab9ee0f6584d28d73cb62a30ee246
SPI manifest file found: $PWD/.spi.yml
SUCCESS checkout https://github.com/CreatureSurvive/SwiftHighlight.git at main
========================================
Build
========================================
Selected platform:         wasm
Swift version:             6.1
Building package at path:  $PWD
https://github.com/CreatureSurvive/SwiftHighlight.git
https://github.com/CreatureSurvive/SwiftHighlight.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-53886770-2":/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:beceeede496da67681f4fa220a6b97cc098a0178841a413735f598dc6bbaf4c8
Status: Image is up to date for registry.gitlab.com/saguaro1/spi-images:wasm-6.1-latest
Building for debugging...
[0/7] Write sources
[2/7] Write swift-version-24593BA9C3E375BF.txt
[4/33] Emitting module SwiftHighlight
<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
[5/36] Compiling SwiftHighlight PlatformRendering.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
[6/36] Compiling SwiftHighlight RenderSupport.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
[7/36] Compiling SwiftHighlight SwiftUIRendering.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
[8/36] Compiling SwiftHighlight BuiltinGrammars.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
[9/36] Compiling SwiftHighlight CFamily.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
[10/36] Compiling SwiftHighlight Data.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
[11/36] Compiling SwiftHighlight GrammarKit.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
[12/36] Compiling SwiftHighlight Scope.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
/host/spi-builder-workspace/Sources/SwiftHighlight/Engine/Matcher.swift:394:50: error: cannot find 'memcmp' in scope
392 |                 } else {
393 |                     let length = end &- start
394 |                     if lineEnd &- pos >= length, memcmp(input + start, input + pos, length) == 0 {
    |                                                  `- error: cannot find 'memcmp' in scope
395 |                         pos &+= length
396 |                         pc &+= 1
/host/spi-builder-workspace/Sources/SwiftHighlight/Engine/Matcher.swift:404:46: error: cannot find 'memcmp' in scope
402 |             case .delimiter:
403 |                 let length = delimiterCount
404 |                 if lineEnd &- pos >= length, memcmp(delimiter, input + pos, length) == 0 {
    |                                              `- error: cannot find 'memcmp' in scope
405 |                     pos &+= length
406 |                     pc &+= 1
[13/36] Compiling SwiftHighlight Token.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
/host/spi-builder-workspace/Sources/SwiftHighlight/Engine/Matcher.swift:394:50: error: cannot find 'memcmp' in scope
392 |                 } else {
393 |                     let length = end &- start
394 |                     if lineEnd &- pos >= length, memcmp(input + start, input + pos, length) == 0 {
    |                                                  `- error: cannot find 'memcmp' in scope
395 |                         pos &+= length
396 |                         pc &+= 1
/host/spi-builder-workspace/Sources/SwiftHighlight/Engine/Matcher.swift:404:46: error: cannot find 'memcmp' in scope
402 |             case .delimiter:
403 |                 let length = delimiterCount
404 |                 if lineEnd &- pos >= length, memcmp(delimiter, input + pos, length) == 0 {
    |                                              `- error: cannot find 'memcmp' in scope
405 |                     pos &+= length
406 |                     pc &+= 1
[14/36] Compiling SwiftHighlight ByteSet.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
/host/spi-builder-workspace/Sources/SwiftHighlight/Engine/Matcher.swift:394:50: error: cannot find 'memcmp' in scope
392 |                 } else {
393 |                     let length = end &- start
394 |                     if lineEnd &- pos >= length, memcmp(input + start, input + pos, length) == 0 {
    |                                                  `- error: cannot find 'memcmp' in scope
395 |                         pos &+= length
396 |                         pc &+= 1
/host/spi-builder-workspace/Sources/SwiftHighlight/Engine/Matcher.swift:404:46: error: cannot find 'memcmp' in scope
402 |             case .delimiter:
403 |                 let length = delimiterCount
404 |                 if lineEnd &- pos >= length, memcmp(delimiter, input + pos, length) == 0 {
    |                                              `- error: cannot find 'memcmp' in scope
405 |                     pos &+= length
406 |                     pc &+= 1
[15/36] Compiling SwiftHighlight Matcher.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
/host/spi-builder-workspace/Sources/SwiftHighlight/Engine/Matcher.swift:394:50: error: cannot find 'memcmp' in scope
392 |                 } else {
393 |                     let length = end &- start
394 |                     if lineEnd &- pos >= length, memcmp(input + start, input + pos, length) == 0 {
    |                                                  `- error: cannot find 'memcmp' in scope
395 |                         pos &+= length
396 |                         pc &+= 1
/host/spi-builder-workspace/Sources/SwiftHighlight/Engine/Matcher.swift:404:46: error: cannot find 'memcmp' in scope
402 |             case .delimiter:
403 |                 let length = delimiterCount
404 |                 if lineEnd &- pos >= length, memcmp(delimiter, input + pos, length) == 0 {
    |                                              `- error: cannot find 'memcmp' in scope
405 |                     pos &+= length
406 |                     pc &+= 1
[16/36] Compiling SwiftHighlight BuiltinThemes.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
[17/36] Compiling SwiftHighlight Theme.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
[18/36] Compiling SwiftHighlight ThemeImport.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
[19/36] Compiling SwiftHighlight Scripting.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
[20/36] Compiling SwiftHighlight Swift.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
[21/36] Compiling SwiftHighlight Web.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
[22/36] Compiling SwiftHighlight Language.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
[23/36] Compiling SwiftHighlight LanguageRegistry.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
[24/36] Compiling SwiftHighlight HighlightSession.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
[25/36] Compiling SwiftHighlight Highlighter.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
[26/36] Compiling SwiftHighlight ANSIRendering.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
/host/spi-builder-workspace/Sources/SwiftHighlight/Render/ANSIRendering.swift:14:62: error: value of type 'Theme' has no member 'resolvedStyle(for:)'
12 |     /// The theme background is not painted; unscoped text uses the terminal's own foreground.
13 |     func ansi(theme: Theme, colors: ANSIColors = .trueColor) -> String {
14 |         var table = StyleTable<ResolvedStyle>(resolve: theme.resolvedStyle(for:))
   |                                                              `- error: value of type 'Theme' has no member 'resolvedStyle(for:)'
15 |         var text = source
16 |         return text.withUTF8 { bytes -> String in
/host/spi-builder-workspace/Sources/SwiftHighlight/Render/ANSIRendering.swift:17:24: error: generic parameter 'Style' could not be inferred
15 |         var text = source
16 |         return text.withUTF8 { bytes -> String in
17 |             let runs = StyledRuns(tokens: tokens, bytes: bytes, table: &table, paintsOnlyGlyphs: \.paintsOnlyGlyphs)
   |                        `- error: generic parameter 'Style' could not be inferred
18 |             // Style 0 (unscoped) keeps the terminal's own colors.
19 |             let openings = table.styles.enumerated().map {
/host/spi-builder-workspace/Sources/SwiftHighlight/Render/RenderSupport.swift:73:5: note: in call to initializer
 71 |     var styles: [Int] = []
 72 |
 73 |     init<Style: Hashable>(tokens: [Token], bytes: UnsafeBufferPointer<UInt8>, table: inout StyleTable<Style>,
    |     `- note: in call to initializer
 74 |                           paintsOnlyGlyphs: (Style) -> Bool) {
 75 |         var runs = RunIterator(tokens: tokens, byteCount: bytes.count)
/host/spi-builder-workspace/Sources/SwiftHighlight/Render/ANSIRendering.swift:17:98: error: cannot infer key path type from context; consider explicitly specifying a root type
15 |         var text = source
16 |         return text.withUTF8 { bytes -> String in
17 |             let runs = StyledRuns(tokens: tokens, bytes: bytes, table: &table, paintsOnlyGlyphs: \.paintsOnlyGlyphs)
   |                                                                                                  `- error: cannot infer key path type from context; consider explicitly specifying a root type
18 |             // Style 0 (unscoped) keeps the terminal's own colors.
19 |             let openings = table.styles.enumerated().map {
/host/spi-builder-workspace/Sources/SwiftHighlight/Render/HTMLRendering.swift:20:62: error: value of type 'Theme' has no member 'resolvedStyle(for:)'
 18 |     /// HTML with inline `style` attributes from `theme`: self-contained, no stylesheet needed.
 19 |     func html(theme: Theme, options: HTMLOptions = HTMLOptions()) -> String {
 20 |         var table = StyleTable<ResolvedStyle>(resolve: theme.resolvedStyle(for:))
    |                                                              `- error: value of type 'Theme' has no member 'resolvedStyle(for:)'
 21 |         let preStyle = "background-color:\(theme.background.css);color:\(theme.foreground.css)"
 22 |         return renderHTML(options: options, preStyle: preStyle, table: &table, paintsOnlyGlyphs: \.paintsOnlyGlyphs) {
/host/spi-builder-workspace/Sources/SwiftHighlight/Render/HTMLRendering.swift:22:98: error: cannot infer key path type from context; consider explicitly specifying a root type
 20 |         var table = StyleTable<ResolvedStyle>(resolve: theme.resolvedStyle(for:))
 21 |         let preStyle = "background-color:\(theme.background.css);color:\(theme.foreground.css)"
 22 |         return renderHTML(options: options, preStyle: preStyle, table: &table, paintsOnlyGlyphs: \.paintsOnlyGlyphs) {
    |                                                                                                  `- error: cannot infer key path type from context; consider explicitly specifying a root type
 23 |             let css = $0.cssDeclarations(defaultForeground: theme.foreground)
 24 |             return css.isEmpty ? nil : "style=\"\(css)\""
/host/spi-builder-workspace/Sources/SwiftHighlight/Render/HTMLRendering.swift:22:118: error: cannot infer type of closure parameter '$0' without a type annotation
 20 |         var table = StyleTable<ResolvedStyle>(resolve: theme.resolvedStyle(for:))
 21 |         let preStyle = "background-color:\(theme.background.css);color:\(theme.foreground.css)"
 22 |         return renderHTML(options: options, preStyle: preStyle, table: &table, paintsOnlyGlyphs: \.paintsOnlyGlyphs) {
    |                                                                                                                      `- error: cannot infer type of closure parameter '$0' without a type annotation
 23 |             let css = $0.cssDeclarations(defaultForeground: theme.foreground)
 24 |             return css.isEmpty ? nil : "style=\"\(css)\""
[27/36] Compiling SwiftHighlight CodeView.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
/host/spi-builder-workspace/Sources/SwiftHighlight/Render/ANSIRendering.swift:14:62: error: value of type 'Theme' has no member 'resolvedStyle(for:)'
12 |     /// The theme background is not painted; unscoped text uses the terminal's own foreground.
13 |     func ansi(theme: Theme, colors: ANSIColors = .trueColor) -> String {
14 |         var table = StyleTable<ResolvedStyle>(resolve: theme.resolvedStyle(for:))
   |                                                              `- error: value of type 'Theme' has no member 'resolvedStyle(for:)'
15 |         var text = source
16 |         return text.withUTF8 { bytes -> String in
/host/spi-builder-workspace/Sources/SwiftHighlight/Render/ANSIRendering.swift:17:24: error: generic parameter 'Style' could not be inferred
15 |         var text = source
16 |         return text.withUTF8 { bytes -> String in
17 |             let runs = StyledRuns(tokens: tokens, bytes: bytes, table: &table, paintsOnlyGlyphs: \.paintsOnlyGlyphs)
   |                        `- error: generic parameter 'Style' could not be inferred
18 |             // Style 0 (unscoped) keeps the terminal's own colors.
19 |             let openings = table.styles.enumerated().map {
/host/spi-builder-workspace/Sources/SwiftHighlight/Render/RenderSupport.swift:73:5: note: in call to initializer
 71 |     var styles: [Int] = []
 72 |
 73 |     init<Style: Hashable>(tokens: [Token], bytes: UnsafeBufferPointer<UInt8>, table: inout StyleTable<Style>,
    |     `- note: in call to initializer
 74 |                           paintsOnlyGlyphs: (Style) -> Bool) {
 75 |         var runs = RunIterator(tokens: tokens, byteCount: bytes.count)
/host/spi-builder-workspace/Sources/SwiftHighlight/Render/ANSIRendering.swift:17:98: error: cannot infer key path type from context; consider explicitly specifying a root type
15 |         var text = source
16 |         return text.withUTF8 { bytes -> String in
17 |             let runs = StyledRuns(tokens: tokens, bytes: bytes, table: &table, paintsOnlyGlyphs: \.paintsOnlyGlyphs)
   |                                                                                                  `- error: cannot infer key path type from context; consider explicitly specifying a root type
18 |             // Style 0 (unscoped) keeps the terminal's own colors.
19 |             let openings = table.styles.enumerated().map {
/host/spi-builder-workspace/Sources/SwiftHighlight/Render/HTMLRendering.swift:20:62: error: value of type 'Theme' has no member 'resolvedStyle(for:)'
 18 |     /// HTML with inline `style` attributes from `theme`: self-contained, no stylesheet needed.
 19 |     func html(theme: Theme, options: HTMLOptions = HTMLOptions()) -> String {
 20 |         var table = StyleTable<ResolvedStyle>(resolve: theme.resolvedStyle(for:))
    |                                                              `- error: value of type 'Theme' has no member 'resolvedStyle(for:)'
 21 |         let preStyle = "background-color:\(theme.background.css);color:\(theme.foreground.css)"
 22 |         return renderHTML(options: options, preStyle: preStyle, table: &table, paintsOnlyGlyphs: \.paintsOnlyGlyphs) {
/host/spi-builder-workspace/Sources/SwiftHighlight/Render/HTMLRendering.swift:22:98: error: cannot infer key path type from context; consider explicitly specifying a root type
 20 |         var table = StyleTable<ResolvedStyle>(resolve: theme.resolvedStyle(for:))
 21 |         let preStyle = "background-color:\(theme.background.css);color:\(theme.foreground.css)"
 22 |         return renderHTML(options: options, preStyle: preStyle, table: &table, paintsOnlyGlyphs: \.paintsOnlyGlyphs) {
    |                                                                                                  `- error: cannot infer key path type from context; consider explicitly specifying a root type
 23 |             let css = $0.cssDeclarations(defaultForeground: theme.foreground)
 24 |             return css.isEmpty ? nil : "style=\"\(css)\""
/host/spi-builder-workspace/Sources/SwiftHighlight/Render/HTMLRendering.swift:22:118: error: cannot infer type of closure parameter '$0' without a type annotation
 20 |         var table = StyleTable<ResolvedStyle>(resolve: theme.resolvedStyle(for:))
 21 |         let preStyle = "background-color:\(theme.background.css);color:\(theme.foreground.css)"
 22 |         return renderHTML(options: options, preStyle: preStyle, table: &table, paintsOnlyGlyphs: \.paintsOnlyGlyphs) {
    |                                                                                                                      `- error: cannot infer type of closure parameter '$0' without a type annotation
 23 |             let css = $0.cssDeclarations(defaultForeground: theme.foreground)
 24 |             return css.isEmpty ? nil : "style=\"\(css)\""
[28/36] Compiling SwiftHighlight HTMLRendering.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
/host/spi-builder-workspace/Sources/SwiftHighlight/Render/ANSIRendering.swift:14:62: error: value of type 'Theme' has no member 'resolvedStyle(for:)'
12 |     /// The theme background is not painted; unscoped text uses the terminal's own foreground.
13 |     func ansi(theme: Theme, colors: ANSIColors = .trueColor) -> String {
14 |         var table = StyleTable<ResolvedStyle>(resolve: theme.resolvedStyle(for:))
   |                                                              `- error: value of type 'Theme' has no member 'resolvedStyle(for:)'
15 |         var text = source
16 |         return text.withUTF8 { bytes -> String in
/host/spi-builder-workspace/Sources/SwiftHighlight/Render/ANSIRendering.swift:17:24: error: generic parameter 'Style' could not be inferred
15 |         var text = source
16 |         return text.withUTF8 { bytes -> String in
17 |             let runs = StyledRuns(tokens: tokens, bytes: bytes, table: &table, paintsOnlyGlyphs: \.paintsOnlyGlyphs)
   |                        `- error: generic parameter 'Style' could not be inferred
18 |             // Style 0 (unscoped) keeps the terminal's own colors.
19 |             let openings = table.styles.enumerated().map {
/host/spi-builder-workspace/Sources/SwiftHighlight/Render/RenderSupport.swift:73:5: note: in call to initializer
 71 |     var styles: [Int] = []
 72 |
 73 |     init<Style: Hashable>(tokens: [Token], bytes: UnsafeBufferPointer<UInt8>, table: inout StyleTable<Style>,
    |     `- note: in call to initializer
 74 |                           paintsOnlyGlyphs: (Style) -> Bool) {
 75 |         var runs = RunIterator(tokens: tokens, byteCount: bytes.count)
/host/spi-builder-workspace/Sources/SwiftHighlight/Render/ANSIRendering.swift:17:98: error: cannot infer key path type from context; consider explicitly specifying a root type
15 |         var text = source
16 |         return text.withUTF8 { bytes -> String in
17 |             let runs = StyledRuns(tokens: tokens, bytes: bytes, table: &table, paintsOnlyGlyphs: \.paintsOnlyGlyphs)
   |                                                                                                  `- error: cannot infer key path type from context; consider explicitly specifying a root type
18 |             // Style 0 (unscoped) keeps the terminal's own colors.
19 |             let openings = table.styles.enumerated().map {
/host/spi-builder-workspace/Sources/SwiftHighlight/Render/HTMLRendering.swift:20:62: error: value of type 'Theme' has no member 'resolvedStyle(for:)'
 18 |     /// HTML with inline `style` attributes from `theme`: self-contained, no stylesheet needed.
 19 |     func html(theme: Theme, options: HTMLOptions = HTMLOptions()) -> String {
 20 |         var table = StyleTable<ResolvedStyle>(resolve: theme.resolvedStyle(for:))
    |                                                              `- error: value of type 'Theme' has no member 'resolvedStyle(for:)'
 21 |         let preStyle = "background-color:\(theme.background.css);color:\(theme.foreground.css)"
 22 |         return renderHTML(options: options, preStyle: preStyle, table: &table, paintsOnlyGlyphs: \.paintsOnlyGlyphs) {
/host/spi-builder-workspace/Sources/SwiftHighlight/Render/HTMLRendering.swift:22:98: error: cannot infer key path type from context; consider explicitly specifying a root type
 20 |         var table = StyleTable<ResolvedStyle>(resolve: theme.resolvedStyle(for:))
 21 |         let preStyle = "background-color:\(theme.background.css);color:\(theme.foreground.css)"
 22 |         return renderHTML(options: options, preStyle: preStyle, table: &table, paintsOnlyGlyphs: \.paintsOnlyGlyphs) {
    |                                                                                                  `- error: cannot infer key path type from context; consider explicitly specifying a root type
 23 |             let css = $0.cssDeclarations(defaultForeground: theme.foreground)
 24 |             return css.isEmpty ? nil : "style=\"\(css)\""
/host/spi-builder-workspace/Sources/SwiftHighlight/Render/HTMLRendering.swift:22:118: error: cannot infer type of closure parameter '$0' without a type annotation
 20 |         var table = StyleTable<ResolvedStyle>(resolve: theme.resolvedStyle(for:))
 21 |         let preStyle = "background-color:\(theme.background.css);color:\(theme.foreground.css)"
 22 |         return renderHTML(options: options, preStyle: preStyle, table: &table, paintsOnlyGlyphs: \.paintsOnlyGlyphs) {
    |                                                                                                                      `- error: cannot infer type of closure parameter '$0' without a type annotation
 23 |             let css = $0.cssDeclarations(defaultForeground: theme.foreground)
 24 |             return css.isEmpty ? nil : "style=\"\(css)\""
[29/36] Compiling SwiftHighlight PatternParser.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
/host/spi-builder-workspace/Sources/SwiftHighlight/Engine/Tokenizer.swift:114:43: error: cannot find 'memchr' in scope
112 |         while lineStart <= count {
113 |             let remaining = count - lineStart
114 |             let newline = remaining > 0 ? memchr(base + lineStart, 0x0A, remaining) : nil
    |                                           `- error: cannot find 'memchr' in scope
115 |             let lineEnd = newline.map { base.distance(to: $0.assumingMemoryBound(to: UInt8.self)) } ?? count
116 |             var contentEnd = lineEnd
/host/spi-builder-workspace/Sources/SwiftHighlight/Engine/Tokenizer.swift:180:28: error: cannot find 'memcmp' in scope
178 |                     if prefixLength > 0,
179 |                        end &- pos < prefixLength
180 |                         || memcmp(base + pos, ctx.prefixes + Int(rule.pointee.prefixOffset), prefixLength) != 0 {
    |                            `- error: cannot find 'memcmp' in scope
181 |                         continue
182 |                     }
[30/36] Compiling SwiftHighlight Program.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
/host/spi-builder-workspace/Sources/SwiftHighlight/Engine/Tokenizer.swift:114:43: error: cannot find 'memchr' in scope
112 |         while lineStart <= count {
113 |             let remaining = count - lineStart
114 |             let newline = remaining > 0 ? memchr(base + lineStart, 0x0A, remaining) : nil
    |                                           `- error: cannot find 'memchr' in scope
115 |             let lineEnd = newline.map { base.distance(to: $0.assumingMemoryBound(to: UInt8.self)) } ?? count
116 |             var contentEnd = lineEnd
/host/spi-builder-workspace/Sources/SwiftHighlight/Engine/Tokenizer.swift:180:28: error: cannot find 'memcmp' in scope
178 |                     if prefixLength > 0,
179 |                        end &- pos < prefixLength
180 |                         || memcmp(base + pos, ctx.prefixes + Int(rule.pointee.prefixOffset), prefixLength) != 0 {
    |                            `- error: cannot find 'memcmp' in scope
181 |                         continue
182 |                     }
[31/36] Compiling SwiftHighlight Tokenizer.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
/host/spi-builder-workspace/Sources/SwiftHighlight/Engine/Tokenizer.swift:114:43: error: cannot find 'memchr' in scope
112 |         while lineStart <= count {
113 |             let remaining = count - lineStart
114 |             let newline = remaining > 0 ? memchr(base + lineStart, 0x0A, remaining) : nil
    |                                           `- error: cannot find 'memchr' in scope
115 |             let lineEnd = newline.map { base.distance(to: $0.assumingMemoryBound(to: UInt8.self)) } ?? count
116 |             var contentEnd = lineEnd
/host/spi-builder-workspace/Sources/SwiftHighlight/Engine/Tokenizer.swift:180:28: error: cannot find 'memcmp' in scope
178 |                     if prefixLength > 0,
179 |                        end &- pos < prefixLength
180 |                         || memcmp(base + pos, ctx.prefixes + Int(rule.pointee.prefixOffset), prefixLength) != 0 {
    |                            `- error: cannot find 'memcmp' in scope
181 |                         continue
182 |                     }
[32/36] Compiling SwiftHighlight Grammar.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
/host/spi-builder-workspace/Sources/SwiftHighlight/Engine/Tokenizer.swift:114:43: error: cannot find 'memchr' in scope
112 |         while lineStart <= count {
113 |             let remaining = count - lineStart
114 |             let newline = remaining > 0 ? memchr(base + lineStart, 0x0A, remaining) : nil
    |                                           `- error: cannot find 'memchr' in scope
115 |             let lineEnd = newline.map { base.distance(to: $0.assumingMemoryBound(to: UInt8.self)) } ?? count
116 |             var contentEnd = lineEnd
/host/spi-builder-workspace/Sources/SwiftHighlight/Engine/Tokenizer.swift:180:28: error: cannot find 'memcmp' in scope
178 |                     if prefixLength > 0,
179 |                        end &- pos < prefixLength
180 |                         || memcmp(base + pos, ctx.prefixes + Int(rule.pointee.prefixOffset), prefixLength) != 0 {
    |                            `- error: cannot find 'memcmp' in scope
181 |                         continue
182 |                     }
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-53886770-2":/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:beceeede496da67681f4fa220a6b97cc098a0178841a413735f598dc6bbaf4c8
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/31] Compiling SwiftHighlight ANSIRendering.swift
/host/spi-builder-workspace/Sources/SwiftHighlight/Render/ANSIRendering.swift:14:62: error: value of type 'Theme' has no member 'resolvedStyle(for:)'
12 |     /// The theme background is not painted; unscoped text uses the terminal's own foreground.
13 |     func ansi(theme: Theme, colors: ANSIColors = .trueColor) -> String {
14 |         var table = StyleTable<ResolvedStyle>(resolve: theme.resolvedStyle(for:))
   |                                                              `- error: value of type 'Theme' has no member 'resolvedStyle(for:)'
15 |         var text = source
16 |         return text.withUTF8 { bytes -> String in
/host/spi-builder-workspace/Sources/SwiftHighlight/Render/ANSIRendering.swift:17:24: error: generic parameter 'Style' could not be inferred
15 |         var text = source
16 |         return text.withUTF8 { bytes -> String in
17 |             let runs = StyledRuns(tokens: tokens, bytes: bytes, table: &table, paintsOnlyGlyphs: \.paintsOnlyGlyphs)
   |                        `- error: generic parameter 'Style' could not be inferred
18 |             // Style 0 (unscoped) keeps the terminal's own colors.
19 |             let openings = table.styles.enumerated().map {
/host/spi-builder-workspace/Sources/SwiftHighlight/Render/RenderSupport.swift:73:5: note: in call to initializer
 71 |     var styles: [Int] = []
 72 |
 73 |     init<Style: Hashable>(tokens: [Token], bytes: UnsafeBufferPointer<UInt8>, table: inout StyleTable<Style>,
    |     `- note: in call to initializer
 74 |                           paintsOnlyGlyphs: (Style) -> Bool) {
 75 |         var runs = RunIterator(tokens: tokens, byteCount: bytes.count)
/host/spi-builder-workspace/Sources/SwiftHighlight/Render/ANSIRendering.swift:17:98: error: cannot infer key path type from context; consider explicitly specifying a root type
15 |         var text = source
16 |         return text.withUTF8 { bytes -> String in
17 |             let runs = StyledRuns(tokens: tokens, bytes: bytes, table: &table, paintsOnlyGlyphs: \.paintsOnlyGlyphs)
   |                                                                                                  `- error: cannot infer key path type from context; consider explicitly specifying a root type
18 |             // Style 0 (unscoped) keeps the terminal's own colors.
19 |             let openings = table.styles.enumerated().map {
/host/spi-builder-workspace/Sources/SwiftHighlight/Render/HTMLRendering.swift:20:62: error: value of type 'Theme' has no member 'resolvedStyle(for:)'
 18 |     /// HTML with inline `style` attributes from `theme`: self-contained, no stylesheet needed.
 19 |     func html(theme: Theme, options: HTMLOptions = HTMLOptions()) -> String {
 20 |         var table = StyleTable<ResolvedStyle>(resolve: theme.resolvedStyle(for:))
    |                                                              `- error: value of type 'Theme' has no member 'resolvedStyle(for:)'
 21 |         let preStyle = "background-color:\(theme.background.css);color:\(theme.foreground.css)"
 22 |         return renderHTML(options: options, preStyle: preStyle, table: &table, paintsOnlyGlyphs: \.paintsOnlyGlyphs) {
/host/spi-builder-workspace/Sources/SwiftHighlight/Render/HTMLRendering.swift:22:98: error: cannot infer key path type from context; consider explicitly specifying a root type
 20 |         var table = StyleTable<ResolvedStyle>(resolve: theme.resolvedStyle(for:))
 21 |         let preStyle = "background-color:\(theme.background.css);color:\(theme.foreground.css)"
 22 |         return renderHTML(options: options, preStyle: preStyle, table: &table, paintsOnlyGlyphs: \.paintsOnlyGlyphs) {
    |                                                                                                  `- error: cannot infer key path type from context; consider explicitly specifying a root type
 23 |             let css = $0.cssDeclarations(defaultForeground: theme.foreground)
 24 |             return css.isEmpty ? nil : "style=\"\(css)\""
/host/spi-builder-workspace/Sources/SwiftHighlight/Render/HTMLRendering.swift:22:118: error: cannot infer type of closure parameter '$0' without a type annotation
 20 |         var table = StyleTable<ResolvedStyle>(resolve: theme.resolvedStyle(for:))
 21 |         let preStyle = "background-color:\(theme.background.css);color:\(theme.foreground.css)"
 22 |         return renderHTML(options: options, preStyle: preStyle, table: &table, paintsOnlyGlyphs: \.paintsOnlyGlyphs) {
    |                                                                                                                      `- error: cannot infer type of closure parameter '$0' without a type annotation
 23 |             let css = $0.cssDeclarations(defaultForeground: theme.foreground)
 24 |             return css.isEmpty ? nil : "style=\"\(css)\""
[3/31] Compiling SwiftHighlight CodeView.swift
/host/spi-builder-workspace/Sources/SwiftHighlight/Render/ANSIRendering.swift:14:62: error: value of type 'Theme' has no member 'resolvedStyle(for:)'
12 |     /// The theme background is not painted; unscoped text uses the terminal's own foreground.
13 |     func ansi(theme: Theme, colors: ANSIColors = .trueColor) -> String {
14 |         var table = StyleTable<ResolvedStyle>(resolve: theme.resolvedStyle(for:))
   |                                                              `- error: value of type 'Theme' has no member 'resolvedStyle(for:)'
15 |         var text = source
16 |         return text.withUTF8 { bytes -> String in
/host/spi-builder-workspace/Sources/SwiftHighlight/Render/ANSIRendering.swift:17:24: error: generic parameter 'Style' could not be inferred
15 |         var text = source
16 |         return text.withUTF8 { bytes -> String in
17 |             let runs = StyledRuns(tokens: tokens, bytes: bytes, table: &table, paintsOnlyGlyphs: \.paintsOnlyGlyphs)
   |                        `- error: generic parameter 'Style' could not be inferred
18 |             // Style 0 (unscoped) keeps the terminal's own colors.
19 |             let openings = table.styles.enumerated().map {
/host/spi-builder-workspace/Sources/SwiftHighlight/Render/RenderSupport.swift:73:5: note: in call to initializer
 71 |     var styles: [Int] = []
 72 |
 73 |     init<Style: Hashable>(tokens: [Token], bytes: UnsafeBufferPointer<UInt8>, table: inout StyleTable<Style>,
    |     `- note: in call to initializer
 74 |                           paintsOnlyGlyphs: (Style) -> Bool) {
 75 |         var runs = RunIterator(tokens: tokens, byteCount: bytes.count)
/host/spi-builder-workspace/Sources/SwiftHighlight/Render/ANSIRendering.swift:17:98: error: cannot infer key path type from context; consider explicitly specifying a root type
15 |         var text = source
16 |         return text.withUTF8 { bytes -> String in
17 |             let runs = StyledRuns(tokens: tokens, bytes: bytes, table: &table, paintsOnlyGlyphs: \.paintsOnlyGlyphs)
   |                                                                                                  `- error: cannot infer key path type from context; consider explicitly specifying a root type
18 |             // Style 0 (unscoped) keeps the terminal's own colors.
19 |             let openings = table.styles.enumerated().map {
/host/spi-builder-workspace/Sources/SwiftHighlight/Render/HTMLRendering.swift:20:62: error: value of type 'Theme' has no member 'resolvedStyle(for:)'
 18 |     /// HTML with inline `style` attributes from `theme`: self-contained, no stylesheet needed.
 19 |     func html(theme: Theme, options: HTMLOptions = HTMLOptions()) -> String {
 20 |         var table = StyleTable<ResolvedStyle>(resolve: theme.resolvedStyle(for:))
    |                                                              `- error: value of type 'Theme' has no member 'resolvedStyle(for:)'
 21 |         let preStyle = "background-color:\(theme.background.css);color:\(theme.foreground.css)"
 22 |         return renderHTML(options: options, preStyle: preStyle, table: &table, paintsOnlyGlyphs: \.paintsOnlyGlyphs) {
/host/spi-builder-workspace/Sources/SwiftHighlight/Render/HTMLRendering.swift:22:98: error: cannot infer key path type from context; consider explicitly specifying a root type
 20 |         var table = StyleTable<ResolvedStyle>(resolve: theme.resolvedStyle(for:))
 21 |         let preStyle = "background-color:\(theme.background.css);color:\(theme.foreground.css)"
 22 |         return renderHTML(options: options, preStyle: preStyle, table: &table, paintsOnlyGlyphs: \.paintsOnlyGlyphs) {
    |                                                                                                  `- error: cannot infer key path type from context; consider explicitly specifying a root type
 23 |             let css = $0.cssDeclarations(defaultForeground: theme.foreground)
 24 |             return css.isEmpty ? nil : "style=\"\(css)\""
/host/spi-builder-workspace/Sources/SwiftHighlight/Render/HTMLRendering.swift:22:118: error: cannot infer type of closure parameter '$0' without a type annotation
 20 |         var table = StyleTable<ResolvedStyle>(resolve: theme.resolvedStyle(for:))
 21 |         let preStyle = "background-color:\(theme.background.css);color:\(theme.foreground.css)"
 22 |         return renderHTML(options: options, preStyle: preStyle, table: &table, paintsOnlyGlyphs: \.paintsOnlyGlyphs) {
    |                                                                                                                      `- error: cannot infer type of closure parameter '$0' without a type annotation
 23 |             let css = $0.cssDeclarations(defaultForeground: theme.foreground)
 24 |             return css.isEmpty ? nil : "style=\"\(css)\""
[4/31] Compiling SwiftHighlight HTMLRendering.swift
/host/spi-builder-workspace/Sources/SwiftHighlight/Render/ANSIRendering.swift:14:62: error: value of type 'Theme' has no member 'resolvedStyle(for:)'
12 |     /// The theme background is not painted; unscoped text uses the terminal's own foreground.
13 |     func ansi(theme: Theme, colors: ANSIColors = .trueColor) -> String {
14 |         var table = StyleTable<ResolvedStyle>(resolve: theme.resolvedStyle(for:))
   |                                                              `- error: value of type 'Theme' has no member 'resolvedStyle(for:)'
15 |         var text = source
16 |         return text.withUTF8 { bytes -> String in
/host/spi-builder-workspace/Sources/SwiftHighlight/Render/ANSIRendering.swift:17:24: error: generic parameter 'Style' could not be inferred
15 |         var text = source
16 |         return text.withUTF8 { bytes -> String in
17 |             let runs = StyledRuns(tokens: tokens, bytes: bytes, table: &table, paintsOnlyGlyphs: \.paintsOnlyGlyphs)
   |                        `- error: generic parameter 'Style' could not be inferred
18 |             // Style 0 (unscoped) keeps the terminal's own colors.
19 |             let openings = table.styles.enumerated().map {
/host/spi-builder-workspace/Sources/SwiftHighlight/Render/RenderSupport.swift:73:5: note: in call to initializer
 71 |     var styles: [Int] = []
 72 |
 73 |     init<Style: Hashable>(tokens: [Token], bytes: UnsafeBufferPointer<UInt8>, table: inout StyleTable<Style>,
    |     `- note: in call to initializer
 74 |                           paintsOnlyGlyphs: (Style) -> Bool) {
 75 |         var runs = RunIterator(tokens: tokens, byteCount: bytes.count)
/host/spi-builder-workspace/Sources/SwiftHighlight/Render/ANSIRendering.swift:17:98: error: cannot infer key path type from context; consider explicitly specifying a root type
15 |         var text = source
16 |         return text.withUTF8 { bytes -> String in
17 |             let runs = StyledRuns(tokens: tokens, bytes: bytes, table: &table, paintsOnlyGlyphs: \.paintsOnlyGlyphs)
   |                                                                                                  `- error: cannot infer key path type from context; consider explicitly specifying a root type
18 |             // Style 0 (unscoped) keeps the terminal's own colors.
19 |             let openings = table.styles.enumerated().map {
/host/spi-builder-workspace/Sources/SwiftHighlight/Render/HTMLRendering.swift:20:62: error: value of type 'Theme' has no member 'resolvedStyle(for:)'
 18 |     /// HTML with inline `style` attributes from `theme`: self-contained, no stylesheet needed.
 19 |     func html(theme: Theme, options: HTMLOptions = HTMLOptions()) -> String {
 20 |         var table = StyleTable<ResolvedStyle>(resolve: theme.resolvedStyle(for:))
    |                                                              `- error: value of type 'Theme' has no member 'resolvedStyle(for:)'
 21 |         let preStyle = "background-color:\(theme.background.css);color:\(theme.foreground.css)"
 22 |         return renderHTML(options: options, preStyle: preStyle, table: &table, paintsOnlyGlyphs: \.paintsOnlyGlyphs) {
/host/spi-builder-workspace/Sources/SwiftHighlight/Render/HTMLRendering.swift:22:98: error: cannot infer key path type from context; consider explicitly specifying a root type
 20 |         var table = StyleTable<ResolvedStyle>(resolve: theme.resolvedStyle(for:))
 21 |         let preStyle = "background-color:\(theme.background.css);color:\(theme.foreground.css)"
 22 |         return renderHTML(options: options, preStyle: preStyle, table: &table, paintsOnlyGlyphs: \.paintsOnlyGlyphs) {
    |                                                                                                  `- error: cannot infer key path type from context; consider explicitly specifying a root type
 23 |             let css = $0.cssDeclarations(defaultForeground: theme.foreground)
 24 |             return css.isEmpty ? nil : "style=\"\(css)\""
/host/spi-builder-workspace/Sources/SwiftHighlight/Render/HTMLRendering.swift:22:118: error: cannot infer type of closure parameter '$0' without a type annotation
 20 |         var table = StyleTable<ResolvedStyle>(resolve: theme.resolvedStyle(for:))
 21 |         let preStyle = "background-color:\(theme.background.css);color:\(theme.foreground.css)"
 22 |         return renderHTML(options: options, preStyle: preStyle, table: &table, paintsOnlyGlyphs: \.paintsOnlyGlyphs) {
    |                                                                                                                      `- error: cannot infer type of closure parameter '$0' without a type annotation
 23 |             let css = $0.cssDeclarations(defaultForeground: theme.foreground)
 24 |             return css.isEmpty ? nil : "style=\"\(css)\""
[5/34] Emitting module SwiftHighlight
[6/34] Compiling SwiftHighlight BuiltinGrammars.swift
[7/34] Compiling SwiftHighlight CFamily.swift
[8/34] Compiling SwiftHighlight Data.swift
[9/34] Compiling SwiftHighlight GrammarKit.swift
[10/34] Compiling SwiftHighlight Scope.swift
/host/spi-builder-workspace/Sources/SwiftHighlight/Engine/Matcher.swift:394:50: error: cannot find 'memcmp' in scope
392 |                 } else {
393 |                     let length = end &- start
394 |                     if lineEnd &- pos >= length, memcmp(input + start, input + pos, length) == 0 {
    |                                                  `- error: cannot find 'memcmp' in scope
395 |                         pos &+= length
396 |                         pc &+= 1
/host/spi-builder-workspace/Sources/SwiftHighlight/Engine/Matcher.swift:404:46: error: cannot find 'memcmp' in scope
402 |             case .delimiter:
403 |                 let length = delimiterCount
404 |                 if lineEnd &- pos >= length, memcmp(delimiter, input + pos, length) == 0 {
    |                                              `- error: cannot find 'memcmp' in scope
405 |                     pos &+= length
406 |                     pc &+= 1
[11/34] Compiling SwiftHighlight Token.swift
/host/spi-builder-workspace/Sources/SwiftHighlight/Engine/Matcher.swift:394:50: error: cannot find 'memcmp' in scope
392 |                 } else {
393 |                     let length = end &- start
394 |                     if lineEnd &- pos >= length, memcmp(input + start, input + pos, length) == 0 {
    |                                                  `- error: cannot find 'memcmp' in scope
395 |                         pos &+= length
396 |                         pc &+= 1
/host/spi-builder-workspace/Sources/SwiftHighlight/Engine/Matcher.swift:404:46: error: cannot find 'memcmp' in scope
402 |             case .delimiter:
403 |                 let length = delimiterCount
404 |                 if lineEnd &- pos >= length, memcmp(delimiter, input + pos, length) == 0 {
    |                                              `- error: cannot find 'memcmp' in scope
405 |                     pos &+= length
406 |                     pc &+= 1
[12/34] Compiling SwiftHighlight ByteSet.swift
/host/spi-builder-workspace/Sources/SwiftHighlight/Engine/Matcher.swift:394:50: error: cannot find 'memcmp' in scope
392 |                 } else {
393 |                     let length = end &- start
394 |                     if lineEnd &- pos >= length, memcmp(input + start, input + pos, length) == 0 {
    |                                                  `- error: cannot find 'memcmp' in scope
395 |                         pos &+= length
396 |                         pc &+= 1
/host/spi-builder-workspace/Sources/SwiftHighlight/Engine/Matcher.swift:404:46: error: cannot find 'memcmp' in scope
402 |             case .delimiter:
403 |                 let length = delimiterCount
404 |                 if lineEnd &- pos >= length, memcmp(delimiter, input + pos, length) == 0 {
    |                                              `- error: cannot find 'memcmp' in scope
405 |                     pos &+= length
406 |                     pc &+= 1
[13/34] Compiling SwiftHighlight Matcher.swift
/host/spi-builder-workspace/Sources/SwiftHighlight/Engine/Matcher.swift:394:50: error: cannot find 'memcmp' in scope
392 |                 } else {
393 |                     let length = end &- start
394 |                     if lineEnd &- pos >= length, memcmp(input + start, input + pos, length) == 0 {
    |                                                  `- error: cannot find 'memcmp' in scope
395 |                         pos &+= length
396 |                         pc &+= 1
/host/spi-builder-workspace/Sources/SwiftHighlight/Engine/Matcher.swift:404:46: error: cannot find 'memcmp' in scope
402 |             case .delimiter:
403 |                 let length = delimiterCount
404 |                 if lineEnd &- pos >= length, memcmp(delimiter, input + pos, length) == 0 {
    |                                              `- error: cannot find 'memcmp' in scope
405 |                     pos &+= length
406 |                     pc &+= 1
[14/34] Compiling SwiftHighlight PatternParser.swift
/host/spi-builder-workspace/Sources/SwiftHighlight/Engine/Tokenizer.swift:114:43: error: cannot find 'memchr' in scope
112 |         while lineStart <= count {
113 |             let remaining = count - lineStart
114 |             let newline = remaining > 0 ? memchr(base + lineStart, 0x0A, remaining) : nil
    |                                           `- error: cannot find 'memchr' in scope
115 |             let lineEnd = newline.map { base.distance(to: $0.assumingMemoryBound(to: UInt8.self)) } ?? count
116 |             var contentEnd = lineEnd
/host/spi-builder-workspace/Sources/SwiftHighlight/Engine/Tokenizer.swift:180:28: error: cannot find 'memcmp' in scope
178 |                     if prefixLength > 0,
179 |                        end &- pos < prefixLength
180 |                         || memcmp(base + pos, ctx.prefixes + Int(rule.pointee.prefixOffset), prefixLength) != 0 {
    |                            `- error: cannot find 'memcmp' in scope
181 |                         continue
182 |                     }
[15/34] Compiling SwiftHighlight Program.swift
/host/spi-builder-workspace/Sources/SwiftHighlight/Engine/Tokenizer.swift:114:43: error: cannot find 'memchr' in scope
112 |         while lineStart <= count {
113 |             let remaining = count - lineStart
114 |             let newline = remaining > 0 ? memchr(base + lineStart, 0x0A, remaining) : nil
    |                                           `- error: cannot find 'memchr' in scope
115 |             let lineEnd = newline.map { base.distance(to: $0.assumingMemoryBound(to: UInt8.self)) } ?? count
116 |             var contentEnd = lineEnd
/host/spi-builder-workspace/Sources/SwiftHighlight/Engine/Tokenizer.swift:180:28: error: cannot find 'memcmp' in scope
178 |                     if prefixLength > 0,
179 |                        end &- pos < prefixLength
180 |                         || memcmp(base + pos, ctx.prefixes + Int(rule.pointee.prefixOffset), prefixLength) != 0 {
    |                            `- error: cannot find 'memcmp' in scope
181 |                         continue
182 |                     }
[16/34] Compiling SwiftHighlight Tokenizer.swift
/host/spi-builder-workspace/Sources/SwiftHighlight/Engine/Tokenizer.swift:114:43: error: cannot find 'memchr' in scope
112 |         while lineStart <= count {
113 |             let remaining = count - lineStart
114 |             let newline = remaining > 0 ? memchr(base + lineStart, 0x0A, remaining) : nil
    |                                           `- error: cannot find 'memchr' in scope
115 |             let lineEnd = newline.map { base.distance(to: $0.assumingMemoryBound(to: UInt8.self)) } ?? count
116 |             var contentEnd = lineEnd
/host/spi-builder-workspace/Sources/SwiftHighlight/Engine/Tokenizer.swift:180:28: error: cannot find 'memcmp' in scope
178 |                     if prefixLength > 0,
179 |                        end &- pos < prefixLength
180 |                         || memcmp(base + pos, ctx.prefixes + Int(rule.pointee.prefixOffset), prefixLength) != 0 {
    |                            `- error: cannot find 'memcmp' in scope
181 |                         continue
182 |                     }
[17/34] Compiling SwiftHighlight Grammar.swift
/host/spi-builder-workspace/Sources/SwiftHighlight/Engine/Tokenizer.swift:114:43: error: cannot find 'memchr' in scope
112 |         while lineStart <= count {
113 |             let remaining = count - lineStart
114 |             let newline = remaining > 0 ? memchr(base + lineStart, 0x0A, remaining) : nil
    |                                           `- error: cannot find 'memchr' in scope
115 |             let lineEnd = newline.map { base.distance(to: $0.assumingMemoryBound(to: UInt8.self)) } ?? count
116 |             var contentEnd = lineEnd
/host/spi-builder-workspace/Sources/SwiftHighlight/Engine/Tokenizer.swift:180:28: error: cannot find 'memcmp' in scope
178 |                     if prefixLength > 0,
179 |                        end &- pos < prefixLength
180 |                         || memcmp(base + pos, ctx.prefixes + Int(rule.pointee.prefixOffset), prefixLength) != 0 {
    |                            `- error: cannot find 'memcmp' in scope
181 |                         continue
182 |                     }
[18/34] Compiling SwiftHighlight Language.swift
[19/34] Compiling SwiftHighlight LanguageRegistry.swift
[20/34] Compiling SwiftHighlight HighlightSession.swift
[21/34] Compiling SwiftHighlight Highlighter.swift
[22/34] Compiling SwiftHighlight PlatformRendering.swift
[23/34] Compiling SwiftHighlight RenderSupport.swift
[24/34] Compiling SwiftHighlight SwiftUIRendering.swift
[25/34] Compiling SwiftHighlight BuiltinThemes.swift
[26/34] Compiling SwiftHighlight Theme.swift
[27/34] Compiling SwiftHighlight ThemeImport.swift
[28/34] Compiling SwiftHighlight Scripting.swift
[29/34] Compiling SwiftHighlight Swift.swift
[30/34] Compiling SwiftHighlight Web.swift
BUILD FAILURE 6.1 wasm