Muthiah Annamalai wrote: > Hello there, > I am trying to compile GCC 4.2.1 using GCC 3.2.3. Even after massaging > some of the Makefiles, and warning flags etc, I run into certain symbols > like SIZEOF_REAL which arent converted from the #defines. > > For the GNU/Linux 2.4.21 machine, I was able to install GCC 3.4.6, on > a local path. > > I want to know what is the min version of GCC I want to install, to compile > GCC 4.x. My goal is not to have GCC cvs, precisely, but to use GCC 4.x. > gcc 4.2 is more critical than default gcc versions on header file syntax checking. This is likely to be associated with headers other than those supplied by gcc. In order to build gcc 4.2 or 4.3 on my systems, often using gcc 3.4.3 as the bootstrap compiler, I edit libcpp/Makefile.* and libstdc++/Makefile.* to remove the WERROR macros which make warnings fatal. In my googling on the topic of WERROR, it seems people are vociferous about keeping this option, but there is no help on how to fix headers to avoid the fatal warnings. Certain versions of gfortran require C99 complex support. You can't get that simply by upgrading gcc. You can't build ada without first installing ada support.