具体错误
Creating hotspot/variant-server/libjvm/gtest/gtestLauncher.exe from 1 file(s) fixpath Unknown argument: -nologo make[3]: *** [lib/CompileJvm.gmk:155: /cygdrive/d/Office-3.5-project/jdk11u/build/windows-x86_64-normal-server-release/hotspot/variant-server/libjvm/objs/jvm.dll.res] Error 127 make[2]: *** [make/Main.gmk:272: hotspot-server-libs] Error 2 make[2]: *** Waiting for unfinished jobs.... Compiling 299 files for BUILD_jdk.javadoc.interim ERROR: Build failed for target 'default (exploded-image)' in configuration 'windows-x86_64-normal-server-release' (exit code 2) === Output from failing command(s) repeated here === * For target hotspot_variant-server_libjvm_objs_jvm.dll.res: fixpath Unknown argument: -nologo * All command lines available in /cygdrive/d/Office-3.5-project/jdk11u/build/windows-x86_64-normal-server-release/make-support/failure-logs. === End of repeated output === No indication of failed target found. Hint: Try searching the build log for '] Error'. Hint: See doc/building.html#troubleshooting for assistance. make[1]: *** [/cygdrive/d/Office-3.5-project/jdk11u/make/Init.gmk:305: main] Error 2 make: *** [/cygdrive/d/Office-3.5-project/jdk11u/make/Init.gmk:186: default] Error 2
解决办法
编译需要使用VS 2017。