Thursday, October 11, 2018

Building OpenJDK 11 on Solaris 11 SPARC

Instructions for OpenJDK 11 on Solaris 11 SPARC.
This follows on from previous posts:
Setup:
  • At this time you require Oracle Solaris Studio 12.4 and other versions will not work at this time.
  • Do not build on a NFS drive, since will be very slow. 
    • Download code to NFS drive and create a link which points to local filesystem
  • Only builds on Solaris 11.3.
  • You need to have OpenJDK 10 installed. i.e. /var/tmp/build-openjdk10/solaris-sparcv9-normal-server-release/images/jdk/bin
# cd /home/andrew/openjdk  
# export PATH=/var/tmp/build-openjdk10/solaris-sparcv9-normal-server-release/images/jdk/bin:/opt/developerstudio124/bin:/usr/bin:/usr/sbin:/usr/gnu/bin:/usr/sfw/bin    
-Skip next line if you have code already
# hg clone http://hg.openjdk.java.net/jdk/jdk10   

# cd jdk11
-Create a link to local filesystem if on NFS drive
# mkdir /var/tmp/build-openjdk11
# ln -s /var/tmp/build-openjdk11 build

-Note: I installed latest autoconf and remove Solaris version using opencsw.org:
  # pkgadd -d http://get.opencsw.org/now
  # /opt/csw/bin/pkgutil -U
  # /opt/csw/bin/pkgutil -y -i autoconf
  # /usr/sbin/pkgchk -L CSWautoconf # list files
  # /opt/csw/bin/autoconf -V
  autoconf (GNU Autoconf) 2.69
  # export PATH=$PATH:/opt/csw/bin

# bash configure  
# gmake
-You may get some warning errors but this looks like a bug with dtrace and not java!
...
Creating support/modules_libs/jdk.sctp/libsctp.so from 3 file(s)
Compiling 4 files for BUILD_JIGSAW_TOOLS
Stopping sjavac server
Finished building target 'default (exploded-image)' in configuration 'solaris-sparcv9-normal-server-release'

# gmake images     
# ./build/*/images/jdk/bin/java -version  
openjdk version "11-internal" 2018-09-25
OpenJDK Runtime Environment (build 11-internal+0-adhoc.andrew.jdk11)
OpenJDK 64-Bit Server VM (build 11-internal+0-adhoc.andrew.jdk11, mixed mode)


Formatting: I now use http://codeformatter.blogspot.co.uk for code formatting.

1 comment:

nikkolayebba said...

A formidable share, I just given this onto a colleague who was doing slightly analysis on this. And he in fact purchased me breakfast as a result of I found it for him.. smile. So let me reword that: Thnx for the deal with! However yeah Thnkx for spending the time to debate this, I really feel strongly about it and love reading more on this topic. If possible, as you develop into experience, would you thoughts updating your blog with extra particulars? It's highly useful for me. Big thumb up for this blog put up! gsn casino slots