Building GCC 9.3.0 on CentOS 7
Introduction
CentOS 7 distribution (as well as RHEL 7) ships with a somewhat outdated version of the GCC compiler (4.8.5 on CentOS 7.5), which may not be suitable to your compilation requirements. For example, C11 - which supersedes C99 - is fully supported only starting from GCC 4.9).
Additionally, recent versions of GCC (GCC6, GCC7, GCC8, GCC9) come with improvements which help detect issues at build time and offer suggestions on how to fix them. Sometimes, these are even actually helpful!
This note describes how to

本文档介绍了如何在CentOS 7上从源代码构建GCC 9.3.0,因为默认的GCC版本(4.8.5)可能无法满足某些编译需求。GCC的新版本有助于在构建时检测问题并提供修复建议。首先介绍前提条件,包括需要的库和工具,然后详细说明构建和安装过程。

4695

被折叠的 条评论
为什么被折叠?



