Skip to content

when install from sources, I encounter ERROR: C++ compilation of rule '//google/protobuf:protobuf_lite' failed: crosstool_wrapper_driver_is_not_gcc failed #190

@xuezhisd

Description

@xuezhisd

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.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions