The Swift Package Index logo.Swift Package Index

Build Information

Failed to build KituraWebSocket with Swift 5.9 for Linux.

Build Command

docker run --rm -v "checkouts-4609320-0":/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/Kitura/Kitura-WebSocket-NIO.git
Reference: 2.1.200
Cloned https://github.com/Kitura/Kitura-WebSocket-NIO.git into spi-builder-workspace
SUCCESS checkout https://github.com/Kitura/Kitura-WebSocket-NIO.git at 2.1.200
========================================
Build
========================================
Selected platform:         linux
Swift version:             5.9
Building package at path:  spi-builder-workspace
Running build ...
docker run --rm -v "checkouts-4609320-0":/host -w "/host/spi-builder-workspace" registry.gitlab.com/finestructure/spi-images:basic-5.9-latest swift build 2>&1
Fetching https://github.com/Kitura/Kitura-WebSocket-Compression.git
Fetching https://github.com/Kitura/BlueCryptor.git
Fetching https://github.com/Kitura/Kitura-NIO.git
[1/3471] Fetching kitura-nio
[3472/3579] Fetching kitura-nio, kitura-websocket-compression
[3555/5187] Fetching kitura-nio, kitura-websocket-compression, bluecryptor
Fetched https://github.com/Kitura/BlueCryptor.git (0.53s)
Fetched https://github.com/Kitura/Kitura-WebSocket-Compression.git (0.55s)
Fetched https://github.com/Kitura/Kitura-NIO.git (0.55s)
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.37s)
Fetching https://github.com/apple/swift-nio.git
[1/60073] Fetching swift-nio
Fetched https://github.com/apple/swift-nio.git (4.31s)
Computing version for https://github.com/Kitura/BlueCryptor.git
Computed https://github.com/Kitura/BlueCryptor.git at 1.0.200 (0.32s)
Fetching https://github.com/Kitura/OpenSSL.git
[1/203] Fetching openssl
Fetched https://github.com/Kitura/OpenSSL.git (0.22s)
Computing version for https://github.com/Kitura/Kitura-NIO.git
Computed https://github.com/Kitura/Kitura-NIO.git at 2.4.200 (0.30s)
Fetching https://github.com/Kitura/LoggerAPI.git
Fetching https://github.com/Kitura/BlueSSLService.git
Fetching https://github.com/apple/swift-nio-extras.git
[1/771] Fetching loggerapi
[772/5274] Fetching loggerapi, swift-nio-extras
[1133/7362] Fetching loggerapi, swift-nio-extras, bluesslservice
Fetched https://github.com/Kitura/LoggerAPI.git (0.27s)
Fetching https://github.com/apple/swift-nio-ssl.git
[6501/6591] Fetching swift-nio-extras, bluesslservice
Fetched https://github.com/Kitura/BlueSSLService.git (0.35s)
Fetched https://github.com/apple/swift-nio-extras.git (0.36s)
[1/11302] Fetching swift-nio-ssl
Fetched https://github.com/apple/swift-nio-ssl.git (1.64s)
Computing version for https://github.com/Kitura/LoggerAPI.git
Computed https://github.com/Kitura/LoggerAPI.git at 1.9.200 (0.30s)
Fetching https://github.com/apple/swift-log.git
[1/3079] Fetching swift-log
Fetched https://github.com/apple/swift-log.git (0.56s)
Computing version for https://github.com/Kitura/BlueSSLService.git
Computed https://github.com/Kitura/BlueSSLService.git at 1.0.200 (0.31s)
Fetching https://github.com/Kitura/BlueSocket.git
[1/2942] Fetching bluesocket
Fetched https://github.com/Kitura/BlueSocket.git (0.42s)
Computing version for https://github.com/Kitura/BlueSocket.git
Computed https://github.com/Kitura/BlueSocket.git at 1.0.200 (0.29s)
Computing version for https://github.com/Kitura/OpenSSL.git
Computed https://github.com/Kitura/OpenSSL.git at 2.3.1 (1.08s)
Computing version for https://github.com/apple/swift-log.git
Computed https://github.com/apple/swift-log.git at 1.5.2 (0.30s)
Computing version for https://github.com/apple/swift-nio-extras.git
Computed https://github.com/apple/swift-nio-extras.git at 1.19.0 (0.40s)
Computing version for https://github.com/apple/swift-nio.git
Computed https://github.com/apple/swift-nio.git at 2.54.0 (0.50s)
Fetching https://github.com/apple/swift-collections.git
Fetching https://github.com/apple/swift-atomics.git
[1/11270] Fetching swift-collections
[903/12315] Fetching swift-collections, swift-atomics
Fetched https://github.com/apple/swift-atomics.git (0.41s)
[3043/11270] Fetching swift-collections
Fetched https://github.com/apple/swift-collections.git (0.90s)
Computing version for https://github.com/apple/swift-atomics.git
Computed https://github.com/apple/swift-atomics.git at 1.1.0 (0.33s)
Computing version for https://github.com/apple/swift-collections.git
Computed https://github.com/apple/swift-collections.git at 1.0.4 (0.31s)
Computing version for https://github.com/apple/swift-nio-ssl.git
Computed https://github.com/apple/swift-nio-ssl.git at 2.24.0 (0.37s)
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/LoggerAPI.git
Working copy of https://github.com/Kitura/LoggerAPI.git resolved at 1.9.200
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/apple/swift-nio-ssl.git
Working copy of https://github.com/apple/swift-nio-ssl.git resolved at 2.24.0
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/Kitura/BlueSSLService.git
Working copy of https://github.com/Kitura/BlueSSLService.git resolved at 1.0.200
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/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-atomics.git
Working copy of https://github.com/apple/swift-atomics.git resolved at 1.1.0
Creating working copy for https://github.com/apple/swift-nio.git
Working copy of https://github.com/apple/swift-nio.git resolved at 2.54.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-log.git
Working copy of https://github.com/apple/swift-log.git resolved at 1.5.2
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.19.0
warning: you may be able to install openssl using your system-packager:
    apt-get install openssl libssl-dev
