The Swift Package Index logo.Swift Package Index

Build Information

Failed to build mongo-swift-driver with Swift 5.8 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.8-latest swift build 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.22.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/mongodb/mongo-swift-driver.git
Reference: main
Cloned https://github.com/mongodb/mongo-swift-driver.git into spi-builder-workspace
SUCCESS checkout https://github.com/mongodb/mongo-swift-driver.git at main
========================================
Build
========================================
Selected platform:         linux
Swift version:             5.8
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.8-latest swift build 2>&1
Fetching https://github.com/mongodb/swift-bson
Fetching https://github.com/apple/swift-nio
Fetching https://github.com/apple/swift-atomics
[1/3384] Fetching swift-bson
[205/4689] Fetching swift-bson, swift-atomics
Fetching https://github.com/Quick/Nimble
Fetched https://github.com/apple/swift-atomics (0.44s)
Fetched https://github.com/mongodb/swift-bson (0.45s)
[1/61618] Fetching swift-nio
[14790/77728] Fetching swift-nio, nimble
Fetched https://github.com/Quick/Nimble (1.38s)
[39436/61618] Fetching swift-nio
Fetched https://github.com/apple/swift-nio (4.39s)
Computing version for https://github.com/mongodb/swift-bson
Computed https://github.com/mongodb/swift-bson at 3.1.0 (0.28s)
Fetching https://github.com/swift-extras/swift-extras-base64
Fetching https://github.com/swift-extras/swift-extras-json
[1/1049] Fetching swift-extras-json
[1050/1673] Fetching swift-extras-json, swift-extras-base64
Fetched https://github.com/swift-extras/swift-extras-json (0.23s)
[612/624] Fetching swift-extras-base64
Fetched https://github.com/swift-extras/swift-extras-base64 (0.26s)
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.27s)
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.27s)
Computing version for https://github.com/apple/swift-atomics
Computed https://github.com/apple/swift-atomics at 1.1.0 (0.30s)
Computing version for https://github.com/Quick/Nimble
Computed https://github.com/Quick/Nimble at 8.1.2 (0.31s)
Computing version for https://github.com/apple/swift-nio
Computed https://github.com/apple/swift-nio at 2.58.0 (0.40s)
Fetching https://github.com/apple/swift-collections.git
[1/12080] 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.29s)
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/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-nio
Working copy of https://github.com/apple/swift-nio resolved at 2.58.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/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
Creating working copy for https://github.com/Quick/Nimble
Working copy of https://github.com/Quick/Nimble resolved at 8.1.2
Building for debugging...
[0/158] Compiling bson-clock.c
[1/158] Compiling mongoc-memcmp.c
[2/158] Compiling bson-atomic.c
[3/158] Compiling bson-decimal128.c
[4/158] Compiling bson-context.c
[5/158] Compiling CNIOWindows shim.c
[6/158] Compiling _AtomicsShims.c
[7/158] Compiling CNIOWindows WSAStartup.c
[8/158] Compiling CNIOLinux liburing_shims.c
[9/158] Compiling bson-iter.c
[10/158] Compiling CNIODarwin shim.c
[11/158] Compiling CNIOLinux shim.c
[12/158] Compiling bson-json.c
[13/158] Compiling mongoc-version-functions.c
[14/158] Compiling mongoc-write-concern.c
[15/158] Compiling mongoc-write-command-legacy.c
[16/162] Compiling mongoc-write-command.c
[18/258] Compiling Atomics AtomicOptionalRawRepresentable.swift
[19/258] Compiling Atomics AtomicRawRepresentable.swift
[20/258] Compiling Atomics AtomicStrongReference.swift
[21/260] Compiling ExtrasBase64 Base64.swift
[22/260] Compiling Atomics AtomicValue.swift
[23/260] Compiling Atomics DoubleWord.swift
[24/260] Emitting module Atomics
[25/261] Emitting module DequeModule
[26/261] Compiling Atomics AtomicInteger.swift
[27/261] Compiling Atomics AtomicMemoryOrderings.swift
[30/263] Compiling Atomics AtomicOptional.swift
[31/263] Compiling ExtrasBase64 DecodingError.swift
[32/263] Compiling Atomics AtomicBool.swift
[33/263] Compiling Atomics AtomicLazyReference.swift
[34/263] Compiling Atomics HighLevelTypes.swift
[35/263] Compiling Atomics IntegerConformances.swift
[38/263] Compiling Atomics Unmanaged extensions.swift
[41/263] Compiling _NIODataStructures PriorityQueue.swift
[42/263] Emitting module ExtrasJSON
[59/263] Compiling Atomics Primitives.shims.swift
[60/263] Compiling DequeModule _DequeBufferHeader.swift
[61/263] Compiling Atomics PointerConformances.swift
[62/263] Compiling Atomics Primitives.native.swift
[65/263] Compiling ExtrasJSON JSONValue.swift
[66/263] Compiling ExtrasJSON DocumentReader.swift
[67/263] Compiling DequeModule _DequeSlot.swift
[68/263] Compiling DequeModule _UnsafeWrappedBuffer.swift
[71/265] Compiling ExtrasJSON JSONParser.swift
[73/267] Wrapping AST for DequeModule for debugging
[74/267] Wrapping AST for ExtrasJSON for debugging
[75/267] Compiling mongoc-util.c
[76/267] Compiling mongoc-ts-pool.c
[85/267] Emitting module Nimble
[91/273] Compiling Nimble Expression.swift
[92/273] Compiling Nimble FailureMessage.swift
[100/273] Compiling Nimble Predicate.swift
[101/273] Compiling Nimble RaisesException.swift
[102/273] Compiling Nimble SatisfyAllOf.swift
[103/273] Compiling Nimble SatisfyAnyOf.swift
[104/273] Compiling Nimble ThrowAssertion.swift
[105/273] Compiling Nimble ThrowError.swift
[106/273] Compiling Nimble HaveCount.swift
[107/273] Compiling Nimble Match.swift
[108/273] Compiling Nimble MatchError.swift
[109/273] Compiling Nimble MatcherFunc.swift
[110/273] Compiling Nimble MatcherProtocols.swift
[111/273] Compiling Nimble PostNotification.swift
[112/273] Compiling Nimble BeGreaterThanOrEqualTo.swift
[113/273] Compiling Nimble BeIdenticalTo.swift
[114/273] Compiling Nimble BeLessThan.swift
[115/273] Compiling Nimble BeLessThanOrEqual.swift
[116/273] Compiling Nimble BeLogical.swift
[117/273] Compiling Nimble BeNil.swift
[118/273] Compiling Nimble BeVoid.swift
[119/273] Compiling Nimble BeginWith.swift
[120/273] Compiling Nimble Contain.swift
[121/273] Compiling Nimble ContainElementSatisfying.swift
[122/273] Compiling Nimble ElementsEqual.swift
[123/273] Compiling Nimble EndWith.swift
[124/273] Compiling Nimble Equal.swift
[125/273] Compiling _NIODataStructures Heap.swift
[126/273] Emitting module _NIODataStructures
/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.
[126/274] Compiling mongoc-uri.c
/host/spi-builder-workspace/Sources/CLibMongoC/mongoc/mongoc-topology.c:1320: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] Wrapping AST for _NIODataStructures for debugging
[134/277] Compiling mongoc-topology-scanner.c
[135/277] Compiling mongoc-topology-description-apm.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.
[137/277] Compiling mongoc-topology-description.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__);           \
                     ^~~~~~~~~~~
1 warning generated.
[138/277] Compiling mongoc-topology-background-monitoring.c
[139/277] Compiling mongoc-timeout.c
[140/277] Compiling mongoc-stream-tls-secure-transport.c
[141/277] Compiling mongoc-stream-tls-secure-channel.c
/host/spi-builder-workspace/Sources/CLibMongoC/mongoc/mongoc-stream.c:472:23: warning: format specifies type 'long long' but the argument has type 'int64_t' (aka 'long') [-Wformat]
                      (int64_t) total_bytes,
                      ^~~~~~~~~~~~~~~~~~~~~
1 warning generated.
[142/277] Compiling mongoc-stream.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.
[143/277] Compiling mongoc-stream-tls.c
[143/277] Compiling c-nioatomics.c
[143/277] Compiling c-atomics.c
/host/spi-builder-workspace/Sources/CLibMongoC/mongoc/mongoc-stream-tls-openssl.c[143/277] Compiling mongoc-stream-tls-openssl.c
[143/277] Compiling mongoc-stream-tls-libressl.c
[143/277] Compiling mongoc-stream-tls-openssl-bio.c
BUILD FAILURE 5.8 linux

Build Machine: Linux 1