ADDITIONAL SYSTEM INFORMATION :
processor: Intel���� Core������ i5-3230M CPU @ 2.60GHz ���� 4
Memory: 8 GB
OS: Ubuntu 18.04
A DESCRIPTION OF THE PROBLEM :
I m trying build openjdk11 and follow openjdk11 building steps, and stopped buildings
STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
sudo hg clone https://hg.openjdk.java.net/jdk-updates/jdk11u/
sudo bash configure --with-boot-jdk=../jdk-10.0.2
sudo make images
EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
Build jdk successfully
ACTUAL -
Creating support/modules_libs/java.base/libnio.so from 22 file(s)
Creating support/modules_libs/java.base/libnet.so from 21 file(s)
Creating support/modules_libs/java.base/libjsig.so from 1 file(s)
/openjdk/jdk11u/src/java.base/unix/native/libjava/TimeZone_md.c: In function ������findZoneinfoFile������:
/openjdk/jdk11u/src/java.base/unix/native/libjava/TimeZone_md.c:150:5: error: ������readdir64_r������ is deprecated [-Werror=deprecated-declarations]
while (readdir64_r(dirp, entry, &dp) == 0 && dp != NULL) {
^~~~~
In file included from /openjdk/jdk11u/src/java.base/unix/native/libjava/TimeZone_md.c:36:0:
/usr/include/dirent.h:201:12: note: declared here
extern int readdir64_r (DIR *__restrict __dirp,
^~~~~~~~~~~
/openjdk/jdk11u/src/java.base/unix/native/libjava/UnixFileSystem_md.c: In function ������Java_java_io_UnixFileSystem_list������:
/openjdk/jdk11u/src/java.base/unix/native/libjava/UnixFileSystem_md.c:342:5: error: ������readdir64_r������ is deprecated [-Werror=deprecated-declarations]
while ((readdir64_r(dir, ptr, &result) == 0) && (result != NULL)) {
^~~~~
In file included from /openjdk/jdk11u/src/java.base/unix/native/libjava/UnixFileSystem_md.c:43:0:
/usr/include/dirent.h:201:12: note: declared here
extern int readdir64_r (DIR *__restrict __dirp,
^~~~~~~~~~~
cc1: all warnings being treated as errors
CoreLibraries.gmk:128: recipe for target '/openjdk/jdk11u/build/linux-x86_64-normal-server-release/support/native/java.base/libjava/TimeZone_md.o' failed
make[3]: *** [/openjdk/jdk11u/build/linux-x86_64-normal-server-release/support/native/java.base/libjava/TimeZone_md.o] Error 1
make[3]: *** Waiting for unfinished jobs....
cc1: all warnings being treated as errors
make[3]: *** [/openjdk/jdk11u/build/linux-x86_64-normal-server-release/support/native/java.base/libjava/UnixFileSystem_md.o] Error 1
CoreLibraries.gmk:128: recipe for target '/openjdk/jdk11u/build/linux-x86_64-normal-server-release/support/native/java.base/libjava/UnixFileSystem_md.o' failed
make[2]: *** [java.base-libs] Error 2
make/Main.gmk:215: recipe for target 'java.base-libs' failed
ERROR: Build failed for target 'images' in configuration 'linux-x86_64-normal-server-release' (exit code 2)
=== Output from failing command(s) repeated here ===
* For target support_native_java.base_libjava_TimeZone_md.o:
/openjdk/jdk11u/src/java.base/unix/native/libjava/TimeZone_md.c: In function ������findZoneinfoFile������:
/openjdk/jdk11u/src/java.base/unix/native/libjava/TimeZone_md.c:150:5: error: ������readdir64_r������ is deprecated [-Werror=deprecated-declarations]
while (readdir64_r(dirp, entry, &dp) == 0 && dp != NULL) {
^~~~~
In file included from /openjdk/jdk11u/src/java.base/unix/native/libjava/TimeZone_md.c:36:0:
/usr/include/dirent.h:201:12: note: declared here
extern int readdir64_r (DIR *__restrict __dirp,
^~~~~~~~~~~
cc1: all warnings being treated as errors
* For target support_native_java.base_libjava_UnixFileSystem_md.o:
/openjdk/jdk11u/src/java.base/unix/native/libjava/UnixFileSystem_md.c: In function ������Java_java_io_UnixFileSystem_list������:
/openjdk/jdk11u/src/java.base/unix/native/libjava/UnixFileSystem_md.c:342:5: error: ������readdir64_r������ is deprecated [-Werror=deprecated-declarations]
while ((readdir64_r(dir, ptr, &result) == 0) && (result != NULL)) {
^~~~~
In file included from /openjdk/jdk11u/src/java.base/unix/native/libjava/UnixFileSystem_md.c:43:0:
/usr/include/dirent.h:201:12: note: declared here
extern int readdir64_r (DIR *__restrict __dirp,
^~~~~~~~~~~
cc1: all warnings being treated as errors
* All command lines available in /openjdk/jdk11u/build/linux-x86_64-normal-server-release/make-support/failure-logs.
=== End of repeated output ===
=== Make failed targets repeated here ===
CoreLibraries.gmk:128: recipe for target '/openjdk/jdk11u/build/linux-x86_64-normal-server-release/support/native/java.base/libjava/TimeZone_md.o' failed
CoreLibraries.gmk:128: recipe for target '/openjdk/jdk11u/build/linux-x86_64-normal-server-release/support/native/java.base/libjava/UnixFileSystem_md.o' failed
make/Main.gmk:215: recipe for target 'java.base-libs' failed
=== End of repeated output ===
Hint: Try searching the build log for the name of the first failed target.
Hint: See doc/building.html#troubleshooting for assistance.
/openjdk/jdk11u/make/Init.gmk:300: recipe for target 'main' failed
make[1]: *** [main] Error 2
/openjdk/jdk11u/make/Init.gmk:186: recipe for target 'images' failed
make: *** [images] Error 2
FREQUENCY : always