Repository navigation
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The core
primesieve 12.17Linux ARM bottle crashes on a CPU without SVE, includingprimesieve 1000000 --count --threads=1, ECM factorization, and Sage's exponential-integral doctests. A register/disassembly capture showscntb x9executing in the baselinePreSieve::preSievepath even though its SVE runtime flag is false.Add a keg-only
primesieve-portableformula with a small source patch that saves and restores GCC target options around the SVE helper definitions and the matching CMake probe. Runtime SVE dispatch remains enabled; Clang builds retain their existing behavior. The separate keg allows consumers to migrate one formula per PR while the core package remains installed.The formula runs all upstream CTests during the build, then tests the installed CLI and shared-library API with substantive prime counts. This PR changes only this formula; consumers will migrate in subsequent PRs.
Validation on Linux ARM without SVE, using the same GCC13/O2/armv8-a settings as the broken bottle:
exp_integraldoctests and all 29libecmdoctests pass. Installed bottles and Sage source remain unchanged.Three-platform CI, complete bottle audits and final validation with the published consumer closure are still required.