The Swift Package Index logo.Swift Package Index

Build Information

Failed to build mongo-swift-driver 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.19.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/mongodb/mongo-swift-driver.git
Reference: v1.3.1
Cloned https://github.com/mongodb/mongo-swift-driver.git into spi-builder-workspace
SUCCESS checkout https://github.com/mongodb/mongo-swift-driver.git at v1.3.1
========================================
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/apple/swift-atomics
Fetching https://github.com/mongodb/swift-bson
Fetching https://github.com/apple/swift-nio
[1/3384] Fetching swift-bson
[340/4429] Fetching swift-bson, swift-atomics
[4430/64502] Fetching swift-bson, swift-atomics, swift-nio
Fetching https://github.com/Quick/Nimble.git
Fetched https://github.com/apple/swift-atomics (3.93s)
Fetched https://github.com/mongodb/swift-bson (3.94s)
Fetched https://github.com/apple/swift-nio (4.02s)
[1/15746] Fetching nimble
Fetched https://github.com/Quick/Nimble.git (1.04s)
Computing version for https://github.com/mongodb/swift-bson
Computed https://github.com/mongodb/swift-bson at 3.1.0 (0.30s)
Fetching https://github.com/swift-extras/swift-extras-base64
Fetching https://github.com/swift-extras/swift-extras-json
[1/624] Fetching swift-extras-base64
[108/1673] Fetching swift-extras-base64, swift-extras-json
Fetched https://github.com/swift-extras/swift-extras-base64 (0.25s)
Fetched https://github.com/swift-extras/swift-extras-json (0.25s)
Computing version for https://github.com/swift-extras/swift-extras-base64
Computed https://github.com/swift-extras/swift-extras-base64 at 0.5.0 (0.28s)
Computing version for https://github.com/swift-extras/swift-extras-json
Computed https://github.com/swift-extras/swift-extras-json at 0.6.0 (0.29s)
Computing version for https://github.com/apple/swift-atomics
Computed https://github.com/apple/swift-atomics at 1.1.0 (0.32s)
Computing version for https://github.com/Quick/Nimble.git
Computed https://github.com/Quick/Nimble.git at 8.1.2 (0.30s)
Computing version for https://github.com/apple/swift-nio
Computed https://github.com/apple/swift-nio at 2.54.0 (0.52s)
Fetching https://github.com/apple/swift-collections.git
[1/11270] Fetching swift-collections
Fetched https://github.com/apple/swift-collections.git (0.85s)
Computing version for https://github.com/apple/swift-collections.git
Computed https://github.com/apple/swift-collections.git at 1.0.4 (0.33s)
Creating working copy for https://github.com/apple/swift-nio
Working copy of https://github.com/apple/swift-nio resolved at 2.54.0
Creating working copy for https://github.com/swift-extras/swift-extras-base64
Working copy of https://github.com/swift-extras/swift-extras-base64 resolved at 0.5.0
Creating working copy for https://github.com/swift-extras/swift-extras-json
Working copy of https://github.com/swift-extras/swift-extras-json resolved at 0.6.0
Creating working copy for https://github.com/Quick/Nimble.git
Working copy of https://github.com/Quick/Nimble.git resolved at 8.1.2
Creating working copy for https://github.com/apple/swift-collections.git
Working copy of https://github.com/apple/swift-collections.git resolved at 1.0.4
Creating working copy for https://github.com/apple/swift-atomics
Working copy of https://github.com/apple/swift-atomics resolved at 1.1.0
Creating working copy for https://github.com/mongodb/swift-bson
Working copy of https://github.com/mongodb/swift-bson resolved at 3.1.0
Building for debugging...
[0/158] Compiling bson-error.c
[1/158] Compiling bson-keys.c
[2/158] Compiling bson-decimal128.c
[3/158] Compiling bson-md5.c
[4/158] Compiling CNIOWindows shim.c
[4/158] Compiling _AtomicsShims.c
/host/spi-builder-workspace/Sources/CLibMongoC/bson/bson-iso8601.c:331:64: warning: format specifies type 'long long' but the argument has type 'int64_t' (aka 'long') [-Wformat]
      bson_string_append_printf (str, "%s.%03" "lld" "Z", buf, msecs_part);
                                          ~~~~~~~~~            ^~~~~~~~~~
                                          %03ld
1 warning generated.
[6/158] Compiling bson-iso8601.c
[7/168] Compiling bson-iter.c
[8/258] Compiling bson-json.c
[8/258] Compiling CNIOWindows WSAStartup.c
[10/258] Compiling CNIOLinux liburing_shims.c
[11/258] Compiling CNIODarwin shim.c
[12/258] Compiling CNIOLinux shim.c
[14/258] Compiling DequeModule _DequeBuffer.swift
[15/258] Compiling DequeModule _DequeBufferHeader.swift
[16/258] Compiling ExtrasJSON ArrayKey.swift
[17/258] Compiling ExtrasJSON JSONDecoder.swift
[18/258] Compiling Atomics AtomicOptional.swift
[19/258] Emitting module DequeModule
[20/260] Compiling ExtrasBase64 DecodingError.swift
[21/260] Emitting module ExtrasJSON
[22/261] Compiling _NIODataStructures PriorityQueue.swift
[26/261] Compiling DequeModule Deque+CustomDebugStringConvertible.swift
[31/263] Compiling Atomics Primitives.shims.swift
[32/263] Compiling DequeModule UnsafeMutableBufferPointer+Utilities.swift
[33/263] Compiling ExtrasJSON JSONKeyedEncodingContainer.swift
[34/263] Compiling ExtrasJSON JSONSingleValueEncodingContainer.swift
[35/263] Compiling ExtrasJSON JSONUnkeyedEncodingContainer.swift
[36/263] Compiling ExtrasJSON JSONError+DecodingError.swift
[37/263] Compiling Atomics AtomicLazyReference.swift
[39/263] Compiling ExtrasJSON JSONUnkeyedDecodingContainer.swift
[40/263] Compiling ExtrasJSON JSONEncoder.swift
[41/263] Compiling Atomics HighLevelTypes.swift
[42/263] Compiling Atomics IntegerConformances.swift
[55/263] Compiling ExtrasJSON DocumentReader.swift
[58/263] Compiling ExtrasJSON JSONValue.swift
[61/263] Emitting module Atomics
[62/263] Compiling DequeModule _DequeSlot.swift
[63/263] Compiling DequeModule _UnsafeWrappedBuffer.swift
[65/265] Compiling mongoc-write-concern.c
[66/265] Wrapping AST for DequeModule for debugging
[68/265] Compiling ExtrasJSON JSONParser.swift
[70/267] Compiling mongoc-write-command.c
[71/267] Compiling mongoc-write-command-legacy.c
[72/267] Wrapping AST for ExtrasJSON for debugging
[73/267] Compiling mongoc-version-functions.c
[82/273] Compiling Atomics Primitives.native.swift
[87/273] Compiling Nimble BeEmpty.swift
[88/273] Compiling Nimble BeGreaterThan.swift
[89/273] Compiling Nimble BeginWith.swift
[90/273] Compiling Nimble Contain.swift
[91/273] Compiling Nimble ContainElementSatisfying.swift
[92/273] Compiling Nimble ElementsEqual.swift
[93/273] Compiling Nimble EndWith.swift
[94/273] Compiling Nimble Equal.swift
[95/273] Compiling Nimble HaveCount.swift
[96/273] Compiling Nimble Match.swift
[97/273] Compiling Nimble MatchError.swift
[98/273] Compiling Nimble MatcherFunc.swift
[99/273] Compiling Nimble MatcherProtocols.swift
[100/273] Compiling Nimble PostNotification.swift
[101/273] Compiling Nimble Predicate.swift
[102/273] Compiling Nimble RaisesException.swift
[103/273] Compiling Nimble SatisfyAllOf.swift
[104/273] Compiling Nimble SatisfyAnyOf.swift
[105/273] Compiling Nimble ThrowAssertion.swift
[106/273] Compiling Nimble ThrowError.swift
[107/273] Compiling Nimble BeGreaterThanOrEqualTo.swift
[108/273] Compiling Nimble BeIdenticalTo.swift
[109/273] Compiling Nimble BeLessThan.swift
[110/273] Compiling Nimble BeLessThanOrEqual.swift
[111/273] Compiling Nimble BeLogical.swift
[112/273] Compiling Nimble BeNil.swift
[113/273] Compiling Nimble BeVoid.swift
[113/273] Compiling mongoc-util.c
[115/273] Emitting module _NIODataStructures
[116/273] Compiling _NIODataStructures Heap.swift
[117/274] Emitting module Nimble
[126/275] Compiling mongoc-ts-pool.c
/host/spi-builder-workspace/Sources/CLibMongoC/mongoc/mongoc-uri.c:1831:64: warning: format specifies type 'long long' but the argument has type 'int64_t' (aka 'long') [-Wformat]
         error, "Unsupported wtimeoutMS value [w=%" "lld" "]", wtimeoutms);
                                                 ~~~~~~~       ^~~~~~~~~~
                                                 %ld
/host/spi-builder-workspace/Sources/CLibMongoC/mongoc/mongoc-uri.c:66:20: note: expanded from macro 'MONGOC_URI_ERROR'
                   __VA_ARGS__);
                   ^~~~~~~~~~~
/host/spi-builder-workspace/Sources/CLibMongoC/mongoc/mongoc-uri.c:2575:26: warning: format specifies type 'long long' but the argument has type 'int64_t' (aka 'long') [-Wformat]
                         retval);
                         ^~~~~~
