makeinfo build error
2013-05-15
Problem
Building gcc 4.1.2 on CentOS 6 halts with the error:
WARNING: `makeinfo' is missing on your system.  You should only need it if
         you modified a `.texi' or `.texinfo' file, or any other file
         indirectly affecting the aspect of the manual.  The spurious
         call might also be the consequence of using a buggy `make' (AIX,
         DU, IRIX).  You might want to install the `Texinfo' package or
         the `GNU make' package.  Grab either from any GNU archive site.
Solution
First, make sure that texinfo is installed.
Second, because gcc-4.1.2 has a bug and thinks that versions of makeinfo greater than 10 are actually lower than 9 we need to do something manually. Open the Makefile that was created by the ./configure and edit the line where it says:
MAKEINFO = /opt/YOURUSERNAME/newlib-1.15.0/missing makeinfo
and change it to:
MAKEINFO = makeinfo
Save the file and run make.