Skip to content

Conversation

@fanquake
Copy link
Member

Closes: #19559

While #19559 has been fixed upstream, it makes sense to not only
recommend using CC_FOR_BUILDhere until the fix is pulled in as
part of our next libsecp update, but after discussing with Cory,
he suggested we should be setting this on OpenBSD (which still has
the an ancient GCC) regardless.

Closes: bitcoin#19559

While bitcoin#19559 has been fixed upstream, it makes sense to not only
recommend using `CC_FOR_BUILD`here  until the fix is pulled in as
part of our next libsecp update, but after discussing with Cory,
he suggested we should be setting this on OpenBSD (which still has
the an ancient GCC) regardless.
@fanquake fanquake added the Docs label Jul 28, 2020
@fanquake fanquake requested a review from theuni July 28, 2020 08:33
@real-or-random
Copy link
Contributor

ACK 01cd24c I looked at the diff (but can't test the instructions on OpenBSD)

Setting CC_FOR_BUILD here is the certainly the right thing, because it avoids the ancient GCC entirely. The upstream fix would work too but autoconf will select the ancient GCC then (which is not a huge problem since it's only used in the precomputation step during compilation but I think we should still avoid it).

@laanwj
Copy link
Member

laanwj commented Aug 10, 2020

Code review ACK 01cd24c
Can test on OpenBSD later.

@fanquake fanquake merged commit 6d5a9fe into bitcoin:master Aug 10, 2020
@fanquake fanquake deleted the openbsd_cc_for_build branch August 10, 2020 14:40
sidhujag pushed a commit to syscoin/syscoin that referenced this pull request Aug 10, 2020
01cd24c doc: set CC_FOR_BUILD when building on OpenBSD (fanquake)

Pull request description:

  Closes: bitcoin#19559

  While bitcoin#19559 has been fixed upstream, it makes sense to not only
  recommend using `CC_FOR_BUILD`here  until the fix is pulled in as
  part of our next libsecp update, but after discussing with Cory,
  he suggested we should be setting this on OpenBSD (which still has
  the an ancient GCC) regardless.

ACKs for top commit:
  real-or-random:
    ACK 01cd24c I looked at the diff (but can't test the instructions on OpenBSD)
  laanwj:
    Code review ACK 01cd24c

Tree-SHA512: 322802b9303771f1be2ad9628f268dfa71dc7ee77948fa2a34f21eceb19b2d8efdd8876c8f0778adbfcde48fa0f88cd4e698ae425428159abca38e8c7980da1d
@real-or-random
Copy link
Contributor

bitcoin-core/secp256k1#862 has just been merged, which will make setting CC_FOR_BUILD unnecessary (after the next update of the secp256k1 subtree). Not sure if we want to change the docs. It certainly does not hurt to set the variable. 🤷

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

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

build: cannot compile on OpenBSD since libsecp256k1 subtree update

3 participants