I've poked around and in my local build environment I can reproduce that failure message by updating the .bazelrc file to set -std=c++11, so I think Bazel it self is working.
My local environment, which works as expected:
$ bazel version
Starting local Bazel server and connecting to it...
Build label: 4.0.0
Build target: bazel-out/k8-opt/bin/src/main/java/com/google/devtools/build/lib/bazel/BazelServer_deploy.jar
Build time: Thu Jan 21 07:33:24 2021 (1611214404)
Build timestamp: 1611214404
Build timestamp as int: 1611214404
https://buildkite.com/bazel/bcsgh-stl-to-ps/builds/8#870d8fa1-5b3a-431a-b364-f0f5c1be10af << The case where this is causing problems. https://buildkite.com/bazel/bcsgh-tbd/builds/8#eea4ef7b-aa30-4b2d-a818-62f0c18924cd << Another build that shows the same issue but otherwise works.
Despite the CI logs reporting:
later on the C++ version ends up being C++2011:
results in:
I've poked around and in my local build environment I can reproduce that failure message by updating the
.bazelrc
file to set-std=c++11
, so I think Bazel it self is working.My local environment, which works as expected: