From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 18568 invoked by alias); 10 Aug 2014 17:43:21 -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 18550 invoked by uid 89); 10 Aug 2014 17:43:18 -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-lb0-f182.google.com Received: from mail-lb0-f182.google.com (HELO mail-lb0-f182.google.com) (209.85.217.182) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-SHA encrypted) ESMTPS; Sun, 10 Aug 2014 17:43:16 +0000 Received: by mail-lb0-f182.google.com with SMTP id z11so5259253lbi.13 for ; Sun, 10 Aug 2014 10:43:13 -0700 (PDT) MIME-Version: 1.0 X-Received: by 10.112.169.35 with SMTP id ab3mr22933965lbc.41.1407692593179; Sun, 10 Aug 2014 10:43:13 -0700 (PDT) Received: by 10.112.94.70 with HTTP; Sun, 10 Aug 2014 10:43:13 -0700 (PDT) In-Reply-To: <305b01afb342b77581318044d19caa12.squirrel@mx.sscc.ru> References: <305b01afb342b77581318044d19caa12.squirrel@mx.sscc.ru> Date: Sun, 10 Aug 2014 17:43:00 -0000 Message-ID: Subject: Re: 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/msg00081.txt.bz2 On 10 August 2014 12:58, Kirill Voronin wrote: > > Yes, the symbolic links called "gmp", "mpfr" and > "mpc" in the gcc-4.9.0 source directory are present. > > I foolowed instructions from the installation guide > > https://gcc.gnu.org/wiki/InstallingGCC > > directly, but nevertheless got the following error (in config.log) when > doing make (after successful configure) > > configure:4970: checking whether g++ accepts -static-libstdc++ -static-libgcc > configure:4987: g++ -o conftest -g -O2 -static-libstdc++ -static-libgcc > conftest.cpp >&5 > g++: unrecognized option '-static-libstdc++' > conftest.cpp:11:2: error: #error -static-libstdc++ not implemented > configure:4987: $? = 1 > configure: failed program was: > | /* confdefs.h */ > | #define PACKAGE_NAME "" > | #define PACKAGE_TARNAME "" > | #define PACKAGE_VERSION "" > | #define PACKAGE_STRING "" > | #define PACKAGE_BUGREPORT "" > | #define PACKAGE_URL "" > | /* end confdefs.h. */ > | > | #if (__GNUC__ < 4) || (__GNUC__ == 4 && __GNUC_MINOR__ < 5) > | #error -static-libstdc++ not implemented > | #endif > | int main() {} At the http://gcc.gnu.org/wiki/FAQ#configure_suffix page I've linked to several times it says "There might be several test programs that failed during the configuration, but some of these failures are non-critical. Check for the last error entry in the file." > The configure coomand was like > > ./contrib/download_prerequisites > $PWD/../gcc-4.9.0/configure > --prefix=/ifs/home/icmmg/voronin/pardiso_proekt/pardiso_project/new/gcc-4.9.0 > --enable-shared If those are really the exact the commands you ran then you're building in the source directory which can cause problems: http://gcc.gnu.org/wiki/FAQ#configure If that's the case then delete the build and source directories and start again from scratch. If you're trying to build in the same directory as your earlier failed attempts then that will cause problems too, so you need to build in a clean directory.