make error with gcc 7.4 in ubuntu 18.04
silveric10 opened this issue · 1 comments
Hi all, I got those errors:
[ 23%] Building CXX object CMakeFiles/FizzTool.dir/tool/FizzServerCommand.cpp.o
[ 24%] Linking CXX executable bin/fizz
/usr/bin/ld: warning: libboost_context.so.1.58.0, needed by /usr/local/lib/libfolly.so, not found (try using -rpath or -rpath-link)
/usr/bin/ld: warning: libboost_filesystem.so.1.58.0, needed by /usr/local/lib/libfolly.so, not found (try using -rpath or -rpath-link)
/usr/bin/ld: warning: libboost_program_options.so.1.58.0, needed by /usr/local/lib/libfolly.so, not found (try using -rpath or -rpath-link)
/usr/bin/ld: warning: libboost_regex.so.1.58.0, needed by /usr/local/lib/libfolly.so, not found (try using -rpath or -rpath-link)
/usr/bin/ld: warning: libboost_system.so.1.58.0, needed by /usr/local/lib/libfolly.so, not found (try using -rpath or -rpath-link)
/usr/bin/ld: warning: libevent-2.0.so.5, needed by /usr/local/lib/libfolly.so, not found (try using -rpath or -rpath-link)
/usr/bin/ld: warning: libssl.so.1.0.0, needed by /usr/local/lib/libfolly.so, may conflict with libssl.so.1.1
/usr/bin/ld: warning: libcrypto.so.1.0.0, needed by /usr/local/lib/libfolly.so, may conflict with libcrypto.so.1.1
/usr/local/lib/libfolly.so: undefined reference to boost::re_detail::perl_matcher<char const*, std::allocator<boost::sub_match<char const*> >, boost::regex_traits<char, boost::cpp_regex_traits<char> > >::find()' /usr/local/lib/libfolly.so: undefined reference to
boost::re_detail::perl_matcher<char const*, std::allocator<boost::sub_match<char const*> >, boost::regex_traits<char, boost::cpp_regex_traits > >::match()'
/usr/local/lib/libfolly.so: undefined reference to boost::re_detail::perl_matcher<char const*, std::allocator<boost::sub_match<char const*> >, boost::regex_traits<char, boost::cpp_regex_traits<char> > >::construct_init(boost::basic_regex<char, boost::regex_traits<char, boost::cpp_regex_traits<char> > > const&, boost::regex_constants::_match_flags)' /usr/local/lib/libfolly.so: undefined reference to
boost::re_detail::perl_matcher<__gnu_cxx::__normal_iterator<char const*, std::__cxx11::basic_string<char, std::char_traits, std::allocator > >, std::allocator<boost::sub_match<__gnu_cxx::__normal_iterator<char const*, std::__cxx11::basic_string<char, std::char_traits, std::allocator > > > >, boost::regex_traits<char, boost::cpp_regex_traits > >::find()'
/usr/local/lib/libfolly.so: undefined reference to boost::re_detail::perl_matcher<__gnu_cxx::__normal_iterator<char const*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >, std::allocator<boost::sub_match<__gnu_cxx::__normal_iterator<char const*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > > >, boost::regex_traits<char, boost::cpp_regex_traits<char> > >::construct_init(boost::basic_regex<char, boost::regex_traits<char, boost::cpp_regex_traits<char> > > const&, boost::regex_constants::_match_flags)' /usr/local/lib/libfolly.so: undefined reference to
boost::re_detail::perl_matcher<__gnu_cxx::__normal_iterator<char const*, std::__cxx11::basic_string<char, std::char_traits, std::allocator > >, std::allocator<boost::sub_match<__gnu_cxx::__normal_iterator<char const*, std::__cxx11::basic_string<char, std::char_traits, std::allocator > > > >, boost::regex_traits<char, boost::cpp_regex_traits > >::match()'
collect2: error: ld returned 1 exit status
CMakeFiles/FizzTool.dir/build.make:198: recipe for target 'bin/fizz' failed
make[2]: *** [bin/fizz] Error 1
CMakeFiles/Makefile2:67: recipe for target 'CMakeFiles/FizzTool.dir/all' failed
make[1]: *** [CMakeFiles/FizzTool.dir/all] Error 2
Makefile:140: recipe for target 'all' failed
make: *** [all] Error 2
Can you help? Thank you.
OK, that is because I did not install folly correctly last time. Anyone has the same issue can try to reinstall folly.