facebookarchive / caffe2

Caffe2 is a lightweight, modular, and scalable deep learning framework.
https://caffe2.ai
Apache License 2.0
8.42k stars 1.95k forks source link

install error. In batch_matmul_op_gpu_test.cc, gmock/gmock.h, No such file #1743

Closed superying closed 6 years ago

superying commented 6 years ago

If this is a build issue, please fill out the template below.

System information

CMake summary output

-- Does not need to define long separately. -- Turning off deprecation warning due to glog. -- Current compiler supports avx2 extention. Will build perfkernels. -- Using protobuf compiler /usr/bin/protoc -- The BLAS backend of choice:Eigen -- Found gflags (include: /usr/include, library: /usr/lib64/libgflags.so) -- Found glog (include: /usr/include, library: /usr/lib64/libglog.so) -- Found PythonInterp: /usr/bin/python (found version "2.7.5") -- git Version: v0.0.0 -- Version: 0.0.0 -- Performing Test HAVE_STD_REGEX -- Performing Test HAVE_STD_REGEX -- Performing Test HAVE_STD_REGEX -- compiled but failed to run -- Performing Test HAVE_GNU_POSIX_REGEX -- Performing Test HAVE_GNU_POSIX_REGEX -- Performing Test HAVE_GNU_POSIX_REGEX -- failed to compile -- Performing Test HAVE_POSIX_REGEX -- Performing Test HAVE_POSIX_REGEX -- Performing Test HAVE_POSIX_REGEX -- success -- Performing Test HAVE_STEADY_CLOCK -- Performing Test HAVE_STEADY_CLOCK -- Performing Test HAVE_STEADY_CLOCK -- success -- Found lmdb (include: /usr/include, library: /usr/lib64/liblmdb.so) -- Found LevelDB (include: /usr/include, library: /usr/lib64/libleveldb.so) -- Found Snappy (include: /usr/include, library: /usr/lib64/libsnappy.so) -- Could NOT find RocksDB (missing: RocksDB_INCLUDE_DIR RocksDB_LIBRARIES) CMake Warning at cmake/Dependencies.cmake:177 (message): Not compiling with RocksDB. Suppress this warning with -DUSE_ROCKSDB=OFF Call Stack (most recent call first): CMakeLists.txt:79 (include)

-- OpenCV found (/usr/lib64/cmake/OpenCV) CMake Warning at cmake/Dependencies.cmake:241 (find_package): By not providing "FindEigen3.cmake" in CMAKE_MODULE_PATH this project has asked CMake to find a package configuration file provided by "Eigen3", but CMake did not find one.

Could not find a package configuration file provided by "Eigen3" with any of the following names:

Eigen3Config.cmake
eigen3-config.cmake

Add the installation prefix of "Eigen3" to CMAKE_PREFIX_PATH or set "Eigen3_DIR" to a directory containing one of the above files. If "Eigen3" provides a separate development package or SDK, be sure it has been installed. Call Stack (most recent call first): CMakeLists.txt:79 (include)

-- Did not find system Eigen. Using third party subdirectory. -- Found PythonInterp: /usr/bin/python (found suitable version "2.7.5", minimum required is "2.7") -- NumPy ver. 1.13.1 found (include: /usr/lib64/python2.7/site-packages/numpy/core/include) -- Could NOT find pybind11 (missing: pybind11_INCLUDE_DIR) -- Could NOT find MPI_C (missing: MPI_C_LIB_NAMES MPI_C_HEADER_DIR MPI_C_WORKS) -- Could NOT find MPI_CXX (missing: MPI_CXX_LIB_NAMES MPI_CXX_HEADER_DIR MPI_CXX_WORKS) -- Could NOT find MPI (missing: MPI_C_FOUND MPI_CXX_FOUND) CMake Warning at cmake/Dependencies.cmake:300 (message): Not compiling with MPI. Suppress this warning with -DUSE_MPI=OFF Call Stack (most recent call first): CMakeLists.txt:79 (include)

-- CUDA detected: 8.0 -- Added CUDA NVCC flags for: sm_20 sm_21 sm_30 sm_35 sm_50 sm_52 sm_60 sm_61 -- Found libcuda: /usr/lib64/libcuda.so -- Found libnvrtc: /usr/local/cuda/lib64/libnvrtc.so -- Found cuDNN: v5.1.10 (include: /usr/local/cuda/include, library: /usr/local/cuda/lib64/libcudnn.so) -- Could NOT find NCCL (missing: NCCL_INCLUDE_DIRS NCCL_LIBRARIES) -- NCCL: /home/yli/caffe2/third_party/nccl/build/lib/libnccl_static.a -- Could NOT find CUB (missing: CUB_INCLUDE_DIR) -- Could NOT find Gloo (missing: Gloo_INCLUDE_DIR Gloo_LIBRARY) -- CUDA detected: 8.0 -- Found libcuda: /usr/lib64/libcuda.so -- Found libnvrtc: /usr/local/cuda/lib64/libnvrtc.so CMake Warning at cmake/Dependencies.cmake:453 (message): mobile opengl is only used in android or ios builds. Call Stack (most recent call first): CMakeLists.txt:79 (include)

CMake Warning at cmake/Dependencies.cmake:473 (message): Metal is only used in ios builds. Call Stack (most recent call first): CMakeLists.txt:79 (include)

-- GCC 4.8.5: Adding gcc and gcc_s libs to link line -- Include NCCL operators -- Including image processing operators -- Excluding video processing operators due to no opencv -- Excluding mkl operators as we are not using mkl -- MPI operators skipped due to no MPI support -- Include Observer library -- Automatically generating missing init.py files.

-- **** Summary **** -- General: -- CMake version : 3.10.1 -- CMake command : /usr/local/bin/cmake -- Git version : v0.8.1-926-g7770f51 -- System : Linux -- C++ compiler : /usr/bin/c++ -- C++ compiler version : 4.8.5 -- Protobuf compiler : /usr/bin/protoc -- Protoc libraries : /usr/lib64/libprotoc.so -- Protobuf libraries : /usr/lib64/libprotobuf.so;-pthread -- Protobuf include dirs : /usr/include -- CXX flags : -Wno-deprecated -std=c++11 -O2 -fPIC -Wno-narrowing -- Build type : Release -- Compile definitions :

-- BUILD_BINARY : ON -- BUILD_PYTHON : ON -- Python version : 2.7.5 -- Python library : /usr/lib64/libpython2.7.so -- BUILD_SHARED_LIBS : ON -- BUILD_TEST : ON -- USE_ATEN : OFF -- USE_ASAN : OFF -- USE_CUDA : ON -- CUDA version : 8.0 -- CuDNN version : 5.1.10 -- USE_EIGEN_FOR_BLAS : 1 -- USE_FFMPEG : OFF -- USE_GFLAGS : ON -- USE_GLOG : ON -- USE_GLOO : ON -- USE_LEVELDB : ON -- LevelDB version : 1.12 -- Snappy version : 1.1.0 -- USE_LITE_PROTO : OFF -- USE_LMDB : ON -- LMDB version : 0.9.18 -- USE_METAL : OFF -- USE_MKL : -- USE_MOBILE_OPENGL : OFF -- USE_MPI : OFF -- USE_NCCL : ON -- USE_NERVANA_GPU : OFF -- USE_NNPACK : OFF -- USE_OBSERVERS : ON -- USE_OPENCV : ON -- OpenCV version : 2.4.5 -- USE_OPENMP : OFF -- USE_PROF : OFF -- USE_REDIS : OFF -- USE_ROCKSDB : OFF -- USE_THREADS : ON -- USE_ZMQ : OFF

Error:

caffe2/caffe2/operators/batch_matmul_op_gpu_test.cc:20:25: fatal error: gmock/gmock.h: No such file or directory

include <gmock/gmock.h>

                     ^

compilation terminated. make[2]: [caffe2/CMakeFiles/batch_matmul_op_gpu_test.dir/operators/batch_matmul_op_gpu_test.cc.o] Error 1 make[1]: [caffe2/CMakeFiles/batch_matmul_op_gpu_test.dir/all] Error 2 make[1]: *** Waiting for unfinished jobs....

pietern commented 6 years ago

Thanks for the report. A fix is underway.

pietern commented 6 years ago

This is fixed in aad84d6ee7f2a02cc09ba8fd727fc7becf8b6522.