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

Alex Kashchenko akashche at redhat.com
Thu Jun 23 14:44:59 UTC 2016


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

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

>
> Thanks
> Prakash Rungta
>
> On Thu, Jun 23, 2016 at 4:23 PM, David Holmes <david.holmes at oracle.com>
> wrote:
>
>> On 23/06/2016 6:14 PM, Prakash Rungta wrote:
>>
>>> Hi David,
>>>
>>> Please find the answers below. I am using RHEL 5( update 11 )32 bit OS
>>> for building the open jdk.
>>>
>>>
>>> *[root at rhel5 ~]# gcc --version*
>>> *gcc (GCC) 4.1.2 200807*04 (Red Hat 4.1.2-55)
>>>
>>
>> The build readme says 4.3 is the minimum gcc build.
>>
>> *[root at rhel5 jdk7u101-b00]# make --version*
>>> *GNU Make 3.81*
>>>
>>
>> That should be okay so not clear where the make error arises.
>>
>> David
>>
>> Thanks
>>> Prakash
>>>
>>>
>>> On Thu, Jun 23, 2016 at 1:30 PM, David Holmes <david.holmes at oracle.com
>>> <mailto:david.holmes at oracle.com>> wrote:
>>>
>>>     What version of make do you have?
>>>     What version of gcc do you have?
>>>
>>>     David
>>>
>>>     On 23/06/2016 5:53 PM, Prakash Rungta wrote:
>>>
>>>         Hi ,
>>>
>>>         I downloaded the openjdk7u101-b00.tar.xz
>>>         <
>>> https://java.net/projects/openjdk7/downloads/download/openjdk7u101-b00.tar.xz
>>>>
>>>         and
>>>         started compiling . I am getting the following error.
>>>
>>>         make[5]: Entering directory
>>>         `/root/JAVA/jdk7u101-b00/jdk/make/sun/jawt'
>>>         make[5]:
>>>
>>> `/root/JAVA/jdk7u101-b00/build/linux-i586/tmp/sun/sun.awt/jawt/obj/.files_compiled'
>>>         is up to date.
>>>         make[5]: Leaving directory
>>>         `/root/JAVA/jdk7u101-b00/jdk/make/sun/jawt'
>>>         Done with parallel compiles:
>>>         /root/JAVA/jdk7u101-b00/jdk/make/sun/jawt
>>>         make[4]: Leaving directory
>>>         `/root/JAVA/jdk7u101-b00/jdk/make/sun/jawt'
>>>         INFO: ENABLE_FULL_DEBUG_SYMBOLS=1
>>>         INFO: /usr/bin/objcopy cmd found so will create .debuginfo files.
>>>         INFO: STRIP_POLICY=min_strip
>>>         INFO: ZIP_DEBUGINFO_FILES=1
>>>         make[4]: Entering directory
>>>         `/root/JAVA/jdk7u101-b00/jdk/make/sun/font'
>>>         Makefile:188: Extraneous text after `ifeq' directive
>>>         Makefile:213: Extraneous text after `ifeq' directive
>>>         Building
>>>
>>> lib:/root/JAVA/jdk7u101-b00/build/linux-i586/lib/i386/libfontmanager.so
>>>         Begin parallel compiles: /root/JAVA/jdk7u101-b00/jdk/make/sun/font
>>>         INFO: ENABLE_FULL_DEBUG_SYMBOLS=1
>>>         INFO: /usr/bin/objcopy cmd found so will create .debuginfo files.
>>>         INFO: STRIP_POLICY=min_strip
>>>         INFO: ZIP_DEBUGINFO_FILES=1
>>>         make[5]: Entering directory
>>>         `/root/JAVA/jdk7u101-b00/jdk/make/sun/font'
>>>         Makefile:188: Extraneous text after `ifeq' directive
>>>         Makefile:213: Extraneous text after `ifeq' directive
>>>         /usr/bin/gcc  -O3 -fPIC -DCC_NOEX -W -Wall  -Wno-unused
>>>         -Wno-parentheses
>>>         -fno-omit-frame-pointer -D_LITTLE_ENDIAN   -fno-strict-overflow
>>>         -DHEADLESS
>>>         -DNDEBUG -DARCH='"i586"' -Di586 -DLINUX
>>> -DRELEASE='"1.7.0-internal"'
>>>         -D_LARGEFILE64_SOURCE -D_GNU_SOURCE -D_REENTRANT -I.
>>>
>>> -I/root/JAVA/jdk7u101-b00/build/linux-i586/tmp/sun/sun.font/fontmanager/CClassHeaders
>>>         -I../../../src/solaris/javavm/export
>>>         -I../../../src/share/javavm/export
>>>         -I../../../src/share/native/common
>>>         -I../../../src/solaris/native/common
>>>         -I../../../src/share/native/sun/font
>>>         -I../../../src/solaris/native/sun/font
>>>           -I/root/freetype-2.4.4/include/
>>>         -I/root/freetype-2.4.4/include//freetype2
>>>         -I../../../src/share/native/sun/font
>>>         -I../../../src/share/native/sun/font/layout
>>>         -I../../../src/share/native/sun/awt/image/cvutils
>>>         -I../../../src/solaris/native/sun/awt
>>>         -I../../../src/share/native/sun/awt/debug
>>>         -I../../../src/share/native/sun/java2d/loops
>>>         -I../../../src/share/native/sun/java2d/pipe
>>>         -I../../../src/solaris/native/sun/java2d
>>>         -I../../../src/share/native/sun/java2d
>>>
>>> -I/root/JAVA/jdk7u101-b00/build/linux-i586/tmp/sun/sun.font/fontmanager/../../sun.awt/awt/CClassHeaders
>>>         -DLE_STANDALONE  -c -o
>>>
>>> /root/JAVA/jdk7u101-b00/build/linux-i586/tmp/sun/sun.font/fontmanager/obj/IndicRearrangementProcessor.o
>>>
>>>  ../../../src/share/native/sun/font/layout/IndicRearrangementProcessor.cpp
>>>         cc1plus: error: unrecognized command line option
>>>         "-fno-strict-overflow"
>>>         make[5]: ***
>>>
>>> [/root/JAVA/jdk7u101-b00/build/linux-i586/tmp/sun/sun.font/fontmanager/obj/IndicRearrangementProcessor.o]
>>>         Error 1
>>>         make[5]: *** Waiting for unfinished jobs....
>>>         /usr/bin/gcc  -O3 -fPIC -DCC_NOEX -W -Wall  -Wno-unused
>>>         -Wno-parentheses
>>>         -fno-omit-frame-pointer -D_LITTLE_ENDIAN    -DHEADLESS -DNDEBUG
>>>         -DARCH='"i586"' -Di586 -DLINUX -DRELEASE='"1.7.0-internal"'
>>>         -D_LARGEFILE64_SOURCE -D_GNU_SOURCE -D_REENTRANT -I.
>>>
>>> -I/root/JAVA/jdk7u101-b00/build/linux-i586/tmp/sun/sun.font/fontmanager/CClassHeaders
>>>         -I../../../src/solaris/javavm/export
>>>         -I../../../src/share/javavm/export
>>>         -I../../../src/share/native/common
>>>         -I../../../src/solaris/native/common
>>>         -I../../../src/share/native/sun/font
>>>         -I../../../src/solaris/native/sun/font
>>>           -I/root/freetype-2.4.4/include/
>>>         -I/root/freetype-2.4.4/include//freetype2
>>>         -I../../../src/share/native/sun/font
>>>         -I../../../src/share/native/sun/font/layout
>>>         -I../../../src/share/native/sun/awt/image/cvutils
>>>         -I../../../src/solaris/native/sun/awt
>>>         -I../../../src/share/native/sun/awt/debug
>>>         -I../../../src/share/native/sun/java2d/loops
>>>         -I../../../src/share/native/sun/java2d/pipe
>>>         -I../../../src/solaris/native/sun/java2d
>>>         -I../../../src/share/native/sun/java2d
>>>
>>> -I/root/JAVA/jdk7u101-b00/build/linux-i586/tmp/sun/sun.font/fontmanager/../../sun.awt/awt/CClassHeaders
>>>         -DLE_STANDALONE  -c -o
>>>
>>> /root/JAVA/jdk7u101-b00/build/linux-i586/tmp/sun/sun.font/fontmanager/obj/LigatureSubstProc.o
>>>          ../../../src/share/native/sun/font/layout/LigatureSubstProc.cpp
>>>         ../../../src/share/native/sun/font/layout/LEInsertionList.h:89:
>>>         warning:
>>>         ‘class LEInsertionList’ has virtual functions but non-virtual
>>>         destructor
>>>         ../../../src/share/native/sun/font/layout/LigatureSubstProc.cpp:
>>>         In member
>>>         function ‘virtual ByteOffset
>>>         LigatureSubstitutionProcessor::processStateEntry(LEGlyphStorage&,
>>>         le_int32&, EntryTableIndex)’:
>>>
>>> ../../../src/share/native/sun/font/layout/LigatureSubstProc.cpp:133:
>>>         warning: comparison between signed and unsigned integer
>>> expressions
>>>         make[5]: Leaving directory
>>>         `/root/JAVA/jdk7u101-b00/jdk/make/sun/font'
>>>         make[4]: *** [library_parallel_compile] Error 2
>>>         make[4]: Leaving directory
>>>         `/root/JAVA/jdk7u101-b00/jdk/make/sun/font'
>>>         make[3]: *** [all] Error 1
>>>         make[3]: Leaving directory `/root/JAVA/jdk7u101-b00/jdk/make/sun'
>>>         make[2]: *** [all] Error 1
>>>         make[2]: Leaving directory `/root/JAVA/jdk7u101-b00/jdk/make'
>>>         make[1]: *** [jdk-build] Error 2
>>>         make[1]: Leaving directory `/root/JAVA/jdk7u101-b00'
>>>         make: *** [build_product_image] Error 2
>>>
>>>         Thanks
>>>         Prakash
>>>
>>>         On Wed, Jun 22, 2016 at 9:22 PM, Andrew Hughes
>>>         <gnu.andrew at redhat.com <mailto:gnu.andrew at redhat.com>>
>>>         wrote:
>>>
>>>             ----- Original Message -----
>>>
>>>                 On Wed, Jun 22, 2016 at 8:42 AM, Prakash Rungta
>>>                 <prakash.rungta at gmail.com
>>>                 <mailto:prakash.rungta at gmail.com>> wrote:
>>>
>>>                     Hi Andrew,
>>>
>>>                     Thanks for looking into this.
>>>
>>>                     I downloaded the source code from the  following site
>>>
>>>                     http://download.java.net/openjdk/jdk7/
>>>
>>>                     The following was the file name
>>>
>>>                     openjdk-7-fcs-src-b147-27_jun_2011.zip
>>>                     <
>>>
>>>
>>> http://www.java.net/download/openjdk/jdk7/promoted/b147/openjdk-7-fcs-src-b147-27_jun_2011.zip
>>>
>>>
>>>
>>>                 2011, this is ancient history...
>>>
>>>
>>>                     Also i tried to download by setting up the clone
>>>                     from mercurial
>>>
>>>             software at
>>>
>>>                     the following link
>>>
>>>                     hg clone http://hg.openjdk.java.net/jdk7/jdk7
>>>                     *YourOpenJDK*
>>>                     cd *YourOpenJDK*
>>>                     sh ./get_source.sh
>>>
>>>
>>>                 I think this is not used any more, but there for
>>>                 historical reasons.
>>>                 The right place to get the latest version of OpenJDK7
>>>                 should be this:
>>>
>>>                 http://hg.openjdk.java.net/jdk7u/jdk7u/
>>>
>>>                 I know it's a little bit confusing with so many
>>>                 reposotories, but the
>>>                 actual pointers are on the wiki (where JDK 7u is the
>>>                 only one
>>>                 appearing):
>>>
>>>                 https://wiki.openjdk.java.net/display/jdk7u/Main
>>>
>>>                 I hope this helps.
>>>
>>>                 Cheers,
>>>                 Mario
>>>
>>>
>>>             Yeah, that's never going to get fixed. For some reason,
>>>             Oracle start
>>>             a whole new bunch of repositories for updates after the
>>>             first release
>>>             (7/7u, 8/8u, etc.) which leads to this confusion all the time.
>>>
>>>             The latest source tarball is:
>>>
>>>
>>>
>>> https://java.net/projects/openjdk7/downloads/download/openjdk7u101-b00.tar.xz
>>>
>>>             SHA256 checksum:
>>>
>>>
>>> e936c7aaece35d82edf9d0b8b98d84e690429421212b86689388ab1bd5db73cd
>>>             openjdk7u101-b00.tar.xz
>>>             --
>>>             Andrew :)
>>>
>>>             Senior Free Java Software Engineer
>>>             Red Hat, Inc. (http://www.redhat.com)
>>>
>>>             PGP Key: ed25519/35964222 (hkp://keys.gnupg.net
>>>             <http://keys.gnupg.net>)
>>>             Fingerprint = 5132 579D D154 0ED2 3E04  C5A0 CFDA 0F9B 3596
>>> 4222
>>>
>>>
>>>
>>>
>>>


-- 
-Alex


More information about the jdk7u-dev mailing list