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

caffe make fails with error undefined reference to 'void caffe::hdf5_load_nd_dataset...' \ 'caffe::hdf5_get_name_by_idx[...] \ ''void caffe::hdf5_save_nd_dataset... ' #6804

Open
Shaqkhaleel opened this issue Jul 18, 2019 · 0 comments

Comments

@Shaqkhaleel
Copy link

commented Jul 18, 2019

I am trying to compile and use the latest version of caffe , but I'm getting these errors

$sudo make all -j8
CXX/LD -o .build_release/tools/extract_features.bin
CXX/LD -o .build_release/tools/convert_imageset.bin
CXX/LD -o .build_release/tools/caffe.bin
CXX/LD -o .build_release/tools/upgrade_net_proto_text.bin
CXX/LD -o .build_release/tools/compute_image_mean.bin
CXX/LD -o .build_release/tools/upgrade_net_proto_binary.bin
CXX/LD -o .build_release/tools/upgrade_solver_proto_text.bin
CXX/LD -o .build_release/examples/mnist/convert_mnist_data.bin
..build_release/.libbuild_release/libcaffe.so:/lib undefined/ referencelibcaffe.so: tobuild_release void caffe:/:libhdf5_load_nd_dataset/<libcaffe.so: undefinedundefined double>reference to reference voidto caffe ::void hdf5_load_nd_dataset<caffe:double>:hdf5_load_nd_dataset(long<double, >char (long(, charconst* constlong*,, int,, intchar, constcaffe:*, intint, int, caffe::Blob:<,double>*, bool)Blob' .build_release/lib/libcaffe.so :int ,undefined reference <to double>caffe::hdf5_get_name_by_idxcaffe[abi:cxx11,](long :, int)'bool
.build_release/lib/libcaffe.so)'
.build_release/lib/libcaffe.so: undefined reference to caffe::hdf5_get_name_by_idx[abi:cxx11](long, int)' .build_release/lib/libcaffe.so: undefined reference to void: undefined reference to void caffe::hdf5_load_nd_dataset<float>(long, char const*, int, int, caffe::Blob<float>*, bool)' .build_release/lib/libcaffe.so: undefined reference to void caffe::hdf5_save_nd_dataset(long, std::__cxx11::basic_string<char, std::char_traits, std::allocator > const&, caffe::Blob const&, bool)'
.build_release/lib/libcaffe.so: undefined reference to caffe::hdf5_get_num_links(long)' .build_release/lib/libcaffe.so: undefined reference to void caffe::hdf5_save_nd_dataset(long, std::__cxx11::basic_string<char, std::char_traits, std::allocator > const&,:Blob
, bool)'
.build_release/lib/libcaffe.so: undefined reference to caffe::hdf5_get_name_by_idx[abi:cxx11](long, int)' .build_release/lib/libcaffe.so: undefined reference to void caffe::hdf5_load_nd_dataset<floatcaffe::hdf5_load_nd_dataset(long, char const*, int,>(long, char const*, int, int, caffe::Blob, bool)'
.build_release/lib/libcaffe.so: undefinedint, caffe::Blob
, bool)'
.build_release/lib/libcaffe.so: undefined reference to void caffe::hdf5_save_nd_dataset<float>(long, std reference to void caffe::hdf5_save_nd_dataset(long, std::__cxx11::basic_string<char, std::char_traits, std::allocator > const&, caffe::Blob const&, bool)'
.build_release/lib/libcaffe.so: undefined reference to caffe::hdf5_get_num_links(long)' .build_release/lib/libcaffe.so: undefined::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, caffe::Blob<float> const&, bool)' .build_release/lib/libcaffe.so: undefined reference to caffe::hdf5_get_num_links(long)'
.build_release/lib/libcaffe.so: undefined reference to void caffe::hdf5_save_nd_dataset<double>(long, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator< reference to void caffe::hdf5_save_nd_dataset(long, std::__cxx11::basic_string<char, std::char_traits, std::allocatorchar> > const&, caffe::Blob const&, > const&, caffe::Blob const&, bool)'
collect2: error: ld returned 1 exit status

  • Operating system: ubuntu 18.04
  • Compiler: g++
  • CUDA version (if applicable): NO
  • CUDNN version (if applicable): NO
  • BLAS: open
  • Python version (if using pycaffe): python 2.7
  • MATLAB version (if using matcaffe): NO
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
1 participant
You can’t perform that action at this time.