Build Information
Failed to build CommonMark, reference main (6fc9d0
), with Swift 6.1 for macOS (SPM) on 26 Apr 2025 11:20:17 UTC.
Build Command
env DEVELOPER_DIR=/Applications/Xcode-16.3.0.app xcrun swift build --arch arm64
Build Log
========================================
RunAll
========================================
Builder version: 4.61.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.33s)
Computing version for https://github.com/SwiftDocOrg/swift-cmark.git
Computed https://github.com/SwiftDocOrg/swift-cmark.git at 0.29.0+20210102.9c8096a (2.03s)
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",
"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",
"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",
"dependencies": [
]
}
]
}
]
}
Fetching https://github.com/SwiftDocOrg/CommonMark.git
[1/1175] Fetching commonmark
Fetched https://github.com/SwiftDocOrg/CommonMark.git from cache (0.73s)
Fetching https://github.com/SwiftDocOrg/swift-cmark.git from cache
Fetched https://github.com/SwiftDocOrg/swift-cmark.git from cache (0.64s)
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.70s)
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.1
Building package at path: $PWD
https://github.com/SwiftDocOrg/CommonMark.git
https://github.com/SwiftDocOrg/CommonMark.git
{
"dependencies" : [
{
"identity" : "swift-cmark",
"requirement" : {
"range" : [
{
"lower_bound" : "0.29.0+20210102.9c8096a",
"upper_bound" : "1.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/SwiftDocOrg/swift-cmark.git"
}
],
"manifest_display_name" : "CommonMark",
"name" : "CommonMark",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
],
"products" : [
{
"name" : "CommonMark",
"targets" : [
"CommonMark"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "CommonMarkTests",
"module_type" : "SwiftTarget",
"name" : "CommonMarkTests",
"path" : "Tests/CommonMarkTests",
"sources" : [
"CommonMarkBuilderTests.swift",
"CommonMarkTests.swift",
"ContainerManipulationTests.swift",
"DocumentTests.swift",
"Fixtures.swift",
"NodeTests.swift",
"ProtocolTests.swift",
"StatisticsVisitor.swift",
"VisitorTests.swift"
],
"target_dependencies" : [
"CommonMark"
],
"type" : "test"
},
{
"c99name" : "CommonMarkSpecTests",
"module_type" : "SwiftTarget",
"name" : "CommonMarkSpecTests",
"path" : "Tests/CommonMarkSpecTests",
"sources" : [
"AtxHeadingsTests.swift",
"AutolinksTests.swift",
"BackslashEscapesTests.swift",
"BlankLinesTests.swift",
"BlockQuotesTests.swift",
"CodeSpansTests.swift",
"EmphasisAndStrongEmphasisTests.swift",
"EntityAndNumericCharacterReferencesTests.swift",
"FencedCodeBlocksTests.swift",
"HardLineBreaksTests.swift",
"HtmlBlocksTests.swift",
"ImagesTests.swift",
"IndentedCodeBlocksTests.swift",
"InlinesTests.swift",
"LinkReferenceDefinitionsTests.swift",
"LinksTests.swift",
"ListItemsTests.swift",
"ListsTests.swift",
"ParagraphsTests.swift",
"PrecedenceTests.swift",
"RawHtmlTests.swift",
"SetextHeadingsTests.swift",
"SoftLineBreaksTests.swift",
"TabsTests.swift",
"TextualContentTests.swift",
"ThematicBreaksTests.swift"
],
"target_dependencies" : [
"CommonMark"
],
"type" : "test"
},
{
"c99name" : "CommonMark",
"module_type" : "SwiftTarget",
"name" : "CommonMark",
"path" : "Sources/CommonMark",
"product_dependencies" : [
"cmark"
],
"product_memberships" : [
"CommonMark"
],
"sources" : [
"Nodes/Block/BlockQuote.swift",
"Nodes/Block/CodeBlock.swift",
"Nodes/Block/HTMLBlock.swift",
"Nodes/Block/Heading.swift",
"Nodes/Block/List.swift",
"Nodes/Block/Paragraph.swift",
"Nodes/Block/ThematicBreak.swift",
"Nodes/Document.swift",
"Nodes/Inline/Code.swift",
"Nodes/Inline/Emphasis.swift",
"Nodes/Inline/HardLineBreak.swift",
"Nodes/Inline/Image.swift",
"Nodes/Inline/Link.swift",
"Nodes/Inline/RawHTML.swift",
"Nodes/Inline/SoftLineBreak.swift",
"Nodes/Inline/Strong.swift",
"Nodes/Inline/Text.swift",
"Nodes/Node.swift",
"Result Builders/ContainerOfBlocksBuilder.swift",
"Result Builders/ContainerOfInlineElementsBuilder.swift",
"Result Builders/ListBuilder.swift",
"Supporting Types/Block.swift",
"Supporting Types/Children.swift",
"Supporting Types/Fragment.swift",
"Supporting Types/Inline.swift",
"Supporting Types/LineBreak.swift",
"Supporting Types/Linked.swift",
"Supporting Types/Literal.swift",
"Supporting Types/Section.swift",
"Supporting Types/Visitable.swift",
"Supporting Types/Visitor.swift",
"Version.swift"
],
"type" : "library"
}
],
"tools_version" : "5.1"
}
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.3.0.app xcrun swift build --arch arm64 -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
Building for debugging...
[0/21] Write swift-version-2F0A5646E1D333AE.txt
[1/21] Compiling cmark cmark_ctype.c
[2/21] Compiling cmark houdini_href_e.c
[3/21] Compiling cmark houdini_html_e.c
[4/21] Compiling cmark cmark.c
[5/21] Compiling cmark references.c
[6/21] Compiling cmark node.c
[7/21] Compiling cmark man.c
[8/21] Compiling cmark utf8.c
[9/21] Compiling cmark render.c
[10/21] Compiling cmark xml.c
[11/21] Write sources
[12/21] Compiling cmark commonmark.c
[13/21] Compiling cmark latex.c
[14/21] Compiling cmark iterator.c
[15/21] Compiling cmark buffer.c
[16/21] Compiling cmark houdini_html_u.c
[17/21] Compiling cmark html.c
[18/21] Compiling cmark blocks.c
[19/21] Compiling cmark inlines.c
[20/21] Compiling cmark scanners.c
[22/51] Emitting module CommonMark
/Users/admin/builder/spi-builder-workspace/Sources/CommonMark/Nodes/Document.swift:23:27: warning: static property 'smart' is not concurrency-safe because non-'Sendable' type 'Document.ParsingOptions' may have shared mutable state; this is an error in the Swift 6 language mode
4 | public final class Document: Node {
5 | /// Options for parsing CommonMark text.
6 | public struct ParsingOptions: OptionSet {
| `- note: consider making struct 'ParsingOptions' conform to the 'Sendable' protocol
7 | public var rawValue: Int32
8 |
:
21 | - Three consecutive full stops (...) become an ellipsis (…)
22 | */
23 | public static let smart = Self(rawValue: CMARK_OPT_SMART)
| |- warning: static property 'smart' is not concurrency-safe because non-'Sendable' type 'Document.ParsingOptions' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'smart' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
24 | }
25 |
/Users/admin/builder/spi-builder-workspace/Sources/CommonMark/Nodes/Node.swift:162:27: warning: static property 'unsafe' is not concurrency-safe because non-'Sendable' type 'Node.RenderingOptions' may have shared mutable state; this is an error in the Swift 6 language mode
134 |
135 | /// Options for rendering a CommonMark document.
136 | public struct RenderingOptions: OptionSet {
| `- note: consider making struct 'RenderingOptions' conform to the 'Sendable' protocol
137 | public var rawValue: Int32
138 |
:
160 | - Important: This option has an effect only when rendering HTML.
161 | */
162 | public static let unsafe = Self(rawValue: CMARK_OPT_UNSAFE)
| |- warning: static property 'unsafe' is not concurrency-safe because non-'Sendable' type 'Node.RenderingOptions' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'unsafe' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
163 |
164 | /**
/Users/admin/builder/spi-builder-workspace/Sources/CommonMark/Nodes/Node.swift:169:27: warning: static property 'noBreaks' is not concurrency-safe because non-'Sendable' type 'Node.RenderingOptions' may have shared mutable state; this is an error in the Swift 6 language mode
134 |
135 | /// Options for rendering a CommonMark document.
136 | public struct RenderingOptions: OptionSet {
| `- note: consider making struct 'RenderingOptions' conform to the 'Sendable' protocol
137 | public var rawValue: Int32
138 |
:
167 | - Important: This option has no effect when rendering XML.
168 | */
169 | public static let noBreaks = Self(rawValue: CMARK_OPT_NOBREAKS)
| |- warning: static property 'noBreaks' is not concurrency-safe because non-'Sendable' type 'Node.RenderingOptions' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'noBreaks' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
170 |
171 | /**
/Users/admin/builder/spi-builder-workspace/Sources/CommonMark/Nodes/Node.swift:176:27: warning: static property 'hardBreaks' is not concurrency-safe because non-'Sendable' type 'Node.RenderingOptions' may have shared mutable state; this is an error in the Swift 6 language mode
134 |
135 | /// Options for rendering a CommonMark document.
136 | public struct RenderingOptions: OptionSet {
| `- note: consider making struct 'RenderingOptions' conform to the 'Sendable' protocol
137 | public var rawValue: Int32
138 |
:
174 | - Important: This option has no effect when rendering XML.
175 | */
176 | public static let hardBreaks = Self(rawValue: CMARK_OPT_HARDBREAKS)
| |- warning: static property 'hardBreaks' is not concurrency-safe because non-'Sendable' type 'Node.RenderingOptions' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'hardBreaks' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
177 |
178 | /**
/Users/admin/builder/spi-builder-workspace/Sources/CommonMark/Nodes/Node.swift:184:27: warning: static property 'includeSourcePosition' is not concurrency-safe because non-'Sendable' type 'Node.RenderingOptions' may have shared mutable state; this is an error in the Swift 6 language mode
134 |
135 | /// Options for rendering a CommonMark document.
136 | public struct RenderingOptions: OptionSet {
| `- note: consider making struct 'RenderingOptions' conform to the 'Sendable' protocol
137 | public var rawValue: Int32
138 |
:
182 | - Important: This option has an effect only when rendering HTML or XML.
183 | */
184 | public static let includeSourcePosition = Self(rawValue: CMARK_OPT_SOURCEPOS)
| |- warning: static property 'includeSourcePosition' is not concurrency-safe because non-'Sendable' type 'Node.RenderingOptions' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'includeSourcePosition' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
185 | }
186 |
/Users/admin/builder/spi-builder-workspace/Sources/CommonMark/Supporting Types/Visitor.swift:12:16: warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'VisitorContinueKind' may have shared mutable state; this is an error in the Swift 6 language mode
1 | public enum VisitorContinueKind {
| `- note: consider making enum 'VisitorContinueKind' conform to the 'Sendable' protocol
2 | /// The visitor should visit the descendents of the current node.
3 | case visitChildren
:
10 |
11 | /// The default is `.visitChildren`
12 | static let `default`: Self = .visitChildren
| |- warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'VisitorContinueKind' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'default' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
13 |
14 | mutating func override(with other: Self) {
[23/54] Compiling CommonMark SoftLineBreak.swift
[24/54] Compiling CommonMark Strong.swift
[25/54] Compiling CommonMark Text.swift
[26/54] Compiling CommonMark Visitable.swift
/Users/admin/builder/spi-builder-workspace/Sources/CommonMark/Supporting Types/Visitor.swift:12:16: warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'VisitorContinueKind' may have shared mutable state; this is an error in the Swift 6 language mode
1 | public enum VisitorContinueKind {
| `- note: consider making enum 'VisitorContinueKind' conform to the 'Sendable' protocol
2 | /// The visitor should visit the descendents of the current node.
3 | case visitChildren
:
10 |
11 | /// The default is `.visitChildren`
12 | static let `default`: Self = .visitChildren
| |- warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'VisitorContinueKind' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'default' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
13 |
14 | mutating func override(with other: Self) {
[27/54] Compiling CommonMark Visitor.swift
/Users/admin/builder/spi-builder-workspace/Sources/CommonMark/Supporting Types/Visitor.swift:12:16: warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'VisitorContinueKind' may have shared mutable state; this is an error in the Swift 6 language mode
1 | public enum VisitorContinueKind {
| `- note: consider making enum 'VisitorContinueKind' conform to the 'Sendable' protocol
2 | /// The visitor should visit the descendents of the current node.
3 | case visitChildren
:
10 |
11 | /// The default is `.visitChildren`
12 | static let `default`: Self = .visitChildren
| |- warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'VisitorContinueKind' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'default' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
13 |
14 | mutating func override(with other: Self) {
[28/54] Compiling CommonMark Version.swift
/Users/admin/builder/spi-builder-workspace/Sources/CommonMark/Supporting Types/Visitor.swift:12:16: warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'VisitorContinueKind' may have shared mutable state; this is an error in the Swift 6 language mode
1 | public enum VisitorContinueKind {
| `- note: consider making enum 'VisitorContinueKind' conform to the 'Sendable' protocol
2 | /// The visitor should visit the descendents of the current node.
3 | case visitChildren
:
10 |
11 | /// The default is `.visitChildren`
12 | static let `default`: Self = .visitChildren
| |- warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'VisitorContinueKind' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'default' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
13 |
14 | mutating func override(with other: Self) {
[29/54] Compiling CommonMark BlockQuote.swift
[30/54] Compiling CommonMark CodeBlock.swift
[31/54] Compiling CommonMark HTMLBlock.swift
[32/54] Compiling CommonMark Heading.swift
[33/54] Compiling CommonMark Fragment.swift
[34/54] Compiling CommonMark Inline.swift
[35/54] Compiling CommonMark LineBreak.swift
[36/54] Compiling CommonMark Linked.swift
[37/54] Compiling CommonMark Literal.swift
[38/54] Compiling CommonMark Section.swift
[39/54] Compiling CommonMark Image.swift
[40/54] Compiling CommonMark Link.swift
[41/54] Compiling CommonMark RawHTML.swift
[42/54] Compiling CommonMark Node.swift
/Users/admin/builder/spi-builder-workspace/Sources/CommonMark/Nodes/Node.swift:162:27: warning: static property 'unsafe' is not concurrency-safe because non-'Sendable' type 'Node.RenderingOptions' may have shared mutable state; this is an error in the Swift 6 language mode
134 |
135 | /// Options for rendering a CommonMark document.
136 | public struct RenderingOptions: OptionSet {
| `- note: consider making struct 'RenderingOptions' conform to the 'Sendable' protocol
137 | public var rawValue: Int32
138 |
:
160 | - Important: This option has an effect only when rendering HTML.
161 | */
162 | public static let unsafe = Self(rawValue: CMARK_OPT_UNSAFE)
| |- warning: static property 'unsafe' is not concurrency-safe because non-'Sendable' type 'Node.RenderingOptions' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'unsafe' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
163 |
164 | /**
/Users/admin/builder/spi-builder-workspace/Sources/CommonMark/Nodes/Node.swift:169:27: warning: static property 'noBreaks' is not concurrency-safe because non-'Sendable' type 'Node.RenderingOptions' may have shared mutable state; this is an error in the Swift 6 language mode
134 |
135 | /// Options for rendering a CommonMark document.
136 | public struct RenderingOptions: OptionSet {
| `- note: consider making struct 'RenderingOptions' conform to the 'Sendable' protocol
137 | public var rawValue: Int32
138 |
:
167 | - Important: This option has no effect when rendering XML.
168 | */
169 | public static let noBreaks = Self(rawValue: CMARK_OPT_NOBREAKS)
| |- warning: static property 'noBreaks' is not concurrency-safe because non-'Sendable' type 'Node.RenderingOptions' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'noBreaks' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
170 |
171 | /**
/Users/admin/builder/spi-builder-workspace/Sources/CommonMark/Nodes/Node.swift:176:27: warning: static property 'hardBreaks' is not concurrency-safe because non-'Sendable' type 'Node.RenderingOptions' may have shared mutable state; this is an error in the Swift 6 language mode
134 |
135 | /// Options for rendering a CommonMark document.
136 | public struct RenderingOptions: OptionSet {
| `- note: consider making struct 'RenderingOptions' conform to the 'Sendable' protocol
137 | public var rawValue: Int32
138 |
:
174 | - Important: This option has no effect when rendering XML.
175 | */
176 | public static let hardBreaks = Self(rawValue: CMARK_OPT_HARDBREAKS)
| |- warning: static property 'hardBreaks' is not concurrency-safe because non-'Sendable' type 'Node.RenderingOptions' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'hardBreaks' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
177 |
178 | /**
/Users/admin/builder/spi-builder-workspace/Sources/CommonMark/Nodes/Node.swift:184:27: warning: static property 'includeSourcePosition' is not concurrency-safe because non-'Sendable' type 'Node.RenderingOptions' may have shared mutable state; this is an error in the Swift 6 language mode
134 |
135 | /// Options for rendering a CommonMark document.
136 | public struct RenderingOptions: OptionSet {
| `- note: consider making struct 'RenderingOptions' conform to the 'Sendable' protocol
137 | public var rawValue: Int32
138 |
:
182 | - Important: This option has an effect only when rendering HTML or XML.
183 | */
184 | public static let includeSourcePosition = Self(rawValue: CMARK_OPT_SOURCEPOS)
| |- warning: static property 'includeSourcePosition' is not concurrency-safe because non-'Sendable' type 'Node.RenderingOptions' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'includeSourcePosition' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
185 | }
186 |
/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 {
[43/54] Compiling CommonMark ContainerOfBlocksBuilder.swift
/Users/admin/builder/spi-builder-workspace/Sources/CommonMark/Nodes/Node.swift:162:27: warning: static property 'unsafe' is not concurrency-safe because non-'Sendable' type 'Node.RenderingOptions' may have shared mutable state; this is an error in the Swift 6 language mode
134 |
135 | /// Options for rendering a CommonMark document.
136 | public struct RenderingOptions: OptionSet {
| `- note: consider making struct 'RenderingOptions' conform to the 'Sendable' protocol
137 | public var rawValue: Int32
138 |
:
160 | - Important: This option has an effect only when rendering HTML.
161 | */
162 | public static let unsafe = Self(rawValue: CMARK_OPT_UNSAFE)
| |- warning: static property 'unsafe' is not concurrency-safe because non-'Sendable' type 'Node.RenderingOptions' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'unsafe' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
163 |
164 | /**
/Users/admin/builder/spi-builder-workspace/Sources/CommonMark/Nodes/Node.swift:169:27: warning: static property 'noBreaks' is not concurrency-safe because non-'Sendable' type 'Node.RenderingOptions' may have shared mutable state; this is an error in the Swift 6 language mode
134 |
135 | /// Options for rendering a CommonMark document.
136 | public struct RenderingOptions: OptionSet {
| `- note: consider making struct 'RenderingOptions' conform to the 'Sendable' protocol
137 | public var rawValue: Int32
138 |
:
167 | - Important: This option has no effect when rendering XML.
168 | */
169 | public static let noBreaks = Self(rawValue: CMARK_OPT_NOBREAKS)
| |- warning: static property 'noBreaks' is not concurrency-safe because non-'Sendable' type 'Node.RenderingOptions' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'noBreaks' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
170 |
171 | /**
/Users/admin/builder/spi-builder-workspace/Sources/CommonMark/Nodes/Node.swift:176:27: warning: static property 'hardBreaks' is not concurrency-safe because non-'Sendable' type 'Node.RenderingOptions' may have shared mutable state; this is an error in the Swift 6 language mode
134 |
135 | /// Options for rendering a CommonMark document.
136 | public struct RenderingOptions: OptionSet {
| `- note: consider making struct 'RenderingOptions' conform to the 'Sendable' protocol
137 | public var rawValue: Int32
138 |
:
174 | - Important: This option has no effect when rendering XML.
175 | */
176 | public static let hardBreaks = Self(rawValue: CMARK_OPT_HARDBREAKS)
| |- warning: static property 'hardBreaks' is not concurrency-safe because non-'Sendable' type 'Node.RenderingOptions' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'hardBreaks' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
177 |
178 | /**
/Users/admin/builder/spi-builder-workspace/Sources/CommonMark/Nodes/Node.swift:184:27: warning: static property 'includeSourcePosition' is not concurrency-safe because non-'Sendable' type 'Node.RenderingOptions' may have shared mutable state; this is an error in the Swift 6 language mode
134 |
135 | /// Options for rendering a CommonMark document.
136 | public struct RenderingOptions: OptionSet {
| `- note: consider making struct 'RenderingOptions' conform to the 'Sendable' protocol
137 | public var rawValue: Int32
138 |
:
182 | - Important: This option has an effect only when rendering HTML or XML.
183 | */
184 | public static let includeSourcePosition = Self(rawValue: CMARK_OPT_SOURCEPOS)
| |- warning: static property 'includeSourcePosition' is not concurrency-safe because non-'Sendable' type 'Node.RenderingOptions' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'includeSourcePosition' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
185 | }
186 |
/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 {
[44/54] Compiling CommonMark ContainerOfInlineElementsBuilder.swift
/Users/admin/builder/spi-builder-workspace/Sources/CommonMark/Nodes/Node.swift:162:27: warning: static property 'unsafe' is not concurrency-safe because non-'Sendable' type 'Node.RenderingOptions' may have shared mutable state; this is an error in the Swift 6 language mode
134 |
135 | /// Options for rendering a CommonMark document.
136 | public struct RenderingOptions: OptionSet {
| `- note: consider making struct 'RenderingOptions' conform to the 'Sendable' protocol
137 | public var rawValue: Int32
138 |
:
160 | - Important: This option has an effect only when rendering HTML.
161 | */
162 | public static let unsafe = Self(rawValue: CMARK_OPT_UNSAFE)
| |- warning: static property 'unsafe' is not concurrency-safe because non-'Sendable' type 'Node.RenderingOptions' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'unsafe' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
163 |
164 | /**
/Users/admin/builder/spi-builder-workspace/Sources/CommonMark/Nodes/Node.swift:169:27: warning: static property 'noBreaks' is not concurrency-safe because non-'Sendable' type 'Node.RenderingOptions' may have shared mutable state; this is an error in the Swift 6 language mode
134 |
135 | /// Options for rendering a CommonMark document.
136 | public struct RenderingOptions: OptionSet {
| `- note: consider making struct 'RenderingOptions' conform to the 'Sendable' protocol
137 | public var rawValue: Int32
138 |
:
167 | - Important: This option has no effect when rendering XML.
168 | */
169 | public static let noBreaks = Self(rawValue: CMARK_OPT_NOBREAKS)
| |- warning: static property 'noBreaks' is not concurrency-safe because non-'Sendable' type 'Node.RenderingOptions' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'noBreaks' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
170 |
171 | /**
/Users/admin/builder/spi-builder-workspace/Sources/CommonMark/Nodes/Node.swift:176:27: warning: static property 'hardBreaks' is not concurrency-safe because non-'Sendable' type 'Node.RenderingOptions' may have shared mutable state; this is an error in the Swift 6 language mode
134 |
135 | /// Options for rendering a CommonMark document.
136 | public struct RenderingOptions: OptionSet {
| `- note: consider making struct 'RenderingOptions' conform to the 'Sendable' protocol
137 | public var rawValue: Int32
138 |
:
174 | - Important: This option has no effect when rendering XML.
175 | */
176 | public static let hardBreaks = Self(rawValue: CMARK_OPT_HARDBREAKS)
| |- warning: static property 'hardBreaks' is not concurrency-safe because non-'Sendable' type 'Node.RenderingOptions' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'hardBreaks' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
177 |
178 | /**
/Users/admin/builder/spi-builder-workspace/Sources/CommonMark/Nodes/Node.swift:184:27: warning: static property 'includeSourcePosition' is not concurrency-safe because non-'Sendable' type 'Node.RenderingOptions' may have shared mutable state; this is an error in the Swift 6 language mode
134 |
135 | /// Options for rendering a CommonMark document.
136 | public struct RenderingOptions: OptionSet {
| `- note: consider making struct 'RenderingOptions' conform to the 'Sendable' protocol
137 | public var rawValue: Int32
138 |
:
182 | - Important: This option has an effect only when rendering HTML or XML.
183 | */
184 | public static let includeSourcePosition = Self(rawValue: CMARK_OPT_SOURCEPOS)
| |- warning: static property 'includeSourcePosition' is not concurrency-safe because non-'Sendable' type 'Node.RenderingOptions' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'includeSourcePosition' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
185 | }
186 |
/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 {
[45/54] Compiling CommonMark List.swift
/Users/admin/builder/spi-builder-workspace/Sources/CommonMark/Nodes/Document.swift:23:27: warning: static property 'smart' is not concurrency-safe because non-'Sendable' type 'Document.ParsingOptions' may have shared mutable state; this is an error in the Swift 6 language mode
4 | public final class Document: Node {
5 | /// Options for parsing CommonMark text.
6 | public struct ParsingOptions: OptionSet {
| `- note: consider making struct 'ParsingOptions' conform to the 'Sendable' protocol
7 | public var rawValue: Int32
8 |
:
21 | - Three consecutive full stops (...) become an ellipsis (…)
22 | */
23 | public static let smart = Self(rawValue: CMARK_OPT_SMART)
| |- warning: static property 'smart' is not concurrency-safe because non-'Sendable' type 'Document.ParsingOptions' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'smart' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
24 | }
25 |
[46/54] Compiling CommonMark Paragraph.swift
/Users/admin/builder/spi-builder-workspace/Sources/CommonMark/Nodes/Document.swift:23:27: warning: static property 'smart' is not concurrency-safe because non-'Sendable' type 'Document.ParsingOptions' may have shared mutable state; this is an error in the Swift 6 language mode
4 | public final class Document: Node {
5 | /// Options for parsing CommonMark text.
6 | public struct ParsingOptions: OptionSet {
| `- note: consider making struct 'ParsingOptions' conform to the 'Sendable' protocol
7 | public var rawValue: Int32
8 |
:
21 | - Three consecutive full stops (...) become an ellipsis (…)
22 | */
23 | public static let smart = Self(rawValue: CMARK_OPT_SMART)
| |- warning: static property 'smart' is not concurrency-safe because non-'Sendable' type 'Document.ParsingOptions' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'smart' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
24 | }
25 |
[47/54] Compiling CommonMark ThematicBreak.swift
/Users/admin/builder/spi-builder-workspace/Sources/CommonMark/Nodes/Document.swift:23:27: warning: static property 'smart' is not concurrency-safe because non-'Sendable' type 'Document.ParsingOptions' may have shared mutable state; this is an error in the Swift 6 language mode
4 | public final class Document: Node {
5 | /// Options for parsing CommonMark text.
6 | public struct ParsingOptions: OptionSet {
| `- note: consider making struct 'ParsingOptions' conform to the 'Sendable' protocol
7 | public var rawValue: Int32
8 |
:
21 | - Three consecutive full stops (...) become an ellipsis (…)
22 | */
23 | public static let smart = Self(rawValue: CMARK_OPT_SMART)
| |- warning: static property 'smart' is not concurrency-safe because non-'Sendable' type 'Document.ParsingOptions' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'smart' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
24 | }
25 |
[48/54] Compiling CommonMark Document.swift
/Users/admin/builder/spi-builder-workspace/Sources/CommonMark/Nodes/Document.swift:23:27: warning: static property 'smart' is not concurrency-safe because non-'Sendable' type 'Document.ParsingOptions' may have shared mutable state; this is an error in the Swift 6 language mode
4 | public final class Document: Node {
5 | /// Options for parsing CommonMark text.
6 | public struct ParsingOptions: OptionSet {
| `- note: consider making struct 'ParsingOptions' conform to the 'Sendable' protocol
7 | public var rawValue: Int32
8 |
:
21 | - Three consecutive full stops (...) become an ellipsis (…)
22 | */
23 | public static let smart = Self(rawValue: CMARK_OPT_SMART)
| |- warning: static property 'smart' is not concurrency-safe because non-'Sendable' type 'Document.ParsingOptions' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'smart' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
24 | }
25 |
[49/54] Compiling CommonMark ListBuilder.swift
[50/54] Compiling CommonMark Block.swift
[51/54] Compiling CommonMark Children.swift
[52/54] Compiling CommonMark Code.swift
[53/54] Compiling CommonMark Emphasis.swift
[54/54] Compiling CommonMark HardLineBreak.swift
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.3.0.app xcrun swift build --arch arm64
[0/1] Planning build
Building for debugging...
[0/1] Write swift-version-2F0A5646E1D333AE.txt
[2/31] Compiling CommonMark Image.swift
[3/31] Compiling CommonMark Link.swift
[4/31] Compiling CommonMark RawHTML.swift
[5/34] Compiling CommonMark BlockQuote.swift
[6/34] Compiling CommonMark CodeBlock.swift
[7/34] Compiling CommonMark HTMLBlock.swift
[8/34] Compiling CommonMark Heading.swift
[9/34] Emitting module CommonMark
[10/34] Compiling CommonMark Fragment.swift
[11/34] Compiling CommonMark Inline.swift
[12/34] Compiling CommonMark LineBreak.swift
[13/34] Compiling CommonMark SoftLineBreak.swift
[14/34] Compiling CommonMark Strong.swift
[15/34] Compiling CommonMark Text.swift
[16/34] Compiling CommonMark Linked.swift
[17/34] Compiling CommonMark Literal.swift
[18/34] Compiling CommonMark Section.swift
[19/34] Compiling CommonMark Code.swift
[20/34] Compiling CommonMark Emphasis.swift
[21/34] Compiling CommonMark HardLineBreak.swift
[22/34] 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 {
[23/34] 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 {
[24/34] 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 {
[25/34] Compiling CommonMark ListBuilder.swift
[26/34] Compiling CommonMark Block.swift
[27/34] Compiling CommonMark Children.swift
[28/34] Compiling CommonMark List.swift
[29/34] Compiling CommonMark Paragraph.swift
[30/34] Compiling CommonMark ThematicBreak.swift
[31/34] Compiling CommonMark Document.swift
[32/34] Compiling CommonMark Visitable.swift
[33/34] Compiling CommonMark Visitor.swift
[34/34] Compiling CommonMark Version.swift
BUILD FAILURE 6.1 macosSpm