The Swift Package Index logo.Swift Package Index

Build Information

Failed to build ElasticsearchVapor with Swift 5.10 for Linux.

Build Command

bash -c docker run --rm -v "checkouts-4609320-1":/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/dmonagle/elasticsearch-vapor.git
Reference: master
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/dmonagle/elasticsearch-vapor
 * branch            master     -> FETCH_HEAD
 * [new branch]      master     -> origin/master
HEAD is now at e721428 Fixed issue with missing ID on bulk delete
Cloned https://github.com/dmonagle/elasticsearch-vapor.git
Revision (git rev-parse @):
e721428168d10d33c056f3c924df148de5689430
SUCCESS checkout https://github.com/dmonagle/elasticsearch-vapor.git at master
========================================
Build
========================================
Selected platform:         linux
Swift version:             5.10
Building package at path:  $workDir
https://github.com/dmonagle/elasticsearch-vapor.git
Running build ...
bash -c docker run --rm -v "checkouts-4609320-1":/host -w "$workDir" registry.gitlab.com/finestructure/spi-images:basic-5.10-latest swift build 2>&1
Fetching https://github.com/SwiftyJSON/SwiftyJSON.git
Fetching https://github.com/vapor/http
Fetching https://github.com/apple/swift-protobuf.git
Fetching https://github.com/vapor/database-kit
[1/1181] Fetching database-kit
[1182/26648] Fetching database-kit, http
[2201/32691] Fetching database-kit, http, swiftyjson
[32692/66418] Fetching database-kit, http, swiftyjson, swift-protobuf
Fetched https://github.com/vapor/database-kit from cache (1.01s)
Fetched https://github.com/vapor/http from cache (1.02s)
[7730/39770] Fetching swiftyjson, swift-protobuf
Fetched https://github.com/SwiftyJSON/SwiftyJSON.git from cache (4.89s)
Fetched https://github.com/apple/swift-protobuf.git from cache (4.94s)
Computing version for https://github.com/SwiftyJSON/SwiftyJSON.git
Computed https://github.com/SwiftyJSON/SwiftyJSON.git at 4.3.0 (3.17s)
Computing version for https://github.com/vapor/database-kit
Computed https://github.com/vapor/database-kit at 1.3.3 (0.61s)
Fetching https://github.com/vapor/core.git
Fetching https://github.com/vapor/service.git
[1/20143] Fetching core
[4232/21062] Fetching core, service
Fetched https://github.com/vapor/service.git from cache (1.11s)
Fetched https://github.com/vapor/core.git from cache (1.12s)
Computing version for https://github.com/vapor/service.git
Computed https://github.com/vapor/service.git at 1.0.2 (0.45s)
Computing version for https://github.com/vapor/http
Computed https://github.com/vapor/http at 3.4.0 (0.46s)
Fetching https://github.com/apple/swift-nio.git
Fetching https://github.com/apple/swift-nio-ssl.git
[1/12147] Fetching swift-nio-ssl
[11663/76617] Fetching swift-nio-ssl, swift-nio
Fetched https://github.com/apple/swift-nio-ssl.git from cache (1.51s)
[18052/64470] Fetching swift-nio
Fetched https://github.com/apple/swift-nio.git from cache (4.95s)
Computing version for https://github.com/apple/swift-nio.git
Computed https://github.com/apple/swift-nio.git at 1.14.4 (0.51s)
Fetching https://github.com/apple/swift-nio-zlib-support.git
[1/15] Fetching swift-nio-zlib-support
Fetched https://github.com/apple/swift-nio-zlib-support.git from cache (0.22s)
Computing version for https://github.com/apple/swift-nio-zlib-support.git
Computed https://github.com/apple/swift-nio-zlib-support.git at 1.0.0 (0.41s)
Computing version for https://github.com/apple/swift-nio-ssl.git
Computed https://github.com/apple/swift-nio-ssl.git at 1.4.0 (0.44s)
Fetching https://github.com/apple/swift-nio-ssl-support.git
[1/16] Fetching swift-nio-ssl-support
Fetched https://github.com/apple/swift-nio-ssl-support.git from cache (0.23s)
Computing version for https://github.com/apple/swift-nio-ssl-support.git
Computed https://github.com/apple/swift-nio-ssl-support.git at 1.0.0 (0.42s)
Computing version for https://github.com/vapor/core.git
Computed https://github.com/vapor/core.git at 3.10.1 (0.46s)
Computing version for https://github.com/apple/swift-protobuf.git
Computed https://github.com/apple/swift-protobuf.git at 1.25.2 (0.47s)
Creating working copy for https://github.com/vapor/http
Working copy of https://github.com/vapor/http resolved at 3.4.0
Creating working copy for https://github.com/apple/swift-nio-ssl.git
Working copy of https://github.com/apple/swift-nio-ssl.git resolved at 1.4.0
Creating working copy for https://github.com/vapor/database-kit
Working copy of https://github.com/vapor/database-kit resolved at 1.3.3
Creating working copy for https://github.com/apple/swift-nio-zlib-support.git
Working copy of https://github.com/apple/swift-nio-zlib-support.git resolved at 1.0.0
Creating working copy for https://github.com/apple/swift-protobuf.git
Working copy of https://github.com/apple/swift-protobuf.git resolved at 1.25.2
Creating working copy for https://github.com/SwiftyJSON/SwiftyJSON.git
Working copy of https://github.com/SwiftyJSON/SwiftyJSON.git resolved at 4.3.0
Creating working copy for https://github.com/apple/swift-nio-ssl-support.git
Working copy of https://github.com/apple/swift-nio-ssl-support.git resolved at 1.0.0
Creating working copy for https://github.com/apple/swift-nio.git
Working copy of https://github.com/apple/swift-nio.git resolved at 1.14.4
Creating working copy for https://github.com/vapor/service.git
Working copy of https://github.com/vapor/service.git resolved at 1.0.2
Creating working copy for https://github.com/vapor/core.git
Working copy of https://github.com/vapor/core.git resolved at 3.10.1
warning: 'swift-nio-ssl-support': ignoring declared target(s) 'swift-nio-ssl-support' in the system package
warning: 'swift-nio-zlib-support': ignoring declared target(s) 'swift-nio-zlib-support' in the system package
[1/1] Compiling plugin SwiftProtobufPlugin
Building for debugging...
[1/29] Write sources
[17/29] Compiling CNIOZlib empty.c
[18/29] Compiling CNIOLinux ifaddrs-android.c
[19/29] Compiling CNIOSHA1 c_nio_sha1.c
[20/29] Write sources
[22/29] Compiling CNIODarwin shim.c
[23/29] Compiling CNIOLinux shim.c
[24/29] Write swift-version-24593BA9C3E375BF.txt
[25/29] Compiling CNIOHTTPParser c_nio_http_parser.c
[26/29] Compiling CNIOOpenSSL helpers.c
[27/29] Compiling CNIOOpenSSL shims.c
[28/116] Compiling c-atomics.c
[30/119] Emitting module NIOConcurrencyHelpers
[31/119] Emitting module SwiftProtobuf
[32/129] Compiling Debugging SourceLocation.swift
[33/129] Compiling NIOPriorityQueue PriorityQueue.swift
[34/129] Compiling NIOConcurrencyHelpers atomics.swift
[35/129] Emitting module SwiftyJSON
[36/129] Compiling SwiftyJSON SwiftyJSON.swift
/host/spi-builder-workspace/.build/checkouts/SwiftyJSON/Source/SwiftyJSON/SwiftyJSON.swift:1215:51: error: ambiguous use of operator '<'
    case (.number, .number): return lhs.rawNumber < rhs.rawNumber
                                                  ^
