From daf6fb13c4eba4484149e0fd17970d36aad5f921 Mon Sep 17 00:00:00 2001 From: Ivan FB Date: Thu, 28 May 2026 15:49:52 +0200 Subject: [PATCH] ci: pass -d:disableMarchNative to avoid secp256k1 asm build failures GitHub-hosted runners pick up host-specific CPU features via '-march=native', which combined with '-Og -O3' (emitted when --debugger:native and --opt:speed are both active) exhausts the register constraints in secp256k1's scalar_4x64_impl.h inline assembly and breaks the build with "asm operand has impossible constraints". Using the existing 'disableMarchNative' escape hatch in config.nims falls back to '-mssse3' (or '-march=x86-64-v2' with '-d:marchOptimized'), which keeps register allocation predictable across the heterogeneous runner pool. Co-Authored-By: Claude Opus 4.7 --- .github/workflows/ci.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index c54d828ae..34cb10f9c 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -13,7 +13,7 @@ concurrency: env: NPROC: 2 MAKEFLAGS: "-j${NPROC}" - NIMFLAGS: "--parallelBuild:${NPROC} --colors:off -d:chronicles_colors:none" + NIMFLAGS: "--parallelBuild:${NPROC} --colors:off -d:chronicles_colors:none -d:disableMarchNative" NIM_VERSION: '2.2.4' NIMBLE_VERSION: '0.22.3' @@ -157,7 +157,7 @@ jobs: fi export MAKEFLAGS="-j1" - export NIMFLAGS="--colors:off -d:chronicles_colors:none" + export NIMFLAGS="--colors:off -d:chronicles_colors:none -d:disableMarchNative" export USE_LIBBACKTRACE=0 make V=1 POSTGRES=$postgres_enabled test