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

bazel-0.24.1-windows-x86_64 can't find vs 2019 build tools #8031

Closed
raulftang opened this issue Apr 14, 2019 · 2 comments
Closed

bazel-0.24.1-windows-x86_64 can't find vs 2019 build tools #8031

raulftang opened this issue Apr 14, 2019 · 2 comments

Comments

@raulftang
Copy link

Description of the problem / feature request:

I downloaded bazel-0.24.1-windows-x86_64 and build example as https://docs.bazel.build/versions/master/windows.html, but it gave following error

E:\Workspace\bazel>bazel build //examples/cpp:hello-world
INFO: Analysed target //examples/cpp:hello-world (0 packages loaded, 0 targets configured).
INFO: Found 1 target...
ERROR: E:/workspace/bazel/examples/cpp/BUILD:3:1: C++ compilation of rule '//examples/cpp:hello-lib' failed (Exit 1)

The target you are compiling requires Visual C++ build tools.
Bazel couldn't find a valid Visual C++ build tools installation on your machine.

Visual C++ build tools seems to be installed at C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC
But Bazel can't find the following tools:
    VCVARSALL.BAT, cl.exe, link.exe, lib.exe, ml64.exe

Please check your installation following https://docs.bazel.build/versions/master/windows.html#using

Target //examples/cpp:hello-world failed to build
Use --verbose_failures to see the command lines of failed build steps.
INFO: Elapsed time: 0.218s, Critical Path: 0.06s
INFO: 0 processes.
FAILED: Build did NOT complete successfully

My VS 2019 installition do have VCVARSALL.BAT in
C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Auxiliary\Build

And cl.exe, link.exe, lib.exe, ml64.exe in
C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.20.27508\bin\Hostx64\x64

Feature requests: what underlying problem are you trying to solve with this feature?

No error.

What operating system are you running Bazel on?

Windows 10 64 bit.

What's the output of bazel info release?

release 0.24.1.

Have you found anything relevant by searching the web?

Nothing.

Places to look:

@jin
Copy link
Member

jin commented Apr 14, 2019

Duplicate of #8028

@jin jin marked this as a duplicate of #8028 Apr 14, 2019
@jin jin closed this as completed Apr 14, 2019
@zuoyuwei
Copy link

download and install 2019 build tools:https://blog.csdn.net/kl1411/article/details/128742533

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

3 participants