New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error when compiling Bazel in Raspberry Pi 3 #8882
Comments
works for me. |
|
Thanks @freedomtan I think it will work. Need to wait some hours now. BTW
in which PIs you successfully did this? I am trying in rpi 3b+. Did you try
with pi4? Are the instructions any different?
Thanks a lot for your help. I promise a blog post documenting everything I
had to do.
…On Sat, Jul 13, 2019, 02:44 freedomtan ***@***.***> wrote:
env BAZEL_JAVAC_OPTS="-J-Xms384m -J-Xmx1024m" \
JAVA_TOOL_OPTS="-Xmx1024m" \
***@***.***_jdk//:jdk" \
bash ./compile.sh
works for me.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#8882?email_source=notifications&email_token=AAH4FATDZX4EOWSZBFGMUATP7FTULA5CNFSM4ICRWXM2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODZ3KGEA#issuecomment-511091472>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAH4FASWDV6GZDLK7QRRWJ3P7FTULANCNFSM4ICRWXMQ>
.
|
|
Another question @freedomtan .. is there a particular reason on why you use |
|
Oh, another question is what are your answers when you run Thanks a lot in advance @freedomtan |
|
if rpi 4 still uses AArch32 binaries, I guess there is no difference. Clang usually is faster than gcc (in terms of compilation time). For |
|
Hi, I think you can now close the issue. The original error was indeed related to out of memory and swap memory. However, the error displayed by Bazel gives NO CLUE about that. It would have been much easier of the error would have said that... |
|
I finally took the time to write down everything I found during my attempt to get TensorFlow C library compiled for Raspberry Pi. In that tutorial, I point back to this issue about bazel compilation error in case any progress is made. |
|
@marianopeck , I tried in vain to set up a qemu vm on Ubuntu on my PC and cross-compile bazel for the Pi there. Would you be so kind as to share the compiled bazel artefacts? |
|
Hi @mihaigalos |
|
@marianopeck , I lolled (again) when (re-)seeing your article. Awesome one. Nice one with the binaries. I'm unfortunately on Ubuntu 18.04 on the RPi3B+ and cannot use the arm64 ones. Perhaps the bazel binary has some OS-specific stuff baked in. I'll consider switching to Raspian! Many thanks! 👍 |
|
Hi @mihaigalos |
|
@marianopeck , I could get it running with |
|
Excellent news @mihaigalos!! |
|
@marianopeck @mihaigalos I can't find a bazel binary that runs on raspi4, so I am working on that now. I have a few questions. |
|
@jgresham |
|
@mihaigalos Sorry, my mistake, I am running Raspbian Buster which is 32 bit OS on the raspi4. I will try again with a 64 bit OS. Once we test an arm64 build we should try to get it listed on the official release page. |
|
@jgresham : I am really looking forward to a config for building bazel from source for |
|
Closing as I think there's nothing actionable here for the bazel team |
Description of the problem / feature request:
I am getting an error when trying to compile Bazel on a Raspberry Pi 3 on Raspbian.
Feature requests: what underlying problem are you trying to solve with this feature?
Trying to compile "TensorFlow for C" for ARM / Raspberry Pi
Bugs: what's the simplest, easiest way to reproduce this bug? Please provide a minimal example if possible.
What operating system are you running Bazel on?
Raspbian Stretch
What's the output of
bazel info release?Can't answer because I can't compile it yet.
Have you found anything relevant by searching the web?
No
Any other information, logs, or outputs that you want to share?
Below is the console output:
The text was updated successfully, but these errors were encountered: