Building OpenJDK 1.8 on Solaris SPARC 10 fails with compiler error

Martijn Verburg martijnverburg at gmail.com
Fri May 24 18:46:12 UTC 2019


Hi Matthias,

We're building Solaris builds from the same source over at
https://adoptopenjdk.net - feel free to use those binaries (
https://adoptopenjdk.net/releases.html#sparcv9_solaris) and/or our build
scripts (github.com/adoptopenjdk/openjdk-build).  When there are genuine
upstream fixes to the build scripts, we send patches upstream to here
(OpenJDK proper), but mostly it's configuring things just so :-).

Cheers,
Martijn


On Thu, 23 May 2019 at 11:39, David Holmes <david.holmes at oracle.com> wrote:

> Hi Matthias,
>
> Disabling "warnings are errors" may let you compile okay, perhaps even
> with 12.6. But you're really on your own at that point. There may be
> other issues beyond simple warnings.
>
> Good luck. :)
>
> David
>
> On 23/05/2019 7:31 pm, Matthias Apitz wrote:
> >
> > 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
> >
> >
> >
>



More information about the build-dev mailing list