Ubuntu failed to compile openJDK 9

Gods, I had a problem compiling openJDK 9 with Ubuntu 18.04. I"ve been working on it all day. Please give me some advice. Please

the environment is as follows:
system version: Ubuntu 18.04.1 (installed in the virtual machine)
openJDK version: 9
JDK version: 8

basic information:
installation of JDK8 is normal;

execute bash configure, under the openJDK directory to install the required dependencies in turn. Finally, when executing sudo make all, it shows:

Building target "all" in configuration "linux-x86_64-normal-server-release"
make[2]: *** No rule to make target "java.base-libs", needed by "java.base-interim-jmod". Stop.

ERROR: Build failed for target "all" in configuration "linux-x86_64-normal-server-release" (exit code 2) 

No indication of failed target found.
Hint: Try searching the build log for "] Error".
Hint: See common/doc/building.html-sharptroubleshooting for assistance.

/home/user1/Desktop/jdk9-a08cbfc0e4ec/make/Init.gmk:291: recipe for target "main" failed
make[1]: *** [main] Error 2
/home/user1/Desktop/jdk9-a08cbfc0e4ec/make/Init.gmk:185: recipe for target "all" failed
make: *** [all] Error 2

Baidu asked similar questions, but none of them worked. Please give me some advice.

May.22,2021

have brothers solved it? I have the same problem.


I just run bash get_source.sh as written in common/doc/building.html.
it is estimated that the source code of the initial download is incomplete.

Menu