-
Notifications
You must be signed in to change notification settings - Fork 11.1k
Boringssl build error #27604
Copy link
Copy link
Closed
Description
Boringssl build error when building gRPC by cmake on gcc:11 docker image.
/grpc/third_party/boringssl-with-bazel/src/tool/generate_ech.cc: In function 'bool GenerateECH(const std::vector<std::__cxx11::basic_string<char> >&)':
/grpc/third_party/boringssl-with-bazel/src/tool/generate_ech.cc:77:24: error: 'numeric_limits' is not a member of 'std'
77 | config_id > std::numeric_limits<uint8_t>::max()) {
| ^~~~~~~~~~~~~~
/grpc/third_party/boringssl-with-bazel/src/tool/generate_ech.cc:77:46: error: expected primary-expression before '>' token
77 | config_id > std::numeric_limits<uint8_t>::max()) {
| ^
/grpc/third_party/boringssl-with-bazel/src/tool/generate_ech.cc:77:49: error: '::max' has not been declared; did you mean 'std::max'?
77 | config_id > std::numeric_limits<uint8_t>::max()) {
| ^~~
| std::max
In file included from /usr/local/include/c++/11.2.0/algorithm:62,
from /grpc/third_party/boringssl-with-bazel/src/include/openssl/span.h:26,
from /grpc/third_party/boringssl-with-bazel/src/include/openssl/bytestring.h:20,
from /grpc/third_party/boringssl-with-bazel/src/tool/generate_ech.cc:19:
/usr/local/include/c++/11.2.0/bits/stl_algo.h:3467:5: note: 'std::max' declared here
3467 | max(initializer_list<_Tp> __l, _Compare __comp)
| ^~~
make[2]: *** [third_party/boringssl-with-bazel/CMakeFiles/bssl.dir/bu
Reactions are currently unavailable