This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Compiling gcc with a chicken-and-egg situation


Hey

On 28 June 2010 12:18, Eric Fernandez <efernandez@physiomics-plc.com> wrote:
> 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.
>

What i would do is when compiling GMP and MPFR and MPC,

./configure --prefix=/....

so when you do "make install"

the liraries are installed to a different location. Then when you go
to compile gcc you can ./configure --with-gmp-include=/../include
--with-gmp-lib=/.../lib --with-mpfr-include=... and so on pointing to
their new respective locations and it shouldnt break your current
compiler and allow you to build the newer version.

So you compile it with newer libraries just from different locations.
This may be a much simpler solution. Than cross compiling for a target
host. Hope this helps lets us know how you get on :)

--Phil


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]