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 PerfectXML, reference 3.1.3 (977d27), with Swift 6.1 for Wasm on 27 May 2025 06:35:55 UTC.

Build Command

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

Build Log

========================================
RunAll
========================================
Builder version: 4.63.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/perfectlysoft/perfect-xml.git
Reference: 3.1.3
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/perfectlysoft/perfect-xml
 * tag               3.1.3      -> FETCH_HEAD
HEAD is now at 977d277 Updated import
Cloned https://github.com/perfectlysoft/perfect-xml.git
Revision (git rev-parse @):
977d27770b74f8e73653b9f569b7dac1bfea4150
SUCCESS checkout https://github.com/perfectlysoft/perfect-xml.git at 3.1.3
========================================
Build
========================================
Selected platform:         wasm
Swift version:             6.1
Building package at path:  $PWD
https://github.com/perfectlysoft/perfect-xml.git
https://github.com/perfectlysoft/perfect-xml.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
  "dependencies" : [
    {
      "identity" : "perfect-libxml2",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "3.0.0",
            "upper_bound" : "4.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/PerfectlySoft/Perfect-libxml2.git"
    }
  ],
  "manifest_display_name" : "PerfectXML",
  "name" : "PerfectXML",
  "path" : "/host/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "PerfectXML",
      "targets" : [
        "PerfectXML"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "PerfectXMLTests",
      "module_type" : "SwiftTarget",
      "name" : "PerfectXMLTests",
      "path" : "Tests/PerfectXMLTests",
      "sources" : [
        "PerfectXMLTests.swift"
      ],
      "target_dependencies" : [
        "PerfectXML"
      ],
      "type" : "test"
    },
    {
      "c99name" : "PerfectXML",
      "module_type" : "SwiftTarget",
      "name" : "PerfectXML",
      "path" : "Sources/PerfectXML",
      "product_memberships" : [
        "PerfectXML"
      ],
      "sources" : [
        "Codable.swift",
        "SAX.swift",
        "XMLDOM.swift",
        "XMLStream.swift",
        "XPath.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "4.0"
}
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-1":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi -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
wasm-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:059e0fdbe549369b902c0d423739510ddee50a4a70258d1404125eb9394ef31c
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest
Fetching https://github.com/PerfectlySoft/Perfect-libxml2.git
[1/89] Fetching perfect-libxml2
Fetched https://github.com/PerfectlySoft/Perfect-libxml2.git from cache (0.27s)
Computing version for https://github.com/PerfectlySoft/Perfect-libxml2.git
Computed https://github.com/PerfectlySoft/Perfect-libxml2.git at 3.0.1 (1.21s)
Creating working copy for https://github.com/PerfectlySoft/Perfect-libxml2.git
Working copy of https://github.com/PerfectlySoft/Perfect-libxml2.git resolved at 3.0.1
warning: 'perfect-libxml2': ignoring declared target(s) 'libxml2' in the system package
warning: 'spi-builder-workspace': dependency 'perfect-libxml2' is not used by any target
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-24593BA9C3E375BF.txt
[3/8] Compiling PerfectXML XPath.swift
<module-includes>:1:10: note: in file included from <module-includes>:1:
1 | #include "libxml2.h"
  |          `- note: in file included from <module-includes>:1:
2 |
/host/spi-builder-workspace/.build/checkouts/Perfect-libxml2/libxml2.h:4:10: error: 'libxml2/libxml/tree.h' file not found
 2 | #ifndef _libxml2_h_
 3 | #define _libxml2_h_
 4 | #include <libxml2/libxml/tree.h>
   |          `- error: 'libxml2/libxml/tree.h' file not found
 5 | #include <libxml2/libxml/xmlreader.h>
 6 | #include <libxml2/libxml/xpath.h>
/host/spi-builder-workspace/Sources/PerfectXML/SAX.swift:8:8: error: could not build C module 'perfectxml2'
  6 | //
  7 |
  8 | import perfectxml2
    |        `- error: could not build C module 'perfectxml2'
  9 |
 10 | public struct SAXError: Error {
[4/8] Compiling PerfectXML XMLStream.swift
<module-includes>:1:10: note: in file included from <module-includes>:1:
1 | #include "libxml2.h"
  |          `- note: in file included from <module-includes>:1:
2 |
/host/spi-builder-workspace/.build/checkouts/Perfect-libxml2/libxml2.h:4:10: error: 'libxml2/libxml/tree.h' file not found
 2 | #ifndef _libxml2_h_
 3 | #define _libxml2_h_
 4 | #include <libxml2/libxml/tree.h>
   |          `- error: 'libxml2/libxml/tree.h' file not found
 5 | #include <libxml2/libxml/xmlreader.h>
 6 | #include <libxml2/libxml/xpath.h>
/host/spi-builder-workspace/Sources/PerfectXML/SAX.swift:8:8: error: could not build C module 'perfectxml2'
  6 | //
  7 |
  8 | import perfectxml2
    |        `- error: could not build C module 'perfectxml2'
  9 |
 10 | public struct SAXError: Error {
error: emit-module command failed with exit code 1 (use -v to see invocation)
[5/8] Emitting module PerfectXML
<module-includes>:1:10: note: in file included from <module-includes>:1:
1 | #include "libxml2.h"
  |          `- note: in file included from <module-includes>:1:
2 |
/host/spi-builder-workspace/.build/checkouts/Perfect-libxml2/libxml2.h:4:10: error: 'libxml2/libxml/tree.h' file not found
 2 | #ifndef _libxml2_h_
 3 | #define _libxml2_h_
 4 | #include <libxml2/libxml/tree.h>
   |          `- error: 'libxml2/libxml/tree.h' file not found
 5 | #include <libxml2/libxml/xmlreader.h>
 6 | #include <libxml2/libxml/xpath.h>
/host/spi-builder-workspace/Sources/PerfectXML/SAX.swift:8:8: error: could not build C module 'perfectxml2'
  6 | //
  7 |
  8 | import perfectxml2
    |        `- error: could not build C module 'perfectxml2'
  9 |
 10 | public struct SAXError: Error {
[6/8] Compiling PerfectXML SAX.swift
<module-includes>:1:10: note: in file included from <module-includes>:1:
1 | #include "libxml2.h"
  |          `- note: in file included from <module-includes>:1:
2 |
/host/spi-builder-workspace/.build/checkouts/Perfect-libxml2/libxml2.h:4:10: error: 'libxml2/libxml/tree.h' file not found
 2 | #ifndef _libxml2_h_
 3 | #define _libxml2_h_
 4 | #include <libxml2/libxml/tree.h>
   |          `- error: 'libxml2/libxml/tree.h' file not found
 5 | #include <libxml2/libxml/xmlreader.h>
 6 | #include <libxml2/libxml/xpath.h>
/host/spi-builder-workspace/Sources/PerfectXML/SAX.swift:8:8: error: could not build C module 'perfectxml2'
  6 | //
  7 |
  8 | import perfectxml2
    |        `- error: could not build C module 'perfectxml2'
  9 |
 10 | public struct SAXError: Error {
[7/8] Compiling PerfectXML XMLDOM.swift
<module-includes>:1:10: note: in file included from <module-includes>:1:
1 | #include "libxml2.h"
  |          `- note: in file included from <module-includes>:1:
2 |
/host/spi-builder-workspace/.build/checkouts/Perfect-libxml2/libxml2.h:4:10: error: 'libxml2/libxml/tree.h' file not found
 2 | #ifndef _libxml2_h_
 3 | #define _libxml2_h_
 4 | #include <libxml2/libxml/tree.h>
   |          `- error: 'libxml2/libxml/tree.h' file not found
 5 | #include <libxml2/libxml/xmlreader.h>
 6 | #include <libxml2/libxml/xpath.h>
/host/spi-builder-workspace/Sources/PerfectXML/SAX.swift:8:8: error: could not build C module 'perfectxml2'
  6 | //
  7 |
  8 | import perfectxml2
    |        `- error: could not build C module 'perfectxml2'
  9 |
 10 | public struct SAXError: Error {
[8/8] Compiling PerfectXML Codable.swift
<module-includes>:1:10: note: in file included from <module-includes>:1:
1 | #include "libxml2.h"
  |          `- note: in file included from <module-includes>:1:
2 |
/host/spi-builder-workspace/.build/checkouts/Perfect-libxml2/libxml2.h:4:10: error: 'libxml2/libxml/tree.h' file not found
 2 | #ifndef _libxml2_h_
 3 | #define _libxml2_h_
 4 | #include <libxml2/libxml/tree.h>
   |          `- error: 'libxml2/libxml/tree.h' file not found
 5 | #include <libxml2/libxml/xmlreader.h>
 6 | #include <libxml2/libxml/xpath.h>
/host/spi-builder-workspace/Sources/PerfectXML/SAX.swift:8:8: error: could not build C module 'perfectxml2'
  6 | //
  7 |
  8 | import perfectxml2
    |        `- error: could not build C module 'perfectxml2'
  9 |
 10 | public struct SAXError: Error {
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-1":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1
wasm-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:059e0fdbe549369b902c0d423739510ddee50a4a70258d1404125eb9394ef31c
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest
warning: 'perfect-libxml2': ignoring declared target(s) 'libxml2' in the system package
warning: 'spi-builder-workspace': dependency 'perfect-libxml2' is not used by any target
[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/7] Emitting module PerfectXML
<module-includes>:1:10: note: in file included from <module-includes>:1:
1 | #include "libxml2.h"
  |          `- note: in file included from <module-includes>:1:
2 |
/host/spi-builder-workspace/.build/checkouts/Perfect-libxml2/libxml2.h:4:10: error: 'libxml2/libxml/tree.h' file not found
 2 | #ifndef _libxml2_h_
 3 | #define _libxml2_h_
 4 | #include <libxml2/libxml/tree.h>
   |          `- error: 'libxml2/libxml/tree.h' file not found
 5 | #include <libxml2/libxml/xmlreader.h>
 6 | #include <libxml2/libxml/xpath.h>
/host/spi-builder-workspace/Sources/PerfectXML/SAX.swift:8:8: error: could not build C module 'perfectxml2'
  6 | //
  7 |
  8 | import perfectxml2
    |        `- error: could not build C module 'perfectxml2'
  9 |
 10 | public struct SAXError: Error {
[3/7] Compiling PerfectXML XPath.swift
<module-includes>:1:10: note: in file included from <module-includes>:1:
1 | #include "libxml2.h"
  |          `- note: in file included from <module-includes>:1:
2 |
/host/spi-builder-workspace/.build/checkouts/Perfect-libxml2/libxml2.h:4:10: error: 'libxml2/libxml/tree.h' file not found
 2 | #ifndef _libxml2_h_
 3 | #define _libxml2_h_
 4 | #include <libxml2/libxml/tree.h>
   |          `- error: 'libxml2/libxml/tree.h' file not found
 5 | #include <libxml2/libxml/xmlreader.h>
 6 | #include <libxml2/libxml/xpath.h>
/host/spi-builder-workspace/Sources/PerfectXML/SAX.swift:8:8: error: could not build C module 'perfectxml2'
  6 | //
  7 |
  8 | import perfectxml2
    |        `- error: could not build C module 'perfectxml2'
  9 |
 10 | public struct SAXError: Error {
[4/7] Compiling PerfectXML XMLDOM.swift
<module-includes>:1:10: note: in file included from <module-includes>:1:
1 | #include "libxml2.h"
  |          `- note: in file included from <module-includes>:1:
2 |
/host/spi-builder-workspace/.build/checkouts/Perfect-libxml2/libxml2.h:4:10: error: 'libxml2/libxml/tree.h' file not found
 2 | #ifndef _libxml2_h_
 3 | #define _libxml2_h_
 4 | #include <libxml2/libxml/tree.h>
   |          `- error: 'libxml2/libxml/tree.h' file not found
 5 | #include <libxml2/libxml/xmlreader.h>
 6 | #include <libxml2/libxml/xpath.h>
/host/spi-builder-workspace/Sources/PerfectXML/SAX.swift:8:8: error: could not build C module 'perfectxml2'
  6 | //
  7 |
  8 | import perfectxml2
    |        `- error: could not build C module 'perfectxml2'
  9 |
 10 | public struct SAXError: Error {
[5/7] Compiling PerfectXML XMLStream.swift
<module-includes>:1:10: note: in file included from <module-includes>:1:
1 | #include "libxml2.h"
  |          `- note: in file included from <module-includes>:1:
2 |
/host/spi-builder-workspace/.build/checkouts/Perfect-libxml2/libxml2.h:4:10: error: 'libxml2/libxml/tree.h' file not found
 2 | #ifndef _libxml2_h_
 3 | #define _libxml2_h_
 4 | #include <libxml2/libxml/tree.h>
   |          `- error: 'libxml2/libxml/tree.h' file not found
 5 | #include <libxml2/libxml/xmlreader.h>
 6 | #include <libxml2/libxml/xpath.h>
/host/spi-builder-workspace/Sources/PerfectXML/SAX.swift:8:8: error: could not build C module 'perfectxml2'
  6 | //
  7 |
  8 | import perfectxml2
    |        `- error: could not build C module 'perfectxml2'
  9 |
 10 | public struct SAXError: Error {
[6/7] Compiling PerfectXML SAX.swift
<module-includes>:1:10: note: in file included from <module-includes>:1:
1 | #include "libxml2.h"
  |          `- note: in file included from <module-includes>:1:
2 |
/host/spi-builder-workspace/.build/checkouts/Perfect-libxml2/libxml2.h:4:10: error: 'libxml2/libxml/tree.h' file not found
 2 | #ifndef _libxml2_h_
 3 | #define _libxml2_h_
 4 | #include <libxml2/libxml/tree.h>
   |          `- error: 'libxml2/libxml/tree.h' file not found
 5 | #include <libxml2/libxml/xmlreader.h>
 6 | #include <libxml2/libxml/xpath.h>
/host/spi-builder-workspace/Sources/PerfectXML/SAX.swift:8:8: error: could not build C module 'perfectxml2'
  6 | //
  7 |
  8 | import perfectxml2
    |        `- error: could not build C module 'perfectxml2'
  9 |
 10 | public struct SAXError: Error {
[7/7] Compiling PerfectXML Codable.swift
<module-includes>:1:10: note: in file included from <module-includes>:1:
1 | #include "libxml2.h"
  |          `- note: in file included from <module-includes>:1:
2 |
/host/spi-builder-workspace/.build/checkouts/Perfect-libxml2/libxml2.h:4:10: error: 'libxml2/libxml/tree.h' file not found
 2 | #ifndef _libxml2_h_
 3 | #define _libxml2_h_
 4 | #include <libxml2/libxml/tree.h>
   |          `- error: 'libxml2/libxml/tree.h' file not found
 5 | #include <libxml2/libxml/xmlreader.h>
 6 | #include <libxml2/libxml/xpath.h>
/host/spi-builder-workspace/Sources/PerfectXML/SAX.swift:8:8: error: could not build C module 'perfectxml2'
  6 | //
  7 |
  8 | import perfectxml2
    |        `- error: could not build C module 'perfectxml2'
  9 |
 10 | public struct SAXError: Error {
BUILD FAILURE 6.1 wasm