<h3 dir="auto">System information</h3>
<ul dir="auto">
<li><strong>OS Platform and Distribution (e.g., Linux Ubuntu 16.04)</strong>: 16.04</li>
<li><strong>TensorFlow installed from (source or binary)</strong>: source</li>
<li><strong>TensorFlow version (use command below)</strong>: r1.7</li>
<li><strong>Python version</strong>: 2.7</li>
<li><strong>Bazel version (if compiling from source)</strong>: 0.13</li>
<li><strong>GCC/Compiler version (if compiling from source)</strong>:</li>
<li><strong>CUDA/cuDNN version</strong>:</li>
</ul>
<h3 dir="auto">Describe the problem</h3>
<p dir="auto">met compile error with:<br>
tensorflow/core/kernels/gather_nd_op_gpu.cu.cc(45): error: calling a <strong>host</strong> function("__builtin_expect") from a <strong>global</strong> function("tensorflow::GatherSliceOpKernel&lt; ::std::complex , long long, (int)4&gt; ") is not allowed</p>
<p dir="auto">tensorflow/core/kernels/gather_nd_op_gpu.cu.cc(45): error: calling a <strong>host</strong> function("__builtin_expect") from a <strong>global</strong> function("tensorflow::GatherSliceOpKernel&lt; ::std::complex , long long, (int)5&gt; ") is not allowed</p>
<p dir="auto">tensorflow/core/kernels/gather_nd_op_gpu.cu.cc(45): error: calling a <strong>host</strong> function("__builtin_expect") from a <strong>global</strong> function("tensorflow::GatherSliceOpKernel&lt; ::std::complex , long long, (int)6&gt; ") is not allowed</p>
<p dir="auto">tensorflow/core/kernels/gather_nd_op_gpu.cu.cc(45): error: calling a <strong>host</strong> function("__builtin_expect") from a <strong>global</strong> function("tensorflow::GatherSliceOpKernel&lt; ::std::complex , long long, (int)7&gt; ") is not allowed</p>
<p dir="auto">80 errors detected in the compilation of "/tmp/tmpxft_0000502d_00000000-7_gather_nd_op_gpu.cu.cpp1.ii".<br>
ERROR: /home/carmark/github/tensorflow/tensorflow/core/kernels/BUILD:690:1: output 'tensorflow/core/kernels/_objs/gather_nd_op_gpu/tensorflow/core/kernels/gather_nd_op_gpu.cu.pic.o' was not created<br>
ERROR: /home/carmark/github/tensorflow/tensorflow/core/kernels/BUILD:690:1: not all outputs were created or valid<br>
Target //tensorflow/tools/pip_package:build_pip_package failed to build<br>
Use --verbose_failures to see the command lines of failed build steps.<br>
INFO: Elapsed time: 1050.472s, Critical Path: 77.58s<br>
INFO: 4023 processes, local.<br>
FAILED: Build did NOT complete successfully</p>
<p dir="auto">Hi I am trying to build tensorflow r1.7 branch with the following settings:</p>
<ul dir="auto">
<li>cuda 8.0</li>
<li>cudnn 7.0</li>
<li>gcc 5.4</li>
</ul>
<p dir="auto">but i got the following error:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="tensorflow/core/kernels/neon/neon_depthwise_conv_op.cc:138:42:   required from here
./tensorflow/core/kernels/neon/depthwiseconv_float.h:602:7: warning: variable 'fixed_input_depth' set
 but not used [-Wunused-but-set-variable]
   int fixed_input_depth = 0;
       ^
INFO: From Compiling tensorflow/core/kernels/dynamic_partition_op_gpu.cu.cc:
tensorflow/core/kernels/dynamic_partition_op_gpu.cu.cc(113): warning: function &quot;tensorflow::&lt;unnamed&gt;::IdentityOp::operator()&quot; was declared but never referenced

tensorflow/core/kernels/dynamic_partition_op_gpu.cu.cc(155): warning: function &quot;tensorflow::&lt;unnamed&gt;::BoundedOutputIterator::operator*&quot; was declared but never referenced

tensorflow/core/kernels/dynamic_partition_op_gpu.cu.cc(165): warning: function &quot;tensorflow::&lt;unnamed&gt;::BoundedOutputIterator::operator+&quot; was declared but never referenced

tensorflow/core/kernels/dynamic_partition_op_gpu.cu.cc(171): warning: function &quot;tensorflow::&lt;unnamed&gt;::BoundedOutputIterator::operator-&quot; was declared but never referenced

./tensorflow/core/kernels/gather_functor_gpu.cu.h(57): error: calling a __host__ function(&quot;__builtin_
expect&quot;) from a __global__ function(&quot;tensorflow::GatherOpKernel&lt; ::Eigen::half, int, (bool)1&gt; &quot;) is n
ot allowed

./tensorflow/core/kernels/gather_functor_gpu.cu.h(57): error: calling a __host__ function(&quot;__builtin_
expect&quot;) from a __global__ function(&quot;tensorflow::GatherOpKernel&lt;float, int, (bool)1&gt; &quot;) is not allowe
d

