ERROR occurs when I install bazel

543 views
Skip to first unread message

Yogur

unread,
Sep 10, 2015, 3:52:49 AM9/10/15
to bazel-discuss
XXX:~/bazel$ ./compile.sh
INFO: You can skip this first step by providing a path to the bazel binary as second argument:
INFO:    ./compile.sh build /path/to/bazel
  Building Bazel from scratch............
  Building Bazel with Bazel.
.Extracting Bazel installation...
Sending SIGTERM to previous Bazel server (pid=22161)... done.
.......
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.
INFO: Found 1 target...
INFO: From Linking src/main/native/libunix.so:
/usr/bin/ld: bazel-out/local_linux-fastbuild/bin/src/main/native/_objs/libunix.so/src/main/native/unix_jni.pic.o: relocation R_X86_64_PC32 against symbol `PostException(JNIEnv_*, int, std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: final link failed: Bad value
collect2: ld returned 1 exit status
ERROR: /home/phisik3/bazel/src/main/native/BUILD:28:1: Linking of rule '//src/main/native:libunix.so' failed: gcc failed: error executing command /usr/bin/gcc -shared -o bazel-out/local_linux-fastbuild/bin/src/main/native/libunix.so -Wl,-whole-archive ... (remaining 16 argument(s) skipped): com.google.devtools.build.lib.shell.BadExitStatusException: Process exited with status 1.
Target //src:bazel failed to build
Use --verbose_failures to see the command lines of failed build steps.
INFO: Elapsed time: 4.893s, Critical Path: 1.77s

Building output/bazel

Yogur

unread,
Sep 10, 2015, 4:07:36 AM9/10/15
to bazel-discuss
gcc --version
gcc (Ubuntu/Linaro 4.6.3-1ubuntu5) 4.6.3

Damien Martin-guillerez

unread,
Sep 10, 2015, 4:08:19 AM9/10/15
to Yogur, bazel-discuss
Hello,

Is that a recent regression? Can you try to clone on a different path?
--
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/70dab08e-e047-4110-a243-79711518a6e6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Philipp Wollermann

unread,
Sep 10, 2015, 4:24:46 AM9/10/15
to Yogur, bazel-discuss
Are you running Bazel on ARM? (Ubuntu/Linaro is an ARM distribution, AFAIK.)

Could you send the output of "uname -a" and some information about the system you're running this on?

On Thu, Sep 10, 2015 at 10:07 AM, Yogur <yog...@gmail.com> wrote:
gcc --version
gcc (Ubuntu/Linaro 4.6.3-1ubuntu5) 4.6.3

--
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.

For more options, visit https://groups.google.com/d/optout.



--
Google Germany GmbH
Dienerstraße 12
80331 München

Geschäftsführer: Graham Law, Christine Elizabeth Flores
Registergericht und -nummer: Hamburg, HRB 86891
Sitz der Gesellschaft: Hamburg

Brian Silverman

unread,
Sep 10, 2015, 1:04:40 PM9/10/15
to Philipp Wollermann, Yogur, bazel-discuss
It looks like https://github.com/bazelbuild/bazel/issues/359 (build fails on Debian Wheezy because the toolchain doesn't like -fPIE and -fPIC). That's the same kind of error message and an even older toolchain than I was seeing it with.

Yogur

unread,
Sep 11, 2015, 2:36:02 AM9/11/15
to bazel-discuss, yog...@gmail.com
NO,I used first version Bazel 
Yesterday I knew latest version ,so I download the installer,then I met this error。
I ./compile.sh older verision ,it also succed。

Yogur

unread,
Sep 11, 2015, 2:37:18 AM9/11/15
to bazel-discuss, yog...@gmail.com
Linux XXXXXXXXX 3.2.0-48-generic #74-Ubuntu SMP Thu Jun 6 19:43:26 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux

Damien Martin-guillerez

unread,
Sep 11, 2015, 5:37:15 AM9/11/15
to Yogur, bazel-discuss
See the ticket pointed by brain, can you try to apply his fix?

Reply all
Reply to author
Forward
0 new messages