warning: you may be able to install libz using your system-packager:
    apt-get install libz-dev
Building for debugging...
[0/472] Compiling cpu_arm_linux.c
[1/472] Compiling f_string.c
[2/472] Compiling a_bool.c
[2/472] Compiling _AtomicsShims.c
[4/472] Compiling a_i2d_fp.c
[5/472] Compiling a_d2i_fp.c
[6/472] Compiling a_bitstr.c
[7/472] Compiling CNIOWindows shim.c
[8/472] Compiling a_object.c
[9/475] Compiling CNIOWindows WSAStartup.c
[10/492] Compiling CNIOSHA1 c_nio_sha1.c
[11/493] Compiling CNIOLinux liburing_shims.c
[12/517] Compiling CNIOLinux shim.c
[13/517] Compiling CNIOLLHTTP c_nio_http.c
[14/517] Compiling CNIOLLHTTP c_nio_api.c
[15/517] Compiling CNIODarwin shim.c
[16/517] Compiling CNIOLLHTTP c_nio_llhttp.c
[17/517] Compiling CNIOBoringSSLShims shims.c
[18/517] Compiling tls_record.cc
[19/517] Compiling tls_method.cc
[21/517] Emitting module DequeModule
[21/519] Compiling tls13_server.cc
[22/519] Compiling tls13_enc.cc
[23/519] Compiling tls13_client.cc
[24/519] Compiling tls13_both.cc
[26/519] Compiling DequeModule _DequeBuffer.swift
[27/519] Compiling DequeModule _DequeBufferHeader.swift
[28/519] Compiling DequeModule Compatibility.swift
[29/519] Compiling DequeModule Deque+Codable.swift
[30/519] Compiling DequeModule Deque+Collection.swift
[31/519] Compiling DequeModule Deque.swift
[32/519] Compiling DequeModule UnsafeMutableBufferPointer+Utilities.swift
[33/519] Compiling DequeModule Deque+Hashable.swift
[34/519] Compiling Atomics AtomicLazyReference.swift
[35/519] Compiling Atomics HighLevelTypes.swift
[36/519] Compiling DequeModule Deque._UnsafeHandle.swift
[37/519] Compiling DequeModule Deque+CustomStringConvertible.swift
[39/519] Compiling DequeModule Deque+CustomDebugStringConvertible.swift
[40/519] Compiling DequeModule Deque+CustomReflectable.swift
[42/519] Compiling DequeModule Deque+Equatable.swift
[43/519] Compiling DequeModule Deque+ExpressibleByArrayLiteral.swift
[44/519] Compiling DequeModule Deque+Extras.swift
[49/521] Compiling DequeModule _DequeSlot.swift
[50/521] Compiling DequeModule _UnsafeWrappedBuffer.swift
[56/522] Emitting module Atomics
[57/523] Emitting module Logging
[62/523] Compiling t1_enc.cc
[63/523] Wrapping AST for DequeModule for debugging
[64/523] Compiling ssl_x509.cc
[65/523] Compiling ssl_versions.cc
[67/523] Compiling Logging MetadataProvider.swift
[68/523] Compiling Socket SocketProtocols.swift
[69/523] Compiling Socket SocketUtils.swift
[69/523] Compiling ssl_transcript.cc
[70/523] Compiling ssl_stat.cc
[72/523] Compiling _NIODataStructures PriorityQueue.swift
[73/523] Emitting module _NIODataStructures
[74/523] Compiling _NIODataStructures Heap.swift
[76/525] Wrapping AST for _NIODataStructures for debugging
[78/525] Compiling Logging Logging.swift
[79/525] Compiling Logging Locks.swift
[80/525] Compiling Logging LogHandler.swift
[83/527] Compiling Atomics Primitives.native.swift
[84/527] Compiling Atomics Primitives.shims.swift
[84/527] Compiling ssl_privkey.cc
[86/531] Compiling ssl_session.cc
[88/531] Wrapping AST for Logging for debugging
[90/531] Emitting module LoggerAPI
[91/531] Emitting module Socket
[92/531] Compiling Socket Socket.swift
[95/533] Compiling LoggerAPI Logger.swift
[97/535] Compiling ssl_key_share.cc
[98/535] Compiling ssl_file.cc
[99/535] Wrapping AST for LoggerAPI for debugging
[100/535] Wrapping AST for Socket for debugging
error: emit-module command failed with exit code 1 (use -v to see invocation)
[102/538] Emitting module SSLService
<module-includes>:1:10: note: in file included from <module-includes>:1:
#include "shim.h"
         ^