./tensorflow/core/kernels/gather_functor_gpu.cu.h(57): error: calling a __host__ function(&quot;__builtin_
expect&quot;) from a __global__ function(&quot;tensorflow::GatherOpKernel&lt;double, int, (bool)1&gt; &quot;) is not allow
ed

./tensorflow/core/kernels/gather_functor_gpu.cu.h(57): error: calling a __host__ function(&quot;__builtin_
expect&quot;) from a __global__ function(&quot;tensorflow::GatherOpKernel&lt; ::std::complex&lt;float&gt; , int, (bool)1
&gt; &quot;) is not allowed

./tensorflow/core/kernels/gather_functor_gpu.cu.h(57): error: calling a __host__ function(&quot;__builtin_
expect&quot;) from a __global__ function(&quot;tensorflow::GatherOpKernel&lt; ::std::complex&lt;double&gt; , int, (bool)
1&gt; &quot;) is not allowed

5 errors detected in the compilation of &quot;/tmp/tmpxft_00004427_00000000-7_dynamic_partition_op_gpu.cu.
cpp1.ii&quot;.
ERROR: /home/ubuntu/tensorflow/tensorflow/core/kernels/BUILD:1702:1: output 'tensorflow/core/kernels/
_objs/dynamic_partition_op_gpu/tensorflow/core/kernels/dynamic_partition_op_gpu.cu.pic.o' was not cre
ated
ERROR: /home/ubuntu/tensorflow/tensorflow/core/kernels/BUILD:1702:1: not all outputs were created or
valid
Target //tensorflow/tools/pip_package:build_pip_package failed to build
Use --verbose_failures to see the command lines of failed build steps.
INFO: Elapsed time: 770.936s, Critical Path: 154.34s
INFO: 1470 processes, local.
FAILED: Build did NOT complete successfully"><pre class="notranslate"><code class="notranslate">tensorflow/core/kernels/neon/neon_depthwise_conv_op.cc:138:42:   required from here
./tensorflow/core/kernels/neon/depthwiseconv_float.h:602:7: warning: variable 'fixed_input_depth' set
 but not used [-Wunused-but-set-variable]
   int fixed_input_depth = 0;
       ^
INFO: From Compiling tensorflow/core/kernels/dynamic_partition_op_gpu.cu.cc:
tensorflow/core/kernels/dynamic_partition_op_gpu.cu.cc(113): warning: function "tensorflow::&lt;unnamed&gt;::IdentityOp::operator()" was declared but never referenced

tensorflow/core/kernels/dynamic_partition_op_gpu.cu.cc(155): warning: function "tensorflow::&lt;unnamed&gt;::BoundedOutputIterator::operator*" was declared but never referenced

tensorflow/core/kernels/dynamic_partition_op_gpu.cu.cc(165): warning: function "tensorflow::&lt;unnamed&gt;::BoundedOutputIterator::operator+" was declared but never referenced

tensorflow/core/kernels/dynamic_partition_op_gpu.cu.cc(171): warning: function "tensorflow::&lt;unnamed&gt;::BoundedOutputIterator::operator-" was declared but never referenced

./tensorflow/core/kernels/gather_functor_gpu.cu.h(57): error: calling a __host__ function("__builtin_
expect") from a __global__ function("tensorflow::GatherOpKernel&lt; ::Eigen::half, int, (bool)1&gt; ") is n
ot allowed

./tensorflow/core/kernels/gather_functor_gpu.cu.h(57): error: calling a __host__ function("__builtin_
expect") from a __global__ function("tensorflow::GatherOpKernel&lt;float, int, (bool)1&gt; ") is not allowe
d

./tensorflow/core/kernels/gather_functor_gpu.cu.h(57): error: calling a __host__ function("__builtin_
expect") from a __global__ function("tensorflow::GatherOpKernel&lt;double, int, (bool)1&gt; ") is not allow
ed

./tensorflow/core/kernels/gather_functor_gpu.cu.h(57): error: calling a __host__ function("__builtin_
expect") from a __global__ function("tensorflow::GatherOpKernel&lt; ::std::complex&lt;float&gt; , int, (bool)1
&gt; ") is not allowed

./tensorflow/core/kernels/gather_functor_gpu.cu.h(57): error: calling a __host__ function("__builtin_
expect") from a __global__ function("tensorflow::GatherOpKernel&lt; ::std::complex&lt;double&gt; , int, (bool)
1&gt; ") is not allowed

5 errors detected in the compilation of "/tmp/tmpxft_00004427_00000000-7_dynamic_partition_op_gpu.cu.
cpp1.ii".
ERROR: /home/ubuntu/tensorflow/tensorflow/core/kernels/BUILD:1702:1: output 'tensorflow/core/kernels/
_objs/dynamic_partition_op_gpu/tensorflow/core/kernels/dynamic_partition_op_gpu.cu.pic.o' was not cre
ated
ERROR: /home/ubuntu/tensorflow/tensorflow/core/kernels/BUILD:1702:1: not all outputs were created or
valid
Target //tensorflow/tools/pip_package:build_pip_package failed to build
Use --verbose_failures to see the command lines of failed build steps.
INFO: Elapsed time: 770.936s, Critical Path: 154.34s
INFO: 1470 processes, local.
FAILED: Build did NOT complete successfully
</code></pre></div>