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

C++14 requirement error using Bazel 6.3.2 and earlier #18

Closed
jty2 opened this issue Nov 16, 2023 · 1 comment
Closed

C++14 requirement error using Bazel 6.3.2 and earlier #18

jty2 opened this issue Nov 16, 2023 · 1 comment

Comments

@jty2
Copy link

jty2 commented Nov 16, 2023

Since 43d9a76, C++14 is needed to build absl.

When using Bazel 6.3.2, I get this error when building fleetbench/proto:proto_benchmark

external/com_google_absl/absl/base/policy_checks.h:79:2: error: "C++ versions less than C++14 are not supported."

because Bazel 6.3.2 explicitly sets -std=c++0x, so it will not work.

I think this means the minimum requirement is now Bazel 6.4.0 because it sets -std=c++14 due to #bazelbuild/bazel#19794.

Would you please update the Fleetbench documentation to reflect this requirement, or provide a workaround for Bazel 6.3.2 and earlier?

Thank you.

@rjogrady
Copy link
Contributor

We weren't specifying the c++ version for the host toolchain in our .bazelrc, which is used to compile the protobuf compiler.

Should be fixed in 66fc3a5

Thanks for mentioning it!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants