grpc: bazel build fails on Windows ("undeclared inclusion(s) in rule '//:google_api_upbdefs':`")

What version of gRPC and what language are you using?

HEAD: This hash: https://github.com/grpc/grpc/commit/17a7df418a2daca6864f5ff7cc97f775e896a157

What operating system (Linux, Windows,…) and version?

Windows Server 2019 Datacenter

What runtime / compiler are you using (e.g. python version or version of gcc)

I’m building w/ bazel 3.5.0.

What did you do?

$ git clone https://github.com/grpc/grpc.git
$ cd grpc
$ bazel build //:grpc++

Note: The bazel build command above will likely fail due to https://github.com/grpc/grpc/issues/24628. You will have to delete the python related things from the WORKSPACE file as described in https://github.com/grpc/grpc/issues/24628#issue-734205544. After you do that, the build should proceed.

What did you expect to see?

Successful build.

What did you see instead?

PS C:\Users\jgm\grpc> bazel build //:grpc++
DEBUG: C:/users/jgm/_bazel_jgm/exds5hid/external/bazel_toolchains/rules/rbe_repo/version_check.bzl:68:14:
Current running Bazel is ahead of bazel-toolchains repo. Please update your pin to bazel-toolchains repo in your WORKSPACE file.
DEBUG: C:/users/jgm/_bazel_jgm/exds5hid/external/bazel_toolchains/rules/rbe_repo/checked_in.bzl:125:14: rbe_default not using checked in configs; Bazel version 3.5.0 was picked/selected but no checked in config was found in map {"0.20.0": ["8.0.0"], "0.21.0": ["8.0.0"], "0.22.0": ["8.0.0", "9.0.0"], "0.23.0": ["8.0.0", "9.0.0"], "0.23.1": ["8.0.0", "9.0.0"], "0.23.2": ["9.0.0"], "0.24.0": ["9.0.0"], "0.24.1": ["9.0.0"], "0.25.0": ["9.0.0"], "0.25.1": ["9.0.0"], "0.25.2": ["9.0.0"], "0.26.0": ["9.0.0"], "0.26.1": ["9.0.0"], "0.27.0": ["9.0.0"], "0.27.1": ["9.0.0"], "0.28.0": ["9.0.0"], "0.28.1": ["9.0.0"], "0.29.0": ["9.0.0"], "0.29.1": ["9.0.0", "10.0.0"], "1.0.0": ["9.0.0", "10.0.0"]}
DEBUG: C:/users/jgm/_bazel_jgm/exds5hid/external/bazel_toolchains/rules/rbe_repo/version_check.bzl:68:14:
Current running Bazel is ahead of bazel-toolchains repo. Please update your pin to bazel-toolchains repo in your WORKSPACE file.
DEBUG: C:/users/jgm/_bazel_jgm/exds5hid/external/bazel_toolchains/rules/rbe_repo/checked_in.bzl:125:14: rbe_msan not using checked in configs; Bazel version 3.5.0 was picked/selected but no checked in config was found in map {"0.20.0": ["8.0.0"], "0.21.0": ["8.0.0"], "0.22.0": ["8.0.0", "9.0.0"], "0.23.0": ["8.0.0", "9.0.0"], "0.23.1": ["8.0.0", "9.0.0"], "0.23.2": ["9.0.0"], "0.24.0": ["9.0.0"], "0.24.1": ["9.0.0"], "0.25.0": ["9.0.0"], "0.25.1": ["9.0.0"], "0.25.2": ["9.0.0"], "0.26.0": ["9.0.0"], "0.26.1": ["9.0.0"], "0.27.0": ["9.0.0"], "0.27.1": ["9.0.0"], "0.28.0": ["9.0.0"], "0.28.1": ["9.0.0"], "0.29.0": ["9.0.0"], "0.29.1": ["9.0.0", "10.0.0"], "1.0.0": ["9.0.0", "10.0.0"]}
INFO: Analyzed target //:grpc++ (0 packages loaded, 0 targets configured).
INFO: Found 1 target...
INFO: From Compiling src/core/lib/security/credentials/external/external_account_credentials.cc:
C:\users\jgm\_bazel_jgm\exds5hid\execroot\com_github_grpc_grpc\src/core/tsi/ssl_transport_security.h(28): warning C4068: unknown pragma
C:\users\jgm\_bazel_jgm\exds5hid\execroot\com_github_grpc_grpc\src/core/tsi/ssl_transport_security.h(29): warning C4068: unknown pragma
C:\users\jgm\_bazel_jgm\exds5hid\execroot\com_github_grpc_grpc\src/core/tsi/ssl_transport_security.h(33): warning C4068: unknown pragma
INFO: From Compiling src/core/ext/xds/certificate_provider_store.cc:
C:\users\jgm\_bazel_jgm\exds5hid\execroot\com_github_grpc_grpc\src/core/tsi/ssl_transport_security.h(28): warning C4068: unknown pragma
C:\users\jgm\_bazel_jgm\exds5hid\execroot\com_github_grpc_grpc\src/core/tsi/ssl_transport_security.h(29): warning C4068: unknown pragma
C:\users\jgm\_bazel_jgm\exds5hid\execroot\com_github_grpc_grpc\src/core/tsi/ssl_transport_security.h(33): warning C4068: unknown pragma
INFO: From Compiling src/core/ext/transport/chttp2/server/secure/server_secure_chttp2.cc:
C:\users\jgm\_bazel_jgm\exds5hid\execroot\com_github_grpc_grpc\src/core/tsi/ssl_transport_security.h(28): warning C4068: unknown pragma
C:\users\jgm\_bazel_jgm\exds5hid\execroot\com_github_grpc_grpc\src/core/tsi/ssl_transport_security.h(29): warning C4068: unknown pragma
C:\users\jgm\_bazel_jgm\exds5hid\execroot\com_github_grpc_grpc\src/core/tsi/ssl_transport_security.h(33): warning C4068: unknown pragma
INFO: From Compiling src/core/ext/transport/chttp2/client/secure/secure_channel_create.cc:
C:\users\jgm\_bazel_jgm\exds5hid\execroot\com_github_grpc_grpc\src/core/tsi/ssl_transport_security.h(28): warning C4068: unknown pragma
C:\users\jgm\_bazel_jgm\exds5hid\execroot\com_github_grpc_grpc\src/core/tsi/ssl_transport_security.h(29): warning C4068: unknown pragma
C:\users\jgm\_bazel_jgm\exds5hid\execroot\com_github_grpc_grpc\src/core/tsi/ssl_transport_security.h(33): warning C4068: unknown pragma
INFO: From Compiling src/core/ext/xds/xds_bootstrap.cc:
C:\users\jgm\_bazel_jgm\exds5hid\execroot\com_github_grpc_grpc\src/core/tsi/ssl_transport_security.h(28): warning C4068: unknown pragma
C:\users\jgm\_bazel_jgm\exds5hid\execroot\com_github_grpc_grpc\src/core/tsi/ssl_transport_security.h(29): warning C4068: unknown pragma
C:\users\jgm\_bazel_jgm\exds5hid\execroot\com_github_grpc_grpc\src/core/tsi/ssl_transport_security.h(33): warning C4068: unknown pragma
INFO: From Compiling src/core/ext/xds/xds_client_stats.cc:
C:\users\jgm\_bazel_jgm\exds5hid\execroot\com_github_grpc_grpc\src/core/tsi/ssl_transport_security.h(28): warning C4068: unknown pragma
C:\users\jgm\_bazel_jgm\exds5hid\execroot\com_github_grpc_grpc\src/core/tsi/ssl_transport_security.h(29): warning C4068: unknown pragma
C:\users\jgm\_bazel_jgm\exds5hid\execroot\com_github_grpc_grpc\src/core/tsi/ssl_transport_security.h(33): warning C4068: unknown pragma
INFO: From Compiling src/core/ext/filters/client_channel/lb_policy/xds/cds.cc:
C:\users\jgm\_bazel_jgm\exds5hid\execroot\com_github_grpc_grpc\src/core/tsi/ssl_transport_security.h(28): warning C4068: unknown pragma
C:\users\jgm\_bazel_jgm\exds5hid\execroot\com_github_grpc_grpc\src/core/tsi/ssl_transport_security.h(29): warning C4068: unknown pragma
C:\users\jgm\_bazel_jgm\exds5hid\execroot\com_github_grpc_grpc\src/core/tsi/ssl_transport_security.h(33): warning C4068: unknown pragma
INFO: From Compiling src/core/ext/xds/xds_api.cc:
C:\users\jgm\_bazel_jgm\exds5hid\execroot\com_github_grpc_grpc\src/core/tsi/ssl_transport_security.h(28): warning C4068: unknown pragma
C:\users\jgm\_bazel_jgm\exds5hid\execroot\com_github_grpc_grpc\src/core/tsi/ssl_transport_security.h(29): warning C4068: unknown pragma
C:\users\jgm\_bazel_jgm\exds5hid\execroot\com_github_grpc_grpc\src/core/tsi/ssl_transport_security.h(33): warning C4068: unknown pragma
INFO: From Compiling src/core/ext/filters/client_channel/lb_policy/grpclb/grpclb_channel_secure.cc:
C:\users\jgm\_bazel_jgm\exds5hid\execroot\com_github_grpc_grpc\src/core/tsi/ssl_transport_security.h(28): warning C4068: unknown pragma
C:\users\jgm\_bazel_jgm\exds5hid\execroot\com_github_grpc_grpc\src/core/tsi/ssl_transport_security.h(29): warning C4068: unknown pragma
C:\users\jgm\_bazel_jgm\exds5hid\execroot\com_github_grpc_grpc\src/core/tsi/ssl_transport_security.h(33): warning C4068: unknown pragma
INFO: From Compiling src/core/ext/xds/xds_client.cc:
C:\users\jgm\_bazel_jgm\exds5hid\execroot\com_github_grpc_grpc\src/core/tsi/ssl_transport_security.h(28): warning C4068: unknown pragma
C:\users\jgm\_bazel_jgm\exds5hid\execroot\com_github_grpc_grpc\src/core/tsi/ssl_transport_security.h(29): warning C4068: unknown pragma
C:\users\jgm\_bazel_jgm\exds5hid\execroot\com_github_grpc_grpc\src/core/tsi/ssl_transport_security.h(33): warning C4068: unknown pragma
INFO: From Compiling third_party/address_sorting/address_sorting_posix.c:
cl : Command line warning D9002 : ignoring unknown option '-std=c99'
INFO: From Compiling third_party/address_sorting/address_sorting.c:
cl : Command line warning D9002 : ignoring unknown option '-std=c99'
INFO: From Compiling external/upb/upb/encode.c:
C:\users\jgm\_bazel_jgm\exds5hid\execroot\com_github_grpc_grpc\external\upb\upb\encode.c(212) : warning C4715: 'upb_encode_scalarfield': not all control paths return a value
INFO: From Compiling external/upb/upb/decode.c:
C:\users\jgm\_bazel_jgm\exds5hid\execroot\com_github_grpc_grpc\external\upb\upb\decode.c(407) : warning C4715: 'decode_toarray': not all control paths return a value
INFO: From Compiling src/core/ext/transport/chttp2/transport/chttp2_transport.cc:
src/core/ext/transport/chttp2/transport/chttp2_transport.cc(752): warning C4312: 'reinterpret_cast': conversion from 'uint32_t' to 'void *' of greater size
INFO: From Compiling src/core/lib/security/credentials/jwt/jwt_verifier.cc:
src/core/lib/security/credentials/jwt/jwt_verifier.cc(31): warning C4068: unknown pragma
src/core/lib/security/credentials/jwt/jwt_verifier.cc(32): warning C4068: unknown pragma
src/core/lib/security/credentials/jwt/jwt_verifier.cc(38): warning C4068: unknown pragma
INFO: From Compiling src/core/lib/security/credentials/external/url_external_account_credentials.cc:
C:\users\jgm\_bazel_jgm\exds5hid\execroot\com_github_grpc_grpc\src/core/tsi/ssl_transport_security.h(28): warning C4068: unknown pragma
C:\users\jgm\_bazel_jgm\exds5hid\execroot\com_github_grpc_grpc\src/core/tsi/ssl_transport_security.h(29): warning C4068: unknown pragma
C:\users\jgm\_bazel_jgm\exds5hid\execroot\com_github_grpc_grpc\src/core/tsi/ssl_transport_security.h(33): warning C4068: unknown pragma
INFO: From Compiling src/core/lib/security/credentials/alts/alts_credentials.cc:
C:\users\jgm\_bazel_jgm\exds5hid\execroot\com_github_grpc_grpc\src/core/tsi/ssl_transport_security.h(28): warning C4068: unknown pragma
C:\users\jgm\_bazel_jgm\exds5hid\execroot\com_github_grpc_grpc\src/core/tsi/ssl_transport_security.h(29): warning C4068: unknown pragma
C:\users\jgm\_bazel_jgm\exds5hid\execroot\com_github_grpc_grpc\src/core/tsi/ssl_transport_security.h(33): warning C4068: unknown pragma
INFO: From Compiling src/core/lib/transport/status_metadata.cc:
src/core/lib/transport/status_metadata.cc(53): warning C4312: 'reinterpret_cast': conversion from 'uint32_t' to 'void *' of greater size
ERROR: C:/users/jgm/grpc/BUILD:3214:16: undeclared inclusion(s) in rule '//:google_api_upbdefs':
this rule is missing dependency declarations for the following files included by 'src/core/ext/upbdefs-generated/google/protobuf/descriptor.upbdefs.c':
  'bazel-out/x64_windows-fastbuild/bin/external/com_google_protobuf/google/protobuf/descriptor.upbdefs.h'
Target //:grpc++ failed to build
Use --verbose_failures to see the command lines of failed build steps.
INFO: Elapsed time: 61.376s, Critical Path: 7.38s
INFO: 436 processes: 436 local.
FAILED: Build did NOT complete successfully
PS C:\Users\jgm\grpc>

Anything else we should know about your project / environment?

About this issue

  • Original URL
  • State: closed
  • Created 4 years ago
  • Comments: 26 (12 by maintainers)

Most upvoted comments

@konste @devjgm Could you test #24953 to see if it addresses this issue?