Build Information
Failed to build JebiXML, reference master (cdd529
), with Swift 6.1 for Linux on 30 Apr 2025 02:12:57 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4606859-1":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.1-latest swift build --triple x86_64-unknown-linux-gnu 2>&1
Build Log
========================================
RunAll
========================================
Builder version: 4.61.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/kewlbear/XMLDocument.git
Reference: master
Initialized empty Git repository in /host/spi-builder-workspace/.git/
hint: Using 'master' as the name for the initial branch. This default branch name
hint: is subject to change. To configure the initial branch name to use in all
hint: of your new repositories, which will suppress this warning, call:
hint:
hint: git config --global init.defaultBranch <name>
hint:
hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and
hint: 'development'. The just-created branch can be renamed via this command:
hint:
hint: git branch -m <name>
From https://github.com/kewlbear/XMLDocument
* branch master -> FETCH_HEAD
* [new branch] master -> origin/master
HEAD is now at cdd5292 rename package
Cloned https://github.com/kewlbear/XMLDocument.git
Revision (git rev-parse @):
cdd52923952964657a088f70c795457ef6ed736e
SUCCESS checkout https://github.com/kewlbear/XMLDocument.git at master
========================================
Build
========================================
Selected platform: linux
Swift version: 6.1
Building package at path: $PWD
https://github.com/kewlbear/XMLDocument.git
https://github.com/kewlbear/XMLDocument.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
"dependencies" : [
],
"manifest_display_name" : "JebiXML",
"name" : "JebiXML",
"path" : "/host/spi-builder-workspace",
"platforms" : [
],
"products" : [
{
"name" : "JebiXML",
"targets" : [
"JebiXML"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "libxml2XMLDocument",
"module_type" : "SystemLibraryTarget",
"name" : "libxml2XMLDocument",
"path" : "Sources/libxml2",
"product_memberships" : [
"JebiXML"
],
"sources" : [
],
"type" : "system-target"
},
{
"c99name" : "XMLDocumentTests",
"module_type" : "SwiftTarget",
"name" : "XMLDocumentTests",
"path" : "Tests/XMLDocumentTests",
"sources" : [
"XCTestManifests.swift",
"XMLDocumentTests.swift"
],
"target_dependencies" : [
"JebiXML"
],
"type" : "test"
},
{
"c99name" : "JebiXML",
"module_type" : "SwiftTarget",
"name" : "JebiXML",
"path" : "Sources/XMLDocument",
"product_memberships" : [
"JebiXML"
],
"sources" : [
"XMLDocument.swift"
],
"target_dependencies" : [
"libxml2XMLDocument"
],
"type" : "library"
}
],
"tools_version" : "5.1"
}
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-1":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.1-latest swift build --triple x86_64-unknown-linux-gnu -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 2>&1
basic-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:3bdcac04179f4ed3e5b8e9dbd6e74bbf5ebc0f4fde48bbaad7d1e5c757e65bcb
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.1-latest
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-24593BA9C3E375BF.txt
error: emit-module command failed with exit code 1 (use -v to see invocation)
[3/4] Emitting module JebiXML
/host/spi-builder-workspace/Sources/XMLDocument/XMLDocument.swift:39:6: error: Objective-C interoperability is disabled
37 | private let _docPtr: xmlDocPtr?
38 |
39 | @objc
| `- error: Objective-C interoperability is disabled
40 | public init(data: Data, options: Int) throws {
41 | let encoding: String.Encoding = .utf8
[4/4] Compiling JebiXML XMLDocument.swift
/host/spi-builder-workspace/Sources/XMLDocument/XMLDocument.swift:39:6: error: Objective-C interoperability is disabled
37 | private let _docPtr: xmlDocPtr?
38 |
39 | @objc
| `- error: Objective-C interoperability is disabled
40 | public init(data: Data, options: Int) throws {
41 | let encoding: String.Encoding = .utf8
/host/spi-builder-workspace/Sources/XMLDocument/XMLDocument.swift:44:33: error: cannot find 'CFStringConvertEncodingToIANACharSetName' in scope
42 | let xml = String(data: data, encoding: encoding)
43 |
44 | guard let charsetName = CFStringConvertEncodingToIANACharSetName(CFStringConvertNSStringEncodingToEncoding(encoding.rawValue)) as String?,
| `- error: cannot find 'CFStringConvertEncodingToIANACharSetName' in scope
45 | let cur = xml?.cString(using: encoding) else {
46 | throw XMLError.invalidStringEncoding
/host/spi-builder-workspace/Sources/XMLDocument/XMLDocument.swift:44:74: error: cannot find 'CFStringConvertNSStringEncodingToEncoding' in scope
42 | let xml = String(data: data, encoding: encoding)
43 |
44 | guard let charsetName = CFStringConvertEncodingToIANACharSetName(CFStringConvertNSStringEncodingToEncoding(encoding.rawValue)) as String?,
| `- error: cannot find 'CFStringConvertNSStringEncodingToEncoding' in scope
45 | let cur = xml?.cString(using: encoding) else {
46 | throw XMLError.invalidStringEncoding
/host/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)
/host/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)) }
/usr/include/libxml2/libxml/globals.h:250:23: note: var declared here
248 | XMLPUBVAR xmlMallocFunc xmlMallocAtomic;
249 | XMLPUBVAR xmlReallocFunc xmlRealloc;
250 | XMLPUBVAR xmlFreeFunc xmlFree;
| `- note: var declared here
251 | XMLPUBVAR xmlStrdupFunc xmlMemStrdup;
252 | #endif /* LIBXML_THREAD_ALLOC_ENABLED */
/host/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 | }
/usr/include/libxml2/libxml/globals.h:250:23: note: var declared here
248 | XMLPUBVAR xmlMallocFunc xmlMallocAtomic;
249 | XMLPUBVAR xmlReallocFunc xmlRealloc;
250 | XMLPUBVAR xmlFreeFunc xmlFree;
| `- note: var declared here
251 | XMLPUBVAR xmlStrdupFunc xmlMemStrdup;
252 | #endif /* LIBXML_THREAD_ALLOC_ENABLED */
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-1":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.1-latest swift build --triple x86_64-unknown-linux-gnu 2>&1
basic-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:3bdcac04179f4ed3e5b8e9dbd6e74bbf5ebc0f4fde48bbaad7d1e5c757e65bcb
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.1-latest
[0/1] Planning build
Building for debugging...
[0/1] Write swift-version-24593BA9C3E375BF.txt
error: emit-module command failed with exit code 1 (use -v to see invocation)
[2/3] Emitting module JebiXML
/host/spi-builder-workspace/Sources/XMLDocument/XMLDocument.swift:39:6: error: Objective-C interoperability is disabled
37 | private let _docPtr: xmlDocPtr?
38 |
39 | @objc
| `- error: Objective-C interoperability is disabled
40 | public init(data: Data, options: Int) throws {
41 | let encoding: String.Encoding = .utf8
[3/3] Compiling JebiXML XMLDocument.swift
/host/spi-builder-workspace/Sources/XMLDocument/XMLDocument.swift:39:6: error: Objective-C interoperability is disabled
37 | private let _docPtr: xmlDocPtr?
38 |
39 | @objc
| `- error: Objective-C interoperability is disabled
40 | public init(data: Data, options: Int) throws {
41 | let encoding: String.Encoding = .utf8
/host/spi-builder-workspace/Sources/XMLDocument/XMLDocument.swift:44:33: error: cannot find 'CFStringConvertEncodingToIANACharSetName' in scope
42 | let xml = String(data: data, encoding: encoding)
43 |
44 | guard let charsetName = CFStringConvertEncodingToIANACharSetName(CFStringConvertNSStringEncodingToEncoding(encoding.rawValue)) as String?,
| `- error: cannot find 'CFStringConvertEncodingToIANACharSetName' in scope
45 | let cur = xml?.cString(using: encoding) else {
46 | throw XMLError.invalidStringEncoding
/host/spi-builder-workspace/Sources/XMLDocument/XMLDocument.swift:44:74: error: cannot find 'CFStringConvertNSStringEncodingToEncoding' in scope
42 | let xml = String(data: data, encoding: encoding)
43 |
44 | guard let charsetName = CFStringConvertEncodingToIANACharSetName(CFStringConvertNSStringEncodingToEncoding(encoding.rawValue)) as String?,
| `- error: cannot find 'CFStringConvertNSStringEncodingToEncoding' in scope
45 | let cur = xml?.cString(using: encoding) else {
46 | throw XMLError.invalidStringEncoding
/host/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)
BUILD FAILURE 6.1 linux