Compiling gcc with a chicken-and-egg situation

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

I have been compiling gcc on an AIX system for some time but have now encountered some trouble now that gcc requires external libraries such as MPFR and GMP to compile it. I have a chicken-and-egg situation to update all these libraries at the same time:

I have previously installed gcc 4.3.3, mpfr  2.4.1 and gmp 4.3.1. I now would like to update to gcc-4.3.5, mpfr 3.0.0 and gmp 5.0.1. When I try to compile gmp-5.0.1, I cannot check it because it wants to use libgmp.so.10. If I install it, I have now this library, but is looking for the previous version, libgmp.so.3. This breaks my current gcc. Same kind of chicken-and-egg situation with mpfr.

I am aware it is possible to simply copy gmp and mpfr in the root source of gcc, however this is not an option either, because I need to pass ABI=32 during gmp configure, therefore I need to compile gmp beforehand. By uninstalling mpfr and gmp, I would break my gcc-4.3.3, which I cannot use to compile anything.

Is there a way to build gcc from scratch, without any preinstalled compiler? Do I need to remove the path to gcc in my bashrc, so that it does not use the preexisting one? Is there a general procedure/tutorial to install gcc in a "clean way", i.e. as if no previous compiler were already installed?

Thanks a lot for your help.
Eric




[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux