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-0":/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: v1.1.0
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
 * tag               v1.1.0     -> FETCH_HEAD
HEAD is now at 5f1fe92 :rocket: Update posepc version to 1.1.0
Cloned https://github.com/yenom/BitcoinKit.git
Revision (git rev-parse @):
5f1fe9253071aeb845fa1cc40a338f32c6e34a66
SUCCESS checkout https://github.com/yenom/BitcoinKit.git at v1.1.0
========================================
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-0":/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/Boilertalk/secp256k1.swift
Fetching https://github.com/vapor-community/copenssl.git
Fetching https://github.com/vapor/core.git
Fetching https://github.com/vapor/bits.git
Fetching https://github.com/vapor-community/random.git
[1/358] Fetching bits
[359/392] Fetching bits, copenssl
[389/540] Fetching bits, copenssl, random
[529/1320] Fetching bits, copenssl, random, secp256k1.swift
[592/1580] Fetching bits, copenssl, random, secp256k1.swift, debugging
[953/21723] Fetching bits, copenssl, random, secp256k1.swift, debugging, core
Fetched https://github.com/vapor/bits.git from cache (0.24s)
[2614/21365] Fetching copenssl, random, secp256k1.swift, debugging, core
Fetched https://github.com/vapor-community/copenssl.git from cache (0.73s)
Fetched https://github.com/vapor-community/random.git from cache (0.73s)
Fetched https://github.com/vapor/debugging.git from cache (0.73s)
Fetched https://github.com/Boilertalk/secp256k1.swift from cache (0.73s)
Computing version for https://github.com/vapor-community/random.git
Fetched https://github.com/vapor/core.git from cache (0.74s)
Computed https://github.com/vapor-community/random.git at 1.2.0 (1.94s)
Computing version for https://github.com/Boilertalk/secp256k1.swift
Computed https://github.com/Boilertalk/secp256k1.swift at 0.1.4 (0.41s)
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.57s)
Computing version for https://github.com/vapor/core.git
Computed https://github.com/vapor/core.git at 2.2.1 (0.45s)
Computing version for https://github.com/vapor/debugging.git
Computed https://github.com/vapor/debugging.git at 1.1.1 (0.81s)
Computing version for https://github.com/vapor/bits.git
Computed https://github.com/vapor/bits.git at 1.1.1 (0.40s)
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/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/debugging.git
Working copy of https://github.com/vapor/debugging.git resolved at 1.1.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-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 secp256k1
[15/38] Compiling secp256k1 Exporter.swift
[16/39] Compiling Bits Operators.swift
[17/39] Compiling Bits String+BytesConvertible.swift
[18/39] Compiling Bits UnsignedInteger+BytesConvertible.swift
[19/39] Compiling Bits UnsignedInteger+Shifting.swift
[20/39] Emitting module Debugging
[21/39] Compiling Debugging Debuggable.swift
[24/42] Compiling Bits Data+BytesConvertible.swift
[25/42] Compiling Bits HexEncoder.swift
[26/42] Emitting module libc
[27/42] Compiling libc libc.swift
[28/43] Compiling Bits Aliases.swift
[29/43] Compiling Bits Base64Encoder.swift
[30/43] Compiling Bits Byte+Alphabet.swift
[31/43] Compiling Bits Byte+Random.swift
[32/43] Compiling Bits Byte+UTF8Numbers.swift
[33/43] Compiling Bits ByteSequence+Conversions.swift
[34/43] Compiling Bits Bytes+Base64.swift
[35/43] Compiling Bits Bytes+Hex.swift
[36/43] Compiling Bits Byte+ControlCharacters.swift
[37/43] Compiling Bits Byte+Convenience.swift
[38/43] Compiling Bits Byte+PatternMatching.swift
[39/43] Compiling Bits Bytes+Percent.swift
[40/43] Compiling Bits BytesConvertible.swift
[43/66] Emitting module Core
[44/66] Emitting module BitcoinKitPrivate
[45/68] Compiling Core Result.swift
[46/68] Compiling Core Semaphore.swift
[47/68] Compiling Core Sequence.swift
[48/68] Compiling Core Extendable.swift
[49/68] Compiling Core FileProtocol.swift
[50/68] Compiling Core Int+Hex.swift
[51/68] Compiling Core String.swift
[52/68] Compiling Core WorkingDirectory.swift
[53/68] Compiling Core DispatchTime+Utilities.swift
[54/68] Compiling Core EmptyInitializable.swift
[55/68] Compiling Core Exports.swift
[56/68] Compiling Core Lock.swift
[57/68] Compiling Core Portal.swift
[58/68] Compiling Core RFC1123.swift
[59/68] Compiling Core Array.swift
[60/68] Compiling Core Bits.swift
[61/68] Compiling Core Cache.swift
[62/68] Compiling Core StaticDataBuffer.swift
[63/68] Compiling Core String+CaseInsensitiveCompare.swift
[64/68] Compiling Core String+Polymorphic.swift
[65/68] Compiling Core Collection+Safe.swift
[66/68] Compiling Core DataFile.swift
[67/68] Compiling Core Dispatch.swift
[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 Exports.swift
[3/10] Compiling Random EmptyInitializable.swift
[4/10] Compiling Random Array+Random.swift
[5/10] Compiling Random URandom.swift
[6/10] Emitting module Random
[7/10] Compiling Random RandomProtocol.swift
[8/10] Compiling Random OSRandom.swift
[10/11] Emitting module BitcoinKitPrivate
[11/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