Assuming a bazel wildcard build (e.g. bazel build //path/to/lib:* or bazel build //path/to/lib/...) fails due to a C++ compilation error. There might b
bazel build //path/to/lib:*
bazel build //path/to/lib/...