Compilation failure related to Time [Error: time is more than 10,years from present: 1136059200000]

Prakash Rungta prakash.rungta at gmail.com
Mon Jun 27 07:27:20 UTC 2016


Thanks for the inputs. I was able to successfully compile the openjdk 7
 with the changes suggested.


> -  CXXFLAGS_IndicRearrangementProcessor.o := -fno-strict-overflow
> -  CXXFLAGS_IndicRearrangementProcessor2.o := -fno-strict-overflow
> +  CXXFLAGS_IndicRearrangementProcessor.o := -fwrapv
> +  CXXFLAGS_IndicRearrangementProcessor2.o := -fwrapv

Thanks a lot for the inputs.

Thanks
Prakash Rungta.

On Thu, Jun 23, 2016 at 9:15 PM, Andrew Hughes <gnu.andrew at redhat.com>
wrote:

> ----- Original Message -----
> > Hi Prakash,
> >
> > On 06/23/2016 12:48 PM, Prakash Rungta wrote:
> > > Hi David,
> > >
> > > Thanks for the response. Is there something that you would want me to
> try.
> > > I complied couple of times and getting the same error.
> > > GCC version 4.3 i did not get for the RHEL 5 u 11.
> > >
> > > Can you help?
> >
> > The following worked for me on RHEL 5.11:
> >
> > cat /etc/redhat-release
> >  > Red Hat Enterprise Linux Server release 5.11 (Tikanga)
> > yum install yum-utils java-1.7.0-openjdk-devel
> > curl -LO
> > http://pkgs.repoforge.org/mercurial/mercurial-2.2.2-1.el5.rf.x86_64.rpm
> > rpm -ivh mercurial-2.2.2-1.el5.rf.x86_64.rpm
> > yumdownloader --source java-1.7.0-openjdk
> > yum-builddep java-1.7.0-openjdk-1.7.0.101-2.6.6.1.el5_11.src.rpm
> > curl -LO
> >
> http://download.savannah.gnu.org/releases/freetype/freetype-2.4.11.tar.gz
> > tar xzvf freetype-2.4.11.tar.gz
> > cd freetype-2.4.11
> > ./configure && make
> > cd ..
> > hg clone http://hg.openjdk.java.net/jdk7u/jdk7u/
> > cd jdk7u
> > bash ./get_source.sh
> > LANG=C JAVA_HOME= CLASSPATH= LD_LIBRARY_PATH=
> > ALT_FREETYPE_HEADERS_PATH=/home/alex/freetype-2.4.11/include/
> > ALT_FREETYPE_LIB_PATH=/home/alex/freetype-2.4.11/objs/.libs/
> > ALT_BOOTDIR=/usr/lib/jvm/java-1.7.0-openjdk.x86_64 make sanity
> >
>
> There's a source tarball for 7u101 which can be used to avoid using
> Mercurial.
>
> > Full build is broken on GCC 4.1 though, as jdk/make/sun/font/Makefile
> > uses "fno-strict-overflow" option that is not supported by GCC 4.1. The
> > following patch helps to fix that:
> >
> > --- a/make/sun/font/Makefile    Mon Apr 18 04:46:08 2016 +0100
> > +++ b/make/sun/font/Makefile    Thu Jun 23 15:39:59 2016 +0100
> > @@ -99,8 +99,8 @@
> >   ifeq ($(PLATFORM), linux)
> >     CXXFLAGS += $(CXXFLAGS_$(@F))
> >     CXXFLAGS_ExtensionSubtables.o = -fno-strict-aliasing
> > -  CXXFLAGS_IndicRearrangementProcessor.o := -fno-strict-overflow
> > -  CXXFLAGS_IndicRearrangementProcessor2.o := -fno-strict-overflow
> > +  CXXFLAGS_IndicRearrangementProcessor.o := -fwrapv
> > +  CXXFLAGS_IndicRearrangementProcessor2.o := -fwrapv
> >   endif
> >
>
> Yeah that patch is in the RHEL 5.11 RPMs for java-1.7.0-openjdk. We don't
> apply it upstream because -fno-strict-overflow is preferable where
> supported,
> but I guess we could look at conditional support. Neither flag was intended
> to stay long-term, but instead the underlying issue should have been fixed
> (it was introduced by a recent security update).
> --
> Andrew :)
>
> Senior Free Java Software Engineer
> Red Hat, Inc. (http://www.redhat.com)
>
> PGP Key: ed25519/35964222 (hkp://keys.gnupg.net)
> Fingerprint = 5132 579D D154 0ED2 3E04  C5A0 CFDA 0F9B 3596 4222
>
>
>


More information about the jdk7u-dev mailing list