The Swift Package Index logo.Swift Package Index

Build Information

Failed to build SGLOpenGL with Swift 5.10 for Linux.

Build Command

bash -c docker run --rm -v "checkouts-4606859-0":/host -w "$workDir" registry.gitlab.com/finestructure/spi-images:basic-5.10-latest swift build 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.29.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/SwiftGL/OpenGL.git
Reference: 3.1.1
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/SwiftGL/OpenGL
 * tag               3.1.1      -> FETCH_HEAD
HEAD is now at 70b7654 Renamed Tools target to glgen.
Cloned https://github.com/SwiftGL/OpenGL.git
Revision (git rev-parse @):
70b765437206a2b8b45c373bb70abbeb61004325
SUCCESS checkout https://github.com/SwiftGL/OpenGL.git at 3.1.1
========================================
Build
========================================
Selected platform:         linux
Swift version:             5.10
Building package at path:  $workDir
https://github.com/SwiftGL/OpenGL.git
Running build ...
bash -c docker run --rm -v "checkouts-4606859-0":/host -w "$workDir" registry.gitlab.com/finestructure/spi-images:basic-5.10-latest swift build 2>&1
Building for debugging...
[0/6] Write sources
[2/6] Write swift-version-24593BA9C3E375BF.txt
error: emit-module command failed with exit code 1 (use -v to see invocation)
[4/13] Emitting module glgen
/host/spi-builder-workspace/Sources/glgen/main.swift:78:27: error: 'XMLParser' is unavailable: This type has moved to the FoundationXML module. Import that module to use it.
    func parser(_ parser: XMLParser, didStartElement elementName: String, namespaceURI: String?, qualifiedName qName: String?, attributes attributeDict: [String : String])
                          ^~~~~~~~~
Foundation.XMLParser:2:18: note: 'XMLParser' has been explicitly marked unavailable here
public typealias XMLParser = AnyObject
                 ^
/host/spi-builder-workspace/Sources/glgen/main.swift:189:27: error: 'XMLParser' is unavailable: This type has moved to the FoundationXML module. Import that module to use it.
    func parser(_ parser: XMLParser, foundCharacters string: String)
                          ^~~~~~~~~
Foundation.XMLParser:2:18: note: 'XMLParser' has been explicitly marked unavailable here
public typealias XMLParser = AnyObject
                 ^
/host/spi-builder-workspace/Sources/glgen/main.swift:222:27: error: 'XMLParser' is unavailable: This type has moved to the FoundationXML module. Import that module to use it.
    func parser(_ parser: XMLParser, didEndElement elementName: String, namespaceURI: String?, qualifiedName qName: String?)
                          ^~~~~~~~~
Foundation.XMLParser:2:18: note: 'XMLParser' has been explicitly marked unavailable here
public typealias XMLParser = AnyObject
                 ^
/host/spi-builder-workspace/Sources/glgen/main.swift:271:27: error: 'XMLParser' is unavailable: This type has moved to the FoundationXML module. Import that module to use it.
    func parser(_ parser: XMLParser, parseErrorOccurred parseError: Error)
                          ^~~~~~~~~
Foundation.XMLParser:2:18: note: 'XMLParser' has been explicitly marked unavailable here
public typealias XMLParser = AnyObject
                 ^
/host/spi-builder-workspace/Sources/glgen/main.swift:44:38: error: cannot find type 'XMLParserDelegate' in scope
class KhronosXmlDelegate : NSObject, XMLParserDelegate
                                     ^~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/glgen/main.swift:278:23: error: cannot find type 'XMLParserDelegate' in scope
func chomper(delegate:XMLParserDelegate, _ filename:String)
                      ^~~~~~~~~~~~~~~~~
[5/13] Compiling glgen main.swift
/host/spi-builder-workspace/Sources/glgen/main.swift:78:27: error: 'XMLParser' is unavailable: This type has moved to the FoundationXML module. Import that module to use it.
    func parser(_ parser: XMLParser, didStartElement elementName: String, namespaceURI: String?, qualifiedName qName: String?, attributes attributeDict: [String : String])
                          ^~~~~~~~~
Foundation.XMLParser:2:18: note: 'XMLParser' has been explicitly marked unavailable here
public typealias XMLParser = AnyObject
                 ^
/host/spi-builder-workspace/Sources/glgen/main.swift:189:27: error: 'XMLParser' is unavailable: This type has moved to the FoundationXML module. Import that module to use it.
    func parser(_ parser: XMLParser, foundCharacters string: String)
                          ^~~~~~~~~
Foundation.XMLParser:2:18: note: 'XMLParser' has been explicitly marked unavailable here
public typealias XMLParser = AnyObject
                 ^
/host/spi-builder-workspace/Sources/glgen/main.swift:222:27: error: 'XMLParser' is unavailable: This type has moved to the FoundationXML module. Import that module to use it.
    func parser(_ parser: XMLParser, didEndElement elementName: String, namespaceURI: String?, qualifiedName qName: String?)
                          ^~~~~~~~~
Foundation.XMLParser:2:18: note: 'XMLParser' has been explicitly marked unavailable here
public typealias XMLParser = AnyObject
                 ^
/host/spi-builder-workspace/Sources/glgen/main.swift:271:27: error: 'XMLParser' is unavailable: This type has moved to the FoundationXML module. Import that module to use it.
    func parser(_ parser: XMLParser, parseErrorOccurred parseError: Error)
                          ^~~~~~~~~
Foundation.XMLParser:2:18: note: 'XMLParser' has been explicitly marked unavailable here
public typealias XMLParser = AnyObject
                 ^
