msvc-wine icon indicating copy to clipboard operation
msvc-wine copied to clipboard

x86 exe in x64 folder

Open joshcangit opened this issue 5 years ago • 3 comments

Even with docker installed, the docker build method didn't work for me so I use the method with vsdownload.py and install.sh.

I noticed, the .exe files copied to x64 are the same as x86 in the bin folder.

Output from cl.exe

> cd /opt/msvc/bin/x64
> ./cl
Microsoft (R) C/C++ Optimizing Compiler Version 19.27.29112 for x86
Copyright (C) Microsoft Corporation.  All rights reserved.

usage: cl [ option... ] filename... [ /link linkoption... ]

That cl.exe should have been copied from Hostx64/x64.

I hope this mistake didn't affect the other folders. I've check the arm and arm64 folders and they had the correct cl.exe.

joshcangit avatar Oct 14 '20 10:10 joshcangit

Even with docker installed, the docker build method didn't work for me

That's odd - can you share an error message about what failed there?

so I use the method with vsdownload.py and install.sh.

I noticed, the .exe files copied to x64 are the same as x86 in the bin folder.

Output from cl.exe

> cd /opt/msvc/bin/x64
> ./cl
Microsoft (R) C/C++ Optimizing Compiler Version 19.27.29112 for x86
Copyright (C) Microsoft Corporation.  All rights reserved.

usage: cl [ option... ] filename... [ /link linkoption... ]

That cl.exe should have been copied from Hostx64/x64.

What part of the copying has gone wrong here? What does /opt/msvc/bin/x64/msvcenv.sh contain (what ARCH does it declare)?

mstorsjo avatar Oct 14 '20 10:10 mstorsjo

What part of the copying has gone wrong here? What does /opt/msvc/bin/x64/msvcenv.sh contain (what ARCH does it declare)?

Nothing wrong with msvcenv.sh, it is correctly set at ARCH=x64.

joshcangit avatar Oct 14 '20 10:10 joshcangit

What part of the copying has gone wrong here? What does /opt/msvc/bin/x64/msvcenv.sh contain (what ARCH does it declare)?

Nothing wrong with msvcenv.sh, it is correctly set at ARCH=x64.

Ok, so you have vc/tools/msvc/14.27.29110/bin/Hostx64/x64/cl.exe (and the rest of that directory) being equal to vc/tools/msvc/14.27.29110/bin/Hostx64/x86/cl.exe? I can't reproduce that, I just tried...

mstorsjo avatar Oct 14 '20 10:10 mstorsjo