Problem building openjdk using cygwin (original) (raw)

Volker Simonis volker.simonis at gmail.com
Thu Mar 29 07:25:39 UTC 2018


Hi Alireza,

it seems you don’t have short file names enabled for the “Program Files” directory. Notice that you have short file names enabled for “c:\” (i.e. you have “progra~2”).

You have to first enable short file names for the “Program Files” directory (see for example https://superuser.com/questions/681330/how-to-force-short-name-8dot3-generation ).

Afterwards you must copy “microsoft visual studio” to a temporary directory and finally copy it back to “microsoft visual studio”. This should create a short name for that directory.

Regards, Volker

Alireza Mohamadi <dangersd at gmail.com> schrieb am Do. 29. März 2018 um 06:08:

Hi. I wanted to build OpenJDK in windows using cygwin, and I set VC compiler path, but due to whitespaces in the path I can't build, with the following error: _ _configure: Rewriting CC to "/cygdrive/c/progra~2/microsoft visual_ _studio/2017/community/vc/tools/msvc/14.13.26128/bin/hostx86/x64/cl"_ _checking resolved symbolic links for CC... no symlink_ _configure: The C compiler (located as /cygdrive/c/progra~2/microsoft visual_ _studio/2017/community/vc/tools/msvc/14.13.26128/bin/hostx86/x64/cl) does_ _not seem to be the required microsoft compiler.configure: error: A_ _microsoft compiler is reconfigure: The result from running it was:_ _"/home/SuNova/jdk/build/.configure-support/generated-configure.sh: line_ _35050: /cygdrive/c/progra~2/microsoft: No such file or directory"_ _configure exiting with result code 1_ _ Well it's not in my hands to set compiler path while installing VS2017 and it does this automatically, so what can I do in this case?

-- Sometimes the best results can be achieved in the worst conditions Wish you the bests :) Alireza



More information about the build-dev mailing list