编译OpenJDK11:fixpath Unknown argument: -nologo

Posted 柳鲲鹏

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了编译OpenJDK11:fixpath Unknown argument: -nologo相关的知识,希望对你有一定的参考价值。

  • 具体错误
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
  • 错误产生原因

试图调用编译产生的fixpath,修改文件内容,结果参数又不对,于是报错中。

  • 解决办法

打开fixpath.c,删除报错语句。

以上是关于编译OpenJDK11:fixpath Unknown argument: -nologo的主要内容,如果未能解决你的问题,请参考以下文章

LINUX编译OpenJDK11

Linux编译openjdk11源码

002.centos7.3编译openjdk11

写 Java 这么久了,你编译过 JDK 源码吗

编译OpenJDK11,必须使用VS 2017

WINDOWS编译JDK11