Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

x86 exe in x64 folder #20

Open
joshcangit opened this issue Oct 14, 2020 · 3 comments
Open

x86 exe in x64 folder #20

joshcangit opened this issue Oct 14, 2020 · 3 comments

Comments

@joshcangit
Copy link

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.

@mstorsjo
Copy link
Owner

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)?

@joshcangit
Copy link
Author

joshcangit commented Oct 14, 2020

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.

@mstorsjo
Copy link
Owner

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...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants