I build tensorflow successfully using the default installation of bazel. Now, I want to use my custom gcc/g++ compiler(for example: linaro gcc) compiler to build some tensorflow examples. But I got the following error:
gcc: error trying to exec 'cc1': execvp: No such file or directory
here is my steps:
1. export CC=/my/path/gcc
export CXX=/my/path/g++
2. bazel build tensorflow/examples/wav_to_spectrogram/...
3. got the previous error msg, but i confirm that cc1 indeed exists.
some information:
bazel version: bazel release 0.7.0(install from apt-get install bazel)
os: ubuntu 14.04
tensorflow: r1.4(from github)
I think this maybe a common question: how to change the default compiler for bazel?
I try to find the answer from google, but not luck.
Can anyone give some advice? I will be appreciate.
Thanks.
--
You received this message because you are subscribed to the Google Groups "bazel-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to bazel-discus...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/bazel-discuss/1d26257c-0e2e-4870-8d20-007a67b17c88%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.