From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 6733 invoked by alias); 8 Aug 2014 11:33:42 -0000 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 Received: (qmail 6650 invoked by uid 89); 8 Aug 2014 11:33:41 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.4 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 X-HELO: mail-la0-f49.google.com Received: from mail-la0-f49.google.com (HELO mail-la0-f49.google.com) (209.85.215.49) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-SHA encrypted) ESMTPS; Fri, 08 Aug 2014 11:33:40 +0000 Received: by mail-la0-f49.google.com with SMTP id hz20so4565615lab.36 for ; Fri, 08 Aug 2014 04:33:37 -0700 (PDT) MIME-Version: 1.0 X-Received: by 10.152.10.193 with SMTP id k1mr1434464lab.79.1407497616988; Fri, 08 Aug 2014 04:33:36 -0700 (PDT) Received: by 10.112.94.70 with HTTP; Fri, 8 Aug 2014 04:33:36 -0700 (PDT) In-Reply-To: <3c0a74bf59884203f5d4ada056b31054.squirrel@mx.sscc.ru> References: <3c0a74bf59884203f5d4ada056b31054.squirrel@mx.sscc.ru> Date: Fri, 08 Aug 2014 11:33:00 -0000 Message-ID: Subject: Re: Re: Problem with building gcc 4.9.0 (libstdc++) From: Jonathan Wakely To: Kirill Voronin Cc: gcc-help Content-Type: text/plain; charset=UTF-8 X-IsSubscribed: yes X-SW-Source: 2014-08/txt/msg00069.txt.bz2 On 8 August 2014 12:13, Kirill Voronin wrote: > > OK, thanks for you responses. > > Can you please make it a bit more clear about how to build gcc after using > download_prerequisites script ? I don't know what isn't clear about the steps at the bottom of the http://gcc.gnu.org/wiki/InstallingGCC page. > Running > > ../gcc-4.9.0/configure > --prefix=/ifs/home/icmmg/voronin/pardiso_proekt/pardiso_project/new/gcc_install > --enable-shared > > fails with the error > > checking for the correct version of gmp.h... no > configure: error: Building GCC requires GMP 4.2+, MPFR 2.4.0+ and MPC 0.8.0+. > Try the --with-gmp, --with-mpfr and/or --with-mpc options to specify > their locations. > > since there is no gmp, mpc and mpfr built. I'm guessing you ran download_prerequisites in the wrong directory. > As far as i understand, the download_prerequisites script just downloads > the source files. No, it downloads them, unpacks them and renames the directories. GCC will then build those prerequisites automatically and will know how to link to them correctly. > How should I build it? As it says at http://gcc.gnu.org/wiki/InstallingGCC If you do that correctly it works, so apparently you are not doing it correctly.