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-4606859-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.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.9
Building package at path:  spi-builder-workspace
Running build ...
docker run --rm -v "checkouts-4606859-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/mongodb/swift-bson
Fetching https://github.com/apple/swift-atomics
Fetching https://github.com/apple/swift-nio
[1/3384] Fetching swift-bson
[2201/4689] Fetching swift-bson, swift-atomics
[4690/66307] Fetching swift-bson, swift-atomics, swift-nio
Fetching https://github.com/Quick/Nimble
Fetched https://github.com/apple/swift-atomics (4.44s)
Fetched https://github.com/mongodb/swift-bson (4.44s)
Fetched https://github.com/apple/swift-nio (4.54s)
[1/16110] Fetching nimble
Fetched https://github.com/Quick/Nimble (1.71s)
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/1049] Fetching swift-extras-json
[1050/1673] Fetching swift-extras-json, swift-extras-base64
Fetched https://github.com/swift-extras/swift-extras-json (0.24s)
Fetched https://github.com/swift-extras/swift-extras-base64 (0.24s)
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.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
Computed https://github.com/Quick/Nimble at 8.1.2 (0.30s)
Computing version for https://github.com/apple/swift-nio
Computed https://github.com/apple/swift-nio at 2.58.0 (0.48s)
Fetching https://github.com/apple/swift-collections.git
[1/12080] Fetching swift-collections
Fetched https://github.com/apple/swift-collections.git (0.91s)
Computing version for https://github.com/apple/swift-collections.git
Computed https://github.com/apple/swift-collections.git at 1.0.4 (0.31s)
Creating working copy for https://github.com/Quick/Nimble
Working copy of https://github.com/Quick/Nimble 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/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/mongodb/swift-bson
Working copy of https://github.com/mongodb/swift-bson resolved at 3.1.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/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
Building for debugging...
[0/158] Compiling _AtomicsShims.c
[0/158] Compiling CNIOWindows shim.c
[2/158] Compiling CNIODarwin shim.c
[2/158] Compiling CNIOWindows WSAStartup.c
[4/158] Compiling CNIOLinux liburing_shims.c
[5/158] Compiling CNIOLinux shim.c
[6/161] Compiling mongoc-version-functions.c
[7/204] Compiling mongoc-write-command-legacy.c
[8/208] Compiling mongoc-write-concern.c
[9/221] Compiling mongoc-write-command.c
[11/258] Emitting module _NIODataStructures
[12/258] Compiling Atomics AtomicOptionalRawRepresentable.swift
[13/258] Compiling Atomics AtomicRawRepresentable.swift
[14/258] Compiling Atomics AtomicStrongReference.swift
[15/260] Compiling _NIODataStructures PriorityQueue.swift
[16/260] Emitting module DequeModule
[17/260] Compiling Atomics AtomicInteger.swift
[18/260] Compiling Atomics AtomicMemoryOrderings.swift
[19/260] Compiling Atomics AtomicOptional.swift
[20/260] Emitting module Atomics
[23/262] Compiling Atomics PointerConformances.swift
[24/262] Compiling Atomics Primitives.native.swift
[25/262] Compiling DequeModule _DequeSlot.swift
[26/262] Compiling DequeModule _UnsafeWrappedBuffer.swift
[27/262] Compiling ExtrasBase64 DecodingError.swift
[28/262] Compiling Atomics Primitives.shims.swift
[29/262] Compiling DequeModule _DequeBufferHeader.swift
[30/262] Compiling Atomics Unmanaged extensions.swift
[31/262] Compiling Atomics AtomicBool.swift
[34/262] Compiling Atomics AtomicValue.swift
[35/262] Compiling Atomics DoubleWord.swift
[39/262] Compiling Atomics AtomicLazyReference.swift
[40/262] Compiling Atomics HighLevelTypes.swift
[41/262] Compiling Atomics IntegerConformances.swift
[47/263] Emitting module ExtrasJSON
[54/265] Compiling ExtrasBase64 Base64.swift
[59/265] Compiling ExtrasJSON JSONValue.swift
[60/265] Compiling ExtrasJSON DocumentReader.swift
[64/265] Compiling c-nioatomics.c
[65/265] Compiling mongoc-util.c
[74/271] Compiling _NIODataStructures Heap.swift
[75/272] Emitting module Nimble
[85/273] Compiling Nimble Predicate.swift
[86/273] Compiling Nimble RaisesException.swift
[87/273] Compiling Nimble SatisfyAllOf.swift
[88/273] Compiling Nimble SatisfyAnyOf.swift
[89/273] Compiling Nimble ThrowAssertion.swift
[90/273] Compiling Nimble ThrowError.swift
[91/273] Compiling Nimble HaveCount.swift
[92/273] Compiling Nimble Match.swift
[93/273] Compiling Nimble MatchError.swift
[94/273] Compiling Nimble MatcherFunc.swift
[95/273] Compiling Nimble MatcherProtocols.swift
[96/273] Compiling Nimble PostNotification.swift
/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.
[96/273] Compiling mongoc-uri.c
[97/273] Compiling mongoc-ts-pool.c
[104/273] Compiling Nimble BeEmpty.swift
[105/273] Compiling Nimble BeGreaterThan.swift
[106/273] Compiling Nimble BeginWith.swift
[107/273] Compiling Nimble Contain.swift
[108/273] Compiling Nimble ContainElementSatisfying.swift
[109/273] Compiling Nimble ElementsEqual.swift
[110/273] Compiling Nimble EndWith.swift
[111/273] Compiling Nimble Equal.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 ExtrasJSON JSONParser.swift
/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.
[121/275] Compiling mongoc-topology.c
[125/277] Wrapping AST for _NIODataStructures for debugging
[126/277] Compiling mongoc-topology-scanner.c
[127/277] Wrapping AST for ExtrasJSON for debugging
[129/277] Wrapping AST for DequeModule for debugging
[130/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.
[131/277] Compiling mongoc-timeout.c
[132/277] Compiling mongoc-topology-description.c
[133/277] Compiling mongoc-stream-tls-secure-transport.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.
[134/277] Compiling mongoc-topology-background-monitoring.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.
[135/277] Compiling mongoc-stream-tls-secure-channel.c
[136/277] Compiling mongoc-stream.c
[138/277] Emitting module ExtrasBase64
[138/277] Compiling mongoc-stream-tls-libressl.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.
[139/277] Compiling mongoc-stream-tls.c
[139/277] Compiling mongoc-stream-gridfs.c
[139/277] Compiling mongoc-stream-socket.c
[139/277] Compiling mongoc-stream-tls-openssl-bio.c
/host/spi-builder-workspace/Sources/CLibMongoC/mongoc/mongoc-stream-tls-openssl.c:25:10: fatal error: 'openssl/bio.h' file not found
#include <openssl/bio.h>
         ^~~~~~~~~~~~~~~
[139/277] Compiling mongoc-stream-tls-openssl.c
[139/277] Compiling c-atomics.c
BUILD FAILURE 5.9 linux

Build Machine: Linux 1