Skip to content

Conversation

@laanwj
Copy link
Member

@laanwj laanwj commented Jun 1, 2015

Until secp256k1 is used for verification there is no reason for Bitcoin Core's secp256k1 to link against gmp, even if available. Pass a flag to configure to override the bignum implementation.

This fixes a crash at runtime on ppc64 reported by @gmaxwell.

Edit: tested and appears to work, after autogen and reconfigure, src/secp256k1/config.log contains

configure:13140: Using bignum implementation: no

... whereas it was using gmp before.

Until secp256k1 is used for verification there is no reason for Bitcoin
Core's secp256k1 to link against gmp, even if available. Pass a flag to
configure to override the bignum implementation.

This fixes a crash at runtime on ppc64 reported by @gmaxwell.
@laanwj
Copy link
Member Author

laanwj commented Jun 1, 2015

Needs to go into 0.11 branch as well

@luke-jr
Copy link
Member

luke-jr commented Jun 1, 2015

Nit: --without-bignum would be slightly nicer IMO

@laanwj
Copy link
Member Author

laanwj commented Jun 1, 2015

@luke-jr No opinion on that, but I'm just following secp256k1's configure --help

@laanwj laanwj merged commit 7fd5b80 into bitcoin:master Jun 2, 2015
laanwj added a commit that referenced this pull request Jun 2, 2015
7fd5b80 build: disable optional use of gmp in internal secp256k1 build (Wladimir J. van der Laan)
laanwj added a commit that referenced this pull request Jun 2, 2015
Until secp256k1 is used for verification there is no reason for Bitcoin
Core's secp256k1 to link against gmp, even if available. Pass a flag to
configure to override the bignum implementation.

This fixes a crash at runtime on ppc64 reported by @gmaxwell.

Github-Pull: #6210
Rebased-From: 7fd5b80
@theuni
Copy link
Member

theuni commented Jun 2, 2015

post-merge ack.

@bitcoin bitcoin locked as resolved and limited conversation to collaborators Sep 8, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants