From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 11841 invoked by alias); 25 Jul 2009 11:18:17 -0000 Received: (qmail 11833 invoked by uid 22791); 25 Jul 2009 11:18:16 -0000 X-SWARE-Spam-Status: No, hits=-1.2 required=5.0 tests=AWL,BAYES_00,J_CHICKENPOX_24,J_CHICKENPOX_82,SPF_PASS X-Spam-Check-By: sourceware.org Received: from mail.gmx.net (HELO mail.gmx.net) (213.165.64.20) by sourceware.org (qpsmtpd/0.43rc1) with SMTP; Sat, 25 Jul 2009 11:18:09 +0000 Received: (qmail invoked by alias); 25 Jul 2009 11:18:05 -0000 Received: from xdsl-87-78-143-249.netcologne.de (EHLO localhost.localdomain) [87.78.143.249] by mail.gmx.net (mp011) with SMTP; 25 Jul 2009 13:18:05 +0200 Received: from ralf by localhost.localdomain with local (Exim 4.69) (envelope-from ) id 1MUfGP-00012P-CG; Sat, 25 Jul 2009 13:18:05 +0200 Date: Sat, 25 Jul 2009 11:18:00 -0000 From: Ralf Wildenhues To: Bradley Lucier Cc: gcc@gcc.gnu.org Subject: Re: Bootstrap failure configuring in-tree gmp in mainline Message-ID: <20090725111805.GF2985@gmx.de> Mail-Followup-To: Ralf Wildenhues , Bradley Lucier , gcc@gcc.gnu.org References: <1247690276.4172.20.camel@frying-pan> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1247690276.4172.20.camel@frying-pan> User-Agent: Mutt/1.5.20 (2009-06-15) X-IsSubscribed: yes Mailing-List: contact gcc-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-owner@gcc.gnu.org X-SW-Source: 2009-07/txt/msg00505.txt.bz2 * Bradley Lucier wrote on Wed, Jul 15, 2009 at 10:37:56PM CEST: > After configuring > > Target: x86_64-unknown-linux-gnu > gcc version 4.5.0 20090715 (experimental) [trunk revision 149654] (GCC) > > with > > ../../mainline/configure --enable-checking=release --prefix=/pkgs/gcc-mainline-mem-stats --enable-languages=c --enable-gather-detailed-mem-stats > > I get the bootstrap error: > > Configuring stage 2 in ./gmp > < stuff omitted> > checking how to run the C++ preprocessor... /lib/cpp > configure: error: C++ preprocessor "/lib/cpp" fails sanity check > See `config.log' for more details. > make[2]: *** [configure-stage2-gmp] Error 1 > make[2]: Leaving directory `/home/lucier/programs/gcc/objdirs/mainline' > make[1]: *** [stage2-bubble] Error 2 > make[1]: Leaving directory `/home/lucier/programs/gcc/objdirs/mainline' > make: *** [bootstrap] Error 2 > > This is using an in-tree gmp 4.3.0, gmp/config.log reports: > > configure:11030: checking how to run the C++ preprocessor > configure:11061: /home/lucier/programs/gcc/objdirs/mainline/./prev-gcc/g++ -B/home/lucier/programs/gcc/objdirs/mainline/./prev-gcc/ -B/pkgs/gcc-mainline-mem-stats/x86_64-unknown-linux-gnu/bin/ -nostdinc++ -I/home/lucier/programs/gcc/objdirs/mainline/prev-x86_64-unknown-linux-gnu/libstdc++-v3/include/x86_64-unknown-linux-gnu -I/home/lucier/programs/gcc/objdirs/mainline/prev-x86_64-unknown-linux-gnu/libstdc++-v3/include -I/home/lucier/programs/gcc/objdirs/mainline/../../mainline/libstdc++-v3/libsupc++ -L/home/lucier/programs/gcc/objdirs/mainline/prev-x86_64-unknown-linux-gnu/libstdc++-v3/src/.libs -E -DNO_ASM conftest.cc > /home/lucier/programs/gcc/mainline/gmp/configure: line 11062: /home/lucier/programs/gcc/objdirs/mainline/./prev-gcc/g++: No such file or directory > > configure:11061: /lib/cpp -DNO_ASM conftest.cc > cpp: error trying to exec 'cc1plus': execvp: No such file or directory > > Am i missing something? Does /home/lucier/programs/gcc/objdirs/mainline/./prev-gcc/g++ exist, and if yes, is it a functioning executable? If it doesn't exist, that looks like the toplevel logic for which languages to build still has a loop hole for --enable-languages=c, either not properly enabling the C++ compiler for stage 1, or wrongly overriding CXX, CXX_FOR_BUILD in toplevel Makefile.tpl to point to nonexistent previous-stage C++ compiler. I don't know which is the desired one. BTW, what's the last , and why does your /lib/cpp try to spawn cc1plus? Cheers, Ralf