Skip to content

gmp-ecm: use portable primesieve on Linux - #113

Closed
dimpase wants to merge 2 commits into
mainfrom
fix/gmp-ecm-primesieve-portable
Closed

dimpase wants to merge 2 commits into
mainfrom
fix/gmp-ecm-primesieve-portable

Conversation

@dimpase

@dimpase dimpase commented Nov 12, 2026

Copy link
Copy Markdown
Owner

Sage's deterministic factorization of 2^128 + 1 crashes with SIGILL on ARM Linux when GMP-ECM calls core primesieve 12.17. Rebuild GMP-ECM against dimpase/tap/primesieve-portable on Linux, explicitly selecting its headers, library and runtime path. macOS keeps its existing primesieve and OpenMP dependencies.

Add a C API regression for the original Sage case, requiring the stage-two factor 5704689200685129054721 with sigma 227140902. The test passes on macOS, reproduces the original ARM failure, and passes with the isolated corrected primesieve library. Formula style/syntax pass; fresh three-platform CI and bottle linkage audits are required before publication.

@github-actions github-actions Bot closed this in 2b2d1f6 Nov 12, 2026
@github-actions
github-actions Bot deleted the fix/gmp-ecm-primesieve-portable branch November 12, 2026 01:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant