{"action":"created","issue":{"url":"https://api.github.com/repos/bazelbuild/bazel/issues/760","labels_url":"https://api.github.com/repos/bazelbuild/bazel/issues/760/labels{/name}","comments_url":"https://api.github.com/repos/bazelbuild/bazel/issues/760/comments","events_url":"https://api.github.com/repos/bazelbuild/bazel/issues/760/events","html_url":"https://github.com/bazelbuild/bazel/issues/760","id":125622945,"number":760,"title":"failed to install bazel on Red Hat 6.7","user":{"login":"digitalsword","id":12500045,"avatar_url":"https://avatars.githubusercontent.com/u/12500045?v=3","gravatar_id":"","url":"https://api.github.com/users/digitalsword","html_url":"https://github.com/digitalsword","followers_url":"https://api.github.com/users/digitalsword/followers","following_url":"https://api.github.com/users/digitalsword/following{/other_user}","gists_url":"https://api.github.com/users/digitalsword/gists{/gist_id}","starred_url":"https://api.github.com/users/digitalsword/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/digitalsword/subscriptions","organizations_url":"https://api.github.com/users/digitalsword/orgs","repos_url":"https://api.github.com/users/digitalsword/repos","events_url":"https://api.github.com/users/digitalsword/events{/privacy}","received_events_url":"https://api.github.com/users/digitalsword/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":3,"created_at":"2016-01-08T14:33:06Z","updated_at":"2016-01-11T14:43:17Z","closed_at":null,"body":"I would like to install bazel from source, and use bazel to compile tensorflow on a cluster running redhat 6.7. When I try to install bazel, the glibc version (2.12) is too old. I do not have root access to the cluster. Is it possible to install tensorflow in this case?\r\n\r\nMy system information:\r\n```\r\n-bash-4.1$ cat /etc/redhat-release\r\nRed Hat Enterprise Linux Server release 6.7 (Santiago)\r\n-bash-4.1$ which gcc\r\n/usr/bin/gcc\r\n-bash-4.1$ gcc -v\r\nUsing built-in specs.\r\nTarget: x86_64-redhat-linux\r\nConfigured with: ../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --with-bugurl=http://bugzilla.redhat.com/bugzilla --enable-bootstrap --enable-shared --enable-threads=posix --enable-checking=release --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-gnu-unique-object --enable-languages=c,c++,objc,obj-c++,java,fortran,ada --enable-java-awt=gtk --disable-dssi --with-java-home=/usr/lib/jvm/java-1.5.0-gcj-1.5.0.0/jre --enable-libgcj-multifile --enable-java-maintainer-mode --with-ecj-jar=/usr/share/java/eclipse-ecj.jar --disable-libjava-multilib --with-ppl --with-cloog --with-tune=generic --with-arch_32=i686 --build=x86_64-redhat-linux\r\nThread model: posix\r\ngcc version 4.4.7 20120313 (Red Hat 4.4.7-16) (GCC) \r\n-bash-4.1$ ldd --version\r\nldd (GNU libc) 2.12\r\n```\r\n\r\nThe system has newer gcc installed as well. I tried using it, bazel still won't compile.\r\n```\r\n-bash-4.1$ /usr/local/gcc/4.8.4/bin/gcc -v\r\nUsing built-in specs.\r\nCOLLECT_GCC=/usr/local/gcc/4.8.4/bin/gcc\r\nCOLLECT_LTO_WRAPPER=/usr/local/gcc/4.8.4/libexec/gcc/x86_64-unknown-linux-gnu/4.8.4/lto-wrapper\r\nTarget: x86_64-unknown-linux-gnu\r\nConfigured with: ../configure --prefix=/usr/local/gcc/4.8.4\r\nThread model: posix\r\ngcc version 4.8.4 (GCC) \r\n```\r\n\r\nWhen I was compiling bazel using gcc 4.8.4, I got the following error:\r\n```\r\nbazel-0.1.1/_bin/build-runfiles: /usr/lib64/libstdc++.so.6: version `GLIBCXX_3.4.14' not found\r\n```\r\nHow can I install the missing dependency locally, and have bazel pick up the right version of glib? What part of  tools/cpp/CROSSTOOL should I modify? What environment variables should I set before ./compile.sh\r\n\r\nI am trying to install bazel-0.1.1 instead of bazel-0.1.2 because the latter does not compile tensorflow.\r\nhttps://github.com/tensorflow/tensorflow/issues/469\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/bazelbuild/bazel/issues/comments/170574051","html_url":"https://github.com/bazelbuild/bazel/issues/760#issuecomment-170574051","issue_url":"https://api.github.com/repos/bazelbuild/bazel/issues/760","id":170574051,"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":"2016-01-11T14:43:17Z","updated_at":"2016-01-11T14:43:17Z","body":"There you are failing at the first step you should export CXX, CC, LDFLAGS and CXXFLAGS\r\n\r\nI am removing the need for this, but it's still there for now."}}