Problem building openjdk using cygwin

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