Build error with GCC4.8 on Fedora19

Yasu yasu at
Tue Jul 9 04:47:06 UTC 2013


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[1]: *** [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?


Yasumasa Suenaga

More information about the core-libs-dev mailing list