Hello Matthias,

The scripts used to create the current sysroot we use internally was never published externally. For the next round of compiler and platform upgrades, which is taking place now, I do intend to publish the scripts for all platforms where we do this. I have it all prepared, but since we are still testing the new compilers, we haven't made the switch yet, and it wouldn't make much sense to push the scripts before that.

For the current sysroot, which is based on Solaris10u10, I used the package installer to install a certain set of solaris packages into a new root and then applied a bunch of patches. Here is a list of the packages I needed:

system      SUNWaudh      Audio Header Files
system      SUNWbinutils  binutils - GNU binutils
system      SUNWbtool     CCS tools bundled with SunOS
system      SUNWcsl       Core Solaris, (Shared Libs)
system      SUNWcslr      Core Solaris Libraries (Root)
system      SUNWdtrc      DTrace Clients
system      SUNWfreetype2 FreeType2 Font library
system      SUNWhea       SunOS Header Files
system      SUNWlibC      Sun Workshop Compilers Bundled libC
system SUNWlibm Math & Microtasking Library Headers & Lint Files (Usr)
system      SUNWpiclh     PICL Header Files
system      SUNWpiclr     PICL Framework (Root)
system      SUNWsprot     Solaris Bundled tools
system      SUNWxwinc     X Window System include files
system      SUNWxwplt     X Window System platform software

I also added this, which I don't really know the origin for:

system      SFWcups       cups - Common UNIX Printing System

Finally I applied these patches. Most of them were listed as needed by the Solaris Studio documentation:
Sparc:
149063-01 (fixes gobjcopy)
From SS12u3
118683-07
119963-24
120753-10
147436-01
x86:
149064-01 (fixes gobjcopy)
From SS12u3
119961-10
119964-24
120754-10
147437-01


Doing this kind of package installation on Solaris 10 was a bit tricky and I had to run the package manager as root. Redoing it in Solaris 11 was much easier.

/Erik

On 2015-10-12 16:34, Baesken, Matthias wrote:
Hello all,  in  OpenJDK9  there is some support for building using a   
sysroot-like environment .
For instance see

common/autoconf/flags.m4

         # Solaris Studio does not have a concept of sysroot. Instead we must
         # make sure the default include and lib dirs are appended to each
         # compile and link command line.
         SYSROOT_CFLAGS="-I$SYSROOT/usr/include"
         SYSROOT_LDFLAGS="-L$SYSROOT/usr/lib$OPENJDK_TARGET_CPU_ISADIR \
             -L$SYSROOT/lib$OPENJDK_TARGET_CPU_ISADIR \
             -L$SYSROOT/usr/ccs/lib$OPENJDK_TARGET_CPU_ISADIR"


Are there also scripts available to create  the SYSROOT environment  or is it 
just done by copying a few folders manually ?


Thanks, Matthias

Reply via email to