Build error on MacOS #10

Closed
opened 2016-07-05 06:56:20 +02:00 by ELM4Ever · 2 comments
ELM4Ever commented 2016-07-05 06:56:20 +02:00 (Migrated from github.com)

MacOS 10.11.5

./autogen.sh and ./configure went well. With "make" - I am getting the following error:

Making all in src
CXX crypto/libbitcoinconsensus_la-hmac_sha256.lo
CXX crypto/libbitcoinconsensus_la-hmac_sha512.lo
CXX crypto/libbitcoinconsensus_la-ripemd160.lo
CXX crypto/libbitcoinconsensus_la-sha1.lo
CXX crypto/libbitcoinconsensus_la-sha256.lo
CXX crypto/libbitcoinconsensus_la-sha512.lo
CXX libbitcoinconsensus_la-arith_uint256.lo
CXX consensus/libbitcoinconsensus_la-merkle.lo
CXX libbitcoinconsensus_la-hash.lo
CXX primitives/libbitcoinconsensus_la-block.lo
CXX primitives/libbitcoinconsensus_la-transaction.lo
CXX libbitcoinconsensus_la-pubkey.lo
CXX script/libbitcoinconsensus_la-bitcoinconsensus.lo
CXX script/libbitcoinconsensus_la-interpreter.lo
CXX script/libbitcoinconsensus_la-script.lo
CXX script/libbitcoinconsensus_la-script_error.lo
CXX libbitcoinconsensus_la-uint256.lo
CXX libbitcoinconsensus_la-utilstrencodings.lo
gcc -I. -g -O2 -Wall -Wextra -Wno-unused-function -c src/gen_context.c -o gen_context.o
gcc gen_context.o -o gen_context
./gen_context
CC src/libsecp256k1_la-secp256k1.lo
CCLD libsecp256k1.laCXXLD libbitcoinconsensus.la
clang: warning: argument unused during compilation: '-pthread'
clang: warning: argument unused during compilation: '-pthread'
Undefined symbols for architecture x86_64:
"memory_cleanse(void_, unsigned long)", referenced from:
CBlockHeader::GetPoWHash() const in libbitcoinconsensus_la-block.o
std::__1::enable_if<(__is_forward_iterator::value) && (is_constructible<char, std::__1::iterator_traits<char const*>::reference>::value), std::__1::__wrap_iter<char*> >::type std::__1::vector<char, zero_after_free_allocator >::insert<char const*>(std::__1::wrap_iter<char const*>, char const, char const) in libbitcoinconsensus_la-block.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]: *** [libbitcoinconsensus.la] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all-recursive] Error 1

MacOS 10.11.5 ./autogen.sh and ./configure went well. With "make" - I am getting the following error: Making all in src CXX crypto/libbitcoinconsensus_la-hmac_sha256.lo CXX crypto/libbitcoinconsensus_la-hmac_sha512.lo CXX crypto/libbitcoinconsensus_la-ripemd160.lo CXX crypto/libbitcoinconsensus_la-sha1.lo CXX crypto/libbitcoinconsensus_la-sha256.lo CXX crypto/libbitcoinconsensus_la-sha512.lo CXX libbitcoinconsensus_la-arith_uint256.lo CXX consensus/libbitcoinconsensus_la-merkle.lo CXX libbitcoinconsensus_la-hash.lo CXX primitives/libbitcoinconsensus_la-block.lo CXX primitives/libbitcoinconsensus_la-transaction.lo CXX libbitcoinconsensus_la-pubkey.lo CXX script/libbitcoinconsensus_la-bitcoinconsensus.lo CXX script/libbitcoinconsensus_la-interpreter.lo CXX script/libbitcoinconsensus_la-script.lo CXX script/libbitcoinconsensus_la-script_error.lo CXX libbitcoinconsensus_la-uint256.lo CXX libbitcoinconsensus_la-utilstrencodings.lo gcc -I. -g -O2 -Wall -Wextra -Wno-unused-function -c src/gen_context.c -o gen_context.o gcc gen_context.o -o gen_context ./gen_context CC src/libsecp256k1_la-secp256k1.lo CCLD libsecp256k1.laCXXLD libbitcoinconsensus.la clang: warning: argument unused during compilation: '-pthread' clang: warning: argument unused during compilation: '-pthread' Undefined symbols for architecture x86_64: "memory_cleanse(void_, unsigned long)", referenced from: CBlockHeader::GetPoWHash() const in libbitcoinconsensus_la-block.o std::__1::enable_if<(__is_forward_iterator<char const_>::value) && (is_constructible<char, std::__1::iterator_traits<char const*>::reference>::value), std::__1::__wrap_iter<char*> >::type std::__1::vector<char, zero_after_free_allocator<char> >::insert<char const*>(std::__1::__wrap_iter<char const*>, char const_, char const_) in libbitcoinconsensus_la-block.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]: **\* [libbitcoinconsensus.la] Error 1 make[1]: **\* [all-recursive] Error 1 make: **\* [all-recursive] Error 1
ELM4Ever commented 2016-07-12 08:01:57 +02:00 (Migrated from github.com)

Something in the latest fixes got rid of the issue - was able to compile the binary today.

Something in the latest fixes got rid of the issue - was able to compile the binary today.
avoloshko commented 2017-08-25 21:43:42 +02:00 (Migrated from github.com)

It fails on MaOS, but works fine on ubuntu.

It fails on MaOS, but works fine on ubuntu.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: LBRYCommunity/lbrycrd#10
No description provided.