The build fails with the following error:
Building target 'images' in configuration 'linux-x86_64-normal-server-release'
Building JVM variant 'server' with features 'all-gcs cds closed-src commercial-features compiler1 compiler2 fprof jni-check jvmci jvmti management nmt services trace vm-structs'
Compiling 2877 files for java.base
/home/artem/ws/jdk/jdk9_dev_stapling_test/jdk/src/java.base/share/classes/java/lang/invoke/MethodHandleImpl.java:1738: error: cannot find symbol
return GenerateJLIClassesHelper
^
symbol: variable GenerateJLIClassesHelper
/home/artem/ws/jdk/jdk9_dev_stapling_test/jdk/src/java.base/share/classes/java/lang/invoke/MethodHandleImpl.java:1745: error: cannot find symbol
return GenerateJLIClassesHelper
^
symbol: variable GenerateJLIClassesHelper
2 errors
CompileJavaModules.gmk:495: recipe for target '/home/artem/ws/jdk/jdk9_dev_stapling_test/build/linux-x86_64-normal-server-release/jdk/modules/java.base/_the.java.base_batch' failed
make[3]: *** [/home/artem/ws/jdk/jdk9_dev_stapling_test/build/linux-x86_64-normal-server-release/jdk/modules/java.base/_the.java.base_batch] Error 1
make/Main.gmk:193: recipe for target 'java.base-java' failed
make[2]: *** [java.base-java] Error 1
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 jdk_modules_java.base__the.java.base_batch:
/home/artem/ws/jdk/jdk9_dev_stapling_test/jdk/src/java.base/share/classes/java/lang/invoke/MethodHandleImpl.java:1738: error: cannot find symbol
return GenerateJLIClassesHelper
^
symbol: variable GenerateJLIClassesHelper
/home/artem/ws/jdk/jdk9_dev_stapling_test/jdk/src/java.base/share/classes/java/lang/invoke/MethodHandleImpl.java:1745: error: cannot find symbol
return GenerateJLIClassesHelper
^
symbol: variable GenerateJLIClassesHelper
2 errors
=== End of repeated output ===
=== Make failure sequence repeated here ===
CompileJavaModules.gmk:495: recipe for target '/home/artem/ws/jdk/jdk9_dev_stapling_test/build/linux-x86_64-normal-server-release/jdk/modules/java.base/_the.java.base_batch' failed
make/Main.gmk:193: recipe for target 'java.base-java' failed
=== End of repeated output ===
Hint: Try searching the build log for the name of the first failed target.
Hint: If caused by a warning, try configure --disable-warnings-as-errors.
/home/artem/ws/jdk/jdk9_dev_stapling_test/make/Init.gmk:286: recipe for target 'main' failed
make[1]: *** [main] Error 1
/home/artem/ws/jdk/jdk9_dev_stapling_test/make/Init.gmk:185: recipe for target 'images' failed
make: *** [images] Error 2
This seems to be caused by JDK-8163373