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