The Swift Package Index logo.Swift Package Index

Build Information

Failed to build KituraWebSocket 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/Kitura/Kitura-WebSocket-NIO.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/Kitura/Kitura-WebSocket-NIO
 * branch            master     -> FETCH_HEAD
 * [new branch]      master     -> origin/master
HEAD is now at df9e174 Update github org references (#66)
Cloned https://github.com/Kitura/Kitura-WebSocket-NIO.git
Revision (git rev-parse @):
df9e1748c12e66b3c303412649a045d9706c70b9
SUCCESS checkout https://github.com/Kitura/Kitura-WebSocket-NIO.git at master
========================================
Build
========================================
Selected platform:         linux
Swift version:             5.10
Building package at path:  $workDir
https://github.com/Kitura/Kitura-WebSocket-NIO.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/Kitura/Kitura-NIO.git
Fetching https://github.com/Kitura/Kitura-WebSocket-Compression.git
Fetching https://github.com/Kitura/BlueCryptor.git
[1/3471] Fetching kitura-nio
[106/3579] Fetching kitura-nio, kitura-websocket-compression
[338/5217] Fetching kitura-nio, kitura-websocket-compression, bluecryptor
Fetched https://github.com/Kitura/Kitura-WebSocket-Compression.git from cache (0.28s)
[5075/5109] Fetching kitura-nio, bluecryptor
Fetched https://github.com/Kitura/BlueCryptor.git from cache (0.30s)
Fetched https://github.com/Kitura/Kitura-NIO.git from cache (0.37s)
Computing version for https://github.com/Kitura/Kitura-WebSocket-Compression.git
Computed https://github.com/Kitura/Kitura-WebSocket-Compression.git at 0.1.200 (0.53s)
Fetching https://github.com/apple/swift-nio.git
[1/64498] Fetching swift-nio
Fetched https://github.com/apple/swift-nio.git from cache (5.32s)
Computing version for https://github.com/Kitura/BlueCryptor.git
Computed https://github.com/Kitura/BlueCryptor.git at 1.0.200 (0.46s)
Fetching https://github.com/Kitura/OpenSSL.git
[1/203] Fetching openssl
Fetched https://github.com/Kitura/OpenSSL.git from cache (0.23s)
Computing version for https://github.com/Kitura/Kitura-NIO.git
Computed https://github.com/Kitura/Kitura-NIO.git at 2.4.200 (0.47s)
Fetching https://github.com/Kitura/LoggerAPI.git
Fetching https://github.com/Kitura/BlueSSLService.git
Fetching https://github.com/apple/swift-nio-extras.git
Fetching https://github.com/apple/swift-nio-ssl.git
[1/771] Fetching loggerapi
[719/2859] Fetching loggerapi, bluesslservice
[2807/15006] Fetching loggerapi, bluesslservice, swift-nio-ssl
[4144/19798] Fetching loggerapi, bluesslservice, swift-nio-ssl, swift-nio-extras
Fetched https://github.com/Kitura/LoggerAPI.git from cache (0.78s)
[10646/19027] Fetching bluesslservice, swift-nio-ssl, swift-nio-extras
Fetched https://github.com/apple/swift-nio-extras.git from cache (2.09s)
Fetched https://github.com/Kitura/BlueSSLService.git from cache (2.10s)
Fetched https://github.com/apple/swift-nio-ssl.git from cache (2.13s)
Computing version for https://github.com/Kitura/LoggerAPI.git
Computed https://github.com/Kitura/LoggerAPI.git at 1.9.200 (0.84s)
Fetching https://github.com/apple/swift-log.git
[1/3170] Fetching swift-log
Fetched https://github.com/apple/swift-log.git from cache (0.60s)
Computing version for https://github.com/Kitura/BlueSSLService.git
Computed https://github.com/Kitura/BlueSSLService.git at 1.0.200 (0.81s)
Fetching https://github.com/Kitura/BlueSocket.git
[1/2942] Fetching bluesocket
Fetched https://github.com/Kitura/BlueSocket.git from cache (0.61s)
Computing version for https://github.com/Kitura/BlueSocket.git
Computed https://github.com/Kitura/BlueSocket.git at 1.0.200 (0.79s)
Computing version for https://github.com/Kitura/OpenSSL.git
Computed https://github.com/Kitura/OpenSSL.git at 2.3.1 (2.12s)
Computing version for https://github.com/apple/swift-log.git
Computed https://github.com/apple/swift-log.git at 1.5.4 (0.64s)
Computing version for https://github.com/apple/swift-nio-extras.git
Computed https://github.com/apple/swift-nio-extras.git at 1.21.0 (0.78s)
Fetching https://github.com/apple/swift-http-types
Fetching https://github.com/apple/swift-nio-http2.git
[1/354] Fetching swift-http-types
[355/10519] Fetching swift-http-types, swift-nio-http2
Fetched https://github.com/apple/swift-http-types from cache (0.37s)
[1627/10165] Fetching swift-nio-http2
Fetched https://github.com/apple/swift-nio-http2.git from cache (1.58s)
Computing version for https://github.com/apple/swift-http-types
Computed https://github.com/apple/swift-http-types at 1.0.3 (0.70s)
Computing version for https://github.com/apple/swift-nio-http2.git
Computed https://github.com/apple/swift-nio-http2.git at 1.30.0 (0.91s)
Fetching https://github.com/apple/swift-atomics.git
[1/1563] Fetching swift-atomics
Fetched https://github.com/apple/swift-atomics.git from cache (0.65s)
Computing version for https://github.com/apple/swift-atomics.git
Computed https://github.com/apple/swift-atomics.git at 1.2.0 (0.77s)
Computing version for https://github.com/apple/swift-nio.git
Computed https://github.com/apple/swift-nio.git at 2.63.0 (1.21s)
Fetching https://github.com/apple/swift-system.git
Fetching https://github.com/apple/swift-collections.git
[1/2983] Fetching swift-system
[2984/16729] Fetching swift-system, swift-collections
Fetched https://github.com/apple/swift-system.git from cache (0.60s)
[825/13746] Fetching swift-collections
Fetched https://github.com/apple/swift-collections.git from cache (2.03s)
Computing version for https://github.com/apple/swift-system.git
Computed https://github.com/apple/swift-system.git at 1.2.1 (0.84s)
Computing version for https://github.com/apple/swift-collections.git
Computed https://github.com/apple/swift-collections.git at 1.1.0 (1.35s)
Computing version for https://github.com/apple/swift-nio-ssl.git
Computed https://github.com/apple/swift-nio-ssl.git at 2.26.0 (3.07s)
Creating working copy for https://github.com/Kitura/Kitura-NIO.git
Working copy of https://github.com/Kitura/Kitura-NIO.git resolved at 2.4.200
Creating working copy for https://github.com/Kitura/BlueSSLService.git
Working copy of https://github.com/Kitura/BlueSSLService.git resolved at 1.0.200
Creating working copy for https://github.com/Kitura/BlueCryptor.git
Working copy of https://github.com/Kitura/BlueCryptor.git resolved at 1.0.200
Creating working copy for https://github.com/apple/swift-nio-extras.git
Working copy of https://github.com/apple/swift-nio-extras.git resolved at 1.21.0
Creating working copy for https://github.com/Kitura/BlueSocket.git
Working copy of https://github.com/Kitura/BlueSocket.git resolved at 1.0.200
Creating working copy for https://github.com/Kitura/Kitura-WebSocket-Compression.git
Working copy of https://github.com/Kitura/Kitura-WebSocket-Compression.git resolved at 0.1.200
Creating working copy for https://github.com/apple/swift-http-types
Working copy of https://github.com/apple/swift-http-types resolved at 1.0.3
Creating working copy for https://github.com/apple/swift-log.git
Working copy of https://github.com/apple/swift-log.git resolved at 1.5.4
Creating working copy for https://github.com/apple/swift-nio-http2.git
Working copy of https://github.com/apple/swift-nio-http2.git resolved at 1.30.0
Creating working copy for https://github.com/Kitura/OpenSSL.git
Working copy of https://github.com/Kitura/OpenSSL.git resolved at 2.3.1
Creating working copy for https://github.com/apple/swift-nio.git
Working copy of https://github.com/apple/swift-nio.git resolved at 2.63.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.1.0
Creating working copy for https://github.com/apple/swift-atomics.git
Working copy of https://github.com/apple/swift-atomics.git resolved at 1.2.0
Creating working copy for https://github.com/Kitura/LoggerAPI.git
Working copy of https://github.com/Kitura/LoggerAPI.git resolved at 1.9.200
Creating working copy for https://github.com/apple/swift-system.git
Working copy of https://github.com/apple/swift-system.git resolved at 1.2.1
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 2.26.0
warning: you may be able to install libz using your system-packager:
    apt-get install libz-dev
Building for debugging...
[0/507] Write sources
[4/507] Compiling a_i2d_fp.c
[5/507] Write sources
[8/507] Compiling ghashv8-armv8-linux.linux.aarch64.S
[8/507] Write sources
[25/507] Compiling a_mbstr.c
[25/507] Compiling ghash-neon-armv8-linux.linux.aarch64.S
[25/507] Write swift-version-24593BA9C3E375BF.txt
[28/507] Compiling ghash-neon-armv8-ios.ios.aarch64.S
[28/507] Compiling _AtomicsShims.c
[30/507] Compiling ghash-armv4-linux.linux.arm.S
[30/507] Compiling a_int.c
[32/507] Compiling CNIOWindows shim.c
[32/507] Compiling CNIOWindows WSAStartup.c
[34/507] Compiling CNIOLinux liburing_shims.c
/host/spi-builder-workspace/.build/checkouts/swift-nio/Sources/CNIOLinux/shim.c:203:9: warning: 'RENAME_NOREPLACE' macro redefined [-Wmacro-redefined]
#define RENAME_NOREPLACE 1
        ^
/usr/include/stdio.h:164:10: note: previous definition is here
# define RENAME_NOREPLACE (1 << 0)
         ^
/host/spi-builder-workspace/.build/checkouts/swift-nio/Sources/CNIOLinux/shim.c:204:9: warning: 'RENAME_EXCHANGE' macro redefined [-Wmacro-redefined]
#define RENAME_EXCHANGE  2
        ^
/usr/include/stdio.h:165:10: note: previous definition is here
# define RENAME_EXCHANGE (1 << 1)
         ^
2 warnings generated.
[35/507] Compiling CNIOLinux shim.c
[36/507] Compiling CNIOSHA1 c_nio_sha1.c
[37/511] Compiling CNIOLLHTTP c_nio_http.c
[38/519] Compiling CNIOLLHTTP c_nio_api.c
[39/522] Compiling CNIODarwin shim.c
[40/539] Compiling fiat_p256_adx_sqr.S
[41/539] Compiling fiat_p256_adx_mul.S
[42/539] Compiling CNIOLLHTTP c_nio_llhttp.c
[43/539] Compiling fiat_curve25519_adx_square.S
[44/539] Compiling fiat_curve25519_adx_mul.S
[45/539] Compiling CNIOBoringSSLShims shims.c
[47/539] Emitting module Logging
[47/539] Compiling tls_record.cc
[48/539] Compiling tls_method.cc
[49/539] Compiling tls13_server.cc
[50/539] Compiling tls13_enc.cc
[51/539] Compiling tls13_client.cc
[52/539] Compiling tls13_both.cc
[53/539] Compiling t1_enc.cc
[55/539] Compiling _CollectionsUtilities Debugging.swift
[56/539] Compiling _CollectionsUtilities Descriptions.swift
[57/539] Compiling _CollectionsUtilities RandomAccessCollection+Offsets.swift
[58/539] Compiling _CollectionsUtilities Specialize.swift
[59/541] Compiling _CollectionsUtilities FixedWidthInteger+roundUpToPowerOfTwo.swift
[60/541] Compiling _CollectionsUtilities Integer rank.swift
[61/541] Compiling _CollectionsUtilities UInt+first and last set bit.swift
[62/541] Compiling _CollectionsUtilities UnsafeMutableBufferPointer+SE-0370.swift
[63/541] Compiling _CollectionsUtilities UnsafeMutablePointer+SE-0370.swift
[64/541] Compiling _CollectionsUtilities UnsafeRawPointer extensions.swift
[65/541] Emitting module _CollectionsUtilities
[66/541] Compiling _CollectionsUtilities _SortedCollection.swift
[67/541] Compiling _CollectionsUtilities _UniqueCollection.swift
[68/541] Compiling _CollectionsUtilities UInt+reversed.swift
[69/541] Compiling _CollectionsUtilities _UnsafeBitSet+Index.swift
[70/541] Compiling _CollectionsUtilities _UnsafeBitSet+_Word.swift
[71/541] Compiling _CollectionsUtilities _UnsafeBitSet.swift
[72/541] Compiling _NIOBase64 Base64.swift
[73/541] Emitting module _NIOBase64
[75/542] Compiling _NIODataStructures PriorityQueue.swift
[76/542] Compiling _NIODataStructures _TinyArray.swift
[76/542] Compiling ssl_versions.cc
[77/542] Wrapping AST for _NIOBase64 for debugging
[79/542] Compiling _CollectionsUtilities UnsafeBufferPointer+Extras.swift
[80/542] Compiling _CollectionsUtilities UnsafeMutableBufferPointer+Extras.swift
[81/543] Compiling ssl_x509.cc
[82/559] Compiling ssl_transcript.cc
[84/559] Compiling DequeModule _DequeBuffer.swift
[85/559] Compiling DequeModule _DequeBufferHeader.swift
[85/561] Wrapping AST for _CollectionsUtilities for debugging
[86/561] Compiling ssl_stat.cc
[87/561] Compiling ssl_privkey.cc
[88/561] Compiling ssl_session.cc
[90/561] Compiling Logging MetadataProvider.swift
[91/561] Compiling DequeModule _DequeSlot.swift
[92/561] Compiling DequeModule _UnsafeWrappedBuffer.swift
[93/561] Emitting module _NIODataStructures
[94/561] Compiling _NIODataStructures Heap.swift
[95/562] Compiling Socket SocketUtils.swift
[96/562] Compiling Socket SocketProtocols.swift
[98/562] Compiling DequeModule Deque._UnsafeHandle.swift
[99/562] Compiling DequeModule Deque.swift
[100/562] Compiling DequeModule Deque+Testing.swift
[101/562] Compiling DequeModule Deque._Storage.swift
[102/562] Compiling DequeModule Deque+Hashable.swift
[103/562] Compiling DequeModule Deque+Sendable.swift
[104/562] Compiling DequeModule Deque+Descriptions.swift
[105/562] Compiling DequeModule Deque+Equatable.swift
[106/562] Compiling DequeModule Deque+ExpressibleByArrayLiteral.swift
[107/562] Compiling DequeModule Deque+Extras.swift
[108/562] Compiling DequeModule Deque+Codable.swift
[109/562] Compiling DequeModule Deque+Collection.swift
[110/562] Compiling DequeModule Deque+CustomReflectable.swift
[111/562] Compiling Logging Locks.swift
[112/562] Compiling Logging Logging.swift
[113/562] Compiling Logging LogHandler.swift
[115/563] Emitting module DequeModule
[116/564] Compiling ssl_key_share.cc
[117/564] Wrapping AST for _NIODataStructures for debugging
[118/564] Wrapping AST for Logging for debugging
[119/564] Emitting module Socket
[121/564] Compiling Socket Socket.swift
[121/565] Wrapping AST for DequeModule for debugging
[122/567] Compiling ssl_lib.cc
[123/567] Compiling ssl_file.cc
[125/567] Compiling ssl_cipher.cc
[127/570] Emitting module LoggerAPI
[128/570] Compiling LoggerAPI Logger.swift
[128/570] Compiling ssl_cert.cc
[129/571] Wrapping AST for Socket for debugging
[131/571] Wrapping AST for LoggerAPI for debugging
[132/571] Compiling ssl_buffer.cc
[133/571] Compiling ssl_asn1.cc
[134/571] Compiling ssl_aead_ctx.cc
[135/571] Compiling s3_pkt.cc
[136/571] Compiling s3_lib.cc
[137/571] Compiling s3_both.cc
[139/571] Compiling SSLService SSLService.swift
/host/spi-builder-workspace/.build/checkouts/BlueSSLService/Sources/SSLService/SSLService.swift:1322:8: error: cannot find 'SSL_get_peer_certificate' in scope
                                if SSL_get_peer_certificate(.make(optional: sslConnect)) != nil {
                                   ^~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/BlueSSLService/Sources/SSLService/SSLService.swift:1322:34: error: cannot infer contextual base in reference to member 'make'
                                if SSL_get_peer_certificate(.make(optional: sslConnect)) != nil {
                                                            ~^~~~
[140/571] Emitting module SSLService
[141/571] Compiling SSLService SSLPointerTricks.swift
[141/571] Compiling handshake.cc
error: fatalError
[142/571] Compiling handshake_client.cc
[143/571] Compiling extensions.cc
[143/571] Compiling handoff.cc
[143/571] Compiling encrypted_client_hello.cc
[143/571] Compiling dtls_record.cc
[143/571] Compiling d1_srtp.cc
[143/571] Compiling dtls_method.cc
[143/571] Compiling handshake_server.cc
warning: you may be able to install libz using your system-packager:
    apt-get install libz-dev
[0/1] Planning build
Building for debugging...
[0/428] Write sources
[1/436] Compiling dtls_record.cc
[2/436] Compiling d1_pkt.cc
[3/436] Compiling dtls_method.cc
[4/436] Write swift-version-24593BA9C3E375BF.txt
[5/429] Compiling handoff.cc
[6/429] Compiling handshake_server.cc
[7/429] Compiling d1_srtp.cc
[8/450] Compiling v3_utl.c
[9/450] Compiling extensions.cc
[10/450] Compiling encrypted_client_hello.cc
[11/450] Compiling v3_skey.c
[12/450] Compiling v3_prn.c
[13/450] Compiling v3_purp.c
[15/450] Compiling Atomics UnsafeAtomic.swift
[16/450] Compiling Atomics UnsafeAtomicLazyReference.swift
[17/450] Compiling Atomics ManagedAtomic.swift
[18/450] Compiling Atomics ManagedAtomicLazyReference.swift
[19/452] Emitting module SSLService
[20/452] Compiling SSLService SSLService.swift
/host/spi-builder-workspace/.build/checkouts/BlueSSLService/Sources/SSLService/SSLService.swift:1322:8: error: cannot find 'SSL_get_peer_certificate' in scope
                                if SSL_get_peer_certificate(.make(optional: sslConnect)) != nil {
                                   ^~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/BlueSSLService/Sources/SSLService/SSLService.swift:1322:34: error: cannot infer contextual base in reference to member 'make'
                                if SSL_get_peer_certificate(.make(optional: sslConnect)) != nil {
                                                            ~^~~~
[21/452] Compiling Atomics AtomicMemoryOrderings.swift
[22/452] Compiling Atomics DoubleWord.swift
[23/452] Compiling Atomics Primitives.shims.swift
[24/452] Compiling Atomics AtomicInteger.swift
[25/452] Compiling Atomics AtomicOptionalWrappable.swift
error: fatalError
[25/452] Compiling v3_pcons.c
[25/452] Compiling d1_both.cc
[25/452] Compiling v3_pmaps.c
[25/452] Compiling bio_ssl.cc
[25/452] Compiling d1_lib.cc
[25/452] Compiling v3_ocsp.c
BUILD FAILURE 5.10 linux

Build Machine: Linux 2