The Swift Package Index logo.Swift Package Index

Build Information

Failed to build swift-structured-grammar, reference main (ebaf2b), with Swift 6.2 for Wasm on 25 Jun 2026 12:16:34 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-53886768-0":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/swiftpackageindex/spi-images:wasm-6.2-latest swift build --swift-sdk swift-6.2-RELEASE_wasm 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4071e0796c748d991a0123890d2f0ecadc8fcc8c
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/mhayes853/swift-structured-grammar.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/mhayes853/swift-structured-grammar
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at ebaf2b6 Merge pull request #1 from mhayes853/wasm-build
Cloned https://github.com/mhayes853/swift-structured-grammar.git
Revision (git rev-parse @):
ebaf2b613b56b34e69200852e63bc1f227e85d8c
SUCCESS checkout https://github.com/mhayes853/swift-structured-grammar.git at main
========================================
Build
========================================
Selected platform:         wasm
Swift version:             6.2
Building package at path:  $PWD
https://github.com/mhayes853/swift-structured-grammar.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-53886768-0":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/swiftpackageindex/spi-images:wasm-6.2-latest swift build --swift-sdk swift-6.2-RELEASE_wasm 2>&1
wasm-6.2-latest: Pulling from swiftpackageindex/spi-images
Digest: sha256:7f35f7a63421c3ef050c9375efcbb60196c0ee099fe4e9f14f3ceef5fa7b1aa5
Status: Image is up to date for registry.gitlab.com/swiftpackageindex/spi-images:wasm-6.2-latest
Fetching https://github.com/pointfreeco/swift-custom-dump
Fetching https://github.com/swiftlang/swift-docc-plugin
Fetching https://github.com/pointfreeco/swift-snapshot-testing
Fetching https://github.com/pointfreeco/xctest-dynamic-overlay
Fetching https://github.com/mattt/swift-xgrammar
[1/5609] Fetching swift-custom-dump
[58/7908] Fetching swift-custom-dump, swift-docc-plugin
[5840/8214] Fetching swift-custom-dump, swift-docc-plugin, swift-xgrammar
[6214/14094] Fetching swift-custom-dump, swift-docc-plugin, swift-xgrammar, xctest-dynamic-overlay
Fetched https://github.com/pointfreeco/swift-custom-dump from cache (0.45s)
[1539/8485] Fetching swift-docc-plugin, swift-xgrammar, xctest-dynamic-overlay
Fetched https://github.com/mattt/swift-xgrammar from cache (0.48s)
[3946/8179] Fetching swift-docc-plugin, xctest-dynamic-overlay
[8180/24352] Fetching swift-docc-plugin, xctest-dynamic-overlay, swift-snapshot-testing
Fetched https://github.com/swiftlang/swift-docc-plugin from cache (2.01s)
Fetched https://github.com/pointfreeco/xctest-dynamic-overlay from cache (2.02s)
Fetched https://github.com/pointfreeco/swift-snapshot-testing from cache (2.04s)
Computing version for https://github.com/mattt/swift-xgrammar
Computed https://github.com/mattt/swift-xgrammar at 0.1.0 (2.18s)
Computing version for https://github.com/swiftlang/swift-docc-plugin
Computed https://github.com/swiftlang/swift-docc-plugin at 1.5.0 (0.87s)
Fetching https://github.com/swiftlang/swift-docc-symbolkit
[1/3749] Fetching swift-docc-symbolkit
Fetched https://github.com/swiftlang/swift-docc-symbolkit from cache (0.51s)
Computing version for https://github.com/swiftlang/swift-docc-symbolkit
Computed https://github.com/swiftlang/swift-docc-symbolkit at 1.0.0 (0.71s)
Computing version for https://github.com/pointfreeco/xctest-dynamic-overlay
Computed https://github.com/pointfreeco/xctest-dynamic-overlay at 1.10.1 (0.15s)
Computing version for https://github.com/pointfreeco/swift-custom-dump
Computed https://github.com/pointfreeco/swift-custom-dump at 1.6.1 (0.14s)
Computing version for https://github.com/pointfreeco/swift-snapshot-testing
Computed https://github.com/pointfreeco/swift-snapshot-testing at 1.19.2 (0.14s)
Fetching https://github.com/swiftlang/swift-syntax
[1/75744] Fetching swift-syntax
Fetched https://github.com/swiftlang/swift-syntax from cache (2.51s)
Computing version for https://github.com/swiftlang/swift-syntax
Computed https://github.com/swiftlang/swift-syntax at 603.0.2 (2.78s)
Creating working copy for https://github.com/pointfreeco/xctest-dynamic-overlay
Working copy of https://github.com/pointfreeco/xctest-dynamic-overlay resolved at 1.10.1
Creating working copy for https://github.com/pointfreeco/swift-snapshot-testing
Working copy of https://github.com/pointfreeco/swift-snapshot-testing resolved at 1.19.2
Creating working copy for https://github.com/swiftlang/swift-docc-plugin
Working copy of https://github.com/swiftlang/swift-docc-plugin resolved at 1.5.0
Creating working copy for https://github.com/swiftlang/swift-syntax
Working copy of https://github.com/swiftlang/swift-syntax resolved at 603.0.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/mattt/swift-xgrammar
Working copy of https://github.com/mattt/swift-xgrammar resolved at 0.1.0
Creating working copy for https://github.com/pointfreeco/swift-custom-dump
Working copy of https://github.com/pointfreeco/swift-custom-dump resolved at 1.6.1
warning: 'spi-builder-workspace': Invalid Exclude '/host/spi-builder-workspace/Tests/StructuredCFGTests/__Snapshots__': File not found.
[1/1] Compiling plugin Swift-DocC Preview
[2/2] Compiling plugin Swift-DocC
Building for debugging...
[2/8] Write sources
[4/8] Write swift-version-24593BA9C3E375BF.txt
error: emit-module command failed with exit code 1 (use -v to see invocation)
[6/55] Emitting module StructuredCFG
/host/spi-builder-workspace/Sources/StructuredCFG/Expression.swift:9:2: error: unknown attribute 'nonexhaustive'
  7 | ///
  8 | /// You can use the `custom` case to support expressions for custom grammar formats.
  9 | @nonexhaustive
    |  `- error: unknown attribute 'nonexhaustive'
 10 | public indirect enum Expression: Sendable {
 11 |   /// Matches the empty string.
/host/spi-builder-workspace/Sources/StructuredCFG/Grammar.swift:32:4: error: unknown attribute 'nonexhaustive'
 30 | public struct Grammar: Hashable, Sendable, Language.Component, Grammar.Component {
 31 |   /// A top-level statement in a grammar.
 32 |   @nonexhaustive
    |    `- error: unknown attribute 'nonexhaustive'
 33 |   public enum Statement: Sendable {
 34 |     /// A named production rule.
[7/61] Compiling StructuredCFG Epsilon.swift
[8/61] Compiling StructuredCFG ExpressionBuilder.swift
[9/61] Compiling StructuredCFG Group.swift
[10/61] Compiling StructuredCFG InlineComment.swift
[11/61] Compiling StructuredCFG OneOrMoreExpression.swift
[12/61] Compiling StructuredCFG Option.swift
[13/61] Compiling StructuredCFG Comment.swift
/host/spi-builder-workspace/Sources/StructuredCFG/Expression.swift:9:2: error: unknown attribute 'nonexhaustive'
  7 | ///
  8 | /// You can use the `custom` case to support expressions for custom grammar formats.
  9 | @nonexhaustive
    |  `- error: unknown attribute 'nonexhaustive'
 10 | public indirect enum Expression: Sendable {
 11 |   /// Matches the empty string.
[14/61] Compiling StructuredCFG Expression.swift
/host/spi-builder-workspace/Sources/StructuredCFG/Expression.swift:9:2: error: unknown attribute 'nonexhaustive'
  7 | ///
  8 | /// You can use the `custom` case to support expressions for custom grammar formats.
  9 | @nonexhaustive
    |  `- error: unknown attribute 'nonexhaustive'
 10 | public indirect enum Expression: Sendable {
 11 |   /// Matches the empty string.
[15/61] Compiling StructuredCFG CharacterGroup.swift
/host/spi-builder-workspace/Sources/StructuredCFG/Expression.swift:9:2: error: unknown attribute 'nonexhaustive'
  7 | ///
  8 | /// You can use the `custom` case to support expressions for custom grammar formats.
  9 | @nonexhaustive
    |  `- error: unknown attribute 'nonexhaustive'
 10 | public indirect enum Expression: Sendable {
 11 |   /// Matches the empty string.
[16/61] Compiling StructuredCFG ChoiceBuilder.swift
/host/spi-builder-workspace/Sources/StructuredCFG/Expression.swift:9:2: error: unknown attribute 'nonexhaustive'
  7 | ///
  8 | /// You can use the `custom` case to support expressions for custom grammar formats.
  9 | @nonexhaustive
    |  `- error: unknown attribute 'nonexhaustive'
 10 | public indirect enum Expression: Sendable {
 11 |   /// Matches the empty string.
[17/61] Compiling StructuredCFG ChoiceOf.swift
/host/spi-builder-workspace/Sources/StructuredCFG/Expression.swift:9:2: error: unknown attribute 'nonexhaustive'
  7 | ///
  8 | /// You can use the `custom` case to support expressions for custom grammar formats.
  9 | @nonexhaustive
    |  `- error: unknown attribute 'nonexhaustive'
 10 | public indirect enum Expression: Sendable {
 11 |   /// Matches the empty string.
[18/61] Compiling StructuredCFG ConcatenateExpressions.swift
/host/spi-builder-workspace/Sources/StructuredCFG/Expression.swift:9:2: error: unknown attribute 'nonexhaustive'
  7 | ///
  8 | /// You can use the `custom` case to support expressions for custom grammar formats.
  9 | @nonexhaustive
    |  `- error: unknown attribute 'nonexhaustive'
 10 | public indirect enum Expression: Sendable {
 11 |   /// Matches the empty string.
[19/61] Compiling StructuredCFG Expression+Formatted.swift
/host/spi-builder-workspace/Sources/StructuredCFG/Grammar.swift:32:4: error: unknown attribute 'nonexhaustive'
 30 | public struct Grammar: Hashable, Sendable, Language.Component, Grammar.Component {
 31 |   /// A top-level statement in a grammar.
 32 |   @nonexhaustive
    |    `- error: unknown attribute 'nonexhaustive'
 33 |   public enum Statement: Sendable {
 34 |     /// A named production rule.
[20/61] Compiling StructuredCFG Terminal+CharacterFormatting.swift
/host/spi-builder-workspace/Sources/StructuredCFG/Grammar.swift:32:4: error: unknown attribute 'nonexhaustive'
 30 | public struct Grammar: Hashable, Sendable, Language.Component, Grammar.Component {
 31 |   /// A top-level statement in a grammar.
 32 |   @nonexhaustive
    |    `- error: unknown attribute 'nonexhaustive'
 33 |   public enum Statement: Sendable {
 34 |     /// A named production rule.
[21/61] Compiling StructuredCFG Terminal+Formatted.swift
/host/spi-builder-workspace/Sources/StructuredCFG/Grammar.swift:32:4: error: unknown attribute 'nonexhaustive'
 30 | public struct Grammar: Hashable, Sendable, Language.Component, Grammar.Component {
 31 |   /// A top-level statement in a grammar.
 32 |   @nonexhaustive
    |    `- error: unknown attribute 'nonexhaustive'
 33 |   public enum Statement: Sendable {
 34 |     /// A named production rule.
[22/61] Compiling StructuredCFG UnsupportedErrors.swift
/host/spi-builder-workspace/Sources/StructuredCFG/Grammar.swift:32:4: error: unknown attribute 'nonexhaustive'
 30 | public struct Grammar: Hashable, Sendable, Language.Component, Grammar.Component {
 31 |   /// A top-level statement in a grammar.
 32 |   @nonexhaustive
    |    `- error: unknown attribute 'nonexhaustive'
 33 |   public enum Statement: Sendable {
 34 |     /// A named production rule.
[23/61] Compiling StructuredCFG W3CEBNFFormatter.swift
/host/spi-builder-workspace/Sources/StructuredCFG/Grammar.swift:32:4: error: unknown attribute 'nonexhaustive'
 30 | public struct Grammar: Hashable, Sendable, Language.Component, Grammar.Component {
 31 |   /// A top-level statement in a grammar.
 32 |   @nonexhaustive
    |    `- error: unknown attribute 'nonexhaustive'
 33 |   public enum Statement: Sendable {
 34 |     /// A named production rule.
[24/61] Compiling StructuredCFG Grammar.swift
/host/spi-builder-workspace/Sources/StructuredCFG/Grammar.swift:32:4: error: unknown attribute 'nonexhaustive'
 30 | public struct Grammar: Hashable, Sendable, Language.Component, Grammar.Component {
 31 |   /// A top-level statement in a grammar.
 32 |   @nonexhaustive
    |    `- error: unknown attribute 'nonexhaustive'
 33 |   public enum Statement: Sendable {
 34 |     /// A named production rule.
[25/61] Compiling StructuredCFG Reverse.swift
[26/61] Compiling StructuredCFG Star.swift
[27/61] Compiling StructuredCFG Union.swift
[28/61] Compiling StructuredCFG UnionBuilder.swift
[29/61] Compiling StructuredCFG Rule.swift
[30/61] Compiling StructuredCFG Symbol.swift
[31/61] Compiling StructuredCFG UnicodeHelpers.swift
[32/61] Compiling StructuredCFG Language.swift
[33/61] Compiling StructuredCFG ConcatenateLanguages.swift
[34/61] Compiling StructuredCFG ConcatenateLanguagesBuilder.swift
[35/61] Compiling StructuredCFG LanguageBuilder.swift
[36/61] Compiling StructuredCFG Optional+Language.swift
[37/61] Compiling StructuredCFG BNFFormatter.swift
[38/61] Compiling StructuredCFG Formatter.swift
[39/61] Compiling StructuredCFG GBNFFormatter.swift
[40/61] Compiling StructuredCFG ISOIECEBNFFormatter.swift
[41/61] Compiling StructuredCFG CharacterGroup+Formatted.swift
[42/61] Compiling StructuredCFG CommentFormatting.swift
[43/61] Compiling StructuredCFG Ref.swift
[44/61] Compiling StructuredCFG RepeatExpression.swift
[45/61] Compiling StructuredCFG Special.swift
[46/61] Compiling StructuredCFG SwiftOptional+Expression.swift
[47/61] Compiling StructuredCFG Terminal.swift
[48/61] Compiling StructuredCFG ZeroOrMoreExpression.swift
[49/61] Compiling StructuredCFG GrammarComponent.swift
[50/61] Compiling StructuredCFG Optional+GrammarComponent.swift
[51/61] Compiling StructuredCFG StatementsBuilder.swift
[52/61] Compiling StructuredCFG Equals.swift
[53/61] Compiling StructuredCFG Expression+IsPrimary.swift
[54/61] Compiling StructuredCFG Expression+Simplified.swift
[55/61] Emitting module IssueReportingTestSupport
BUILD FAILURE 6.2 wasm