I am having trouble building grpc with bazel. I get the following errors:
ERROR: /usr/local/google/home/jsking/.cache/bazel/_bazel_jsking/5829c07283a19b7748a372d152deaad4/external/com_github_cares_cares/BUILD.bazel:59:1: undeclared inclusion(s
) in rule '@com_github_cares_cares//:ares':
this rule is missing dependency declarations for the following files included by 'external/com_github_cares_cares/ares__get_hostent.c':
'/usr/lib/clang/4.0.1/include/stddef.h'
'/usr/lib/clang/4.0.1/include/stdarg.h'
'/usr/lib/clang/4.0.1/include/stdbool.h'
'/usr/lib/clang/4.0.1/include/stdint.h'
Target //:grpc failed to build
Use --verbose_failures to see the command lines of failed build steps.
INFO: Elapsed time: 0.370s, Critical Path: 0.16s
FAILED: Build did NOT complete successfully
I read that this is caused by bazel not having those paths in its default include paths and that they need to be added to the toolchain. However, adding a toolchain file looked horribly complicated. Is there a simple way to just add some include paths to the default set?
I am building this directly from the clone of the repo with no modifications.