{"action":"created","issue":{"url":"https://api.github.com/repos/bazelbuild/bazel/issues/606","labels_url":"https://api.github.com/repos/bazelbuild/bazel/issues/606/labels{/name}","comments_url":"https://api.github.com/repos/bazelbuild/bazel/issues/606/comments","events_url":"https://api.github.com/repos/bazelbuild/bazel/issues/606/events","html_url":"https://github.com/bazelbuild/bazel/issues/606","id":117015725,"number":606,"title":"Compiling bazel natively on armv7l","user":{"login":"vmayoral","id":1375246,"avatar_url":"https://avatars.githubusercontent.com/u/1375246?v=3","gravatar_id":"","url":"https://api.github.com/users/vmayoral","html_url":"https://github.com/vmayoral","followers_url":"https://api.github.com/users/vmayoral/followers","following_url":"https://api.github.com/users/vmayoral/following{/other_user}","gists_url":"https://api.github.com/users/vmayoral/gists{/gist_id}","starred_url":"https://api.github.com/users/vmayoral/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vmayoral/subscriptions","organizations_url":"https://api.github.com/users/vmayoral/orgs","repos_url":"https://api.github.com/users/vmayoral/repos","events_url":"https://api.github.com/users/vmayoral/events{/privacy}","received_events_url":"https://api.github.com/users/vmayoral/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/bazelbuild/bazel/labels/feature%20request","name":"feature request","color":"84b6eb"},{"url":"https://api.github.com/repos/bazelbuild/bazel/labels/multi-platform","name":"multi-platform","color":"009800"},{"url":"https://api.github.com/repos/bazelbuild/bazel/labels/P3","name":"P3","color":"0052cc"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":48,"created_at":"2015-11-15T20:31:02Z","updated_at":"2015-12-01T21:14:47Z","closed_at":null,"body":"Trying to compile bazel on a Raspberry Pi 2. To do so, i replaced `third_party/protobuf/protoc-linux-arm32.exe` with the corresponding `protoc` compiled from its sources (to get the 3.0.0 version). With this in mind i launch `compile.sh `:\r\nhttps://gist.github.com/vmayoral/d2447888c5f5051a06db\r\n\r\nI've reproduced it in a bootstrap image with `qemu-debootstrap` in my dev. machine obtaining exactly the same result.\r\nCan anyone advice what I'm missing?"},"comment":{"url":"https://api.github.com/repos/bazelbuild/bazel/issues/comments/161097795","html_url":"https://github.com/bazelbuild/bazel/issues/606#issuecomment-161097795","issue_url":"https://api.github.com/repos/bazelbuild/bazel/issues/606","id":161097795,"user":{"login":"vmayoral","id":1375246,"avatar_url":"https://avatars.githubusercontent.com/u/1375246?v=3","gravatar_id":"","url":"https://api.github.com/users/vmayoral","html_url":"https://github.com/vmayoral","followers_url":"https://api.github.com/users/vmayoral/followers","following_url":"https://api.github.com/users/vmayoral/following{/other_user}","gists_url":"https://api.github.com/users/vmayoral/gists{/gist_id}","starred_url":"https://api.github.com/users/vmayoral/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vmayoral/subscriptions","organizations_url":"https://api.github.com/users/vmayoral/orgs","repos_url":"https://api.github.com/users/vmayoral/repos","events_url":"https://api.github.com/users/vmayoral/events{/privacy}","received_events_url":"https://api.github.com/users/vmayoral/received_events","type":"User","site_admin":false},"created_at":"2015-12-01T21:14:47Z","updated_at":"2015-12-01T21:14:47Z","body":"Trying to use what was generated before to get TensorFlow compiled with bazel but the process fails over and over:\r\n```\r\nroot@erle-ubuntu-arm:~/tensorflow# ../bazel-0.1.1/output/bazel build -c opt //tensorflow/tools/pip_package:build_pip_package --local_resources 2048,.5,1.0 -s\r\nINFO: Found 1 target...\r\n>>>>> # @re2//:re2 [action 'Compiling external/re2/re2/unicode_groups.cc [for host]']\r\n(cd /root/.cache/bazel/_bazel_root/efb88f6336d9c4a18216fb94287b8d97/tensorflow && \\\r\n  exec env - \\\r\n    INTERCEPT_LOCALLY_EXECUTABLE=1 \\\r\n    PATH=/root/bazel-0.1.1/tools/cpp/:/root/bazel-0.1.1:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games \\\r\n  /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 -g0 -O2 -DNDEBUG -ffunction-sections -fdata-sections -g0 '-std=c++0x' -iquote . -iquote bazel-out/host/genfiles -isystem external/re2 -isystem bazel-out/host/genfiles/external/re2 -isystem tools/cpp/gcc3 -no-canonical-prefixes -Wno-builtin-macro-redefined '-D__DATE__=\"redacted\"' '-D__TIMESTAMP__=\"redacted\"' '-D__TIME__=\"redacted\"' '-frandom-seed=bazel-out/host/bin/external/re2/_objs/re2/external/re2/re2/unicode_groups.o' -MD -MF bazel-out/host/bin/external/re2/_objs/re2/external/re2/re2/unicode_groups.d -c external/re2/re2/unicode_groups.cc -o bazel-out/host/bin/external/re2/_objs/re2/external/re2/re2/unicode_groups.o)\r\n>>>>> # @png_archive//:configure [action 'Executing genrule @png_archive//:configure [for host]']\r\n(cd /root/.cache/bazel/_bazel_root/efb88f6336d9c4a18216fb94287b8d97/tensorflow && \\\r\n  exec env - \\\r\n    PATH=/root/bazel-0.1.1/tools/cpp/:/root/bazel-0.1.1:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games \\\r\n  /bin/bash -c 'source tools/genrule/genrule-setup.sh; pushd external/png_archive/libpng-1.2.53; workdir=$(mktemp -d -t tmp.XXXXXXXXXX); cp -a * $workdir; pushd $workdir; ./configure --enable-shared=no --with-pic=no; popd; popd; cp $workdir/config.h bazel-out/host/genfiles/external/png_archive/libpng-1.2.53; rm -rf $workdir;')\r\nINFO: From Executing genrule @png_archive//:configure [for host]:\r\nunshare failed with EINVAL even after 101 tries, giving up.\r\nERROR: /root/.cache/bazel/_bazel_root/efb88f6336d9c4a18216fb94287b8d97/external/png_archive/BUILD:23:1: Executing genrule @png_archive//:configure failed: bash failed: error executing command /bin/bash -c ... (remaining 1 argument(s) skipped).\r\n>>>>> # @re2//:re2 [action 'Compiling external/re2/re2/simplify.cc [for host]']\r\n(cd /root/.cache/bazel/_bazel_root/efb88f6336d9c4a18216fb94287b8d97/tensorflow && \\\r\n  exec env - \\\r\n    INTERCEPT_LOCALLY_EXECUTABLE=1 \\\r\n    PATH=/root/bazel-0.1.1/tools/cpp/:/root/bazel-0.1.1:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games \\\r\n  /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 -g0 -O2 -DNDEBUG -ffunction-sections -fdata-sections -g0 '-std=c++0x' -iquote . -iquote bazel-out/host/genfiles -isystem external/re2 -isystem bazel-out/host/genfiles/external/re2 -isystem tools/cpp/gcc3 -no-canonical-prefixes -Wno-builtin-macro-redefined '-D__DATE__=\"redacted\"' '-D__TIMESTAMP__=\"redacted\"' '-D__TIME__=\"redacted\"' '-frandom-seed=bazel-out/host/bin/external/re2/_objs/re2/external/re2/re2/simplify.o' -MD -MF bazel-out/host/bin/external/re2/_objs/re2/external/re2/re2/simplify.d -c external/re2/re2/simplify.cc -o bazel-out/host/bin/external/re2/_objs/re2/external/re2/re2/simplify.o)\r\nTarget //tensorflow/tools/pip_package:build_pip_package failed to build\r\nUse --verbose_failures to see the command lines of failed build steps.\r\nINFO: Elapsed time: 36.253s, Critical Path: 33.88s\r\n\r\n```\r\n\r\nThere seems to be small improvements every time I launch it.\r\n\r\n>You need to make sure that you use the bootstrapped binary, not the initial binary.\r\n\r\nThis seems related. @ulfjack, I'm using the `bazel/output/bazel` tensorflow binary. Should i be using a different one?\r\n"}}