Build Information
Failed to build CommonMark, reference main (6fc9d0
), with Swift 6.2 (beta) for macOS (SPM) on 18 Jun 2025 23:25:31 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: 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
========================================
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/21] Write swift-version-1EA4D86E10B52AF.txt
[1/21] Compiling cmark cmark_ctype.c
[2/21] Compiling cmark houdini_html_e.c
[2/21] Compiling cmark houdini_href_e.c
[4/21] Compiling cmark houdini_html_u.c
[5/21] Compiling cmark references.c
[6/21] Compiling cmark render.c
[7/21] Compiling cmark man.c
[8/21] Compiling cmark node.c
[9/21] Compiling cmark commonmark.c
[10/21] Compiling cmark latex.c
[11/21] Write sources
[12/21] Compiling cmark iterator.c
[13/21] Compiling cmark cmark.c
[14/21] Compiling cmark buffer.c
[15/21] Compiling cmark inlines.c
[16/21] Compiling cmark blocks.c
[17/21] Compiling cmark utf8.c
[18/21] Compiling cmark html.c
[19/21] Compiling cmark scanners.c
[20/21] Compiling cmark xml.c
[22/51] Emitting module CommonMark
[23/54] Compiling CommonMark Linked.swift
[24/54] Compiling CommonMark Literal.swift
[25/54] Compiling CommonMark Section.swift
[26/54] Compiling CommonMark SoftLineBreak.swift
[27/54] Compiling CommonMark Strong.swift
[28/54] Compiling CommonMark Text.swift
[29/54] Compiling CommonMark Visitable.swift
[30/54] Compiling CommonMark Visitor.swift
[31/54] Compiling CommonMark Version.swift
[32/54] Compiling CommonMark BlockQuote.swift
[33/54] Compiling CommonMark CodeBlock.swift
[34/54] Compiling CommonMark HTMLBlock.swift
[35/54] Compiling CommonMark Heading.swift
[36/54] Compiling CommonMark List.swift
[37/54] Compiling CommonMark Paragraph.swift
[38/54] Compiling CommonMark ThematicBreak.swift
[39/54] Compiling CommonMark Document.swift
[40/54] Compiling CommonMark ListBuilder.swift
[41/54] Compiling CommonMark Block.swift
[42/54] Compiling CommonMark Children.swift
[43/54] Compiling CommonMark Image.swift
[44/54] Compiling CommonMark Link.swift
[45/54] Compiling CommonMark RawHTML.swift
[46/54] Compiling CommonMark Fragment.swift
[47/54] Compiling CommonMark Inline.swift
[48/54] Compiling CommonMark LineBreak.swift
[49/54] Compiling CommonMark Code.swift
[50/54] Compiling CommonMark Emphasis.swift
[51/54] Compiling CommonMark HardLineBreak.swift
[52/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 {
[53/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 {
[54/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 {
Fetching https://github.com/SwiftDocOrg/swift-cmark.git
[1/12555] Fetching swift-cmark
Fetched https://github.com/SwiftDocOrg/swift-cmark.git from cache (1.39s)
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.21s)
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