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-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.21.4
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/rhx/SwiftGIO.git
Reference: 2.74.0
Cloned https://github.com/rhx/SwiftGIO.git into spi-builder-workspace
SUCCESS checkout https://github.com/rhx/SwiftGIO.git at 2.74.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
Unable to find image 'registry.gitlab.com/finestructure/spi-images:basic-5.9-latest' locally
basic-5.9-latest: Pulling from finestructure/spi-images
0fb668748fc8: Already exists
23be50723d19: Pulling fs layer
4f4fb700ef54: Pulling fs layer
f71b23406c76: Pulling fs layer
0cb6a4b1cc41: Pulling fs layer
cdabaf8cc8cb: Pulling fs layer
80bb617b9620: Pulling fs layer
0cb6a4b1cc41: Waiting
cdabaf8cc8cb: Waiting
80bb617b9620: Waiting
4f4fb700ef54: Verifying Checksum
4f4fb700ef54: Download complete
0cb6a4b1cc41: Verifying Checksum
0cb6a4b1cc41: Download complete
cdabaf8cc8cb: Verifying Checksum
cdabaf8cc8cb: Download complete
23be50723d19: Verifying Checksum
23be50723d19: Download complete
80bb617b9620: Verifying Checksum
80bb617b9620: Download complete
f71b23406c76: Verifying Checksum
f71b23406c76: Download complete
23be50723d19: Pull complete
4f4fb700ef54: Pull complete
f71b23406c76: Pull complete
0cb6a4b1cc41: Pull complete
cdabaf8cc8cb: Pull complete
80bb617b9620: Pull complete
Digest: sha256:5962c8d6897400786740ea740305115e43cb2ae004677d9d8acf385894bb7b18
Status: Downloaded newer image for registry.gitlab.com/finestructure/spi-images:basic-5.9-latest
Fetching https://github.com/rhx/gir2swift.git
[1/5325] Fetching gir2swift
Fetched https://github.com/rhx/gir2swift.git (0.31s)
Fetching https://github.com/rhx/SwiftGObject.git
[1/6626] Fetching swiftgobject
Fetched https://github.com/rhx/SwiftGObject.git (2.80s)
Fetching https://github.com/rhx/SwiftLibXML.git
[1/306] Fetching swiftlibxml
Fetched https://github.com/rhx/SwiftLibXML.git (0.17s)
Fetching https://github.com/rhx/SwiftGLib.git
[1/8709] Fetching swiftglib
Fetched https://github.com/rhx/SwiftGLib.git (8.75s)
Fetching https://github.com/jpsim/Yams.git
Fetching https://github.com/apple/swift-argument-parser
Fetching https://github.com/apple/swift-docc-plugin
[1/1423] Fetching swift-docc-plugin
[1368/12257] Fetching swift-docc-plugin, swift-argument-parser
[12258/21001] Fetching swift-docc-plugin, swift-argument-parser, yams
Fetched https://github.com/apple/swift-docc-plugin (0.63s)
[12059/19578] Fetching swift-argument-parser, yams
Fetched https://github.com/apple/swift-argument-parser (0.63s)
[1662/8744] Fetching yams
Fetched https://github.com/jpsim/Yams.git (1.23s)
Computing version for https://github.com/jpsim/Yams.git
Computed https://github.com/jpsim/Yams.git at 4.0.6 (0.27s)
Computing version for https://github.com/apple/swift-docc-plugin
Computed https://github.com/apple/swift-docc-plugin at 1.3.0 (0.29s)
Fetching https://github.com/apple/swift-docc-symbolkit
[1/2097] Fetching swift-docc-symbolkit
Fetched https://github.com/apple/swift-docc-symbolkit (0.34s)
Computing version for https://github.com/apple/swift-docc-symbolkit
Computed https://github.com/apple/swift-docc-symbolkit at 1.0.0 (0.33s)
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/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-docc-symbolkit
Working copy of https://github.com/apple/swift-docc-symbolkit resolved at 1.0.0
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/rhx/gir2swift.git
Working copy of https://github.com/rhx/gir2swift.git resolved at main
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/SwiftLibXML.git
Working copy of https://github.com/rhx/SwiftLibXML.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
Creating working copy for https://github.com/rhx/SwiftGLib.git
Working copy of https://github.com/rhx/SwiftGLib.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/21] Compiling emitter.c
[5/22] Compiling scanner.c
error: emit-module command failed with exit code 1 (use -v to see invocation)
[7/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
           ^
[8/37] Emitting module ArgumentParserToolInfo
[9/37] Compiling ArgumentParserToolInfo ToolInfo.swift
[11/39] Wrapping AST for ArgumentParserToolInfo for debugging
[13/76] 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
           ^
[14/76] Compiling ArgumentParser DumpHelpGenerator.swift
[15/76] Compiling ArgumentParser HelpCommand.swift
[16/77] 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
           ^
[17/77] Compiling ArgumentParser Errors.swift
[18/77] Compiling ArgumentParser Flag.swift
[19/77] Compiling ArgumentParser CommandConfiguration.swift
[20/77] Compiling ArgumentParser EnumerableFlag.swift
[21/77] Compiling ArgumentParser NameSpecification.swift
[22/77] Compiling ArgumentParser Option.swift
[23/77] Emitting module Yams
[24/77] Compiling ArgumentParser ArgumentVisibility.swift
[25/77] 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
           ^
[26/77] Compiling ArgumentParser CompletionKind.swift
[27/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
           ^
[28/77] Compiling ArgumentParser OptionGroup.swift
[29/77] Compiling ArgumentParser AsyncParsableCommand.swift
[30/77] Compiling ArgumentParser HelpGenerator.swift
[31/77] Compiling ArgumentParser MessageInfo.swift
[32/77] 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
           ^
[33/77] 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
           ^
error: fatalError
BUILD FAILURE 5.9 linux

Build Machine: Linux 1