[prev in list] [next in list] [prev in thread] [next in thread] 

List:       openjdk-jdk7u-dev
Subject:    Re: Compilation failure related to Time [Error: time is more than 10,years from present: 11360592000
From:       Andrew Hughes <gnu.andrew () redhat ! com>
Date:       2016-06-28 17:44:27
Message-ID: 72653199.526172.1467135867894.JavaMail.zimbra () redhat ! com
[Download RAW message or body]


----- Original Message -----
> Hi,
> 
> I wnated to know  what is the difference between the j2sdk-image and
>  j2sdk-server-image in the
> 
> /root/JAVA/*jdk7u101-b00/build/linux-i586 *folder.
> 
> What should be taken as the final output for JDK.
> 

j2sdk-image

j2sdk-server-image is an Oracle variant to create a smaller image for those
who don't need deployment code, demos and samples. As the deployment code
is not part of OpenJDK anyway, it ends up just being the same as j2sdk-image
without the demos and samples.

>>>Making server-jdk-image @ Tue Jun 14 18:48:59 BST 2016 ...
rm -f -r /home/andrew/builder/icedtea7/j2sdk-server-image
/bin/cp -r /home/andrew/builder/icedtea7/j2sdk-image /home/andrew/builder/icedtea7/j2sdk-server-image
rm -f -r /home/andrew/builder/icedtea7/j2sdk-server-image/demo
rm -f -r /home/andrew/builder/icedtea7/j2sdk-server-image/sample
rm -f /home/andrew/builder/icedtea7/j2sdk-server-image/bin/jcontrol
rm -f /home/andrew/builder/icedtea7/j2sdk-server-image/jre/bin/jcontrol
rm -f /home/andrew/builder/icedtea7/j2sdk-server-image/man/ja_JP.UTF-8/man1/javaws.1
rm -f /home/andrew/builder/icedtea7/j2sdk-server-image/man/man1/javaws.1
>>>Finished making images @ Tue Jun 14 18:48:59 BST 2016 ...

> Thanks
> Prakash R
> 
> On Mon, Jun 27, 2016 at 12:57 PM, Prakash Rungta <prakash.rungta@gmail.com>
> wrote:
> 
> > 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@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
> >>
> >>
> >>
> >
> 

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


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic