Build Information
Failed to build mongo-swift-driver with Swift 5.9 for Linux.
Build Command
bash -c docker run --rm -v "checkouts-4606859-1":/host -w "$PWD/checkout" registry.gitlab.com/finestructure/spi-images:basic-5.9-latest swift build 2>&1
Build Log
========================================
RunAll
========================================
Builder version: 4.25.4
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/mongodb/mongo-swift-driver.git
Reference: v1.3.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/mongodb/mongo-swift-driver
* tag v1.3.1 -> FETCH_HEAD
HEAD is now at cd8618a 1.3.1
Cloned https://github.com/mongodb/mongo-swift-driver.git
Revision (git rev-parse @):
cd8618a10f89b72bad6edb1066a8fb60df57811b
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: $PWD/checkout
Running build ...
bash -c docker run --rm -v "checkouts-4606859-1":/host -w "$PWD/checkout" registry.gitlab.com/finestructure/spi-images:basic-5.9-latest swift build 2>&1
Fetching https://github.com/apple/swift-nio
Fetching https://github.com/apple/swift-atomics
Fetching https://github.com/mongodb/swift-bson
[1/3384] Fetching swift-bson
[374/4929] Fetching swift-bson, swift-atomics
[4930/68479] Fetching swift-bson, swift-atomics, swift-nio
Fetching https://github.com/Quick/Nimble.git
Fetched https://github.com/apple/swift-atomics (1.22s)
[17365/66934] Fetching swift-bson, swift-nio
[28805/83660] Fetching swift-bson, swift-nio, nimble
Fetched https://github.com/Quick/Nimble.git (1.48s)
Fetched https://github.com/mongodb/swift-bson (4.28s)
Fetched https://github.com/apple/swift-nio (4.36s)
Computing version for https://github.com/mongodb/swift-bson
Computed https://github.com/mongodb/swift-bson at 3.1.0 (0.36s)
Fetching https://github.com/swift-extras/swift-extras-base64
Fetching https://github.com/swift-extras/swift-extras-json
[1/1049] Fetching swift-extras-json
[495/1673] Fetching swift-extras-json, swift-extras-base64
Fetched https://github.com/swift-extras/swift-extras-base64 (0.28s)
Fetched https://github.com/swift-extras/swift-extras-json (0.29s)
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.40s)
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.34s)
Computing version for https://github.com/apple/swift-atomics
Computed https://github.com/apple/swift-atomics at 1.2.0 (0.35s)
Computing version for https://github.com/Quick/Nimble.git
Computed https://github.com/Quick/Nimble.git at 8.1.2 (0.39s)
Computing version for https://github.com/apple/swift-nio
Computed https://github.com/apple/swift-nio at 2.62.0 (1.07s)
Fetching https://github.com/apple/swift-collections.git
[1/12393] 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.5 (0.37s)
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-atomics
Working copy of https://github.com/apple/swift-atomics resolved at 1.2.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/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-nio
Working copy of https://github.com/apple/swift-nio resolved at 2.62.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.5
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/159] Compiling bson-clock.c
[1/159] Compiling bson-decimal128.c
[2/159] Compiling bson-timegm.c
[3/159] Compiling bson-atomic.c
[4/159] Compiling _AtomicsShims.c
[4/159] Compiling bson-context.c
[6/159] Compiling CNIOWindows WSAStartup.c
[7/159] Compiling CNIOWindows shim.c
[8/159] Compiling CNIODarwin shim.c
[8/159] Compiling CNIOLinux liburing_shims.c
[10/159] Compiling bson-iter.c
[11/159] Compiling CNIOLinux shim.c
[12/159] Compiling bson-json.c
[14/266] Emitting module _NIOBase64
[15/266] Emitting module ExtrasJSON
[16/267] Emitting module Nimble
[16/273] Compiling c-nioatomics.c
[18/273] Compiling Atomics PointerConformances.swift
[19/273] Compiling Atomics Primitives.native.swift
[20/273] Compiling Atomics ManagedAtomicLazyReference.swift
[21/273] Compiling Atomics UnsafeAtomic.swift
[22/273] Compiling Atomics AtomicReference.swift
[23/273] Compiling Atomics AtomicStorage.swift
[24/273] Compiling Atomics AtomicValue.swift
[25/277] Compiling ExtrasJSON DocumentReader.swift
[26/277] Compiling Atomics Primitives.shims.swift
[27/277] Compiling Atomics AtomicInteger.swift
[28/277] Compiling Atomics AtomicOptionalWrappable.swift
[29/277] Compiling Atomics OptionalRawRepresentable.swift
[30/277] Compiling Atomics RawRepresentable.swift
[31/277] Compiling Atomics AtomicBool.swift
[35/277] Compiling Atomics IntegerConformances.swift
[44/277] Compiling Atomics AtomicMemoryOrderings.swift
[45/277] Compiling Atomics DoubleWord.swift
[46/277] Emitting module DequeModule
[48/277] Compiling DequeModule _DequeSlot.swift
[49/277] Compiling Atomics ManagedAtomic.swift
[51/277] Compiling ExtrasBase64 DecodingError.swift
[58/277] Compiling _NIOBase64 Base64.swift
[61/278] Compiling ExtrasJSON JSONValue.swift
[63/278] Compiling Atomics IntegerOperations.swift
[64/278] Compiling Atomics Unmanaged extensions.swift
[65/279] Compiling ExtrasJSON JSONParser.swift
[66/280] Compiling _NIODataStructures PriorityQueue.swift
[67/280] Compiling _NIODataStructures _TinyArray.swift
[70/281] Compiling mongoc-write-concern.c
[73/282] Wrapping AST for _NIOBase64 for debugging
[74/282] Wrapping AST for ExtrasJSON for debugging
[77/283] Compiling mongoc-write-command.c
[78/283] Compiling mongoc-version-functions.c
[80/283] Emitting module _NIODataStructures
[81/283] Compiling _NIODataStructures Heap.swift
[81/283] Compiling mongoc-write-command-legacy.c
[83/283] Compiling Nimble Predicate.swift
[84/283] Compiling Nimble RaisesException.swift
[85/283] Compiling Nimble SatisfyAllOf.swift
[86/283] Compiling Nimble SatisfyAnyOf.swift
[87/283] Compiling Nimble ThrowAssertion.swift
[88/283] Compiling Nimble ThrowError.swift
[88/284] Wrapping AST for DequeModule for debugging
[91/285] Compiling Nimble HaveCount.swift
[92/285] Compiling Nimble Match.swift
[93/285] Compiling Nimble MatchError.swift
[94/285] Compiling Nimble MatcherFunc.swift
[95/285] Compiling Nimble MatcherProtocols.swift
[96/285] Compiling Nimble PostNotification.swift
[104/285] Compiling Nimble ExceptionCapture.swift
[105/285] Compiling Nimble DSL+Wait.swift
[106/285] Compiling Nimble DSL.swift
[107/285] Compiling Nimble Expectation.swift
[108/285] Compiling Nimble ExpectationMessage.swift
[109/285] Compiling Nimble Expression.swift
[110/285] Compiling Nimble FailureMessage.swift
[117/285] Compiling Nimble BeGreaterThan.swift
[125/285] Compiling Nimble BeginWith.swift
[126/285] Compiling Nimble Contain.swift
[127/285] Compiling Nimble ContainElementSatisfying.swift
[128/285] Compiling Nimble ElementsEqual.swift
[129/285] Compiling Nimble EndWith.swift
[130/285] Compiling Nimble Equal.swift
[134/285] Emitting module Atomics
[139/286] Compiling Nimble ToSucceed.swift
[140/286] Compiling Nimble Await.swift
[141/286] Compiling Nimble Errors.swift
[142/286] Compiling Nimble Functional.swift
[143/286] Compiling Nimble SourceLocation.swift
[144/286] Compiling Nimble Stringers.swift
[144/287] Compiling mongoc-util.c
[145/287] Compiling mongoc-ts-pool.c
[148/289] Wrapping AST for _NIODataStructures for debugging
/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.
[150/289] Compiling mongoc-uri.c
[152/289] Compiling c-atomics.c
[153/289] Compiling mongoc-topology-description-apm.c
[154/289] Compiling mongoc-topology-scanner.c
/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.
[155/289] Compiling mongoc-topology.c
[156/289] Compiling mongoc-timeout.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.
[157/289] Compiling mongoc-topology-background-monitoring.c
[158/289] Compiling mongoc-stream-tls-secure-transport.c
[159/289] Compiling mongoc-stream-tls-secure-channel.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.
[160/289] Compiling mongoc-topology-description.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.
[161/290] Compiling mongoc-stream-tls.c
[161/290] Compiling mongoc-stream-tls-openssl-bio.c
[161/290] Compiling mongoc-stream-tls-openssl.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,
^~~~~~~~~~~~~~~~~~~~~
[161/290] Compiling mongoc-stream.c
[161/290] Compiling mongoc-stream-tls-libressl.c
[161/290] Compiling mongoc-stream-socket.c
[0/1] Planning build
Building for debugging...
[0/129] 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.
[1/129] Compiling mongoc-stream-tls.c
[1/129] Compiling mongoc-stream-socket.c
[1/129] Compiling mongoc-stream-tls-openssl.c
[1/129] Compiling mongoc-stream-tls-openssl-bio.c
[1/129] Compiling mongoc-stream-gridfs-upload.c
[1/129] Compiling mongoc-stream-gridfs.c
[1/129] Compiling mongoc-stream.c
BUILD FAILURE 5.9 linux