The Swift Package Index logo.Swift Package Index

Build Information

Failed to build PerfectXML, reference 3.1.3 (977d27), with Swift 6.3 for Wasm on 22 Apr 2026 09:40:57 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4606859-3":/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:wasm-6.3-latest swift build --swift-sdk swift-6.3-RELEASE_wasm 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.70.0
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.3
Building package at path:  $PWD
https://github.com/perfectlysoft/perfect-xml.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-3":/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:wasm-6.3-latest swift build --swift-sdk swift-6.3-RELEASE_wasm 2>&1
wasm-6.3-latest: Pulling from swiftpackageindex/spi-images
Digest: sha256:d69f4e7582c319245442d62a08b2d7c7fd5a0c0c69f5d2ef11d1530cd8d3329b
Status: Image is up to date for registry.gitlab.com/swiftpackageindex/spi-images:wasm-6.3-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.45s)
Computing version for https://github.com/PerfectlySoft/Perfect-libxml2.git
Computed https://github.com/PerfectlySoft/Perfect-libxml2.git at 3.0.1 (1.77s)
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 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: note: in file included from /host/spi-builder-workspace/.build/checkouts/Perfect-libxml2/libxml2.h:4:
 2 | #ifndef _libxml2_h_
 3 | #define _libxml2_h_
 4 | #include <libxml2/libxml/tree.h>
   |          `- note: in file included from /host/spi-builder-workspace/.build/checkouts/Perfect-libxml2/libxml2.h:4:
 5 | #include <libxml2/libxml/xmlreader.h>
 6 | #include <libxml2/libxml/xpath.h>
/root/.swiftpm/swift-sdks/swift-6.3-RELEASE_wasm.artifactbundle/swift-6.3-RELEASE_wasm/wasm32-unknown-wasip1/WASI.sdk/include/libxml2/libxml/tree.h:768:1: error: unknown type name 'XML_DEPRECATED'
 766 | 		xmlFreeDtd		(xmlDtdPtr cur);
 767 | #ifdef LIBXML_LEGACY_ENABLED
 768 | XML_DEPRECATED
     | `- error: unknown type name 'XML_DEPRECATED'
 769 | XMLPUBFUN xmlNsPtr
 770 | 		xmlNewGlobalNs		(xmlDocPtr doc,
<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: note: in file included from /host/spi-builder-workspace/.build/checkouts/Perfect-libxml2/libxml2.h:4:
 2 | #ifndef _libxml2_h_
 3 | #define _libxml2_h_
 4 | #include <libxml2/libxml/tree.h>
   |          `- note: in file included from /host/spi-builder-workspace/.build/checkouts/Perfect-libxml2/libxml2.h:4:
 5 | #include <libxml2/libxml/xmlreader.h>
 6 | #include <libxml2/libxml/xpath.h>
/root/.swiftpm/swift-sdks/swift-6.3-RELEASE_wasm.artifactbundle/swift-6.3-RELEASE_wasm/wasm32-unknown-wasip1/WASI.sdk/include/libxml2/libxml/tree.h:769:19: error: expected ';' after top level declarator
 767 | #ifdef LIBXML_LEGACY_ENABLED
 768 | XML_DEPRECATED
 769 | XMLPUBFUN xmlNsPtr
     |                   `- error: expected ';' after top level declarator
 770 | 		xmlNewGlobalNs		(xmlDocPtr doc,
 771 | 					 const xmlChar *href,
     :
1308 | #endif
1309 | #ifndef __XML_PARSER_H__
1310 | #include <libxml/xmlmemory.h>
     |          `- note: in file included from /root/.swiftpm/swift-sdks/swift-6.3-RELEASE_wasm.artifactbundle/swift-6.3-RELEASE_wasm/wasm32-unknown-wasip1/WASI.sdk/include/libxml2/libxml/tree.h:1310:
1311 | #endif
1312 |
<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: note: in file included from /host/spi-builder-workspace/.build/checkouts/Perfect-libxml2/libxml2.h:4:
 2 | #ifndef _libxml2_h_
 3 | #define _libxml2_h_
 4 | #include <libxml2/libxml/tree.h>
   |          `- note: in file included from /host/spi-builder-workspace/.build/checkouts/Perfect-libxml2/libxml2.h:4:
 5 | #include <libxml2/libxml/xmlreader.h>
 6 | #include <libxml2/libxml/xpath.h>
/usr/include/libxml2/libxml/xmlmemory.h:218:10: note: in file included from /usr/include/libxml2/libxml/xmlmemory.h:218:
216 | #ifndef __XML_GLOBALS_H
217 | #ifndef __XML_THREADS_H__
218 | #include <libxml/threads.h>
    |          `- note: in file included from /usr/include/libxml2/libxml/xmlmemory.h:218:
219 | #include <libxml/globals.h>
220 | #endif
/usr/include/libxml2/libxml/threads.h:35:10: note: in file included from /usr/include/libxml2/libxml/threads.h:35:
33 | }
34 | #endif
35 | #include <libxml/globals.h>
   |          `- note: in file included from /usr/include/libxml2/libxml/threads.h:35:
36 | #ifdef __cplusplus
37 | extern "C" {
/usr/include/libxml2/libxml/globals.h:18:10: note: in file included from /usr/include/libxml2/libxml/globals.h:18:
 16 |
 17 | #include <libxml/xmlversion.h>
 18 | #include <libxml/parser.h>
    |          `- note: in file included from /usr/include/libxml2/libxml/globals.h:18:
 19 | #include <libxml/xmlerror.h>
 20 | #include <libxml/SAX2.h>
/usr/include/libxml2/libxml/parser.h:812:10: note: in file included from /usr/include/libxml2/libxml/parser.h:812:
 810 | #endif
 811 |
 812 | #include <libxml/encoding.h>
     |          `- note: in file included from /usr/include/libxml2/libxml/parser.h:812:
 813 | #include <libxml/xmlIO.h>
 814 | #include <libxml/globals.h>
/usr/include/libxml2/libxml/encoding.h:31:10: error: 'unicode/ucnv.h' file not found
 29 | #endif
 30 | #ifdef LIBXML_ICU_ENABLED
 31 | #include <unicode/ucnv.h>
    |          `- error: 'unicode/ucnv.h' file not found
 32 | #endif
 33 | #ifdef __cplusplus
/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 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: note: in file included from /host/spi-builder-workspace/.build/checkouts/Perfect-libxml2/libxml2.h:4:
 2 | #ifndef _libxml2_h_
 3 | #define _libxml2_h_
 4 | #include <libxml2/libxml/tree.h>
   |          `- note: in file included from /host/spi-builder-workspace/.build/checkouts/Perfect-libxml2/libxml2.h:4:
 5 | #include <libxml2/libxml/xmlreader.h>
 6 | #include <libxml2/libxml/xpath.h>
/root/.swiftpm/swift-sdks/swift-6.3-RELEASE_wasm.artifactbundle/swift-6.3-RELEASE_wasm/wasm32-unknown-wasip1/WASI.sdk/include/libxml2/libxml/tree.h:768:1: error: unknown type name 'XML_DEPRECATED'
 766 | 		xmlFreeDtd		(xmlDtdPtr cur);
 767 | #ifdef LIBXML_LEGACY_ENABLED
 768 | XML_DEPRECATED
     | `- error: unknown type name 'XML_DEPRECATED'
 769 | XMLPUBFUN xmlNsPtr
 770 | 		xmlNewGlobalNs		(xmlDocPtr doc,
<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: note: in file included from /host/spi-builder-workspace/.build/checkouts/Perfect-libxml2/libxml2.h:4:
 2 | #ifndef _libxml2_h_
 3 | #define _libxml2_h_
 4 | #include <libxml2/libxml/tree.h>
   |          `- note: in file included from /host/spi-builder-workspace/.build/checkouts/Perfect-libxml2/libxml2.h:4:
 5 | #include <libxml2/libxml/xmlreader.h>
 6 | #include <libxml2/libxml/xpath.h>
/root/.swiftpm/swift-sdks/swift-6.3-RELEASE_wasm.artifactbundle/swift-6.3-RELEASE_wasm/wasm32-unknown-wasip1/WASI.sdk/include/libxml2/libxml/tree.h:769:19: error: expected ';' after top level declarator
 767 | #ifdef LIBXML_LEGACY_ENABLED
 768 | XML_DEPRECATED
 769 | XMLPUBFUN xmlNsPtr
     |                   `- error: expected ';' after top level declarator
 770 | 		xmlNewGlobalNs		(xmlDocPtr doc,
 771 | 					 const xmlChar *href,
     :
1308 | #endif
1309 | #ifndef __XML_PARSER_H__
1310 | #include <libxml/xmlmemory.h>
     |          `- note: in file included from /root/.swiftpm/swift-sdks/swift-6.3-RELEASE_wasm.artifactbundle/swift-6.3-RELEASE_wasm/wasm32-unknown-wasip1/WASI.sdk/include/libxml2/libxml/tree.h:1310:
1311 | #endif
1312 |
<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: note: in file included from /host/spi-builder-workspace/.build/checkouts/Perfect-libxml2/libxml2.h:4:
 2 | #ifndef _libxml2_h_
 3 | #define _libxml2_h_
 4 | #include <libxml2/libxml/tree.h>
   |          `- note: in file included from /host/spi-builder-workspace/.build/checkouts/Perfect-libxml2/libxml2.h:4:
 5 | #include <libxml2/libxml/xmlreader.h>
 6 | #include <libxml2/libxml/xpath.h>
/usr/include/libxml2/libxml/xmlmemory.h:218:10: note: in file included from /usr/include/libxml2/libxml/xmlmemory.h:218:
216 | #ifndef __XML_GLOBALS_H
217 | #ifndef __XML_THREADS_H__
218 | #include <libxml/threads.h>
    |          `- note: in file included from /usr/include/libxml2/libxml/xmlmemory.h:218:
219 | #include <libxml/globals.h>
220 | #endif
/usr/include/libxml2/libxml/threads.h:35:10: note: in file included from /usr/include/libxml2/libxml/threads.h:35:
33 | }
34 | #endif
35 | #include <libxml/globals.h>
   |          `- note: in file included from /usr/include/libxml2/libxml/threads.h:35:
36 | #ifdef __cplusplus
37 | extern "C" {
/usr/include/libxml2/libxml/globals.h:18:10: note: in file included from /usr/include/libxml2/libxml/globals.h:18:
 16 |
 17 | #include <libxml/xmlversion.h>
 18 | #include <libxml/parser.h>
    |          `- note: in file included from /usr/include/libxml2/libxml/globals.h:18:
 19 | #include <libxml/xmlerror.h>
 20 | #include <libxml/SAX2.h>
/usr/include/libxml2/libxml/parser.h:812:10: note: in file included from /usr/include/libxml2/libxml/parser.h:812:
 810 | #endif
 811 |
 812 | #include <libxml/encoding.h>
     |          `- note: in file included from /usr/include/libxml2/libxml/parser.h:812:
 813 | #include <libxml/xmlIO.h>
 814 | #include <libxml/globals.h>
/usr/include/libxml2/libxml/encoding.h:31:10: error: 'unicode/ucnv.h' file not found
 29 | #endif
 30 | #ifdef LIBXML_ICU_ENABLED
 31 | #include <unicode/ucnv.h>
    |          `- error: 'unicode/ucnv.h' file not found
 32 | #endif
 33 | #ifdef __cplusplus
/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: note: in file included from /host/spi-builder-workspace/.build/checkouts/Perfect-libxml2/libxml2.h:4:
 2 | #ifndef _libxml2_h_
 3 | #define _libxml2_h_
 4 | #include <libxml2/libxml/tree.h>
   |          `- note: in file included from /host/spi-builder-workspace/.build/checkouts/Perfect-libxml2/libxml2.h:4:
 5 | #include <libxml2/libxml/xmlreader.h>
 6 | #include <libxml2/libxml/xpath.h>
/root/.swiftpm/swift-sdks/swift-6.3-RELEASE_wasm.artifactbundle/swift-6.3-RELEASE_wasm/wasm32-unknown-wasip1/WASI.sdk/include/libxml2/libxml/tree.h:768:1: error: unknown type name 'XML_DEPRECATED'
 766 | 		xmlFreeDtd		(xmlDtdPtr cur);
 767 | #ifdef LIBXML_LEGACY_ENABLED
 768 | XML_DEPRECATED
     | `- error: unknown type name 'XML_DEPRECATED'
 769 | XMLPUBFUN xmlNsPtr
 770 | 		xmlNewGlobalNs		(xmlDocPtr doc,
<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: note: in file included from /host/spi-builder-workspace/.build/checkouts/Perfect-libxml2/libxml2.h:4:
 2 | #ifndef _libxml2_h_
 3 | #define _libxml2_h_
 4 | #include <libxml2/libxml/tree.h>
   |          `- note: in file included from /host/spi-builder-workspace/.build/checkouts/Perfect-libxml2/libxml2.h:4:
 5 | #include <libxml2/libxml/xmlreader.h>
 6 | #include <libxml2/libxml/xpath.h>
/root/.swiftpm/swift-sdks/swift-6.3-RELEASE_wasm.artifactbundle/swift-6.3-RELEASE_wasm/wasm32-unknown-wasip1/WASI.sdk/include/libxml2/libxml/tree.h:769:19: error: expected ';' after top level declarator
 767 | #ifdef LIBXML_LEGACY_ENABLED
 768 | XML_DEPRECATED
 769 | XMLPUBFUN xmlNsPtr
     |                   `- error: expected ';' after top level declarator
 770 | 		xmlNewGlobalNs		(xmlDocPtr doc,
 771 | 					 const xmlChar *href,
     :
1308 | #endif
1309 | #ifndef __XML_PARSER_H__
1310 | #include <libxml/xmlmemory.h>
     |          `- note: in file included from /root/.swiftpm/swift-sdks/swift-6.3-RELEASE_wasm.artifactbundle/swift-6.3-RELEASE_wasm/wasm32-unknown-wasip1/WASI.sdk/include/libxml2/libxml/tree.h:1310:
1311 | #endif
1312 |
<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: note: in file included from /host/spi-builder-workspace/.build/checkouts/Perfect-libxml2/libxml2.h:4:
 2 | #ifndef _libxml2_h_
 3 | #define _libxml2_h_
 4 | #include <libxml2/libxml/tree.h>
   |          `- note: in file included from /host/spi-builder-workspace/.build/checkouts/Perfect-libxml2/libxml2.h:4:
 5 | #include <libxml2/libxml/xmlreader.h>
 6 | #include <libxml2/libxml/xpath.h>
/usr/include/libxml2/libxml/xmlmemory.h:218:10: note: in file included from /usr/include/libxml2/libxml/xmlmemory.h:218:
216 | #ifndef __XML_GLOBALS_H
217 | #ifndef __XML_THREADS_H__
218 | #include <libxml/threads.h>
    |          `- note: in file included from /usr/include/libxml2/libxml/xmlmemory.h:218:
219 | #include <libxml/globals.h>
220 | #endif
/usr/include/libxml2/libxml/threads.h:35:10: note: in file included from /usr/include/libxml2/libxml/threads.h:35:
33 | }
34 | #endif
35 | #include <libxml/globals.h>
   |          `- note: in file included from /usr/include/libxml2/libxml/threads.h:35:
36 | #ifdef __cplusplus
37 | extern "C" {
/usr/include/libxml2/libxml/globals.h:18:10: note: in file included from /usr/include/libxml2/libxml/globals.h:18:
 16 |
 17 | #include <libxml/xmlversion.h>
 18 | #include <libxml/parser.h>
    |          `- note: in file included from /usr/include/libxml2/libxml/globals.h:18:
 19 | #include <libxml/xmlerror.h>
 20 | #include <libxml/SAX2.h>
/usr/include/libxml2/libxml/parser.h:812:10: note: in file included from /usr/include/libxml2/libxml/parser.h:812:
 810 | #endif
 811 |
 812 | #include <libxml/encoding.h>
     |          `- note: in file included from /usr/include/libxml2/libxml/parser.h:812:
 813 | #include <libxml/xmlIO.h>
 814 | #include <libxml/globals.h>
/usr/include/libxml2/libxml/encoding.h:31:10: error: 'unicode/ucnv.h' file not found
 29 | #endif
 30 | #ifdef LIBXML_ICU_ENABLED
 31 | #include <unicode/ucnv.h>
    |          `- error: 'unicode/ucnv.h' file not found
 32 | #endif
 33 | #ifdef __cplusplus
/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 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: note: in file included from /host/spi-builder-workspace/.build/checkouts/Perfect-libxml2/libxml2.h:4:
 2 | #ifndef _libxml2_h_
 3 | #define _libxml2_h_
 4 | #include <libxml2/libxml/tree.h>
   |          `- note: in file included from /host/spi-builder-workspace/.build/checkouts/Perfect-libxml2/libxml2.h:4:
 5 | #include <libxml2/libxml/xmlreader.h>
 6 | #include <libxml2/libxml/xpath.h>
/root/.swiftpm/swift-sdks/swift-6.3-RELEASE_wasm.artifactbundle/swift-6.3-RELEASE_wasm/wasm32-unknown-wasip1/WASI.sdk/include/libxml2/libxml/tree.h:768:1: error: unknown type name 'XML_DEPRECATED'
 766 | 		xmlFreeDtd		(xmlDtdPtr cur);
 767 | #ifdef LIBXML_LEGACY_ENABLED
 768 | XML_DEPRECATED
     | `- error: unknown type name 'XML_DEPRECATED'
 769 | XMLPUBFUN xmlNsPtr
 770 | 		xmlNewGlobalNs		(xmlDocPtr doc,
<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: note: in file included from /host/spi-builder-workspace/.build/checkouts/Perfect-libxml2/libxml2.h:4:
 2 | #ifndef _libxml2_h_
 3 | #define _libxml2_h_
 4 | #include <libxml2/libxml/tree.h>
   |          `- note: in file included from /host/spi-builder-workspace/.build/checkouts/Perfect-libxml2/libxml2.h:4:
 5 | #include <libxml2/libxml/xmlreader.h>
 6 | #include <libxml2/libxml/xpath.h>
/root/.swiftpm/swift-sdks/swift-6.3-RELEASE_wasm.artifactbundle/swift-6.3-RELEASE_wasm/wasm32-unknown-wasip1/WASI.sdk/include/libxml2/libxml/tree.h:769:19: error: expected ';' after top level declarator
 767 | #ifdef LIBXML_LEGACY_ENABLED
 768 | XML_DEPRECATED
 769 | XMLPUBFUN xmlNsPtr
     |                   `- error: expected ';' after top level declarator
 770 | 		xmlNewGlobalNs		(xmlDocPtr doc,
 771 | 					 const xmlChar *href,
     :
1308 | #endif
1309 | #ifndef __XML_PARSER_H__
1310 | #include <libxml/xmlmemory.h>
     |          `- note: in file included from /root/.swiftpm/swift-sdks/swift-6.3-RELEASE_wasm.artifactbundle/swift-6.3-RELEASE_wasm/wasm32-unknown-wasip1/WASI.sdk/include/libxml2/libxml/tree.h:1310:
1311 | #endif
1312 |
<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: note: in file included from /host/spi-builder-workspace/.build/checkouts/Perfect-libxml2/libxml2.h:4:
 2 | #ifndef _libxml2_h_
 3 | #define _libxml2_h_
 4 | #include <libxml2/libxml/tree.h>
   |          `- note: in file included from /host/spi-builder-workspace/.build/checkouts/Perfect-libxml2/libxml2.h:4:
 5 | #include <libxml2/libxml/xmlreader.h>
 6 | #include <libxml2/libxml/xpath.h>
/usr/include/libxml2/libxml/xmlmemory.h:218:10: note: in file included from /usr/include/libxml2/libxml/xmlmemory.h:218:
216 | #ifndef __XML_GLOBALS_H
217 | #ifndef __XML_THREADS_H__
218 | #include <libxml/threads.h>
    |          `- note: in file included from /usr/include/libxml2/libxml/xmlmemory.h:218:
219 | #include <libxml/globals.h>
220 | #endif
/usr/include/libxml2/libxml/threads.h:35:10: note: in file included from /usr/include/libxml2/libxml/threads.h:35:
33 | }
34 | #endif
35 | #include <libxml/globals.h>
   |          `- note: in file included from /usr/include/libxml2/libxml/threads.h:35:
36 | #ifdef __cplusplus
37 | extern "C" {
/usr/include/libxml2/libxml/globals.h:18:10: note: in file included from /usr/include/libxml2/libxml/globals.h:18:
 16 |
 17 | #include <libxml/xmlversion.h>
 18 | #include <libxml/parser.h>
    |          `- note: in file included from /usr/include/libxml2/libxml/globals.h:18:
 19 | #include <libxml/xmlerror.h>
 20 | #include <libxml/SAX2.h>
/usr/include/libxml2/libxml/parser.h:812:10: note: in file included from /usr/include/libxml2/libxml/parser.h:812:
 810 | #endif
 811 |
 812 | #include <libxml/encoding.h>
     |          `- note: in file included from /usr/include/libxml2/libxml/parser.h:812:
 813 | #include <libxml/xmlIO.h>
 814 | #include <libxml/globals.h>
/usr/include/libxml2/libxml/encoding.h:31:10: error: 'unicode/ucnv.h' file not found
 29 | #endif
 30 | #ifdef LIBXML_ICU_ENABLED
 31 | #include <unicode/ucnv.h>
    |          `- error: 'unicode/ucnv.h' file not found
 32 | #endif
 33 | #ifdef __cplusplus
/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: note: in file included from /host/spi-builder-workspace/.build/checkouts/Perfect-libxml2/libxml2.h:4:
 2 | #ifndef _libxml2_h_
 3 | #define _libxml2_h_
 4 | #include <libxml2/libxml/tree.h>
   |          `- note: in file included from /host/spi-builder-workspace/.build/checkouts/Perfect-libxml2/libxml2.h:4:
 5 | #include <libxml2/libxml/xmlreader.h>
 6 | #include <libxml2/libxml/xpath.h>
/root/.swiftpm/swift-sdks/swift-6.3-RELEASE_wasm.artifactbundle/swift-6.3-RELEASE_wasm/wasm32-unknown-wasip1/WASI.sdk/include/libxml2/libxml/tree.h:768:1: error: unknown type name 'XML_DEPRECATED'
 766 | 		xmlFreeDtd		(xmlDtdPtr cur);
 767 | #ifdef LIBXML_LEGACY_ENABLED
 768 | XML_DEPRECATED
     | `- error: unknown type name 'XML_DEPRECATED'
 769 | XMLPUBFUN xmlNsPtr
 770 | 		xmlNewGlobalNs		(xmlDocPtr doc,
<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: note: in file included from /host/spi-builder-workspace/.build/checkouts/Perfect-libxml2/libxml2.h:4:
 2 | #ifndef _libxml2_h_
 3 | #define _libxml2_h_
 4 | #include <libxml2/libxml/tree.h>
   |          `- note: in file included from /host/spi-builder-workspace/.build/checkouts/Perfect-libxml2/libxml2.h:4:
 5 | #include <libxml2/libxml/xmlreader.h>
 6 | #include <libxml2/libxml/xpath.h>
/root/.swiftpm/swift-sdks/swift-6.3-RELEASE_wasm.artifactbundle/swift-6.3-RELEASE_wasm/wasm32-unknown-wasip1/WASI.sdk/include/libxml2/libxml/tree.h:769:19: error: expected ';' after top level declarator
 767 | #ifdef LIBXML_LEGACY_ENABLED
 768 | XML_DEPRECATED
 769 | XMLPUBFUN xmlNsPtr
     |                   `- error: expected ';' after top level declarator
 770 | 		xmlNewGlobalNs		(xmlDocPtr doc,
 771 | 					 const xmlChar *href,
     :
1308 | #endif
1309 | #ifndef __XML_PARSER_H__
1310 | #include <libxml/xmlmemory.h>
     |          `- note: in file included from /root/.swiftpm/swift-sdks/swift-6.3-RELEASE_wasm.artifactbundle/swift-6.3-RELEASE_wasm/wasm32-unknown-wasip1/WASI.sdk/include/libxml2/libxml/tree.h:1310:
1311 | #endif
1312 |
<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: note: in file included from /host/spi-builder-workspace/.build/checkouts/Perfect-libxml2/libxml2.h:4:
 2 | #ifndef _libxml2_h_
 3 | #define _libxml2_h_
 4 | #include <libxml2/libxml/tree.h>
   |          `- note: in file included from /host/spi-builder-workspace/.build/checkouts/Perfect-libxml2/libxml2.h:4:
 5 | #include <libxml2/libxml/xmlreader.h>
 6 | #include <libxml2/libxml/xpath.h>
/usr/include/libxml2/libxml/xmlmemory.h:218:10: note: in file included from /usr/include/libxml2/libxml/xmlmemory.h:218:
216 | #ifndef __XML_GLOBALS_H
217 | #ifndef __XML_THREADS_H__
218 | #include <libxml/threads.h>
    |          `- note: in file included from /usr/include/libxml2/libxml/xmlmemory.h:218:
219 | #include <libxml/globals.h>
220 | #endif
/usr/include/libxml2/libxml/threads.h:35:10: note: in file included from /usr/include/libxml2/libxml/threads.h:35:
33 | }
34 | #endif
35 | #include <libxml/globals.h>
   |          `- note: in file included from /usr/include/libxml2/libxml/threads.h:35:
36 | #ifdef __cplusplus
37 | extern "C" {
/usr/include/libxml2/libxml/globals.h:18:10: note: in file included from /usr/include/libxml2/libxml/globals.h:18:
 16 |
 17 | #include <libxml/xmlversion.h>
 18 | #include <libxml/parser.h>
    |          `- note: in file included from /usr/include/libxml2/libxml/globals.h:18:
 19 | #include <libxml/xmlerror.h>
 20 | #include <libxml/SAX2.h>
/usr/include/libxml2/libxml/parser.h:812:10: note: in file included from /usr/include/libxml2/libxml/parser.h:812:
 810 | #endif
 811 |
 812 | #include <libxml/encoding.h>
     |          `- note: in file included from /usr/include/libxml2/libxml/parser.h:812:
 813 | #include <libxml/xmlIO.h>
 814 | #include <libxml/globals.h>
/usr/include/libxml2/libxml/encoding.h:31:10: error: 'unicode/ucnv.h' file not found
 29 | #endif
 30 | #ifdef LIBXML_ICU_ENABLED
 31 | #include <unicode/ucnv.h>
    |          `- error: 'unicode/ucnv.h' file not found
 32 | #endif
 33 | #ifdef __cplusplus
/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 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: note: in file included from /host/spi-builder-workspace/.build/checkouts/Perfect-libxml2/libxml2.h:4:
 2 | #ifndef _libxml2_h_
 3 | #define _libxml2_h_
 4 | #include <libxml2/libxml/tree.h>
   |          `- note: in file included from /host/spi-builder-workspace/.build/checkouts/Perfect-libxml2/libxml2.h:4:
 5 | #include <libxml2/libxml/xmlreader.h>
 6 | #include <libxml2/libxml/xpath.h>
/root/.swiftpm/swift-sdks/swift-6.3-RELEASE_wasm.artifactbundle/swift-6.3-RELEASE_wasm/wasm32-unknown-wasip1/WASI.sdk/include/libxml2/libxml/tree.h:768:1: error: unknown type name 'XML_DEPRECATED'
 766 | 		xmlFreeDtd		(xmlDtdPtr cur);
 767 | #ifdef LIBXML_LEGACY_ENABLED
 768 | XML_DEPRECATED
     | `- error: unknown type name 'XML_DEPRECATED'
 769 | XMLPUBFUN xmlNsPtr
 770 | 		xmlNewGlobalNs		(xmlDocPtr doc,
<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: note: in file included from /host/spi-builder-workspace/.build/checkouts/Perfect-libxml2/libxml2.h:4:
 2 | #ifndef _libxml2_h_
 3 | #define _libxml2_h_
 4 | #include <libxml2/libxml/tree.h>
   |          `- note: in file included from /host/spi-builder-workspace/.build/checkouts/Perfect-libxml2/libxml2.h:4:
 5 | #include <libxml2/libxml/xmlreader.h>
 6 | #include <libxml2/libxml/xpath.h>
/root/.swiftpm/swift-sdks/swift-6.3-RELEASE_wasm.artifactbundle/swift-6.3-RELEASE_wasm/wasm32-unknown-wasip1/WASI.sdk/include/libxml2/libxml/tree.h:769:19: error: expected ';' after top level declarator
 767 | #ifdef LIBXML_LEGACY_ENABLED
 768 | XML_DEPRECATED
 769 | XMLPUBFUN xmlNsPtr
     |                   `- error: expected ';' after top level declarator
 770 | 		xmlNewGlobalNs		(xmlDocPtr doc,
 771 | 					 const xmlChar *href,
     :
1308 | #endif
1309 | #ifndef __XML_PARSER_H__
1310 | #include <libxml/xmlmemory.h>
     |          `- note: in file included from /root/.swiftpm/swift-sdks/swift-6.3-RELEASE_wasm.artifactbundle/swift-6.3-RELEASE_wasm/wasm32-unknown-wasip1/WASI.sdk/include/libxml2/libxml/tree.h:1310:
1311 | #endif
1312 |
<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: note: in file included from /host/spi-builder-workspace/.build/checkouts/Perfect-libxml2/libxml2.h:4:
 2 | #ifndef _libxml2_h_
 3 | #define _libxml2_h_
 4 | #include <libxml2/libxml/tree.h>
   |          `- note: in file included from /host/spi-builder-workspace/.build/checkouts/Perfect-libxml2/libxml2.h:4:
 5 | #include <libxml2/libxml/xmlreader.h>
 6 | #include <libxml2/libxml/xpath.h>
/usr/include/libxml2/libxml/xmlmemory.h:218:10: note: in file included from /usr/include/libxml2/libxml/xmlmemory.h:218:
216 | #ifndef __XML_GLOBALS_H
217 | #ifndef __XML_THREADS_H__
218 | #include <libxml/threads.h>
    |          `- note: in file included from /usr/include/libxml2/libxml/xmlmemory.h:218:
219 | #include <libxml/globals.h>
220 | #endif
/usr/include/libxml2/libxml/threads.h:35:10: note: in file included from /usr/include/libxml2/libxml/threads.h:35:
33 | }
34 | #endif
35 | #include <libxml/globals.h>
   |          `- note: in file included from /usr/include/libxml2/libxml/threads.h:35:
36 | #ifdef __cplusplus
37 | extern "C" {
/usr/include/libxml2/libxml/globals.h:18:10: note: in file included from /usr/include/libxml2/libxml/globals.h:18:
 16 |
 17 | #include <libxml/xmlversion.h>
 18 | #include <libxml/parser.h>
    |          `- note: in file included from /usr/include/libxml2/libxml/globals.h:18:
 19 | #include <libxml/xmlerror.h>
 20 | #include <libxml/SAX2.h>
/usr/include/libxml2/libxml/parser.h:812:10: note: in file included from /usr/include/libxml2/libxml/parser.h:812:
 810 | #endif
 811 |
 812 | #include <libxml/encoding.h>
     |          `- note: in file included from /usr/include/libxml2/libxml/parser.h:812:
 813 | #include <libxml/xmlIO.h>
 814 | #include <libxml/globals.h>
/usr/include/libxml2/libxml/encoding.h:31:10: error: 'unicode/ucnv.h' file not found
 29 | #endif
 30 | #ifdef LIBXML_ICU_ENABLED
 31 | #include <unicode/ucnv.h>
    |          `- error: 'unicode/ucnv.h' file not found
 32 | #endif
 33 | #ifdef __cplusplus
/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.3 wasm