<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<div class="elementToProof" style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Glad that you got it working! From our experience here, I filed <a href="https://bugs.openjdk.org/browse/JDK-8335880" id="OWA65d9b0f6-3e42-de88-c1ce-9f9518d7bbe2" class="OWAAutoLink">
[JDK-8335880] More troubleshooting tips around windows space in path - Java Bug System (openjdk.org)</a> so we can resolve similar difficulties more easily in the future. These details are error-prone indeed.</div>
<div id="appendonsend"></div>
<hr style="display:inline-block;width:98%" tabindex="-1">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>From:</b> build-dev <build-dev-retn@openjdk.org> on behalf of Anil <1dropaflame@gmail.com><br>
<b>Sent:</b> Sunday, July 7, 2024 5:29 PM<br>
<b>To:</b> Chen Liang <liangchenblue@gmail.com>; build-dev@openjdk.org <build-dev@openjdk.org><br>
<b>Subject:</b> Re: [External] : Re: building the JDK on Windows using Cygwin</font>
<div> </div>
</div>
<div>
<div dir="ltr">
<div>I see in Installer that the Windows Kits checkbox is already checked. From the timestamp, it was installed during my last VS install, after shortnames was enabled.</div>
<div>Following Ira's suggestion, I manually created the shortname for the folder.</div>
<div><br>
</div>
C:\PROGRA~2>fsutil file setshortname "Windows Kits" WINDOW~5<br>
C:\PROGRA~2>dir /x<br>
07/06/2024 12:11 PM <DIR> WINDOW~5 Windows Kits<br>
<br>
yay!<br>
<br>
A new configuration has been successfully created in<br>
/cygdrive/c/users/anil/openjdk/jdk/build/windows-x86_64-server-release<br>
<br>
$ make images<br>
Building target 'images' in configuration 'windows-x86_64-server-release'<br>
Compiling up to 1 files for BUILD_TOOLS_HOTSPOT<br>
Compiling up to 8 files for BUILD_TOOLS_LANGTOOLS<br>
Compiling 17 properties into resource bundles for jdk.javadoc<br>
Generating classes for compiler.properties launcher.properties<br>
Compiling 10 properties into resource bundles for jdk.jshell<br>
Compiling 19 properties into resource bundles for jdk.compiler<br>
Compiling 15 properties into resource bundles for jdk.jdeps<br>
Compiling up to 136 files for BUILD_java.compiler.interim<br>
Compiling up to 358 files for BUILD_jdk.compiler.interim<br>
Compiling up to 145 files for BUILD_jdk.internal.md.interim<br>
Compiling up to 213 files for BUILD_jdk.javadoc.interim<br>
Compiling up to 17 files for BUILD_JAVAC_SERVER<br>
<br>
ERROR: Build failed for target 'images' in configuration 'windows-x86_64-server-release' (exit code 141)<br>
<br>
No indication of failed target found.<br>
HELP: Try searching the build log for '] Error'.<br>
HELP: Run 'make doctor' to diagnose build problems.<br>
<br>
make[1]: *** [/cygdrive/c/users/anil/OpenJDK/jdk/make/Init.gmk:323: main] Error 141<br>
make: *** [/cygdrive/c/users/anil/OpenJDK/jdk/make/Init.gmk:189: images] Interrupt<br>
</div>
<br>
<div class="x_gmail_quote">
<div dir="ltr" class="x_gmail_attr">On Sun, Jul 7, 2024 at 11:07 AM Chen Liang <<a href="mailto:liangchenblue@gmail.com">liangchenblue@gmail.com</a>> wrote:<br>
</div>
<blockquote class="x_gmail_quote" style="margin:0px 0px 0px 0.8ex; border-left:1px solid rgb(204,204,204); padding-left:1ex">
<p dir="ltr">Hmm, Anil, can you try installing the missing windows kits and see the results?</p>
<br>
<div class="x_gmail_quote">
<div dir="ltr" class="x_gmail_attr">On Sun, Jul 7, 2024, 10:40 AM Anil <<a href="mailto:1dropaflame@gmail.com" target="_blank">1dropaflame@gmail.com</a>> wrote:<br>
</div>
<blockquote class="x_gmail_quote" style="margin:0px 0px 0px 0.8ex; border-left:1px solid rgb(204,204,204); padding-left:1ex">
<div dir="ltr">
<div>[Sriram] "I do not actively build the openjdk but I read the posts for fun and learning"</div>
<div><br>
</div>
<div dir="auto">Thank you for your reply. If you read the earlier email, I already performed the uninstall, fsutil enable, reinstall of visual studio.
<div dir="auto">The short names are being generated in visual studio. The other directories outside of VS were installed earlier (hence have spaces) but are not necessary for the JDK build, as far as I know.</div>
<div>Perhaps you can try to build on windows11 and let us know how it goes?</div>
</div>
</div>
<br>
<div class="x_gmail_quote">
<div dir="ltr" class="x_gmail_attr">On Sun, Jul 7, 2024, 6:17 AM Sriram Narayanan <<a href="mailto:sriramnrn@gmail.com" rel="noreferrer noreferrer" target="_blank">sriramnrn@gmail.com</a>> wrote:<br>
</div>
<blockquote class="x_gmail_quote" style="margin:0px 0px 0px 0.8ex; border-left:1px solid rgb(204,204,204); padding-left:1ex">
<div dir="ltr">Just a suggestion ( I do not actively build the openjdk but I read the posts for fun and learning): 
<div><br>
</div>
<div>Please try this sequence:</div>
<div>- uninstall Visual Studio</div>
<div>- use the fsutil tool once to force the setting</div>
<div>- reboot windows</div>
<div>- install Visual Studio</div>
<div><br>
</div>
<div>Check whether the sub directories have a space in them. I also see that you have intelliJ installed which does have a space. You may want to consider moving all subdirectories with space outside, or even installing Visual Studio to c:\tools.</div>
<div><br>
</div>
<div>I also see that your PATH has many directories. Could you consider trimming down the PATH to just the bare minimum that you need before launching the bash configure? (This could be local to that CMD session).</div>
<div><br>
</div>
<div>-- Sriram</div>
</div>
<br>
<div class="x_gmail_quote">
<div dir="ltr" class="x_gmail_attr">On Sun, Jul 7, 2024 at 6:39 PM Anil <<a href="mailto:1dropaflame@gmail.com" rel="noreferrer noreferrer noreferrer" target="_blank">1dropaflame@gmail.com</a>> wrote:<br>
</div>
<blockquote class="x_gmail_quote" style="margin:0px 0px 0px 0.8ex; border-left:1px solid rgb(204,204,204); padding-left:1ex">
<div dir="ltr">
<div>I don't understand why there are empty arguments to the includes directives.</div>
<div><br>
</div>
<div>-I/cygdrive/c/progra~1/micros~1/2022/commun~1/vc/auxili~1/vs/include <b>-I -I -I -I
</b> conftest.c  -link  <br>
</div>
<div><br>
</div>
<div>  LINK : fatal error LNK1146: no argument specified with option '/libpath:'<br>
<div><br>
</div>
</div>
<div>I have run out of options to try.</div>
<div>My config.log is attached.</div>
<div>Anil</div>
<div><br>
</div>
</div>
<br>
<div class="x_gmail_quote">
<div dir="ltr" class="x_gmail_attr">On Sat, Jul 6, 2024 at 6:42 PM Anil <<a href="mailto:1dropaflame@gmail.com" rel="noreferrer noreferrer noreferrer" target="_blank">1dropaflame@gmail.com</a>> wrote:<br>
</div>
<blockquote class="x_gmail_quote" style="margin:0px 0px 0px 0.8ex; border-left:1px solid rgb(204,204,204); padding-left:1ex">
<div dir="ltr">Thank you for sharing your config.log
<div>I do not see the "contains spaces" errors in yours.</div>
<div>...</div>
<div>
<blockquote class="x_gmail_quote" style="margin:0px 0px 0px 0.8ex; border-left:1px solid rgb(204,204,204); padding-left:1ex">
fixpath: failure: Path '/cygdrive/c/progra~2/windows kits/10/include/10.0.22621.0/shared' contains space<br>
fixpath: failure: Path '/cygdrive/c/progra~2/windows kits/10/include/10.0.22621.0/winrt' contains space<br>
fixpath: failure: Path '/cygdrive/c/progra~2/windows kits/10/include/10.0.22621.0/cppwinrt' contains space</blockquote>
....</div>
<div>  <br>
</div>
<div>As Erik suggested, I searched for how to set shortnames and:</div>
<div><br>
</div>
<blockquote class="x_gmail_quote" style="margin:0px 0px 0px 0.8ex; border-left:1px solid rgb(204,204,204); padding-left:1ex">
C:\PROGRA~1>fsutil 8dot3name query C:<br>
The volume state is: 0 (8dot3 name creation is ENABLED)<br>
The registry state is: 1 (8dot3 name creation is DISABLED on all volumes)</blockquote>
<div><br>
<blockquote class="x_gmail_quote" style="margin:0px 0px 0px 0.8ex; border-left:1px solid rgb(204,204,204); padding-left:1ex">
Based on the above settings, 8dot3 name creation is DISABLED on "C:"</blockquote>
<br>
<blockquote class="x_gmail_quote" style="margin:0px 0px 0px 0.8ex; border-left:1px solid rgb(204,204,204); padding-left:1ex">
C:\PROGRA~1>FSUTIL 8dot3name set 0<br>
The registry state is now: 0 (Enable 8dot3 name creation on all volumes).<br>
C:\PROGRA~1>fsutil 8dot3name query C:<br>
The volume state is: 0 (8dot3 name creation is ENABLED)<br>
The registry state is: 0 (8dot3 name creation is ENABLED on all volumes)</blockquote>
<br>
<blockquote class="x_gmail_quote" style="margin:0px 0px 0px 0.8ex; border-left:1px solid rgb(204,204,204); padding-left:1ex">
Based on the above settings, 8dot3 name creation is ENABLED on "C:"</blockquote>
</div>
<div><br>
</div>
<div>I uninstalled VS, deleted the folder in Program Files, downloaded VS, ran the installer, ensured that </div>
<div>Desktop Applications for C++ was checked (and no other were checked). </div>
<div>Then I tried again.</div>
<div><br>
</div>
<div>configure: Found Visual Studio installation at /cygdrive/c/progra~1/micros~1/2022/Community using well-known name<br>
configure: Found Microsoft Visual Studio 2022<br>
configure: Trying to extract Visual Studio environment variables for x86_64<br>
configure: using /cygdrive/c/progra~1/micros~1/2022/Community/vc/auxiliary/build/vcvars64.bat<br>
configure: Setting extracted environment variables for x86_64<br>
fixpath: warning: Path '/cygdrive/c/minikube' does not exist<br>
fixpath: failure: Path '/cygdrive/c/progra~1/microsoft sql server/150/tools/binn' contains space<br>
fixpath: failure: Path '/cygdrive/c/progra~2/windows kits/10/window~1' contains space<br>
fixpath: failure: Path '/cygdrive/c/progra~1/mysql/mysql shell 8.0/bin' contains space<br>
fixpath: failure: Path '/cygdrive/c/users/anil/appdata/local/programs/microsoft vs code/bin' contains space<br>
fixpath: failure: Path '/cygdrive/c/progra~1/jetbrains/intellij idea community edition 2022.2.3/bin' contains space<br>
fixpath: failure: Path '/cygdrive/c/progra~2/windows kits/10/bin/100226~1.0/x64' contains space<br>
fixpath: failure: Path '/cygdrive/c/progra~2/windows kits/10/bin/x64' contains space<br>
fixpath: warning: Path '/cygdrive/c/minikube' does not exist<br>
fixpath: failure: Path '/cygdrive/c/progra~1/microsoft sql server/150/tools/binn' contains space<br>
fixpath: failure: Path '/cygdrive/c/progra~2/windows kits/10/window~1' contains space<br>
fixpath: failure: Path '/cygdrive/c/progra~1/mysql/mysql shell 8.0/bin' contains space<br>
fixpath: failure: Path '/cygdrive/c/users/anil/appdata/local/programs/microsoft vs code/bin' contains space<br>
fixpath: failure: Path '/cygdrive/c/progra~1/jetbrains/intellij idea community edition 2022.2.3/bin' contains space<br>
fixpath: failure: Path '/cygdrive/c/progra~2/windows kits/10/include/100226~1.0/ucrt' contains space<br>
fixpath: failure: Path '/cygdrive/c/progra~2/windows kits/10/include/100226~1.0/um' contains space<br>
fixpath: failure: Path '/cygdrive/c/progra~2/windows kits/10/include/100226~1.0/shared' contains space<br>
fixpath: failure: Path '/cygdrive/c/progra~2/windows kits/10/include/100226~1.0/winrt' contains space<br>
fixpath: failure: Path '/cygdrive/c/progra~2/windows kits/10/include/100226~1.0/cppwinrt' contains space<br>
fixpath: failure: Path '/cygdrive/c/progra~2/windows kits/10/lib/100226~1.0/ucrt/x64' contains space<br>
fixpath: failure: Path '/cygdrive/c/progra~2/windows kits/10/lib/100226~1.0/um/x64' contains space<br>
fixpath: failure: Path '/cygdrive/c/progra~2/windows kits/10/' contains space<br>
fixpath: failure: Path '/cygdrive/c/progra~2/windows kits/10/' contains space<br>
checking that Visual Studio variables have been correctly extracted... ok<br>
checking for cl... $FIXPATH /cygdrive/c/progra~1/micros~1/2022/commun~1/vc/tools/msvc/1440~1.338/bin/hostx64/x64/cl.exe<br>
checking resolved symbolic links for CC... no symlink<br>
configure: Using microsoft C compiler version 19.40.33811 [Microsoft (R) C/C++ Optimizing Compiler Version 19.40.33811 for x64]<br>
checking whether the C compiler works... no<br>
configure: error: in '/cygdrive/c/users/anil/OpenJDK/jdk':<br>
configure: error: C compiler cannot create executables<br>
See 'config.log' for more details<br>
configure exiting with result code 77<br>
</div>
<div><br>
</div>
<div>Is "windows kits" a required component? (the fixpath failure).</div>
<div>Why does it say "C compiler cannot create executables"</div>
<div><br>
</div>
<div>My config.log is attached.</div>
<div><br>
</div>
<div>Anil</div>
<div><br>
</div>
</div>
<br>
<div class="x_gmail_quote">
<div dir="ltr" class="x_gmail_attr">On Fri, Jul 5, 2024 at 5:33 PM Chen Liang <<a href="mailto:chen.l.liang@oracle.com" rel="noreferrer noreferrer noreferrer" target="_blank">chen.l.liang@oracle.com</a>> wrote:<br>
</div>
<blockquote class="x_gmail_quote" style="margin:0px 0px 0px 0.8ex; border-left:1px solid rgb(204,204,204); padding-left:1ex">
<div>
<div dir="ltr">
<div style="font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
Thanks Anil! This log is extremely helpful.</div>
<div style="font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
It seems that variable extraction for you is broken. My checking C compiler command line looks like:</div>
<div style="line-height:19px; white-space:pre-wrap; font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
configure:86563: /cygdrive/c/java/cf-apis/open/build/windows-x86_64-server-release/fixpath exec /cygdrive/c/progra~1/mib055~1/2022/commun~1/vc/tools/msvc/1440~1.338/bin/hostx64/x64/cl.exe   -I/cygdrive/c/progra~1/mib055~1/2022/commun~1/vc/tools/msvc/1440~1.338/include
 -I/cygdrive/c/progra~1/mib055~1/2022/commun~1/vc/tools/msvc/1440~1.338/atlmfc/include -I/cygdrive/c/progra~1/mib055~1/2022/commun~1/vc/auxili~1/vs/include -I/cygdrive/c/progra~2/wi3cf2~1/10/include/100226~1.0/ucrt -I/cygdrive/c/progra~2/wi3cf2~1/10/include/100226~1.0/um
 -I/cygdrive/c/progra~2/wi3cf2~1/10/include/100226~1.0/shared -I/cygdrive/c/progra~2/wi3cf2~1/10/include/100226~1.0/winrt -I/cygdrive/c/progra~2/wi3cf2~1/10/include/100226~1.0/cppwinrt   -I/cygdrive/c/progra~1/mib055~1/2022/commun~1/vc/tools/msvc/1440~1.338/include
 -I/cygdrive/c/progra~1/mib055~1/2022/commun~1/vc/tools/msvc/1440~1.338/atlmfc/include -I/cygdrive/c/progra~1/mib055~1/2022/commun~1/vc/auxili~1/vs/include -I/cygdrive/c/progra~2/wi3cf2~1/10/include/100226~1.0/ucrt -I/cygdrive/c/progra~2/wi3cf2~1/10/include/100226~1.0/um
 -I/cygdrive/c/progra~2/wi3cf2~1/10/include/100226~1.0/shared -I/cygdrive/c/progra~2/wi3cf2~1/10/include/100226~1.0/winrt -I/cygdrive/c/progra~2/wi3cf2~1/10/include/100226~1.0/cppwinrt  conftest.c  -link   -libpath:/cygdrive/c/progra~1/mib055~1/2022/commun~1/vc/tools/msvc/1440~1.338/atlmfc/lib/x64
 -libpath:/cygdrive/c/progra~1/mib055~1/2022/commun~1/vc/tools/msvc/1440~1.338/lib/x64 -libpath:/cygdrive/c/progra~2/wi3cf2~1/10/lib/100226~1.0/ucrt/x64 -libpath:/cygdrive/c/progra~2/wi3cf2~1/10/lib/100226~1.0/um/x64  >&5</div>
<div style="font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
While yours is just 4 consecutive </div>
<pre><div style="text-align:left; text-indent:0px; white-space:pre-wrap; font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">-I -I -I -I</div><div style="text-align:left; text-indent:0px; white-space:pre-wrap; font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">in the middle.</div><div style="text-align:left; text-indent:0px; white-space:pre-wrap; font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)"><br></div><div style="text-align:left; text-indent:0px; white-space:pre-wrap; font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">I think your vcvars64.bat or such might be broken, as that's where configure pulls variables. You can try uninstalling visual studio completely and reinstalling it, I guess.</div><div style="text-align:left; text-indent:0px; white-space:pre-wrap; font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)"><br></div><div style="text-align:left; text-indent:0px; white-space:pre-wrap; font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">I have attached a sample of my successful configure log; hope it can help you diagnose.</div><div style="text-align:left; text-indent:0px; white-space:pre-wrap; font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)"><br></div><div style="text-align:left; text-indent:0px; white-space:pre-wrap; font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">Regards, Chen</div></pre>
<div id="x_m_5927577862588346370m_6521850098904044360m_967130830802770331m_-410058270540465309m_6608477006008376436m_-162208530744677504m_-3979073779044866987m_727566744719272939m_-8954475695271815532m_-4387796052029455884m_1989767568152604203appendonsend">
</div>
<hr style="display:inline-block; width:98%">
<div id="x_m_5927577862588346370m_6521850098904044360m_967130830802770331m_-410058270540465309m_6608477006008376436m_-162208530744677504m_-3979073779044866987m_727566744719272939m_-8954475695271815532m_-4387796052029455884m_1989767568152604203divRplyFwdMsg" dir="ltr">
<font face="Calibri, sans-serif" color="#000000" style="font-size:11pt"><b>From:</b> Anil <<a href="mailto:1dropaflame@gmail.com" rel="noreferrer noreferrer noreferrer" target="_blank">1dropaflame@gmail.com</a>><br>
<b>Sent:</b> Friday, July 5, 2024 5:13 PM<br>
<b>To:</b> Chen Liang <<a href="mailto:chen.l.liang@oracle.com" rel="noreferrer noreferrer noreferrer" target="_blank">chen.l.liang@oracle.com</a>><br>
<b>Cc:</b> <a href="mailto:build-dev@openjdk.org" rel="noreferrer noreferrer noreferrer" target="_blank">
build-dev@openjdk.org</a> <<a href="mailto:build-dev@openjdk.org" rel="noreferrer noreferrer noreferrer" target="_blank">build-dev@openjdk.org</a>><br>
<b>Subject:</b> Re: [External] : Re: building the JDK on Windows using Cygwin</font>
<div> </div>
</div>
<div>
<div dir="ltr">please find attached, my config.log</div>
<br>
<div>
<div dir="ltr">On Fri, Jul 5, 2024 at 4:48 PM Chen Liang <<a href="mailto:chen.l.liang@oracle.com" rel="noreferrer noreferrer noreferrer" target="_blank">chen.l.liang@oracle.com</a>> wrote:<br>
</div>
<blockquote style="margin:0px 0px 0px 0.8ex; border-left:1px solid rgb(204,204,204); padding-left:1ex">
<div>
<div dir="auto">Can you share your config.log then, as I can't reproduce your problem? Or try uninstall and reinstall visual studio.</div>
<div><br>
</div>
<div id="x_m_5927577862588346370m_6521850098904044360m_967130830802770331m_-410058270540465309m_6608477006008376436m_-162208530744677504m_-3979073779044866987m_727566744719272939m_-8954475695271815532m_-4387796052029455884m_1989767568152604203x_m_-3637904167278356990ms-outlook-mobile-signature" dir="auto">
Get <a href="https://urldefense.com/v3/__https://aka.ms/AAb9ysg__;!!ACWV5N9M2RV99hQ!KHD1nvS8m4momd5iltdwexMSeaEKRfm5VCzqpURxxVfjSNaFwy1GEAsCecRvlRfTQHEt8fFl7NPu6l8nmZ1COCE$" rel="noreferrer noreferrer noreferrer" target="_blank">
Outlook for Android</a></div>
<hr style="display:inline-block; width:98%">
<div id="x_m_5927577862588346370m_6521850098904044360m_967130830802770331m_-410058270540465309m_6608477006008376436m_-162208530744677504m_-3979073779044866987m_727566744719272939m_-8954475695271815532m_-4387796052029455884m_1989767568152604203x_m_-3637904167278356990divRplyFwdMsg" dir="ltr">
<font face="Calibri, sans-serif" color="#000000" style="font-size:11pt"><b>From:</b> Anil <<a href="mailto:1dropaflame@gmail.com" rel="noreferrer noreferrer noreferrer" target="_blank">1dropaflame@gmail.com</a>><br>
<b>Sent:</b> Friday, July 5, 2024 4:45:54 PM<br>
<b>To:</b> Chen Liang <<a href="mailto:chen.l.liang@oracle.com" rel="noreferrer noreferrer noreferrer" target="_blank">chen.l.liang@oracle.com</a>><br>
<b>Cc:</b> <a href="mailto:build-dev@openjdk.org" rel="noreferrer noreferrer noreferrer" target="_blank">
build-dev@openjdk.org</a> <<a href="mailto:build-dev@openjdk.org" rel="noreferrer noreferrer noreferrer" target="_blank">build-dev@openjdk.org</a>><br>
<b>Subject:</b> Re: [External] : Re: building the JDK on Windows using Cygwin</font>
<div> </div>
</div>
<div>
<div dir="ltr">
<div>$ bash configure<br>
</div>
<div><br>
</div>
I got the same error as before. see below. Did you get these " fixpath: failure ...   contains space  " errors?
<div><br>
<div>configure: Setting extracted environment variables for x86_64<br>
fixpath: warning: Path '/cygdrive/c/minikube' does not exist<br>
fixpath: failure: Path '/cygdrive/c/progra~2/windows kits/10/windows performance toolkit' contains space<br>
fixpath: failure: Path '/cygdrive/c/progra~1/mysql/mysql shell 8.0/bin' contains space<br>
fixpath: failure: Path '/cygdrive/c/users/anil/appdata/local/programs/microsoft vs code/bin' contains space<br>
fixpath: failure: Path '/cygdrive/c/progra~1/jetbrains/intellij idea community edition 2022.2.3/bin' contains space<br>
fixpath: failure: Path '/cygdrive/c/progra~1/micros~3/2022/community/common7/ide/commonextensions/microsoft/teamfoundation/team explorer' contains space<br>
fixpath: failure: Path '/cygdrive/c/progra~1/micros~3/2022/community/team tools/diagnosticshub/collector' contains space<br>
fixpath: failure: Path '/cygdrive/c/progra~2/windows kits/10/bin/10.0.22621.0/x64' contains space<br>
fixpath: failure: Path '/cygdrive/c/progra~2/windows kits/10/bin/x64' contains space<br>
fixpath: warning: Path '/cygdrive/c/minikube' does not exist<br>
fixpath: failure: Path '/cygdrive/c/progra~2/windows kits/10/windows performance toolkit' contains space<br>
fixpath: failure: Path '/cygdrive/c/progra~1/mysql/mysql shell 8.0/bin' contains space<br>
fixpath: failure: Path '/cygdrive/c/users/anil/appdata/local/programs/microsoft vs code/bin' contains space<br>
fixpath: failure: Path '/cygdrive/c/progra~1/jetbrains/intellij idea community edition 2022.2.3/bin' contains space<br>
fixpath: failure: Path '/cygdrive/c/progra~2/windows kits/10/include/10.0.22621.0/ucrt' contains space<br>
fixpath: failure: Path '/cygdrive/c/progra~2/windows kits/10/include/10.0.22621.0/um' contains space<br>
fixpath: failure: Path '/cygdrive/c/progra~2/windows kits/10/include/10.0.22621.0/shared' contains space<br>
fixpath: failure: Path '/cygdrive/c/progra~2/windows kits/10/include/10.0.22621.0/winrt' contains space<br>
fixpath: failure: Path '/cygdrive/c/progra~2/windows kits/10/include/10.0.22621.0/cppwinrt' contains space<br>
fixpath: failure: Path '/cygdrive/c/progra~2/windows kits/10/lib/10.0.22621.0/ucrt/x64' contains space<br>
fixpath: failure: Path '/cygdrive/c/progra~2/windows kits/10/lib/10.0.22621.0/um/x64' contains space<br>
fixpath: failure: Path '/cygdrive/c/progra~2/windows kits/10/' contains space<br>
fixpath: failure: Path '/cygdrive/c/progra~2/windows kits/10/' contains space<br>
checking that Visual Studio variables have been correctly extracted... ok<br>
checking for cl... $FIXPATH /cygdrive/c/progra~1/micros~3/2022/community/vc/tools/msvc/14.40.33807/bin/hostx64/x64/cl.exe<br>
checking resolved symbolic links for CC... no symlink<br>
configure: Using microsoft C compiler version 19.40.33811 [Microsoft (R) C/C++ Optimizing Compiler Version 19.40.33811 for x64]<br>
checking whether the C compiler works... no<br>
configure: error: in '/cygdrive/c/users/anil/OpenJDK/jdk':<br>
configure: error: C compiler cannot create executables<br>
See 'config.log' for more details<br>
configure exiting with result code 77<br>
</div>
<div><br>
</div>
</div>
</div>
<br>
<div>
<div dir="ltr">On Fri, Jul 5, 2024 at 3:56 PM Chen Liang <<a href="mailto:chen.l.liang@oracle.com" rel="noreferrer noreferrer noreferrer" target="_blank">chen.l.liang@oracle.com</a>> wrote:<br>
</div>
<blockquote style="margin:0px 0px 0px 0.8ex; border-left:1px solid rgb(204,204,204); padding-left:1ex">
<div>
<div dir="ltr">
<div style="font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
Hmm, can you try without "--with-toolchain-path" flag? I did just "bash configure" which worked for me.</div>
<div id="x_m_5927577862588346370m_6521850098904044360m_967130830802770331m_-410058270540465309m_6608477006008376436m_-162208530744677504m_-3979073779044866987m_727566744719272939m_-8954475695271815532m_-4387796052029455884m_1989767568152604203x_m_-3637904167278356990x_m_782119444011023537appendonsend">
</div>
<hr style="display:inline-block; width:98%">
<div id="x_m_5927577862588346370m_6521850098904044360m_967130830802770331m_-410058270540465309m_6608477006008376436m_-162208530744677504m_-3979073779044866987m_727566744719272939m_-8954475695271815532m_-4387796052029455884m_1989767568152604203x_m_-3637904167278356990x_m_782119444011023537divRplyFwdMsg" dir="ltr">
<font face="Calibri, sans-serif" color="#000000" style="font-size:11pt"><b>From:</b> Anil <<a href="mailto:1dropaflame@gmail.com" rel="noreferrer noreferrer noreferrer" target="_blank">1dropaflame@gmail.com</a>><br>
<b>Sent:</b> Friday, July 5, 2024 3:50 PM<br>
<b>To:</b> Chen Liang <<a href="mailto:chen.l.liang@oracle.com" rel="noreferrer noreferrer noreferrer" target="_blank">chen.l.liang@oracle.com</a>><br>
<b>Cc:</b> <a href="mailto:build-dev@openjdk.org" rel="noreferrer noreferrer noreferrer" target="_blank">
build-dev@openjdk.org</a> <<a href="mailto:build-dev@openjdk.org" rel="noreferrer noreferrer noreferrer" target="_blank">build-dev@openjdk.org</a>><br>
<b>Subject:</b> [External] : Re: building the JDK on Windows using Cygwin</font>
<div> </div>
</div>
<div>
<div dir="ltr">
<div>Here is the screenshot of my Installer - same version of VS as yours.</div>
<div><br>
</div>
<img alt="image.png" style="margin-right:25px" data-outlook-trace="F:1|T:1" src="cid:ii_19088d6fd16cb971f162"><br>
</div>
<br>
<div>
<div dir="ltr">On Fri, Jul 5, 2024 at 3:40 PM Chen Liang <<a href="mailto:chen.l.liang@oracle.com" rel="noreferrer noreferrer noreferrer" target="_blank">chen.l.liang@oracle.com</a>> wrote:<br>
</div>
<blockquote style="margin:0px 0px 0px 0.8ex; border-left:1px solid rgb(204,204,204); padding-left:1ex">
<div>
<div dir="ltr">
<div style="font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
To solve this, I have uninstalled VS, reinstalled VS community 2022 17.10.3, selected "Desktop development with C++", which looks like in the attached screenshot.<br>
<br>
After a fresh reinstallation like this, my "bash configure" then succeeds; it failed to find vs before the installation. Can you try following the steps I take, or at least compare your installation details selection to mine?<br>
  <span><img size="93728" style="max-width:1595px" data-outlook-trace="F:1|T:1" src="cid:ii_19088d6fd16cb971f161"></span></div>
