Build error with GCC4.8 on Fedora19
yasu at ysfactory.dip.jp
Tue Jul 9 11:11:17 UTC 2013
I posted email as following:
I tried to build JDK8 with GCC4.8 on Fedora19.
However, build process has been failed as following:
/usr/src/OpenJDK/tl/jdk/src/solaris/native/sun/nio/fs/UnixNativeDispatcher.c: In function ‘Java_sun_nio_fs_UnixNativeDispatcher_getgrnam0’:
/usr/src/OpenJDK/tl/jdk/src/solaris/native/sun/nio/fs/UnixNativeDispatcher.c:1071:68: warning: unused parameter ‘this’ [-Wunused-parameter]
Java_sun_nio_fs_UnixNativeDispatcher_getgrnam0(JNIEnv* env, jclass this,
gmake: *** [libs-only] Error 2
make: *** [jdk-only] Error 2
I guess this issue is caused by -Werror.
So I've made a patch and it seems to work fine.
Could you push this patch?
I think that this is GCC spec.
This option is described in manpage of gcc as following:
All the above -Wunused options combined.
In order to get a warning about an unused function parameter, you
must either specify -Wextra -Wunused (note that -Wall implies
-Wunused), or separately specify -Wunused-parameter.
More information about the core-libs-dev