Skip to content

Boringssl build error #27604

@veblush

Description

@veblush

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

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions