TensorFlow: error parsing .d file

I am using Ubuntu 15.10. I am currently creating TensorFlow from a source, following the instructions here .

My installation was successful, except for the last step: "Build your goal with GPU support."

When I run this command from the root of my source tree:

bazel build -c opt --config=cuda //tensorflow/cc:tutorials_example_trainer

I see the following output:

INFO: Found 1 target...
ERROR: /home/me/tensorflow/tensorflow/core/kernels/BUILD:549:1: error while parsing .d file: /home/me/.cache/bazel/_bazel_me/38a03c514c8dc954778fc9a555bce3de/tensorflow/bazel-out/local_linux-opt/bin/tensorflow/core/kernels/_objs/colorspace_op_gpu/tensorflow/core/kernels/colorspace_op_gpu.cu.d (No such file or directory).
nvcc warning : option '--relaxed-constexpr' has been deprecated and replaced by option '--expt-relaxed-constexpr'.
In file included from third_party/gpus/cuda/include/cuda_runtime.h:76:0,
                 from <command-line>:0:
third_party/gpus/cuda/include/host_config.h:115:2: error: #error -- unsupported GNU version! gcc versions later than 4.9 are not supported!
 #error -- unsupported GNU version! gcc versions later than 4.9 are not supported!
  ^
Target //tensorflow/cc:tutorials_example_trainer failed to build
Use --verbose_failures to see the command lines of failed build steps.

There are a few things that I do not understand:

  • Why is the file .dmissing?
  • What does it mean?

Nvcc warning: the option '--relaxed-constexpr' is deprecated and replaced with the option '--expt-relaxed-constexpr'.

  1. My version of GCC is 5.2.1. Does this mean that I cannot build TensorFlow from the source?

Thank you for your help.

+4
1

gcc:

apt-get install gcc-4.8

:

update-alternatives --remove-all gcc
update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-4.8 10

TensorFlow gcc, /usr/bin/gcc-5.x.

.

+4

All Articles