<div id="x_m_5927577862588346370m_6521850098904044360m_967130830802770331m_-410058270540465309m_6608477006008376436m_-162208530744677504m_-3979073779044866987m_727566744719272939m_-8954475695271815532m_-4387796052029455884m_1989767568152604203x_m_-3637904167278356990x_m_782119444011023537x_m_5230753695597996329appendonsend">
</div>
<hr style="display:inline-block; width:98%">
<div id="x_m_5927577862588346370m_6521850098904044360m_967130830802770331m_-410058270540465309m_6608477006008376436m_-162208530744677504m_-3979073779044866987m_727566744719272939m_-8954475695271815532m_-4387796052029455884m_1989767568152604203x_m_-3637904167278356990x_m_782119444011023537x_m_5230753695597996329divRplyFwdMsg" dir="ltr">
<font face="Calibri, sans-serif" color="#000000" style="font-size:11pt"><b>From:</b> build-dev <<a href="mailto:build-dev-retn@openjdk.org" rel="noreferrer noreferrer noreferrer" target="_blank">build-dev-retn@openjdk.org</a>> on behalf of Anil <<a href="mailto:1dropaflame@gmail.com" rel="noreferrer noreferrer noreferrer" target="_blank">1dropaflame@gmail.com</a>><br>
<b>Sent:</b> Friday, July 5, 2024 2:57 PM<br>
<b>To:</b> Chen Liang <<a href="mailto:liangchenblue@gmail.com" rel="noreferrer noreferrer noreferrer" target="_blank">liangchenblue@gmail.com</a>><br>
<b>Cc:</b> <a href="mailto:build-dev@openjdk.org" rel="noreferrer noreferrer noreferrer" target="_blank">
build-dev@openjdk.org</a> <<a href="mailto:build-dev@openjdk.org" rel="noreferrer noreferrer noreferrer" target="_blank">build-dev@openjdk.org</a>><br>
<b>Subject:</b> Re: building the JDK on Windows using Cygwin</font>
<div> </div>
</div>
<div>
<div dir="ltr">
<div>[Chen] "try uncheck and recheck the box"</div>
<div><br>
</div>
How will that help? 
<div>Following your suggestion, I ran the Installer, then I unchecked the "Desktop Components for C++" box and it says -6.81Gb</div>
<div>That shows it was installed.</div>
<div>Now I check the box again, and it says 0 Gb.</div>
<div>Now the Close button is enabled.</div>
<div>So No action is taken.</div>
<div><br>
</div>
</div>
<br>
<div>
<div dir="ltr">On Fri, Jul 5, 2024 at 2:03 PM Chen Liang <<a href="mailto:liangchenblue@gmail.com" rel="noreferrer noreferrer noreferrer" target="_blank">liangchenblue@gmail.com</a>> wrote:<br>
</div>
<blockquote style="margin:0px 0px 0px 0.8ex; border-left:1px solid rgb(204,204,204); padding-left:1ex">
<p dir="ltr">try uncheck and recheck the box. some optional components are required for jdk, and uncheck and recheck will select those components if they aren't already selected.</p>
<br>
<div>
<div dir="ltr">On Fri, Jul 5, 2024, 12:17 PM Anil <<a href="mailto:1dropaflame@gmail.com" rel="noreferrer noreferrer noreferrer" target="_blank">1dropaflame@gmail.com</a>> wrote:<br>
</div>
<blockquote style="margin:0px 0px 0px 0.8ex; border-left:1px solid rgb(204,204,204); padding-left:1ex">
<div dir="ltr">When I installed VS, I ensured that Desktop Development with C++ was checked.
<div>I ran the installer again, and it shows as checked and since the "Modify" button is not enabled, but "Close" is enabled, it means that it is already installed.</div>
<div>It is the only box checked.<br>
<div><br>
</div>
</div>
</div>
<br>
<div>
<div dir="ltr">On Fri, Jul 5, 2024 at 11:50 AM Chen Liang <<a href="mailto:liangchenblue@gmail.com" rel="noreferrer noreferrer noreferrer noreferrer" target="_blank">liangchenblue@gmail.com</a>> wrote:<br>
</div>
<blockquote style="margin:0px 0px 0px 0.8ex; border-left:1px solid rgb(204,204,204); padding-left:1ex">
<p dir="ltr">Hi Anil, I had encountered the same problem before. Can you try install VS's desktop development with c++ with its default selection? Last time I unchecked some boxes and failed like you did. I don't think other big components are required for
 jdk.</p>
