Last active
December 5, 2021 01:56
-
-
Save zajacmp3/0b779636c4a86da2c8576376a9634f64 to your computer and use it in GitHub Desktop.
Build hsdis for JDK 1.8u92 on Ubuntu 17.10 Artful
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo apt-get install libgmp-dev libmpfr-dev libmpc-dev g++-multilib mercurial texinfo | |
hg clone http://hg.openjdk.java.net/jdk8u/jdk8u | |
cd jdk8u | |
hg update jdk8u92-b14 | |
sed -ri 's/subrepos="[^"]+"/subrepos="hotspot"/' ./make/scripts/hgforest.sh # only get hotspot | |
sed -ri 's/subrepos="[^"]+"/subrepos="hotspot"/' ./common/bin/hgforest.sh # only get hotspot | |
chmod +x ./get_source.sh; ./get_source.sh | |
cd hotspot/src/share/tools/hsdis | |
wget http://ftp.heanet.ie/mirrors/ftp.gnu.org/gnu/binutils/binutils-2.26.tar.gz | |
tar -xzf binutils-2.26.tar.gz | |
sed -ri 's/development=.*/development=false/' ./binutils-2.26/bfd/development.sh # set development to false | |
make BINUTILS=binutils-2.26 ARCH=amd64 | |
sudo cp build/linux-amd64/hsdis-amd64.so /usr/lib/jvm/java-8-openjdk-amd64/jre/lib/amd64/server/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This script needs some adjustment
As of recent changes to hotspot (see http://hg.openjdk.java.net/jdk8u/jdk8u/hotspot/rev/bbd1da3f538f) the code was changed to only support binutils-2.29 and later. Thus the only change I had to make to the above script was to use 2.29 and then everything worked fine.
This problem manifests like this during the
make
step:This fork has the patched script: https://gist.github.com/kay/ec70aa7469d216ab88eb411d8dab187d