Gentoo overlay to bootstrap OpenJDK/Rust/Go
Go to file
Andrius Štikonas 3b15b38fb2
Switch back from git to https protocol, savannah's ddos seems to be over.
2019-12-07 12:21:43 +00:00
dev-java Switch back from git to https protocol, savannah's ddos seems to be over. 2019-12-07 12:21:43 +00:00
metadata Add openjdk:9 and openjdk:10 ebuilds for bootstrapping openjdk:11 2019-11-03 15:41:49 +00:00
profiles Make initial bootstrap VMs slotted. 2019-12-07 01:19:56 +00:00
virtual Make initial bootstrap VMs slotted. 2019-12-07 01:19:56 +00:00
README.md Minor README updates. 2019-12-07 01:24:09 +00:00

README.md

Bootstrapping OpenJDK 8

sudo emerge -a dev-java/openjdk:8

Bootstrapping OpenJDK 11

sudo emerge -a1v dev-java/openjdk:11

At this point you can remove this overlay and install OpenJDK from main tree:

sudo emerge -a dev-java/openjdk:11

Bootstrapping story

We first compile fastjar and jikes java compiler both of which are written in C++. This is enough to compile an old version of GNU Classpath 0.93. Then we compile an old version of JamVM 1.5.1. This serves as our initial Java Runtime Environment.

We use this to compile ant 1.8.1 which then allows us to build ecj-3.2. This allows us to compile GNU Classpath 0.99 which comes with more java tools (e.g. javah). Then we compile JamVM 2.0.0. This serves as our second Java environment.

Finally, we compile git snapshot of GNU Classpath which has a much better support for Java 1.6. Then we compile a slightly patched ecj-4.2. Together with JamVM 2.0.0 this will serve as Java environment that can bootstrap Icedtea 2 (Java 7). Unfortunately, I was only able to build Java 7 with JamVM as VM (which is slower), Hotspot build failed. JamVM with OpenJDK 7 classes can build Icedtea 3 with Hotspot VM.