-
Notifications
You must be signed in to change notification settings - Fork 495
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
Building Bazel on NOOBS 1.9.0 #5
Comments
Interesting- the Raspberry Pi 2 has the same amount of memory as the Pi 3, but perhaps there's a difference in memory allocation somewhere. Would you mind adding the swap memory and trying again? Hopefully the build didn't take too long. If the bug persists, we can do some further prodding. |
I'm sr. My mistake. I'm running on Raspberry Pi 3. I also tried to swap memory but it still shows that errors. Do I need to update java? |
Ok- just to double check: you built Protobuf from scratch and moved in the compiled |
Additionally, did you make sure to checkout Bazel version 0.1.4 with the command |
Thank you for fast responding me. I tried to install Raspbian from Noobs instead of writing to SD card. -Yes. I checked with Bazel version 0.1.4 git checkout tags/0.1.4 Note: checking out 'tags/0.1.4'. HEAD is now at c553e35... Release 0.1.4 (2016-01-15) That is my free memory after I bulit Probuf sucessfully. |
Hmm. Let's try this: I've uploaded the |
I should also say that I used NOOBS to install Raspbian for this build. |
Since for some reasons, the protoc-linux-arm32.exe file you uploaded doesn't include compiler, it will show error below when I compile Bazel. 🍃 Building Bazel from scratch So, the result with new protobuf-java-3.0.0-beta-1.jar still the same. I also go through compile.sh looks like it requires java version 1.8 or later. java -version |
My Java version is the same as yours. I'll do a clean wipe on one of my RPi3s and go through the guide to see if I can replicate this issue. In the meantime, if you have time, upgrade your Java to see if it helps. I'm quite puzzled as to why we're getting different results here. |
Thank you so much. Yes me too. Since my rasp's the new one and only install this repo. I dont see the different here. Maybe more information. |
I reformatted my SD card, reinstalled Raspbian with NOOBS, and followed the guide verbatim without touching any other software and was able to build Bazel without any issues. I just checked and saw that I'm using NOOBS version 1.8.0, and the most recent is 1.9.0. Perhaps there was a change that could be messing this up. I'll look into it (and probably try the process again with NOOBS 1.9.0) |
Thank you so much. I'll try with NOOBS 1.8.0 |
Gosh. It works with NOOBS 1.8.0. Thank you very much for helping me. I was very frustrated. |
Glad to hear it! I'll have to figure out why it's broken on NOOBS 1.9.0- I'm just about to build Bazel on 1.9, so I'll toy around with it if/when it breaks. |
Very strange, the build worked fine for me with NOOBS 1.9.0. Perhaps all that was needed was a fresh reinstall? Closing this issue. |
Maybe i found solution. Not sure about this is perfect solution, |
Thanks for adding this- hopefully it'll help some people out. |
I follow your step to install tensorflow on raspberry pi 2 - newest Raspbian
I have a trouble when building Bazel
./compile.sh
It shows that error
= new Signal("INT");
^
src/main/java/com/google/devtools/build/lib/server/signal/InterruptSignalHandler.java:32: warning: Signal is internal proprietary API and may be removed in a future release
private static final Signal SIGINT = new Signal("INT");
^
src/main/java/com/google/devtools/build/lib/server/signal/InterruptSignalHandler.java:34: warning: SignalHandler is internal proprietary API and may be removed in a future release
private SignalHandler oldHandler;
^
src/main/java/com/google/devtools/build/lib/server/signal/InterruptSignalHandler.java:42: warning: SignalHandler is internal proprietary API and may be removed in a future release
this.oldHandler = Signal.handle(SIGINT, new SignalHandler() {
^
src/main/java/com/google/devtools/build/lib/server/signal/InterruptSignalHandler.java:44: warning: Signal is internal proprietary API and may be removed in a future release
public void handle(Signal signal) {
^
src/main/java/com/google/devtools/build/lib/server/signal/InterruptSignalHandler.java:42: warning: Signal is internal proprietary API and may be removed in a future release
this.oldHandler = Signal.handle(SIGINT, new SignalHandler() {
^
src/main/java/com/google/devtools/build/lib/server/signal/InterruptSignalHandler.java:55: warning: Signal is internal proprietary API and may be removed in a future release
Signal.handle(SIGINT, oldHandler);
^
Exception in thread "main" java.lang.OutOfMemoryError: Java heap space
at java.util.jar.Manifest$FastInputStream.(Manifest.java:332)
at java.util.jar.Manifest$FastInputStream.(Manifest.java:327)
at java.util.jar.Manifest.read(Manifest.java:195)
at java.util.jar.Manifest.(Manifest.java:69)
at java.util.jar.JarFile.getManifestFromReference(JarFile.java:199)
at java.util.jar.JarFile.getManifest(JarFile.java:180)
at sun.misc.URLClassPath$JarLoader$2.getManifest(URLClassPath.java:944)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:450)
at java.net.URLClassLoader.access$100(URLClassLoader.java:73)
at java.net.URLClassLoader$1.run(URLClassLoader.java:368)
at java.net.URLClassLoader$1.run(URLClassLoader.java:362)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:361)
at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
at com.sun.tools.javac.main.Main.resourceMessage(Main.java:610)
at com.sun.tools.javac.main.Main.compile(Main.java:543)
at com.sun.tools.javac.main.Main.compile(Main.java:381)
at com.sun.tools.javac.main.Main.compile(Main.java:370)
at com.sun.tools.javac.main.Main.compile(Main.java:361)
at com.sun.tools.javac.Main.compile(Main.java:56)
at com.sun.tools.javac.Main.main(Main.java:42)
Do u have any idea to solve this problems. I guess it maybe OutOfMemoryError. Should I do the swap memory first before compile Bazel.
Thank you very much.
The text was updated successfully, but these errors were encountered: