have heap problem with running ./compile.sh in bazel step
Describe the Issue
I have already revise both "scripts/bootstrap/compile.sh" and "tools/cpp/cc_configure.bzl", but it seems I get some problem with heap.
Is that have any to do with bazel 0.4.3 ? (I currently try 0.4.3)

Steps to Reproduce
Followed step by step installation by source, final step is ./compile.sh in bazel folder
Hardware/Software Info
Please provide the following information about your Raspberry Pi setup:
- Raspberry Pi model: Raspberry Pi 3 Model B
- Operating System used: Raspian - NOOBs installation -- debian_version : 9.0
- Version of Python used: python3.5
- SD card memory size: 32GB
- Size of USB/other device used as swap (if building from source): 16GB
- TensorFlow git commit hash (if building from source):
Relevant Console Output/Logs
compile time: around 3-4 hours (from initial bazel to get error)
Hi @fevemania - thanks for opening this up. Let's try a few things:
- First, you should use Bazel 0.4.5 instead of 0.4.3 (you'll run into an error once you get to the TensorFlow stage). It looks like I screwed up and forgot to update this step in the GUIDE- I just pushed a new url in the relevant build step. Sorry for wasting your time with that.
- Second, let's make sure that your swap drive is properly setup. Could you copy/paste the result of running
freein the terminal?
Thanks for reply @samjabrahams
Sorry for late. This week I have the midterm exam, and just finish it today.
I just redo every step till compile.sh
This time I use bazel 0.4.5
before start compile, I have the snapshot about swap

I also do manual clear memory before compile:

This photo is in running time:

but after 5 hours, it still fail.

Sorry for the delay- I've been out and about. Let's try switching back to Oracle JDK instead of OpenJDK:
Actually- let's try switching back to the Oracle JDK instead of OpenJDK.
sudo update-alternatives --config java
Select the option for Oracle JDK 8 and see if that works any better.