Boost build issue (sp_counted_impl_pda)
/opt/local/include/boost/smart_ptr/detail/sp_counted_impl.hpp:231:48: error: 'sp_counted_impl_pda' does not refer to a type name in pseudo-destructor expression; expected the name of type 'sp_counted_impl_pda<P, D, A>' this->detail::sp_counted_impl_pda< P, D, A> ::~sp_counted_impl_pda();
Running Mac OS X 10.9.3 with Boost version 1.55
Hi, I'm having the same error. I installed all the packages according to the instructions. When I run make all in the caffe directory I get the following errors:
/Library/Frameworks/EPD64.framework/Versions/Current/include/boost/smart_ptr/detail/sp_counted_impl.hpp:231:48: error: 'sp_counted_impl_pda' does not refer to a type name in pseudo-destructor expression; expected the name of type 'sp_counted_impl_pda<P, D, A>' this->detail::sp_counted_impl_pda< P, D, A> ::~sp_counted_impl_pda();
and the following warnings: /Library/Frameworks/EPD64.framework/Versions/Current/include/boost/smart_ptr/detail/sp_counted_base_gcc_x86.hpp(65): warning: "cc" clobber ignored /Library/Frameworks/EPD64.framework/Versions/Current/include/boost/smart_ptr/detail/sp_counted_base_gcc_x86.hpp(75): warning: variable "tmp" was set but never used
and the following files don't compile successfully: make: *** [build/src/caffe/layers/conv_layer.cuo] Error 1 make: *** [build/src/caffe/layers/bnll_layer.cuo] Error 1 make: *** [build/src/caffe/layers/concat_layer.cuo] Error 1 make: *** [build/src/caffe/layers/dropout_layer.cuo] Error 1 make: *** [build/src/caffe/layers/flatten_layer.cuo] Error 1 make: *** [build/src/caffe/layers/eltwise_product_layer.cuo] Error 1 make: *** [build/src/caffe/layers/hdf5_data_layer.cuo] Error 1 make: *** [build/src/caffe/layers/data_layer.cuo] Error 1
I'm the epd python distribution on a OS X 10.9.3 (13D65) with boost 1.55 installed using the following command: brew install --build-from-source --with-python --fresh -vd boost after adding the required lines using brew edit boost
Hi, I am having the same error. Have you figured out how to solve it?
I had the same error a few days ago. Then I downloaded Boost from its official website, compiled myself and solved it. Hope it helps.
Hi, Thank you for the reply. I will try it out. I also have issue #617. Did you by any chance have a similar issue? Thanks in advance
That seems to be related to protobuf. In fact, I first installed all the dependencies using Macports(with which I normally install tools) and encountered many reference errors in linking. Then I compiled opencv, leveldb, protobuf and boost myself and solved the errors.
Also, if you are on Mavericks, make sure to link to the correct std library as indicated in the instruction.
Hi, I am on Mavericks and have followed the instructions (using Homebrew). I am unable to figure out what is wrong.
The error specifically says
ld: warning: directory not found for option '-L/usr/local/cuda/lib64'
Undefined symbols for architecture x86_64:
"google::protobuf::MessageLite::ParseFromString(std::string const&)", referenced from:
caffe::DataLayer
Is this an opencv problem or a protobuf or anything else?
And do you suggest that I uninstall everything and retry without using Homebrew?
Thank you for your time
It is clear related to linking protobuf library. The possible causes are:
- you have not installed libprotobuf.dylib on your mac
- the compile command has no -lprotobuf option
- the environmental variable DYLD_LIBRARY_PATH doesn't include the path of libprotobuf.dylib or the compile command has no -L/path/to/libprotobuf
- other than those, libprotobuf.dylib is not properly compiled that doesn't have some functions
Hi, Thank you for your help. I just reinstalled the libraries and it got past the make all and make test (with a lot of warnings though). But make runtest is giving me the following error
build/test/test_all.testbin 0 --gtest_shuffle dyld: Library not loaded: @rpath/libcudart.6.0.dylib Referenced from: /Users/sujay.n/Documents/Deep Learning Tutorials/caffe-master/build/test/test_all.testbin Reason: image not found make: *** [runtest] Trace/BPT trap: 5
Can you suggest what I should do?
Also, should I start a new discussion for this issue or can I continue it here?
try add your cuda path to DYLD_LIBRARY_PATH
I mean cuda library path. It may be something like /Developer/Nvidia/CUDA-6.0/lib
Hi, I did that using this command: export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/cuda/lib which I read is a temporary fix.
However make runtest says build/test/test_all.testbin 0 --gtest_shuffle dyld: Library not loaded: libhdf5_hl.7.dylib Referenced from: /Users/sujay.n/Documents/Deep Learning Tutorials/caffe-master/build/test/test_all.testbin Reason: image not found make: *** [runtest] Trace/BPT trap: 5
I have libhdf5_hl.8.dylib installed in usr/local/lib. When I add this to Path using LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib, the error still remains. So i just changed the name of libhdf5_hl.8.dylib to libhdf5_hl.7.dylib and it seems to work. Is there any other solution??
But I get another error which says dyld: Symbol not found: __cg_jpeg_resync_to_restart Referenced from: /System/Library/Frameworks/ImageIO.framework/Versions/A/ImageIO Expected in: /usr/local/lib/libjpeg.8.dylib in /System/Library/Frameworks/ImageIO.framework/Versions/A/ImageIO make: *** [runtest] Trace/BPT trap: 5
Any suggestions? Thanks
The compiled code is looking for libhdf5_hl.7.dylib while you have libhdf5_hl.8.dylib
Sergio
2014-07-17 11:33 GMT-07:00 sujaynarumanchi [email protected]:
Hi, I did that using this command: export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/cuda/lib which I read is a temporary fix.
However make runtest says build/test/test_all.testbin 0 --gtest_shuffle dyld: Library not loaded: libhdf5_hl.7.dylib
Referenced from: /Users/sujay.n/Documents/Deep Learning Tutorials/caffe-master/build/test/test_all.testbin Reason: image not found make: *** [runtest] Trace/BPT trap: 5
I have libhdf5_hl.8.dylib installed in usr/local/lib. When I add this to Path using LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib, the error still remains. Any suggestions? Thanks you once again :)
— Reply to this email directly or view it on GitHub https://github.com/BVLC/caffe/issues/461#issuecomment-49345876.
Hi,
I understand. So should I uninstall libhdf5_hl.8 and get libhdf5_hl.7? I ran "unset DYLD_LIBRARY_PATH" on the terminal and then ran make runtest and this is my error

