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 build on Windows fails #1

Open
bashtavenko opened this issue May 22, 2024 · 2 comments
Open

Bazel build on Windows fails #1

bashtavenko opened this issue May 22, 2024 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@bashtavenko
Copy link

bazel build //...

Output

PS C:\Users\SB\bazel_or-tools> bazel build //...
INFO: Analyzed 2 targets (108 packages loaded, 3679 targets configured).
ERROR: C:/users/sb/_bazel_sb/txbbv6pc/external/com_google_protobuf/src/google/protobuf/compiler/BUILD.bazel:97:11: Compiling src/google/protobuf/compiler/command_line_interface.cc [for tool] failed: (Exit 2): cl.exe failed: error executing CppCompile command (from target @@com_google_protobuf//src/google/protobuf/compiler:command_line_interface) C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.39.33519\bin\HostX64\x64\cl.exe ... (remaining 1 argument skipped)
external/com_google_protobuf/src/google/protobuf/compiler/command_line_interface.cc(12): fatal error C1083: Cannot open include file: 'google/protobuf/compiler/command_line_interface.h': No such file or directory
Use --verbose_failures to see the command lines of failed build steps.
INFO: Elapsed time: 14.560s, Critical Path: 8.25s

Bazel installation on Windows was per

https://bazel.build/install/windows
https://bazel.build/configure/windows

It has both VS Community Edition and clang

@Mizux Mizux self-assigned this May 23, 2024
@Mizux Mizux added the bug Something isn't working label May 23, 2024
@Mizux
Copy link
Contributor

Mizux commented May 23, 2024

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants