Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8300046

Windows build fails when path includes "+"

    XMLWordPrintable

Details

    Description

      Build JDK with the jdk11u (tag: jdk-11.0.18+9) codes and met a problem on path.

      The logs contains the below lines,

      2023-01-12 17:27:46:064 : Building target 'images' in configuration 'windows-x86_64-normal-server-release'
      2023-01-12 17:27:48:370 : Compiling 8 files for BUILD_TOOLS_LANGTOOLS
      2023-01-12 17:27:51:057 : Parsing 2 properties into enum-like class for jdk.compiler
      2023-01-12 17:27:51:194 : Compiling 13 properties into resource bundles for jdk.javadoc
      2023-01-12 17:27:51:906 : Compiling 12 properties into resource bundles for jdk.jdeps
      2023-01-12 17:27:51:917 : Compiling 7 properties into resource bundles for jdk.jshell
      2023-01-12 17:27:52:254 : Compiling 19 properties into resource bundles for jdk.compiler
      2023-01-12 17:27:54:016 : Compiling 117 files for BUILD_java.compiler.interim
      2023-01-12 17:27:57:016 : Compiling 394 files for BUILD_jdk.compiler.interim
      2023-01-12 17:27:57:031 : Creating hotspot/variant-server/tools/adlc/adlc.exe from 13 file(s)
      2023-01-12 17:27:57:126 : Compiling 2 files for BUILD_JVMTI_TOOLS
      2023-01-12 17:27:57:157 : Compiling 1 files for BUILD_JFR_TOOLS
      2023-01-12 17:28:05:814 : Creating support/modules_libs/java.base/server/jvm.dll from 878 file(s)
      2023-01-12 17:28:33:149 : Compiling 299 files for BUILD_jdk.javadoc.interim
      2023-01-12 17:28:51:624 : Compiling 165 files for BUILD_TOOLS_JDK
      2023-01-12 17:28:52:250 : Compiling 2 files for COMPILE_DEPEND
      2023-01-12 17:28:54:254 : ##[error]Failed to create server process: Cannot run program "C:\cygwinroot\home\Administrator\build\jdk-11.0.7+10C:\cygwinroot\bin\java.exe": CreateProcess error=2, The system cannot find the file specified
      2023-01-12 17:28:54:254 : ##[error]IOException caught during compilation: java.io.IOException: Cannot run program "C:\cygwinroot\home\Administrator\build\jdk-11.0.7+10C:\cygwinroot\bin\java.exe": CreateProcess error=2, The system cannot find the file specified
      2023-01-12 17:28:54:519 : ##[error]Failed to create server process: Cannot run program "C:\cygwinroot\home\Administrator\build\jdk-11.0.7+10C:\cygwinroot\bin\java.exe": CreateProcess error=2, The system cannot find the file specified
      2023-01-12 17:28:54:519 : ##[error]IOException caught during compilation: java.io.IOException: Cannot run program "C:\cygwinroot\home\Administrator\build\jdk-11.0.7+10C:\cygwinroot\bin\java.exe": CreateProcess error=2, The system cannot find the file specified
      2023-01-12 17:28:54:676 : ##[error]make[3]: *** [CompileToolsJdk.gmk:76: /cygdrive/e/data/landun/workspace/p-043efbedb5bf4376816ac7884b3693aa/src/gitcode/build/windows-x86_64-normal-server-release/buildtools/depend/_the.COMPILE_DEPEND_batch] Error 1
      2023-01-12 17:28:54:676 : ##[error]make[3]: *** Waiting for unfinished jobs....

      The path "C:\cygwinroot\home\Administrator\build\jdk-11.0.7+10C:\cygwinroot\bin\java.exe" looks incorrect.

      In my Windows machine,
      the cygwin path is C:\cygwinroot
      the jdk path is C:\cygwinroot\home\Administrator\build\jdk-11.0.7+10

      so, I think the java path should be
      C:\cygwinroot\home\Administrator\build\jdk-11.0.7+10\bin\java.exe

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              jjiang John Jiang
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated: