SUCCESS! RE: Compiling gcc 4.2 prerelease on RedHat EL4 x86-64

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

 



In order to build successfully, I installed the rpm mentioned below, and
also the 32 bit version of gmp.

up2date --get gmp-4.1.4-3.i386.rpm
rpm -i /var/spool/up2date/gmp-4.1.4-3.i386.rpm

Then I compiled both 64- and 32-bit versions of mpfr.

I had some difficulty because I chose to install mpfr in /usr/local/lib
and /usr/local/lib64. When instructing 'configure' where to find the
mpfr library, you don't get to specify BOTH directories; I fooled it
with the following configure command:

../gcc/configure   --prefix=/usr/local/encap/gcc-4.2.0.0
--program-suffix=v42 --enable-languages=c,c++,fortran
--with-mpfr-lib="/usr/local/lib -L/usr/local/lib64"
--with-mpfr-include=/usr/local/include

This seems inelegant, is there a proper way to do this that I failed to
understand from the installation instructions?


Many thanks
Robert
 

> -----Original Message-----
> From: gcc-help-owner@xxxxxxxxxxx 
> [mailto:gcc-help-owner@xxxxxxxxxxx] On Behalf Of Atwood, Robert C
> Sent: 21 February 2007 16:52
> To: tprince@xxxxxxxxxxxx
> Cc: gcc-help@xxxxxxxxxxx
> Subject: RE: Compiling gcc 4.2 prerelease on RedHat EL4 x86-64
> 
>   How about "forcing" it by the following ? It seems to work for
> hello-world with -m32 ; is there a large problem waiting to happen ? 
> 
> 
>   up2date --get glibc-devel-2.3.4-2.25.i386.rpm
>   rpm -ivh  glibc-devel-2.3.4-2.25.i386.rpm
>


[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