Any suggestions? Thanks in advance
I mean when you compile and run the code should use the same libraries, so check your paths and recompile.
Sergio
2014-07-17 12:26 GMT-07:00 sujaynarumanchi [email protected]:
Hi, I understand. So should I uninstall libhdf5_hl.8 and get libhdf5_hl.7? I ran "unset DYLD_LIBRARY_PATH" on the terminal and then ran make runtest and this is my error [image: screen shot 2014-07-18 at 12 51 51 am] https://cloud.githubusercontent.com/assets/8192279/3618289/188843cc-0de8-11e4-802d-0965cf4f9425.png
Any suggestions? Thanks in advance
— Reply to this email directly or view it on GitHub https://github.com/BVLC/caffe/issues/461#issuecomment-49352323.
I am sorry, I dont understand exactly what to do. Can you please elaborate? Thank you very much.
Hi
I'm still having the error error: 'sp_counted_impl_pda' does not refer to a type name in pseudo-destructor expression;
I've build boost 1.55 and 1.56 I was hoping someone could post there build instructions for boost.
Hi, I was not able to fix the error even after rebuilding boost. So I commented the line that was giving me the error from the boost library. The error went away but I haven't been able to get caffe working, and I don't know the reason. You could however try it out
Hi
I'm still having the error error: 'sp_counted_impl_pda' does not refer to a type name in pseudo-destructor expression;
I've build boost 1.55 and 1.56 I was hoping someone could post there build instructions for boost.
— Reply to this email directly or view it on GitHub https://github.com/BVLC/caffe/issues/461#issuecomment-49631824.
Do you mean you commented it out in boost code or caffe?
I did it in boost code. But I don't recommend it because I don't know what it means. I did it because I tried everything else and nothing seemed to work
I've overcome that error. I changed the sp_counted_impl.hpp:231
//this->~this_type(); this->~sp_counted_impl_pda<P, D, A>();
The build finished now I'm having opencv lib problems. I don't think it's related to caffe.