From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 30458 invoked by alias); 8 Dec 2007 04:47:19 -0000 Received: (qmail 30449 invoked by uid 22791); 8 Dec 2007 04:47:18 -0000 X-Spam-Check-By: sourceware.org Received: from wa-out-1112.google.com (HELO wa-out-1112.google.com) (209.85.146.181) by sourceware.org (qpsmtpd/0.31) with ESMTP; Sat, 08 Dec 2007 04:47:12 +0000 Received: by wa-out-1112.google.com with SMTP id m16so1806574waf for ; Fri, 07 Dec 2007 20:47:10 -0800 (PST) Received: by 10.142.187.2 with SMTP id k2mr1039603wff.1197089229195; Fri, 07 Dec 2007 20:47:09 -0800 (PST) Received: by 10.142.126.8 with HTTP; Fri, 7 Dec 2007 20:47:09 -0800 (PST) Message-ID: Date: Sat, 08 Dec 2007 04:47:00 -0000 From: NightStrike To: "Martin Krischik" Subject: Re: GCC does not build gfortran !! Cc: gcc-help@gcc.gnu.org In-Reply-To: <20071207162437.2vor9b2qpwosgkk0@server265-han.de-nserver.de> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <765852.6744.qm@web51303.mail.re2.yahoo.com> <20071207162437.2vor9b2qpwosgkk0@server265-han.de-nserver.de> X-IsSubscribed: yes Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org X-SW-Source: 2007-12/txt/msg00166.txt.bz2 On 12/7/07, Martin Krischik wrote: > Zitat von Sampath Koppole : > > > 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.