Serving: C++ compilation of rule '@grpc//:gpr_base' failed (Exit 1)

Created on 10 Jun 2018  路  7Comments  路  Source: tensorflow/serving

build from source (branch of master) get this error:

/home/cheng/.cache/bazel/_bazel_cheng/7093405830a5ee3b65d3724ad0e90a61/external/grpc/BUILD:502:1: C++ compilation of rule '@grpc//:gpr_base' failed (Exit 1)

Most helpful comment

As I didn't check other error:
"This file requires compiler and library support for the ISO C++ 2011 standard. This support is currently experimental, and must be enabled with the -std=c++11 or -std=gnu++11 compiler options."

So, I found that adding '--cxxopt=-std=c++11' to the build statement can fix the error.
i.e. bazel build --cxxopt=-std=c++11 -c opt //tensorflow/examples/android:tensorflow_demo

Finally, build completed successfully.

All 7 comments

build again occur another error
ERROR: /home/cheng/.cache/bazel/_bazel_cheng/9169ba2d766db3a0585ca9afc23a6cb7/external/protobuf_archive/BUILD:66:1: C++ compilation of rule '@protobuf_archive//:protobuf_lite' failed (Exit 1)

bazel version 0.14.0

Did you solve the problem? I got the same error. "C++ compilation of rule '@protobuf_archive//:protobuf_lite' failed (Exit 1)"

I try to build tensorflow_model_server bin only:

bazel build -c opt //tensorflow_serving/model_servers:tensorflow_model_server

I try to build the demo apk file and got that error. But now this error disappeared and I got another one "C++ compilation of rule '//tensorflow/core:error_codes_proto_cc_impl' failed (Exit 1)".
Anyway, thanks for the quick reply.

As I didn't check other error:
"This file requires compiler and library support for the ISO C++ 2011 standard. This support is currently experimental, and must be enabled with the -std=c++11 or -std=gnu++11 compiler options."

So, I found that adding '--cxxopt=-std=c++11' to the build statement can fix the error.
i.e. bazel build --cxxopt=-std=c++11 -c opt //tensorflow/examples/android:tensorflow_demo

Finally, build completed successfully.

it build successfully but where should my .so files. i mean where should be place libtensorflow_inference.so
library file..in my system...

Was this page helpful?
0 / 5 - 0 ratings

Related issues

jluite picture jluite  路  4Comments

atwj picture atwj  路  4Comments

OmriShiv picture OmriShiv  路  3Comments

cchung100m picture cchung100m  路  4Comments

prateekgupta11 picture prateekgupta11  路  4Comments