<br>
<div>
<div dir="ltr">On Fri, Jul 5, 2024, 11:46 AM Anil <<a href="mailto:1dropaflame@gmail.com" rel="noreferrer noreferrer noreferrer noreferrer" target="_blank">1dropaflame@gmail.com</a>> wrote:<br>
</div>
<blockquote style="margin:0px 0px 0px 0.8ex; border-left:1px solid rgb(204,204,204); padding-left:1ex">
<div dir="ltr">
<div dir="ltr">Over the past few days, I have tried a lot of things.<br>
I reinstalled Cygwin. I used Git for Windows instead of Cygwin Git.<br>
I uninstalled and reinstalled Visual Studio and in different locations, but it didn't fix it.<br>
I added my user name to the Administrator Group account because one post said that is why I get access denied error but it still failed.<br>
I set it back to being an ordinary user and now shortnames worked<br>
I think the solution was simply to sign out of the Windows account so that processes accessing PROGRA~1 would be stopped.<br>
:) I am glad to be over that hurdle but now I see:<br>
<br>
$ bash configure --enable-debug --with-toolchain-path=/cygdrive/c/PROGRA~1/MICROS~3/2022/Community/VC/Tools/MSVC/14.40.33807/bin/Hostx64/x64<br>
configure: Using default toolchain microsoft (Microsoft Visual Studio)<br>
configure: Found Visual Studio installation at /cygdrive/c/progra~1/micros~3/2022/Community using well-known name<br>
configure: Found Microsoft Visual Studio 2022<br>
configure: Trying to extract Visual Studio environment variables for x86_64<br>
configure: using /cygdrive/c/progra~1/micros~3/2022/Community/vc/auxiliary/build/vcvars64.bat<br>
configure: Setting extracted environment variables for x86_64<br>
fixpath: warning: Path '/cygdrive/c/minikube' does not exist<br>
fixpath: failure: Path '/cygdrive/c/progra~2/windows kits/10/windows performance toolkit' contains space<br>
fixpath: failure: Path '/cygdrive/c/progra~1/mysql/mysql shell 8.0/bin' contains space<br>
fixpath: failure: Path '/cygdrive/c/users/anil/appdata/local/programs/microsoft vs code/bin' contains space<br>
fixpath: failure: Path '/cygdrive/c/progra~1/jetbrains/intellij idea community edition 2022.2.3/bin' contains space<br>
fixpath: failure: Path '/cygdrive/c/progra~1/micros~3/2022/community/common7/ide/commonextensions/microsoft/teamfoundation/team explorer' contains space<br>
fixpath: failure: Path '/cygdrive/c/progra~1/micros~3/2022/community/team tools/diagnosticshub/collector' contains space<br>
fixpath: failure: Path '/cygdrive/c/progra~2/windows kits/10/bin/10.0.22621.0/x64' contains space<br>
fixpath: failure: Path '/cygdrive/c/progra~2/windows kits/10/bin/x64' contains space<br>
fixpath: warning: Path '/cygdrive/c/minikube' does not exist<br>
fixpath: failure: Path '/cygdrive/c/progra~2/windows kits/10/windows performance toolkit' contains space<br>
fixpath: failure: Path '/cygdrive/c/progra~1/mysql/mysql shell 8.0/bin' contains space<br>
fixpath: failure: Path '/cygdrive/c/users/anil/appdata/local/programs/microsoft vs code/bin' contains space<br>
fixpath: failure: Path '/cygdrive/c/progra~1/jetbrains/intellij idea community edition 2022.2.3/bin' contains space<br>
fixpath: failure: Path '/cygdrive/c/progra~2/windows kits/10/include/10.0.22621.0/ucrt' contains space<br>
fixpath: failure: Path '/cygdrive/c/progra~2/windows kits/10/include/10.0.22621.0/um' contains space<br>
fixpath: failure: Path '/cygdrive/c/progra~2/windows kits/10/include/10.0.22621.0/shared' contains space<br>
fixpath: failure: Path '/cygdrive/c/progra~2/windows kits/10/include/10.0.22621.0/winrt' contains space<br>
fixpath: failure: Path '/cygdrive/c/progra~2/windows kits/10/include/10.0.22621.0/cppwinrt' contains space<br>
fixpath: failure: Path '/cygdrive/c/progra~2/windows kits/10/lib/10.0.22621.0/ucrt/x64' contains space<br>
fixpath: failure: Path '/cygdrive/c/progra~2/windows kits/10/lib/10.0.22621.0/um/x64' contains space<br>
fixpath: failure: Path '/cygdrive/c/progra~2/windows kits/10/' contains space<br>
fixpath: failure: Path '/cygdrive/c/progra~2/windows kits/10/' contains space<br>
checking that Visual Studio variables have been correctly extracted... ok<br>
checking for cl... $FIXPATH /cygdrive/c/progra~1/micros~3/2022/community/vc/tools/msvc/14.40.33807/bin/hostx64/x64/cl.exe<br>
checking resolved symbolic links for CC... no symlink<br>
configure: Using microsoft C compiler version 19.40.33811 [Microsoft (R) C/C++ Optimizing Compiler Version 19.40.33811 for x64]<br>
checking whether the C compiler works... no<br>
configure: error: in '/cygdrive/c/users/anil/OpenJDK/jdk':<br>
configure: error: C compiler cannot create executables<br>
See 'config.log' for more details<br>
configure exiting with result code 77<br>
</div>
<div dir="ltr"><br>
</div>
<div>I have attached my config.log</div>
<div>appreciate any help.</div>
<div>thanks,</div>
<div>Anil</div>
<div><br>
</div>
<div dir="ltr"><br>
</div>
<div>
<div dir="ltr">On Wed, Jul 3, 2024 at 9:13 AM Anil <<a href="mailto:1dropaflame@gmail.com" rel="noreferrer noreferrer noreferrer noreferrer noreferrer" target="_blank">1dropaflame@gmail.com</a>> wrote:<br>
</div>
<blockquote style="margin:0px 0px 0px 0.8ex; border-left:1px solid rgb(204,204,204); padding-left:1ex">
<div dir="ltr">Thank you.
<div>Yes, the vcvars file is present in that folder.</div>
<div><br>
</div>
<div>$ cygpath -d "C:\Program Files\Microsoft Visual<br>
Studio\2022\Community\VC\Auxiliary\Build"<br>
cygpath: cannot create short name of C:\Program Files\Microsoft VisualStudio\2022\Community\VC\Auxiliary\Build<br>
<br>
</div>
<div><br>
</div>
</div>
<br>
<div>
<div dir="ltr">On Wed, Jul 3, 2024 at 2:57 AM Daniel Jeliński <<a href="mailto:djelinski1@gmail.com" rel="noreferrer noreferrer noreferrer noreferrer noreferrer" target="_blank">djelinski1@gmail.com</a>> wrote:<br>
</div>
<blockquote style="margin:0px 0px 0px 0.8ex; border-left:1px solid rgb(204,204,204); padding-left:1ex">
Hi Anil,<br>
Can you check what the following command prints on your machine?<br>
$ cygpath -d "C:\Program Files\Microsoft Visual<br>
Studio\2022\Community\VC\Auxiliary\Build"<br>
<br>
I assume you have this directory on your machine, and it contains a<br>
file named "vcvars64.bat"<br>
<br>
The above command should print a path without spaces. If the command<br>
fails or there are any spaces in the output, that's where you should<br>
focus your search.<br>
<br>
The other thing to check is if you have a case-sensitive file system.<br>
Configure looks for file named (note lowercase in the last 3<br>
directories):<br>
"C:\Program Files\Microsoft Visual<br>
Studio\2022\Community\vc\auxiliary\build\vcvars64.bat"<br>
<br>
and from the logs you provided it looks like that file can't be found.<br>
<br>
By the way, the above paths were used when I started configure with:<br>
$ bash configure --with-tools-dir="C:\Program Files\Microsoft Visual<br>
Studio\2022\Community\VC\Auxiliary\Build"<br>
<br>
..and on my machine that configure command succeeded.<br>
Regards,<br>
Daniel<br>
<br>
wt., 2 lip 2024 o 23:16 Anil <<a href="mailto:1dropaflame@gmail.com" rel="noreferrer noreferrer noreferrer noreferrer noreferrer" target="_blank">1dropaflame@gmail.com</a>> napisał(a):<br>
><br>
> trimming earlier message as it was over 500Kb with attachment. Including configure.log<br>
><br>
><br>
> On Tue, Jul 2, 2024 at 2:00 PM Anil <<a href="mailto:1dropaflame@gmail.com" rel="noreferrer noreferrer noreferrer noreferrer noreferrer" target="_blank">1dropaflame@gmail.com</a>> wrote:<br>
>><br>
>> Thank you.<br>
>> I have attached both config.log and configure.log to this email.<br>
>> Anil<br>
>>><br>
>>><br>
</blockquote>
</div>
</blockquote>
</div>
</div>
</blockquote>
</div>
</blockquote>
</div>
</blockquote>
</div>
</blockquote>
</div>
</div>
</div>
</div>
</blockquote>
</div>
</div>
</div>
</div>
</blockquote>
</div>
</div>
</div>
</blockquote>
</div>
</div>
</div>
</div>
</blockquote>
</div>
</blockquote>
</div>
</blockquote>
</div>
</blockquote>
</div>
</blockquote>
</div>
</blockquote>
</div>
</div>
</body>
</html>