title: Error compiling the compiler GCC
body: <p>I know, it's an irony to compile a compiler. But I need a specific version of this compiler, and the CentOS 5.x repositories have not the most recent versions of GCC.</p>
  
  <p>The version what i need is 4.3.2 but I only have 4.1.1.</p>
  
  <p>I followed this tutorial to install the gcc <a href="http://www.mjmwired.net/resources/mjm-fedora-gcc.html" rel="noreferrer">http://www.mjmwired.net/resources/mjm-fedora-gcc.html</a> and I used the following parameters at configure (before compiling):</p>
  
  <blockquote>
    <p>/root/gcc/gcc-4.3.6/configure --prefix=/opt/gcc43 --program-suffix=43 --enable-languages=c,c++ --enable-shared --enable-threads=posix --disable-checking --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --disable-multilib</p>
  </blockquote>
  
  <p>The last option <code>--disable-multilib</code> save me for a another error that I got in previous compile tries (after a long compiling time...)</p>
  
  <p>Also i set an enviroment variable, because in previous tries, i got errors, so i set as following:</p>
  
  <pre><code>export LD_LIBRARY_PATH=/usr/local/lib:/usr/local/lib:$LD_LIBRARY_PATH
  </code></pre>
  
  <p>That ensure the compiler to search mpfr and gmp libraries (which are needed) in that directory</p>
  
  <p>So, i execute the 'make' command.</p>
  
  <p>I though it was everything ok, because this time took more time (in my last try before setting that variable took me around 2 hours compiling)</p>
  
  <p>I used a Micro instance in Amazon Web Services, this instance only have 1 single core x86_64 processor and 613 MB of RAM, <strong>so it took about 9 HOURS to compile.</strong> </p>
  
  <p>Unfortunetly, i got errors again!!, now I got this:</p>
  
  <pre><code>make[2]: Entering directory `/root/gcc/build'
  make[3]: Entering directory `/root/gcc/build'
  rm -f stage_current
  make[3]: Leaving directory `/root/gcc/build'
  Comparing stages 2 and 3
  warning: ./cc1-checksum.o differs
  warning: ./cc1plus-checksum.o differs
  Bootstrap comparison failure!
  ./gcc.o differs
  ./varasm.o differs
  ./except.o differs
  ./i386.o differs
  make[2]: *** [compare] Error 1
  make[2]: Leaving directory `/root/gcc/build'
  make[1]: *** [stage3-bubble] Error 2
  make[1]: Leaving directory `/root/gcc/build'
  make: *** [all] Error 2
  </code></pre>
  
  <p>Any suggestions?</p>