/host/spi-builder-workspace/.build/checkouts/OpenSSL/Sources/OpenSSL/shim.h:20:10: error: 'openssl/conf.h' file not found
#include <openssl/conf.h>
         ^
/host/spi-builder-workspace/.build/checkouts/BlueSSLService/Sources/SSLService/SSLService.swift:25:9: error: could not build C module 'OpenSSL'
        import OpenSSL
               ^
[102/538] Compiling ssl_lib.cc
[103/538] Compiling ssl_buffer.cc
[104/538] Compiling ssl_cipher.cc
[105/538] Compiling ssl_cert.cc
[107/538] Compiling SSLService SSLPointerTricks.swift
<module-includes>:1:10: note: in file included from <module-includes>:1:
#include "shim.h"
         ^
/host/spi-builder-workspace/.build/checkouts/OpenSSL/Sources/OpenSSL/shim.h:20:10: error: 'openssl/conf.h' file not found
#include <openssl/conf.h>
         ^
/host/spi-builder-workspace/.build/checkouts/BlueSSLService/Sources/SSLService/SSLService.swift:25:9: error: could not build C module 'OpenSSL'
        import OpenSSL
               ^
[108/538] Compiling SSLService SSLService.swift
<module-includes>:1:10: note: in file included from <module-includes>:1:
#include "shim.h"
         ^
/host/spi-builder-workspace/.build/checkouts/OpenSSL/Sources/OpenSSL/shim.h:20:10: error: 'openssl/conf.h' file not found
#include <openssl/conf.h>
         ^
/host/spi-builder-workspace/.build/checkouts/BlueSSLService/Sources/SSLService/SSLService.swift:25:9: error: could not build C module 'OpenSSL'
        import OpenSSL
               ^
error: fatalError
[108/538] Compiling s3_pkt.cc
[108/538] Compiling handshake_server.cc
[108/538] Compiling ssl_aead_ctx.cc
[108/538] Compiling handshake_client.cc
[108/538] Compiling s3_both.cc
[108/538] Compiling ssl_asn1.cc
[108/538] Compiling s3_lib.cc
BUILD FAILURE 5.9 linux

Build Machine: Linux 2