Compile grpc with C++11-only compiler support

855 views
Skip to first unread message

Jeremy Pallotta

unread,
Nov 28, 2022, 3:16:14 PM11/28/22
to grpc.io
The latest versions of gRPC require compiler support for C++14.

I need to use gRPC with CentOS 7's native compiler, gcc 4.8.5, which supports most of c++11.  What is the latest version of gRPC that doesn't require c++14 support?

Thanks in advance.

Mark D. Roth

unread,
Nov 30, 2022, 5:28:22 PM11/30/22
to grpc.io
gRPC 1.46 was the last version supporting only C++11.

https://github.com/grpc/proposal/blob/master/L98-requiring-cpp14.md

Jeremy Pallotta

unread,
Dec 1, 2022, 2:08:58 PM12/1/22
to grpc.io
I had tried to compile grpc version 1.34.0 using gcc 4.8.5; however, I ran into an issue with absl.  Error is below.  I can compile grpc 1.30.2 using gcc 4.8.5.  Perhaps absl has some c++11/C++14 feature that is not supported by the gcc 4.8.5 compiler?

Thanks for the information regarding gRPC 1.46.

/home/jpallotta/rpmbuild/BUILD/grpc/third_party/abseil-cpp/absl/random/internal/distribution_test_util.cc: In function 'std::ostream& absl::lts_2020_09_23::random_internal::operator<<(std::ostream&, const absl::lts_2020_09_23::random_internal::DistributionMoments&)':
/home/jpallotta/rpmbuild/BUILD/grpc/third_party/abseil-cpp/absl/random/internal/distribution_test_util.cc:77:66: error: no matching function for call to 'StrFormat(const char [45], const double&, double, const double&, const double&)'
                                moments.skewness, moments.kurtosis);
                                                                  ^
/home/jpallotta/rpmbuild/BUILD/grpc/third_party/abseil-cpp/absl/random/internal/distribution_test_util.cc:77:66: note: candidate is:
In file included from /home/jpallotta/rpmbuild/BUILD/grpc/third_party/abseil-cpp/absl/random/internal/distribution_test_util.cc:25:0:
/home/jpallotta/rpmbuild/BUILD/grpc/third_party/abseil-cpp/absl/strings/str_format.h:338:34: note: template<class ... Args> std::string absl::lts_2020_09_23::StrFormat(absl::lts_2020_09_23::FormatSpec<Args ...>&, const Args& ...)
 ABSL_MUST_USE_RESULT std::string StrFormat(const FormatSpec<Args...>& format,
                                  ^
/home/jpallotta/rpmbuild/BUILD/grpc/third_party/abseil-cpp/absl/strings/str_format.h:338:34: note:   template argument deduction/substitution failed:
/home/jpallotta/rpmbuild/BUILD/grpc/third_party/abseil-cpp/absl/random/internal/distribution_test_util.cc:77:66: note:   mismatched types 'absl::lts_2020_09_23::FormatSpec<Args ...>' and 'const char [45]'
                                moments.skewness, moments.kurtosis);

ספיר פיק

unread,
Jun 26, 2025, 9:52:25 AMJun 26
to grpc.io

did it worked ?
or u found a way to make it work?
ב-יום חמישי, 1 בדצמבר 2022 בשעה 21:08:58 UTC+2, Jeremy Pallotta כתב/ה:
Reply all
Reply to author
Forward
0 new messages