Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 543296 - net-p2p/bitcoind-0.10.0-r1 compilation error: reference to ‘int64_t’ is ambiguous
Summary: net-p2p/bitcoind-0.10.0-r1 compilation error: reference to ‘int64_t’ is ambig...
Status: RESOLVED NEEDINFO
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Luke-Jr
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-03-14 12:26 UTC by Florian Schmaus
Modified: 2017-01-24 11:33 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
build.log (build.log,21.11 KB, text/x-log)
2015-03-14 12:29 UTC, Florian Schmaus
Details
emerge.info (emerge_info,4.40 KB, text/plain)
2015-03-14 12:30 UTC, Florian Schmaus
Details
eix boost (boost,1.70 KB, text/plain)
2015-03-14 12:30 UTC, Florian Schmaus
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Florian Schmaus gentoo-dev 2015-03-14 12:26:51 UTC
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
Comment 1 Florian Schmaus gentoo-dev 2015-03-14 12:29:46 UTC
Created attachment 398876 [details]
build.log
Comment 2 Florian Schmaus gentoo-dev 2015-03-14 12:30:00 UTC
Created attachment 398878 [details]
emerge.info
Comment 3 Florian Schmaus gentoo-dev 2015-03-14 12:30:22 UTC
Created attachment 398880 [details]
eix boost
Comment 4 Luke-Jr 2015-03-14 15:21:29 UTC
Works fine here with dev-libs/boost-1.52.0-r6 and net-p2p/bitcoind-0.10.0-r1
Comment 5 Luke-Jr 2015-03-14 15:21:41 UTC
What compiler?
Comment 6 Florian Schmaus gentoo-dev 2015-03-14 20:15:40 UTC
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.
Comment 7 Luke-Jr 2015-03-14 20:38:40 UTC
(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?