Issue 1:
System information

OS Platform and Distribution (e.g., Linux Ubuntu 16.04): 16.04

TensorFlow installed from (source or binary): source

TensorFlow version (use command below): r1.7

Python version: 2.7

Bazel version (if compiling from source): 0.13

GCC/Compiler version (if compiling from source):

CUDA/cuDNN version:

Describe the problem

met compile error with:

tensorflow/core/kernels/gather_nd_op_gpu.cu.cc(45): error: calling a host function("__builtin_expect") from a global function("tensorflow::GatherSliceOpKernel< ::std::complex , long long, (int)4> ") is not allowed

tensorflow/core/kernels/gather_nd_op_gpu.cu.cc(45): error: calling a host function("__builtin_expect") from a global function("tensorflow::GatherSliceOpKernel< ::std::complex , long long, (int)5> ") is not allowed

tensorflow/core/kernels/gather_nd_op_gpu.cu.cc(45): error: calling a host function("__builtin_expect") from a global function("tensorflow::GatherSliceOpKernel< ::std::complex , long long, (int)6> ") is not allowed

tensorflow/core/kernels/gather_nd_op_gpu.cu.cc(45): error: calling a host function("__builtin_expect") from a global function("tensorflow::GatherSliceOpKernel< ::std::complex , long long, (int)7> ") is not allowed

80 errors detected in the compilation of "/tmp/tmpxft_0000502d_00000000-7_gather_nd_op_gpu.cu.cpp1.ii".

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

ERROR: /home/carmark/github/tensorflow/tensorflow/core/kernels/BUILD:690: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: 1050.472s, Critical Path: 77.58s

INFO: 4023 processes, local.

FAILED: Build did NOT complete successfully

Issue 2:
Hi I am trying to build tensorflow r1.7 branch with the following settings:

cuda 8.0

cudnn 7.0

gcc 5.4

but i got the following error:

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::<unnamed>::IdentityOp::operator()" was declared but never referenced

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

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

tensorflow/core/kernels/dynamic_partition_op_gpu.cu.cc(171): warning: function "tensorflow::<unnamed>::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< ::Eigen::half, int, (bool)1> ") 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<float, int, (bool)1> ") 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<double, int, (bool)1> ") 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< ::std::complex<float> , int, (bool)1
> ") 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< ::std::complex<double> , int, (bool)
1> ") 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