<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="gmail_quote"><div dir="ltr" class="gmail_attr">On Sat, Jul 6, 2024 at 6:42 PM Anil <<a href="mailto:1dropaflame@gmail.com" target="_blank">1dropaflame@gmail.com</a>> wrote:<br></div><blockquote class="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="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="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="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="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="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="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Jul 5, 2024 at 5:33 PM Chen Liang <<a href="mailto:chen.l.liang@oracle.com" target="_blank">chen.l.liang@oracle.com</a>> wrote:<br></div><blockquote class="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="m_727566744719272939m_-8954475695271815532m_-4387796052029455884m_1989767568152604203appendonsend"></div>
<hr style="display:inline-block;width:98%">
<div id="m_727566744719272939m_-8954475695271815532m_-4387796052029455884m_1989767568152604203divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>From:</b> Anil <<a href="mailto:1dropaflame@gmail.com" 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" target="_blank">chen.l.liang@oracle.com</a>><br>
<b>Cc:</b> <a href="mailto:build-dev@openjdk.org" target="_blank">build-dev@openjdk.org</a> <<a href="mailto:build-dev@openjdk.org" 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" 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="m_727566744719272939m_-8954475695271815532m_-4387796052029455884m_1989767568152604203x_m_-3637904167278356990ms-outlook-mobile-signature" dir="auto">Get <a href="https://urldefense.com/v3/__https://aka.ms/AAb9ysg__;!!ACWV5N9M2RV99hQ!KHD1nvS8m4momd5iltdwexMSeaEKRfm5VCzqpURxxVfjSNaFwy1GEAsCecRvlRfTQHEt8fFl7NPu6l8nmZ1COCE$" target="_blank">
Outlook for Android</a></div>
<hr style="display:inline-block;width:98%">
<div id="m_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" 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" target="_blank">chen.l.liang@oracle.com</a>><br>
<b>Cc:</b> <a href="mailto:build-dev@openjdk.org" target="_blank">build-dev@openjdk.org</a> <<a href="mailto:build-dev@openjdk.org" 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" 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="m_727566744719272939m_-8954475695271815532m_-4387796052029455884m_1989767568152604203x_m_-3637904167278356990x_m_782119444011023537appendonsend"></div>
<hr style="display:inline-block;width:98%">
<div id="m_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" 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" target="_blank">chen.l.liang@oracle.com</a>><br>
<b>Cc:</b> <a href="mailto:build-dev@openjdk.org" target="_blank">build-dev@openjdk.org</a> <<a href="mailto:build-dev@openjdk.org" 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;" 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" 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;" src="cid:ii_19088d6fd16cb971f161"></span></div>
<div id="m_727566744719272939m_-8954475695271815532m_-4387796052029455884m_1989767568152604203x_m_-3637904167278356990x_m_782119444011023537x_m_5230753695597996329appendonsend">
</div>
<hr style="display:inline-block;width:98%">
<div id="m_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" target="_blank">build-dev-retn@openjdk.org</a>> on behalf of Anil <<a href="mailto:1dropaflame@gmail.com" 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" target="_blank">liangchenblue@gmail.com</a>><br>
<b>Cc:</b> <a href="mailto:build-dev@openjdk.org" target="_blank">build-dev@openjdk.org</a> <<a href="mailto:build-dev@openjdk.org" 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" 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" 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" 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" 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" 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 VisualStudio\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" 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" 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" 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>