You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After I relaxed the compiler constraints on building Caffe (i.e. allow to use C++ compilers other than GCC), I found that building with Clang (LLVM) fails due to linking issues:
$ sudo apt install clang-5.0
$ ck detect soft:compiler.llvm
$ ck pull repo:ck-caffe --url=https://github.com/dividiti/ck-caffe
$ ck install package:lib-caffe-intel-request-cpu
I see at least 2 different issues:
Due to Boost regex (tried with 1.65.1 an 1.66.0, both full and min-for-caffe):
[ 88%] Linking CXX executable device_query
../lib/libcaffe.so.1.1.0: undefined reference to `boost::re_detail_106600::put_mem_block(void*)'
../lib/libcaffe.so.1.1.0: undefined reference to `boost::re_detail_106600::cpp_regex_traits_implementation<char>::transform[abi:cxx11](char const*, char const*) const'
../lib/libcaffe.so.1.1.0: undefined reference to `boost::re_detail_106600::cpp_regex_traits_implementation<char>::transform_primary[abi:cxx11](char const*, char const*) const'
../lib/libcaffe.so.1.1.0: undefined reference to `boost::re_detail_106600::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::_matc
h_flags)'
../lib/libcaffe.so.1.1.0: undefined reference to `boost::re_detail_106600::get_default_error_string(boost::regex_constants::error_type)'
../lib/libcaffe.so.1.1.0: undefined reference to `boost::re_detail_106600::get_mem_block()'
../lib/libcaffe.so.1.1.0: undefined reference to `boost::re_detail_106600::verify_options(unsigned int, boost::regex_constants::_match_flags)'
../lib/libcaffe.so.1.1.0: undefined reference to `boost::re_detail_106600::raise_runtime_error(std::runtime_error const&)'
clang: error: linker command failed with exit code 1 (use -v to see invocation)
tools/CMakeFiles/device_query.dir/build.make:132: recipe for target 'tools/device_query' failed
make[2]: *** [tools/device_query] Error 1
CMakeFiles/Makefile2:664: recipe for target 'tools/CMakeFiles/device_query.dir/all' failed
make[1]: *** [tools/CMakeFiles/device_query.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
The text was updated successfully, but these errors were encountered:
psyhtest
changed the title
"ck install package:lib-caffe-intel-master-cpu" fails with LLVM 5.0
"ck install package:lib-caffe-intel-request-cpu" fails with LLVM 5.0
Feb 19, 2018
After I relaxed the compiler constraints on building Caffe (i.e. allow to use C++ compilers other than GCC), I found that building with Clang (LLVM) fails due to linking issues:
I see at least 2 different issues:
min-for-caffe
):The text was updated successfully, but these errors were encountered: