On 11/05/2016 11:56 AM, 31731705 wrote:
Can anybody help me to check this compile error?

------------------------------------------------------------------------------------------------------------------------
OS is CentOS 5.9


[root@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@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.

Reply via email to