Can not build jdk10 under Solaris 11

2018-09-05 Thread Andrew Watkins
 jdk:   added 17762 changesets with 154938 changes to 
50859 files

  jdk:   updating to branch default
  jdk:   27320 files updated, 0 files merged, 0 files 
removed, 0 files unresolved

# Repositories:  . corba jaxp jaxws langtools jdk hotspot nashorn
    corba:   cd corba && hg pull -u
    .:   cd . && hg pull -u
 jaxp:   cd jaxp && hg pull -u
    jaxws:   cd jaxws && hg pull -u
    langtools:   cd langtools && hg pull -u
  jdk:   cd jdk && hg pull -u
  hotspot:   cd hotspot && hg pull -u
  nashorn:   cd nashorn && hg pull -u
 jaxp:   pulling from 
http://hg.openjdk.java.net/jdk10/jdk10/jaxp

 jaxp:   searching for changes
    langtools:   pulling from 
http://hg.openjdk.java.net/jdk10/jdk10/langtools

    langtools:   searching for changes
    corba:   pulling from 
http://hg.openjdk.java.net/jdk10/jdk10/corba

    corba:   searching for changes
    jaxws:   pulling from 
http://hg.openjdk.java.net/jdk10/jdk10/jaxws

    jaxws:   searching for changes
    .:   pulling from 
http://hg.openjdk.java.net/jdk10/jdk10

    .:   searching for changes
  jdk:   pulling from 
http://hg.openjdk.java.net/jdk10/jdk10/jdk
  nashorn:   pulling from 
http://hg.openjdk.java.net/jdk10/jdk10/nashorn

  jdk:   searching for changes
  nashorn:   searching for changes
  hotspot:   pulling from 
http://hg.openjdk.java.net/jdk10/jdk10/hotspot

  hotspot:   searching for changes
 jaxp:   no changes found
    langtools:   no changes found
    corba:   no changes found
    jaxws:   no changes found
    .:   no changes found
  nashorn:   no changes found
  jdk:   no changes found
  hotspot:   no changes found

# bash configure
...
Configuration summary:
* Debug level:    release
* HS debug level: product
* JDK variant:    normal
* JVM variants:   server
* OpenJDK target: OS: solaris, CPU architecture: x86, address length: 64
* Version string: 10-internal+0-adhoc.andrew.jdk10 (10-internal)

Tools summary:
* Boot JDK:   java version "1.8.0_172" Java(TM) SE Runtime 
Environment (build 1.8.0_172-b11) Java HotSpot(TM) 64-Bit Server VM 
(build 25.172-b11, mixed mode)  (at /usr/jdk/instances/jdk1.8.0)

* Toolchain:  solstudio (Oracle Solaris Studio)
* C Compiler: Version 5.15 (at /opt/developerstudio/bin/cc)
* C++ Compiler:   Version 5.15 (at /opt/developerstudio/bin/CC)

Build performance summary:
* Cores to use:   16
* Memory limit:   16384 MB

# gmake
..
# cat failure-logs/hotspot_variant-server_tools_adlc_objs_arena.o.cmdline
::
/opt/developerstudio/bin/CC -m64 -DASSERT -DAMD64 
-I/var/tmp/jdk10/hotspot/src/share/vm +w -g0 -xs -erroff=notemsource 
-errtags -errwarn=%all -DTHIS_FILE='"are
na.cpp"' -c -xMMD -xMF 
/var/tmp/jdk10/build/solaris-x86_64-normal-server-release/hotspot/variant-server/tools/adlc/objs/arena.d.tmp 
-o /var/tmp/jdk10/build/sol
aris-x86_64-normal-server-release/hotspot/variant-server/tools/adlc/objs/arena.o 
/var/tmp/jdk10/hotspot/src/share/vm/adlc/arena.cpp


Thanks,

Andrew

--
Andrew Watkins * Birkbeck, University of London * Computer Science *
* http://notallmicrosoft.blogspot.com *
* UKOUG Systems SIG Chair *
* UKOUG Tech committee *
* tel: 020 7631 6720 *

::e-mails are only read & actioned between 0900 and 1800 hours (Monday - Friday)
 



Building OpenJDK10 with Solaris 11.4 x86_64

2019-01-17 Thread Andrew Watkins

Hi,

Just wondered if anyone has tried building OpenJDK10 under Solaris 11.4 
x86_64 yet?


Trying to build it on an solaris-x86_64 and not getting very far.

1) "os_solaris.cpp", line 1666: Error: EM_486 is not defined. Ref: 
https://bugs.openjdk.java.net/browse/JDK-8182035?page=com.atlassian.jira.plugin.system.issuetabpanels%3Aall-tabpanel


    Solaris 11.4 has removed EM_486, but that a quick fix is in 
os_solaris.cpp:


    #ifndef EM_486
    #define EM_486  6   /* Intel 80486 */
    #endif

2) But then I get tons of the following:

"/opt/developerstudio124/lib/compilers/include/CC/stlport4/stl/_stdio_file.h", 
line 165: Error: __pad is not a member of const __FILE.
"/opt/developerstudio124/lib/compilers/include/CC/stlport4/stl/_stdio_file.h", 
line 167: Error: __pad is not a member of const __FILE.
"/opt/developerstudio124/lib/compilers/include/CC/stlport4/stl/_stdio_file.h", 
line 170: Error: __pad is not a member of __FILE.
"/opt/developerstudio124/lib/compilers/include/CC/stlport4/stl/_stdio_file.h", 
line 170: Error: __pad is not a member of __FILE.


Guess need to keep a Solaris 11.3 to compile OpenJDK!

Cheers,

Andrew

--
Andrew Watkins * Birkbeck, University of London * Computer Science *
* http://notallmicrosoft.blogspot.com *
* UKOUG Systems SIG Chair *
* UKOUG Tech committee *
* tel: 020 7631 6720 *



Re: OpenJDK 11.0.2 cannot build on Solaris 11.4

2019-01-30 Thread Andrew Watkins




On 01/18/19 05:23 PM, Erik Joelsson wrote:

.

You could try the open/make/devkit/createSolarisDevkit12.4.sh script 
and see if that helps you build something that works better. That's 
what we use at Oracle.


/Erik


Is there any hope of getting OpenJDK 12 to build on the Free download 
of  Solaris Studio 12.4 or 12.6, since for us Oracle Solaris 11 x86_64 
shops we are unable to get Java 12 or above with out it.


OpenJDK 12 requires latest versions of solarisstudio-124 or 
developerstudio-126


Of course this would not be a problem if Oracle supplied us with Solaris 
11 x86_64 Java 11 or 12 and not just the SPARC version.


Cheers,

Andrew

--
Andrew Watkins * Birkbeck, University of London * Computer Science *
* http://notallmicrosoft.blogspot.com *
* UKOUG Systems SIG Chair *
* UKOUG Tech committee *
* tel: 020 7631 6720 *

::e-mails are only read & actioned between 0900 and 1800 hours (Monday - Friday)



Re: OpenJDK 11.0.2 cannot build on Solaris 11.4

2019-01-30 Thread Andrew Watkins



Thanks worked like a dream!

For reference to build on Solaris 11.4

# export 
PATH=/usr/local/openjdk/jdk11/bin:/opt/solarisstudio12.4/bin:/usr/bin:/usr/sbin:/usr/gnu/bin:/usr/sfw/bin

# hg clone http://hg.openjdk.java.net/jdk/jdk12
# bash configure  --prefix=/usr/local/openjdk/jdk12 
--with-devkit=/home/andrew/src/openjdk/jdk12/build/devkit 
--disable-hotspot-gtest --with-jvm-features=-shenandoahgc,-dtrace

# gmake
# gmake images

Cheers,

Andrew



On 01/30/19 09:35 AM, Ao Qi wrote:

Hi Andrew Watkins,

jdk12 can be built on Solaris 11.4 x86 solarisstudio12.4, but it needs
a EM_486 patch, and configure with --disable-hotspot-gtest
--with-jvm-features=-shenandoahgc,-dtrace

Cheers,
Ao Qi

On Wed, Jan 30, 2019 at 5:10 PM Andrew Watkins  wrote:



On 01/18/19 05:23 PM, Erik Joelsson wrote:

.

You could try the open/make/devkit/createSolarisDevkit12.4.sh script
and see if that helps you build something that works better. That's
what we use at Oracle.

/Erik

Is there any hope of getting OpenJDK 12 to build on the Free download
of  Solaris Studio 12.4 or 12.6, since for us Oracle Solaris 11 x86_64
shops we are unable to get Java 12 or above with out it.

OpenJDK 12 requires latest versions of solarisstudio-124 or
developerstudio-126

Of course this would not be a problem if Oracle supplied us with Solaris
11 x86_64 Java 11 or 12 and not just the SPARC version.

Cheers,

Andrew

--
Andrew Watkins * Birkbeck, University of London * Computer Science *
* http://notallmicrosoft.blogspot.com *
* UKOUG Systems SIG Chair *
* UKOUG Tech committee *
* tel: 020 7631 6720 *

::e-mails are only read & actioned between 0900 and 1800 hours (Monday - Friday)



--
Andrew Watkins * Birkbeck, University of London * Computer Science *
* http://notallmicrosoft.blogspot.com *
* UKOUG Systems SIG Chair *
* UKOUG Tech committee *
* tel: 020 7631 6720 *

::e-mails are only read & actioned between 0900 and 1800 hours (Monday - Friday)