/host/spi-builder-workspace/Sources/glgen/main.swift:44:38: error: cannot find type 'XMLParserDelegate' in scope
class KhronosXmlDelegate : NSObject, XMLParserDelegate
                                     ^~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/glgen/main.swift:278:23: error: cannot find type 'XMLParserDelegate' in scope
func chomper(delegate:XMLParserDelegate, _ filename:String)
                      ^~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/glgen/main.swift:283:21: error: 'XMLParser' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
    let xmlParser = XMLParser(stream: infile!)
                    ^~~~~~~~~
error: fatalError
[6/13] Compiling SGLOpenGL SwiftGL.swift
[0/1] Planning build
Building for debugging...
[0/4] Write swift-version-24593BA9C3E375BF.txt
error: emit-module command failed with exit code 1 (use -v to see invocation)
[2/10] Emitting module glgen
/host/spi-builder-workspace/Sources/glgen/main.swift:78:27: error: 'XMLParser' is unavailable: This type has moved to the FoundationXML module. Import that module to use it.
    func parser(_ parser: XMLParser, didStartElement elementName: String, namespaceURI: String?, qualifiedName qName: String?, attributes attributeDict: [String : String])
                          ^~~~~~~~~
Foundation.XMLParser:2:18: note: 'XMLParser' has been explicitly marked unavailable here
public typealias XMLParser = AnyObject
                 ^
/host/spi-builder-workspace/Sources/glgen/main.swift:189:27: error: 'XMLParser' is unavailable: This type has moved to the FoundationXML module. Import that module to use it.
    func parser(_ parser: XMLParser, foundCharacters string: String)
                          ^~~~~~~~~
Foundation.XMLParser:2:18: note: 'XMLParser' has been explicitly marked unavailable here
public typealias XMLParser = AnyObject
                 ^
/host/spi-builder-workspace/Sources/glgen/main.swift:222:27: error: 'XMLParser' is unavailable: This type has moved to the FoundationXML module. Import that module to use it.
    func parser(_ parser: XMLParser, didEndElement elementName: String, namespaceURI: String?, qualifiedName qName: String?)
                          ^~~~~~~~~
Foundation.XMLParser:2:18: note: 'XMLParser' has been explicitly marked unavailable here
public typealias XMLParser = AnyObject
                 ^
/host/spi-builder-workspace/Sources/glgen/main.swift:271:27: error: 'XMLParser' is unavailable: This type has moved to the FoundationXML module. Import that module to use it.
    func parser(_ parser: XMLParser, parseErrorOccurred parseError: Error)
                          ^~~~~~~~~
Foundation.XMLParser:2:18: note: 'XMLParser' has been explicitly marked unavailable here
public typealias XMLParser = AnyObject
                 ^
/host/spi-builder-workspace/Sources/glgen/main.swift:44:38: error: cannot find type 'XMLParserDelegate' in scope
class KhronosXmlDelegate : NSObject, XMLParserDelegate
                                     ^~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/glgen/main.swift:278:23: error: cannot find type 'XMLParserDelegate' in scope
func chomper(delegate:XMLParserDelegate, _ filename:String)
                      ^~~~~~~~~~~~~~~~~
[3/10] Compiling glgen main.swift
/host/spi-builder-workspace/Sources/glgen/main.swift:78:27: error: 'XMLParser' is unavailable: This type has moved to the FoundationXML module. Import that module to use it.
    func parser(_ parser: XMLParser, didStartElement elementName: String, namespaceURI: String?, qualifiedName qName: String?, attributes attributeDict: [String : String])
                          ^~~~~~~~~
Foundation.XMLParser:2:18: note: 'XMLParser' has been explicitly marked unavailable here
public typealias XMLParser = AnyObject
                 ^
/host/spi-builder-workspace/Sources/glgen/main.swift:189:27: error: 'XMLParser' is unavailable: This type has moved to the FoundationXML module. Import that module to use it.
    func parser(_ parser: XMLParser, foundCharacters string: String)
                          ^~~~~~~~~
Foundation.XMLParser:2:18: note: 'XMLParser' has been explicitly marked unavailable here
public typealias XMLParser = AnyObject
                 ^
/host/spi-builder-workspace/Sources/glgen/main.swift:222:27: error: 'XMLParser' is unavailable: This type has moved to the FoundationXML module. Import that module to use it.
    func parser(_ parser: XMLParser, didEndElement elementName: String, namespaceURI: String?, qualifiedName qName: String?)
                          ^~~~~~~~~
Foundation.XMLParser:2:18: note: 'XMLParser' has been explicitly marked unavailable here
public typealias XMLParser = AnyObject
                 ^
/host/spi-builder-workspace/Sources/glgen/main.swift:271:27: error: 'XMLParser' is unavailable: This type has moved to the FoundationXML module. Import that module to use it.
    func parser(_ parser: XMLParser, parseErrorOccurred parseError: Error)
                          ^~~~~~~~~
Foundation.XMLParser:2:18: note: 'XMLParser' has been explicitly marked unavailable here
public typealias XMLParser = AnyObject
                 ^
/host/spi-builder-workspace/Sources/glgen/main.swift:44:38: error: cannot find type 'XMLParserDelegate' in scope
class KhronosXmlDelegate : NSObject, XMLParserDelegate
                                     ^~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/glgen/main.swift:278:23: error: cannot find type 'XMLParserDelegate' in scope
func chomper(delegate:XMLParserDelegate, _ filename:String)
                      ^~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/glgen/main.swift:283:21: error: 'XMLParser' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
    let xmlParser = XMLParser(stream: infile!)
                    ^~~~~~~~~
error: fatalError
BUILD FAILURE 5.10 linux

Build Machine: Linux 1