Hi Matthias,

On 23/05/2019 6:29 pm, Matthias Apitz wrote:

Hello,

We want to build OpenJDK 1.8 on Solaris SPARC 10. Please not, OpenJDK 11
is currently not an option due to our Java written software.

Based on the source openjdk-8u40-src-b25-10_feb_2015.zip we do the following 
steps:

Why such old sources? You are better off getting the latest released 8u source.

$ uname -a
SunOS srap06dsR1 5.10 Generic_150400-35 sun4u sparc SUNW,SPARC-Enterprise

$ /opt/developerstudio12.6/bin/cc -V
cc: Studio 12.6 Sun C 5.15 SunOS_sparc 2017/05/30

You can't build JDK 8u with Solaris Studio 12.6, it's too recent and will complain about too many issues in the code. The supported 8u compiler is 12.1

https://wiki.openjdk.java.net/display/Build/Supported+Build+Platforms

Cheers,
David
-----

We changed slightly the script common/autoconf/generated-configure.sh because
the compilers version string is not accepted. The string is greped and
we let the return value pass as 0.

With this small fix the configure stage is fine:

$ LDFLAGS='-L/usr/sfw/lib/sparcv9'  \
   bash ./configure --with-cups=/export/home/guru/v50/CUPS2/cups-2.0.3
...
A new configuration has been successfully created in
/export/home/sisis/guru/openjdk/build/solaris-sparcv9-normal-server-release
using configure arguments '--with-cups=/export/home/guru/v50/CUPS2/cups-2.0.3'.

Configuration summary:
* Debug level:    release
* JDK variant:    normal
* JVM variants:   server
* OpenJDK target: OS: solaris, CPU architecture: sparc, address length: 64

Tools summary:
* Boot JDK:       java version "1.7.0_80" Java(TM) SE Runtime Environment 
(build 1.7.0_80-b15) Java HotSpot(TM) Server VM (build 24.80-b11, mixed mode)  (at 
/usr/jdk/instances/jdk1.7.0_80)
* C Compiler:     Sun Studio version 5.15 (at /opt/developerstudio12.6/bin/cc)
* C++ Compiler:   Sun Studio version 5.15 (at /opt/developerstudio12.6/bin/CC)

Build performance summary:
* Cores to use:   7
* Memory limit:   8192 MB
* ccache status:  not available for your system

The build fails now after some hundred compilations with:

$ /usr/sfw/bin/gmake
...
Compiling /export/home/sisis/guru/openjdk/hotspot/src/share/vm/adlc/filebuff.cpp
CC: Warning: illegal use of -xdebugformat option, illegal value ignored: stabs
CC: Warning: illegal use of -xdebugformat option, illegal value ignored: stabs
CC: Warning: illegal use of -xdebugformat option, illegal value ignored: stabs
CC: Warning: illegal use of -xdebugformat option, illegal value ignored: stabs
CC: Warning: illegal use of -xdebugformat option, illegal value ignored: stabs
CC: Warning: illegal use of -xdebugformat option, illegal value ignored: stabs
Compiling /export/home/sisis/guru/openjdk/hotspot/src/share/vm/adlc/forms.cpp
CC: Warning: illegal use of -xdebugformat option, illegal value ignored: stabs
"/export/home/sisis/guru/openjdk/hotspot/src/share/vm/adlc/arena.cpp", line 60: 
Error: Placement operator new refers to non-placement operator delete.
"/export/home/sisis/guru/openjdk/hotspot/src/share/vm/adlc/arena.cpp", line 67: 
Error: Placement operator new refers to non-placement operator delete.
"/export/home/sisis/guru/openjdk/hotspot/src/share/vm/adlc/arena.cpp", line 97: 
Error: Placement operator new refers to non-placement operator delete.
3 Error(s) detected.


The issue looks like this https://bugs.openjdk.java.net/browse/JDK-8199782
but JDK-8199782 is for OpenJDK 11 on Solaris 11.

Is there a fix as well for OpenJDK 8?

Any other hints?

Thanks in advance

        matthias

Reply via email to