Skip to content

Instantly share code, notes, and snippets.

@BlinkyStitt
Last active December 27, 2015 08:19
Show Gist options
  • Save BlinkyStitt/7295209 to your computer and use it in GitHub Desktop.
Save BlinkyStitt/7295209 to your computer and use it in GitHub Desktop.
OSX 10.9 error while building bitcoind v0.8.5 with patches from https://github.com/WyseNynja/homebrew-bitcoin/blob/master/bitcoind.rb
$ make -f makefile.osx test
llvm-g++ -c -DTEST_DATA_DIR=/Users/bwstitt/src/bitcoin/src/test/data -DBOOST_TEST_DYN_LINK -Wall -Wextra -Wformat -Wformat-security -Wno-unused-parameter -g -DMAC_OSX -DMSG_NOSIGNAL=0 -DBOOST_SPIRIT_THREADSAFE -DUSE_UPNP=1 -DUSE_IPV6=1 -I/Users/bwstitt/src/bitcoin/src/leveldb/include -I/Users/bwstitt/src/bitcoin/src/leveldb/helpers -DHAVE_BUILD_INFO -I"/Users/bwstitt/src/bitcoin/src" -I"/Users/bwstitt/src/bitcoin/src/obj" -I"/usr/local/include" -I"/usr/local/opt/berkeley-db4/include" -I"/usr/local/opt/openssl/include" -MMD -MF obj-test/Checkpoints_tests.d -o obj-test/Checkpoints_tests.o test/Checkpoints_tests.cpp
In file included from test/Checkpoints_tests.cpp:9:
In file included from test/../util.h:32:
In file included from /Users/bwstitt/src/bitcoin/src/netbase.h:10:
/Users/bwstitt/src/bitcoin/src/serialize.h:911:10: error: class member cannot be redeclared
void insert(iterator it, std::vector<char>::const_iterator first, std::vector<char>::const_iterator last)
^
/Users/bwstitt/src/bitcoin/src/serialize.h:898:10: note: previous declaration is here
void insert(iterator it, const_iterator first, const_iterator last)
^
/Users/bwstitt/src/bitcoin/src/serialize.h:911:10: error: redefinition of 'insert'
void insert(iterator it, std::vector<char>::const_iterator first, std::vector<char>::const_iterator last)
^
/Users/bwstitt/src/bitcoin/src/serialize.h:898:10: note: previous definition is here
void insert(iterator it, const_iterator first, const_iterator last)
^
2 errors generated.
make: *** [obj-test/Checkpoints_tests.o] Error 1
@BlinkyStitt
Copy link
Author

this is from make -f makefile.osx test

@gavinandresen
Copy link

Sounds like the llvm incompatibility fixed in bitcoin/bitcoin#3162

@BlinkyStitt
Copy link
Author

You are right! Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment