Building OpenJDK 1.8 on Solaris SPARC 10 fails with compiler error

Matthias Apitz guru at unixarea.de
Thu May 23 09:31:25 UTC 2019


Hello David,

Thanks for the quick reply and hints.

El día jueves, mayo 23, 2019 a las 07:19:21p. m. +1000, David Holmes escribió:

> > 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.

I was told that this was the latest version, we will look better.

> 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

Seems that the latest available version on oracle.com is 12.3. We
will give this a try.

Re/ the 12.6 I helped me with this small change:

diff -c hotspot/make/solaris/makefiles/adlc.make*
*** hotspot/make/solaris/makefiles/adlc.make    Thu May 23 11:17:53 2019
--- hotspot/make/solaris/makefiles/adlc.make.orig       Wed Feb 11
02:08:09 2015
***************
*** 74,80 ****
  # CFLAGS_WARN holds compiler options to suppress/enable warnings.
  # Compiler warnings are treated as errors
  ifeq ($(shell expr $(COMPILER_REV_NUMERIC) \>= 509), 1)
!   CFLAGS_WARN = +w 
  endif
  CFLAGS += $(CFLAGS_WARN)
  
--- 74,80 ----
  # CFLAGS_WARN holds compiler options to suppress/enable warnings.
  # Compiler warnings are treated as errors
  ifeq ($(shell expr $(COMPILER_REV_NUMERIC) \>= 509), 1)
!   CFLAGS_WARN = +w -errwarn
  endif
  CFLAGS += $(CFLAGS_WARN)

This let compile the source in question, but we stop here and move over
to 12.3

Thanks again

	matthias



-- 
Matthias Apitz, ✉ guru at unixarea.de, http://www.unixarea.de/ +49-176-38902045
Public GnuPG key: http://www.unixarea.de/key.pub



More information about the build-dev mailing list