Build Information
Failed to build Secp256k1Swift with Swift 5.9 for Linux.
Build Command
docker run --rm -v "checkouts-4606859-1":/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/lanfordcai/secp256k1swift.git
Reference: 0.1.2
Cloned https://github.com/lanfordcai/secp256k1swift.git into spi-builder-workspace
SUCCESS checkout https://github.com/lanfordcai/secp256k1swift.git at 0.1.2
========================================
Build
========================================
Selected platform: linux
Swift version: 5.9
Building package at path: spi-builder-workspace
Running build ...
docker run --rm -v "checkouts-4606859-1":/host -w "/host/spi-builder-workspace" registry.gitlab.com/finestructure/spi-images:basic-5.9-latest swift build 2>&1
Fetching https://github.com/behrang/YamlSwift.git
Fetching https://github.com/LanfordCai/secp256k1.swift.git
[1/1384] Fetching yamlswift
[818/1792] Fetching yamlswift, secp256k1.swift
Fetched https://github.com/LanfordCai/secp256k1.swift.git (0.23s)
Fetched https://github.com/behrang/YamlSwift.git (0.23s)
Computing version for https://github.com/behrang/YamlSwift.git
Computed https://github.com/behrang/YamlSwift.git at 3.4.4 (0.89s)
Computing version for https://github.com/LanfordCai/secp256k1.swift.git
Computed https://github.com/LanfordCai/secp256k1.swift.git at 0.2.0 (0.28s)
Creating working copy for https://github.com/LanfordCai/secp256k1.swift.git
Working copy of https://github.com/LanfordCai/secp256k1.swift.git resolved at 0.2.0
Creating working copy for https://github.com/behrang/YamlSwift.git
Working copy of https://github.com/behrang/YamlSwift.git resolved at 3.4.4
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/3] Compiling lax_der_parsing.c
[1/3] Compiling lax_der_privatekey_parsing.c
[2/3] Compiling secp256k1.c
[4/5] Compiling secp256k1 Exporter.swift
[5/5] Emitting module secp256k1
[8/10] Compiling Secp256k1Swift Array+Extension.swift
[9/10] Emitting module Secp256k1Swift
[10/10] Compiling Secp256k1Swift Secp256k1Swift.swift
/host/spi-builder-workspace/Sources/Secp256k1Swift/Secp256k1Swift.swift:64:22: error: cannot find 'SecRandomCopyBytes' in scope
let status = SecRandomCopyBytes(kSecRandomDefault, privkey.count, &privkey)
^~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Secp256k1Swift/Secp256k1Swift.swift:64:41: error: cannot find 'kSecRandomDefault' in scope
let status = SecRandomCopyBytes(kSecRandomDefault, privkey.count, &privkey)
^~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Secp256k1Swift/Secp256k1Swift.swift:65:25: error: cannot find 'errSecSuccess' in scope
guard status == errSecSuccess,
^~~~~~~~~~~~~
error: fatalError
BUILD FAILURE 5.9 linux
Build Machine: Linux 1