Bump the minimum gcc to 5 (#28786)

pull/28816/head^2
Esun Kim 3 years ago committed by GitHub
parent 9d73b3e85a
commit 6565584c7b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      setup.py
  2. 4
      src/cpp/README.md
  3. 2
      templates/tools/dockerfile/test/cxx_gcc_5_x64/Dockerfile.template
  4. 2
      tools/distrib/python/grpcio_tools/setup.py
  5. 2
      tools/dockerfile/distribtest/python_dev_centos7_x64/Dockerfile
  6. 2
      tools/dockerfile/test/cxx_gcc_5_x64/Dockerfile
  7. 6
      tools/run_tests/run_tests.py
  8. 2
      tools/run_tests/run_tests_matrix.py

@ -161,7 +161,7 @@ BUILD_WITH_SYSTEM_RE2 = _env_bool_value('GRPC_PYTHON_BUILD_SYSTEM_RE2', 'False')
# without statically linking libstdc++ (which leads to a slight increase in the wheel size).
# This option is useful when crosscompiling wheels for aarch64 where
# it's difficult to ensure that the crosscompilation toolchain has a high-enough version
# of GCC (we require >4.9) but still uses old-enough libstdc++ symbols.
# of GCC (we require >=5.1) but still uses old-enough libstdc++ symbols.
# TODO(jtattermusch): remove this workaround once issues with crosscompiler version are resolved.
BUILD_WITH_STATIC_LIBSTDCXX = _env_bool_value(
'GRPC_PYTHON_BUILD_WITH_STATIC_LIBSTDCXX', 'False')

@ -27,10 +27,10 @@ Therefore, gRPC supports several major build systems, which should satisfy most
| Operating System | Architectures | Versions | Support Level |
|------------------|---------------|----------|---------------|
| Linux - Debian, Ubuntu, CentOS | x86, x64 | clang 4+, GCC 4.9+ | Officially Supported |
| Linux - Debian, Ubuntu, CentOS | x86, x64 | clang 4+, GCC 5.1+ | Officially Supported |
| Windows 10+ | x86, x64 | Visual Studio 2015+ | Officially Supported |
| MacOS | x86, x64 | XCode 7.2+ | Officially Supported |
| Linux - Others | x86, x64 | clang 4+, GCC 4.9+ | Best Effort |
| Linux - Others | x86, x64 | clang 4+, GCC 5.1+ | Best Effort |
| Linux | ARM | | Best Effort |
| iOS | | | Best Effort |
| Android | | | Best Effort |

@ -14,7 +14,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.
FROM gcc:4.9
FROM gcc:5
RUN apt-get update && apt-get install -y curl git time wget zip && apt-get clean
<%include file="../../run_tests_python_deps.include"/>

@ -77,7 +77,7 @@ BUILD_WITH_CYTHON = _env_bool_value('GRPC_PYTHON_BUILD_WITH_CYTHON', 'False')
# without statically linking libstdc++ (which leads to a slight increase in the wheel size).
# This option is useful when crosscompiling wheels for aarch64 where
# it's difficult to ensure that the crosscompilation toolchain has a high-enough version
# of GCC (we require >4.9) but still uses old-enough libstdc++ symbols.
# of GCC (we require >=5.1) but still uses old-enough libstdc++ symbols.
# TODO(jtattermusch): remove this workaround once issues with crosscompiler version are resolved.
BUILD_WITH_STATIC_LIBSTDCXX = _env_bool_value(
'GRPC_PYTHON_BUILD_WITH_STATIC_LIBSTDCXX', 'False')

@ -21,7 +21,7 @@ RUN yum install -y python3-pip
RUN python3 -m pip install --upgrade pip==19.3.1
RUN python3 -m pip install -U virtualenv
# The default gcc of CentOS 7 is gcc 4.8 which is older than gcc 4.9,
# The default gcc of CentOS 7 is gcc 4.8 which is older than gcc 5.1,
# the minimum supported gcc version for gRPC Core so let's upgrade to
# the oldest one that can build gRPC on Centos 7.
RUN yum install -y centos-release-scl

@ -12,7 +12,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.
FROM gcc:4.9
FROM gcc:5
RUN apt-get update && apt-get install -y curl git time wget zip && apt-get clean
#====================

@ -484,8 +484,8 @@ class CLanguage(object):
if compiler == 'default' or compiler == 'cmake':
return ('debian11', [])
elif compiler == 'gcc4.9':
return ('gcc_4.9', [])
elif compiler == 'gcc5':
return ('gcc_5', [])
elif compiler == 'gcc10.2':
return ('debian11', [])
elif compiler == 'gcc10.2_openssl102':
@ -1558,7 +1558,7 @@ argp.add_argument(
'--compiler',
choices=[
'default',
'gcc4.9',
'gcc5',
'gcc10.2',
'gcc10.2_openssl102',
'gcc11',

@ -266,7 +266,7 @@ def _create_portability_test_jobs(extra_args=[],
# portability C and C++ on x64
for compiler in [
'gcc4.9', 'gcc10.2_openssl102', 'gcc11', 'gcc_musl', 'clang4',
'gcc5', 'gcc10.2_openssl102', 'gcc11', 'gcc_musl', 'clang4',
'clang13'
]:
test_jobs += _generate_jobs(languages=['c', 'c++'],

Loading…
Cancel
Save