The Swift Package Index logo.Swift Package Index

Build Information

Successful build of secp256k1, reference 0.8.0 (d4f557), with Swift 6.4 for Linux on 15 Oct 2026 22:38:21 UTC.

Swift 6 data race errors: 0

Build Command

bash -c docker run --pull=always --rm -v "checkouts-53886768-0":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/saguaro1/spi-images:linux-6.4-latest swift build --triple x86_64-unknown-linux-gnu 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 5.1.3
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/swift-bitcoin/secp256k1.git
Reference: 0.8.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/swift-bitcoin/secp256k1
 * tag               0.8.0      -> FETCH_HEAD
HEAD is now at d4f5573 Further API annotations
Cloned https://github.com/swift-bitcoin/secp256k1.git
Revision (git rev-parse @):
d4f5573c7ccb4bf386876f5bae4a823fad9efb3e
SUCCESS checkout https://github.com/swift-bitcoin/secp256k1.git at 0.8.0
========================================
Build
========================================
Selected platform:         linux
Swift version:             6.4
Building package at path:  $PWD
https://github.com/swift-bitcoin/secp256k1.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-53886768-0":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/saguaro1/spi-images:linux-6.4-latest swift build --triple x86_64-unknown-linux-gnu 2>&1
linux-6.4-latest: Pulling from saguaro1/spi-images
Digest: sha256:ef1451f51398a5019879493c5c492376e60274346858404d898204a8a77273d4
Status: Image is up to date for registry.gitlab.com/saguaro1/spi-images:linux-6.4-latest
Fetching https://github.com/apple/swift-crypto.git
[1/18642] Fetching swift-crypto
Fetched https://github.com/apple/swift-crypto.git (1.19s)
Computing version for https://github.com/apple/swift-crypto.git
Computed https://github.com/apple/swift-crypto.git at 3.15.1 (2.13s)
Fetching https://github.com/apple/swift-asn1.git
[1/2051] Fetching swift-asn1
Fetched https://github.com/apple/swift-asn1.git (0.39s)
Computing version for https://github.com/apple/swift-asn1.git
Computed https://github.com/apple/swift-asn1.git at 1.7.3 (1.29s)
Creating working copy for https://github.com/apple/swift-crypto.git
Working copy of https://github.com/apple/swift-crypto.git resolved at 3.15.1
Creating working copy for https://github.com/apple/swift-asn1.git
Working copy of https://github.com/apple/swift-asn1.git resolved at 1.7.3
Building for debugging...
[Pre-planning 1 / 212]
[37 / 56] SECP256K1
[44 / 56] exhaustive_tests-product
[46 / 56] exhaustive_tests-product
[49 / 56] SECP256K1
[52 / 56] SECP256K1
[53 / 56] SECP256K1
macro expansion @_SwiftifyImport:27:9: warning: expression uses unsafe constructs but is not marked with 'unsafe' [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/strict-memory-safety\StrictMemorySafety]8;;\]
`- /host/spi-builder-workspace/swift-include/../include/secp256k1.h:899:13: note: expanded code originates here
897 |     secp256k1_pubkey *out,
898 |     const secp256k1_pubkey * const *ins,
899 |     size_t n
    +--- macro expansion @_SwiftifyImport ------------------------------
    |25 |     }
    |26 |     defer {
    |27 |         _fixLifetime(ins)
    |   |         |            |- note: argument #0 in call to global function '_fixLifetime' has unsafe type 'Span<UnsafePointer<Pubkey>?>'
    |   |         |            `- note: reference to parameter 'ins' involves unsafe type 'UnsafePointer<Pubkey>'
    |   |         |- warning: expression uses unsafe constructs but is not marked with 'unsafe' [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/strict-memory-safety\StrictMemorySafety]8;;\]
    |   |         `- note: reference to unsafe type 'Span<UnsafePointer<Pubkey>?>'
    |28 |     }
    |29 |     return unsafe ecPubkeyCombine(out: _outPtr.baseAddress!, ins: _insPtr.baseAddress!, n: n)
    +-------------------------------------------------------------------
900 | ) SECP256K1_ARG_NONNULL(1) SECP256K1_ARG_NONNULL(2) SECP256K1_ARG_NONNULL(3);
901 |
macro expansion @_SwiftifyImport:13:13: warning: expression uses unsafe constructs but is not marked with 'unsafe' [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/strict-memory-safety\StrictMemorySafety]8;;\]
`- /host/spi-builder-workspace/swift-include/../include/secp256k1.h:899:13: note: expanded code originates here
897 |     secp256k1_pubkey *out,
898 |     const secp256k1_pubkey * const *ins,
899 |     size_t n
    +--- macro expansion @_SwiftifyImport ------------------------------
    |11 | @_alwaysEmitIntoClient @available(visionOS 1.0, tvOS 12.2, watchOS 5.2, iOS 12.2, macOS 10.14.4, *) @_lifetime(out: copy out) @_disfavoredOverload
    |12 | public final func ecPubkeyCombine(out: inout MutableSpan<Pubkey>, ins: Span<UnsafePointer<Pubkey>?>) -> Int32 {
    |13 |     let n = ins.count
    |   |             |   `- note: reference to unsafe type 'UnsafePointer<Pubkey>?'
    |   |             |- warning: expression uses unsafe constructs but is not marked with 'unsafe' [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/strict-memory-safety\StrictMemorySafety]8;;\]
    |   |             `- note: reference to parameter 'ins' involves unsafe type 'UnsafePointer<Pubkey>'
    |14 |     if out.count != CInt(1) {
    |15 |       fatalError("bounds check failure in ecPubkeyCombine: expected \(CInt(1)) but got \(out.count)")
    +-------------------------------------------------------------------
900 | ) SECP256K1_ARG_NONNULL(1) SECP256K1_ARG_NONNULL(2) SECP256K1_ARG_NONNULL(3);
901 |
macro expansion @_SwiftifyImport:57:9: warning: expression uses unsafe constructs but is not marked with 'unsafe' [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/strict-memory-safety\StrictMemorySafety]8;;\]
`- /host/spi-builder-workspace/swift-include/../include/secp256k1_schnorrsig.h:154:50: note: expanded code originates here
152 |     size_t msglen,
153 |     const secp256k1_keypair *keypair,
154 |     secp256k1_schnorrsig_extraparams *extraparams
    +--- macro expansion @_SwiftifyImport ------------------------------
    |55 |     }
    |56 |     defer {
    |57 |         _fixLifetime(extraparams)
    |   |         |            |- note: argument #0 in call to global function '_fixLifetime' has unsafe type 'MutableSpan<SchnorrsigExtraparams>?'
    |   |         |            `- note: reference to parameter 'extraparams' involves unsafe type 'SchnorrsigExtraparams'
    |   |         |- warning: expression uses unsafe constructs but is not marked with 'unsafe' [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/strict-memory-safety\StrictMemorySafety]8;;\]
    |   |         `- note: reference to unsafe type 'MutableSpan<SchnorrsigExtraparams>?'
    |58 |     }
    |59 |     return unsafe schnorrsigSignCustom(sig64: _sig64Ptr.baseAddress!, msg: _msgPtr?.baseAddress, msglen: msglen, keypair: _keypairPtr.baseAddress!, extraparams: _extraparamsPtr?.baseAddress)
    +-------------------------------------------------------------------
155 | ) SECP256K1_ARG_NONNULL(1) SECP256K1_ARG_NONNULL(2) SECP256K1_ARG_NONNULL(5);
156 |
macro expansion @_SwiftifyImport:32:32: warning: expression uses unsafe constructs but is not marked with 'unsafe' [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/strict-memory-safety\StrictMemorySafety]8;;\]
`- /host/spi-builder-workspace/swift-include/../include/secp256k1_schnorrsig.h:154:50: note: expanded code originates here
152 |     size_t msglen,
153 |     const secp256k1_keypair *keypair,
154 |     secp256k1_schnorrsig_extraparams *extraparams
    +--- macro expansion @_SwiftifyImport ------------------------------
    |30 |       fatalError("bounds check failure in schnorrsigSignCustom: expected \(CInt(1)) but got \(keypair.count)")
    |31 |     }
    |32 |     if let _extraparamsCount = extraparams?.count, _extraparamsCount != CInt(1) {
    |   |                                |            `- note: reference to unsafe type 'SchnorrsigExtraparams'
    |   |                                |- warning: expression uses unsafe constructs but is not marked with 'unsafe' [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/strict-memory-safety\StrictMemorySafety]8;;\]
    |   |                                `- note: reference to parameter 'extraparams' involves unsafe type 'SchnorrsigExtraparams'
    |33 |       fatalError("bounds check failure in schnorrsigSignCustom: expected \(CInt(1)) but got \(_extraparamsCount)")
    |34 |     }
    +-------------------------------------------------------------------
