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: GCC does not build gfortran !!


Am Samstag 08 Dezember 2007 schrieb NightStrike:
> On 12/7/07, Martin Krischik <krischik@users.sourceforge.net> wrote:
> > Zitat von Sampath Koppole <sampathkoppole@yahoo.com>:
> > > Dear all,
> > > When I try to build my gcc (version 4.2.2) it does not
> > > build gfortran.
> >
> > In the past The GNU Ada Project created Fortran just for the fun of it
> > - but we have given up on it - not because we don't like Fortran or
> > compiling Fortran is troublesome.
> >
> > No it's because of GMP and MPFR. Fortran now needs those two libraries
> > to be installed. And those two are a real pain in the arse. If your
> > distribution hasn't got them I pity you.
>
> If you put the gmp and mpfr source in subdirectories of the gcc tree,
> gcc will build them automatically for you and you don't have to worry
> about anything.  I do this on 5 different build platforms, and it
> works superbly.
>
> You can put this in a script:
>
> cd gcc
>
> wget -qO- ftp://ftp.gnu.org/gnu/gmp/gmp-4.2.2.tar.bz2 | tar xjf - &&
> mv gmp-4.2.2 gmp
>
> wget -qO- http://www.mpfr.org/mpfr-current/mpfr-2.3.0.tar.bz2 | tar
> xjf - && mv mpfr-2.3.0 mpfr
>
>
> The rest is seemless.  You don't even need to use the --with-gmp and
> --with-mpfr options.  It's wonderful.

Thanks for the hint - especially mentioning the need for "mv". I heard about 
this option before but then this "minor" detail not mentioned. 

Martin

-- 
Martin Krischik
mailto://krischik@users.sourceforge.net

Attachment: signature.asc
Description: This is a digitally signed message part.


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