jdk8u in Solaris 10 build errors with enable-jfr=yes

Preethi Selvaraju preethi.s at hcl.com
Fri Jul 17 10:03:09 UTC 2020


Hi Team,

In the same Solaris 10 system, tried to build latest jdk8u for 64-bit, it's working fine.
As far as I know, if we give -with-target-bits=32, it should work fine for 32-bit also.  I've tried with Solaris studio 12.3 and Solaris studio 12.4.
Please do help me, if it is not the right forum, if possible, Kindly point out the correct mailing list.

Regards,
Preethi
From: Preethi Selvaraju
Sent: Wednesday, July 15, 2020 11:04 AM
To: jdk8u-dev at openjdk.java.net
Subject: jdk8u in Solaris 10 build errors with enable-jfr=yes

Hi Team,

Have pulled latest jdk8u content from http://hg.openjdk.java.net/jdk8u/jdk8u/. When I build in Solaris 10, getting the below error with -enable-jfr=yes.

Compiling /export/home/preethi/jdk8u15_7/hotspot/src/share/vm/services/attachListener.cpp
"/export/home/preethi/jdk8u15_7/hotspot/src/os_cpu/solaris_x86/vm/assembler_solaris_x86.cpp", line 50: Error: r8 is not defined.
"/export/home/preethi/jdk8u15_7/hotspot/src/os_cpu/solaris_x86/vm/assembler_solaris_x86.cpp", line 51: Error: r9 is not defined.
"/export/home/preethi/jdk8u15_7/hotspot/src/os_cpu/solaris_x86/vm/assembler_solaris_x86.cpp", line 52: Error: r10 is not defined.
"/export/home/preethi/jdk8u15_7/hotspot/src/os_cpu/solaris_x86/vm/assembler_solaris_x86.cpp", line 53: Error: r11 is not defined.
"/export/home/preethi/jdk8u15_7/hotspot/src/os_cpu/solaris_x86/vm/assembler_solaris_x86.cpp", line 57: Error: r11 is not defined.
"/export/home/preethi/jdk8u15_7/hotspot/src/os_cpu/solaris_x86/vm/assembler_solaris_x86.cpp", line 58: Error: r10 is not defined.
"/export/home/preethi/jdk8u15_7/hotspot/src/os_cpu/solaris_x86/vm/assembler_solaris_x86.cpp", line 59: Error: r9 is not defined.
"/export/home/preethi/jdk8u15_7/hotspot/src/os_cpu/solaris_x86/vm/assembler_solaris_x86.cpp", line 60: Error: r8 is not defined.
8 Error(s) detected.
gmake[6]: *** [assembler_solaris_x86.o] Error 2
gmake[6]: *** Waiting for unfinished jobs....
gmake[5]: *** [the_vm] Error 2
gmake[4]: *** [product] Error 2
gmake[3]: *** [generic_build2] Error 2
gmake[2]: *** [product] Error 2
gmake[1]: *** [/export/home/preethi/jdk8u15_7/build/solaris-x86-normal-server-release/hotspot/_hotspot.timestamp] Error 2
gmake: *** [hotspot-only] Error 2

OS: Solaris 10
/etc/release:
Solaris version:
Oracle Solaris 10 8/11 s10x_u10wos_17b X86
  Copyright (c) 1983, 2011, Oracle and/or its affiliates. All rights reserved.
                            Assembled 23 August 2011
bash-3.2# isainfo -b
64
Configuration summary:
* Debug level:    release
* JDK variant:    normal
* JVM variants:   server
* OpenJDK target: OS: solaris, CPU architecture: x86, address length: 32

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 /jdk1.7.0_241)
* Toolchain:      solstudio (Oracle Solaris Studio)
* C Compiler:     Version 5.13 (at /opt/solarisstudio12.4/bin/cc)
* C++ Compiler:   Version 5.13 (at /opt/solarisstudio12.4/bin/CC)

Build performance summary:
* Cores to use:   5
* Memory limit:   32723 MB


1)      Do we always need to enable jfr ie, --enable-jfr=yes. If I don't give this option/give as no, compilation errors am getting and not proceeding further.

"/export/home/preethi/openjdk8u/hotspot/src/share/vm/runtime/thread.hpp", line 202: Warning: Identifier expected instead of "}".

1 Warning(s) detected.



2)      "/export/home/preethi/jdk8u15_7/hotspot/src/os_cpu/solaris_x86/vm/assembler_solaris_x86.cpp", commented out r8,r9,r10 and r11.

After that, below errors:

"/export/home/preethi/jdk8u15_7/jdk/src/solaris/native/sun/java2d/x11/XRBackendNative.c", line 54: (struct) tag redeclared: _XLinearGradient

"/export/home/preethi/jdk8u15_7/jdk/src/solaris/native/sun/java2d/x11/XRBackendNative.c", line 57: identifier redeclared: XLinearGradient

"/export/home/preethi/jdk8u15_7/jdk/src/solaris/native/sun/java2d/x11/XRBackendNative.c", line 54: (struct) tag redeclared: _XLinearGradient

"/export/home/preethi/jdk8u15_7/jdk/src/solaris/native/sun/java2d/x11/XRBackendNative.c", line 57: identifier redeclared: XLinearGradient

        current : struct _XLinearGradient {..}

        previous: struct _XLinearGradient {..} : "/opt/csw/include/X11/extensions/Xrender.h", line 189

"/export/home/preethi/jdk8u15_7/jdk/src/solaris/native/sun/java2d/x11/XRBackendNative.c", line 61: (struct) tag redeclared: _XCircle

"/export/home/preethi/jdk8u15_7/jdk/src/solaris/native/sun/java2d/x11/XRBackendNative.c", line 65: identifier redeclared: XCircle

        current : struct _XCircle {..}

        previous: struct _XCircle {..} : "/opt/csw/include/X11/extensions/Xrender.h", line 150

"/export/home/preethi/jdk8u15_7/jdk/src/solaris/native/sun/java2d/x11/XRBackendNative.c", line 67: (struct) tag redeclared: _XRadialGradient

"/export/home/preethi/jdk8u15_7/jdk/src/solaris/native/sun/java2d/x11/XRBackendNative.c", line 70: identifier redeclared: XRadialGradient

        current : struct _XRadialGradient {..}

        previous: struct _XRadialGradient {..} : "/opt/csw/include/X11/extensions/Xrender.h", line 194

"/export/home/preethi/jdk8u15_7/jdk/src/solaris/native/sun/java2d/x11/XRBackendNative.c", line 332: warning: declaration can not follow a statement

"/export/home/preethi/jdk8u15_7/jdk/src/solaris/native/sun/java2d/x11/XRBackendNative.c", line 820: warning: declaration can not follow a statement

"/export/home/preethi/jdk8u15_7/jdk/src/solaris/native/sun/java2d/x11/XRBackendNative.c", line 821: warning: declaration can not follow a statement

cc: acomp failed for /export/home/preethi/jdk8u15_7/jdk/src/solaris/native/sun/java2d/x11/XRBackendNative.c

gmake[2]: *** [/export/home/preethi/jdk8u15_7/build/solaris-x86-normal-server-release/jdk/objs/libawt_xawt/XRBackendNative.o] Error 2

gmake[2]: *** Waiting for unfinished jobs....

gmake[1]: *** [libs-only] Error 2

gmake: *** [jdk-only] Error 2

è After commenting out XLinearGradient, XCircle and  XRadialGradient structures in "/export/home/preethi/jdk8u15_7/jdk/src/solaris/native/sun/java2d/x11/XRBackendNative.c", finally I end up with the below error:

"/export/home/preethi/jdk8u15_7/jdk/src/solaris/native/sun/awt/splashscreen/splashscreen_sys.c", line 329: warning: declaration can not follow a statement

ld: warning: mapfile: text segment: section '.text%_init' does not appear in any input file

ld: warning: mapfile: text segment: section '.text%init64IO' does not appear in mapfile specified input file(s)

ld: warning: mapfile: text segment: section '.text%setPathEnvironment' does not appear in mapfile specified input file(s)

ld: warning: mapfile: text segment: section '.text%Java_java_io_FileSystem_getFileSystem' does not appear in any input file

ld: warning: mapfile: text segment: section '.text%Java_java_io_UnixFileSystem_canonicalize' does not appear in any input file

ld: warning: mapfile: text segment: section '.text%Java_java_lang_ClassLoader_findLoadedClass' does not appear in any input file

ld: warning: mapfile: text segment: section '.text%Java_java_lang_Float_floatToIntBits' does not appear in any input file

ld: warning: mapfile: text segment: section '.text%Java_java_lang_Double_doubleToLongBits' does not appear in any input file

ld: warning: mapfile: text segment: section '.text%Java_java_lang_Shutdown_halt' does not appear in any input file

ld: warning: mapfile: text segment: section '.text%Java_java_util_logging_FileHandler_lockFile' does not appear in any input file

ld: warning: mapfile: text segment: section '.text%Java_java_util_logging_FileHandler_unlockFile' does not appear in any input file

ld: warning: mapfile: text segment: section '.text%readLOC' does not appear in mapfile specified input file(s)

ld: warning: mapfile: text segment: section '.text%huft_build' does not appear in mapfile specified input file(s)

Undefined                       first referenced

symbol                             in file

_IO_stdin_used                      /export/home/preethi/jdk8u15_7/jdk/make/mapfiles/launchers/mapfile-x86

__xargv                             /opt/solarisstudio12.4/lib/compilers/crt1x.o  (symbol has no version assigned)

__xargc                             /opt/solarisstudio12.4/lib/compilers/crt1x.o  (symbol has no version assigned)

ld: fatal: symbol referencing errors. No output written to /export/home/preethi/jdk8u15_7/build/solaris-x86-normal-server-release/jdk/objs/java_objs/java

gmake[2]: *** [/export/home/preethi/jdk8u15_7/build/solaris-x86-normal-server-release/jdk/objs/java_objs/java] Error 2

gmake[2]: *** Waiting for unfinished jobs....

gmake[1]: *** [launchers-only] Error 2

gmake: *** [jdk-only] Error 2


All the tools(X11, cups, cups_dev,freetype), I've installed from opencsw.

è ld path as /usr/ccs/bin/ld

è vi /opt/solarisstudio12.4/lib/compilers/CC-gcc/gcc_version.map
$mapfile_version 2

è /usr/ccs/bin/ld -V
                    ld: Software Generation Utilities - Solaris Link Editors: 5.10-1.1514

Can you help me what is going wrong in this? Do I need to install/configure anything else. If this is not the right forum to ask, kindly excuse and point me the right direction.

Regards,
Preethi

::DISCLAIMER::
________________________________
The contents of this e-mail and any attachment(s) are confidential and intended for the named recipient(s) only. E-mail transmission is not guaranteed to be secure or error-free as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or may contain viruses in transmission. The e mail and its contents (with or without referred errors) shall therefore not attach any liability on the originator or HCL or its affiliates. Views or opinions, if any, presented in this email are solely those of the author and may not necessarily reflect the views or opinions of HCL or its affiliates. Any form of reproduction, dissemination, copying, disclosure, modification, distribution and / or publication of this message without the prior written consent of authorized representative of HCL is strictly prohibited. If you have received this email in error please delete it and notify the sender immediately. Before opening any email and/or attachments, please check them for viruses and other defects.
________________________________


More information about the jdk8u-dev mailing list