Make Error on OS X 10.11 help please

24 views
Skip to first unread message

Zack Lee

unread,
May 4, 2017, 11:08:12 AM5/4/17
to Caffe Users
I am using CMake to make the caffe project, and have encountered with an error during the "make all" process.

The dependencies and libraries have been installed, and according to the result of CMake, no libraries seems to be missed.

However, every time when I've successfully generate Cmake files and type "make all", errors appear.
The starting errors are listed as following:

[  1%] Running C++/Python protocol buffer compiler on /Users/chumhoo/Desktop/SRTP-April/caffe/src/caffe/proto/caffe.proto
Scanning dependencies of target proto
[  1%] Building CXX object src/caffe/CMakeFiles/proto.dir/__/__/include/caffe/proto/caffe.pb.cc.o
In file included from /Users/chumhoo/Desktop/SRTP-April/caffe/build/include/caffe/proto/caffe.pb.cc:5:
In file included from /Users/chumhoo/Desktop/SRTP-April/caffe/build/include/caffe/proto/caffe.pb.h:23:
In file included from /usr/local/include/google/protobuf/message.h:120:
In file included from /usr/local/include/google/protobuf/descriptor.h:57:
In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/set:390:
In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/functional:1881:
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/__functional_03:462:38: error:
      unknown type name
'func'
       
static bool __not_null(const func<_R2()>& __p) {return __p;}
                                     
^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/__functional_03:462:42: error:
      expected
')'
       
static bool __not_null(const func<_R2()>& __p) {return __p;}
                                         
^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/__functional_03:462:31: note:
      to match
this '('
       
static bool __not_null(const func<_R2()>& __p) {return __p;}
                             
^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/__functional_03:467:40: error:
      C
++ requires a type specifier for all declarations
    _LIBCPP_INLINE_VISIBILITY
explicit func() : __f_(0) {}
   
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/__functional_03:468:31: error:
      unknown type name
'func'
    _LIBCPP_INLINE_VISIBILITY func
(nullptr_t) : __f_(0) {}
                             
^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/__functional_03:468:49: error:
      invalid
use of non-static data member '__f_'
    _LIBCPP_INLINE_VISIBILITY func
(nullptr_t) : __f_(0) {}
                                               
^~~~
                                         
^


It seems that the errors are from the Xcode command line tools, isn't it?


I've tried my best to seek for solutions but there're always no effect at all. Please help , thanks in advance!


Reply all
Reply to author
Forward
0 new messages