/host/spi-builder-workspace/Sources/CLibMongoC/include/CLibMongoC_mongoc-log.h:39:61: note: expanded from macro 'MONGOC_WARNING'
   mongoc_log (MONGOC_LOG_LEVEL_WARNING, MONGOC_LOG_DOMAIN, __VA_ARGS__)
                                                            ^~~~~~~~~~~
/host/spi-builder-workspace/Sources/CLibMongoC/mongoc/mongoc-uri.c:2863:26: warning: format specifies type 'long long' but the argument has type 'int64_t' (aka 'long') [-Wformat]
                         value,
                         ^~~~~
/host/spi-builder-workspace/Sources/CLibMongoC/include/CLibMongoC_mongoc-log.h:39:61: note: expanded from macro 'MONGOC_WARNING'
   mongoc_log (MONGOC_LOG_LEVEL_WARNING, MONGOC_LOG_DOMAIN, __VA_ARGS__)
                                                            ^~~~~~~~~~~
/host/spi-builder-workspace/Sources/CLibMongoC/mongoc/mongoc-uri.c:2917:28: warning: format specifies type 'long long' but the argument has type 'int64_t' (aka 'long') [-Wformat]
                           value);
                           ^~~~~
/host/spi-builder-workspace/Sources/CLibMongoC/mongoc/mongoc-uri.c:66:20: note: expanded from macro 'MONGOC_URI_ERROR'
                   __VA_ARGS__);
                   ^~~~~~~~~~~
/host/spi-builder-workspace/Sources/CLibMongoC/mongoc/mongoc-uri.c:2928:25: warning: format specifies type 'long long' but the argument has type 'int64_t' (aka 'long') [-Wformat]
                        value);
                        ^~~~~
/host/spi-builder-workspace/Sources/CLibMongoC/mongoc/mongoc-uri.c:66:20: note: expanded from macro 'MONGOC_URI_ERROR'
                   __VA_ARGS__);
                   ^~~~~~~~~~~
5 warnings generated.
[127/275] Compiling mongoc-uri.c
[128/275] Wrapping AST for _NIODataStructures for debugging
/host/spi-builder-workspace/Sources/CLibMongoC/mongoc/mongoc-topology.c:1316:14: warning: format specifies type 'long long' but the argument has type 'long' [-Wformat]
             (expire_at - loop_start) / 1000);
             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/CLibMongoC/mongoc/mongoc-trace-private.h:42:22: note: expanded from macro 'TRACE'
                     __VA_ARGS__);           \
                     ^~~~~~~~~~~
1 warning generated.
[129/275] Compiling mongoc-topology.c
[130/275] Compiling mongoc-topology-scanner.c
/host/spi-builder-workspace/Sources/CLibMongoC/mongoc/mongoc-topology-description.c:640:23: warning: format specifies type 'long long' but the argument has type 'int64_t' (aka 'long') [-Wformat]
                      max_staleness_seconds,
                      ^~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/CLibMongoC/mongoc/mongoc-topology-description.c:641:23: warning: format specifies type 'long long' but the argument has type 'int64_t' (aka 'long') [-Wformat]
                      td->heartbeat_msec,
                      ^~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/CLibMongoC/mongoc/mongoc-topology-description.c:652:23: warning: format specifies type 'long long' but the argument has type 'int64_t' (aka 'long') [-Wformat]
                      max_staleness_seconds,
                      ^~~~~~~~~~~~~~~~~~~~~
3 warnings generated.
[131/275] Compiling mongoc-topology-description.c
[132/275] Compiling mongoc-topology-description-apm.c
[133/275] Compiling mongoc-timeout.c
In file included from /host/spi-builder-workspace/Sources/CLibMongoC/mongoc/mongoc-stream-tls.c:33:
/host/spi-builder-workspace/Sources/CLibMongoC/mongoc/mongoc-openssl-private.h:23:10: fatal error: 'openssl/bio.h' file not found
#include <openssl/bio.h>
         ^~~~~~~~~~~~~~~
1 error generated.
[134/275] Compiling mongoc-stream-tls.c
[134/275] Compiling mongoc-stream.c
/host/spi-builder-workspace/Sources/CLibMongoC/mongoc/mongoc-topology-background-monitoring.c:63:17: warning: format specifies type 'long long' but the argument has type 'int64_t' (aka 'long') [-Wformat]
                sleep_duration_ms);
                ^~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/CLibMongoC/mongoc/mongoc-trace-private.h:42:22: note: expanded from macro 'TRACE'
                     __VA_ARGS__);           \
                     ^~~~~~~~~~~
[134/275] Compiling mongoc-topology-background-monitoring.c
[134/275] Compiling c-atomics.c
[134/275] Compiling c-nioatomics.c
BUILD FAILURE 5.9 linux

Build Machine: Linux 2