Build Information
Failed to build CommonMark, reference 0.5.1 (92fa2f
), with Swift 6.0 for macOS (SPM) on 28 Nov 2024 01:46:06 UTC.
Build Command
env DEVELOPER_DIR=/Applications/Xcode-16.1.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
Build Log
========================================
RunAll
========================================
Builder version: 4.58.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
Fetching https://github.com/SwiftDocOrg/swift-cmark.git
[1/12555] Fetching swift-cmark
Fetched https://github.com/SwiftDocOrg/swift-cmark.git from cache (1.56s)
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.43s)
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.87s)
Fetching https://github.com/SwiftDocOrg/swift-cmark.git from cache
Fetched https://github.com/SwiftDocOrg/swift-cmark.git from cache (0.72s)
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.02s)
Creating working copy for https://github.com/SwiftDocOrg/CommonMark.git
Working copy of https://github.com/SwiftDocOrg/CommonMark.git resolved at 0.5.1 (92fa2fa)
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
warning: '.resolve-product-dependencies': dependency 'commonmark' is not used by any target
Found 1 product dependencies
- cmark
========================================
Build
========================================
Selected platform: macosSpm
Swift version: 6.0
Building package at path: $PWD
https://github.com/SwiftDocOrg/CommonMark.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.1.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/22] Write swift-version--7754E27361AE5C74.txt
[1/22] Compiling cmark references.c
[2/22] Compiling cmark xml.c
[3/22] Compiling cmark latex.c
[4/22] Compiling cmark node.c
[5/22] Compiling cmark iterator.c
[6/22] Compiling cmark houdini_html_e.c
[7/22] Compiling cmark houdini_href_e.c
[8/22] Compiling cmark html.c
[9/22] Compiling cmark houdini_html_u.c
[10/22] Compiling cmark commonmark.c
[11/22] Write sources
[13/22] Compiling cmark cmark_ctype.c
[14/22] Compiling cmark cmark.c
[15/22] Compiling cmark buffer.c
[16/22] Compiling cmark blocks.c
[17/22] Compiling cmark inlines.c
[18/22] Compiling cmark scanners.c
[19/22] Compiling cmark utf8.c
[20/22] Compiling cmark man.c
[21/22] Compiling cmark render.c
[23/48] 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: annotate 'smart' with '@MainActor' if property should only be accessed from the main actor
| `- 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: annotate 'unsafe' with '@MainActor' if property should only be accessed from the main actor
| `- 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: annotate 'noBreaks' with '@MainActor' if property should only be accessed from the main actor
| `- 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: annotate 'hardBreaks' with '@MainActor' if property should only be accessed from the main actor
| `- 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: annotate 'includeSourcePosition' with '@MainActor' if property should only be accessed from the main actor
| `- 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: annotate 'default' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
13 |
14 | mutating func override(with other: Self) {
[24/50] Compiling CommonMark LineBreak.swift
[25/50] Compiling CommonMark Linked.swift
[26/50] Compiling CommonMark Strong.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: annotate 'unsafe' with '@MainActor' if property should only be accessed from the main actor
| `- 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: annotate 'noBreaks' with '@MainActor' if property should only be accessed from the main actor
| `- 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: annotate 'hardBreaks' with '@MainActor' if property should only be accessed from the main actor
| `- 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: annotate 'includeSourcePosition' with '@MainActor' if property should only be accessed from the main actor
| `- 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 {
[27/50] Compiling CommonMark Text.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: annotate 'unsafe' with '@MainActor' if property should only be accessed from the main actor
| `- 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: annotate 'noBreaks' with '@MainActor' if property should only be accessed from the main actor
| `- 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: annotate 'hardBreaks' with '@MainActor' if property should only be accessed from the main actor
| `- 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: annotate 'includeSourcePosition' with '@MainActor' if property should only be accessed from the main actor
| `- 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 {
[28/50] 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: annotate 'unsafe' with '@MainActor' if property should only be accessed from the main actor
| `- 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: annotate 'noBreaks' with '@MainActor' if property should only be accessed from the main actor
| `- 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: annotate 'hardBreaks' with '@MainActor' if property should only be accessed from the main actor
| `- 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: annotate 'includeSourcePosition' with '@MainActor' if property should only be accessed from the main actor
| `- 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 {
[29/50] Compiling CommonMark BlockQuote.swift
[30/50] Compiling CommonMark CodeBlock.swift
[31/50] Compiling CommonMark HTMLBlock.swift
[32/50] Compiling CommonMark Link.swift
[33/50] Compiling CommonMark RawHTML.swift
[34/50] Compiling CommonMark SoftLineBreak.swift
[35/50] Compiling CommonMark Block.swift
[36/50] Compiling CommonMark Children.swift
[37/50] Compiling CommonMark Inline.swift
[38/50] Compiling CommonMark Emphasis.swift
[39/50] Compiling CommonMark HardLineBreak.swift
[40/50] Compiling CommonMark Image.swift
[41/50] 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: annotate 'smart' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
24 | }
25 |
[42/50] 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: annotate 'smart' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
24 | }
25 |
[43/50] Compiling CommonMark Code.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: annotate 'smart' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
24 | }
25 |
[44/50] Compiling CommonMark Heading.swift
[45/50] Compiling CommonMark List.swift
[46/50] Compiling CommonMark Paragraph.swift
[47/50] Compiling CommonMark Literal.swift
[48/50] Compiling CommonMark Visitable.swift
[49/50] 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: annotate 'default' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
13 |
14 | mutating func override(with other: Self) {
[50/50] 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: annotate 'default' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
13 |
14 | mutating func override(with other: Self) {
BUILD FAILURE 6.0 macosSpm