Build Information
Successful build of XMLDocument, reference 1.0.0 (5b78bc
), with Swift 6.0 for macOS (SPM) on 8 Dec 2024 07:13:53 UTC.
Swift 6 data race errors: 0
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.5
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/kewlbear/XMLDocument.git
Reference: 1.0.0
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/kewlbear/XMLDocument
* tag 1.0.0 -> FETCH_HEAD
HEAD is now at 5b78bcc implemented basic functionality
Cloned https://github.com/kewlbear/XMLDocument.git
Revision (git rev-parse @):
5b78bcc99c3810ffdf099c00ce8fc50a20c37577
SUCCESS checkout https://github.com/kewlbear/XMLDocument.git at 1.0.0
========================================
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": "xmldocument",
"name": "XMLDocument",
"url": "https://github.com/kewlbear/XMLDocument.git",
"version": "unspecified",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/XMLDocument",
"dependencies": [
]
}
]
}
Fetching https://github.com/kewlbear/XMLDocument.git
[1/97] Fetching xmldocument
Fetched https://github.com/kewlbear/XMLDocument.git from cache (0.66s)
Creating working copy for https://github.com/kewlbear/XMLDocument.git
Working copy of https://github.com/kewlbear/XMLDocument.git resolved at 1.0.0 (5b78bcc)
warning: '.resolve-product-dependencies': dependency 'xmldocument' is not used by any target
Found 0 product dependencies
========================================
Build
========================================
Selected platform: macosSpm
Swift version: 6.0
Building package at path: $PWD
https://github.com/kewlbear/XMLDocument.git
https://github.com/kewlbear/XMLDocument.git
{
"dependencies" : [
],
"manifest_display_name" : "XMLDocument",
"name" : "XMLDocument",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
],
"products" : [
{
"name" : "XMLDocument",
"targets" : [
"XMLDocument"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "libxml2XMLDocument",
"module_type" : "SystemLibraryTarget",
"name" : "libxml2XMLDocument",
"path" : "Sources/libxml2",
"product_memberships" : [
"XMLDocument"
],
"sources" : [
],
"type" : "system-target"
},
{
"c99name" : "XMLDocumentTests",
"module_type" : "SwiftTarget",
"name" : "XMLDocumentTests",
"path" : "Tests/XMLDocumentTests",
"sources" : [
"XCTestManifests.swift",
"XMLDocumentTests.swift"
],
"target_dependencies" : [
"XMLDocument"
],
"type" : "test"
},
{
"c99name" : "XMLDocument",
"module_type" : "SwiftTarget",
"name" : "XMLDocument",
"path" : "Sources/XMLDocument",
"product_memberships" : [
"XMLDocument"
],
"sources" : [
"XMLDocument.swift"
],
"target_dependencies" : [
"libxml2XMLDocument"
],
"type" : "library"
}
],
"tools_version" : "5.1"
}
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/2] Write sources
[1/2] Write swift-version--7754E27361AE5C74.txt
[3/4] Emitting module XMLDocument
[4/4] Compiling XMLDocument XMLDocument.swift
/Users/admin/builder/spi-builder-workspace/Sources/XMLDocument/XMLDocument.swift:51:30: warning: initialization of 'UnsafeRawPointer' results in a dangling pointer
49 | let option = 0
50 | // FIXME: xmlParseMemory?
51 | _docPtr = xmlReadDoc(UnsafeRawPointer(cur).assumingMemoryBound(to: xmlChar.self), url, charsetName, CInt(option))
| | |- note: implicit argument conversion from '[CChar]' (aka 'Array<Int8>') to 'UnsafeRawPointer' produces a pointer valid only for the duration of the call to 'init(_:)'
| | `- note: use the 'withUnsafeBytes' method on Array in order to explicitly convert argument to buffer pointer valid for a defined scope
| `- warning: initialization of 'UnsafeRawPointer' results in a dangling pointer
52 |
53 | super.init(nodePtr: nil, owner: nil)
/Users/admin/builder/spi-builder-workspace/Sources/XMLDocument/XMLDocument.swift:234:25: warning: reference to var 'xmlFree' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
232 | let content = xmlNodeGetContent($0)
233 | defer {
234 | xmlFree(content)
| `- warning: reference to var 'xmlFree' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
235 | }
236 | return content.flatMap { String(utf8String: UnsafeRawPointer($0).assumingMemoryBound(to: CChar.self)) }
libxml2.xmlFree:1:12: note: var declared here
1 | public var xmlFree: xmlFreeFunc!
| `- note: var declared here
/Users/admin/builder/spi-builder-workspace/Sources/XMLDocument/XMLDocument.swift:246:17: warning: reference to var 'xmlFree' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
244 | let escaped = xmlEncodeSpecialChars(node.pointee.doc, newValue ?? "")
245 | xmlNodeSetContent(node, escaped)
246 | xmlFree(escaped)
| `- warning: reference to var 'xmlFree' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
247 | }
248 | }
libxml2.xmlFree:1:12: note: var declared here
1 | public var xmlFree: xmlFreeFunc!
| `- note: var declared here
Build complete! (5.57s)
warning: failed to retrieve search paths with pkg-config; maybe pkg-config is not installed
warning: you may be able to install libxml-2.0 using your system-packager:
brew install libxml2
Build complete.
{
"dependencies" : [
],
"manifest_display_name" : "XMLDocument",
"name" : "XMLDocument",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
],
"products" : [
{
"name" : "XMLDocument",
"targets" : [
"XMLDocument"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "libxml2XMLDocument",
"module_type" : "SystemLibraryTarget",
"name" : "libxml2XMLDocument",
"path" : "Sources/libxml2",
"product_memberships" : [
"XMLDocument"
],
"sources" : [
],
"type" : "system-target"
},
{
"c99name" : "XMLDocumentTests",
"module_type" : "SwiftTarget",
"name" : "XMLDocumentTests",
"path" : "Tests/XMLDocumentTests",
"sources" : [
"XCTestManifests.swift",
"XMLDocumentTests.swift"
],
"target_dependencies" : [
"XMLDocument"
],
"type" : "test"
},
{
"c99name" : "XMLDocument",
"module_type" : "SwiftTarget",
"name" : "XMLDocument",
"path" : "Sources/XMLDocument",
"product_memberships" : [
"XMLDocument"
],
"sources" : [
"XMLDocument.swift"
],
"target_dependencies" : [
"libxml2XMLDocument"
],
"type" : "library"
}
],
"tools_version" : "5.1"
}
Done.