git clone https://github.com/bazelbuild/bazel.git
cd bazel
./compile.sh
...
ERROR: /root/bazel/third_party/ijar/BUILD:33:1: C++ compilation of rule '//third_party/ijar:zlib_client' failed: process-wrapper failed: error executing command
(cd /tmp/bazel_P18dy8xh/out/bazel-sandbox/e3185036-67f8-47b0-813f-63bbdf7961b6-20/execroot/bazel && \
exec env - \
PATH=/usr/lib/qt-3.3/bin:/usr/local/sbin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/bin:/bin:/sbin:/usr/sbin:/usr/rcf-krb5/bin:/usr/rcf/bin:/afs/rcf/admin/bin:/root/bin \
/tmp/bazel_P18dy8xh/out/execroot/bazel/_bin/process-wrapper -1 5 - - /usr/bin/gcc -U_FORTIFY_SOURCE '-D_FORTIFY_SOURCE=1' -fstack-protector -Wall -Wl,-z,-relro,-z,now -B/usr/bin -B/usr/bin -Wunused-but-set-parameter -Wno-free-nonheap-object -fno-omit-frame-pointer -g0 -O2 -DNDEBUG -ffunction-sections -fdata-sections -g0 '-std=c++0x' -MD -MF bazel-out/host/bin/third_party/ijar/_objs/zlib_client/third_party/ijar/zlib_client.d '-frandom-seed=bazel-out/host/bin/third_party/ijar/_objs/zlib_client/third_party/ijar/zlib_client.o' -iquote . -iquote bazel-out/host/genfiles -iquote external/bazel_tools -iquote bazel-out/host/genfiles/external/bazel_tools -isystem third_party/zlib -isystem bazel-out/host/genfiles/third_party/zlib -isystem external/bazel_tools/tools/cpp/gcc3 -Wno-builtin-macro-redefined '-D__DATE__="redacted"' '-D__TIMESTAMP__="redacted"' '-D__TIME__="redacted"' -c third_party/ijar/zlib_client.cc -o bazel-out/host/bin/third_party/ijar/_objs/zlib_client/third_party/ijar/zlib_client.o).
In file included from third_party/ijar/zlib_client.cc:20:
./third_party/ijar/zlib_client.h:64: error: 'numeric_limits' is not a member of 'std'
./third_party/ijar/zlib_client.h:64: error: expected primary-expression before '>' token
./third_party/ijar/zlib_client.h:64: error: '::max' has not been declared
./third_party/ijar/zlib_client.h:64: error: a function call cannot appear in a constant-expression
cc1plus: warning: unrecognized command line option "-Wno-free-nonheap-object"
Target //src:bazel failed to build
INFO: Elapsed time: 43.958s, Critical Path: 15.40s
ERROR: Could not build Bazel