The Swift Package Index logo.Swift Package Index

Build Information

Failed to build BitcoinKit with Swift 5.10 for Linux.

Build Command

bash -c docker run --rm -v "checkouts-4606859-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/yenom/BitcoinKit.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/yenom/BitcoinKit
 * branch            master     -> FETCH_HEAD
 * [new branch]      master     -> origin/master
HEAD is now at 74bd764 Merge pull request #236 from yenom/update-documents
Cloned https://github.com/yenom/BitcoinKit.git
Revision (git rev-parse @):
74bd7642dfb3f6af6baf242c7bb084af6ee3ae1b
SUCCESS checkout https://github.com/yenom/BitcoinKit.git at master
========================================
Build
========================================
Selected platform:         linux
Swift version:             5.10
Building package at path:  $workDir
https://github.com/yenom/BitcoinKit.git
Running build ...
bash -c docker run --rm -v "checkouts-4606859-1":/host -w "$workDir" registry.gitlab.com/finestructure/spi-images:basic-5.10-latest swift build 2>&1
Fetching https://github.com/vapor/debugging.git
Fetching https://github.com/vapor-community/copenssl.git
Fetching https://github.com/vapor-community/random.git
Fetching https://github.com/vapor/bits.git
Fetching https://github.com/Boilertalk/secp256k1.swift
Fetching https://github.com/vapor/core.git
[1/358] Fetching bits
[141/392] Fetching bits, copenssl
[390/20535] Fetching bits, copenssl, core
[1801/20795] Fetching bits, copenssl, core, debugging
[2866/21575] Fetching bits, copenssl, core, debugging, secp256k1.swift
[4898/21723] Fetching bits, copenssl, core, debugging, secp256k1.swift, random
Fetched https://github.com/Boilertalk/secp256k1.swift from cache (0.29s)
[10264/20943] Fetching bits, copenssl, core, debugging, random
Fetched https://github.com/vapor-community/random.git from cache (0.74s)
Fetched https://github.com/vapor-community/copenssl.git from cache (0.74s)
Fetched https://github.com/vapor/bits.git from cache (0.74s)
Computing version for https://github.com/vapor-community/random.git
Fetched https://github.com/vapor/debugging.git from cache (0.74s)
Fetched https://github.com/vapor/core.git from cache (0.75s)
Computed https://github.com/vapor-community/random.git at 1.2.0 (1.08s)
Computing version for https://github.com/Boilertalk/secp256k1.swift
Computed https://github.com/Boilertalk/secp256k1.swift at 0.1.4 (0.39s)
Computing version for https://github.com/vapor-community/copenssl.git
Computed https://github.com/vapor-community/copenssl.git at 1.0.0-rc.1 (0.43s)
Computing version for https://github.com/vapor/core.git
Computed https://github.com/vapor/core.git at 2.2.1 (0.46s)
Computing version for https://github.com/vapor/debugging.git
Computed https://github.com/vapor/debugging.git at 1.1.1 (0.42s)
Computing version for https://github.com/vapor/bits.git
Computed https://github.com/vapor/bits.git at 1.1.1 (0.41s)
Creating working copy for https://github.com/Boilertalk/secp256k1.swift
Working copy of https://github.com/Boilertalk/secp256k1.swift resolved at 0.1.4
Creating working copy for https://github.com/vapor/core.git
Working copy of https://github.com/vapor/core.git resolved at 2.2.1
Creating working copy for https://github.com/vapor/bits.git
Working copy of https://github.com/vapor/bits.git resolved at 1.1.1
Creating working copy for https://github.com/vapor-community/copenssl.git
Working copy of https://github.com/vapor-community/copenssl.git resolved at 1.0.0-rc.1
Creating working copy for https://github.com/vapor/debugging.git
Working copy of https://github.com/vapor/debugging.git resolved at 1.1.1
Creating working copy for https://github.com/vapor-community/random.git
Working copy of https://github.com/vapor-community/random.git resolved at 1.2.0
warning: 'copenssl': ignoring declared target(s) 'COpenSSL' in the system package
warning: 'secp256k1.swift': Invalid Source '/host/spi-builder-workspace/.build/checkouts/secp256k1.swift/secp256k1/Classes/secp256k1/modules/ecdh': File not found.
warning: 'secp256k1.swift': Invalid Source '/host/spi-builder-workspace/.build/checkouts/secp256k1.swift/secp256k1/Classes/secp256k1/modules/recovery': File not found.
Building for debugging...
[0/12] Write sources
[8/12] Compiling lax_der_privatekey_parsing.c
[9/12] Compiling lax_der_parsing.c
[10/12] Write swift-version-24593BA9C3E375BF.txt
[11/34] Compiling secp256k1.c
[13/36] Emitting module Bits
[14/38] Emitting module Debugging
[15/38] Compiling Debugging Debuggable.swift
[17/39] Compiling Bits UnsignedInteger+BytesConvertible.swift
[18/39] Compiling Bits UnsignedInteger+Shifting.swift
[19/39] Emitting module secp256k1
[20/39] Compiling secp256k1 Exporter.swift
[21/40] Compiling Bits Operators.swift
[22/40] Compiling Bits String+BytesConvertible.swift
[24/42] Compiling Bits Bytes+Base64.swift
[25/42] Compiling Bits Bytes+Hex.swift
[26/42] Compiling Bits Byte+ControlCharacters.swift
[27/42] Compiling Bits Byte+Convenience.swift
[28/42] Compiling Bits Byte+PatternMatching.swift
[29/42] Compiling Bits Aliases.swift
[30/42] Compiling Bits Base64Encoder.swift
[31/42] Compiling Bits Byte+Alphabet.swift
[32/42] Compiling Bits Byte+Random.swift
[33/42] Compiling Bits Byte+UTF8Numbers.swift
[34/42] Compiling Bits ByteSequence+Conversions.swift
[35/42] Emitting module libc
[36/42] Compiling libc libc.swift
[37/43] Compiling Bits Data+BytesConvertible.swift
[38/43] Compiling Bits HexEncoder.swift
[40/43] Compiling Bits Bytes+Percent.swift
[41/43] Compiling Bits BytesConvertible.swift
[43/66] Emitting module Core
[44/68] Compiling Core Result.swift
[45/68] Compiling Core Semaphore.swift
[46/68] Compiling Core Sequence.swift
[47/68] Compiling Core String.swift
[48/68] Compiling Core WorkingDirectory.swift
[49/68] Compiling Core Collection+Safe.swift
[50/68] Compiling Core DataFile.swift
[51/68] Compiling Core Dispatch.swift
[52/68] Compiling Core Lock.swift
[53/68] Compiling Core Portal.swift
[54/68] Compiling Core RFC1123.swift
[55/68] Compiling Core Array.swift
[56/68] Compiling Core Bits.swift
[57/68] Compiling Core Cache.swift
[58/68] Compiling Core StaticDataBuffer.swift
[59/68] Compiling Core String+CaseInsensitiveCompare.swift
[60/68] Compiling Core String+Polymorphic.swift
[61/68] Compiling Core DispatchTime+Utilities.swift
[62/68] Compiling Core EmptyInitializable.swift
[63/68] Compiling Core Exports.swift
[64/68] Compiling Core Extendable.swift
[65/68] Compiling Core FileProtocol.swift
[66/68] Compiling Core Int+Hex.swift
[68/76] Emitting module BitcoinKitPrivate
[69/76] Compiling BitcoinKitPrivate BitcoinKit.Private.swift
/host/spi-builder-workspace/Sources/BitcoinKitPrivate/BitcoinKit.Private.swift:38:13: warning: 'RIPEMD160' is deprecated
            RIPEMD160(ptr.bindMemory(to: UInt8.self).baseAddress.unsafelyUnwrapped,
            ^
/host/spi-builder-workspace/Sources/BitcoinKitPrivate/BitcoinKit.Private.swift:79:19: warning: 'EC_KEY_new_by_curve_name' is deprecated
        let key = EC_KEY_new_by_curve_name(NID_secp256k1)
                  ^
/host/spi-builder-workspace/Sources/BitcoinKitPrivate/BitcoinKit.Private.swift:81:13: warning: 'EC_KEY_free' is deprecated
            EC_KEY_free(key)
            ^
/host/spi-builder-workspace/Sources/BitcoinKitPrivate/BitcoinKit.Private.swift:83:21: warning: 'EC_KEY_get0_group' is deprecated
        let group = EC_KEY_get0_group(key)
                    ^
/host/spi-builder-workspace/Sources/BitcoinKitPrivate/BitcoinKit.Private.swift:104:9: warning: 'EC_KEY_set_private_key' is deprecated
        EC_KEY_set_private_key(key, prv)
        ^
/host/spi-builder-workspace/Sources/BitcoinKitPrivate/BitcoinKit.Private.swift:105:9: warning: 'EC_KEY_set_public_key' is deprecated
        EC_KEY_set_public_key(key, pub)
        ^
/host/spi-builder-workspace/Sources/BitcoinKitPrivate/BitcoinKit.Private.swift:108:13: warning: 'EC_KEY_set_conv_form' is deprecated
            EC_KEY_set_conv_form(key, POINT_CONVERSION_COMPRESSED)
            ^
/host/spi-builder-workspace/Sources/BitcoinKitPrivate/BitcoinKit.Private.swift:110:26: warning: 'i2o_ECPublicKey' is deprecated
            let length = i2o_ECPublicKey(key, &ptr)
                         ^
/host/spi-builder-workspace/Sources/BitcoinKitPrivate/BitcoinKit.Private.swift:118:13: warning: 'EC_POINT_point2bn' is deprecated
            EC_POINT_point2bn(group, pub, POINT_CONVERSION_UNCOMPRESSED, n, ctx)
            ^
/host/spi-builder-workspace/Sources/BitcoinKitPrivate/BitcoinKit.Private.swift:182:21: warning: initialization of 'UnsafeBufferPointer<UInt32>' results in a dangling buffer pointer
        data.append(UnsafeBufferPointer(start: &childIndex, count: 1))
                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/BitcoinKitPrivate/BitcoinKit.Private.swift:182:48: note: implicit argument conversion from 'UInt32' to 'UnsafePointer<UInt32>?' produces a pointer valid only for the duration of the call to 'init(start:count:)'
        data.append(UnsafeBufferPointer(start: &childIndex, count: 1))
                                               ^~~~~~~~~~~
/host/spi-builder-workspace/Sources/BitcoinKitPrivate/BitcoinKit.Private.swift:182:48: note: use 'withUnsafePointer' in order to explicitly convert argument to pointer valid for a defined scope
        data.append(UnsafeBufferPointer(start: &childIndex, count: 1))
                                               ^
/host/spi-builder-workspace/Sources/BitcoinKitPrivate/BitcoinKit.Private.swift:231:30: error: value of type 'OpaquePointer' has no member 'pointee'
            if privateKeyNum.pointee.top == 0 { // BN_is_zero
               ~~~~~~~~~~~~~ ^~~~~~~
/host/spi-builder-workspace/Sources/BitcoinKitPrivate/BitcoinKit.Private.swift:266:13: warning: 'EC_POINT_bn2point' is deprecated
            EC_POINT_bn2point(group, publicKeyNum, point, ctx)
            ^
/host/spi-builder-workspace/Sources/BitcoinKitPrivate/BitcoinKit.Private.swift:277:13: warning: 'EC_POINT_point2bn' is deprecated
            EC_POINT_point2bn(group, point, POINT_CONVERSION_COMPRESSED, n, ctx)
            ^
/host/spi-builder-workspace/Sources/BitcoinKitPrivate/BitcoinKit.Private.swift:432:9: warning: 'EC_POINT_set_affine_coordinates_GFp' is deprecated
        EC_POINT_set_affine_coordinates_GFp(group, point, point_x, point_y, ctx)
        ^
/host/spi-builder-workspace/Sources/BitcoinKitPrivate/BitcoinKit.Private.swift:442:9: warning: 'EC_POINT_point2bn' is deprecated
        EC_POINT_point2bn(group, point_result_of_ec_multiplication, POINT_CONVERSION_UNCOMPRESSED, new_point_x_and_y_as_single_bn, ctx)
        ^
/host/spi-builder-workspace/Sources/BitcoinKitPrivate/BitcoinKit.Private.swift:475:9: warning: 'EC_POINT_point2bn' is deprecated
        EC_POINT_point2bn(group, point, POINT_CONVERSION_UNCOMPRESSED, new_point_x_and_y_as_single_bn, ctx)
        ^
error: fatalError
warning: 'copenssl': ignoring declared target(s) 'COpenSSL' in the system package
warning: 'secp256k1.swift': Invalid Source '/host/spi-builder-workspace/.build/checkouts/secp256k1.swift/secp256k1/Classes/secp256k1/modules/ecdh': File not found.
warning: 'secp256k1.swift': Invalid Source '/host/spi-builder-workspace/.build/checkouts/secp256k1.swift/secp256k1/Classes/secp256k1/modules/recovery': File not found.
[0/1] Planning build
Building for debugging...
[0/1] Write swift-version-24593BA9C3E375BF.txt
[2/10] Compiling Random EmptyInitializable.swift
[3/10] Compiling Random RandomProtocol.swift
[4/10] Compiling Random OSRandom.swift
[5/10] Compiling Random Exports.swift
[6/10] Compiling Random Array+Random.swift
[7/10] Emitting module Random
[8/10] Compiling Random URandom.swift
[9/11] Emitting module BitcoinKitPrivate
[10/11] Compiling BitcoinKitPrivate BitcoinKit.Private.swift
/host/spi-builder-workspace/Sources/BitcoinKitPrivate/BitcoinKit.Private.swift:38:13: warning: 'RIPEMD160' is deprecated
            RIPEMD160(ptr.bindMemory(to: UInt8.self).baseAddress.unsafelyUnwrapped,
            ^
/host/spi-builder-workspace/Sources/BitcoinKitPrivate/BitcoinKit.Private.swift:79:19: warning: 'EC_KEY_new_by_curve_name' is deprecated
        let key = EC_KEY_new_by_curve_name(NID_secp256k1)
                  ^
/host/spi-builder-workspace/Sources/BitcoinKitPrivate/BitcoinKit.Private.swift:81:13: warning: 'EC_KEY_free' is deprecated
            EC_KEY_free(key)
            ^
/host/spi-builder-workspace/Sources/BitcoinKitPrivate/BitcoinKit.Private.swift:83:21: warning: 'EC_KEY_get0_group' is deprecated
        let group = EC_KEY_get0_group(key)
                    ^
/host/spi-builder-workspace/Sources/BitcoinKitPrivate/BitcoinKit.Private.swift:104:9: warning: 'EC_KEY_set_private_key' is deprecated
        EC_KEY_set_private_key(key, prv)
        ^
/host/spi-builder-workspace/Sources/BitcoinKitPrivate/BitcoinKit.Private.swift:105:9: warning: 'EC_KEY_set_public_key' is deprecated
        EC_KEY_set_public_key(key, pub)
        ^
/host/spi-builder-workspace/Sources/BitcoinKitPrivate/BitcoinKit.Private.swift:108:13: warning: 'EC_KEY_set_conv_form' is deprecated
            EC_KEY_set_conv_form(key, POINT_CONVERSION_COMPRESSED)
            ^
/host/spi-builder-workspace/Sources/BitcoinKitPrivate/BitcoinKit.Private.swift:110:26: warning: 'i2o_ECPublicKey' is deprecated
            let length = i2o_ECPublicKey(key, &ptr)
                         ^
/host/spi-builder-workspace/Sources/BitcoinKitPrivate/BitcoinKit.Private.swift:118:13: warning: 'EC_POINT_point2bn' is deprecated
            EC_POINT_point2bn(group, pub, POINT_CONVERSION_UNCOMPRESSED, n, ctx)
            ^
/host/spi-builder-workspace/Sources/BitcoinKitPrivate/BitcoinKit.Private.swift:182:21: warning: initialization of 'UnsafeBufferPointer<UInt32>' results in a dangling buffer pointer
        data.append(UnsafeBufferPointer(start: &childIndex, count: 1))
                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/BitcoinKitPrivate/BitcoinKit.Private.swift:182:48: note: implicit argument conversion from 'UInt32' to 'UnsafePointer<UInt32>?' produces a pointer valid only for the duration of the call to 'init(start:count:)'
        data.append(UnsafeBufferPointer(start: &childIndex, count: 1))
                                               ^~~~~~~~~~~
/host/spi-builder-workspace/Sources/BitcoinKitPrivate/BitcoinKit.Private.swift:182:48: note: use 'withUnsafePointer' in order to explicitly convert argument to pointer valid for a defined scope
        data.append(UnsafeBufferPointer(start: &childIndex, count: 1))
                                               ^
/host/spi-builder-workspace/Sources/BitcoinKitPrivate/BitcoinKit.Private.swift:231:30: error: value of type 'OpaquePointer' has no member 'pointee'
            if privateKeyNum.pointee.top == 0 { // BN_is_zero
               ~~~~~~~~~~~~~ ^~~~~~~
/host/spi-builder-workspace/Sources/BitcoinKitPrivate/BitcoinKit.Private.swift:266:13: warning: 'EC_POINT_bn2point' is deprecated
            EC_POINT_bn2point(group, publicKeyNum, point, ctx)
            ^
/host/spi-builder-workspace/Sources/BitcoinKitPrivate/BitcoinKit.Private.swift:277:13: warning: 'EC_POINT_point2bn' is deprecated
            EC_POINT_point2bn(group, point, POINT_CONVERSION_COMPRESSED, n, ctx)
            ^
/host/spi-builder-workspace/Sources/BitcoinKitPrivate/BitcoinKit.Private.swift:432:9: warning: 'EC_POINT_set_affine_coordinates_GFp' is deprecated
        EC_POINT_set_affine_coordinates_GFp(group, point, point_x, point_y, ctx)
        ^
/host/spi-builder-workspace/Sources/BitcoinKitPrivate/BitcoinKit.Private.swift:442:9: warning: 'EC_POINT_point2bn' is deprecated
        EC_POINT_point2bn(group, point_result_of_ec_multiplication, POINT_CONVERSION_UNCOMPRESSED, new_point_x_and_y_as_single_bn, ctx)
        ^
/host/spi-builder-workspace/Sources/BitcoinKitPrivate/BitcoinKit.Private.swift:475:9: warning: 'EC_POINT_point2bn' is deprecated
        EC_POINT_point2bn(group, point, POINT_CONVERSION_UNCOMPRESSED, new_point_x_and_y_as_single_bn, ctx)
        ^
error: fatalError
BUILD FAILURE 5.10 linux

Build Machine: Linux 1