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

build issues - ubuntu #14

Open
toby5box opened this issue Jan 28, 2019 · 0 comments
Open

build issues - ubuntu #14

toby5box opened this issue Jan 28, 2019 · 0 comments

Comments

@toby5box
Copy link

Is there a "golden system" requirement for this library? I'm having unexpected build problems as detailed in the log below.

(caffe) toby@w8pc:~/caffe-augmentation$ CXXFLAGS=-std=c++11 CPPFLAGS=-std=c++11 cmake .
-- The C compiler identification is GNU 5.4.1
-- The CXX compiler identification is GNU 5.4.1
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Looking for pthread_create
-- Looking for pthread_create - not found
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - found
-- Found Threads: TRUE
-- Boost version: 1.62.0
-- Found the following Boost libraries:
--   system
--   thread
--   chrono
--   date_time
--   atomic
-- Found GFlags: /usr/include
-- Found gflags  (include: /usr/include, library: /usr/lib/x86_64-linux-gnu/libgflags.so)
-- Found Glog: /usr/include
-- Found glog    (include: /usr/include, library: /usr/lib/x86_64-linux-gnu/libglog.so)
CMake Warning at /usr/share/cmake-3.9/Modules/FindProtobuf.cmake:429 (message):
  Protobuf compiler version 3.6.1 doesn't match library version 3.0.0
Call Stack (most recent call first):
  cmake/ProtoBuf.cmake:4 (find_package)
  cmake/Dependencies.cmake:24 (include)
  CMakeLists.txt:28 (include)


-- Found Protobuf: /usr/lib/x86_64-linux-gnu/libprotobuf.so;-lpthread (found version "3.0.0")
-- Found PROTOBUF Compiler: /home/toby/miniconda3/envs/caffe/bin/protoc
-- HDF5: Using hdf5 compiler wrapper to determine C configuration
-- HDF5: Using hdf5 compiler wrapper to determine CXX configuration
-- Found HDF5: /home/toby/miniconda3/envs/caffe/lib/libhdf5_cpp.so;/home/toby/miniconda3/envs/caffe/lib/libhdf5.so;/usr/lib/x86_64-linux-gnu/librt.so;/usr/lib/x86_64-linux-gnu/libpthread.so;/home/toby/miniconda3/envs/caffe/lib/libz.so;/usr/lib/x86_64-linux-gnu/libdl.so;/usr/lib/x86_64-linux-gnu/libm.so (found version "1.10.2") found components:  HL
-- Found LMDB: /usr/include
-- Found lmdb    (include: /usr/include, library: /usr/lib/x86_64-linux-gnu/liblmdb.so)
-- Found LevelDB: /usr/include
-- Found LevelDB (include: /usr/include, library: /usr/lib/x86_64-linux-gnu/libleveldb.so)
-- Found Snappy: /usr/include
-- Found Snappy  (include: /usr/include, library: /usr/lib/x86_64-linux-gnu/libsnappy.so)
-- CUDA detected: 8.0
-- Found cuDNN (include: /usr/include, library: /usr/lib/x86_64-linux-gnu/libcudnn.so)
-- Added CUDA NVCC flags for: sm_61
-- OpenCV found (/home/toby/miniconda3/envs/caffe/share/OpenCV)
-- Found Atlas: /usr/include/x86_64-linux-gnu
-- Found Atlas (include: /usr/include/x86_64-linux-gnu, library: /usr/lib/x86_64-linux-gnu/libatlas.so)
-- Found PythonInterp: /usr/bin/python2.7 (found suitable version "2.7.14", minimum required is "2.7")
-- Found PythonLibs: /usr/lib/x86_64-linux-gnu/libpython2.7.so (found suitable version "2.7.14", minimum required is "2.7")
-- Found NumPy: /usr/local/lib/python2.7/dist-packages/numpy/core/include (found suitable version "1.14.1", minimum required is "1.7.1")
-- NumPy ver. 1.14.1 found (include: /usr/local/lib/python2.7/dist-packages/numpy/core/include)
-- Boost version: 1.62.0
-- Found the following Boost libraries:
--   python
-- Could NOT find Doxygen (missing: DOXYGEN_EXECUTABLE)
-- Found Git: /usr/bin/git (found version "2.14.1")
--
-- ******************* Caffe Configuration Summary *******************
-- General:
--   Version           :   <TODO> (Caffe doesn't declare its version in headers)
--   Git               :   ca5b3c1-dirty
--   System            :   Linux
--   C++ compiler      :   /usr/bin/c++
--   Release CXX flags :   -O3 -DNDEBUG -std=c++11 -fPIC -Wall -Wno-sign-compare -Wno-uninitialized
--   Debug CXX flags   :   -g -std=c++11 -fPIC -Wall -Wno-sign-compare -Wno-uninitialized
--   Build type        :   Release
--
--   BUILD_SHARED_LIBS :   ON
--   BUILD_python      :   ON
--   BUILD_matlab      :   OFF
--   BUILD_docs        :   ON
--   CPU_ONLY          :   OFF
--
-- Dependencies:
--   BLAS              :   Yes (Atlas)
--   Boost             :   Yes (ver. 1.62)
--   glog              :   Yes
--   gflags            :   Yes
--   protobuf          :   Yes (ver. 3.0.0)
--   lmdb              :   Yes (ver. 0.9.21)
--   Snappy            :   Yes (ver. ..)
--   LevelDB           :   Yes (ver. 1.20)
--   OpenCV            :   Yes (ver. 3.4.2)
--   CUDA              :   Yes (ver. 8.0)
--
-- NVIDIA CUDA:
--   Target GPU(s)     :   Auto
--   GPU arch(s)       :   sm_61
--   cuDNN             :   Yes
--
-- Python:
--   Interpreter       :   /usr/bin/python2.7 (ver. 2.7.14)
--   Libraries         :   /usr/lib/x86_64-linux-gnu/libpython2.7.so (ver 2.7.14)
--   NumPy             :   /usr/local/lib/python2.7/dist-packages/numpy/core/include (ver 1.14.1)
--
-- Documentaion:
--   Doxygen           :   No
--   config_file       :
--
-- Install:
--   Install path      :   /home/toby/caffe-augmentation/install
--
-- Configuring done
CMake Warning at src/caffe/CMakeLists.txt:20 (add_library):
  Cannot generate a safe runtime search path for target caffe because files
  in some directories may conflict with libraries in implicit directories:

    runtime library [libglog.so.0] in /usr/lib/x86_64-linux-gnu may be hidden by files in:
      /home/toby/miniconda3/envs/caffe/lib
    runtime library [libgflags.so.2.2] in /usr/lib/x86_64-linux-gnu may be hidden by files in:
      /home/toby/miniconda3/envs/caffe/lib
    runtime library [libleveldb.so.1] in /usr/lib/x86_64-linux-gnu may be hidden by files in:
      /home/toby/miniconda3/envs/caffe/lib
    runtime library [libsnappy.so.1] in /usr/lib/x86_64-linux-gnu may be hidden by files in:
      /home/toby/miniconda3/envs/caffe/lib
    runtime library [libcudnn.so.7] in /usr/lib/x86_64-linux-gnu may be hidden by files in:
      /home/toby/miniconda3/envs/caffe/lib

  Some of these libraries may not be found correctly.

...many repetitions of the above snipped...

-- Generating done
-- Build files have been written to: /home/toby/caffe-augmentation
(caffe) toby@w8pc:~/caffe-augmentation$ make -j4 all
[  0%] Building CXX object src/caffe/CMakeFiles/proto.dir/__/__/include/caffe/proto/caffe.pb.cc.o
[  1%] Linking CXX static library ../../lib/libproto.a
[  2%] Built target proto
[  2%] Building NVCC (Device) object src/caffe/CMakeFiles/cuda_compile_1.dir/layers/cuda_compile_1_generated_absval_layer.cu.o
[  2%] Building NVCC (Device) object src/caffe/CMakeFiles/cuda_compile_1.dir/layers/cuda_compile_1_generated_concat_layer.cu.o
[  4%] Building NVCC (Device) object src/caffe/CMakeFiles/cuda_compile_1.dir/layers/cuda_compile_1_generated_bnll_layer.cu.o
[  4%] Building NVCC (Device) object src/caffe/CMakeFiles/cuda_compile_1.dir/layers/cuda_compile_1_generated_base_data_layer.cu.o
/home/toby/miniconda3/envs/caffe/include/gflags/gflags.h(226): warning: attribute "visibility" does not apply here

/home/toby/miniconda3/envs/caffe/include/gflags/gflags.h(226): warning: attribute "visibility" does not apply here

/home/toby/miniconda3/envs/caffe/include/gflags/gflags.h(226): warning: attribute "visibility" does not apply here

/home/toby/miniconda3/envs/caffe/include/gflags/gflags.h(226): warning: attribute "visibility" does not apply here

/home/toby/caffe-augmentation/include/caffe/common.hpp(80): error: namespace "std" has no member "isnan"

/home/toby/caffe-augmentation/include/caffe/common.hpp(81): error: namespace "std" has no member "isinf"

/home/toby/caffe-augmentation/include/caffe/common.hpp(80): error: namespace "std" has no member "isnan"

/home/toby/caffe-augmentation/include/caffe/common.hpp(81): error: namespace "std" has no member "isinf"

2 errors detected in the compilation of "/tmp/tmpxft_00005e6f_00000000-7_absval_layer.cpp1.ii".
/home/toby/caffe-augmentation/include/caffe/common.hpp(80): error: namespace "std" has no member "isnan"

/home/toby/caffe-augmentation/include/caffe/common.hpp(81): error: namespace "std" has no member "isinf"

CMake Error at cuda_compile_1_generated_absval_layer.cu.o.Release.cmake:282 (message):
  Error generating file
  /home/toby/caffe-augmentation/src/caffe/CMakeFiles/cuda_compile_1.dir/layers/./cuda_compile_1_generated_absval_layer.cu.o


src/caffe/CMakeFiles/caffe.dir/build.make:63: recipe for target 'src/caffe/CMakeFiles/cuda_compile_1.dir/layers/cuda_compile_1_generated_absval_layer.cu.o' failed
make[2]: *** [src/caffe/CMakeFiles/cuda_compile_1.dir/layers/cuda_compile_1_generated_absval_layer.cu.o] Error 1
make[2]: *** Waiting for unfinished jobs....
/home/toby/caffe-augmentation/include/caffe/common.hpp(80): error: namespace "std" has no member "isnan"

/home/toby/caffe-augmentation/include/caffe/common.hpp(81): error: namespace "std" has no member "isinf"

2 errors detected in the compilation of "/tmp/tmpxft_00005e62_00000000-7_concat_layer.cpp1.ii".
CMake Error at cuda_compile_1_generated_concat_layer.cu.o.Release.cmake:282 (message):
  Error generating file
  /home/toby/caffe-augmentation/src/caffe/CMakeFiles/cuda_compile_1.dir/layers/./cuda_compile_1_generated_concat_layer.cu.o


src/caffe/CMakeFiles/caffe.dir/build.make:84: recipe for target 'src/caffe/CMakeFiles/cuda_compile_1.dir/layers/cuda_compile_1_generated_concat_layer.cu.o' failed
make[2]: *** [src/caffe/CMakeFiles/cuda_compile_1.dir/layers/cuda_compile_1_generated_concat_layer.cu.o] Error 1
2 errors detected in the compilation of "/tmp/tmpxft_00005e63_00000000-7_bnll_layer.cpp1.ii".
CMake Error at cuda_compile_1_generated_bnll_layer.cu.o.Release.cmake:282 (message):
  Error generating file
  /home/toby/caffe-augmentation/src/caffe/CMakeFiles/cuda_compile_1.dir/layers/./cuda_compile_1_generated_bnll_layer.cu.o


src/caffe/CMakeFiles/caffe.dir/build.make:77: recipe for target 'src/caffe/CMakeFiles/cuda_compile_1.dir/layers/cuda_compile_1_generated_bnll_layer.cu.o' failed
make[2]: *** [src/caffe/CMakeFiles/cuda_compile_1.dir/layers/cuda_compile_1_generated_bnll_layer.cu.o] Error 1
2 errors detected in the compilation of "/tmp/tmpxft_00005e76_00000000-7_base_data_layer.cpp1.ii".
CMake Error at cuda_compile_1_generated_base_data_layer.cu.o.Release.cmake:282 (message):
  Error generating file
  /home/toby/caffe-augmentation/src/caffe/CMakeFiles/cuda_compile_1.dir/layers/./cuda_compile_1_generated_base_data_layer.cu.o


src/caffe/CMakeFiles/caffe.dir/build.make:70: recipe for target 'src/caffe/CMakeFiles/cuda_compile_1.dir/layers/cuda_compile_1_generated_base_data_layer.cu.o' failed
make[2]: *** [src/caffe/CMakeFiles/cuda_compile_1.dir/layers/cuda_compile_1_generated_base_data_layer.cu.o] Error 1
CMakeFiles/Makefile2:235: recipe for target 'src/caffe/CMakeFiles/caffe.dir/all' failed
make[1]: *** [src/caffe/CMakeFiles/caffe.dir/all] Error 2
Makefile:129: recipe for target 'all' failed
make: *** [all] Error 2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant