cjweeks / tensorflow-cmake

Integrate TensorFlow with CMake projects effortlessly
MIT License
331 stars 83 forks source link

Failed to build, "illegal output file name" error #34

Open kindlychung opened 6 years ago

kindlychung commented 6 years ago

I keep getting this error:

bazel build tensorflow:libtensorflow_all.so
Extracting Bazel installation...
.......
ERROR: /home/kaiyin/.cache/bazel/_bazel_kaiyin/6290548fbf85c2ff9cc63e8bfe724488/external/local_config_cuda/cuda/BUILD:8868:1: @local_config_cuda//cuda:cuda-nvvm: illegal output file name 'cuda/nvvm/espeak-ng-data/voices/!v/Andy' in rule @local_config_cuda//cuda:cuda-nvvm: invalid target name 'cuda/nvvm/espeak-ng-data/voices/!v/Andy': target names may not contain '!'.
ERROR: /home/kaiyin/.cache/bazel/_bazel_kaiyin/6290548fbf85c2ff9cc63e8bfe724488/external/local_config_cuda/cuda/BUILD:8868:1: @local_config_cuda//cuda:cuda-nvvm: missing value for mandatory attribute 'outs' in 'genrule' rule.
ERROR: /home/kaiyin/CppProjects/tensorflow/tensorflow/core/BUILD:736:1: Target '@local_config_cuda//cuda:using_clang' contains an error and its package is in error and referenced by '//tensorflow/core:core_cpu'.
ERROR: /home/kaiyin/CppProjects/tensorflow/tensorflow/core/BUILD:736:1: Target '@local_config_cuda//cuda:using_nvcc' contains an error and its package is in error and referenced by '//tensorflow/core:core_cpu'.
ERROR: /home/kaiyin/CppProjects/tensorflow/tensorflow/core/BUILD:736:1: Target '@local_config_cuda//cuda:using_clang' contains an error and its package is in error and referenced by '//tensorflow/core:core_cpu'.
ERROR: /home/kaiyin/CppProjects/tensorflow/tensorflow/core/BUILD:736:1: Target '@local_config_cuda//cuda:using_nvcc' contains an error and its package is in error and referenced by '//tensorflow/core:core_cpu'.
ERROR: Analysis of target '//tensorflow:libtensorflow_all.so' failed; build aborted.
INFO: Elapsed time: 88.576s

Tensorflow master branch. bazel 0.5.4 gcc 4.9.4 cuda 8.0 cudnn 6.0 python 3.5

Any idea why this is happening?