PROBLEM
SteveYangdeMacBook-Pro:caffe steveyyy$ make all
No receipt for 'com.apple.pkg.CLTools_Executables' found at '/'.
/bin/sh: line 0: [: -gt: unary operator expected
/bin/sh: line 0: [: -gt: unary operator expected
CXX src/caffe/blob.cpp
In file included from src/caffe/blob.cpp:4:
In file included from ./include/caffe/blob.hpp:9:
In file included from .build_release/src/caffe/proto/caffe.pb.h:22:
In file included from /usr/local/include/google/protobuf/arena.h:54:
In file included from /usr/local/include/google/protobuf/stubs/atomic_sequence_num.h:33:
In file included from /usr/local/include/google/protobuf/stubs/atomicops.h:199:
/usr/local/include/google/protobuf/stubs/atomicops_internals_macosx.h:47:9: warning: 'OSAtomicCompareAndSwap32' is deprecated: first deprecated in macOS 10.12 - Use std::atomic_compare_exchange_strong_explicit(std::memory_order_relaxed) from <atomic> instead [-Wdeprecated-declarations]
if (OSAtomicCompareAndSwap32(old_value, new_value,
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk/usr/include/libkern/OSAtomicDeprecated.h:502:9: note: 'OSAtomicCompareAndSwap32' has been explicitly marked deprecated here
bool OSAtomicCompareAndSwap32( int32_t __oldValue, int32_t __newValue, volatile int32_t *__theValue );
^
In file included from src/caffe/blob.cpp:4:
In file included from ./include/caffe/blob.hpp:9:
In file included from .build_release/src/caffe/proto/caffe.pb.h:22:
In file included from /usr/local/include/google/protobuf/arena.h:54:
In file included from /usr/local/include/google/protobuf/stubs/atomic_sequence_num.h:33:
In file included from /usr/local/include/google/protobuf/stubs/atomicops.h:199:
/usr/local/include/google/protobuf/stubs/atomicops_internals_macosx.h:61:13: warning: 'OSAtomicCompareAndSwap32' is deprecated: first deprecated in macOS 10.12 - Use std::atomic_compare_exchange_strong_explicit(std::memory_order_relaxed) from <atomic> instead [-Wdeprecated-declarations]
} while (!OSAtomicCompareAndSwap32(old_value, new_value,
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk/usr/include/libkern/OSAtomicDeprecated.h:502:9: note: 'OSAtomicCompareAndSwap32' has been explicitly marked deprecated here
bool OSAtomicCompareAndSwap32( int32_t __oldValue, int32_t __newValue, volatile int32_t *__theValue );
^
In file included from src/caffe/blob.cpp:4:
In file included from ./include/caffe/blob.hpp:9:
In file included from .build_release/src/caffe/proto/caffe.pb.h:22:
In file included from /usr/local/include/google/protobuf/arena.h:54:
In file included from /usr/local/include/google/protobuf/stubs/atomic_sequence_num.h:33:
In file included from /usr/local/include/google/protobuf/stubs/atomicops.h:199:
/usr/local/include/google/protobuf/stubs/atomicops_internals_macosx.h:68:10: warning: 'OSAtomicAdd32' is deprecated: first deprecated in macOS 10.12 - Use std::atomic_fetch_add_explicit(std::memory_order_relaxed) from <atomic> instead [-Wdeprecated-declarations]
return OSAtomicAdd32(increment, const_cast<Atomic32*>(ptr));
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk/usr/include/libkern/OSAtomicDeprecated.h:146:9: note: 'OSAtomicAdd32' has been explicitly marked deprecated here
int32_t OSAtomicAdd32( int32_t __theAmount, volatile int32_t *__theValue );
^
In file included from src/caffe/blob.cpp:4:
In file included from ./include/caffe/blob.hpp:9:
In file included from .build_release/src/caffe/proto/caffe.pb.h:22:
In file included from /usr/local/include/google/protobuf/arena.h:54:
In file included from /usr/local/include/google/protobuf/stubs/atomic_sequence_num.h:33:
In file included from /usr/local/include/google/protobuf/stubs/atomicops.h:199:
/usr/local/include/google/protobuf/stubs/atomicops_internals_macosx.h:73:10: warning: 'OSAtomicAdd32Barrier' is deprecated: first deprecated in macOS 10.12 - Use std::atomic_fetch_add() from <atomic> instead [-Wdeprecated-declarations]
return OSAtomicAdd32Barrier(increment, const_cast<Atomic32*>(ptr));
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk/usr/include/libkern/OSAtomicDeprecated.h:161:9: note: 'OSAtomicAdd32Barrier' has been explicitly marked deprecated here
int32_t OSAtomicAdd32Barrier( int32_t __theAmount, volatile int32_t *__theValue );
^
In file included from src/caffe/blob.cpp:4:
In file included from ./include/caffe/blob.hpp:9:
In file included from .build_release/src/caffe/proto/caffe.pb.h:22:
In file included from /usr/local/include/google/protobuf/arena.h:54:
In file included from /usr/local/include/google/protobuf/stubs/atomic_sequence_num.h:33:
In file included from /usr/local/include/google/protobuf/stubs/atomicops.h:199:
/usr/local/include/google/protobuf/stubs/atomicops_internals_macosx.h:77:3: warning: 'OSMemoryBarrier' is deprecated: first deprecated in macOS 10.12 - Use std::atomic_thread_fence() from <atomic> instead [-Wdeprecated-declarations]
OSMemoryBarrier();
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk/usr/include/libkern/OSAtomicDeprecated.h:749:9: note: 'OSMemoryBarrier' has been explicitly marked deprecated here
void OSMemoryBarrier( void );
^
In file included from src/caffe/blob.cpp:4:
In file included from ./include/caffe/blob.hpp:9:
In file included from .build_release/src/caffe/proto/caffe.pb.h:22:
In file included from /usr/local/include/google/protobuf/arena.h:54:
In file included from /usr/local/include/google/protobuf/stubs/atomic_sequence_num.h:33:
In file included from /usr/local/include/google/protobuf/stubs/atomicops.h:199:
/usr/local/include/google/protobuf/stubs/atomicops_internals_macosx.h:85:9: warning: 'OSAtomicCompareAndSwap32Barrier' is deprecated: first deprecated in macOS 10.12 - Use std::atomic_compare_exchange_strong() from <atomic> instead [-Wdeprecated-declarations]
if (OSAtomicCompareAndSwap32Barrier(old_value, new_value,
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk/usr/include/libkern/OSAtomicDeprecated.h:518:9: note: 'OSAtomicCompareAndSwap32Barrier' has been explicitly marked deprecated here
bool OSAtomicCompareAndSwap32Barrier( int32_t __oldValue, int32_t __newValue, volatile int32_t *__theValue );
^
In file included from src/caffe/blob.cpp:4:
In file included from ./include/caffe/blob.hpp:9:
In file included from .build_release/src/caffe/proto/caffe.pb.h:22:
In file included from /usr/local/include/google/protobuf/arena.h:54:
In file included from /usr/local/include/google/protobuf/stubs/atomic_sequence_num.h:33:
In file included from /usr/local/include/google/protobuf/stubs/atomicops.h:199:
/usr/local/include/google/protobuf/stubs/atomicops_internals_macosx.h:138:9: warning: 'OSAtomicCompareAndSwap64' is deprecated: first deprecated in macOS 10.12 - Use std::atomic_compare_exchange_strong_explicit(std::memory_order_relaxed) from <atomic> instead [-Wdeprecated-declarations]
if (OSAtomicCompareAndSwap64(old_value, new_value,
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk/usr/include/libkern/OSAtomicDeprecated.h:628:9: note: 'OSAtomicCompareAndSwap64' has been explicitly marked deprecated here
bool OSAtomicCompareAndSwap64( int64_t __oldValue, int64_t __newValue,
^
In file included from src/caffe/blob.cpp:4:
In file included from ./include/caffe/blob.hpp:9:
In file included from .build_release/src/caffe/proto/caffe.pb.h:22:
In file included from /usr/local/include/google/protobuf/arena.h:54:
In file included from /usr/local/include/google/protobuf/stubs/atomic_sequence_num.h:33:
In file included from /usr/local/include/google/protobuf/stubs/atomicops.h:199:
/usr/local/include/google/protobuf/stubs/atomicops_internals_macosx.h:152:13: warning: 'OSAtomicCompareAndSwap64' is deprecated: first deprecated in macOS 10.12 - Use std::atomic_compare_exchange_strong_explicit(std::memory_order_relaxed) from <atomic> instead [-Wdeprecated-declarations]
} while (!OSAtomicCompareAndSwap64(old_value, new_value,
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk/usr/include/libkern/OSAtomicDeprecated.h:628:9: note: 'OSAtomicCompareAndSwap64' has been explicitly marked deprecated here
bool OSAtomicCompareAndSwap64( int64_t __oldValue, int64_t __newValue,
^
In file included from src/caffe/blob.cpp:4:
In file included from ./include/caffe/blob.hpp:9:
In file included from .build_release/src/caffe/proto/caffe.pb.h:22:
In file included from /usr/local/include/google/protobuf/arena.h:54:
In file included from /usr/local/include/google/protobuf/stubs/atomic_sequence_num.h:33:
In file included from /usr/local/include/google/protobuf/stubs/atomicops.h:199:
/usr/local/include/google/protobuf/stubs/atomicops_internals_macosx.h:159:10: warning: 'OSAtomicAdd64' is deprecated: first deprecated in macOS 10.12 - Use std::atomic_fetch_add_explicit(std::memory_order_relaxed) from <atomic> instead [-Wdeprecated-declarations]
return OSAtomicAdd64(increment, reinterpret_cast<volatile int64_t*>(ptr));
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk/usr/include/libkern/OSAtomicDeprecated.h:231:9: note: 'OSAtomicAdd64' has been explicitly marked deprecated here
int64_t OSAtomicAdd64( int64_t __theAmount,
^
In file included from src/caffe/blob.cpp:4:
In file included from ./include/caffe/blob.hpp:9:
In file included from .build_release/src/caffe/proto/caffe.pb.h:22:
In file included from /usr/local/include/google/protobuf/arena.h:54:
In file included from /usr/local/include/google/protobuf/stubs/atomic_sequence_num.h:33:
In file included from /usr/local/include/google/protobuf/stubs/atomicops.h:199:
/usr/local/include/google/protobuf/stubs/atomicops_internals_macosx.h:164:10: warning: 'OSAtomicAdd64Barrier' is deprecated: first deprecated in macOS 10.12 - Use std::atomic_fetch_add() from <atomic> instead [-Wdeprecated-declarations]
return OSAtomicAdd64Barrier(increment,
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk/usr/include/libkern/OSAtomicDeprecated.h:247:9: note: 'OSAtomicAdd64Barrier' has been explicitly marked deprecated here
int64_t OSAtomicAdd64Barrier( int64_t __theAmount,
^
In file included from src/caffe/blob.cpp:4:
In file included from ./include/caffe/blob.hpp:9:
In file included from .build_release/src/caffe/proto/caffe.pb.h:22:
In file included from /usr/local/include/google/protobuf/arena.h:54:
In file included from /usr/local/include/google/protobuf/stubs/atomic_sequence_num.h:33:
In file included from /usr/local/include/google/protobuf/stubs/atomicops.h:199:
/usr/local/include/google/protobuf/stubs/atomicops_internals_macosx.h:173:9: warning: 'OSAtomicCompareAndSwap64Barrier' is deprecated: first deprecated in macOS 10.12 - Use std::atomic_compare_exchange_strong() from <atomic> instead [-Wdeprecated-declarations]
if (OSAtomicCompareAndSwap64Barrier(
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk/usr/include/libkern/OSAtomicDeprecated.h:645:9: note: 'OSAtomicCompareAndSwap64Barrier' has been explicitly marked deprecated here
bool OSAtomicCompareAndSwap64Barrier( int64_t __oldValue, int64_t __newValue,
^
In file included from src/caffe/blob.cpp:7:
In file included from ./include/caffe/util/math_functions.hpp:11:
./include/caffe/util/mkl_alternate.hpp:14:10: fatal error: 'cblas.h' file not found
#include <cblas.h>
^
11 warnings and 1 error generated.
make: *** [.build_release/src/caffe/blob.o] Error 1
SteveYangdeMacBook-Pro:caffe steveyyy$ cp Makefile.config.example Makefile.config
WHAT I DID
brew install -vd snappy leveldb gflags glog szip lmdb opencv hdf5
brew uninstall --force protobuf; brew install --with-python --fresh -vd protobuf
brew uninstall boost boost-python; brew install --fresh -vd boost boost-python
git clone https://github.com/BVLC/caffe.git
cd caffe
cp Makefile.config.example Makefile.config
change the config to CPU ONLY