155 | ) SECP256K1_ARG_NONNULL(1) SECP256K1_ARG_NONNULL(2) SECP256K1_ARG_NONNULL(5);
156 |
macro expansion @_SwiftifyImport:53:27: warning: expression uses unsafe constructs but is not marked with 'unsafe' [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/strict-memory-safety\StrictMemorySafety]8;;\]
`- /host/spi-builder-workspace/swift-include/../include/secp256k1_schnorrsig.h:154:50: note: expanded code originates here
152 |     size_t msglen,
153 |     const secp256k1_keypair *keypair,
154 |     secp256k1_schnorrsig_extraparams *extraparams
    +--- macro expansion @_SwiftifyImport ------------------------------
    |51 |         _fixLifetime(keypair)
    |52 |     }
    |53 |     let _extraparamsPtr = extraparams?.withUnsafeMutableBufferPointer {
    |   |                           |- warning: expression uses unsafe constructs but is not marked with 'unsafe' [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/strict-memory-safety\StrictMemorySafety]8;;\]
    |   |                           `- note: reference to parameter 'extraparams' involves unsafe type 'SchnorrsigExtraparams'
    |54 |         unsafe $0
    |55 |     }
    +-------------------------------------------------------------------
155 | ) SECP256K1_ARG_NONNULL(1) SECP256K1_ARG_NONNULL(2) SECP256K1_ARG_NONNULL(5);
156 |
[#StrictMemorySafety]: <https://docs.swift.org/compiler/documentation/diagnostics/strict-memory-safety>
Build complete! (3.48 secs)
Build complete.
{
  "c_language_standard" : "c90",
  "dependencies" : [
    {
      "identity" : "swift-crypto",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "3.0.0",
            "upper_bound" : "4.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/apple/swift-crypto.git"
    }
  ],
  "manifest_display_name" : "secp256k1",
  "name" : "secp256k1",
  "path" : "/host/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "macos",
      "version" : "27.0"
    }
  ],
  "products" : [
    {
      "name" : "CSECP256K1",
      "targets" : [
        "CSECP256K1"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    },
    {
      "name" : "SECP256K1",
      "targets" : [
        "SECP256K1"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    },
    {
      "name" : "tests",
      "targets" : [
        "tests"
      ],
      "type" : {
        "executable" : null
      }
    },
    {
      "name" : "noverify_tests",
      "targets" : [
        "noverify_tests"
      ],
      "type" : {
        "executable" : null
      }
    },
    {
      "name" : "exhaustive_tests",
      "targets" : [
        "exhaustive_tests"
      ],
      "type" : {
        "executable" : null
      }
    },
    {
      "name" : "bip352-dump",
      "targets" : [
        "bip352-dump"
      ],
      "type" : {
        "executable" : null
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "tests",
      "module_type" : "ClangTarget",
      "name" : "tests",
      "path" : "swift-src/ctest-verify",
      "product_memberships" : [
        "tests"
      ],
      "sources" : [
        "main.c"
      ],
      "type" : "executable"
    },
    {
      "c99name" : "noverify_tests",
      "module_type" : "ClangTarget",
      "name" : "noverify_tests",
      "path" : "swift-src/ctest-noverify",
      "product_memberships" : [
        "noverify_tests"
      ],
      "sources" : [
        "main.c"
      ],
      "type" : "executable"
    },
    {
      "c99name" : "exhaustive_tests",
      "module_type" : "ClangTarget",
      "name" : "exhaustive_tests",
      "path" : "swift-src/ctest-exhaustive",
      "product_memberships" : [
        "exhaustive_tests"
      ],
      "sources" : [
        "main.c"
      ],
      "type" : "executable"
    },
    {
      "c99name" : "bip352_dump",
      "module_type" : "ClangTarget",
      "name" : "bip352-dump",
      "path" : "swift-tools",
      "product_memberships" : [
        "bip352-dump"
      ],
      "sources" : [
        "bip352-dump.c"
      ],
      "type" : "executable"
    },
    {
      "c99name" : "SECP256K1Tests",
      "module_type" : "SwiftTarget",
      "name" : "SECP256K1Tests",
      "path" : "swift-test/SECP256K1Test",
      "product_dependencies" : [
        "Crypto"
      ],
      "sources" : [
        "BIP340Tests.swift",
        "BIP340Vectors.swift",
        "BIP352Tests.swift",
        "PropertyTests.swift",
        "Secp256k1Tests.swift",
        "WycheproofTests.swift"
      ],
      "target_dependencies" : [
        "SECP256K1",
        "CSECP256K1"
      ],
      "type" : "test"
    },
    {
      "c99name" : "SECP256K1",
      "module_type" : "SwiftTarget",
      "name" : "SECP256K1",
      "path" : "swift-src/SECP256K1",
      "product_memberships" : [
        "SECP256K1"
      ],
      "sources" : [
        "Context.swift",
        "ECDH.swift",
        "EllSwift.swift",
        "MuSig.swift",
        "Recovery.swift",
        "Schnorr.swift",
        "Serialization.swift",
        "SilentPayments.swift",
        "Tweaks.swift",
        "Utilities.swift"
      ],
      "target_dependencies" : [
        "CSECP256K1"
      ],
      "type" : "library"
    },
    {
      "c99name" : "Codegen",
      "module_type" : "PluginTarget",
      "name" : "Codegen",
      "path" : "swift-plugins/Codegen",
      "plugin_capability" : {
        "intent" : {
          "description" : "Regenerate API notes and test vectors",
          "type" : "custom",
          "verb" : "codegen"
        },
        "permissions" : [
          {
            "network_scope" : {
              "none" : {
              }
            },
            "reason" : "regenerate the committed generated files",
            "type" : "writeToPackageDirectory"
          }
        ],
        "type" : "command"
      },
      "sources" : [
        "APINotes.swift",
        "BIP340.swift",
        "BIP352.swift",
        "Codegen.swift"
      ],
      "target_dependencies" : [
        "bip352-dump"
      ],
      "type" : "plugin"
    },
    {
      "c99name" : "CSECP256K1",
      "module_type" : "ClangTarget",
      "name" : "CSECP256K1",
      "path" : ".",
      "product_memberships" : [
        "CSECP256K1",
        "SECP256K1"
      ],
      "sources" : [
        "src/precomputed_ecmult.c",
        "src/precomputed_ecmult_gen.c",
        "src/secp256k1.c"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "6.4"
}
linux-6.4-latest: Pulling from saguaro1/spi-images
Digest: sha256:ef1451f51398a5019879493c5c492376e60274346858404d898204a8a77273d4
Status: Image is up to date for registry.gitlab.com/saguaro1/spi-images:linux-6.4-latest
Done.