From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21998 invoked by alias); 15 Aug 2012 14:34:37 -0000 Received: (qmail 21871 invoked by uid 22791); 15 Aug 2012 14:34:35 -0000 X-SWARE-Spam-Status: No, hits=-5.2 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,KHOP_RCVD_TRUST,KHOP_THREADED,RCVD_IN_DNSWL_LOW,RCVD_IN_HOSTKARMA_YE X-Spam-Check-By: sourceware.org Received: from mail-yx0-f175.google.com (HELO mail-yx0-f175.google.com) (209.85.213.175) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 15 Aug 2012 14:34:12 +0000 Received: by yenm1 with SMTP id m1so1892698yen.20 for ; Wed, 15 Aug 2012 07:34:11 -0700 (PDT) MIME-Version: 1.0 Received: by 10.50.95.225 with SMTP id dn1mr18445331igb.58.1345041251373; Wed, 15 Aug 2012 07:34:11 -0700 (PDT) Received: by 10.42.5.210 with HTTP; Wed, 15 Aug 2012 07:34:11 -0700 (PDT) In-Reply-To: <502B9888.4070205@duke.edu> References: <502B9888.4070205@duke.edu> Date: Wed, 15 Aug 2012 15:43:00 -0000 Message-ID: Subject: Re: Configuration Error From: Jonathan Wakely To: ron.stubbs@duke.edu Cc: gcc-help@gcc.gnu.org Content-Type: text/plain; charset=ISO-8859-1 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: 2012-08/txt/msg00106.txt.bz2 On 15 August 2012 13:39, Ron Stubbs wrote: > Hi, > > I get the following configuration error message when configuring GCC 4.8 > on an x86_64 suystem running Scientific linux 6.2. > > checking for the correct version of gmp.h... yes > checking for the correct version of mpfr.h... yes > checking for the correct version of mpc.h... yes > checking for the correct version of the gmp/mpfr/mpc libraries... 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 > > Although the version check for the .h files succeeds, the library check > fails. > > The installed version are required libraries: > gmp-4.3.1-7.el6_2.2.x86_64 > mpfr-2.4.1-6.el6.x86_64 > mpc-0.8.2 > > I've tried with both ./configure and /configure --with-gmp=/usr/lib64 > --with-mpfr=/usr/lib64 --with-mpc=/usr/local/lib 1) Don't use ./configure, as documented at http://gcc.gnu.org/install/configure.html and http://gcc.gnu.org/wiki/FAQ#configure and http://gcc.gnu.org/wiki/InstallingGCC you should build outside the source directory. 2) /usr/lib64 is a library path, not the installation prefix. You would want to use --with-gmp-lib=/usr/lib64 or --with-gmp=/usr but the compiler will always look in /usr/lib64 anyway so you shouldn't need to use any --with-xxx options for gmp, mpfr and mpc if they're installed in /usr For more specific information on what fails you will need to look in the config.log file.