/host/spi-builder-workspace/.build/checkouts/SwiftyJSON/Source/SwiftyJSON/SwiftyJSON.swift:1251:6: note: found this candidate
func < (lhs: NSNumber, rhs: NSNumber) -> Bool {
     ^
Foundation.NSNumber:2:24: note: found this candidate
    public static func < (lhs: NSNumber, rhs: NSNumber) -> Bool
                       ^
error: fatalError
[37/129] Emitting module NIOPriorityQueue
[38/129] Emitting module COperatingSystem
[39/129] Compiling COperatingSystem libc.swift
[40/129] Emitting module Debugging
warning: 'swift-nio-ssl-support': ignoring declared target(s) 'swift-nio-ssl-support' in the system package
warning: 'swift-nio-zlib-support': ignoring declared target(s) 'swift-nio-zlib-support' in the system package
[0/1] Planning build
[1/1] Compiling plugin SwiftProtobufPlugin
Building for debugging...
[1/2] Write swift-version-24593BA9C3E375BF.txt
[3/20] Emitting module COperatingSystem
[5/89] Compiling Debugging Demangler.swift
[6/89] Emitting module NIOConcurrencyHelpers
[7/89] Compiling NIOConcurrencyHelpers lock.swift
[9/90] Compiling NIOPriorityQueue Heap.swift
[10/90] Emitting module NIOPriorityQueue
[11/91] Compiling Debugging Debuggable.swift
[12/91] Emitting module Debugging
[14/92] Emitting module SwiftyJSON
[15/92] Compiling SwiftyJSON SwiftyJSON.swift
/host/spi-builder-workspace/.build/checkouts/SwiftyJSON/Source/SwiftyJSON/SwiftyJSON.swift:1215:51: error: ambiguous use of operator '<'
    case (.number, .number): return lhs.rawNumber < rhs.rawNumber
                                                  ^
/host/spi-builder-workspace/.build/checkouts/SwiftyJSON/Source/SwiftyJSON/SwiftyJSON.swift:1251:6: note: found this candidate
func < (lhs: NSNumber, rhs: NSNumber) -> Bool {
     ^
Foundation.NSNumber:2:24: note: found this candidate
    public static func < (lhs: NSNumber, rhs: NSNumber) -> Bool
                       ^
[16/92] Compiling NIOPriorityQueue PriorityQueue.swift
error: fatalError
BUILD FAILURE 5.10 linux

Build Machine: Linux 2