akirademoss / serving

A flexible, high-performance serving system for machine learning models
https://www.tensorflow.org/serving
Apache License 2.0
0 stars 0 forks source link

C++ compilation of rule ... failed (Exit 1): crosstool_wrapper_driver_is_not_gcc failed: error executing command ... #2

Open akirademoss opened 4 years ago

akirademoss commented 4 years ago

System information

Describe the problem

I get the error below

ERROR: /home/mclovin/.cache/bazel/_bazel_mclovin/17571bb08b4e8f2821e6e227f7bcf686/external/org_tensorflow/tensorflow/core/kernels/rnn/BUILD:54:1: Couldn't build file external/org_tensorflow/tensorflow/core/kernels/rnn/_objs/gru_ops_gpu/gru_ops_gpu.cu.pic.o: C++ compilation of rule '@org_tensorflow//tensorflow/core/kernels/rnn:gru_ops_gpu' failed (Exit 1): crosstool_wrapper_driver_is_not_gcc failed: error executing command 
  (cd /home/mclovin/.cache/bazel/_bazel_mclovin/17571bb08b4e8f2821e6e227f7bcf686/execroot/tf_serving && \
  exec env - \

Exact Steps to Reproduce

bazel build --copt=-mavx --copt=-msse4.2 --config=cuda --define=using_cuda=true --define=using_cuda=true --define=using_cuda_nvcc=true --spawn_strategy=standalone --genrule_strategy=standalone --define=framework_shared_object=true --cxxopt=-std=c++14 tensorflow_serving/...

Possible steps to resolve

unknown, have tried many things.

akirademoss commented 4 years ago

It seems it could be an issues with bazel, here is a good article to read when I get the time

https://docs.bazel.build/versions/0.20.0/tutorial/crosstool.html