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 CommonMark, reference 0.5.1 (92fa2f), with Swift 6.2 (beta) for macOS (SPM) on 18 Jun 2025 23:25:22 UTC.

Build Command

env DEVELOPER_DIR=/Applications/Xcode-26.0.0-Beta.app xcrun swift build --arch arm64

Build Log

========================================
RunAll
========================================
Builder version: 4.64.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/SwiftDocOrg/CommonMark.git
Reference: 0.5.1
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/SwiftDocOrg/CommonMark
 * tag               0.5.1      -> FETCH_HEAD
HEAD is now at 92fa2fa Bump version to 0.5.1
Cloned https://github.com/SwiftDocOrg/CommonMark.git
Revision (git rev-parse @):
92fa2fa2bf3c598f23da652e78c2d4b5bc4e35e9
SUCCESS checkout https://github.com/SwiftDocOrg/CommonMark.git at 0.5.1
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.2
Building package at path:  $PWD
https://github.com/SwiftDocOrg/CommonMark.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-26.0.0-Beta.app xcrun swift build --arch arm64
Building for debugging...
[0/22] Write swift-version-1EA4D86E10B52AF.txt
[1/22] Compiling cmark houdini_html_e.c
[2/22] Compiling cmark houdini_html_u.c
[3/22] Compiling cmark iterator.c
[4/22] Compiling cmark latex.c
[5/22] Compiling cmark commonmark.c
[6/22] Compiling cmark references.c
[7/22] Compiling cmark houdini_href_e.c
[8/22] Compiling cmark html.c
[9/22] Compiling cmark inlines.c
[10/22] Compiling cmark cmark_ctype.c
[11/22] Write sources
[13/22] Compiling cmark cmark.c
[14/22] Compiling cmark buffer.c
[15/22] Compiling cmark blocks.c
[16/22] Compiling cmark render.c
[17/22] Compiling cmark scanners.c
[18/22] Compiling cmark node.c
[19/22] Compiling cmark xml.c
[20/22] Compiling cmark man.c
[21/22] Compiling cmark utf8.c
[23/48] Compiling CommonMark LineBreak.swift
[24/48] Compiling CommonMark Linked.swift
[25/50] Compiling CommonMark Literal.swift
[26/50] Compiling CommonMark Visitable.swift
[27/50] Emitting module CommonMark
[28/50] Compiling CommonMark Emphasis.swift
[29/50] Compiling CommonMark HardLineBreak.swift
[30/50] Compiling CommonMark Image.swift
[31/50] Compiling CommonMark BlockQuote.swift
[32/50] Compiling CommonMark CodeBlock.swift
[33/50] Compiling CommonMark HTMLBlock.swift
[34/50] Compiling CommonMark ThematicBreak.swift
[35/50] Compiling CommonMark Document.swift
[36/50] Compiling CommonMark Code.swift
[37/50] Compiling CommonMark Link.swift
[38/50] Compiling CommonMark RawHTML.swift
[39/50] Compiling CommonMark SoftLineBreak.swift
[40/50] Compiling CommonMark Heading.swift
[41/50] Compiling CommonMark List.swift
[42/50] Compiling CommonMark Paragraph.swift
[43/50] Compiling CommonMark Block.swift
[44/50] Compiling CommonMark Children.swift
[45/50] Compiling CommonMark Inline.swift
[46/50] Compiling CommonMark Strong.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 {
[47/50] Compiling CommonMark Text.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 {
[48/50] 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 {
[49/50] Compiling CommonMark Visitor.swift
[50/50] Compiling CommonMark Version.swift
Fetching https://github.com/SwiftDocOrg/swift-cmark.git
[1/12555] Fetching swift-cmark
Fetched https://github.com/SwiftDocOrg/swift-cmark.git from cache (1.36s)
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.32s)
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
BUILD FAILURE 6.2 macosSpm