* 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 > <stuff omitted> > 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 <stuff omitted>, and why does your /lib/cpp try to spawn cc1plus? Cheers, Ralf