bitcoin: undefined reference to `secp256k1_ecdsa_sign_recoverable'
going through the make process, i run into this error: (i tried running a git clean)
testb0x@testb0x-VirtualBox:~/bitcoin$ make
Making all in src
make[1]: Entering directory ‘/home/testb0x/bitcoin/src’
make[2]: Entering directory ‘/home/testb0x/bitcoin/src’
make[3]: Entering directory ‘/home/testb0x/bitcoin/src/secp256k1’
make[3]: Leaving directory ‘/home/testb0x/bitcoin/src/secp256k1’
CXXLD bitcoind
libbitcoin_common.a(libbitcoin_common_a-key.o): In function CKey::SignCompact(uint256 const&, std::vector<unsigned char, std::allocator<unsigned char> >&) const': /home/testb0x/bitcoin/src/key.cpp:204: undefined reference to
secp256k1_ecdsa_sign_recoverable’
/home/testb0x/bitcoin/src/key.cpp:206: undefined reference to secp256k1_ecdsa_recoverable_signature_serialize_compact' libbitcoin_common.a(libbitcoin_common_a-pubkey.o): In function
CPubKey::RecoverCompact(uint256 const&, std::vector<unsigned char, std::allocator<unsigned char> > const&)‘:
/home/testb0x/bitcoin/src/pubkey.cpp:194: undefined reference to secp256k1_ecdsa_recoverable_signature_parse_compact' /home/testb0x/bitcoin/src/pubkey.cpp:197: undefined reference to
secp256k1_ecdsa_recover’
collect2: error: ld returned 1 exit status
Makefile:2759: recipe for target ‘bitcoind’ failed
make[2]: *** [bitcoind] Error 1
make[2]: Leaving directory ‘/home/testb0x/bitcoin/src’
Makefile:6870: recipe for target ‘all-recursive’ failed
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory ‘/home/testb0x/bitcoin/src’
Makefile:636: recipe for target ‘all-recursive’ failed
make: *** [all-recursive] Error 1
testb0x@testb0x-VirtualBox:~/bitcoin$
About this issue
- Original URL
- State: closed
- Created 9 years ago
- Comments: 15 (7 by maintainers)
Commits related to this issue
- Update Makefile.am fixes https://github.com/bitcoin/bitcoin/issues/7261 — committed to doged/bitcoin by doged 9 years ago
- Update Makefile.am fixes https://github.com/bitcoin/bitcoin/issues/7261 fresh ubuntu install couldnt find gcc. — committed to doged/secp256k1 by doged 9 years ago
@doged sounds like it’s not finding your native gcc. Try exporting CC_FOR_BUILD=gcc