Skip to content

Instantly share code, notes, and snippets.

@vmayoral
Created December 4, 2015 14:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vmayoral/36c45b9602c2dba14180 to your computer and use it in GitHub Desktop.
Save vmayoral/36c45b9602c2dba14180 to your computer and use it in GitHub Desktop.
erle@erle-brain-2 ~/bazel-0.1.1 $ ../bazel-0.1.1/output/bazel build --singlejar_top=//src/java_tools/singlejar:bootstrap_deploy.jar --javabuilder_top=//src/java_tools/buildjar:bootstrap_deploy.jar
--genclass_top=//src/java_tools/buildjar:bootstrap_genclass_deploy.jar --ijar_top=//third_party/ijar //src:bazel --local_resources 2048,.5,1.0 -s --spawn_strategy=standalone --genrule_strategy=st
andalone
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...
WARNING: failed to create one or more convenience symlinks for prefix 'bazel-':
bazel-out -> /home/erle/.cache/bazel/_bazel_erle/567fcd3aecea1e681b021ba760961eef/bazel-0.1.1/bazel-out: /home/erle/bazel-0.1.1/bazel-out (File exists)
bazel-bazel-0.1.1 -> /home/erle/.cache/bazel/_bazel_erle/567fcd3aecea1e681b021ba760961eef/bazel-0.1.1: /home/erle/bazel-0.1.1/bazel-bazel-0.1.1 (File exists)
bazel-bin -> /home/erle/.cache/bazel/_bazel_erle/567fcd3aecea1e681b021ba760961eef/bazel-0.1.1/bazel-out/local_linux-fastbuild/bin: /home/erle/bazel-0.1.1/bazel-bin (File exists)
bazel-genfiles -> /home/erle/.cache/bazel/_bazel_erle/567fcd3aecea1e681b021ba760961eef/bazel-0.1.1/bazel-out/local_linux-fastbuild/genfiles: /home/erle/bazel-0.1.1/bazel-genfiles (File exists).
>>>>> # //src/main/native:copy_link_jni_md_header [action 'Executing genrule //src/main/native:copy_link_jni_md_header']
(cd /home/erle/.cache/bazel/_bazel_erle/567fcd3aecea1e681b021ba760961eef/bazel-0.1.1 && \
exec env - \
PATH=/home/erle/ros_catkin_ws/devel_isolated/rosbag/bin:/home/erle/ros_catkin_ws/install_isolated/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/local/games:/usr/games \
/bin/bash -c 'source tools/genrule/genrule-setup.sh; cp -f external/local-jdk/include/linux/jni_md.h bazel-out/local_linux-fastbuild/genfiles/src/main/native/jni_md.h')
>>>>> # //src/main/native:copy_link_jni_header [action 'Executing genrule //src/main/native:copy_link_jni_header']
(cd /home/erle/.cache/bazel/_bazel_erle/567fcd3aecea1e681b021ba760961eef/bazel-0.1.1 && \
exec env - \
PATH=/home/erle/ros_catkin_ws/devel_isolated/rosbag/bin:/home/erle/ros_catkin_ws/install_isolated/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/local/games:/usr/games \
/bin/bash -c 'source tools/genrule/genrule-setup.sh; cp -f external/local-jdk/include/jni.h bazel-out/local_linux-fastbuild/genfiles/src/main/native/jni.h')
>>>>> # //src/main/tools:build-runfiles [action 'Compiling src/main/tools/build-runfiles.cc']
(cd /home/erle/.cache/bazel/_bazel_erle/567fcd3aecea1e681b021ba760961eef/bazel-0.1.1 && \
exec env - \
INTERCEPT_LOCALLY_EXECUTABLE=1 \
PATH=/home/erle/ros_catkin_ws/devel_isolated/rosbag/bin:/home/erle/ros_catkin_ws/install_isolated/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/local/games:/usr/games \
/usr/bin/gcc -U_FORTIFY_SOURCE '-D_FORTIFY_SOURCE=1' -fstack-protector -fPIE -Wall -Wunused-but-set-parameter -Wno-free-nonheap-object -fno-omit-frame-pointer '-std=c++0x' -iquote . -iquote bazel-out/local_linux-fastbuild/genfiles -isystem tools/cpp/gcc3 -no-canonical-prefixes -Wno-builtin-macro-redefined '-D__DATE__="redacted"' '-D__TIMESTAMP__="redacted"' '-D__TIME__="redacted"' '-frandom-seed=bazel-out/local_linux-fastbuild/bin/src/main/tools/_objs/build-runfiles/src/main/tools/build-runfiles.pic.o' -MD -MF bazel-out/local_linux-fastbuild/bin/src/main/tools/_objs/build-runfiles/src/main/tools/build-runfiles.pic.d -fPIC -c src/main/tools/build-runfiles.cc -o bazel-out/local_linux-fastbuild/bin/src/main/tools/_objs/build-runfiles/src/main/tools/build-runfiles.pic.o)
>>>>> # //src:java-version [action 'Executing genrule //src:java-version']
(cd /home/erle/.cache/bazel/_bazel_erle/567fcd3aecea1e681b021ba760961eef/bazel-0.1.1 && \
exec env - \
PATH=/home/erle/ros_catkin_ws/devel_isolated/rosbag/bin:/home/erle/ros_catkin_ws/install_isolated/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/local/games:/usr/games \
/bin/bash -c 'source tools/genrule/genrule-setup.sh;
VERSION_LINE=$(cat bazel-out/local_linux-fastbuild/bin/src/java_toolchain_content | grep target_version);
JAVA_VERSION=$(echo ${VERSION_LINE} | sed -E '\''s/.*value="([^"])".*/\1/'\'');
if [ -z "${JAVA_VERSION}" ]; then
echo "1.8" >bazel-out/local_linux-fastbuild/genfiles/src/java.version # Java 8 is the default
elif [[ "${JAVA_VERSION}" =~ ^[0-9]+$ ]]; then
echo "1.${JAVA_VERSION}" >bazel-out/local_linux-fastbuild/genfiles/src/java.version # Add 1. before 7 or 8
else
echo "${JAVA_VERSION}" >bazel-out/local_linux-fastbuild/genfiles/src/java.version
fi
')
>>>>> # //src/main/cpp/util:md5 [action 'Compiling src/main/cpp/util/md5.cc']
(cd /home/erle/.cache/bazel/_bazel_erle/567fcd3aecea1e681b021ba760961eef/bazel-0.1.1 && \
exec env - \
INTERCEPT_LOCALLY_EXECUTABLE=1 \
PATH=/home/erle/ros_catkin_ws/devel_isolated/rosbag/bin:/home/erle/ros_catkin_ws/install_isolated/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/local/games:/usr/games \
/usr/bin/gcc -U_FORTIFY_SOURCE '-D_FORTIFY_SOURCE=1' -fstack-protector -fPIE -Wall -Wunused-but-set-parameter -Wno-free-nonheap-object -fno-omit-frame-pointer '-std=c++0x' -iquote . -iquote bazel-out/local_linux-fastbuild/genfiles -isystem tools/cpp/gcc3 -no-canonical-prefixes -Wno-builtin-macro-redefined '-D__DATE__="redacted"' '-D__TIMESTAMP__="redacted"' '-D__TIME__="redacted"' '-frandom-seed=bazel-out/local_linux-fastbuild/bin/src/main/cpp/util/_objs/md5/src/main/cpp/util/md5.pic.o' -MD -MF bazel-out/local_linux-fastbuild/bin/src/main/cpp/util/_objs/md5/src/main/cpp/util/md5.pic.d -fPIC -c src/main/cpp/util/md5.cc -o bazel-out/local_linux-fastbuild/bin/src/main/cpp/util/_objs/md5/src/main/cpp/util/md5.pic.o)
>>>>> # //src/main/tools:process-tools [action 'Compiling src/main/tools/process-tools.c']
(cd /home/erle/.cache/bazel/_bazel_erle/567fcd3aecea1e681b021ba760961eef/bazel-0.1.1 && \
exec env - \
INTERCEPT_LOCALLY_EXECUTABLE=1 \
PATH=/home/erle/ros_catkin_ws/devel_isolated/rosbag/bin:/home/erle/ros_catkin_ws/install_isolated/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/local/games:/usr/games \
/usr/bin/gcc -U_FORTIFY_SOURCE '-D_FORTIFY_SOURCE=1' -fstack-protector -fPIE -Wall -Wunused-but-set-parameter -Wno-free-nonheap-object -fno-omit-frame-pointer -iquote . -iquote bazel-out/local_linux-fastbuild/genfiles -isystem tools/cpp/gcc3 '-std=c99' -no-canonical-prefixes -Wno-builtin-macro-redefined '-D__DATE__="redacted"' '-D__TIMESTAMP__="redacted"' '-D__TIME__="redacted"' '-frandom-seed=bazel-out/local_linux-fastbuild/bin/src/main/tools/_objs/process-tools/src/main/tools/process-tools.pic.o' -MD -MF bazel-out/local_linux-fastbuild/bin/src/main/tools/_objs/process-tools/src/main/tools/process-tools.pic.d -fPIC -c src/main/tools/process-tools.c -o bazel-out/local_linux-fastbuild/bin/src/main/tools/_objs/process-tools/src/main/tools/process-tools.pic.o)
>>>>> # //src/main/cpp/util:strings [action 'Compiling src/main/cpp/util/strings.cc']
(cd /home/erle/.cache/bazel/_bazel_erle/567fcd3aecea1e681b021ba760961eef/bazel-0.1.1 && \
exec env - \
INTERCEPT_LOCALLY_EXECUTABLE=1 \
PATH=/home/erle/ros_catkin_ws/devel_isolated/rosbag/bin:/home/erle/ros_catkin_ws/install_isolated/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/local/games:/usr/games \
/usr/bin/gcc -U_FORTIFY_SOURCE '-D_FORTIFY_SOURCE=1' -fstack-protector -fPIE -Wall -Wunused-but-set-parameter -Wno-free-nonheap-object -fno-omit-frame-pointer '-std=c++0x' -DBLAZE_OPENSOURCE -iquote . -iquote bazel-out/local_linux-fastbuild/genfiles -isystem tools/cpp/gcc3 -no-canonical-prefixes -Wno-builtin-macro-redefined '-D__DATE__="redacted"' '-D__TIMESTAMP__="redacted"' '-D__TIME__="redacted"' '-frandom-seed=bazel-out/local_linux-fastbuild/bin/src/main/cpp/util/_objs/strings/src/main/cpp/util/strings.pic.o' -MD -MF bazel-out/local_linux-fastbuild/bin/src/main/cpp/util/_objs/strings/src/main/cpp/util/strings.pic.d -fPIC -c src/main/cpp/util/strings.cc -o bazel-out/local_linux-fastbuild/bin/src/main/cpp/util/_objs/strings/src/main/cpp/util/strings.pic.o)
>>>>> # //src/main/protobuf:proto_deps_srcjar [action 'GenProtoSrcJar src/main/protobuf/libproto_deps_srcjar.srcjar [for host]']
(cd /home/erle/.cache/bazel/_bazel_erle/567fcd3aecea1e681b021ba760961eef/bazel-0.1.1 && \
exec env - \
PATH=/home/erle/ros_catkin_ws/devel_isolated/rosbag/bin:/home/erle/ros_catkin_ws/install_isolated/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/local/games:/usr/games \
/bin/bash -c 'rm -rf bazel-out/host/bin/src/main/protobuf/libproto_deps_srcjar.srcjar.proto_output && mkdir bazel-out/host/bin/src/main/protobuf/libproto_deps_srcjar.srcjar.proto_output && third_party/protobuf/protoc-linux-arm32.exe --java_out=bazel-out/host/bin/src/main/protobuf/libproto_deps_srcjar.srcjar.proto_output src/main/protobuf/deps.proto && touch -t 198001010000 $(find bazel-out/host/bin/src/main/protobuf/libproto_deps_srcjar.srcjar.proto_output) && external/local-jdk/bin/jar cMf bazel-out/host/bin/src/main/protobuf/libproto_deps_srcjar.srcjar -C bazel-out/host/bin/src/main/protobuf/libproto_deps_srcjar.srcjar.proto_output .')
INFO: From GenProtoSrcJar src/main/protobuf/libproto_deps_srcjar.srcjar [for host]:
/home/erle/.cache/bazel/_bazel_erle/567fcd3aecea1e681b021ba760961eef/bazel-0.1.1/third_party/protobuf/.libs/lt-protoc: error while loading shared libraries: libprotoc.so.10: cannot open shared object file: No such file or directory
ERROR: /home/erle/bazel-0.1.1/src/main/protobuf/BUILD:19:2: error executing shell command: 'rm -rf bazel-out/host/bin/src/main/protobuf/libproto_deps_srcjar.srcjar.proto_output && mkdir bazel-out/host/bin/src/main/protobuf/libproto_deps_srcjar.srcjar.proto_output && third_party/protobuf/p...' failed: bash failed: error executing command /bin/bash -c ... (remaining 1 argument(s) skipped): com.google.devtools.build.lib.shell.BadExitStatusException: Process exited with status 127.
>>>>> # //src/main/protobuf:proto_dash_srcjar [action 'GenProtoSrcJar src/main/protobuf/libproto_dash_srcjar.srcjar']
(cd /home/erle/.cache/bazel/_bazel_erle/567fcd3aecea1e681b021ba760961eef/bazel-0.1.1 && \
exec env - \
PATH=/home/erle/ros_catkin_ws/devel_isolated/rosbag/bin:/home/erle/ros_catkin_ws/install_isolated/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/local/games:/usr/games \
/bin/bash -c 'rm -rf bazel-out/local_linux-fastbuild/bin/src/main/protobuf/libproto_dash_srcjar.srcjar.proto_output && mkdir bazel-out/local_linux-fastbuild/bin/src/main/protobuf/libproto_dash_srcjar.srcjar.proto_output && third_party/protobuf/protoc-linux-arm32.exe --java_out=bazel-out/local_linux-fastbuild/bin/src/main/protobuf/libproto_dash_srcjar.srcjar.proto_output src/main/protobuf/dash.proto && touch -t 198001010000 $(find bazel-out/local_linux-fastbuild/bin/src/main/protobuf/libproto_dash_srcjar.srcjar.proto_output) && external/local-jdk/bin/jar cMf bazel-out/local_linux-fastbuild/bin/src/main/protobuf/libproto_dash_srcjar.srcjar -C bazel-out/local_linux-fastbuild/bin/src/main/protobuf/libproto_dash_srcjar.srcjar.proto_output .')
Target //src:bazel failed to build
Use --verbose_failures to see the command lines of failed build steps.
INFO: Elapsed time: 46.586s, Critical Path: 23.82s
erle@erle-brain-2 ~/bazel-0.1.1 $
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment