Build Information
Failed to build XMLDocument, reference 1.0.0 (5b78bc), with Swift 6.3 for Linux on 15 Apr 2026 10:49:27 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4609320-1":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/swiftpackageindex/spi-images:basic-6.3-latest swift build --triple x86_64-unknown-linux-gnu 2>&1Build Log
========================================
RunAll
========================================
Builder version: 4.70.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/kewlbear/XMLDocument.git
Reference: 1.0.0
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
* 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
========================================
Build
========================================
Selected platform: linux
Swift version: 6.3
Building package at path: $PWD
https://github.com/kewlbear/XMLDocument.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-1":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/swiftpackageindex/spi-images:basic-6.3-latest swift build --triple x86_64-unknown-linux-gnu 2>&1
basic-6.3-latest: Pulling from swiftpackageindex/spi-images
Digest: sha256:5a7d791d2ead8a924b1292cb31bf3288eabcfe8880e0b005b00b45b71a5bc36a
Status: Image is up to date for registry.gitlab.com/swiftpackageindex/spi-images:basic-6.3-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 XMLDocument
/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 XMLDocument 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 [#TemporaryPointers]
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 [#TemporaryPointers]
52 |
53 | super.init(nodePtr: nil, owner: nil)
/usr/lib/swift/_foundation_unicode/utypes.h:511:14: error: 'UErrorCode' has different definitions in different modules; definition in module '_FoundationICU' first difference is enum with 175 elements
509 | * @stable ICU 2.0
510 | */
511 | typedef enum UErrorCode {
| `- error: 'UErrorCode' has different definitions in different modules; definition in module '_FoundationICU' first difference is enum with 175 elements
512 | /* The ordering of U_ERROR_INFO_START Vs U_USING_FALLBACK_WARNING looks weird
513 | * and is that way because VC++ debugger displays first encountered constant,
/usr/include/unicode/utypes.h:415:14: note: but in 'libxml2XMLDocument' found enum with 163 elements
413 | * @stable ICU 2.0
414 | */
415 | typedef enum UErrorCode {
| `- note: but in 'libxml2XMLDocument' found enum with 163 elements
416 | /* The ordering of U_ERROR_INFO_START Vs U_USING_FALLBACK_WARNING looks weird
417 | * and is that way because VC++ debugger displays first encountered constant,
[#TemporaryPointers]: <https://docs.swift.org/compiler/documentation/diagnostics/temporary-pointers>
BUILD FAILURE 6.3 linux