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.

On Fri, Jul 5, 2024, 11:46 AM Anil <1dropafl...@gmail.com> wrote:

> Over the past few days, I have tried a lot of things.
> I reinstalled Cygwin. I used Git for Windows instead of Cygwin Git.
> I uninstalled and reinstalled Visual Studio and in different locations,
> but it didn't fix it.
> 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.
> I set it back to being an ordinary user and now shortnames worked
> I think the solution was simply to sign out of the Windows account so that
> processes accessing PROGRA~1 would be stopped.
> :) I am glad to be over that hurdle but now I see:
>
> $ bash configure --enable-debug
> --with-toolchain-path=/cygdrive/c/PROGRA~1/MICROS~3/2022/Community/VC/Tools/MSVC/14.40.33807/bin/Hostx64/x64
> configure: Using default toolchain microsoft (Microsoft Visual Studio)
> configure: Found Visual Studio installation at
> /cygdrive/c/progra~1/micros~3/2022/Community using well-known name
> configure: Found Microsoft Visual Studio 2022
> configure: Trying to extract Visual Studio environment variables for x86_64
> configure: using
> /cygdrive/c/progra~1/micros~3/2022/Community/vc/auxiliary/build/vcvars64.bat
> configure: Setting extracted environment variables for x86_64
> fixpath: warning: Path '/cygdrive/c/minikube' does not exist
> fixpath: failure: Path '/cygdrive/c/progra~2/windows kits/10/windows
> performance toolkit' contains space
> fixpath: failure: Path '/cygdrive/c/progra~1/mysql/mysql shell 8.0/bin'
> contains space
> fixpath: failure: Path
> '/cygdrive/c/users/anil/appdata/local/programs/microsoft vs code/bin'
> contains space
> fixpath: failure: Path '/cygdrive/c/progra~1/jetbrains/intellij idea
> community edition 2022.2.3/bin' contains space
> fixpath: failure: Path
> '/cygdrive/c/progra~1/micros~3/2022/community/common7/ide/commonextensions/microsoft/teamfoundation/team
> explorer' contains space
> fixpath: failure: Path '/cygdrive/c/progra~1/micros~3/2022/community/team
> tools/diagnosticshub/collector' contains space
> fixpath: failure: Path '/cygdrive/c/progra~2/windows
> kits/10/bin/10.0.22621.0/x64' contains space
> fixpath: failure: Path '/cygdrive/c/progra~2/windows kits/10/bin/x64'
> contains space
> fixpath: warning: Path '/cygdrive/c/minikube' does not exist
> fixpath: failure: Path '/cygdrive/c/progra~2/windows kits/10/windows
> performance toolkit' contains space
> fixpath: failure: Path '/cygdrive/c/progra~1/mysql/mysql shell 8.0/bin'
> contains space
> fixpath: failure: Path
> '/cygdrive/c/users/anil/appdata/local/programs/microsoft vs code/bin'
> contains space
> fixpath: failure: Path '/cygdrive/c/progra~1/jetbrains/intellij idea
> community edition 2022.2.3/bin' contains space
> fixpath: failure: Path '/cygdrive/c/progra~2/windows
> kits/10/include/10.0.22621.0/ucrt' contains space
> fixpath: failure: Path '/cygdrive/c/progra~2/windows
> kits/10/include/10.0.22621.0/um' contains space
> fixpath: failure: Path '/cygdrive/c/progra~2/windows
> kits/10/include/10.0.22621.0/shared' contains space
> fixpath: failure: Path '/cygdrive/c/progra~2/windows
> kits/10/include/10.0.22621.0/winrt' contains space
> fixpath: failure: Path '/cygdrive/c/progra~2/windows
> kits/10/include/10.0.22621.0/cppwinrt' contains space
> fixpath: failure: Path '/cygdrive/c/progra~2/windows
> kits/10/lib/10.0.22621.0/ucrt/x64' contains space
> fixpath: failure: Path '/cygdrive/c/progra~2/windows
> kits/10/lib/10.0.22621.0/um/x64' contains space
> fixpath: failure: Path '/cygdrive/c/progra~2/windows kits/10/' contains
> space
> fixpath: failure: Path '/cygdrive/c/progra~2/windows kits/10/' contains
> space
> checking that Visual Studio variables have been correctly extracted... ok
> checking for cl... $FIXPATH
> /cygdrive/c/progra~1/micros~3/2022/community/vc/tools/msvc/14.40.33807/bin/hostx64/x64/cl.exe
> checking resolved symbolic links for CC... no symlink
> configure: Using microsoft C compiler version 19.40.33811 [Microsoft (R)
> C/C++ Optimizing Compiler Version 19.40.33811 for x64]
> checking whether the C compiler works... no
> configure: error: in '/cygdrive/c/users/anil/OpenJDK/jdk':
> configure: error: C compiler cannot create executables
> See 'config.log' for more details
> configure exiting with result code 77
>
> I have attached my config.log
> appreciate any help.
> thanks,
> Anil
>
>
> On Wed, Jul 3, 2024 at 9:13 AM Anil <1dropafl...@gmail.com> wrote:
>
>> Thank you.
>> Yes, the vcvars file is present in that folder.
>>
>> $ cygpath -d "C:\Program Files\Microsoft Visual
>> Studio\2022\Community\VC\Auxiliary\Build"
>> cygpath: cannot create short name of C:\Program Files\Microsoft
>> VisualStudio\2022\Community\VC\Auxiliary\Build
>>
>>
>>
>> On Wed, Jul 3, 2024 at 2:57 AM Daniel Jeliński <djelins...@gmail.com>
>> wrote:
>>
>>> Hi Anil,
>>> Can you check what the following command prints on your machine?
>>> $ cygpath -d "C:\Program Files\Microsoft Visual
>>> Studio\2022\Community\VC\Auxiliary\Build"
>>>
>>> I assume you have this directory on your machine, and it contains a
>>> file named "vcvars64.bat"
>>>
>>> The above command should print a path without spaces. If the command
>>> fails or there are any spaces in the output, that's where you should
>>> focus your search.
>>>
>>> The other thing to check is if you have a case-sensitive file system.
>>> Configure looks for file named (note lowercase in the last 3
>>> directories):
>>> "C:\Program Files\Microsoft Visual
>>> Studio\2022\Community\vc\auxiliary\build\vcvars64.bat"
>>>
>>> and from the logs you provided it looks like that file can't be found.
>>>
>>> By the way, the above paths were used when I started configure with:
>>> $ bash configure --with-tools-dir="C:\Program Files\Microsoft Visual
>>> Studio\2022\Community\VC\Auxiliary\Build"
>>>
>>> ..and on my machine that configure command succeeded.
>>> Regards,
>>> Daniel
>>>
>>> wt., 2 lip 2024 o 23:16 Anil <1dropafl...@gmail.com> napisał(a):
>>> >
>>> > trimming earlier message as it was over 500Kb with attachment.
>>> Including configure.log
>>> >
>>> >
>>> > On Tue, Jul 2, 2024 at 2:00 PM Anil <1dropafl...@gmail.com> wrote:
>>> >>
>>> >> Thank you.
>>> >> I have attached both config.log and configure.log to this email.
>>> >> Anil
>>> >>>
>>> >>>
>>>
>>

Reply via email to