Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compile Error in Ubuntu 18 #48

Open
hasanaliqureshi opened this issue Dec 13, 2018 · 1 comment
Open

Compile Error in Ubuntu 18 #48

hasanaliqureshi opened this issue Dec 13, 2018 · 1 comment

Comments

@hasanaliqureshi
Copy link

I am getting this error.

[ 32%] Linking CXX executable simplewallet
/tmp/ccxyoo3U.ltrans0.ltrans.o: In function `void command_line::add_arg<bool, false>(boost::program_options::options_description&, command_line::arg_descriptor<bool, false> const&, bool) [clone .local.3211] [clone .constprop.4554]':
<artificial>:(.text+0x777b): undefined reference to `boost::program_options::options_description::find_nothrow(std::string const&, bool, bool, bool) const'
/tmp/ccxyoo3U.ltrans1.ltrans.o: In function `boost::program_options::typed_value<std::string, char>::name() const [clone .local.3141]':
<artificial>:(.text+0xa23): undefined reference to `boost::program_options::arg'
/tmp/ccxyoo3U.ltrans1.ltrans.o: In function `boost::program_options::typed_value<unsigned short, char>::name() const [clone .local.3142]':
<artificial>:(.text+0xd93): undefined reference to `boost::program_options::arg'
/tmp/ccxyoo3U.ltrans1.ltrans.o: In function `boost::program_options::typed_value<std::vector<std::string, std::allocator<std::string> >, char>::name() const [clone .local.3143]':
<artificial>:(.text+0x1103): undefined reference to `boost::program_options::arg'
/tmp/ccxyoo3U.ltrans1.ltrans.o: In function `boost::program_options::typed_value<unsigned int, char>::name() const [clone .local.3144]':
<artificial>:(.text+0x1473): undefined reference to `boost::program_options::arg'
/tmp/ccxyoo3U.ltrans1.ltrans.o: In function `std::string command_line::get_arg<std::string, false>(boost::program_options::variables_map const&, command_line::arg_descriptor<std::string, false> const&) [clone .isra.367.21237]':
<artificial>:(.text+0x5ff0): undefined reference to `boost::program_options::abstract_variables_map::operator[](std::string const&) const'
/tmp/ccxyoo3U.ltrans1.ltrans.o: In function `unsigned short command_line::get_arg<unsigned short, false>(boost::program_options::variables_map const&, command_line::arg_descriptor<unsigned short, false> const&) [clone .isra.368.21244] [clone .constprop.4484]':
<artificial>:(.text+0x60dd): undefined reference to `boost::program_options::abstract_variables_map::operator[](std::string const&) const'
/tmp/ccxyoo3U.ltrans1.ltrans.o: In function `bool command_line::get_arg<bool, false>(boost::program_options::variables_map const&, command_line::arg_descriptor<bool, false> const&) [clone .isra.365.21230]':
<artificial>:(.text+0x61c8): undefined reference to `boost::program_options::abstract_variables_map::operator[](std::string const&) const'
/tmp/ccxyoo3U.ltrans1.ltrans.o: In function `bool command_line::has_arg<std::string, false>(boost::program_options::variables_map const&, command_line::arg_descriptor<std::string, false> const&) [clone .isra.102.19415]':
<artificial>:(.text+0x891e): undefined reference to `boost::program_options::abstract_variables_map::operator[](std::string const&) const'
/tmp/ccxyoo3U.ltrans1.ltrans.o: In function `boost::program_options::basic_command_line_parser<char>::basic_command_line_parser(int, char const* const*) [clone .local.2703.28841]':
<artificial>:(.text+0xa39a): undefined reference to `boost::program_options::to_internal(std::string const&)'
<artificial>:(.text+0xa3e0): undefined reference to `boost::program_options::detail::cmdline::cmdline(std::vector<std::string, std::allocator<std::string> > const&)'
/tmp/ccxyoo3U.ltrans1.ltrans.o: In function `boost::program_options::typed_value<std::string, char>::xparse(boost::any&, std::vector<std::string, std::allocator<std::string> > const&) const [clone .local.3235]':
<artificial>:(.text+0x3a99): undefined reference to `boost::program_options::validate(boost::any&, std::vector<std::string, std::allocator<std::string> > const&, std::string*, int)'
/tmp/ccxyoo3U.ltrans2.ltrans.o: In function `boost::program_options::validation_error::validation_error(boost::program_options::validation_error::kind_t, std::string const&, std::string const&, int) [clone .local.3217.38158]':
<artificial>:(.text+0xdbfa): undefined reference to `boost::program_options::validation_error::get_template(boost::program_options::validation_error::kind_t)'
<artificial>:(.text+0xdc12): undefined reference to `boost::program_options::error_with_option_name::error_with_option_name(std::string const&, std::string const&, std::string const&, int)'
/tmp/ccxyoo3U.ltrans27.ltrans.o: In function `main':
<artificial>:(.text.startup+0x64): undefined reference to `boost::program_options::options_description::options_description(std::string const&, unsigned int, unsigned int)'
<artificial>:(.text.startup+0xc9): undefined reference to `boost::program_options::options_description::options_description(std::string const&, unsigned int, unsigned int)'
<artificial>:(.text.startup+0x17e): undefined reference to `boost::program_options::options_description::find_nothrow(std::string const&, bool, bool, bool) const'
<artificial>:(.text.startup+0x1f7): undefined reference to `boost::program_options::options_description::find_nothrow(std::string const&, bool, bool, bool) const'
<artificial>:(.text.startup+0x75c): undefined reference to `boost::program_options::abstract_variables_map::operator[](std::string const&) const'
<artificial>:(.text.startup+0x7d5): undefined reference to `boost::program_options::abstract_variables_map::operator[](std::string const&) const'
<artificial>:(.text.startup+0xde0): undefined reference to `boost::program_options::abstract_variables_map::operator[](std::string const&) const'
<artificial>:(.text.startup+0xf15): undefined reference to `boost::program_options::abstract_variables_map::operator[](std::string const&) const'
/tmp/ccxyoo3U.ltrans27.ltrans.o:(.rodata+0x58): undefined reference to `boost::program_options::value_semantic_codecvt_helper<char>::parse(boost::any&, std::vector<std::string, std::allocator<std::string> > const&, bool) const'
/tmp/ccxyoo3U.ltrans27.ltrans.o:(.rodata+0x1f8): undefined reference to `boost::program_options::value_semantic_codecvt_helper<char>::parse(boost::any&, std::vector<std::string, std::allocator<std::string> > const&, bool) const'
/tmp/ccxyoo3U.ltrans4.ltrans.o: In function `void command_line::add_arg<std::string, false>(boost::program_options::options_description&, command_line::arg_descriptor<std::string, false> const&, bool) [clone .local.2773] [clone .constprop.4503]':
<artificial>:(.text+0x49bd): undefined reference to `boost::program_options::options_description::find_nothrow(std::string const&, bool, bool, bool) const'
/tmp/ccxyoo3U.ltrans4.ltrans.o:(.rodata+0x2b8): undefined reference to `boost::program_options::value_semantic_codecvt_helper<char>::parse(boost::any&, std::vector<std::string, std::allocator<std::string> > const&, bool) const'
/tmp/ccxyoo3U.ltrans5.ltrans.o: In function `boost::program_options::typed_value<std::vector<std::string, std::allocator<std::string> >, char>::xparse(boost::any&, std::vector<std::string, std::allocator<std::string> > const&) const [clone .local.2423]':
<artificial>:(.text+0x8093): undefined reference to `boost::program_options::validate(boost::any&, std::vector<std::string, std::allocator<std::string> > const&, std::string*, int)'
<artificial>:(.text+0x82ed): undefined reference to `boost::program_options::invalid_option_value::invalid_option_value(std::string const&)'
/tmp/ccxyoo3U.ltrans5.ltrans.o: In function `boost::program_options::typed_value<unsigned int, char>::xparse(boost::any&, std::vector<std::string, std::allocator<std::string> > const&) const [clone .local.2425]':
<artificial>:(.text+0x93d3): undefined reference to `boost::program_options::invalid_option_value::invalid_option_value(std::string const&)'
/tmp/ccxyoo3U.ltrans5.ltrans.o: In function `boost::program_options::typed_value<unsigned short, char>::xparse(boost::any&, std::vector<std::string, std::allocator<std::string> > const&) const [clone .local.2421]':
<artificial>:(.text+0x99d6): undefined reference to `boost::program_options::invalid_option_value::invalid_option_value(std::string const&)'
/tmp/ccxyoo3U.ltrans6.ltrans.o: In function `Tools::wallet_rpc_server::handle_command_line(boost::program_options::variables_map const&)':
<artificial>:(.text+0x60b6): undefined reference to `boost::program_options::abstract_variables_map::operator[](std::string const&) const'
<artificial>:(.text+0x6170): undefined reference to `boost::program_options::abstract_variables_map::operator[](std::string const&) const'
/tmp/ccxyoo3U.ltrans11.ltrans.o: In function `void command_line::add_arg<unsigned short, false>(boost::program_options::options_description&, command_line::arg_descriptor<unsigned short, false> const&, bool) [clone .local.2622] [clone .constprop.4475]':
<artificial>:(.text+0x3c00): undefined reference to `boost::program_options::options_description::find_nothrow(std::string const&, bool, bool, bool) const'
/tmp/ccxyoo3U.ltrans11.ltrans.o:(.rodata+0x490): undefined reference to `boost::program_options::error_with_option_name::substitute_placeholders(std::string const&) const'
/tmp/ccxyoo3U.ltrans11.ltrans.o:(.rodata+0x4f0): undefined reference to `boost::program_options::error_with_option_name::substitute_placeholders(std::string const&) const'
/tmp/ccxyoo3U.ltrans11.ltrans.o:(.rodata+0x538): undefined reference to `boost::program_options::error_with_option_name::substitute_placeholders(std::string const&) const'
/tmp/ccxyoo3U.ltrans11.ltrans.o:(.rodata+0x5f0): undefined reference to `boost::program_options::error_with_option_name::substitute_placeholders(std::string const&) const'
/tmp/ccxyoo3U.ltrans11.ltrans.o:(.rodata+0x658): undefined reference to `boost::program_options::error_with_option_name::substitute_placeholders(std::string const&) const'
/tmp/ccxyoo3U.ltrans11.ltrans.o:(.rodata+0x710): more undefined references to `boost::program_options::error_with_option_name::substitute_placeholders(std::string const&) const' follow
/tmp/ccxyoo3U.ltrans11.ltrans.o:(.rodata+0x7d8): undefined reference to `boost::program_options::value_semantic_codecvt_helper<char>::parse(boost::any&, std::vector<std::string, std::allocator<std::string> > const&, bool) const'
collect2: error: ld returned 1 exit status
src/CMakeFiles/SimpleWallet.dir/build.make:141: recipe for target 'src/simplewallet' failed
make[3]: *** [src/simplewallet] Error 1
make[3]: Leaving directory '/home/hasan/Desktop/GitCoin/GitCoin/build/release'
CMakeFiles/Makefile2:343: recipe for target 'src/CMakeFiles/SimpleWallet.dir/all' failed
make[2]: *** [src/CMakeFiles/SimpleWallet.dir/all] Error 2
make[2]: Leaving directory '/home/hasan/Desktop/GitCoin/GitCoin/build/release'
Makefile:94: recipe for target 'all' failed
make[1]: *** [all] Error 2
make[1]: Leaving directory '/home/hasan/Desktop/GitCoin/GitCoin/build/release'
Makefile:20: recipe for target 'build-release' failed
make: *** [build-release] Error 2
aivve added a commit to aivve/KarbowanecWallet that referenced this issue Jun 21, 2021
@JoshuaPaulBarnard
Copy link

There has been an active issue for over 5 years now when trying to build the source on modern compilers.
The best solution (without updating the actual code) is to simulate the original build environment, Which is Ubuntu 14.04 with the Dependencies of: GCC 4.7.3 or later, CMake 2.8.6 or later, and Boost 1.55.

I was able to compile my CryptoNote Coin using Windows 10 and made a guide and posted it to my blog: https://joshuapaulbarnard.tech.blog/2023/10/04/how-to-compile-a-cryptonote-coin-on-windows-10-11/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants