The Swift Package Index logo.Swift Package Index

Has it really been five years since Swift Package Index launched? Read our anniversary blog post!

Build Information

Failed to build XML, reference master (91ae89), with Swift 6.1 for Android on 28 May 2025 14:23:51 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4609320-0":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:android-6.1-latest swift build --swift-sdk aarch64-unknown-linux-android24 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.63.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/tayloraswift/swiftxml.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/tayloraswift/swiftxml
 * branch            master     -> FETCH_HEAD
 * [new branch]      master     -> origin/master
HEAD is now at 91ae89c unfail build
Cloned https://github.com/tayloraswift/swiftxml.git
Revision (git rev-parse @):
91ae89c58e5a478191c27d44c31bd9bae281fefd
SUCCESS checkout https://github.com/tayloraswift/swiftxml.git at master
========================================
Build
========================================
Selected platform:         android
Swift version:             6.1
Building package at path:  $PWD
https://github.com/tayloraswift/swiftxml.git
https://github.com/tayloraswift/swiftxml.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
  "dependencies" : [
  ],
  "manifest_display_name" : "XML",
  "name" : "XML",
  "path" : "/host/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "XML",
      "targets" : [
        "XML"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    },
    {
      "name" : "tests",
      "targets" : [
        "XMLTests"
      ],
      "type" : {
        "executable" : null
      }
    }
  ],
  "swift_languages_versions" : [
    "4"
  ],
  "targets" : [
    {
      "c99name" : "XMLTests",
      "module_type" : "SwiftTarget",
      "name" : "XMLTests",
      "path" : "tests/swiftxml",
      "product_memberships" : [
        "tests"
      ],
      "sources" : [
        "main.swift",
        "tests.swift"
      ],
      "target_dependencies" : [
        "XML"
      ],
      "type" : "executable"
    },
    {
      "c99name" : "XML",
      "module_type" : "SwiftTarget",
      "name" : "XML",
      "path" : "swiftxml",
      "product_memberships" : [
        "XML",
        "tests"
      ],
      "sources" : [
        "swiftxml.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "4.0"
}
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-0":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:android-6.1-latest swift build --swift-sdk aarch64-unknown-linux-android24 -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
android-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:fe1962677657b2408c217cb5cceb3c09bc1d91486e360cebbc6eee461a5945d8
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:android-6.1-latest
Building for debugging...
[0/7] Write sources
[2/7] Write swift-version-24593BA9C3E375BF.txt
[4/9] Emitting module XML
/host/spi-builder-workspace/swiftxml/swiftxml.swift:367:5: warning: 'public' modifier is redundant for instance method declared in a public extension
365 |     }
366 |
367 |     public mutating
    |     `- warning: 'public' modifier is redundant for instance method declared in a public extension
368 |     func parse(_ str:String)
369 |     {
/host/spi-builder-workspace/swiftxml/swiftxml.swift:911:5: warning: 'public' modifier is redundant for instance method declared in a public extension
909 |     }
910 |
911 |     public mutating
    |     `- warning: 'public' modifier is redundant for instance method declared in a public extension
912 |     func parse(path:String)
913 |     {
[5/9] Compiling XML swiftxml.swift
/host/spi-builder-workspace/swiftxml/swiftxml.swift:367:5: warning: 'public' modifier is redundant for instance method declared in a public extension
365 |     }
366 |
367 |     public mutating
    |     `- warning: 'public' modifier is redundant for instance method declared in a public extension
368 |     func parse(_ str:String)
369 |     {
/host/spi-builder-workspace/swiftxml/swiftxml.swift:911:5: warning: 'public' modifier is redundant for instance method declared in a public extension
909 |     }
910 |
911 |     public mutating
    |     `- warning: 'public' modifier is redundant for instance method declared in a public extension
912 |     func parse(path:String)
913 |     {
/host/spi-builder-workspace/swiftxml/swiftxml.swift:318:49: error: cannot find 'getenv' in scope
316 |             if expanded_path.count == 1 || expanded_path[expanded_path.index(after: expanded_path.startIndex)] == "/"
317 |             {
318 |                 expanded_path = String(cString: getenv("HOME")) + String(expanded_path.dropFirst())
    |                                                 `- error: cannot find 'getenv' in scope
319 |             }
320 |         }
/host/spi-builder-workspace/swiftxml/swiftxml.swift:327:42: error: cannot find type 'FILE' in scope
325 |     func open_text_file(_ posix_path:String) -> String?
326 |     {
327 |         guard let f:UnsafeMutablePointer<FILE> = fopen(posix_path, "rb")
    |                                          `- error: cannot find type 'FILE' in scope
328 |         else
329 |         {
/host/spi-builder-workspace/swiftxml/swiftxml.swift:327:50: error: cannot find 'fopen' in scope
325 |     func open_text_file(_ posix_path:String) -> String?
326 |     {
327 |         guard let f:UnsafeMutablePointer<FILE> = fopen(posix_path, "rb")
    |                                                  `- error: cannot find 'fopen' in scope
328 |         else
329 |         {
/host/spi-builder-workspace/swiftxml/swiftxml.swift:327:50: error: type of expression is ambiguous without a type annotation
325 |     func open_text_file(_ posix_path:String) -> String?
326 |     {
327 |         guard let f:UnsafeMutablePointer<FILE> = fopen(posix_path, "rb")
    |                                                  `- error: type of expression is ambiguous without a type annotation
328 |         else
329 |         {
/host/spi-builder-workspace/swiftxml/swiftxml.swift:333:17: error: cannot find 'fclose' in scope
331 |             return nil
332 |         }
333 |         defer { fclose(f) }
    |                 `- error: cannot find 'fclose' in scope
334 |
335 |         let fseek_status:CInt = fseek(f, 0, SEEK_END)
/host/spi-builder-workspace/swiftxml/swiftxml.swift:335:33: error: cannot find 'fseek' in scope
333 |         defer { fclose(f) }
334 |
335 |         let fseek_status:CInt = fseek(f, 0, SEEK_END)
    |                                 `- error: cannot find 'fseek' in scope
336 |         guard fseek_status == 0
337 |         else
/host/spi-builder-workspace/swiftxml/swiftxml.swift:335:45: error: cannot find 'SEEK_END' in scope
333 |         defer { fclose(f) }
334 |
335 |         let fseek_status:CInt = fseek(f, 0, SEEK_END)
    |                                             `- error: cannot find 'SEEK_END' in scope
336 |         guard fseek_status == 0
337 |         else
/host/spi-builder-workspace/swiftxml/swiftxml.swift:343:23: error: cannot find 'ftell' in scope
341 |         }
342 |
343 |         let n:CLong = ftell(f)
    |                       `- error: cannot find 'ftell' in scope
344 |         guard 0 ..< CLong.max ~= n
345 |         else
/host/spi-builder-workspace/swiftxml/swiftxml.swift:350:9: error: cannot find 'rewind' in scope
348 |             return nil
349 |         }
350 |         rewind(f)
    |         `- error: cannot find 'rewind' in scope
351 |
352 |         let buffer:UnsafeMutablePointer<CChar> = UnsafeMutablePointer<CChar>.allocate(capacity: n + 1) // leave room for sentinel
/host/spi-builder-workspace/swiftxml/swiftxml.swift:353:24: warning: 'deallocate(capacity:)' is deprecated: Swift currently only supports freeing entire heap blocks, use deallocate() instead
351 |
352 |         let buffer:UnsafeMutablePointer<CChar> = UnsafeMutablePointer<CChar>.allocate(capacity: n + 1) // leave room for sentinel
353 |         defer { buffer.deallocate(capacity: n + 1) }
    |                        `- warning: 'deallocate(capacity:)' is deprecated: Swift currently only supports freeing entire heap blocks, use deallocate() instead
354 |
355 |         let n_read = fread(buffer, MemoryLayout<CChar>.size, n, f)
/host/spi-builder-workspace/swiftxml/swiftxml.swift:355:22: error: cannot find 'fread' in scope
353 |         defer { buffer.deallocate(capacity: n + 1) }
354 |
355 |         let n_read = fread(buffer, MemoryLayout<CChar>.size, n, f)
    |                      `- error: cannot find 'fread' in scope
356 |         guard n_read == n
357 |         else
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-0":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:android-6.1-latest swift build --swift-sdk aarch64-unknown-linux-android24 2>&1
android-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:fe1962677657b2408c217cb5cceb3c09bc1d91486e360cebbc6eee461a5945d8
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:android-6.1-latest
[0/1] Planning build
Building for debugging...
[0/5] Write swift-version-24593BA9C3E375BF.txt
[2/7] Emitting module XML
/host/spi-builder-workspace/swiftxml/swiftxml.swift:367:5: warning: 'public' modifier is redundant for instance method declared in a public extension
365 |     }
366 |
367 |     public mutating
    |     `- warning: 'public' modifier is redundant for instance method declared in a public extension
368 |     func parse(_ str:String)
369 |     {
/host/spi-builder-workspace/swiftxml/swiftxml.swift:911:5: warning: 'public' modifier is redundant for instance method declared in a public extension
909 |     }
910 |
911 |     public mutating
    |     `- warning: 'public' modifier is redundant for instance method declared in a public extension
912 |     func parse(path:String)
913 |     {
[3/7] Compiling XML swiftxml.swift
/host/spi-builder-workspace/swiftxml/swiftxml.swift:367:5: warning: 'public' modifier is redundant for instance method declared in a public extension
365 |     }
366 |
367 |     public mutating
    |     `- warning: 'public' modifier is redundant for instance method declared in a public extension
368 |     func parse(_ str:String)
369 |     {
/host/spi-builder-workspace/swiftxml/swiftxml.swift:911:5: warning: 'public' modifier is redundant for instance method declared in a public extension
909 |     }
910 |
911 |     public mutating
    |     `- warning: 'public' modifier is redundant for instance method declared in a public extension
912 |     func parse(path:String)
913 |     {
/host/spi-builder-workspace/swiftxml/swiftxml.swift:318:49: error: cannot find 'getenv' in scope
316 |             if expanded_path.count == 1 || expanded_path[expanded_path.index(after: expanded_path.startIndex)] == "/"
317 |             {
318 |                 expanded_path = String(cString: getenv("HOME")) + String(expanded_path.dropFirst())
    |                                                 `- error: cannot find 'getenv' in scope
319 |             }
320 |         }
/host/spi-builder-workspace/swiftxml/swiftxml.swift:327:42: error: cannot find type 'FILE' in scope
325 |     func open_text_file(_ posix_path:String) -> String?
326 |     {
327 |         guard let f:UnsafeMutablePointer<FILE> = fopen(posix_path, "rb")
    |                                          `- error: cannot find type 'FILE' in scope
328 |         else
329 |         {
/host/spi-builder-workspace/swiftxml/swiftxml.swift:327:50: error: cannot find 'fopen' in scope
325 |     func open_text_file(_ posix_path:String) -> String?
326 |     {
327 |         guard let f:UnsafeMutablePointer<FILE> = fopen(posix_path, "rb")
    |                                                  `- error: cannot find 'fopen' in scope
328 |         else
329 |         {
/host/spi-builder-workspace/swiftxml/swiftxml.swift:327:50: error: type of expression is ambiguous without a type annotation
325 |     func open_text_file(_ posix_path:String) -> String?
326 |     {
327 |         guard let f:UnsafeMutablePointer<FILE> = fopen(posix_path, "rb")
    |                                                  `- error: type of expression is ambiguous without a type annotation
328 |         else
329 |         {
/host/spi-builder-workspace/swiftxml/swiftxml.swift:333:17: error: cannot find 'fclose' in scope
331 |             return nil
332 |         }
333 |         defer { fclose(f) }
    |                 `- error: cannot find 'fclose' in scope
334 |
335 |         let fseek_status:CInt = fseek(f, 0, SEEK_END)
/host/spi-builder-workspace/swiftxml/swiftxml.swift:335:33: error: cannot find 'fseek' in scope
333 |         defer { fclose(f) }
334 |
335 |         let fseek_status:CInt = fseek(f, 0, SEEK_END)
    |                                 `- error: cannot find 'fseek' in scope
336 |         guard fseek_status == 0
337 |         else
/host/spi-builder-workspace/swiftxml/swiftxml.swift:335:45: error: cannot find 'SEEK_END' in scope
333 |         defer { fclose(f) }
334 |
335 |         let fseek_status:CInt = fseek(f, 0, SEEK_END)
    |                                             `- error: cannot find 'SEEK_END' in scope
336 |         guard fseek_status == 0
337 |         else
/host/spi-builder-workspace/swiftxml/swiftxml.swift:343:23: error: cannot find 'ftell' in scope
341 |         }
342 |
343 |         let n:CLong = ftell(f)
    |                       `- error: cannot find 'ftell' in scope
344 |         guard 0 ..< CLong.max ~= n
345 |         else
/host/spi-builder-workspace/swiftxml/swiftxml.swift:350:9: error: cannot find 'rewind' in scope
348 |             return nil
349 |         }
350 |         rewind(f)
    |         `- error: cannot find 'rewind' in scope
351 |
352 |         let buffer:UnsafeMutablePointer<CChar> = UnsafeMutablePointer<CChar>.allocate(capacity: n + 1) // leave room for sentinel
/host/spi-builder-workspace/swiftxml/swiftxml.swift:353:24: warning: 'deallocate(capacity:)' is deprecated: Swift currently only supports freeing entire heap blocks, use deallocate() instead
351 |
352 |         let buffer:UnsafeMutablePointer<CChar> = UnsafeMutablePointer<CChar>.allocate(capacity: n + 1) // leave room for sentinel
353 |         defer { buffer.deallocate(capacity: n + 1) }
    |                        `- warning: 'deallocate(capacity:)' is deprecated: Swift currently only supports freeing entire heap blocks, use deallocate() instead
354 |
355 |         let n_read = fread(buffer, MemoryLayout<CChar>.size, n, f)
/host/spi-builder-workspace/swiftxml/swiftxml.swift:355:22: error: cannot find 'fread' in scope
353 |         defer { buffer.deallocate(capacity: n + 1) }
354 |
355 |         let n_read = fread(buffer, MemoryLayout<CChar>.size, n, f)
    |                      `- error: cannot find 'fread' in scope
356 |         guard n_read == n
357 |         else
BUILD FAILURE 6.1 android