The Swift Package Index logo.Swift Package Index

Build Information

Failed to build GIO 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/SwiftGIO.git
Reference: main
Cloned https://github.com/rhx/SwiftGIO.git into spi-builder-workspace
SUCCESS checkout https://github.com/rhx/SwiftGIO.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.35s)
Fetching https://github.com/rhx/SwiftGObject.git
[1/6626] Fetching swiftgobject
Fetched https://github.com/rhx/SwiftGObject.git (3.26s)
Fetching https://github.com/rhx/SwiftLibXML.git
[1/306] Fetching swiftlibxml
Fetched https://github.com/rhx/SwiftLibXML.git (0.19s)
Fetching https://github.com/rhx/SwiftGLib.git
[1/8709] Fetching swiftglib
Fetched https://github.com/rhx/SwiftGLib.git (9.33s)
Fetching https://github.com/apple/swift-argument-parser
Fetching https://github.com/jpsim/Yams.git
Fetching https://github.com/apple/swift-docc-plugin
[1/1423] Fetching swift-docc-plugin
[1311/12257] Fetching swift-docc-plugin, swift-argument-parser
Fetched https://github.com/apple/swift-docc-plugin (0.42s)
[7801/10834] Fetching swift-argument-parser
[10835/19578] Fetching swift-argument-parser, yams
Fetched https://github.com/apple/swift-argument-parser (0.65s)
[1749/8744] Fetching yams
Fetched https://github.com/jpsim/Yams.git (1.27s)
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.32s)
Fetching https://github.com/apple/swift-docc-symbolkit
[1/2097] Fetching swift-docc-symbolkit
Fetched https://github.com/apple/swift-docc-symbolkit (0.33s)
Computing version for https://github.com/apple/swift-docc-symbolkit
Computed https://github.com/apple/swift-docc-symbolkit at 1.0.0 (0.34s)
Computing version for https://github.com/apple/swift-argument-parser
Computed https://github.com/apple/swift-argument-parser at 1.2.2 (0.34s)
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/SwiftLibXML.git
Working copy of https://github.com/rhx/SwiftLibXML.git resolved at main
Creating working copy for https://github.com/rhx/SwiftGLib.git
Working copy of https://github.com/rhx/SwiftGLib.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/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/gir2swift.git
Working copy of https://github.com/rhx/gir2swift.git resolved at main
Creating working copy for https://github.com/rhx/SwiftGObject.git
Working copy of https://github.com/rhx/SwiftGObject.git resolved at main
warning: prohibited flag(s): -pthread
warning: you may be able to install libxml-2.0 using your system-packager:
    apt-get install libxml2-dev
Building for debugging...
[0/13] Compiling writer.c
[1/13] Compiling reader.c
[2/13] Compiling parser.c
[3/15] Compiling api.c
[4/22] Compiling emitter.c
[5/22] Compiling scanner.c
[7/37] Emitting module ArgumentParserToolInfo
error: emit-module command failed with exit code 1 (use -v to see invocation)
[8/37] 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
           ^
[9/37] 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
           ^
[10/37] Compiling ArgumentParserToolInfo ToolInfo.swift
[12/39] Wrapping AST for ArgumentParserToolInfo for debugging
[14/76] 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
           ^
[15/76] 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
           ^
[16/76] 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
           ^
[17/76] Compiling ArgumentParser BashCompletionsGenerator.swift
[18/76] Compiling ArgumentParser CompletionsGenerator.swift
[19/77] Compiling ArgumentParser OptionGroup.swift
[20/77] Compiling ArgumentParser AsyncParsableCommand.swift
[21/77] Compiling ArgumentParser ArgumentVisibility.swift
[22/77] Compiling ArgumentParser CompletionKind.swift
[23/77] Compiling ArgumentParser NameSpecification.swift
[24/77] Compiling ArgumentParser Option.swift
[25/77] 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
           ^
[26/77] 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
           ^
error: fatalError
BUILD FAILURE 5.9 linux

Build Machine: Linux 2