The Swift Package Index logo.Swift Package Index

Build Information

Failed to build Cairo with Swift 5.9 for Linux.

Build Command

docker run --rm -v "checkouts-4609320-1":/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.21.4
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/rhx/SwiftCairo.git
Reference: main
Cloned https://github.com/rhx/SwiftCairo.git into spi-builder-workspace
SUCCESS checkout https://github.com/rhx/SwiftCairo.git at main
========================================
Build
========================================
Selected platform:         linux
Swift version:             5.9
Building package at path:  spi-builder-workspace
Running build ...
docker run --rm -v "checkouts-4609320-1":/host -w "/host/spi-builder-workspace" registry.gitlab.com/finestructure/spi-images:basic-5.9-latest swift build 2>&1
Fetching https://github.com/rhx/gir2swift.git
[1/5325] Fetching gir2swift
Fetched https://github.com/rhx/gir2swift.git (0.39s)
Fetching https://github.com/rhx/SwiftGModule.git
[1/998] Fetching swiftgmodule
Fetched https://github.com/rhx/SwiftGModule.git (0.24s)
Fetching https://github.com/rhx/SwiftGIO.git
[1/21597] Fetching swiftgio
Fetched https://github.com/rhx/SwiftGIO.git (31.19s)
Fetching https://github.com/rhx/SwiftLibXML.git
[1/306] Fetching swiftlibxml
Fetched https://github.com/rhx/SwiftLibXML.git (0.18s)
Fetching https://github.com/rhx/SwiftGLib.git
[1/8709] Fetching swiftglib
Fetched https://github.com/rhx/SwiftGLib.git (9.26s)
Fetching https://github.com/rhx/SwiftGObject.git
[1/6626] Fetching swiftgobject
Fetched https://github.com/rhx/SwiftGObject.git (3.41s)
Fetching https://github.com/apple/swift-argument-parser
Fetching https://github.com/apple/swift-docc-plugin
Fetching https://github.com/jpsim/Yams.git
[1/10834] Fetching swift-argument-parser
[435/12257] Fetching swift-argument-parser, swift-docc-plugin
[12258/21001] Fetching swift-argument-parser, swift-docc-plugin, yams
Fetched https://github.com/apple/swift-argument-parser (0.74s)
[3260/10167] Fetching swift-docc-plugin, yams
Fetched https://github.com/apple/swift-docc-plugin (1.49s)
Fetched https://github.com/jpsim/Yams.git (1.51s)
Computing version for https://github.com/jpsim/Yams.git
Computed https://github.com/jpsim/Yams.git at 4.0.6 (0.29s)
Computing version for https://github.com/apple/swift-docc-plugin
Computed https://github.com/apple/swift-docc-plugin at 1.3.0 (0.33s)
Fetching https://github.com/apple/swift-docc-symbolkit
[1/2097] Fetching swift-docc-symbolkit
Fetched https://github.com/apple/swift-docc-symbolkit (0.37s)
Computing version for https://github.com/apple/swift-docc-symbolkit
Computed https://github.com/apple/swift-docc-symbolkit at 1.0.0 (0.40s)
Computing version for https://github.com/apple/swift-argument-parser
Computed https://github.com/apple/swift-argument-parser at 1.2.2 (0.45s)
Creating working copy for https://github.com/rhx/SwiftGObject.git
Working copy of https://github.com/rhx/SwiftGObject.git resolved at main
Creating working copy for https://github.com/jpsim/Yams.git
Working copy of https://github.com/jpsim/Yams.git resolved at 4.0.6
Creating working copy for https://github.com/rhx/SwiftLibXML.git
Working copy of https://github.com/rhx/SwiftLibXML.git resolved at main
Creating working copy for https://github.com/rhx/SwiftGIO.git
Working copy of https://github.com/rhx/SwiftGIO.git resolved at main
Creating working copy for https://github.com/rhx/SwiftGModule.git
Working copy of https://github.com/rhx/SwiftGModule.git resolved at main
Creating working copy for https://github.com/apple/swift-docc-symbolkit
Working copy of https://github.com/apple/swift-docc-symbolkit resolved at 1.0.0
Creating working copy for https://github.com/rhx/gir2swift.git
Working copy of https://github.com/rhx/gir2swift.git resolved at main
Creating working copy for https://github.com/apple/swift-argument-parser
Working copy of https://github.com/apple/swift-argument-parser resolved at 1.2.2
Creating working copy for https://github.com/apple/swift-docc-plugin
Working copy of https://github.com/apple/swift-docc-plugin resolved at 1.3.0
Creating working copy for https://github.com/rhx/SwiftGLib.git
Working copy of https://github.com/rhx/SwiftGLib.git resolved at main
warning: you may be able to install libxml-2.0 using your system-packager:
    apt-get install libxml2-dev
warning: prohibited flag(s): -pthread
Building for debugging...
[0/13] Compiling writer.c
[1/13] Compiling reader.c
[2/15] Compiling api.c
[3/17] Compiling parser.c
[4/19] Compiling emitter.c
[5/22] Compiling scanner.c
[7/37] Emitting module Yams
[8/38] Compiling Yams YamlError.swift
[9/38] Emitting module ArgumentParserToolInfo
[10/38] Compiling ArgumentParserToolInfo ToolInfo.swift
[13/40] Compiling SwiftLibXML XMLPath.swift
<module-includes>:1:10: note: in file included from <module-includes>:1:
#include "libxml2_bridging.h"
         ^
