title: Compiling tensorflow from source: Undefined reference to tensorflow::functor::FillFunctor
body: <p>When compiling tensorflow from source with GPU support I get:</p>
  
  <pre><code>bazel build -c opt --config=cuda --verbose_failures //tensorflow/cc:tutorials_example_trainer
  WARNING: Output base '/auto/homes/.cache/bazel/_bazel_/bd4752ce1a89280ab0ba7ef21866f7b1' is on NFS. This may lead to surprising failures and undetermined behavior.
  WARNING: Sandboxed execution is not supported on your system and thus hermeticity of actions cannot be guaranteed. See http://bazel.io/docs/bazel-user-manual.html#sandboxing for more information. You can turn off this warning via --ignore_unsupported_sandboxing.
  INFO: Found 1 target...
  INFO: From Linking tensorflow/cc/tutorials_example_trainer:
  bazel-out/local_linux-opt/bin/tensorflow/core/libkernels.lo(constant_op.o): In function `tensorflow::ZerosLikeOp&lt;Eigen::GpuDevice, bool&gt;::Compute(tensorflow::OpKernelContext*)':
  constant_op.cc:(.text._ZN10tensorflow11ZerosLikeOpIN5Eigen9GpuDeviceEbE7ComputeEPNS_15OpKernelContextE[_ZN10tensorflow11ZerosLikeOpIN5Eigen9GpuDeviceEbE7ComputeEPNS_15OpKernelContextE]+0x181): undefined reference to `tensorflow::functor::FillFunctor&lt;Eigen::GpuDevice, bool&gt;::operator()(Eigen::GpuDevice const&amp;, Eigen::TensorMap&lt;Eigen::Tensor&lt;bool, 1, 1, long&gt;, 16&gt;, Eigen::TensorMap&lt;Eigen::TensorFixedSize&lt;bool const, Eigen::Sizes&lt;&gt;, 1, long&gt;, 16&gt;)'
  collect2: error: ld returned 1 exit status
  </code></pre>
  
  <p>I've tried different bazel versions (0.1.1 and 0.1.4) but I get the same error. Any ideas?</p>