The Swift Package Index logo.Swift Package Index

Has it really been five years since Swift Package Index launched? Read our anniversary blog post!

Build Information

Failed to build swift-markdown, reference main (83188d), with Swift 6.1 for Wasm on 29 May 2025 02:45:37 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4609320-0":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.63.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/shaps80/swift-markdown.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/shaps80/swift-markdown
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at 83188de Updates package to depend on my own fork
Cloned https://github.com/shaps80/swift-markdown.git
Revision (git rev-parse @):
83188dee2dbccfa70124c56055dd0b759d3e4ec3
SUCCESS checkout https://github.com/shaps80/swift-markdown.git at main
========================================
Build
========================================
Selected platform:         wasm
Swift version:             6.1
Building package at path:  $PWD
https://github.com/shaps80/swift-markdown.git
https://github.com/shaps80/swift-markdown.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
  "dependencies" : [
    {
      "identity" : "swift-cmark",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "0.2.0",
            "upper_bound" : "0.3.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/shaps80/swift-cmark.git"
    },
    {
      "identity" : "swift-argument-parser",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "1.0.1",
            "upper_bound" : "1.1.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/apple/swift-argument-parser"
    },
    {
      "identity" : "swift-docc-plugin",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "1.0.0",
            "upper_bound" : "2.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/apple/swift-docc-plugin"
    }
  ],
  "manifest_display_name" : "swift-markdown",
  "name" : "swift-markdown",
  "path" : "/host/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "Markdown",
      "targets" : [
        "Markdown"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    },
    {
      "name" : "markdown-tool",
      "targets" : [
        "markdown-tool"
      ],
      "type" : {
        "executable" : null
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "markdown_tool",
      "module_type" : "SwiftTarget",
      "name" : "markdown-tool",
      "path" : "Sources/markdown-tool",
      "product_dependencies" : [
        "ArgumentParser"
      ],
      "product_memberships" : [
        "markdown-tool"
      ],
      "sources" : [
        "Commands/DumpTreeCommand.swift",
        "Commands/FormatCommand.swift",
        "main.swift"
      ],
      "target_dependencies" : [
        "Markdown"
      ],
      "type" : "executable"
    },
    {
      "c99name" : "MarkdownTests",
      "module_type" : "SwiftTarget",
      "name" : "MarkdownTests",
      "path" : "Tests/MarkdownTests",
      "resources" : [
        {
          "path" : "/host/spi-builder-workspace/Tests/MarkdownTests/Visitors/Everything.md",
          "rule" : {
            "process" : {
            }
          }
        }
      ],
      "sources" : [
        "Base/AtomicCounterTests.swift",
        "Base/HierarchyTests.swift",
        "Base/MarkupIdentifierTests.swift",
        "Base/MarkupTests.swift",
        "Base/ParsedRangePreservedAfterEditing.swift",
        "Base/PlainTextConvertibleMarkupTests.swift",
        "Base/RawMarkupTests.swift",
        "Base/RawMarkupToMarkupTests.swift",
        "Base/StableIdentifierTests.swift",
        "Block Nodes/CodeBlockTests.swift",
        "Block Nodes/DocumentTests.swift",
        "Block Nodes/HTMLBlockTests.swift",
        "Block Nodes/HeadingTests.swift",
        "Block Nodes/ParagraphTests.swift",
        "Block Nodes/TableTests.swift",
        "Infrastructure/SourceLoacationTests.swift",
        "Inline Nodes/ImageTests.swift",
        "Inline Nodes/InlineCodeTests.swift",
        "Inline Nodes/InlineHTMLTests.swift",
        "Inline Nodes/LineBreakTests.swift",
        "Inline Nodes/LinkTests.swift",
        "Inline Nodes/SoftBreakTests.swift",
        "Inline Nodes/SymbolLinkTests.swift",
        "Inline Nodes/TextTests.swift",
        "Interpretive Nodes/AsideTests.swift",
        "Parsing/BacktickTests.swift",
        "Parsing/BlockDirectiveParserTests.swift",
        "Parsing/CommonMarkConverterTests.swift",
        "Parsing/SourceURLTests.swift",
        "Performance/EditPerformanceTests.swift",
        "Performance/MarkupChildrenPerformanceTests.swift",
        "Structural Restrictions/BasicBlockContainerTests.swift",
        "Structural Restrictions/BasicInlineContainerTests.swift",
        "Structural Restrictions/ListItemContainerTests.swift",
        "Utility/AssertElementDidntChange.swift",
        "Visitors/MarkupFormatterTests.swift",
        "Visitors/MarkupRewriterTests.swift",
        "Visitors/MarkupTreeDumperTests.swift",
        "Visitors/MarkupWalkerTests.swift"
      ],
      "target_dependencies" : [
        "Markdown"
      ],
      "type" : "test"
    },
    {
      "c99name" : "Markdown",
      "module_type" : "SwiftTarget",
      "name" : "Markdown",
      "path" : "Sources/Markdown",
      "product_dependencies" : [
        "cmark-gfm",
        "cmark-gfm-extensions"
      ],
      "product_memberships" : [
        "Markdown",
        "markdown-tool"
      ],
      "sources" : [
        "Base/ChildIndexPath.swift",
        "Base/DirectiveArgument.swift",
        "Base/Document.swift",
        "Base/LiteralMarkup.swift",
        "Base/Markup.swift",
        "Base/MarkupChildren.swift",
        "Base/MarkupData.swift",
        "Base/PlainTextConvertibleMarkup.swift",
        "Base/RawMarkup.swift",
        "Block Nodes/Block Container Blocks/BlockDirective.swift",
        "Block Nodes/Block Container Blocks/BlockQuote.swift",
        "Block Nodes/Block Container Blocks/CustomBlock.swift",
        "Block Nodes/Block Container Blocks/ListItem.swift",
        "Block Nodes/Block Container Blocks/OrderedList.swift",
        "Block Nodes/Block Container Blocks/UnorderedList.swift",
        "Block Nodes/Inline Container Blocks/Paragraph.swift",
        "Block Nodes/Leaf Blocks/CodeBlock.swift",
        "Block Nodes/Leaf Blocks/HTMLBlock.swift",
        "Block Nodes/Leaf Blocks/Heading.swift",
        "Block Nodes/Leaf Blocks/ThematicBreak.swift",
        "Block Nodes/Tables/Table.swift",
        "Block Nodes/Tables/TableBody.swift",
        "Block Nodes/Tables/TableCell.swift",
        "Block Nodes/Tables/TableCellContainer.swift",
        "Block Nodes/Tables/TableHead.swift",
        "Block Nodes/Tables/TableRow.swift",
        "Infrastructure/Replacement.swift",
        "Infrastructure/SourceLocation.swift",
        "Inline Nodes/Inline Containers/Emphasis.swift",
        "Inline Nodes/Inline Containers/Image.swift",
        "Inline Nodes/Inline Containers/Link.swift",
        "Inline Nodes/Inline Containers/Strikethrough.swift",
        "Inline Nodes/Inline Containers/Strong.swift",
        "Inline Nodes/Inline Leaves/CustomInline.swift",
        "Inline Nodes/Inline Leaves/InlineCode.swift",
        "Inline Nodes/Inline Leaves/InlineHTML.swift",
        "Inline Nodes/Inline Leaves/LineBreak.swift",
        "Inline Nodes/Inline Leaves/SoftBreak.swift",
        "Inline Nodes/Inline Leaves/SymbolLink.swift",
        "Inline Nodes/Inline Leaves/Text.swift",
        "Interpretive Nodes/Aside.swift",
        "Parser/BlockDirectiveParser.swift",
        "Parser/CommonMarkConverter.swift",
        "Parser/LazySplitLines.swift",
        "Parser/ParseOptions.swift",
        "Parser/RangeAdjuster.swift",
        "Parser/RangerTracker.swift",
        "Rewriter/MarkupRewriter.swift",
        "Structural Restrictions/BasicBlockContainer.swift",
        "Structural Restrictions/BasicInlineContainer.swift",
        "Structural Restrictions/BlockContainer.swift",
        "Structural Restrictions/BlockMarkup.swift",
        "Structural Restrictions/InlineContainer.swift",
        "Structural Restrictions/InlineMarkup.swift",
        "Structural Restrictions/ListItemContainer.swift",
        "Utility/AtomicCounter.swift",
        "Utility/CharacterExtensions.swift",
        "Utility/CollectionExtensions.swift",
        "Utility/StringExtensions.swift",
        "Visitor/MarkupVisitor.swift",
        "Walker/MarkupWalker.swift",
        "Walker/Walkers/MarkupFormatter.swift",
        "Walker/Walkers/MarkupTreeDumper.swift"
      ],
      "target_dependencies" : [
        "CAtomic"
      ],
      "type" : "library"
    },
    {
      "c99name" : "CAtomic",
      "module_type" : "ClangTarget",
      "name" : "CAtomic",
      "path" : "Sources/CAtomic",
      "product_memberships" : [
        "Markdown",
        "markdown-tool"
      ],
      "sources" : [
        "CAtomic.c"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.5"
}
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-0":/host -w "$PWD" registry.gitlab.com/finestructure/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 finestructure/spi-images
Digest: sha256:7e37457820e5f17452a98118754f345f2619722c485f2db0d8b666940a83afd2
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest
Fetching https://github.com/shaps80/swift-cmark.git
Fetching https://github.com/apple/swift-argument-parser
Fetching https://github.com/apple/swift-docc-plugin
[1/2049] Fetching swift-docc-plugin
[83/14662] Fetching swift-docc-plugin, swift-cmark
[14663/30013] Fetching swift-docc-plugin, swift-cmark, swift-argument-parser
Fetched https://github.com/apple/swift-docc-plugin from cache (1.47s)
Fetched https://github.com/apple/swift-argument-parser from cache (1.48s)
Fetched https://github.com/shaps80/swift-cmark.git from cache (1.48s)
Computing version for https://github.com/shaps80/swift-cmark.git
Computed https://github.com/shaps80/swift-cmark.git at 0.2.0 (2.01s)
Computing version for https://github.com/apple/swift-argument-parser
Computed https://github.com/apple/swift-argument-parser at 1.0.3 (0.58s)
Computing version for https://github.com/apple/swift-docc-plugin
Computed https://github.com/apple/swift-docc-plugin at 1.4.3 (0.49s)
Fetching https://github.com/swiftlang/swift-docc-symbolkit
[1/3391] Fetching swift-docc-symbolkit
Fetched https://github.com/swiftlang/swift-docc-symbolkit from cache (0.39s)
Computing version for https://github.com/swiftlang/swift-docc-symbolkit
Computed https://github.com/swiftlang/swift-docc-symbolkit at 1.0.0 (1.00s)
Creating working copy for https://github.com/shaps80/swift-cmark.git
Working copy of https://github.com/shaps80/swift-cmark.git resolved at 0.2.0
Creating working copy for https://github.com/swiftlang/swift-docc-symbolkit
Working copy of https://github.com/swiftlang/swift-docc-symbolkit resolved at 1.0.0
Creating working copy for https://github.com/apple/swift-argument-parser
Working copy of https://github.com/apple/swift-argument-parser resolved at 1.0.3
Creating working copy for https://github.com/apple/swift-docc-plugin
Working copy of https://github.com/apple/swift-docc-plugin resolved at 1.4.3
[1/1] Compiling plugin Swift-DocC Preview
[2/2] Compiling plugin Swift-DocC
Building for debugging...
[2/48] Compiling cmark-gfm cmark_ctype.c
[3/48] Write sources
[4/48] Compiling CAtomic CAtomic.c
[5/48] Compiling cmark-gfm cmark.c
[6/48] Compiling cmark-gfm buffer.c
/host/spi-builder-workspace/.build/checkouts/swift-cmark/src/arena.c:10:1: error: invalid storage class specifier in function declarator
   10 | static struct arena_chunk {
      | ^
/host/spi-builder-workspace/.build/checkouts/swift-cmark/src/arena.c:15:4: error: parameter named 'A' is missing
   15 | } *A = NULL;
      |    ^
/host/spi-builder-workspace/.build/checkouts/swift-cmark/src/arena.c:15:5: error: expected ';' at end of declaration
   15 | } *A = NULL;
      |     ^
      |     ;
/host/spi-builder-workspace/.build/checkouts/swift-cmark/src/arena.c:17:1: error: invalid storage class specifier in function declarator
   17 | static struct arena_chunk *alloc_arena_chunk(size_t sz, struct arena_chunk *prev) {
      | ^
/host/spi-builder-workspace/.build/checkouts/swift-cmark/src/arena.c:17:28: error: parameter named 'alloc_arena_chunk' is missing
   17 | static struct arena_chunk *alloc_arena_chunk(size_t sz, struct arena_chunk *prev) {
      |                            ^
/host/spi-builder-workspace/.build/checkouts/swift-cmark/src/arena.c:17:82: error: expected ';' at end of declaration
   17 | static struct arena_chunk *alloc_arena_chunk(size_t sz, struct arena_chunk *prev) {
      |                                                                                  ^
      |                                                                                  ;
/host/spi-builder-workspace/.build/checkouts/swift-cmark/src/arena.c:8:19: error: parameter 'arena' was not declared, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int]
    8 | CMARK_DEFINE_LOCK(arena)
      |                   ^
    9 |
   10 | static struct arena_chunk {
   11 |   size_t sz, used;
   12 |   uint8_t push_point;
   13 |   void *ptr;
   14 |   struct arena_chunk *prev;
   15 | } *A = NULL;
   16 |
   17 | static struct arena_chunk *alloc_arena_chunk(size_t sz, struct arena_chunk *prev) {
/host/spi-builder-workspace/.build/checkouts/swift-cmark/src/arena.c:8:1: error: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int]
    8 | CMARK_DEFINE_LOCK(arena)
      | ^
      | int
/host/spi-builder-workspace/.build/checkouts/swift-cmark/src/arena.c:18:65: error: invalid application of 'sizeof' to an incomplete type 'struct arena_chunk'
   18 |   struct arena_chunk *c = (struct arena_chunk *)calloc(1, sizeof(*c));
      |                                                                 ^~~~
/host/spi-builder-workspace/.build/checkouts/swift-cmark/src/arena.c:18:10: note: forward declaration of 'struct arena_chunk'
   18 |   struct arena_chunk *c = (struct arena_chunk *)calloc(1, sizeof(*c));
      |          ^
/host/spi-builder-workspace/.build/checkouts/swift-cmark/src/arena.c:21:4: error: incomplete definition of type 'struct arena_chunk'
   21 |   c->sz = sz;
      |   ~^
/host/spi-builder-workspace/.build/checkouts/swift-cmark/src/arena.c:18:10: note: forward declaration of 'struct arena_chunk'
   18 |   struct arena_chunk *c = (struct arena_chunk *)calloc(1, sizeof(*c));
      |          ^
/host/spi-builder-workspace/.build/checkouts/swift-cmark/src/arena.c:21:11: error: use of undeclared identifier 'sz'
   21 |   c->sz = sz;
      |           ^
/host/spi-builder-workspace/.build/checkouts/swift-cmark/src/arena.c:22:4: error: incomplete definition of type 'struct arena_chunk'
   22 |   c->ptr = calloc(1, sz);
      |   ~^
/host/spi-builder-workspace/.build/checkouts/swift-cmark/src/arena.c:18:10: note: forward declaration of 'struct arena_chunk'
   18 |   struct arena_chunk *c = (struct arena_chunk *)calloc(1, sizeof(*c));
      |          ^
/host/spi-builder-workspace/.build/checkouts/swift-cmark/src/arena.c:22:22: error: use of undeclared identifier 'sz'
   22 |   c->ptr = calloc(1, sz);
      |                      ^
/host/spi-builder-workspace/.build/checkouts/swift-cmark/src/arena.c:23:9: error: incomplete definition of type 'struct arena_chunk'
   23 |   if (!c->ptr)
      |        ~^
/host/spi-builder-workspace/.build/checkouts/swift-cmark/src/arena.c:18:10: note: forward declaration of 'struct arena_chunk'
   18 |   struct arena_chunk *c = (struct arena_chunk *)calloc(1, sizeof(*c));
      |          ^
/host/spi-builder-workspace/.build/checkouts/swift-cmark/src/arena.c:25:4: error: incomplete definition of type 'struct arena_chunk'
   25 |   c->prev = prev;
      |   ~^
/host/spi-builder-workspace/.build/checkouts/swift-cmark/src/arena.c:18:10: note: forward declaration of 'struct arena_chunk'
   18 |   struct arena_chunk *c = (struct arena_chunk *)calloc(1, sizeof(*c));
      |          ^
/host/spi-builder-workspace/.build/checkouts/swift-cmark/src/arena.c:25:13: error: use of undeclared identifier 'prev'
   25 |   c->prev = prev;
      |             ^
/host/spi-builder-workspace/.build/checkouts/swift-cmark/src/arena.c:26:10: error: incompatible pointer to integer conversion returning 'struct arena_chunk *' from a function with result type 'int' [-Wint-conversion]
   26 |   return c;
      |          ^
/host/spi-builder-workspace/.build/checkouts/swift-cmark/src/arena.c:30:3: error: call to undeclared function 'CMARK_INITIALIZE_AND_LOCK'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
   30 |   CMARK_INITIALIZE_AND_LOCK(arena);
      |   ^
/host/spi-builder-workspace/.build/checkouts/swift-cmark/src/arena.c:30:29: error: use of undeclared identifier 'arena'
   30 |   CMARK_INITIALIZE_AND_LOCK(arena);
      |                             ^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
[7/48] Compiling cmark-gfm arena.c
[7/48] Compiling cmark-gfm-extensions table.c
[7/48] Compiling cmark-gfm-extensions tagfilter.c
[7/48] Compiling cmark-gfm-extensions strikethrough.c
[7/48] Compiling cmark-gfm-extensions ext_scanners.c
[7/48] Compiling cmark-gfm-extensions tasklist.c
[7/48] Compiling cmark-gfm blocks.c
[7/48] Write swift-version-24593BA9C3E375BF.txt
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-0":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1
wasm-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:7e37457820e5f17452a98118754f345f2619722c485f2db0d8b666940a83afd2
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest
[0/1] Planning build
[1/1] Compiling plugin Swift-DocC Preview
[2/2] Compiling plugin Swift-DocC
Building for debugging...
[2/43] Compiling cmark-gfm-extensions tagfilter.c
[3/43] Compiling cmark-gfm-extensions autolink.c
/host/spi-builder-workspace/.build/checkouts/swift-cmark/extensions/core-extensions.c:21:1: error: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int]
   21 | CMARK_DEFINE_ONCE(registered);
      | ^
      | int
/host/spi-builder-workspace/.build/checkouts/swift-cmark/extensions/core-extensions.c:21:19: error: a parameter list without types is only allowed in a function definition
   21 | CMARK_DEFINE_ONCE(registered);
      |                   ^
/host/spi-builder-workspace/.build/checkouts/swift-cmark/extensions/core-extensions.c:28:3: error: call to undeclared function 'CMARK_RUN_ONCE'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
   28 |   CMARK_RUN_ONCE(registered, register_plugins);
      |   ^
/host/spi-builder-workspace/.build/checkouts/swift-cmark/extensions/core-extensions.c:28:18: error: use of undeclared identifier 'registered'
   28 |   CMARK_RUN_ONCE(registered, register_plugins);
      |                  ^
4 errors generated.
[4/43] Compiling cmark-gfm-extensions core-extensions.c
[4/43] Compiling cmark-gfm-extensions strikethrough.c
[4/43] Compiling cmark-gfm-extensions ext_scanners.c
[4/43] Compiling cmark-gfm utf8.c
[4/43] Compiling cmark-gfm xml.c
[4/43] Compiling cmark-gfm-extensions table.c
[4/43] Compiling cmark-gfm-extensions tasklist.c
[4/43] Write swift-version-24593BA9C3E375BF.txt
BUILD FAILURE 6.1 wasm