/host/spi-builder-workspace/.build/checkouts/SwiftLibXML/Sources/CLibXML2/libxml2_bridging.h:12:9: error: 'libxml2/libxml/xmlreader.h' file not found
#import <libxml2/libxml/xmlreader.h>
        ^
/host/spi-builder-workspace/.build/checkouts/SwiftLibXML/Sources/SwiftLibXML/XMLAttribute.swift:10:12: error: could not build C module 'CLibXML2'
    import CLibXML2
           ^
[14/40] Compiling SwiftLibXML XMLElement.swift
<module-includes>:1:10: note: in file included from <module-includes>:1:
#include "libxml2_bridging.h"
         ^
/host/spi-builder-workspace/.build/checkouts/SwiftLibXML/Sources/CLibXML2/libxml2_bridging.h:12:9: error: 'libxml2/libxml/xmlreader.h' file not found
#import <libxml2/libxml/xmlreader.h>
        ^
/host/spi-builder-workspace/.build/checkouts/SwiftLibXML/Sources/SwiftLibXML/XMLAttribute.swift:10:12: error: could not build C module 'CLibXML2'
    import CLibXML2
           ^
[15/40] Compiling SwiftLibXML XMLNameSpace.swift
<module-includes>:1:10: note: in file included from <module-includes>:1:
#include "libxml2_bridging.h"
         ^
/host/spi-builder-workspace/.build/checkouts/SwiftLibXML/Sources/CLibXML2/libxml2_bridging.h:12:9: error: 'libxml2/libxml/xmlreader.h' file not found
#import <libxml2/libxml/xmlreader.h>
        ^
/host/spi-builder-workspace/.build/checkouts/SwiftLibXML/Sources/SwiftLibXML/XMLAttribute.swift:10:12: error: could not build C module 'CLibXML2'
    import CLibXML2
           ^
[16/40] Compiling SwiftLibXML XMLDocument.swift
<module-includes>:1:10: note: in file included from <module-includes>:1:
#include "libxml2_bridging.h"
         ^
/host/spi-builder-workspace/.build/checkouts/SwiftLibXML/Sources/CLibXML2/libxml2_bridging.h:12:9: error: 'libxml2/libxml/xmlreader.h' file not found
#import <libxml2/libxml/xmlreader.h>
        ^
/host/spi-builder-workspace/.build/checkouts/SwiftLibXML/Sources/SwiftLibXML/XMLAttribute.swift:10:12: error: could not build C module 'CLibXML2'
    import CLibXML2
           ^
error: emit-module command failed with exit code 1 (use -v to see invocation)
[17/40] Emitting module SwiftLibXML
<module-includes>:1:10: note: in file included from <module-includes>:1:
#include "libxml2_bridging.h"
         ^
/host/spi-builder-workspace/.build/checkouts/SwiftLibXML/Sources/CLibXML2/libxml2_bridging.h:12:9: error: 'libxml2/libxml/xmlreader.h' file not found
#import <libxml2/libxml/xmlreader.h>
        ^
/host/spi-builder-workspace/.build/checkouts/SwiftLibXML/Sources/SwiftLibXML/XMLAttribute.swift:10:12: error: could not build C module 'CLibXML2'
    import CLibXML2
           ^
[18/40] Compiling SwiftLibXML XMLAttribute.swift
<module-includes>:1:10: note: in file included from <module-includes>:1:
#include "libxml2_bridging.h"
         ^
/host/spi-builder-workspace/.build/checkouts/SwiftLibXML/Sources/CLibXML2/libxml2_bridging.h:12:9: error: 'libxml2/libxml/xmlreader.h' file not found
#import <libxml2/libxml/xmlreader.h>
        ^
/host/spi-builder-workspace/.build/checkouts/SwiftLibXML/Sources/SwiftLibXML/XMLAttribute.swift:10:12: error: could not build C module 'CLibXML2'
    import CLibXML2
           ^
[19/40] Compiling SwiftLibXML EmptySequence.swift
<module-includes>:1:10: note: in file included from <module-includes>:1:
#include "libxml2_bridging.h"
         ^
/host/spi-builder-workspace/.build/checkouts/SwiftLibXML/Sources/CLibXML2/libxml2_bridging.h:12:9: error: 'libxml2/libxml/xmlreader.h' file not found
#import <libxml2/libxml/xmlreader.h>
        ^
/host/spi-builder-workspace/.build/checkouts/SwiftLibXML/Sources/SwiftLibXML/XMLAttribute.swift:10:12: error: could not build C module 'CLibXML2'
    import CLibXML2
           ^
[20/40] Compiling Yams String+Yams.swift
[21/40] Compiling Yams Tag.swift
[22/40] Compiling Yams Representer.swift
[23/40] Compiling Yams Resolver.swift
[24/40] Compiling Yams Mark.swift
[25/40] Compiling Yams Node.Mapping.swift
[26/40] Compiling Yams Node.Scalar.swift
[27/40] Compiling Yams Node.Sequence.swift
[28/40] Compiling Yams Emitter.swift
[29/40] Compiling Yams Encoder.swift
[30/40] Compiling Yams Node.swift
[31/40] Compiling Yams Parser.swift
[32/40] Compiling Yams Constructor.swift
[33/40] Compiling Yams Decoder.swift
[35/42] Wrapping AST for ArgumentParserToolInfo for debugging
error: fatalError
BUILD FAILURE 5.9 linux

Build Machine: Linux 2