BVLC / caffe

Caffe: a fast open framework for deep learning.
http://caffe.berkeleyvision.org/
Other
34.13k stars 18.68k forks source link

Unit Tests Fail to Compile and Run #5915

Open ensafi opened 7 years ago

ensafi commented 7 years ago

Issue summary

I am using Google Test 1.70. Assuming this is a compatible version and is not the root of my problem, here is the issue...

make runtest fails at gtest-all.cpp, as follows:

/usr/local/build_support/custom/gtest-1.7.0/include/gtest/internal/gtest-string.h: In constructor ‘testing::internal::GTestFlagSaver::GTestFlagSaver()’: /usr/local/build_support/custom/gtest-1.7.0/include/gtest/internal/gtest-string.h:157:3: error: ‘testing::internal::String::String()’ is private String(); // Not meant to be instantiated. ^ src/gtest/gtest-all.cpp:551:20: error: within this context GTestFlagSaver() {

... followed by many more errors...

Steps to reproduce

make runtest

Your system configuration

Operating system: Ubuntu 14.04 Compiler: GCC 4.8.4 CUDA version (if applicable): N/A CUDNN version (if applicable): N/A BLAS: MKL Python or MATLAB version (for pycaffe and matcaffe respectively): N/A

loulansuiye commented 7 years ago

pycaffe should be compiled before compiling the unit test

ensafi commented 7 years ago

pycaffe is already built successfully. only unit tests are failing to build or run.