Re: building the JDK on Windows using Cygwin

2024-07-02 Thread erik . joelsson
On 7/1/24 18:55, Anil wrote: Thank you for your reply. I ran the Visual Studio Setup and installed both Build Tools 2019, and also Visual Studio 2022. I enabled the checkboxes in *both* for Desktop Development with C++. I tried it but failed. I opened Administrator window in both Powershell an

Re: building the JDK on Windows using Cygwin

2024-07-02 Thread Daniel Jeliński
Hi, If you want to know a Windows path to the Cygwin directory you're in, you can use the following command: $ cygpath -w `pwd` C:\cygwin64\home\anil If you want to know a Cygwin path without spaces for a Windows directory, you can use the following: $ cygpath `cygpath -d 'C:\Program Files\Micros

Re: building the JDK on Windows using Cygwin

2024-07-02 Thread Anil
How do I find the config.log? The Cygwin folder is not visible from Windows File Explorer. C:\Users\Anil does not show /c/Users/Anil/OpenJDK/ On Tue, Jul 2, 2024 at 10:52 AM Anil <1dropafl...@gmail.com> wrote: > What does this mean? It is not clear enough. > > Do not put the JDK clone in a path

Re: building the JDK on Windows using Cygwin

2024-07-02 Thread Anil
What does this mean? It is not clear enough. Do not put the JDK clone in a path under your Cygwin home directory. This > is especially important if your user name contains spaces and/or mixed > upper and lower case letters. jdk/doc/building.md at master · openjdk/jdk (github.com)

Re: building the JDK on Windows using Cygwin

2024-07-02 Thread Anil
[Chen] "Also for configure/make, never pass paths with spaces, always use short name to avoid space, use /cygdrive/c/..., and never pass backslashes." Using the short name command produced "access denied". How did you use short name for Visual Studio? Update: While searching for the config.log f

Re: building the JDK on Windows using Cygwin

2024-07-02 Thread Daniel Jeliński
Hi Anil, I can confirm that building on Windows 11 + cygwin + VS 2022 Community installed with default settings and in the default location works just fine without any extra command line parameters. The only parameter you need is --with-boot-jdk, and even that can be omitted if you have the right J

Re: building the JDK on Windows using Cygwin

2024-07-02 Thread Chen Liang
Make sure all visual studio and related processes running in that directory are terminated. If you have trouble you might restart windows in safe mode. Also for configure/make, never pass paths with spaces, always use short name to avoid space, use /cygdrive/c/..., and never pass backslashes. That