Wednesday, 16 September 2020

Compilation from the source code, error in boost

I'm on Arch Linux. When compiling bitcoin from the source code, this error happens:

 CXX leveldb/helpers/memenv/libmemenv_a-memenv.o AR leveldb/libmemenv.a make[3]: Entering directory '/home/user1/bitcoin/src/secp256k1' gcc -I. -I./src -Wall -Wextra -Wno-unused-function -g -O2 -c src/gen_context.c -o gen_context.o gcc -Wall -Wextra -Wno-unused-function -g -O2 gen_context.o -o gen_context ./gen_context CC src/libsecp256k1_la-secp256k1.lo CCLD libsecp256k1.la make[3]: Leaving directory '/home/user1/bitcoin/src/secp256k1' CXXLD bitcoind /usr/bin/ld: libbitcoin_server.a(libbitcoin_server_a-init.o): warning: relocation against `_ZTVN5boost6detail16thread_data_baseE' in read-only section `.text' /usr/bin/ld: libbitcoin_server.a(libbitcoin_server_a-init.o): in function `boost::detail::thread_data<AppInitMain(util::Ref const&, NodeContext&, interfaces::BlockAndHeaderTipInfo*)::{lambda()#2}>::~thread_data()': /usr/include/boost/thread/detail/thread.hpp:94: undefined reference to `boost::detail::thread_data_base::~thread_data_base()' /usr/bin/ld: libbitcoin_server.a(libbitcoin_server_a-init.o): in function `boost::detail::thread_data<AppInitMain(util::Ref const&, NodeContext&, interfaces::BlockAndHeaderTipInfo*)::{lambda()#3}>::~thread_data()': /usr/include/boost/thread/detail/thread.hpp:94: undefined reference to `boost::detail::thread_data_base::~thread_data_base()' /usr/bin/ld: libbitcoin_server.a(libbitcoin_server_a-init.o): in function `boost::detail::sp_counted_impl_p<boost::detail::thread_data<AppInitMain(util::Ref const&, NodeContext&, interfaces::BlockAndHeaderTipInfo*)::{lambda()#3}> >::dispose()': /usr/include/boost/thread/detail/thread.hpp:94: undefined reference to `boost::detail::thread_data_base::~thread_data_base()' /usr/bin/ld: libbitcoin_server.a(libbitcoin_server_a-init.o): in function `boost::detail::sp_counted_impl_p<boost::detail::thread_data<AppInitMain(util::Ref const&, NodeContext&, interfaces::BlockAndHeaderTipInfo*)::{lambda()#2}> >::dispose()': /usr/include/boost/thread/detail/thread.hpp:94: undefined reference to `boost::detail::thread_data_base::~thread_data_base()' /usr/bin/ld: libbitcoin_server.a(libbitcoin_server_a-init.o): in function `boost::filesystem::is_directory(boost::filesystem::path const&)': /usr/include/boost/filesystem/operations.hpp:164: undefined reference to `boost::filesystem::detail::status(boost::filesystem::path const&, boost::system::error_code*)' /usr/bin/ld: libbitcoin_server.a(libbitcoin_server_a-init.o): in function `boost::filesystem::exists(boost::filesystem::path const&)': /usr/include/boost/filesystem/operations.hpp:159: undefined reference to `boost::filesystem::detail::status(boost::filesystem::path const&, boost::system::error_code*)' /usr/bin/ld: libbitcoin_server.a(libbitcoin_server_a-init.o): in function `boost::thread_group::interrupt_all()': /usr/include/boost/thread/detail/thread_group.hpp:132: undefined reference to `boost::thread::interrupt()' /usr/bin/ld: libbitcoin_server.a(libbitcoin_server_a-init.o): in function `boost::thread_group::join_all()': /usr/include/boost/thread/detail/thread_group.hpp:118: undefined reference to `boost::thread::joinable() const' /usr/bin/ld: libbitcoin_server.a(libbitcoin_server_a-init.o): in function `boost::thread::get_id() const': /usr/include/boost/thread/detail/thread.hpp:716: undefined reference to `boost::thread::native_handle()' /usr/bin/ld: libbitcoin_server.a(libbitcoin_server_a-init.o): in function `boost::thread::join()': /usr/include/boost/thread/detail/thread.hpp:740: undefined reference to `boost::thread::join_noexcept()' /usr/bin/ld: libbitcoin_server.a(libbitcoin_server_a-init.o): in function `boost::filesystem::remove(boost::filesystem::path const&)': /usr/include/boost/filesystem/operations.hpp:377: undefined reference to `boost::filesystem::detail::remove(boost::filesystem::path const&, boost::system::error_code*)' /usr/bin/ld: libbitcoin_server.a(libbitcoin_server_a-init.o): in function `boost::filesystem::operator/(boost::filesystem::path const&, boost::filesystem::path const&)': /usr/include/boost/filesystem/path.hpp:807: undefined reference to `boost::filesystem::path::operator/=(boost::filesystem::path const&)' /usr/bin/ld: libbitcoin_server.a(libbitcoin_server_a-init.o): in function `boost::filesystem::exists(boost::filesystem::path const&)': /usr/include/boost/filesystem/operations.hpp:159: undefined reference to `boost::filesystem::detail::status(boost::filesystem::path const&, boost::system::error_code*)' /usr/bin/ld: libbitcoin_server.a(libbitcoin_server_a-init.o): in function `boost::thread::start_thread()': /usr/include/boost/thread/detail/thread.hpp:182: undefined reference to `boost::thread::start_thread_noexcept()' [...........] /usr/bin/ld: warning: creating DT_TEXTREL in a PIE collect2: error: ld returned 1 exit status make[2]: *** [Makefile:8166: bitcoind] Error 1 make[2]: Leaving directory '/home/user1/bitcoin/src' make[1]: *** [Makefile:18990: all-recursive] Error 1 make[1]: Leaving directory '/home/user1/bitcoin/src' make: *** [Makefile:797: all-recursive] Error 1 

What is it about and how to fix it?

submitted by /u/normalu_kaj225i
[link] [comments]

source https://www.reddit.com/r/btc/comments/ittpoz/compilation_from_the_source_code_error_in_boost/

No comments:

Post a Comment