From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5392 invoked by alias); 8 Aug 2014 10:22:55 -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 5362 invoked by uid 89); 8 Aug 2014 10:22:55 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-0.2 required=5.0 tests=AWL,BAYES_00,RP_MATCHES_RCVD autolearn=ham version=3.3.2 X-HELO: mx.sscc.ru Received: from mx.sscc.ru (HELO mx.sscc.ru) (84.237.86.40) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-SHA encrypted) ESMTPS; Fri, 08 Aug 2014 10:22:53 +0000 Received: from root by mx.sscc.ru with drweb-scanned (Exim 4.83 (FreeBSD)) (envelope-from ) id 1XFhJy-000MSE-AI for gcc-help@gcc.gnu.org; Fri, 08 Aug 2014 17:22:50 +0700 Received: from mx.sscc.ru ([84.237.86.40]) by mx.sscc.ru with esmtp (Exim 4.83 (FreeBSD)) (envelope-from ) id 1XFhJx-000MS6-Vw for gcc-help@gcc.gnu.org; Fri, 08 Aug 2014 17:22:50 +0700 Received: from 10.87.7.13 (SquirrelMail authenticated user kvoronin@labchem.sscc.ru) by mx.sscc.ru with HTTP; Fri, 8 Aug 2014 17:22:50 +0700 Message-ID: <2e64f658932300d21464ddd832cf8fc0.squirrel@mx.sscc.ru> In-Reply-To: Date: Fri, 08 Aug 2014 10:22:00 -0000 Subject: Re: Re: Problem with building gcc 4.9.0 (libstdc++) From: "Kirill Voronin" To: gcc-help@gcc.gnu.org User-Agent: SquirrelMail/1.4.23 [SVN] MIME-Version: 1.0 Content-Type: text/plain;charset=utf-8 Content-Transfer-Encoding: 8bit X-Antivirus-Code: 0x100000 X-Drweb-SpamState: no X-Drweb-SpamScore: 0 X-DrWeb-SpamReason: X-IsSubscribed: yes X-SW-Source: 2014-08/txt/msg00065.txt.bz2 Actually, the version doesn't matter except it should be greater than 4.8. I've already read https://gcc.gnu.org/wiki/FAQ#configure_suffix but actually there is no answer for my case since I do have mpc, gmp and mpfr installed (correctly at least as make check claimed for each of these three). If it didn't find some libs, I understand that I would have checked the option --with-... and check the paths but now it seems like installing one of the internal (for gcc) packages stdc++ failed. So, you recommend to install mpc, gmp and mpfr once again using prerequisites? > On 8 August 2014 10:56, Jonathan Wakely wrote: >> On 8 August 2014 10:54, Kirill Voronin wrote: >>> >>> I'm trying to build gcc 4.9.0 for linux (OS Red Hat, very old version). > > Also, any reason why you are not using 4.9.1 instead? > >>> I've installed manually mpc, gmp and mpfr before running ./configure >>> >>> Configure line: >>> ../gcc-4.9.0/configure --prefix=/usr/new/gcc_install --enable-shared >>> --with-gmp=/usr/new/gmp_install --with-mpfr=/usr/new/mpfc_install >>> --with-mpc=/usr/new/mpc_install >>> >>> and it works fine. >>> >>> But then I tried to make and got the following error: >>> >>> checking for suffix of object files... configure: error: in >>> `/ifs/home/icmmg/voronin/pardiso_proekt/pardiso_project/new/gcc_dir/x86_64-unknown-linux-gnu/libgcc': >>> configure: error: cannot compute suffix of object files: cannot compile >> >> https://gcc.gnu.org/wiki/FAQ#configure_suffix >> >> Follow http://gcc.gnu.org/wiki/InstallingGCC > > Specifically, do not install GMP, MPFR and MPC separately, use the > download_prerequisites script. > --