Skip to content

Instantly share code, notes, and snippets.

@rurumimic
Created January 11, 2024 13:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rurumimic/7fc2d310d59108c77268c436e88908ec to your computer and use it in GitHub Desktop.
Save rurumimic/7fc2d310d59108c77268c436e88908ec to your computer and use it in GitHub Desktop.
Build JDK
git clone https://github.com/openjdk/jdk.git
sudo apt install openjdk-21-jdk-headless
java -version

openjdk version "21"
export CC=gcc
export CXX=g++
sudo apt install libcups2-dev
bash configure
====================================================
A new configuration has been successfully created in
github/openjdk/jdk/build/linux-x86_64-server-release
using default settings.

Configuration summary:
* Name:           linux-x86_64-server-release
* Debug level:    release
* HS debug level: product
* JVM variants:   server
* JVM features:   server: 'cds compiler1 compiler2 epsilongc g1gc jfr jni-check jvmci jvmti management parallelgc serialgc services shenandoahgc vm-structs zgc' 
* OpenJDK target: OS: linux, CPU architecture: x86, address length: 64
* Version string: 23-internal-adhoc.user.jdk (23-internal)
* Source date:    1704980810 (2024-01-11T13:46:50Z)

Build performance summary:
* Build jobs:     12
* Memory limit:   64216 MB
make hotspot

Building target 'hotspot' in configuration 'linux-x86_64-server-release'
Compiling up to 1 files for BUILD_TOOLS_HOTSPOT
Creating hotspot/variant-server/tools/adlc/adlc from 13 file(s)
Compiling up to 2 files for BUILD_JVMTI_TOOLS
Creating support/modules_libs/java.base/server/libjvm.so from 1244 file(s)
Finished building target 'hotspot' in configuration 'linux-x86_64-server-release'
@rurumimic
Copy link
Author

bash configure --with-toolchain-type=clang
bear -- make hotspot

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment