title: How to fix tensorflow protobuf compilation errors on OSX?
body: <p>I'm trying to compile TensorFlow after checking out the repo.
  I've reached a point where I'm stuck with google protobuf errors:</p>
  
  <pre><code>INFO: From Compiling tensorflow/core/kernels/histogram_op_gpu.cu.cc:
  ./tensorflow/core/lib/core/status.h(32): warning: attribute "warn_unused_result" does not apply here
  
  external/protobuf_archive/src/google/protobuf/arena.h(719): error: more than one instance of overloaded function "google::protobuf::Arena::CreateMessageInternal" matches the argument list:
              function template "T *google::protobuf::Arena::CreateMessageInternal&lt;T&gt;(google::protobuf::Arena *)"
              function template "T *google::protobuf::Arena::CreateMessageInternal&lt;T,Args...&gt;(Args &amp;&amp;...)"
              argument types are: (google::protobuf::Arena *)
            detected during:
              instantiation of "Msg *google::protobuf::Arena::CreateMaybeMessage&lt;Msg&gt;(google::protobuf::Arena *, google::protobuf::internal::true_type) [with Msg=tensorflow::TensorShapeProto_Dim]" 
  (729): here
              instantiation of "T *google::protobuf::Arena::CreateMaybeMessage&lt;T&gt;(google::protobuf::Arena *) [with T=tensorflow::TensorShapeProto_Dim]" 
  external/protobuf_archive/src/google/protobuf/repeated_field.h(648): here
              instantiation of "GenericType *google::protobuf::internal::GenericTypeHandler&lt;GenericType&gt;::New(google::protobuf::Arena *) [with GenericType=tensorflow::TensorShapeProto_Dim]" 
  external/protobuf_archive/src/google/protobuf/repeated_field.h(675): here
              instantiation of "GenericType *google::protobuf::internal::GenericTypeHandler&lt;GenericType&gt;::NewFromPrototype(const GenericType *, google::protobuf::Arena *) [with GenericType=tensorflow::TensorShapeProto_Dim]" 
  external/protobuf_archive/src/google/protobuf/repeated_field.h(1554): here
              instantiation of "TypeHandler::Type *google::protobuf::internal::RepeatedPtrFieldBase::Add&lt;TypeHandler&gt;(TypeHandler::Type *) [with TypeHandler=google::protobuf::RepeatedPtrField&lt;tensorflow::TensorShapeProto_Dim&gt;::TypeHandler]" 
  external/protobuf_archive/src/google/protobuf/repeated_field.h(2001): here
              instantiation of "Element *google::protobuf::RepeatedPtrField&lt;Element&gt;::Add() [with Element=tensorflow::TensorShapeProto_Dim]" 
  bazel-out/local_darwin-opt/genfiles/tensorflow/core/framework/tensor_shape.pb.h(471): here
  
  ....
  </code></pre>
  
  <p>Has anyone bumped into this issue ? Any ideas on how to tackle this issue ?</p>
  
  <p>(I'm using Python 2.7 in a virtual environment on OSX 10.11.5)</p>