Latest jdk8u faile for Solaris 10 32-bit

preethi selvaraj preethis00 at gmail.com
Mon Jul 20 06:17:14 UTC 2020


Hi Team,
Latest jdk8u source failed to build for 32-bit in Solaris 10 x86 whereas in
the same system build got succeeded for 64-bit with the same setup/
Have pulled latest jdk8u content from
http://hg.openjdk.java.net/jdk8u/jdk8u/. When I build in Solaris 10 for
32-bit,

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)
"/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? 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.
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


More information about the jdk8u-dev mailing list