The Swift Package Index logo.Swift Package Index

Build Information

Failed to build SwiftECC with Swift 5.9 for Linux.

Build Command

bash -c docker run --rm -v "checkouts-4609320-0":/host -w "$workDir" registry.gitlab.com/finestructure/spi-images:basic-5.9-latest swift build 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.29.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/leif-ibsen/SwiftECC.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/leif-ibsen/SwiftECC
 * branch            master     -> FETCH_HEAD
 * [new branch]      master     -> origin/master
HEAD is now at 0efa7ee Release 5.3.0
Cloned https://github.com/leif-ibsen/SwiftECC.git
Revision (git rev-parse @):
0efa7eed9eeedb93e6d42bc4a18a40ef5c1ef2d0
SUCCESS checkout https://github.com/leif-ibsen/SwiftECC.git at master
========================================
Build
========================================
Selected platform:         linux
Swift version:             5.9
Building package at path:  $workDir
https://github.com/leif-ibsen/SwiftECC.git
Running build ...
bash -c docker run --rm -v "checkouts-4609320-0":/host -w "$workDir" registry.gitlab.com/finestructure/spi-images:basic-5.9-latest swift build 2>&1
Fetching https://github.com/leif-ibsen/Digest
Fetching https://github.com/leif-ibsen/BigInt
Fetching https://github.com/leif-ibsen/ASN1
[1/670] Fetching digest
[504/2364] Fetching digest, asn1
[1840/4799] Fetching digest, asn1, bigint
Fetched https://github.com/leif-ibsen/Digest (0.30s)
[2230/4129] Fetching asn1, bigint
Fetched https://github.com/leif-ibsen/ASN1 (0.36s)
[1535/2435] Fetching bigint
Fetched https://github.com/leif-ibsen/BigInt (0.52s)
Computing version for https://github.com/leif-ibsen/Digest
Computed https://github.com/leif-ibsen/Digest at 1.4.0 (0.32s)
Computing version for https://github.com/leif-ibsen/BigInt
Computed https://github.com/leif-ibsen/BigInt at 1.16.0 (0.33s)
Computing version for https://github.com/leif-ibsen/ASN1
Computed https://github.com/leif-ibsen/ASN1 at 2.5.0 (1.13s)
Creating working copy for https://github.com/leif-ibsen/ASN1
Working copy of https://github.com/leif-ibsen/ASN1 resolved at 2.5.0
Creating working copy for https://github.com/leif-ibsen/BigInt
Working copy of https://github.com/leif-ibsen/BigInt resolved at 1.16.0
Creating working copy for https://github.com/leif-ibsen/Digest
Working copy of https://github.com/leif-ibsen/Digest resolved at 1.4.0
Building for debugging...
[1/19] Emitting module Digest
[2/20] Compiling Digest SHAKE.swift
[3/20] Compiling BigInt FFT.swift
[4/21] Compiling BigInt CRT.swift
[5/21] Compiling BigInt ExpMod.swift
[6/21] Compiling BigInt Factorial.swift
[7/21] Compiling Digest XOF.swift
[8/21] Compiling BigInt BitSieve.swift
[9/21] Compiling BigInt BurnikelZiegler.swift
[10/21] Compiling BigInt Karatsuba.swift
[11/21] Compiling BigInt Limbs.swift
[12/21] Compiling Digest SHA3.swift
[13/21] Compiling BigInt ToomCook.swift
[14/21] Compiling Digest KDF.swift
[15/21] Compiling Digest SHA1.swift
[16/21] Compiling Digest MD.swift
[17/21] Compiling Digest HMAC.swift
[18/21] Compiling Digest SHA2.swift
[21/23] Emitting module BigInt
[22/23] Compiling BigInt BigFrac.swift
/host/spi-builder-workspace/.build/checkouts/BigInt/Sources/BigInt/BigInt.swift:1695:15: error: cannot find 'SecRandomCopyBytes' in scope
        guard SecRandomCopyBytes(kSecRandomDefault, bytes.count, &bytes) == errSecSuccess else {
              ^~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/BigInt/Sources/BigInt/BigInt.swift:1695:34: error: cannot find 'kSecRandomDefault' in scope
        guard SecRandomCopyBytes(kSecRandomDefault, bytes.count, &bytes) == errSecSuccess else {
                                 ^~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/BigInt/Sources/BigInt/BigInt.swift:1695:77: error: cannot find 'errSecSuccess' in scope
        guard SecRandomCopyBytes(kSecRandomDefault, bytes.count, &bytes) == errSecSuccess else {
                                                                            ^~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/BigInt/Sources/BigInt/BigInt.swift:1701:15: error: cannot find 'SecRandomCopyBytes' in scope
        guard SecRandomCopyBytes(kSecRandomDefault, 8 * limbs.count, &limbs) == errSecSuccess else {
              ^~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/BigInt/Sources/BigInt/BigInt.swift:1701:34: error: cannot find 'kSecRandomDefault' in scope
        guard SecRandomCopyBytes(kSecRandomDefault, 8 * limbs.count, &limbs) == errSecSuccess else {
                                 ^~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/BigInt/Sources/BigInt/BigInt.swift:1701:81: error: cannot find 'errSecSuccess' in scope
        guard SecRandomCopyBytes(kSecRandomDefault, 8 * limbs.count, &limbs) == errSecSuccess else {
                                                                                ^~~~~~~~~~~~~
[23/23] Compiling BigInt BigInt.swift
/host/spi-builder-workspace/.build/checkouts/BigInt/Sources/BigInt/BigInt.swift:1695:15: error: cannot find 'SecRandomCopyBytes' in scope
        guard SecRandomCopyBytes(kSecRandomDefault, bytes.count, &bytes) == errSecSuccess else {
              ^~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/BigInt/Sources/BigInt/BigInt.swift:1695:34: error: cannot find 'kSecRandomDefault' in scope
        guard SecRandomCopyBytes(kSecRandomDefault, bytes.count, &bytes) == errSecSuccess else {
                                 ^~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/BigInt/Sources/BigInt/BigInt.swift:1695:77: error: cannot find 'errSecSuccess' in scope
        guard SecRandomCopyBytes(kSecRandomDefault, bytes.count, &bytes) == errSecSuccess else {
                                                                            ^~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/BigInt/Sources/BigInt/BigInt.swift:1701:15: error: cannot find 'SecRandomCopyBytes' in scope
        guard SecRandomCopyBytes(kSecRandomDefault, 8 * limbs.count, &limbs) == errSecSuccess else {
              ^~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/BigInt/Sources/BigInt/BigInt.swift:1701:34: error: cannot find 'kSecRandomDefault' in scope
        guard SecRandomCopyBytes(kSecRandomDefault, 8 * limbs.count, &limbs) == errSecSuccess else {
                                 ^~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/BigInt/Sources/BigInt/BigInt.swift:1701:81: error: cannot find 'errSecSuccess' in scope
        guard SecRandomCopyBytes(kSecRandomDefault, 8 * limbs.count, &limbs) == errSecSuccess else {
                                                                                ^~~~~~~~~~~~~
error: fatalError
[0/1] Planning build
Building for debugging...
[1/3] Emitting module BigInt
[2/3] Compiling BigInt BigFrac.swift
[3/3] Compiling BigInt BigInt.swift
/host/spi-builder-workspace/.build/checkouts/BigInt/Sources/BigInt/BigInt.swift:1695:15: error: cannot find 'SecRandomCopyBytes' in scope
        guard SecRandomCopyBytes(kSecRandomDefault, bytes.count, &bytes) == errSecSuccess else {
              ^~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/BigInt/Sources/BigInt/BigInt.swift:1695:34: error: cannot find 'kSecRandomDefault' in scope
        guard SecRandomCopyBytes(kSecRandomDefault, bytes.count, &bytes) == errSecSuccess else {
                                 ^~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/BigInt/Sources/BigInt/BigInt.swift:1695:77: error: cannot find 'errSecSuccess' in scope
        guard SecRandomCopyBytes(kSecRandomDefault, bytes.count, &bytes) == errSecSuccess else {
                                                                            ^~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/BigInt/Sources/BigInt/BigInt.swift:1701:15: error: cannot find 'SecRandomCopyBytes' in scope
        guard SecRandomCopyBytes(kSecRandomDefault, 8 * limbs.count, &limbs) == errSecSuccess else {
              ^~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/BigInt/Sources/BigInt/BigInt.swift:1701:34: error: cannot find 'kSecRandomDefault' in scope
        guard SecRandomCopyBytes(kSecRandomDefault, 8 * limbs.count, &limbs) == errSecSuccess else {
                                 ^~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/BigInt/Sources/BigInt/BigInt.swift:1701:81: error: cannot find 'errSecSuccess' in scope
        guard SecRandomCopyBytes(kSecRandomDefault, 8 * limbs.count, &limbs) == errSecSuccess else {
                                                                                ^~~~~~~~~~~~~
[4/12] Compiling BigInt ToomCook.swift
[5/12] Compiling BigInt BitSieve.swift
[6/12] Compiling BigInt BurnikelZiegler.swift
[7/12] Compiling BigInt ExpMod.swift
[8/12] Compiling BigInt CRT.swift
[9/12] Compiling BigInt FFT.swift
[10/12] Compiling BigInt Factorial.swift
[11/12] Compiling BigInt Karatsuba.swift
[12/12] Compiling BigInt Limbs.swift
error: fatalError
BUILD FAILURE 5.9 linux

Build Machine: Linux 2