The Swift Package Index logo.Swift Package Index

Build Information

Failed to build Ji with Swift 5.9 for Linux.

Build Command

docker run --rm -v "checkouts-4606859-0":/host -w "/host/spi-builder-workspace" registry.gitlab.com/finestructure/spi-images:basic-5.9-latest swift build 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.19.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/honghaoz/Ji.git
Reference: 5.1.0
Cloned https://github.com/honghaoz/Ji.git into spi-builder-workspace
SUCCESS checkout https://github.com/honghaoz/Ji.git at 5.1.0
========================================
Build
========================================
Selected platform:         linux
Swift version:             5.9
Building package at path:  spi-builder-workspace
Running build ...
docker run --rm -v "checkouts-4606859-0":/host -w "/host/spi-builder-workspace" registry.gitlab.com/finestructure/spi-images:basic-5.9-latest swift build 2>&1
warning: you may be able to install libxml-2.0 using your system-packager:
    apt-get install libxml2-dev
Building for debugging...
error: emit-module command failed with exit code 1 (use -v to see invocation)
[1/4] Emitting module Ji
<module-includes>:1:10: note: in file included from <module-includes>:1:
#include "libxml2.h"
         ^
/host/spi-builder-workspace/Sources/Clibxml2/libxml2.h:1:9: error: 'libxml2/libxml/tree.h' file not found
#import <libxml2/libxml/tree.h>
        ^
/host/spi-builder-workspace/Sources/Ji/Ji.swift:28:8: error: could not build C module 'Clibxml2'
import Clibxml2
       ^
[2/4] Compiling Ji Ji.swift
<module-includes>:1:10: note: in file included from <module-includes>:1:
#include "libxml2.h"
         ^
/host/spi-builder-workspace/Sources/Clibxml2/libxml2.h:1:9: error: 'libxml2/libxml/tree.h' file not found
#import <libxml2/libxml/tree.h>
        ^
/host/spi-builder-workspace/Sources/Ji/Ji.swift:28:8: error: could not build C module 'Clibxml2'
import Clibxml2
       ^
[3/4] Compiling Ji JiNode.swift
<module-includes>:1:10: note: in file included from <module-includes>:1:
#include "libxml2.h"
         ^
/host/spi-builder-workspace/Sources/Clibxml2/libxml2.h:1:9: error: 'libxml2/libxml/tree.h' file not found
#import <libxml2/libxml/tree.h>
        ^
/host/spi-builder-workspace/Sources/Ji/Ji.swift:28:8: error: could not build C module 'Clibxml2'
import Clibxml2
       ^
[4/4] Compiling Ji JiHelper.swift
<module-includes>:1:10: note: in file included from <module-includes>:1:
#include "libxml2.h"
         ^
/host/spi-builder-workspace/Sources/Clibxml2/libxml2.h:1:9: error: 'libxml2/libxml/tree.h' file not found
#import <libxml2/libxml/tree.h>
        ^
/host/spi-builder-workspace/Sources/Ji/Ji.swift:28:8: error: could not build C module 'Clibxml2'
import Clibxml2
       ^
error: fatalError
BUILD FAILURE 5.9 linux

Build Machine: Linux 1