tensorflow: when install from sources, I encounter ERROR: C++ compilation of rule '//google/protobuf:protobuf_lite' failed: crosstool_wrapper_driver_is_not_gcc failed
Do anyone compile the source of Tensor Flow? When I install Tensor Flow from sources, After I excute under command in terminal.
bazel build -c opt --config=cuda //tensorflow/cc:tutorials_example_trainer
I encounter the follow error.
ERROR: ~/tensorflow/google/protobuf/BUILD:29:1: C++ compilation of rule
'//google/protobuf:protobuf_lite' failed: crosstool_wrapper_driver_is_not_gcc failed: error
executing command third_party/gpus/crosstool/clang/bin/crosstool_wrapper_driver_is_not_gcc -
U_FORTIFY_SOURCE '-D_FORTIFY_SOURCE=1' -fstack-protector -fPIE -Wall -Wunused-but-set-
parameter -Wno-free-nonheap-object ... (remaining 40 argument(s) skipped).
Target //tensorflow/cc:tutorials_example_trainer failed to build
My OS is Ubuntu 14.04,GCC/G++ is 4.7, GPU is K40c, Python is 2.7, cuda is 7.0, cudnn is 6.5v2, bazel is installed by compile source code.
About this issue
- Original URL
- State: closed
- Created 9 years ago
- Comments: 17 (6 by maintainers)
Same here, except with a different error:
EDIT: I fixed this by adding the
fno-use-linker-plugin
flag to the compiler.