Build Information
Failed to build secp256k1, reference master (8f80d5), with Swift 6.3 for macOS (SPM) on 11 Apr 2026 07:27:09 UTC.
Build Command
env DEVELOPER_DIR=/Applications/Xcode-26.4.0.app xcrun swift build --arch arm64Build Log
========================================
RunAll
========================================
Builder version: 4.70.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/v57/secp256k1.c.git
Reference: master
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/v57/secp256k1.c
* branch master -> FETCH_HEAD
* [new branch] master -> origin/master
HEAD is now at 8f80d5d Updated Swift Package
Cloned https://github.com/v57/secp256k1.c.git
Revision (git rev-parse @):
8f80d5dd0ce4b00b9c2998c3e56fc6314a33903d
SUCCESS checkout https://github.com/v57/secp256k1.c.git at master
========================================
ResolveProductDependencies
========================================
Resolving dependencies ...
{
"identity": ".resolve-product-dependencies",
"name": "resolve-dependencies",
"url": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies",
"version": "unspecified",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies",
"traits": [
"default"
],
"dependencies": [
{
"identity": "secp256k1.c",
"name": "secp256k1",
"url": "https://github.com/v57/secp256k1.c.git",
"version": "unspecified",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/secp256k1.c",
"traits": [
"default"
],
"dependencies": [
]
}
]
}
Fetching https://github.com/v57/secp256k1.c.git
[1/80] Fetching secp256k1.c
Fetched https://github.com/v57/secp256k1.c.git from cache (0.83s)
Creating working copy for https://github.com/v57/secp256k1.c.git
Working copy of https://github.com/v57/secp256k1.c.git resolved at master (8f80d5d)
warning: '.resolve-product-dependencies': dependency 'secp256k1.c' is not used by any target
Found 0 product dependencies
========================================
Build
========================================
Selected platform: macosSpm
Swift version: 6.3
Building package at path: $PWD
https://github.com/v57/secp256k1.c.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-26.4.0.app xcrun swift build --arch arm64
Building for debugging...
In file included from /Users/admin/builder/spi-builder-workspace/secp256k1/secp256k1.c:12:
In file included from /Users/admin/builder/spi-builder-workspace/secp256k1/scalar_impl.h:18:
/Users/admin/builder/spi-builder-workspace/secp256k1/scalar_4x64_impl.h:43:13: error: missing '#include <sys/types.h>'; 'uint' must be declared before it is used
43 | return (uint)(a->d[offset >> 6] >> (offset & 0x3F)) & ((((uint64_t)1) << count) - 1);
| ^
/Applications/Xcode-26.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX26.4.sdk/usr/include/sys/types.h:93:33: note: declaration here is not visible
93 | typedef unsigned int uint; /* Sys V compatibility */
| ^
In file included from /Users/admin/builder/spi-builder-workspace/secp256k1/secp256k1.c:12:
In file included from /Users/admin/builder/spi-builder-workspace/secp256k1/scalar_impl.h:18:
/Users/admin/builder/spi-builder-workspace/secp256k1/scalar_4x64_impl.h:53:17: error: missing '#include <sys/types.h>'; 'uint' must be declared before it is used
53 | return (uint)((a->d[offset >> 6] >> (offset & 0x3F)) | (a->d[(offset >> 6) + 1] << (64 - (offset & 0x3F)))) & ((((uint64_t)1) << count) - 1);
| ^
/Applications/Xcode-26.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX26.4.sdk/usr/include/sys/types.h:93:33: note: declaration here is not visible
93 | typedef unsigned int uint; /* Sys V compatibility */
| ^
2 errors generated.
[0/1] Compiling secp256k1 secp256k1.c
BUILD FAILURE 6.3 macosSpm