Re: 回复: 回复: 回复: 回复: An issue of building openjre
David Holmes
david.holmes at oracle.com
Wed May 25 08:26:51 UTC 2016
On 25/05/2016 6:11 PM, 31731705 wrote:
> Hi David,
>
> Thanks a lot, I tried binutils and now built openjdk. But I note there
> are some errors during the process of building jdk.
>
> ## Starting jdk
> ...
> Generating icon classes
> Note: Some input files use unchecked or unsafe operations.
> Note: Recompile with -Xlint:unchecked for details.
> Compiling 521 properties into resource bundles
> Copying and cleaning 53 properties
> Creating sun/util/LocaleDataMetaInfo.java from 421 found resources.
> Generating sun/misc/Version.java
> Generating sun/misc/Version.java compact1
> Generating sun/misc/Version.java compact2
> Generating sun/misc/Version.java compact3
> Aliases: Table size 1024 (10 bits), shift 0, max chain depth 3
> Classes: Table size 32 (5 bits), shift 1, max chain depth 3
> Cache: Table size 32 (5 bits), shift 1, max chain depth 3
> Generating X11 wrapper (32-bit version)
> Generating beaninfo
> Generating Nimbus source files
> [Error] encoded value was less than 0: encode(-8.326673E-17, 5.0, 11.0,
> 16.0)
I've seen them a lot too, I don't know if they signify anything
important, sorry. You'd need to ask awt-dev folk I think.
David
-----
> [Error] encoded value was less than 0: encode(-0.05882353, 1.0, 24.0, 25.0)
> [Error] encoded value was greater than 3: encode(15.029411, 1.0, 14.0, 15.0)
> [Error] encoded value was less than 0: encode(-0.05882353, 1.0, 24.0, 25.0)
> [Error] encoded value was greater than 3: encode(15.029411, 1.0, 14.0, 15.0)
> [Error] encoded value was less than 0: encode(-0.05882353, 1.0, 24.0, 25.0)
> [Error] encoded value was less than 0: encode(-0.05882353, 1.0, 24.0, 25.0)
> [Error] encoded value was greater than 3: encode(15.029411, 1.0, 14.0, 15.0)
> [Error] encoded value was less than 0: encode(-0.05882353, 1.0, 24.0, 25.0)
> [Error] encoded value was greater than 3: encode(15.029411, 1.0, 14.0, 15.0)
> [Error] encoded value was less than 0: encode(-0.05882353, 1.0, 24.0, 25.0)
> [Error] encoded value was less than 0: encode(-0.05882353, 1.0, 24.0, 25.0)
> [Error] encoded value was greater than 3: encode(15.029411, 1.0, 14.0, 15.0)
> [Error] encoded value was less than 0: encode(-0.05882353, 1.0, 24.0, 25.0)
> [Error] encoded value was greater than 3: encode(15.029411, 1.0, 14.0, 15.0)
> [Error] encoded value was less than 0: encode(-0.05882353, 1.0, 24.0, 25.0)
> [Error] Encountered Infinity: encode(-0.00877193, 0.0, 7.0, 7.0)
> Verifying
> /home/rong/openjdk/build/linux-x86-normal-server-release/jdk/gensrc_x11wrappers/sizes.32.verification.tmp
> to
> /home/rong/openjdk/build/linux-x86-normal-server-release/jdk/gensrc_x11wrappers/sizes.32
> Generating HTML DTD file
> ...
>
> Actaully it doesn't break build process and I got build result at last,
>
> ----- Build times -------
> Start 2016-05-25 15:30:00
> End 2016-05-25 15:37:49
> 00:00:20 corba
> 00:00:13 demos
> 00:01:33 docs
> 00:02:15 hotspot
> 00:00:22 images
> 00:00:13 jaxp
> 00:00:18 jaxws
> 00:02:05 jdk
> 00:00:19 langtools
> 00:00:10 nashorn
> 00:07:49 TOTAL
> -------------------------
> Finished building OpenJDK for target 'all'
>
> And I just wonder if these [ERROR] are real errors.
>
> Regards,
> Rong
>
>
> ------------------ 原始邮件 ------------------
> *发件人:* "David Holmes";<david.holmes at oracle.com>;
> *发送时间:* 2016年5月12日(星期四) 上午10:21
> *收件人:* ""<31731705 at qq.com>; "build-dev"<build-dev at openjdk.java.net>;
> *主题:* Re: 回复: 回复: 回复: An issue of building openjre on CentOS 5.9
>
> On 12/05/2016 12:16 PM, 31731705 wrote:
>> I have installed this library.
>>
>> [root at localhost ~]# yum list | grep Xtst
>> libXtst.i386 1.0.1-3.1
>> installed
>> libXtst-devel.i386 1.0.1-3.1
>> installed
>>
>> But the error still exists.
>
> The error below is not related to Xtst. You needed Xtst to fix one of
> your original errors:
>
> /usr/bin/ld: cannot find -lXtst
>
>> ## Starting jdk
>>
> /home/rong/openjdk/build/linux-x86-normal-server-release/jdk/objs/unpackexe/unpack.o:
>> In function `unpacker::redirect_stdio()':
>>
> /home/rong/openjdk/jdk/src/share/native/com/sun/java/util/jar/pack/unpack.cpp:5186:
>> warning: the use of `tempnam' is dangerous, better use `mkstemp'
>> /usr/bin/ld: BFD 2.17.50.0.6-20.el5_8.3 20061020 internal error,
>> aborting at ../../bfd/elflink.c line 6841 in
> elf_link_check_versioned_symbol
>>
>> /usr/bin/ld: Please report this bug.
>>
>> collect2: ld returned 1 exit status
>> gmake[2]: ***
>>
> [/home/rong/openjdk/build/linux-x86-normal-server-release/jdk/objs/unpackexe/unpack200]
>> Error 1
>> gmake[1]: *** [launchers-only] Error 2
>> make: *** [jdk-only] Error 2
>>
>> Do I need to upgrade Xtst related library? Seems CentOS 5.9 doesn't have
>> the rpm package.
>
> Your problem is ld and running on a very old version of Linux. See this
> email from 2011:
>
> http://mail.openjdk.java.net/pipermail/mlvm-dev/2011-May/003092.html
>
> David
>
>>
>> ------------------ 原始邮件 ------------------
>> *发件人:* "David Holmes";<david.holmes at oracle.com>;
>> *发送时间:* 2016年5月11日(星期三) 下午5:43
>> *收件人:* ""<31731705 at qq.com>; "build-dev"<build-dev at openjdk.java.net>;
>> *主题:* Re: 回复: 回复: An issue of building openjre on CentOS 5.9
>>
>> On 11/05/2016 5:22 PM, 31731705 wrote:
>>> I'm building openjdk8 so I use openjdk7 as a bootstrap JDK, and my
>>> computer runs CentOS 5.9, and actually I already install X11.
>>>
>>> [root at localhost openjdk]# yum list | grep X11
>>> libX11.i386 1.0.3-11.el5_7.1
>>> installed
>>> libX11-devel.i386 1.0.3-11.el5_7.1
>>> installed
>>>
>>> Do you mean this X11 library is too old?
>>
>> No but your system and the system tools, like ldd, are a bit old.
>>
>> For X11 you also need libxtst-dev
>>
>> https://launchpad.net/ubuntu/precise/+package/libxtst-dev
>>
>> which is what caused your X11 error.
>>
>> David
>>
>>>
>>>
>>> ------------------ 原始邮件 ------------------
>>> *发件人:* "David Holmes";<david.holmes at oracle.com>;
>>> *发送时间:* 2016年5月11日(星期三) 下午3:17
>>> *收件人:* ""<31731705 at qq.com>; "build-dev"<build-dev at openjdk.java.net>;
>>> *主题:* Re: 回复: An issue of building openjre on CentOS 5.9
>>>
>>> Are you building JDK 8 or 9? Your system is very old - too old for 9.
>>>
>>> If you check the build readme's they should tell you about installing
>>> the X11 developer libraries.
>>>
>>> I can't help with a newer ldd I'm afraid.
>>>
>>> David
>>>
>>> On 11/05/2016 4:13 PM, 31731705 wrote:
>>>> David, Thanks.
>>>>
>>>> I installed following two compilers.
>>>>
>>>> gcc44.i386 4.4.7-1.el5
>>>> installed
>>>> gcc44-c++.i386 4.4.7-1.el5
>>>> installed
>>>>
>>>> And then set CC and CXX two environment variables,
>>>>
>>>> export CC=gcc44
>>>> export CXX=g++44
>>>>
>>>> and run bash ./configure agagin.
>>>>
>>>>
>>>
>>
> --------------------------------------------------------------------------------------------------------------------------
>>>> Configuration summary:
>>>> * Debug level: release
>>>> * JDK variant: normal
>>>> * JVM variants: server
>>>> * OpenJDK target: OS: linux, CPU architecture: x86, address length: 32
>>>>
>>>> Tools summary:
>>>> * Boot JDK: java version "1.7.0_101" OpenJDK Runtime Environment
>>>> (rhel-2.6.6.1.el5_11-i386 u101-b00) OpenJDK Server VM (build 24.95-b01,
>>>> mixed mode) (at /usr/lib/jvm/java-1.7.0-openjdk-1.7.0.101)
>>>> * C Compiler: gcc44 (GCC) 4.4.7 20120313 (Red Hat-1) version
>>>> 4.4.7-1) (at /usr/bin/gcc44)
>>>> * C++ Compiler: g++44 (GCC) 4.4.7 20120313 (Red Hat-1) version
>>>> 4.4.7-1) (at /usr/bin/g++44)
>>>>
>>>> Build performance summary:
>>>> * Cores to use: 4
>>>> * Memory limit: 16133 MB
>>>> * ccache status: not installed (consider installing)
>>>>
>>>
>>
> ---------------------------------------------------------------------------------------------------------------------------
>>>>
>>>> Now configure has found new compilers, but make said another issue,
>>>>
>>>>
>>>
>>
> -----------------------------------------------------------------------------------------------------------------------------
>>>>
>>>
>>
> /home/rong/openjdk/jdk/src/solaris/native/sun/awt/splashscreen/splashscreen_sys.c:80:
>>>> warning: comparison is always true due to limited range of data type
>>>> /usr/bin/ld: cannot find -lXtst
>>>> collect2: ld returned 1 exit status
>>>> gmake[2]: ***
>>>>
>>>
>>
> [/home/rong/openjdk/build/linux-x86-normal-server-release/jdk/lib/i386/libawt_xawt.so]
>>>> Error 1
>>>> gmake[2]: *** Waiting for unfinished jobs....
>>>> gmake[1]: *** [libs-only] Error 2
>>>> make: *** [jdk-only] Error 2
>>>>
>>>
>>
> --------------------------------------------------------------------------------------------------------------------------------
>>>>
>>>> So I build an symbol link to solve this issue.
>>>>
>>>> ln -s /usr/lib/libXtst.so.6.1.0 /usr/lib/libXtst.so
>>>>
>>>> However another linking error occured,
>>>>
>>>>
>>>
>>
> -------------------------------------------------------------------------------------------------------------------------
>>>> ## Starting jdk
>>>>
>>>
>>
> /home/rong/openjdk/jdk/src/share/native/com/sun/java/util/jar/pack/unpack.cpp:
>>>> In member function ‘void unpacker::read_file_header()’:
>>>>
>>>
>>
> /home/rong/openjdk/jdk/src/share/native/com/sun/java/util/jar/pack/unpack.cpp:733:
>>>> warning: comparison between signed and unsigned integer expressions
>>>>
>>>
>>
> /home/rong/openjdk/jdk/src/share/native/com/sun/java/util/jar/pack/unpack.cpp:
>>>> In member function ‘void cpool::init(unpacker*, int*)’:
>>>>
>>>
>>
> /home/rong/openjdk/jdk/src/share/native/com/sun/java/util/jar/pack/unpack.cpp:985:
>>>> warning: comparison between signed and unsigned integer expressions
>>>>
>>>
>>
> /home/rong/openjdk/build/linux-x86-normal-server-release/jdk/objs/unpackexe/unpack.o:
>>>> In function `unpacker::redirect_stdio()':
>>>>
>>>
>>
> /home/rong/openjdk/jdk/src/share/native/com/sun/java/util/jar/pack/unpack.cpp:5186:
>>>> warning: the use of `tempnam' is dangerous, better use `mkstemp'
>>>> /usr/bin/ld: BFD 2.17.50.0.6-20.el5_8.3 20061020 internal error,
>>>> aborting at ../../bfd/elflink.c line 6841 in
>>> elf_link_check_versioned_symbol
>>>>
>>>> /usr/bin/ld: Please report this bug.
>>>>
>>>> collect2: ld returned 1 exit status
>>>> gmake[2]: ***
>>>>
>>>
>>
> [/home/rong/openjdk/build/linux-x86-normal-server-release/jdk/objs/unpackexe/unpack200]
>>>> Error 1
>>>> gmake[1]: *** [launchers-only] Error 2
>>>> make: *** [jdk-only] Error 2
>>>>
>>>
>>
> ----------------------------------------------------------------------------------------------------------------------------
>>>>
>>>> I think if there is newer linking tool ld44 like gcc44 and g++44 but I
>>>> cannot find it.
>>>>
>>>> Do you have any suggestion?
>>>>
>>>> ------------------ 原始邮件 ------------------
>>>> *发件人:* "David Holmes";<david.holmes at oracle.com>;
>>>> *发送时间:* 2016年5月11日(星期三) 上午10:07
>>>> *收件人:* ""<31731705 at qq.com>; "build-dev"<build-dev at openjdk.java.net>;
>>>> *主题:* Re: An issue of building openjre on CentOS 5.9
>>>>
>>>> On 11/05/2016 11:56 AM, 31731705 wrote:
>>>>> Can anybody help me to check this compile error?
>>>>>
>>>>>
>>>>
>>>
>>
> ------------------------------------------------------------------------------------------------------------------------
>>>>> OS is CentOS 5.9
>>>>>
>>>>>
>>>>> [root at localhost openjdk]# uname -a
>>>>> Linux localhost.localdomain 2.6.18-348.el5PAE #1 SMP Tue Jan 8
>>>> 18:39:56 EST 2013 i686 i686 i386 GNU/Linux
>>>>> [root at localhost openjdk]# cat /etc/redhat-release
>>>>> CentOS release 5.9 (Final)
>>>>>
>>>>>
>>>>>
>>>>
>>>
>>
> ----------------------------------------------------------------------------------------------------------------------
>>>>> Configuration summary:
>>>>> * Debug level: release
>>>>> * JDK variant: normal
>>>>> * JVM variants: server
>>>>> * OpenJDK target: OS: linux, CPU architecture: x86, address length: 32
>>>>>
>>>>>
>>>>> Tools summary:
>>>>> * Boot JDK: java version "1.7.0_101" OpenJDK Runtime Environment
>>>> (rhel-2.6.6.1.el5_11-i386 u101-b00) OpenJDK Server VM (build 24.95-b01,
>>>> mixed mode) (at /usr/lib/jvm/java-1.7.0-openjdk-1.7.0.101)
>>>>> * C Compiler: gcc (GCC) 4.1.2 20080704 (Red Hat-54) version
>>>> 4.1.2-54) (at /usr/bin/gcc)
>>>>> * C++ Compiler: g++ (GCC) 4.1.2 20080704 (Red Hat-54) version
>>>> 4.1.2-54) (at /usr/bin/g++)
>>>>
>>>> Your gcc is too old to support the compiler flags that are being used.
>>>>
>>>> David
>>>> ------
>>>>
>>>>>
>>>>> Build performance summary:
>>>>> * Cores to use: 4
>>>>> * Memory limit: 16133 MB
>>>>> * ccache status: not installed (consider installing)
>>>>>
>>>>>
>>>>> WARNING: The result of this configuration has overridden an older
>>>>> configuration. You *should* run 'make clean' to make sure you get a
>>>>> proper build. Failure to do so might result in strange build problems.
>>>>>
>>>>>
>>>>>
>>>>>
>>>>
>>>
>>
> ------------------------------------------------------------------------------------------------------------------------
>>>>> Below is the error information.
>>>>>
>>>>>
>>>>> /home/rong/openjdk/jdk/src/solaris/native/sun/nio/ch/IOUtil.c: In
>>>> function ‘Java_sun_nio_ch_IOUtil_fdLimit’:
>>>>> /home/rong/openjdk/jdk/src/solaris/native/sun/nio/ch/IOUtil.c:132:
>>>> warning: comparison of unsigned expression < 0 is always false
>>>>> cc1: error: unrecognized command line option
>>> "-Wno-error=unused-parameter"
>>>>> cc1: error: unrecognized command line option
>>> "-Wno-error=unused-parameter"
>>>>> gmake[2]: ***
>>>>
>>>
>>
> [/home/rong/openjdk/build/linux-x86-normal-server-release/jdk/objs/libsctp/SctpNet.o]
>>>> Error 1
>>>>> gmake[2]: *** Waiting for unfinished jobs....
>>>>> gmake[2]: ***
>>>>
>>>
>>
> [/home/rong/openjdk/build/linux-x86-normal-server-release/jdk/objs/libsctp/SctpChannelImpl.o]
>>>> Error 1
>>>>> cc1: error: unrecognized command line option
>>> "-Wno-error=unused-parameter"
>>>>> gmake[2]: ***
>>>>
>>>
>>
> [/home/rong/openjdk/build/linux-x86-normal-server-release/jdk/objs/libsctp/SctpServerChannelImpl.o]
>>>> Error 1
>>>>> gmake[1]: *** [libs-only] Error 2
>>>>> make: *** [jdk-only] Error 2
>>>>>
>>>>>
>>>>>
>>>>>
>>>>> Any suggestions are welcome.
>>>>>
More information about the build-dev
mailing list