gunrock / graphblast

High-Performance Linear Algebra-based Graph Primitives on GPUs
Apache License 2.0
211 stars 27 forks source link

installation error #18

Closed whu-zhigao closed 4 years ago

whu-zhigao commented 4 years ago

Hi There,

I tried to install the code on my ubuntu-16.04 node, with gcc-4.8.5, cuda 9.0.

But I got the following errors. Hope you can let me know how to solve this problem. mkdir -p bin nvcc -g -gencode arch=compute_60,code=compute_60 -O3 -use_fast_math -w -std=c++11 -o bin/gbfs example/gbfs.cu -Iext/moderngpu/include/ -Iext/cub/cub/ -Iext/boost_1_58_/ -I./ ext/moderngpu/src/mgpucontext.cu ext/moderngpu/src/mgpuutil.cpp -Lext/boost_1_58_0/stage/lib/ -lboost_program_options -lcublas -lcusparse -lcurand /tmp/tmpxft_0000012c_00000000-13_gbfs.o: In functionboost::program_options::variables_map::operator[](std::string const&) const': /usr/include/boost/program_options/variables_map.hpp:155: undefined reference to boost::program_options::abstract_variables_map::operator[](std::string const&) const' /usr/include/boost/program_options/variables_map.hpp:155: undefined reference toboost::program_options::abstract_variables_map::operator[](std::string const&) const' /usr/include/boost/program_options/variables_map.hpp:155: undefined reference to boost::program_options::abstract_variables_map::operator[](std::string const&) const' /usr/include/boost/program_options/variables_map.hpp:155: undefined reference toboost::program_options::abstract_variables_map::operator[](std::string const&) const' /usr/include/boost/program_options/variables_map.hpp:155: undefined reference to boost::program_options::abstract_variables_map::operator[](std::string const&) const' /tmp/tmpxft_0000012c_00000000-13_gbfs.o:/usr/include/boost/program_options/variables_map.hpp:155: more undefined references toboost::program_options::abstract_variables_map::operator[](std::string const&) const' follow /tmp/tmpxft_0000012c_00000000-13_gbfs.o: In function parseArgs(int, char**, boost::program_options::variables_map*)': /vpublic01/frog/zhengzhigao/addtest/graphblast/./graphblas/util.hpp:41: undefined reference toboost::program_options::options_description::options_description(std::string const&, unsigned int, unsigned int)' /tmp/tmpxft_0000012c_00000000-13_gbfs.o: In function boost::program_options::typed_value<std::string, char>::xparse(boost::any&, std::vector<std::string, std::allocator<std::string> > const&) const': /usr/include/boost/program_options/detail/value_semantic.hpp:167: undefined reference toboost::program_options::validate(boost::any&, std::vector<std::string, std::allocator > const&, std::string, int)' /tmp/tmpxft_0000012c_00000000-13_gbfs.o: In function boost::program_options::typed_value<bool, char>::xparse(boost::any&, std::vector<std::string, std::allocator<std::string> > const&) const': /usr/include/boost/program_options/detail/value_semantic.hpp:167: undefined reference toboost::program_options::validate(boost::any&, std::vector<std::string, std::allocator > const&, bool, int)' /tmp/tmpxft_0000012c_00000000-13_gbfs.o: In function boost::program_options::validation_error::validation_error(boost::program_options::validation_error::kind_t, std::string const&, std::string const&, int)': /usr/include/boost/program_options/errors.hpp:372: undefined reference toboost::program_options::validation_error::get_template(boost::program_options::validation_error::kind_t)' /usr/include/boost/program_options/errors.hpp:372: 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/tmpxft_0000012c_00000000-13_gbfs.o: In functionboost::program_options::variables_map::operator[](std::string const&) const': /usr/include/boost/program_options/variables_map.hpp:155: undefined reference to boost::program_options::abstract_variables_map::operator[](std::string const&) const' /usr/include/boost/program_options/variables_map.hpp:155: undefined reference toboost::program_options::abstract_variables_map::operator[](std::string const&) const' /usr/include/boost/program_options/variables_map.hpp:155: undefined reference to boost::program_options::abstract_variables_map::operator[](std::string const&) const' /usr/include/boost/program_options/variables_map.hpp:155: undefined reference toboost::program_options::abstract_variables_map::operator[](std::string const&) const' /usr/include/boost/program_options/variables_map.hpp:155: undefined reference to boost::program_options::abstract_variables_map::operator[](std::string const&) const' /tmp/tmpxft_0000012c_00000000-13_gbfs.o:/usr/include/boost/program_options/variables_map.hpp:155: more undefined references toboost::program_options::abstract_variables_map::operator[](std::string const&) const' follow /tmp/tmpxft_0000012c_00000000-13_gbfs.o: In function boost::program_options::typed_value<float, char>::name() const': /usr/include/boost/program_options/detail/value_semantic.hpp:19: undefined reference toboost::program_options::arg' /tmp/tmpxft_0000012c_00000000-13_gbfs.o: In function boost::program_options::typed_value<bool, char>::name() const': /usr/include/boost/program_options/detail/value_semantic.hpp:19: undefined reference toboost::program_options::arg' /tmp/tmpxft_0000012c_00000000-13_gbfs.o: In function boost::program_options::typed_value<std::string, char>::name() const': /usr/include/boost/program_options/detail/value_semantic.hpp:19: undefined reference toboost::program_options::arg' /tmp/tmpxft_0000012c_00000000-13_gbfs.o: In function boost::program_options::typed_value<int, char>::name() const': /usr/include/boost/program_options/detail/value_semantic.hpp:19: undefined reference toboost::program_options::arg' /tmp/tmpxft_0000012c_00000000-13_gbfs.o: In function to_internal<std::basic_string<char> >': /usr/include/boost/program_options/detail/convert.hpp:79: undefined reference toboost::program_options::to_internal(std::string const&)' /tmp/tmpxft_0000012c_00000000-13_gbfs.o: In function basic_command_line_parser': /usr/include/boost/program_options/detail/parsers.hpp:39: undefined reference toboost::program_options::detail::cmdline::cmdline(std::vector<std::string, std::allocator > const&)' /tmp/tmpxft_0000012c_00000000-13_gbfs.o: In function boost::program_options::basic_command_line_parser<char>::extra_parser(boost::function1<std::pair<std::string, std::string>, std::string const&>)': /usr/include/boost/program_options/detail/parsers.hpp:77: undefined reference toboost::program_options::detail::cmdline::set_additional_parser(boost::function1<std::pair<std::string, std::string>, std::string const&>)' /tmp/tmpxft_0000012c_00000000-13_gbfs.o: In function to_internal<std::basic_string<char> >': /usr/include/boost/program_options/detail/convert.hpp:79: undefined reference toboost::program_options::to_internal(std::string const&)' /tmp/tmpxft_0000012c_00000000-13_gbfs.o: In function void boost::program_options::validate<int, char>(boost::any&, std::vector<std::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::basic_string<char, std::char_traits<char>, std::allocator<char> > > > const&, int*, long)': /usr/include/boost/program_options/detail/value_semantic.hpp:92: undefined reference toboost::program_options::invalid_option_value::invalid_option_value(std::string const&)' /tmp/tmpxft_0000012c_00000000-13_gbfs.o: In function void boost::program_options::validate<float, char>(boost::any&, std::vector<std::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::basic_string<char, std::char_traits<char>, std::allocator<char> > > > const&, float*, long)': /usr/include/boost/program_options/detail/value_semantic.hpp:92: undefined reference toboost::program_options::invalid_option_value::invalid_option_value(std::string const&)' /tmp/tmpxft_0000012c_00000000-13_gbfs.o:(.rodata._ZTVN5boost16exception_detail19error_info_injectorINS_15program_options20invalid_option_valueEEE[_ZTVN5boost16exception_detail19error_info_injectorINS_15program_options20invalid_option_valueEEE]+0x30): undefined reference to boost::program_options::error_with_option_name::substitute_placeholders(std::string const&) const' /tmp/tmpxft_0000012c_00000000-13_gbfs.o:(.rodata._ZTVN5boost16exception_detail10clone_implINS0_19error_info_injectorINS_15program_options20invalid_option_valueEEEEE[_ZTVN5boost16exception_detail10clone_implINS0_19error_info_injectorINS_15program_options20invalid_option_valueEEEEE]+0x38): undefined reference toboost::program_options::error_with_option_name::substitute_placeholders(std::string const&) const' /tmp/tmpxft_0000012c_00000000-13_gbfs.o:(.rodata._ZTVN5boost16exception_detail19error_info_injectorINS_15program_options16validation_errorEEE[_ZTVN5boost16exception_detail19error_info_injectorINS_15program_options16validation_errorEEE]+0x30): undefined reference to boost::program_options::error_with_option_name::substitute_placeholders(std::string const&) const' /tmp/tmpxft_0000012c_00000000-13_gbfs.o:(.rodata._ZTVN5boost16exception_detail10clone_implINS0_19error_info_injectorINS_15program_options16validation_errorEEEEE[_ZTVN5boost16exception_detail10clone_implINS0_19error_info_injectorINS_15program_options16validation_errorEEEEE]+0x38): undefined reference toboost::program_options::error_with_option_name::substitute_placeholders(std::string const&) const' /tmp/tmpxft_0000012c_00000000-13_gbfs.o:(.rodata._ZTVN5boost15program_options16validation_errorE[_ZTVN5boost15program_options16validation_errorE]+0x30): undefined reference to boost::program_options::error_with_option_name::substitute_placeholders(std::string const&) const' /tmp/tmpxft_0000012c_00000000-13_gbfs.o:(.rodata._ZTVN5boost15program_options20invalid_option_valueE[_ZTVN5boost15program_options20invalid_option_valueE]+0x30): more undefined references toboost::program_options::error_with_option_name::substitute_placeholders(std::string const&) const' follow /tmp/tmpxft_0000012c_00000000-13_gbfs.o:(.rodata._ZTVN5boost15program_options11typed_valueIicEE[_ZTVN5boost15program_options11typed_valueIicEE]+0x38): 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/tmpxft_0000012c_00000000-13_gbfs.o:(.rodata._ZTVN5boost15program_options11typed_valueISscEE[_ZTVN5boost15program_options11typed_valueISscEE]+0x38): undefined reference toboost::program_options::value_semantic_codecvt_helper::parse(boost::any&, std::vector<std::string, std::allocator > const&, bool) const' /tmp/tmpxft_0000012c_00000000-13_gbfs.o:(.rodata._ZTVN5boost15program_options11typed_valueIbcEE[_ZTVN5boost15program_options11typed_valueIbcEE]+0x38): 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/tmpxft_0000012c_00000000-13_gbfs.o:(.rodata._ZTVN5boost15program_options11typed_valueIfcEE[_ZTVN5boost15program_options11typed_valueIfcEE]+0x38): undefined reference toboost::program_options::value_semantic_codecvt_helper::parse(boost::any&, std::vector<std::string, std::allocator > const&, bool) const' collect2: error: ld returned 1 exit status Makefile:17: recipe for target 'gbfs' failed make: *** [gbfs] Error 1`

whu-zhigao commented 4 years ago

The problem solved, just because I used the wrong boost lib path.

Thanks