''make all" errors in configurating caffe

210 views
Skip to first unread message

engel.l...@gmail.com

unread,
Jul 17, 2018, 10:35:37 AM7/17/18
to Caffe Users

GTX960M   ubuntu16.04+cuda8.0+cudnn 7.1.4+opencv3.4.2+anaconda3 with python3.6.5+gcc 5.4


1.   error: #error This file requires compiler and library support for the ISO C++ 2011 standard. This support must be enabled with the -std=c++11 or -std=gnu++11 compiler options.  #error This file requires compiler and library support \


2.   Makefile:597: recipe for target '.build_release/cuda/src/caffe/solvers/adagrad_solver.o' failed
make: *** [.build_release/cuda/src/caffe/solvers/adagrad_solver.o] Error 1

Makefile:597: recipe for target '.build_release/cuda/src/caffe/solvers/sgd_solver.o' failed
make: *** [.build_release/cuda/src/caffe/solvers/sgd_solver.o] Error 1
Makefile:597: recipe for target '.build_release/cuda/src/caffe/solvers/adadelta_solver.o' failed
make: *** [.build_release/cuda/src/caffe/solvers/adadelta_solver.o] Error 1
Makefile:597: recipe for target '.build_release/cuda/src/caffe/solvers/rmsprop_solver.o' failed
make: *** [.build_release/cuda/src/caffe/solvers/rmsprop_solver.o] Error 1


screenshot is as follows:




Any one has encountered these? Any one could help please?



Message has been deleted

tob...@gmail.com

unread,
Jul 25, 2018, 11:35:41 AM7/25/18
to Caffe Users
I do get a very similar issue.

My setup: Ubuntu16.04+cuda8.0+cudnn6+opencv3.4.2(build from source)+anaconda3(miniconda)


The only difference is that for me it crashed even earlier.

Before trying to install caffe I installed OpenCV 3.4 which by default installs protobuf 3.3 and thats where my troubles begun. I tried to downgrade to protobuf 2.6.1 (standard version for ubuntu) but that didnt work and now I get this error by ussing the latest Protobuf Version 3.6 (protoc --version)

Thats the output for my caffe Cmake configure:
Boost version: 1.58.0

 
Found the following Boost libraries:
 system
 thread
 filesystem
 chrono
 date_time
 atomic

Found gflags (include: /usr/include, library: /usr/lib/x86_64-linux-gnu/libgflags.so)
Found glog (include: /usr/include, library: /usr/lib/x86_64-linux-gnu/libglog.so)
Found PROTOBUF Compiler: /usr/local/bin/protoc
HDF5
: Using hdf5 compiler wrapper to determine C configuration
HDF5
: Using hdf5 compiler wrapper to determine CXX configuration
Found lmdb (include: /usr/include, library: /usr/lib/x86_64-linux-gnu/liblmdb.so)
Found LevelDB (include: /usr/include, library: /usr/lib/x86_64-linux-gnu/libleveldb.so)
Found Snappy (include: /usr/include, library: /usr/lib/x86_64-linux-gnu/libsnappy.so)
CUDA detected
: 8.0
Found cuDNN: ver. 6.0.21 found (include: /usr/local/cuda-8.0/include, library: /usr/local/cuda-8.0/lib/x86_64-linux-gnu/libcudnn.so)
Added CUDA NVCC flags for: sm_61
Found NCCL (include: /usr/include, library: /usr/lib/libnccl.so)
OpenCV found (/usr/local/share/OpenCV)
Found Atlas (include: /usr/include library: /usr/lib/libatlas.so lapack: /usr/lib/liblapack.so
NumPy ver. 1.14.3 found (include: /home/narvis/.local/lib/python2.7/site-packages/numpy/core/include)
Boost version: 1.58.0
Found the following Boost libraries:
 python
Could NOT find Doxygen (missing: DOXYGEN_EXECUTABLE)


 

******************* Caffe Configuration Summary *******************

General:
 
Version : 1.0.0
 
Git : 1.0-117-g2a1c552-dirty
 
System : Linux
 C
++ compiler : /usr/bin/c++
 
Release CXX flags : -O3 -DNDEBUG -fPIC -Wall -Wno-sign-compare -Wno-uninitialized
 
Debug CXX flags : -g -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
 USE_OPENCV
: ON
 USE_LEVELDB
: ON
 USE_LMDB
: ON
 USE_NCCL
: ON
 ALLOW_LMDB_NOLOCK
: OFF



Dependencies:

 BLAS
: Yes (Atlas)
 
Boost : Yes (ver. 1.58)
 glog
: Yes
 gflags
: Yes
 protobuf
: Yes (ver. 3.6.0)
 lmdb
: Yes (ver. 0.9.17)
 
LevelDB : Yes (ver. 1.18)
 
Snappy : Yes (ver. 1.1.3)
 
OpenCV : Yes (ver. 3.4.2)
 CUDA
: Yes (ver. 8.0)


NVIDIA CUDA
:

 
Target GPU(s) : Auto
 GPU arch
(s) : sm_61
 cuDNN
: Yes (ver. 6.0.21)


 

Python:

 
Interpreter : /usr/bin/python2.7 (ver. 2.7.12)
 
Libraries : /usr/lib/x86_64-linux-gnu/libpython2.7.so (ver 2.7.12)
 
NumPy : /home/narvis/.local/lib/python2.7/site-packages/numpy/core/include (ver 1.14.3)


 
Documentaion:
 
Doxygen : No
 config_file
:


 

Install:
 
Install path : /home/narvis/Lib/caffe/build/install


 

Configuring done
Generating done



The C++ compiler for NVCC looks also fine:

lrwxrwxrwx 1 root root 20 Apr 18 13:04 cc -> /etc/alternatives/cc
narvis@narvis
-System-Product-Name:/usr/bin$ ls -la /etc/alternatives/cc
lrwxrwxrwx
1 root root 12 Apr 18 13:04 /etc/alternatives/cc -> /usr/bin/gcc
narvis@narvis
-System-Product-Name:/usr/bin$ /usr/bin/gcc --version
gcc
(Ubuntu 5.4.0-6ubuntu1~16.04.10) 5.4.0 20160609
Copyright (C) 2015 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty
; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.



I couldnt fix the issue yet. Does someone has a solution for this?


engel.l...@gmail.com

unread,
Aug 5, 2018, 10:05:47 PM8/5/18
to Caffe Users
Anyone could help?

engel.l...@gmail.com

unread,
Aug 5, 2018, 10:18:47 PM8/5/18
to Caffe Users
Hi, have you settled this?

Phyu Khaing

unread,
Aug 16, 2018, 11:40:36 AM8/16/18
to Caffe Users
I also make all error.
My error is at the following with figure.
If you have any solution, please share.


Screenshot from 2018-08-16 22-08-59.png

Reply all
Reply to author
Forward
0 new messages