Unable to compile on native macOS after 3caee16946575e71e90ead9ac531f5a3a1259307 #20259

issue rex4539 opened this issue on October 28, 2020
  1. rex4539 commented at 6:03 PM on October 28, 2020: contributor

    Introduced with 3caee16946575e71e90ead9ac531f5a3a1259307.

    CXXLD    qt/test/test_bitcoin-qt
    Undefined symbols for architecture x86_64:
      "_secp256k1_xonly_pubkey_tweak_add_check", referenced from:
          XOnlyPubKey::CheckPayToContract(XOnlyPubKey const&, uint256 const&, bool) const in libbitcoin_consensus.a(libbitcoin_consensus_a-pubkey.o)
      "_secp256k1_xonly_pubkey_parse", referenced from:
          XOnlyPubKey::VerifySchnorr(uint256 const&, Span<unsigned char const>) const in libbitcoin_consensus.a(libbitcoin_consensus_a-pubkey.o)
          XOnlyPubKey::CheckPayToContract(XOnlyPubKey const&, uint256 const&, bool) const in libbitcoin_consensus.a(libbitcoin_consensus_a-pubkey.o)
      "_secp256k1_schnorrsig_verify", referenced from:
          XOnlyPubKey::VerifySchnorr(uint256 const&, Span<unsigned char const>) const in libbitcoin_consensus.a(libbitcoin_consensus_a-pubkey.o)
    ld: symbol(s) not found for architecture x86_64
    clang: error: linker command failed with exit code 1 (use -v to see invocation)
    make[2]: *** [bitcoin-tx] Error 1
    make[2]: *** Waiting for unfinished jobs....
    Undefined symbols for architecture x86_64:
      "_secp256k1_xonly_pubkey_tweak_add_check", referenced from:
          XOnlyPubKey::CheckPayToContract(XOnlyPubKey const&, uint256 const&, bool) const in libbitcoin_consensus.a(libbitcoin_consensus_a-pubkey.o)
      "_secp256k1_xonly_pubkey_parse", referenced from:
          XOnlyPubKey::VerifySchnorr(uint256 const&, Span<unsigned char const>) const in libbitcoin_consensus.a(libbitcoin_consensus_a-pubkey.o)
          XOnlyPubKey::CheckPayToContract(XOnlyPubKey const&, uint256 const&, bool) const in libbitcoin_consensus.a(libbitcoin_consensus_a-pubkey.o)
      "_secp256k1_schnorrsig_verify", referenced from:
          XOnlyPubKey::VerifySchnorr(uint256 const&, Span<unsigned char const>) const in libbitcoin_consensus.a(libbitcoin_consensus_a-pubkey.o)
    ld: symbol(s) not found for architecture x86_64
    clang: error: linker command failed with exit code 1 (use -v to see invocation)
    make[2]: *** [bitcoin-wallet] Error 1
    Undefined symbols for architecture x86_64:
      "_secp256k1_xonly_pubkey_tweak_add_check", referenced from:
          XOnlyPubKey::CheckPayToContract(XOnlyPubKey const&, uint256 const&, bool) const in libbitcoin_consensus.a(libbitcoin_consensus_a-pubkey.o)
    Undefined symbols for architecture x86_64:
      "_secp256k1_xonly_pubkey_tweak_add_check", referenced from:
    Undefined symbols for architecture x86_64:
      "_secp256k1_xonly_pubkey_tweak_add_check", referenced from:
          XOnlyPubKey::CheckPayToContract(XOnlyPubKey const&, uint256 const&, bool) const in libbitcoin_consensus.a(libbitcoin_consensus_a-pubkey.o)
      "_secp256k1_xonly_pubkey_parse", referenced from:
          XOnlyPubKey::CheckPayToContract(XOnlyPubKey const&, uint256 const&, bool) const in libbitcoin_consensus.a(libbitcoin_consensus_a-pubkey.o)
          XOnlyPubKey::VerifySchnorr(uint256 const&, Span<unsigned char const>) const in libbitcoin_consensus.a(libbitcoin_consensus_a-pubkey.o)
          XOnlyPubKey::CheckPayToContract(XOnlyPubKey const&, uint256 const&, bool) const in libbitcoin_consensus.a(libbitcoin_consensus_a-pubkey.o)
      "_secp256k1_xonly_pubkey_parse", referenced from:
      "_secp256k1_xonly_pubkey_parse", referenced from:
          XOnlyPubKey::VerifySchnorr(uint256 const&, Span<unsigned char const>) const in libbitcoin_consensus.a(libbitcoin_consensus_a-pubkey.o)
          XOnlyPubKey::CheckPayToContract(XOnlyPubKey const&, uint256 const&, bool) const in libbitcoin_consensus.a(libbitcoin_consensus_a-pubkey.o)
      "_secp256k1_schnorrsig_verify", referenced from:
          XOnlyPubKey::VerifySchnorr(uint256 const&, Span<unsigned char const>) const in libbitcoin_consensus.a(libbitcoin_consensus_a-pubkey.o)
          XOnlyPubKey::CheckPayToContract(XOnlyPubKey const&, uint256 const&, bool) const in libbitcoin_consensus.a(libbitcoin_consensus_a-pubkey.o)
          XOnlyPubKey::VerifySchnorr(uint256 const&, Span<unsigned char const>) const in libbitcoin_consensus.a(libbitcoin_consensus_a-pubkey.o)
      "_secp256k1_schnorrsig_verify", referenced from:
      "_secp256k1_schnorrsig_verify", referenced from:
          XOnlyPubKey::VerifySchnorr(uint256 const&, Span<unsigned char const>) const in libbitcoin_consensus.a(libbitcoin_consensus_a-pubkey.o)
          XOnlyPubKey::VerifySchnorr(uint256 const&, Span<unsigned char const>) const in libbitcoin_consensus.a(libbitcoin_consensus_a-pubkey.o)
    ld: symbol(s) not found for architecture x86_64
    ld: symbol(s) not found for architecture x86_64
    ld: symbol(s) not found for architecture x86_64
    clang: error: linker command failed with exit code 1 (use -v to see invocation)
    make[2]: *** [bench/bench_bitcoin] Error 1
    clang: error: linker command failed with exit code 1 (use -v to see invocation)
    clang: error: linker command failed with exit code 1 (use -v to see invocation)
    make[2]: *** [bitcoind] Error 1
    make[2]: *** [bitcoin-node] Error 1
    Undefined symbols for architecture x86_64:
      "_secp256k1_xonly_pubkey_tweak_add_check", referenced from:
          XOnlyPubKey::CheckPayToContract(XOnlyPubKey const&, uint256 const&, bool) const in libbitcoin_consensus.a(libbitcoin_consensus_a-pubkey.o)
      "_secp256k1_xonly_pubkey_parse", referenced from:
          XOnlyPubKey::VerifySchnorr(uint256 const&, Span<unsigned char const>) const in libbitcoin_consensus.a(libbitcoin_consensus_a-pubkey.o)
          XOnlyPubKey::CheckPayToContract(XOnlyPubKey const&, uint256 const&, bool) const in libbitcoin_consensus.a(libbitcoin_consensus_a-pubkey.o)
      "_secp256k1_schnorrsig_verify", referenced from:
          XOnlyPubKey::VerifySchnorr(uint256 const&, Span<unsigned char const>) const in libbitcoin_consensus.a(libbitcoin_consensus_a-pubkey.o)
    ld: symbol(s) not found for architecture x86_64
    clang: error: linker command failed with exit code 1 (use -v to see invocation)
    make[2]: *** [test/test_bitcoin] Error 1
    Undefined symbols for architecture x86_64:
      "_secp256k1_xonly_pubkey_tweak_add_check", referenced from:
          XOnlyPubKey::CheckPayToContract(XOnlyPubKey const&, uint256 const&, bool) const in libbitcoin_consensus.a(libbitcoin_consensus_a-pubkey.o)
      "_secp256k1_xonly_pubkey_parse", referenced from:
    Undefined symbols for architecture x86_64:
      "_secp256k1_xonly_pubkey_tweak_add_check", referenced from:
    Undefined symbols for architecture x86_64:
      "_secp256k1_xonly_pubkey_tweak_add_check", referenced from:
          XOnlyPubKey::VerifySchnorr(uint256 const&, Span<unsigned char const>) const in libbitcoin_consensus.a(libbitcoin_consensus_a-pubkey.o)
          XOnlyPubKey::CheckPayToContract(XOnlyPubKey const&, uint256 const&, bool) const in libbitcoin_consensus.a(libbitcoin_consensus_a-pubkey.o)
          XOnlyPubKey::CheckPayToContract(XOnlyPubKey const&, uint256 const&, bool) const in libbitcoin_consensus.a(libbitcoin_consensus_a-pubkey.o)
          XOnlyPubKey::CheckPayToContract(XOnlyPubKey const&, uint256 const&, bool) const in libbitcoin_consensus.a(libbitcoin_consensus_a-pubkey.o)
      "_secp256k1_schnorrsig_verify", referenced from:
      "_secp256k1_xonly_pubkey_parse", referenced from:
      "_secp256k1_xonly_pubkey_parse", referenced from:
          XOnlyPubKey::VerifySchnorr(uint256 const&, Span<unsigned char const>) const in libbitcoin_consensus.a(libbitcoin_consensus_a-pubkey.o)
          XOnlyPubKey::VerifySchnorr(uint256 const&, Span<unsigned char const>) const in libbitcoin_consensus.a(libbitcoin_consensus_a-pubkey.o)
          XOnlyPubKey::VerifySchnorr(uint256 const&, Span<unsigned char const>) const in libbitcoin_consensus.a(libbitcoin_consensus_a-pubkey.o)
          XOnlyPubKey::CheckPayToContract(XOnlyPubKey const&, uint256 const&, bool) const in libbitcoin_consensus.a(libbitcoin_consensus_a-pubkey.o)
          XOnlyPubKey::CheckPayToContract(XOnlyPubKey const&, uint256 const&, bool) const in libbitcoin_consensus.a(libbitcoin_consensus_a-pubkey.o)
      "_secp256k1_schnorrsig_verify", referenced from:
      "_secp256k1_schnorrsig_verify", referenced from:
          XOnlyPubKey::VerifySchnorr(uint256 const&, Span<unsigned char const>) const in libbitcoin_consensus.a(libbitcoin_consensus_a-pubkey.o)
          XOnlyPubKey::VerifySchnorr(uint256 const&, Span<unsigned char const>) const in libbitcoin_consensus.a(libbitcoin_consensus_a-pubkey.o)
    ld: symbol(s) not found for architecture x86_64
    clang: error: linker command failed with exit code 1 (use -v to see invocation)
    make[2]: *** [qt/test/test_bitcoin-qt] Error 1
    ld: symbol(s) not found for architecture x86_64
    ld: symbol(s) not found for architecture x86_64
    clang: error: linker command failed with exit code 1 (use -v to see invocation)
    clang: error: linker command failed with exit code 1 (use -v to see invocation)
    make[2]: *** [bitcoin-gui] Error 1
    make[2]: *** [qt/bitcoin-qt] Error 1
    make[1]: *** [all-recursive] Error 1
    make: *** [all-recursive] Error 1
    
  2. rex4539 added the label Bug on Oct 28, 2020
  3. MarcoFalke commented at 6:05 PM on October 28, 2020: member

    Does make distclean help?

  4. MarcoFalke removed the label Bug on Oct 28, 2020
  5. MarcoFalke added the label Questions and Help on Oct 28, 2020
  6. rex4539 commented at 6:11 PM on October 28, 2020: contributor

    Indeed it does :)

  7. rex4539 closed this on Oct 28, 2020

  8. sipa commented at 6:12 PM on October 28, 2020: member

    Yeah, this is expected unfortunately.

  9. DrahtBot locked this on Feb 15, 2022

github-metadata-mirror

This is a metadata mirror of the GitHub repository bitcoin/bitcoin. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2026-04-26 06:14 UTC

This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me