1. Front-facing
First of all, you can refer to my previous article, compiled gcc4.1.2 on centOS7.2, the process is basically consistent, here only the possible error conditions to explain.
2. Installing texinfo4.8
My centos7.2 version, comes with Gcc4.8,texinfo 5.1, in the process of compiling GCC, the main encounter is the Texinfo 5.1 version is too high, resulting in the inability to process the documents in GCC, after searching for various methods without fruit, I decided to downgrade Texinfo to 4.8 (mostly I found the syntax in 4.8,gcc4.4.7 support is more than 4.6, but does not support 5.x, although it is very strange to compile 4.1.2 when it is not the problem, the individual decided to follow the comments inside the parameters of the change in fact no effect), texinfo4.8 The link.
Of course, you can refer to the following instructions for uninstalling the Yum package
View Yum-installed packages, libraries
Yum List installed |grep Java
Unloading
Yum-y Remove java-1.7.0-openjdk*
View installation packages in the Yum Library
Yum-y List java*
Installation
Yum-y Install java-1.7.0-openjdk*
After uninstalling, compile and install the texinfo4.8,./configure, make, make install this set down.
3. About Dependency Packages
The MPFR, GMP and MPC libraries need to be installed prior to GCC installation, which can only be installed manually in gcc4.4.7 and may be installed using Yum, but note that the MPC name is LIBMPC.
You can use the./contrib/download_prerequisites in gcc4.9 to download the latest dependency package directly, except that the file does not exist in gcc.4.4.7.
4. About Errors
The Make check prints out an error when it fails.
In my error, there are:host-x86_64-unknown-linux-gnu/fixincludes:no such file or directory does not have files or directories!
Or a problem like this: /gcc/doc/cppopts.texi:761: @itemx must follow @item
But it's really a texinfo problem.
Compiling the gcc4.4.7 on centOS7.2