{"action":"created","issue":{"url":"https://api.github.com/repos/bazelbuild/bazel/issues/649","labels_url":"https://api.github.com/repos/bazelbuild/bazel/issues/649/labels{/name}","comments_url":"https://api.github.com/repos/bazelbuild/bazel/issues/649/comments","events_url":"https://api.github.com/repos/bazelbuild/bazel/issues/649/events","html_url":"https://github.com/bazelbuild/bazel/issues/649","id":118691016,"number":649,"title":"Cannot make tensorflow to use a local gcc installation?","user":{"login":"casiciaco","id":2345400,"avatar_url":"https://avatars.githubusercontent.com/u/2345400?v=3","gravatar_id":"","url":"https://api.github.com/users/casiciaco","html_url":"https://github.com/casiciaco","followers_url":"https://api.github.com/users/casiciaco/followers","following_url":"https://api.github.com/users/casiciaco/following{/other_user}","gists_url":"https://api.github.com/users/casiciaco/gists{/gist_id}","starred_url":"https://api.github.com/users/casiciaco/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/casiciaco/subscriptions","organizations_url":"https://api.github.com/users/casiciaco/orgs","repos_url":"https://api.github.com/users/casiciaco/repos","events_url":"https://api.github.com/users/casiciaco/events{/privacy}","received_events_url":"https://api.github.com/users/casiciaco/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/bazelbuild/bazel/labels/help%20wanted","name":"help wanted","color":"159818"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":10,"created_at":"2015-11-24T20:00:12Z","updated_at":"2015-12-18T09:18:01Z","closed_at":null,"body":"Hi,\r\nI am bound to an old installation on a machine. I had to install a local gcc 4.8.1 and  thanks to the community I managed to compile bazel (https://github.com/bazelbuild/bazel/issues/629) .  However, now I am unable to compile tensorflow. This is the error I get:\r\n```\r\ngcc: unrecognized option '-no-canonical-prefixes'\r\ncc1plus: error: unrecognized command line option \"-std=c++11\"\r\ncc1plus: warning: unrecognized command line option \"-Wno-free-nonheap-object\"\r\nERROR: $HOME/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 ... : com.google.devtools.build.lib.shell.BadExitStatusException: Process exited with status 1.\r\n```\r\nI guess it is not getting the correct gcc, since if I run : \r\n``` \r\n/path/to/local/gcc.4.8.1/bin/gcc -std=c++11  example.cc \r\n```\r\nAll is ok, but if I run \r\n```\r\n/usr/bin/gcc  -std=c++11 example.cc\r\n```\r\nI get the same error\"\r\n```\r\ncc1plus: error: unrecognized command line option \"-std=c++11\"\r\n```\r\nIf I add the ``` --verbose_failures ``` option, I get this additional information:\r\n```\r\n(cd $HOME/.cache/bazel/_bazel_$USER/2d4cdeea5be55811d371414ca0f7bd15/tensorflow && \\\r\n  exec env - \\\r\n    PATH=$HOME/jdk1.8.0_65/bin/:$HOME/local.gcc-4.8.1/bin:/usr/lib64/qt-3.3/bin:/usr/local/bin:/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/sbin:$HOME/bin \\\r\n  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 -fno-omit-frame-pointer -g0 -O2 -DNDEBUG -ffunction-sections -fdata-sections '-std=c++11' -iquote . -iquote bazel-out/local_linux-opt/genfiles -iquote external/bazel_tools -iquote bazel-out/local_linux-opt/genfiles/external/bazel_tools -isystem google/protobuf/src -isystem bazel-out/local_linux-opt/genfiles/google/protobuf/src -isystem external/bazel_tools/tools/cpp/gcc3 -DHAVE_PTHREAD -Wall -Wwrite-strings -Woverloaded-virtual -Wno-sign-compare '-Wno-error=unused-function' -no-canonical-prefixes -Wno-builtin-macro-redefined '-D__DATE__=\"redacted\"' '-D__TIMESTAMP__=\"redacted\"' '-D__TIME__=\"redacted\"' '-frandom-seed=bazel-out/local_linux-opt/bin/google/protobuf/_objs/protobuf_lite/google/protobuf/src/google/protobuf/wire_format_lite.o' -MD -MF bazel-out/local_linux-opt/bin/google/protobuf/_objs/protobuf_lite/google/protobuf/src/google/protobuf/wire_format_lite.d -c google/protobuf/src/google/protobuf/wire_format_lite.cc -o bazel-out/local_linux-opt/bin/google/protobuf/_objs/protobuf_lite/google/protobuf/src/google/protobuf/wire_format_lite.o)\r\n```\r\n How can I make it use the correct gcc ? Tensorflow comunity redirected me to bazel comunity : \r\nhttps://github.com/tensorflow/tensorflow/issues/336\r\n\r\nThanks,"},"comment":{"url":"https://api.github.com/repos/bazelbuild/bazel/issues/comments/165721073","html_url":"https://github.com/bazelbuild/bazel/issues/649#issuecomment-165721073","issue_url":"https://api.github.com/repos/bazelbuild/bazel/issues/649","id":165721073,"user":{"login":"damienmg","id":3721087,"avatar_url":"https://avatars.githubusercontent.com/u/3721087?v=3","gravatar_id":"","url":"https://api.github.com/users/damienmg","html_url":"https://github.com/damienmg","followers_url":"https://api.github.com/users/damienmg/followers","following_url":"https://api.github.com/users/damienmg/following{/other_user}","gists_url":"https://api.github.com/users/damienmg/gists{/gist_id}","starred_url":"https://api.github.com/users/damienmg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/damienmg/subscriptions","organizations_url":"https://api.github.com/users/damienmg/orgs","repos_url":"https://api.github.com/users/damienmg/repos","events_url":"https://api.github.com/users/damienmg/events{/privacy}","received_events_url":"https://api.github.com/users/damienmg/received_events","type":"User","site_admin":false},"created_at":"2015-12-18T09:18:01Z","updated_at":"2015-12-18T09:18:01Z","body":"@casiciaco did @sethbruder answer helped? Do you still need help?\r\n\r\n"}}