Get Even More Visitors To Your Blog, Upgrade To A Business Listing >>

SOLVED: Using bazel to build tensorflow-serving from source meets error: C++ compilation of rule '@org_tensorflow//…' failed (Exit 4)

LI SHU:

I'm attempting to use bazel to build tensorflow-serving from https://github.com/tensorflow/serving on CentOS 7.3. My gcc version is 4.8.5, bazel version is 0.10.1. I am sure that I followed the install introduction and I have set up all prerequisites requested. Every time I run the command : bazel build -c opt tensorflow_serving/model_servers/... it will run for about 10~15 minutes and later stopped by an error:


ERROR:
/root/.cache/bazel/_bazel_root/2d16d9349bff8cf3d8fc4a53d2a23056/external/org_tensorflow/tensorflow/core/kernels/BUILD:3120:1: C++ compilation of rule '@org_tensorflow//tensorflow/core/kernels:conv_ops' failed (Exit 4)
gcc: internal compiler error: Killed (program cc1plus)
Please submit a full bug report,
with preprocessed source if appropriate.
See for instructions.
INFO: Elapsed time: 881.803s, Critical Path: 37.21s
FAILED: Build did NOT complete successfully

If I try another command :


bazel build -c opt tensorflow_serving/model_servers/...

to specifically build a subdirectory of serving, error comes like this:


ERROR:
/home/serving/tensorflow_serving/batching/BUILD:122:1: C++ compilation of rule '//tensorflow_serving/batching:batching_util' failed (Exit 4)
tensorflow_serving/batching/batching_util.cc: In function 'std::map<:basic_string>, std::vector > tensorflow::serving::CalculateMaxDimSizes(const std::vector<:vector>, tensorflow::Tensor> > >&)':
tensorflow_serving/batching/batching_util.cc:165:34: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int i = 0; i ^
gcc: internal compiler error: Killed (program cc1plus)
Please submit a full bug report,
with preprocessed source if appropriate.
See for instructions.
INFO: Elapsed time: 1486.641s, Critical Path: 211.94s
FAILED: Build did NOT complete successfully

Please forgive my poor English and help me ... I have been stuck in this problem for quite a long time.



Posted in S.E.F
via StackOverflow & StackExchange Atomic Web Robots


This post first appeared on Stack Solved, please read the originial post: here

Share the post

SOLVED: Using bazel to build tensorflow-serving from source meets error: C++ compilation of rule '@org_tensorflow//…' failed (Exit 4)

×

Subscribe to Stack Solved

Get updates delivered right to your inbox!

Thank you for your subscription

×