Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 594086 - net-p2p/bitcoin-qt-0.12.1 fails to build
Summary: net-p2p/bitcoin-qt-0.12.1 fails to build
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Anthony Basile
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-09-17 11:41 UTC by Arsen Shnurkov
Modified: 2016-10-04 21:20 UTC (History)
1 user (show)

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


Attachments
/var/tmp/portage/net-p2p/bitcoin-qt-0.12.1/temp/build.log (file_594086.txt,69.46 KB, text/plain)
2016-09-17 11:42 UTC, Arsen Shnurkov
Details
emerge --info '=net-p2p/bitcoin-qt-0.12.1::gentoo' (file_594086.txt,9.19 KB, text/plain)
2016-09-17 11:44 UTC, Arsen Shnurkov
Details
emerge -pqv '=net-p2p/bitcoin-qt-0.12.1::gentoo' (file_594086.txt,699 bytes, text/plain)
2016-09-17 11:47 UTC, Arsen Shnurkov
Details
/var/tmp/portage/net-p2p/bitcoin-qt-0.12.1/temp/environment (file_594086.txt,164.47 KB, text/plain)
2016-09-17 11:48 UTC, Arsen Shnurkov
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Arsen Shnurkov 2016-09-17 11:41:59 UTC
just 
emerge -e =bitcoin-qt-0.12.1

Reproducible: Always
Comment 1 Arsen Shnurkov 2016-09-17 11:42:38 UTC
Created attachment 446140 [details]
/var/tmp/portage/net-p2p/bitcoin-qt-0.12.1/temp/build.log
Comment 2 Arsen Shnurkov 2016-09-17 11:44:45 UTC
Created attachment 446142 [details]
emerge --info '=net-p2p/bitcoin-qt-0.12.1::gentoo'
Comment 3 Arsen Shnurkov 2016-09-17 11:47:25 UTC
Created attachment 446144 [details]
emerge -pqv '=net-p2p/bitcoin-qt-0.12.1::gentoo'
Comment 4 Arsen Shnurkov 2016-09-17 11:48:22 UTC
Created attachment 446146 [details]
/var/tmp/portage/net-p2p/bitcoin-qt-0.12.1/temp/environment
Comment 5 Arsen Shnurkov 2016-09-17 12:26:02 UTC
The same error in bitcoin-0.13.0

libtool: link: x86_64-pc-linux-gnu-g++ -pthread -Wl,-z -Wl,relro -Wl,-z -Wl,now -pie -Wl,-O1 -o qt/bitcoin-qt qt/qt_bitcoin_qt-bitcoin.o -pthread  -Wl,--as-needed qt/libbitcoinqt.a libbitcoin_server.a libbitcoin_wallet.a libbitcoin_cli.a libbitcoin_common.a libbitcoin_util.a libbitcoin_consensus.a crypto/libbitcoin_crypto.a -lunivalue -lleveldb -lmemenv -L/usr/lib64 -lboost_system -lboost_filesystem -lboost_program_options-mt -lboost_thread -lboost_chrono-mt -L/usr/lib64/qt4 -lQtGui -lQtNetwork -lQtDBus -lQtXml -lQtCore -lqrencode -lprotobuf /usr/lib64/libdb_cxx-4.8.so -lpthread -lssl -lcrypto -lminiupnpc -lsecp256k1 -levent_pthreads -levent -lanl -pthread
qt/libbitcoinqt.a(qt_libbitcoinqt_a-rpcconsole.o): In function `RPCExecutor::request(QString const&)':
rpcconsole.cpp:(.text+0x5760): undefined reference to `UniValue::write(unsigned int, unsigned int) const'
rpcconsole.cpp:(.text+0x59cf): undefined reference to `UniValue::get_str() const'
rpcconsole.cpp:(.text+0x5c3c): undefined reference to `find_value(UniValue const&, std::string const&)'
rpcconsole.cpp:(.text+0x5c8c): undefined reference to `find_value(UniValue const&, std::string const&)'
rpcconsole.cpp:(.text+0x5c97): undefined reference to `UniValue::get_str() const'
Comment 6 Luke-Jr 2016-09-22 08:29:53 UTC
Looks like you built dev-libs/univalue with C++11 CXXFLAGS, and then removed those CXXFLAGS? I don't think that is supposed to work...
Comment 7 Anthony Basile gentoo-dev 2016-09-22 15:17:56 UTC
(In reply to Luke-Jr from comment #6)
> Looks like you built dev-libs/univalue with C++11 CXXFLAGS, and then removed
> those CXXFLAGS? I don't think that is supposed to work...

There is an abi incompatibility wrt c++11 between gcc-4.9 and gcc-5.  For an explanation of whats going on, see

https://blogs.gentoo.org/blueness/2015/03/10/the-c11-abi-incompatibility-problem-in-gentoo/

Since you've moved to gcc-5, the easiest solution at this point is to just switch to that and use only gcc-5, drop 4.  I know its not stable yet, but we're close.

I'm closing this test-request because I'm pretty sure about what's going on.  Please test with gcc-5 and reopen if the problem persists.