also how can i set the installation prefix?. Currently i am editing ./scripts/packages/template_bin.sh & setting the absolute path in prefix variable!! is this the right way to set prefix?
Any help/hint will be very useful.
Eagerly awaiting your replies.
$ ./compile.sh
INFO: You can skip this first step by providing a path to the bazel binary as second argument:
INFO: ./compile.sh compile /path/to/bazel
Building Bazel from scratch......
Building Bazel with Bazel.
INFO: Found 1 target...
ERROR: /home/user/TENSOR/bazel-0.2.2b/src/main/cpp/util/BUILD:4:1: C++ compilation of rule '//src/main/cpp/util:util' failed: gcc failed: error executing command
(cd /tmp/bazel.AYu4rYIO/out/bazel-0.2.2b && \
exec env - \
PATH=/home/soft/python-2.7.10/bin:/home/soft/intel2015/composer_xe_2015.3.187/mkl/bin:/home/user/TENSOR/jdk1.8.0_92/jre/bin:/home/user/TENSOR/jdk1.8.0_92/bin:/usr/lib64/qt-3.3/bin:/usr/kerberos/sbin:/usr/kerberos/bin:/opt/pbs/default/bin:/opt/pbs/default/sbin:/opt/pbs/default/bin:/usr/local/bin:/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/sbin:/opt/ibutils/bin \
/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 '-std=c++0x' -I/home/soft/python-2.7.10/include/python2.7 -DBLAZE_OPENSOURCE -iquote . -iquote bazel-out/local-fastbuild/genfiles -iquote external/bazel_tools -iquote bazel-out/local-fastbuild/genfiles/external/bazel_tools -isystem external/bazel_tools/tools/cpp/gcc3 -Wno-builtin-macro-redefined '-D__DATE__="redacted"' '-D__TIMESTAMP__="redacted"' '-D__TIME__="redacted"' '-frandom-seed=bazel-out/local-fastbuild/bin/src/main/cpp/util/_objs/util/src/main/cpp/util/file.pic.o' -MD -MF bazel-out/local-fastbuild/bin/src/main/cpp/util/_objs/util/src/main/cpp/util/file.pic.d -fPIC -c src/main/cpp/util/file.cc -o bazel-out/local-fastbuild/bin/src/main/cpp/util/_objs/util/src/main/cpp/util/file.pic.o): com.google.devtools.build.lib.shell.BadExitStatusException: Process exited with status 1.
src/main/cpp/util/file.cc: In function 'std::string blaze_util::Which(const std::string&)':
src/main/cpp/util/file.cc:84: error: expected initializer before ':' token
src/main/cpp/util/file.cc:100: error: expected primary-expression at end of input
src/main/cpp/util/file.cc:100: error: expected ';' at end of input
src/main/cpp/util/file.cc:100: error: expected primary-expression at end of input
src/main/cpp/util/file.cc:100: error: expected ')' at end of input
src/main/cpp/util/file.cc:100: error: expected statement at end of input
src/main/cpp/util/file.cc:100: error: expected '}' at end of input
src/main/cpp/util/file.cc:100: warning: no return statement in function returning non-void
src/main/cpp/util/file.cc: At global scope:
src/main/cpp/util/file.cc:100: error: expected '}' at end of input
cc1plus: warning: unrecognized command line option "-Wno-free-nonheap-object"
Target //src:bazel failed to build
INFO: Elapsed time: 5.009s, Critical Path: 2.81s
Building output/bazel
Hi,
i am trying to compile bazel on my centos 6.5 machine, an i ran into some errors. It seems that use of gcc in place of g++ is the root cause!!.
Can you please guide me which file should i edit to set the compiler + options correctly?
also how can i set the installation prefix?. Currently i am editing ./scripts/packages/template_bin.sh & setting the absolute path in prefix variable!! is this the right way to set prefix?
--
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/7cb2f5a5-a588-4472-940e-aec82792dad4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
To view this discussion on the web visit https://groups.google.com/d/msgid/bazel-discuss/CAFe2j%3DQ1UQizq405Kuy95trU59BoeqtDJQxpSoKo-TXCQeeV4Q%40mail.gmail.com.
it tries to download jpeg/eigen/png tar files but is unable to do so due to lack of internet connectivity on my machine . I can download & put all these dependencies somewhere within the tensorflow sourcecode directory/bazel cache so that build procedure automatically detect them.
Could you please suggest the path to that directory ( relative to tensorflow src root directory or bazel cache )? or is there a file which needs modification?
I tried placing it under $TENSOR_SRC_ROOT/tensorflow/contrib/cmake/external, but that did not help
While online ?
but bazel is unable to do so!!Hi,yes, that machine can now access internet (via proxy). & i am able to download via wget
also i need help in setting up localrepository for bazel ,
within ./tensorflow/workspace.bzl i have:
# native.new_http_archive(
# name = "jpeg_archive",
# url = "http://www.ijg.org/files/jpegsrc.v9a.tar.gz",
# sha256 = "3a753ea48d917945dd54a2d97de388aa06ca2eb1066cbfdc6652036349fe05a7",
# build_file = path_prefix + "jpeg.BUILD",
#)local_repository( name = "jpeg_archive", path = "/home/user/tars/jpegsrc.v9a.tar.gz", )and i got:
ERROR: /home/user/TENSOR_CPU/tensorflow/tensorflow/workspace.bzl:56:2: indentation error.
ERROR: /home/user/TENSOR_CPU/tensorflow/tensorflow/workspace.bzl:104:4: syntax error at 'outdent': expected expression.
ERROR: /home/user/TENSOR_CPU/tensorflow/tensorflow/workspace.bzl:49:1: function 'local_repository' does not exist.
ERROR: com.google.devtools.build.lib.packages.BuildFileContainsErrorsException: error loading package '': Extension 'tensorflow/workspace.bzl' has errors.where:
ls /home/user/tars/
50812b426b7c.tar.gz jpegsrc.v9a.tar.gz v1.2.53.zip
Hi,
Hi,
Not in these , but in my previous attempts I was stuck at boringssl:-
WARNING: Sandboxed execution is not supported on your system and thus hermeticity of actions cannot be guaranteed. See http://bazel.io/docs/bazel-user-manual.html#sandboxing for more information. You can turn off this warning via --ignore_unsupported_sandboxing.
ERROR: /home/user/TENSOR_CPU/tensorflow/tensorflow/core/distributed_runtime/rpc/BUILD:207:1: no such package '@grpc//': Error cloning repository:https://github.com/google/boringssl.git: 302 Moved Temporarily caused by https://github.com/google/boringssl.git: 302 Moved Temporarily and referenced by '//tensorflow/core/distributed_runtime/rpc:grpc_server_lib'.
ERROR: Loading failed; build aborted.
INFO: Elapsed time: 0.292s