Build Information
Failed to build CommonMark, reference main (6fc9d0), with Swift 6.3 for macOS (SPM) on 12 Apr 2026 05:02:44 UTC.
Build Command
env DEVELOPER_DIR=/Applications/Xcode-26.4.0.app xcrun swift build --arch arm64Build Log
========================================
RunAll
========================================
Builder version: 4.70.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/SwiftDocOrg/CommonMark.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/SwiftDocOrg/CommonMark
* branch main -> FETCH_HEAD
* [new branch] main -> origin/main
HEAD is now at 6fc9d04 Update to Swift 5.4 and @resultBuilder (#25)
Cloned https://github.com/SwiftDocOrg/CommonMark.git
Revision (git rev-parse @):
6fc9d04ff53628d5edd66c110e9f724c01146791
SUCCESS checkout https://github.com/SwiftDocOrg/CommonMark.git at main
Fetching https://github.com/SwiftDocOrg/swift-cmark.git
[1/12555] Fetching swift-cmark
Fetched https://github.com/SwiftDocOrg/swift-cmark.git from cache (1.34s)
Computing version for https://github.com/SwiftDocOrg/swift-cmark.git
Computed https://github.com/SwiftDocOrg/swift-cmark.git at 0.29.0+20210102.9c8096a (3.62s)
Creating working copy for https://github.com/SwiftDocOrg/swift-cmark.git
Working copy of https://github.com/SwiftDocOrg/swift-cmark.git resolved at 0.29.0+20210102.9c8096a
========================================
ResolveProductDependencies
========================================
Resolving dependencies ...
{
"identity": ".resolve-product-dependencies",
"name": "resolve-dependencies",
"url": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies",
"version": "unspecified",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies",
"traits": [
"default"
],
"dependencies": [
{
"identity": "commonmark",
"name": "CommonMark",
"url": "https://github.com/SwiftDocOrg/CommonMark.git",
"version": "unspecified",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/CommonMark",
"traits": [
"default"
],
"dependencies": [
{
"identity": "swift-cmark",
"name": "cmark",
"url": "https://github.com/SwiftDocOrg/swift-cmark.git",
"version": "0.29.0+20210102.9c8096a",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/swift-cmark",
"traits": [
"default"
],
"dependencies": [
]
}
]
}
]
}
Fetching https://github.com/SwiftDocOrg/CommonMark.git
[1/1175] Fetching commonmark
Fetched https://github.com/SwiftDocOrg/CommonMark.git from cache (0.82s)
Fetching https://github.com/SwiftDocOrg/swift-cmark.git from cache
Fetched https://github.com/SwiftDocOrg/swift-cmark.git from cache (0.74s)
Computing version for https://github.com/SwiftDocOrg/swift-cmark.git
Computed https://github.com/SwiftDocOrg/swift-cmark.git at 0.29.0+20210102.9c8096a (0.81s)
Creating working copy for https://github.com/SwiftDocOrg/swift-cmark.git
Working copy of https://github.com/SwiftDocOrg/swift-cmark.git resolved at 0.29.0+20210102.9c8096a
Creating working copy for https://github.com/SwiftDocOrg/CommonMark.git
Working copy of https://github.com/SwiftDocOrg/CommonMark.git resolved at main (6fc9d04)
warning: '.resolve-product-dependencies': dependency 'commonmark' is not used by any target
Found 1 product dependencies
- cmark
========================================
Build
========================================
Selected platform: macosSpm
Swift version: 6.3
Building package at path: $PWD
https://github.com/SwiftDocOrg/CommonMark.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-26.4.0.app xcrun swift build --arch arm64
Building for debugging...
[0/21] Write swift-version--6988338F2F200930.txt
[1/21] Compiling cmark cmark_ctype.c
[2/21] Compiling cmark houdini_html_e.c
[2/21] Compiling cmark houdini_html_u.c
[4/21] Compiling cmark houdini_href_e.c
[5/21] Compiling cmark references.c
[6/21] Compiling cmark commonmark.c
[7/21] Compiling cmark man.c
[8/21] Compiling cmark latex.c
[9/21] Compiling cmark node.c
[10/21] Compiling cmark render.c
[11/21] Write sources
[12/21] Compiling cmark xml.c
[13/21] Compiling cmark cmark.c
[14/21] Compiling cmark iterator.c
[15/21] Compiling cmark html.c
[16/21] Compiling cmark buffer.c
[17/21] Compiling cmark inlines.c
[18/21] Compiling cmark blocks.c
[19/21] Compiling cmark utf8.c
[20/21] Compiling cmark scanners.c
[22/51] Emitting module CommonMark
[23/54] Compiling CommonMark Node.swift
/Users/admin/builder/spi-builder-workspace/Sources/CommonMark/Nodes/Node.swift:218:13: error: cannot find 'free' in scope
216 |
217 | defer {
218 | free(cString)
| `- error: cannot find 'free' in scope
219 | }
220 |
/Users/admin/builder/spi-builder-workspace/Sources/CommonMark/Nodes/Node.swift:285:50: warning: cast from '(any Node & Block)?' to unrelated type 'Self' always fails
283 | // Unlink the children from the document node to prevent dangling pointers to the parent.
284 | let documentChildren = document.removeChildren()
285 | guard let block = documentChildren.first as? Self,
| `- warning: cast from '(any Node & Block)?' to unrelated type 'Self' always fails
286 | documentChildren.count == 1
287 | else {
/Users/admin/builder/spi-builder-workspace/Sources/CommonMark/Nodes/Node.swift:306:52: warning: cast from '(any Node & Inline)?' to unrelated type 'Self' always fails
304 | // Unlink the children from the root node to prevent dangling pointers to the parent.
305 | let paragraphChildren = paragraph.removeChildren()
306 | guard let inline = paragraphChildren.first as? Self,
| `- warning: cast from '(any Node & Inline)?' to unrelated type 'Self' always fails
307 | paragraphChildren.count == 1
308 | else {
[24/54] Compiling CommonMark ContainerOfBlocksBuilder.swift
/Users/admin/builder/spi-builder-workspace/Sources/CommonMark/Nodes/Node.swift:218:13: error: cannot find 'free' in scope
216 |
217 | defer {
218 | free(cString)
| `- error: cannot find 'free' in scope
219 | }
220 |
/Users/admin/builder/spi-builder-workspace/Sources/CommonMark/Nodes/Node.swift:285:50: warning: cast from '(any Node & Block)?' to unrelated type 'Self' always fails
283 | // Unlink the children from the document node to prevent dangling pointers to the parent.
284 | let documentChildren = document.removeChildren()
285 | guard let block = documentChildren.first as? Self,
| `- warning: cast from '(any Node & Block)?' to unrelated type 'Self' always fails
286 | documentChildren.count == 1
287 | else {
/Users/admin/builder/spi-builder-workspace/Sources/CommonMark/Nodes/Node.swift:306:52: warning: cast from '(any Node & Inline)?' to unrelated type 'Self' always fails
304 | // Unlink the children from the root node to prevent dangling pointers to the parent.
305 | let paragraphChildren = paragraph.removeChildren()
306 | guard let inline = paragraphChildren.first as? Self,
| `- warning: cast from '(any Node & Inline)?' to unrelated type 'Self' always fails
307 | paragraphChildren.count == 1
308 | else {
[25/54] Compiling CommonMark ContainerOfInlineElementsBuilder.swift
/Users/admin/builder/spi-builder-workspace/Sources/CommonMark/Nodes/Node.swift:218:13: error: cannot find 'free' in scope
216 |
217 | defer {
218 | free(cString)
| `- error: cannot find 'free' in scope
219 | }
220 |
/Users/admin/builder/spi-builder-workspace/Sources/CommonMark/Nodes/Node.swift:285:50: warning: cast from '(any Node & Block)?' to unrelated type 'Self' always fails
283 | // Unlink the children from the document node to prevent dangling pointers to the parent.
284 | let documentChildren = document.removeChildren()
285 | guard let block = documentChildren.first as? Self,
| `- warning: cast from '(any Node & Block)?' to unrelated type 'Self' always fails
286 | documentChildren.count == 1
287 | else {
/Users/admin/builder/spi-builder-workspace/Sources/CommonMark/Nodes/Node.swift:306:52: warning: cast from '(any Node & Inline)?' to unrelated type 'Self' always fails
304 | // Unlink the children from the root node to prevent dangling pointers to the parent.
305 | let paragraphChildren = paragraph.removeChildren()
306 | guard let inline = paragraphChildren.first as? Self,
| `- warning: cast from '(any Node & Inline)?' to unrelated type 'Self' always fails
307 | paragraphChildren.count == 1
308 | else {
[26/54] Compiling CommonMark Fragment.swift
[27/54] Compiling CommonMark Inline.swift
[28/54] Compiling CommonMark LineBreak.swift
[29/54] Compiling CommonMark SoftLineBreak.swift
[30/54] Compiling CommonMark Strong.swift
[31/54] Compiling CommonMark Text.swift
[32/54] Compiling CommonMark Image.swift
[33/54] Compiling CommonMark Link.swift
[34/54] Compiling CommonMark RawHTML.swift
[35/54] Compiling CommonMark Linked.swift
[36/54] Compiling CommonMark Literal.swift
[37/54] Compiling CommonMark Section.swift
[38/54] Compiling CommonMark Visitable.swift
[39/54] Compiling CommonMark Visitor.swift
[40/54] Compiling CommonMark Version.swift
[41/54] Compiling CommonMark ListBuilder.swift
[42/54] Compiling CommonMark Block.swift
[43/54] Compiling CommonMark Children.swift
[44/54] Compiling CommonMark Code.swift
[45/54] Compiling CommonMark Emphasis.swift
[46/54] Compiling CommonMark HardLineBreak.swift
[47/54] Compiling CommonMark List.swift
[48/54] Compiling CommonMark Paragraph.swift
[49/54] Compiling CommonMark ThematicBreak.swift
[50/54] Compiling CommonMark Document.swift
[51/54] Compiling CommonMark BlockQuote.swift
[52/54] Compiling CommonMark CodeBlock.swift
[53/54] Compiling CommonMark HTMLBlock.swift
[54/54] Compiling CommonMark Heading.swift
BUILD FAILURE 6.3 macosSpm