Emerging bitcoind-0.10.0-r1 fails with x86_64-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I../src/config -I. -I./obj -pthread -I/usr/include -DBOOST_SPIRIT_THREADSAFE -DHAVE_BUILD_INFO -D__STDC_FORMAT_MACROS -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -O2 -pipe -Wstack-protector -fstack-protector-all -fPIE -fvisibility=hidden -c -o libbitcoin_server_a-init.o `test -f 'init.cpp' || echo './'`init.cpp init.cpp: In function ‘bool AppInit2(boost::thread_group&)’: init.cpp:804:5: error: reference to ‘int64_t’ is ambiguous In file included from /usr/include/bits/uio.h:25:0, from /usr/include/bits/fcntl-linux.h:38, from /usr/include/bits/fcntl.h:61, from /usr/include/fcntl.h:35, from /usr/include/sys/fcntl.h:1, from compat.h:35, from netbase.h:12, from addrman.h:8, from init.cpp:12: /usr/include/sys/types.h:197:1: error: candidates are: typedef long int int64_t In file included from /usr/include/boost/date_time/compiler_config.hpp:54:0, from /usr/include/boost/date_time/c_time.hpp:21, from /usr/include/boost/date_time/time_clock.hpp:16, from /usr/include/boost/thread/thread_time.hpp:9, from /usr/include/boost/thread/pthread/timespec.hpp:9, from /usr/include/boost/thread/pthread/condition_variable.hpp:9, from /usr/include/boost/thread/condition_variable.hpp:16, from sync.h:11, from addrman.h:11, from init.cpp:12: /usr/include/boost/cstdint.hpp:308:50: error: typedef boost::long_long_type boost::int64_t init.cpp:804:13: error: expected ‘;’ before ‘nStart’ init.cpp:1007:9: error: ‘nStart’ was not declared in this scope init.cpp:1088:5: error: ‘nStart’ was not declared in this scope Makefile:3469: recipe for target 'libbitcoin_server_a-init.o' failed make[2]: *** [libbitcoin_server_a-init.o] Error 1 make[2]: Leaving directory '/var/tmp/portage/net-p2p/bitcoind-0.10.0-r1/work/bitcoin-047a89831760ff124740fe9f58411d57ee087078/src' Makefile:6226: recipe for target 'all-recursive' failed make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory '/var/tmp/portage/net-p2p/bitcoind-0.10.0-r1/work/bitcoin-047a89831760ff124740fe9f58411d57ee087078/src' Makefile:615: recipe for target 'all-recursive' failed make: *** [all-recursive] Error 1 I'm currently investigating this issue, but I guess it's because of the installed boost version, which is 1.52.0-r6 (i.e. the oldest stable version in tree). Attaching build.log and further information. Reproducible: Always Steps to Reproduce: 1. emerge =net-p2p/bitcoind-0.10.0-r1
Created attachment 398876 [details] build.log
Created attachment 398878 [details] emerge.info
Created attachment 398880 [details] eix boost
Works fine here with dev-libs/boost-1.52.0-r6 and net-p2p/bitcoind-0.10.0-r1
What compiler?
As can be seen in the attached emerge.info, the used compiler was gcc 4.7.3. Also updating boost to the latest stable solved the compilation problem.
(In reply to Florian Schmaus from comment #6) > As can be seen in the attached emerge.info, the used compiler was gcc 4.7.3. > Also updating boost to the latest stable solved the compilation problem. Can you confirm GCC 4.8.3 (current stable) also fixes this with the old boost?