tensorflow-on-raspberry-pi
tensorflow-on-raspberry-pi copied to clipboard
Bazel 0.5.2 failed to build with C++ compilation of rule '//src/tools/singlejar:input_jar' failing
Issue
Bazel 0.5.2 failed to build after 17666seconds (~5hrs) with an error ERROR: /home/pi/libs/bazel/src/tools/singlejar/BUILD:263:1: C++ compilation of rule '//src/tools/singlejar:input_jar' failed: gcc failed: error executing command
Steps to Reproduce
Followed the guide on this github, using the latest bazel (0.5.2)
Hardware/Software Info
Raspberry Pi setup:
- Raspberry Pi model: 3
- Operating System used: Jessie Light, updated, upgraded (not dist-upgrade)
- Version of Python used: 3.6.1 compiled from source
- SD card memory size: 16GB
- Size of USB/other device used as swap (if building from source): 16GB
- Bazel version: 0.5.2
Relevant Console Output/Logs
ERROR: /home/pi/libs/bazel/src/tools/singlejar/BUILD:263:1: C++ compilation of rule '//src/tools/singlejar:input_jar' failed: gcc failed: error executing command
(cd /tmp/bazel_jvdsb9Sn/out/execroot/io_bazel && \
exec env - \
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin \
PWD=/proc/self/cwd \
/usr/bin/gcc -U_FORTIFY_SOURCE -fstack-protector -Wall -B/usr/bin -B/usr/bin -Wunused-but-set-parameter -Wno-free-nonheap-object -fno-omit-frame-pointer -g0 -O2 '-D_FORTIFY_SOURCE=1' -DNDEBUG -ffunction-sections -fdata-sections '-std=c++0x' -MD -MF bazel-out/local-opt/bin/src/tools/singlejar/_objs/input_jar/src/tools/singlejar/input_jar.d '-frandom-seed=bazel-out/local-opt/bin/src/tools/singlejar/_objs/input_jar/src/tools/singlejar/input_jar.o' -iquote . -iquote bazel-out/local-opt/genfiles -iquote external/bazel_tools -iquote bazel-out/local-opt/genfiles/external/bazel_tools -isystem external/bazel_tools/tools/cpp/gcc3 -fno-canonical-system-headers -Wno-builtin-macro-redefined '-D__DATE__="redacted"' '-D__TIMESTAMP__="redacted"' '-D__TIME__="redacted"' -c src/tools/singlejar/input_jar.cc -o bazel-out/local-opt/bin/src/tools/singlejar/_objs/input_jar/src/tools/singlejar/input_jar.o): com.google.devtools.build.lib.shell.BadExitStatusException: Process exited with status 1.
In file included from ./src/tools/singlejar/input_jar.h:26:0,
from src/tools/singlejar/input_jar.cc:15:
./src/tools/singlejar/mapped_file.h:39:2: error: #error This code for 64 bit Unix.
#error This code for 64 bit Unix.
^
In file included from ./src/tools/singlejar/input_jar.h:25:0,
from src/tools/singlejar/input_jar.cc:15:
src/tools/singlejar/input_jar.cc: In member function 'bool InputJar::Open(const string&)':
./src/tools/singlejar/diag.h:27:42: warning: format '%lx' expects argument of type 'long unsigned int', but argument 5 has type 'size_t {aka unsigned int}' [-Wformat=]
#define diag_warnx(...) warnx(__VA_ARGS__) ^
src/tools/singlejar/input_jar.cc:29:5: note: in expansion of macro 'diag_warnx'
diag_warnx(
^
./src/tools/singlejar/diag.h:27:42: warning: format '%lx' expects argument of type 'long unsigned int', but argument 6 has type 'unsigned int' [-Wformat=]
#define diag_warnx(...) warnx(__VA_ARGS__)
^
src/tools/singlejar/input_jar.cc:29:5: note: in expansion of macro 'diag_warnx'
diag_warnx(
^
src/tools/singlejar/input_jar.cc:86:36: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if (mapped_file_.offset(ecd) < cen_position) {
^
In file included from ./src/tools/singlejar/input_jar.h:25:0,
from src/tools/singlejar/input_jar.cc:15:
./src/tools/singlejar/diag.h:27:42: warning: format '%llx' expects argument of type 'long long unsigned int', but argument 5 has type 'off_t {aka long int}' [-Wformat=] #define diag_warnx(...) warnx(__VA_ARGS__)
^
src/tools/singlejar/input_jar.cc:87:7: note: in expansion of macro 'diag_warnx'
diag_warnx("%s:%d: %s is corrupt: End of Central Directory at 0x%" PRIx64
^
src/tools/singlejar/input_jar.cc:97:43: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if (cen_size > mapped_file_.offset(ecd)) {
^
In file included from ./src/tools/singlejar/input_jar.h:25:0,
from src/tools/singlejar/input_jar.cc:15:
./src/tools/singlejar/diag.h:27:42: warning: format '%llx' expects argument of type 'long long unsigned int', but argument 5 has type 'off_t {aka long int}' [-Wformat=]
#define diag_warnx(...) warnx(__VA_ARGS__)
^
src/tools/singlejar/input_jar.cc:116:9: note: in expansion of macro 'diag_warnx'
diag_warnx(
^
./src/tools/singlejar/diag.h:27:42: warning: format '%llx' expects argument of type 'long long unsigned int', but argument 5 has type 'off_t {aka long int}' [-Wformat=]
#define diag_warnx(...) warnx(__VA_ARGS__)
^
src/tools/singlejar/input_jar.cc:130:9: note: in expansion of macro 'diag_warnx'
diag_warnx(
^
./src/tools/singlejar/diag.h:27:42: warning: format '%llx' expects argument of type 'long long unsigned int', but argument 5 has type 'off_t {aka long int}' [-Wformat=]
#define diag_warnx(...) warnx(__VA_ARGS__)
^
src/tools/singlejar/input_jar.cc:140:7: note: in expansion of macro 'diag_warnx'
diag_warnx(
^
Target //src:bazel failed to build
INFO: Elapsed time: 17666.029s, Critical Path: 6035.79s
ERROR: Could not build Bazel