Build Information
Failed to build swift-markdown, reference main (c281ba
), with Swift 6.1 for Wasm on 3 Jun 2025 11:51:30 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4609320-3":/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/swiftlang/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/swiftlang/swift-markdown
* branch main -> FETCH_HEAD
* [new branch] main -> origin/main
HEAD is now at c281baa Refer to newline characters consistently in documentation (#232)
Cloned https://github.com/swiftlang/swift-markdown.git
Revision (git rev-parse @):
c281baa59e2b0d3ddc72848741217af811f66d39
SPI manifest file found: $PWD/.spi.yml
SUCCESS checkout https://github.com/swiftlang/swift-markdown.git at main
========================================
Build
========================================
Selected platform: wasm
Swift version: 6.1
Building package at path: $PWD
https://github.com/swiftlang/swift-markdown.git
https://github.com/swiftlang/swift-markdown.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
"dependencies" : [
{
"identity" : "swift-cmark",
"requirement" : {
"branch" : [
"gfm"
]
},
"type" : "sourceControl",
"url" : "https://github.com/swiftlang/swift-cmark.git"
},
{
"identity" : "swift-docc-plugin",
"requirement" : {
"range" : [
{
"lower_bound" : "1.1.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" : "XMLConverter",
"targets" : [
"XMLConverter"
],
"type" : {
"snippet" : null
}
},
{
"name" : "ParseDocumentFile",
"targets" : [
"ParseDocumentFile"
],
"type" : {
"snippet" : null
}
},
{
"name" : "ParseDocumentString",
"targets" : [
"ParseDocumentString"
],
"type" : {
"snippet" : null
}
},
{
"name" : "RemoveElementKind",
"targets" : [
"RemoveElementKind"
],
"type" : {
"snippet" : null
}
},
{
"name" : "ReplaceText",
"targets" : [
"ReplaceText"
],
"type" : {
"snippet" : null
}
},
{
"name" : "PreferredHeadingStyle",
"targets" : [
"PreferredHeadingStyle"
],
"type" : {
"snippet" : null
}
},
{
"name" : "ThematicBreakCharacter",
"targets" : [
"ThematicBreakCharacter"
],
"type" : {
"snippet" : null
}
},
{
"name" : "MaximumWidth",
"targets" : [
"MaximumWidth"
],
"type" : {
"snippet" : null
}
},
{
"name" : "CondenseAutolinks",
"targets" : [
"CondenseAutolinks"
],
"type" : {
"snippet" : null
}
},
{
"name" : "EmphasisMarkers",
"targets" : [
"EmphasisMarkers"
],
"type" : {
"snippet" : null
}
},
{
"name" : "OrderedListNumerals",
"targets" : [
"OrderedListNumerals"
],
"type" : {
"snippet" : null
}
},
{
"name" : "CustomLinePrefix",
"targets" : [
"CustomLinePrefix"
],
"type" : {
"snippet" : null
}
},
{
"name" : "UseCodeFence",
"targets" : [
"UseCodeFence"
],
"type" : {
"snippet" : null
}
},
{
"name" : "UnorderedListMarker",
"targets" : [
"UnorderedListMarker"
],
"type" : {
"snippet" : null
}
},
{
"name" : "DefaultFormatting",
"targets" : [
"DefaultFormatting"
],
"type" : {
"snippet" : null
}
},
{
"name" : "ChildThrough",
"targets" : [
"ChildThrough"
],
"type" : {
"snippet" : null
}
},
{
"name" : "LinkCollector",
"targets" : [
"LinkCollector"
],
"type" : {
"snippet" : null
}
}
],
"targets" : [
{
"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/SourceLocationTests.swift",
"Inline Nodes/ImageTests.swift",
"Inline Nodes/InlineAttributesTests.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/DoxygenCommandParserTests.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/HTMLFormatterTests.swift",
"Visitors/MarkupFormatterTests.swift",
"Visitors/MarkupRewriterTests.swift",
"Visitors/MarkupTreeDumperTests.swift",
"Visitors/MarkupVisitorTests.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",
"XMLConverter",
"ParseDocumentFile",
"ParseDocumentString",
"RemoveElementKind",
"ReplaceText",
"PreferredHeadingStyle",
"ThematicBreakCharacter",
"MaximumWidth",
"CondenseAutolinks",
"EmphasisMarkers",
"OrderedListNumerals",
"CustomLinePrefix",
"UseCodeFence",
"UnorderedListMarker",
"DefaultFormatting",
"ChildThrough",
"LinkCollector"
],
"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/Doxygen Commands/DoxygenAbstract.swift",
"Block Nodes/Block Container Blocks/Doxygen Commands/DoxygenDiscussion.swift",
"Block Nodes/Block Container Blocks/Doxygen Commands/DoxygenNote.swift",
"Block Nodes/Block Container Blocks/Doxygen Commands/DoxygenParameter.swift",
"Block Nodes/Block Container Blocks/Doxygen Commands/DoxygenReturns.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/InlineAttributes.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/HTMLFormatter.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",
"XMLConverter",
"ParseDocumentFile",
"ParseDocumentString",
"RemoveElementKind",
"ReplaceText",
"PreferredHeadingStyle",
"ThematicBreakCharacter",
"MaximumWidth",
"CondenseAutolinks",
"EmphasisMarkers",
"OrderedListNumerals",
"CustomLinePrefix",
"UseCodeFence",
"UnorderedListMarker",
"DefaultFormatting",
"ChildThrough",
"LinkCollector"
],
"sources" : [
"CAtomic.c"
],
"type" : "library"
},
{
"c99name" : "XMLConverter",
"module_type" : "SwiftTarget",
"name" : "XMLConverter",
"path" : "Snippets/Visitors",
"product_memberships" : [
"XMLConverter"
],
"sources" : [
"XMLConverter.swift"
],
"target_dependencies" : [
"Markdown"
],
"type" : "snippet"
},
{
"c99name" : "ParseDocumentFile",
"module_type" : "SwiftTarget",
"name" : "ParseDocumentFile",
"path" : "Snippets/Parsing",
"product_memberships" : [
"ParseDocumentFile"
],
"sources" : [
"ParseDocumentFile.swift"
],
"target_dependencies" : [
"Markdown"
],
"type" : "snippet"
},
{
"c99name" : "ParseDocumentString",
"module_type" : "SwiftTarget",
"name" : "ParseDocumentString",
"path" : "Snippets/Parsing",
"product_memberships" : [
"ParseDocumentString"
],
"sources" : [
"ParseDocumentString.swift"
],
"target_dependencies" : [
"Markdown"
],
"type" : "snippet"
},
{
"c99name" : "RemoveElementKind",
"module_type" : "SwiftTarget",
"name" : "RemoveElementKind",
"path" : "Snippets/Rewriters",
"product_memberships" : [
"RemoveElementKind"
],
"sources" : [
"RemoveElementKind.swift"
],
"target_dependencies" : [
"Markdown"
],
"type" : "snippet"
},
{
"c99name" : "ReplaceText",
"module_type" : "SwiftTarget",
"name" : "ReplaceText",
"path" : "Snippets/Rewriters",
"product_memberships" : [
"ReplaceText"
],
"sources" : [
"ReplaceText.swift"
],
"target_dependencies" : [
"Markdown"
],
"type" : "snippet"
},
{
"c99name" : "PreferredHeadingStyle",
"module_type" : "SwiftTarget",
"name" : "PreferredHeadingStyle",
"path" : "Snippets/Formatting",
"product_memberships" : [
"PreferredHeadingStyle"
],
"sources" : [
"PreferredHeadingStyle.swift"
],
"target_dependencies" : [
"Markdown"
],
"type" : "snippet"
},
{
"c99name" : "ThematicBreakCharacter",
"module_type" : "SwiftTarget",
"name" : "ThematicBreakCharacter",
"path" : "Snippets/Formatting",
"product_memberships" : [
"ThematicBreakCharacter"
],
"sources" : [
"ThematicBreakCharacter.swift"
],
"target_dependencies" : [
"Markdown"
],
"type" : "snippet"
},
{
"c99name" : "MaximumWidth",
"module_type" : "SwiftTarget",
"name" : "MaximumWidth",
"path" : "Snippets/Formatting",
"product_memberships" : [
"MaximumWidth"
],
"sources" : [
"MaximumWidth.swift"
],
"target_dependencies" : [
"Markdown"
],
"type" : "snippet"
},
{
"c99name" : "CondenseAutolinks",
"module_type" : "SwiftTarget",
"name" : "CondenseAutolinks",
"path" : "Snippets/Formatting",
"product_memberships" : [
"CondenseAutolinks"
],
"sources" : [
"CondenseAutolinks.swift"
],
"target_dependencies" : [
"Markdown"
],
"type" : "snippet"
},
{
"c99name" : "EmphasisMarkers",
"module_type" : "SwiftTarget",
"name" : "EmphasisMarkers",
"path" : "Snippets/Formatting",
"product_memberships" : [
"EmphasisMarkers"
],
"sources" : [
"EmphasisMarkers.swift"
],
"target_dependencies" : [
"Markdown"
],
"type" : "snippet"
},
{
"c99name" : "OrderedListNumerals",
"module_type" : "SwiftTarget",
"name" : "OrderedListNumerals",
"path" : "Snippets/Formatting",
"product_memberships" : [
"OrderedListNumerals"
],
"sources" : [
"OrderedListNumerals.swift"
],
"target_dependencies" : [
"Markdown"
],
"type" : "snippet"
},
{
"c99name" : "CustomLinePrefix",
"module_type" : "SwiftTarget",
"name" : "CustomLinePrefix",
"path" : "Snippets/Formatting",
"product_memberships" : [
"CustomLinePrefix"
],
"sources" : [
"CustomLinePrefix.swift"
],
"target_dependencies" : [
"Markdown"
],
"type" : "snippet"
},
{
"c99name" : "UseCodeFence",
"module_type" : "SwiftTarget",
"name" : "UseCodeFence",
"path" : "Snippets/Formatting",
"product_memberships" : [
"UseCodeFence"
],
"sources" : [
"UseCodeFence.swift"
],
"target_dependencies" : [
"Markdown"
],
"type" : "snippet"
},
{
"c99name" : "UnorderedListMarker",
"module_type" : "SwiftTarget",
"name" : "UnorderedListMarker",
"path" : "Snippets/Formatting",
"product_memberships" : [
"UnorderedListMarker"
],
"sources" : [
"UnorderedListMarker.swift"
],
"target_dependencies" : [
"Markdown"
],
"type" : "snippet"
},
{
"c99name" : "DefaultFormatting",
"module_type" : "SwiftTarget",
"name" : "DefaultFormatting",
"path" : "Snippets/Formatting",
"product_memberships" : [
"DefaultFormatting"
],
"sources" : [
"DefaultFormatting.swift"
],
"target_dependencies" : [
"Markdown"
],
"type" : "snippet"
},
{
"c99name" : "ChildThrough",
"module_type" : "SwiftTarget",
"name" : "ChildThrough",
"path" : "Snippets/Querying",
"product_memberships" : [
"ChildThrough"
],
"sources" : [
"ChildThrough.swift"
],
"target_dependencies" : [
"Markdown"
],
"type" : "snippet"
},
{
"c99name" : "LinkCollector",
"module_type" : "SwiftTarget",
"name" : "LinkCollector",
"path" : "Snippets/Walkers",
"product_memberships" : [
"LinkCollector"
],
"sources" : [
"LinkCollector.swift"
],
"target_dependencies" : [
"Markdown"
],
"type" : "snippet"
}
],
"tools_version" : "5.7"
}
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-3":/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/swiftlang/swift-cmark.git
[1/18098] Fetching swift-cmark
Fetched https://github.com/swiftlang/swift-cmark.git from cache (0.99s)
Fetching https://github.com/apple/swift-docc-plugin
[1/2049] Fetching swift-docc-plugin
Fetched https://github.com/apple/swift-docc-plugin from cache (0.46s)
Computing version for https://github.com/apple/swift-docc-plugin
Computed https://github.com/apple/swift-docc-plugin at 1.4.3 (1.02s)
Fetching https://github.com/swiftlang/swift-docc-symbolkit
[1/3395] Fetching swift-docc-symbolkit
Fetched https://github.com/swiftlang/swift-docc-symbolkit from cache (0.38s)
Computing version for https://github.com/swiftlang/swift-docc-symbolkit
Computed https://github.com/swiftlang/swift-docc-symbolkit at 1.0.0 (1.77s)
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
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/swiftlang/swift-cmark.git
Working copy of https://github.com/swiftlang/swift-cmark.git resolved at gfm (b97d094)
[1/1] Compiling plugin Swift-DocC Preview
[2/2] Compiling plugin Swift-DocC
Building for debugging...
[2/108] Compiling cmark-gfm buffer.c
[3/108] Compiling CAtomic CAtomic.c
[4/108] Compiling cmark-gfm cmark_ctype.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'; did you mean 'free'?
25 | c->prev = prev;
| ^~~~
| free
/root/.swiftpm/swift-sdks/swift-wasm-6.1-RELEASE-wasm32-unknown-wasi.artifactbundle/6.1-RELEASE-wasm32-unknown-wasi/wasm32-unknown-wasi/WASI.sdk/include/wasm32-wasi/__functions_malloc.h:14:6: note: 'free' declared here
14 | void free(void *__ptr);
| ^
/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.
[5/108] Compiling cmark-gfm arena.c
[5/108] Compiling cmark-gfm commonmark.c
[5/108] Compiling cmark-gfm-extensions strikethrough.c
[5/108] Compiling cmark-gfm-extensions tagfilter.c
[5/108] Compiling cmark-gfm-extensions tasklist.c
[5/108] Compiling cmark-gfm-extensions table.c
[5/108] Compiling cmark-gfm blocks.c
[5/108] Write swift-version-24593BA9C3E375BF.txt
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-3":/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/105] Write sources
[16/105] Compiling cmark-gfm-extensions tagfilter.c
[17/105] Compiling cmark-gfm-extensions strikethrough.c
/host/spi-builder-workspace/.build/checkouts/swift-cmark/extensions/core-extensions.c:22:1: error: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int]
22 | CMARK_DEFINE_ONCE(registered);
| ^
| int
/host/spi-builder-workspace/.build/checkouts/swift-cmark/extensions/core-extensions.c:22:19: error: a parameter list without types is only allowed in a function definition
22 | CMARK_DEFINE_ONCE(registered);
| ^
/host/spi-builder-workspace/.build/checkouts/swift-cmark/extensions/core-extensions.c:30:3: error: call to undeclared function 'CMARK_RUN_ONCE'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
30 | CMARK_RUN_ONCE(registered, register_plugins);
| ^
/host/spi-builder-workspace/.build/checkouts/swift-cmark/extensions/core-extensions.c:30:18: error: use of undeclared identifier 'registered'
30 | CMARK_RUN_ONCE(registered, register_plugins);
| ^
4 errors generated.
[18/105] Compiling cmark-gfm-extensions core-extensions.c
[18/105] Compiling cmark-gfm utf8.c
[18/105] Compiling cmark-gfm xml.c
[18/105] Compiling cmark-gfm-extensions autolink.c
[18/105] Compiling cmark-gfm-extensions table.c
[18/105] Compiling cmark-gfm-extensions ext_scanners.c
[18/105] Compiling cmark-gfm-extensions tasklist.c
[18/105] Write swift-version-24593BA9C3E375BF.txt
BUILD FAILURE 6.1 wasm