public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
* Bootstrap failure configuring in-tree gmp in mainline
@ 2009-07-15 20:38 Bradley Lucier
  2009-07-25 11:18 ` Ralf Wildenhues
  2009-07-25 16:54 ` Paolo Bonzini
  0 siblings, 2 replies; 8+ messages in thread
From: Bradley Lucier @ 2009-07-15 20:38 UTC (permalink / raw)
  To: gcc; +Cc: Bradley Lucier

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? 

Brad

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Bootstrap failure configuring in-tree gmp in mainline
  2009-07-15 20:38 Bootstrap failure configuring in-tree gmp in mainline Bradley Lucier
@ 2009-07-25 11:18 ` Ralf Wildenhues
  2009-07-25 16:47   ` Bradley Lucier
  2009-07-25 16:54 ` Paolo Bonzini
  1 sibling, 1 reply; 8+ messages in thread
From: Ralf Wildenhues @ 2009-07-25 11:18 UTC (permalink / raw)
  To: Bradley Lucier; +Cc: gcc

* 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

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Bootstrap failure configuring in-tree gmp in mainline
  2009-07-25 11:18 ` Ralf Wildenhues
@ 2009-07-25 16:47   ` Bradley Lucier
  0 siblings, 0 replies; 8+ messages in thread
From: Bradley Lucier @ 2009-07-25 16:47 UTC (permalink / raw)
  To: Ralf Wildenhues; +Cc: Bradley Lucier, gcc

Thanks for your reply.

On Jul 25, 2009, at 7:18 AM, Ralf Wildenhues wrote:

> Does /home/lucier/programs/gcc/objdirs/mainline/./prev-gcc/g++ exist,

No.

> 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?

I put gmp/config.log at

http://www.math.purdue.edu/~lucier/bugzilla/10/gmp-config.log

and the build log (which is a bit confusing, I did a "make -j 6  
bootstrap > build.log" and then "make bootstrap >>& build.log" (in  
tcsh) to get a clearer message of the error at the end of the log) at

http://www.math.purdue.edu/~lucier/bugzilla/10/build.log

I tried building gcc like this on another machine, and it gets more  
confusing, at least to me.  When I put gmp-4.2.4 or gmp-4.3.0 in-tree  
on RHEL 5 with

leibniz-4% uname -a
Linux leibniz.math.purdue.edu 2.6.18-128.1.16.el5xen #1 SMP Fri Jun  
26 11:10:46 EDT 2009 x86_64 x86_64 x86_64 GNU/Linux

it works; when I put either in-tree on Ubuntu 9.04 with

heine:~/programs/gcc/objdirs/mainline> uname -a
Linux heine.math.purdue.edu 2.6.28-13-generic #45-Ubuntu SMP Tue Jun  
30 22:12:12 UTC 2009 x86_64 GNU/Linux

it fails.

Brad

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Bootstrap failure configuring in-tree gmp in mainline
  2009-07-15 20:38 Bootstrap failure configuring in-tree gmp in mainline Bradley Lucier
  2009-07-25 11:18 ` Ralf Wildenhues
@ 2009-07-25 16:54 ` Paolo Bonzini
  2009-07-25 18:16   ` Bradley Lucier
  2009-08-06  8:42   ` Bradley Lucier
  1 sibling, 2 replies; 8+ messages in thread
From: Paolo Bonzini @ 2009-07-25 16:54 UTC (permalink / raw)
  To: Bradley Lucier, GCC Mailing List, Ian Lance Taylor


> Am i missing something?

No, it is a bug due to the build-with-C++ patches.  Please file a PR 
and, in the meanwhile, try --enable-stage1-languages=c,c++ or 
--enable-build-with-cxx.

Thanks!

Paolo

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Bootstrap failure configuring in-tree gmp in mainline
  2009-07-25 16:54 ` Paolo Bonzini
@ 2009-07-25 18:16   ` Bradley Lucier
  2009-07-25 18:18     ` Bradley Lucier
  2009-08-06  8:42   ` Bradley Lucier
  1 sibling, 1 reply; 8+ messages in thread
From: Bradley Lucier @ 2009-07-25 18:16 UTC (permalink / raw)
  To: Paolo Bonzini; +Cc: Bradley Lucier, GCC Mailing List, Ian Lance Taylor


On Jul 25, 2009, at 12:54 PM, Paolo Bonzini wrote:

>> Am i missing something?
>
> No, it is a bug due to the build-with-C++ patches.  Please file a  
> PR and, in the meanwhile, try --enable-stage1-languages=c,c++

That seemed to work, thanks, bootstrap has gotten past my old problem.

> or --enable-build-with-cxx.

This fails with

> Configuring stage 1 in ./libcpp
> <stuff omitted>
> checking dependency style of g++... none
> configure: error: no usable dependency style found
> make[2]: *** [configure-stage1-libcpp] Error 1
> make[2]: Leaving directory `/home/lucier/programs/gcc/objdirs/ 
> mainline'
> make[1]: *** [stage1-bubble] Error 2
> make[1]: Leaving directory `/home/lucier/programs/gcc/objdirs/ 
> mainline'
> make: *** [bootstrap] Error 2


Brad

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Bootstrap failure configuring in-tree gmp in mainline
  2009-07-25 18:16   ` Bradley Lucier
@ 2009-07-25 18:18     ` Bradley Lucier
  2009-07-25 18:26       ` Paolo Bonzini
  0 siblings, 1 reply; 8+ messages in thread
From: Bradley Lucier @ 2009-07-25 18:18 UTC (permalink / raw)
  To: Paolo Bonzini; +Cc: GCC Mailing List, Ian Lance Taylor, Bradley Lucier


On Jul 25, 2009, at 2:16 PM, Bradley Lucier wrote:

>
>
> On Jul 25, 2009, at 12:54 PM, Paolo Bonzini wrote:
>
>>> Am i missing something?
>>
>> No, it is a bug due to the build-with-C++ patches.  Please file a  
>> PR and, in the meanwhile, try --enable-stage1-languages=c,c++
>
> That seemed to work, thanks, bootstrap has gotten past my old problem.

Ah, I was too quick, it failed again at the next bootstrap stage.

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Bootstrap failure configuring in-tree gmp in mainline
  2009-07-25 18:18     ` Bradley Lucier
@ 2009-07-25 18:26       ` Paolo Bonzini
  0 siblings, 0 replies; 8+ messages in thread
From: Paolo Bonzini @ 2009-07-25 18:26 UTC (permalink / raw)
  To: Bradley Lucier; +Cc: Paolo Bonzini, GCC Mailing List, Ian Lance Taylor


>>>> Am i missing something?
>>>
>>> No, it is a bug due to the build-with-C++ patches. Please file a PR
>>> and, in the meanwhile, try --enable-stage1-languages=c,c++
>>
>> That seemed to work, thanks, bootstrap has gotten past my old problem.
>
> Ah, I was too quick, it failed again at the next bootstrap stage.

Ah sorry I didn't understand you were doing --enable-languages=c.  You 
need to specify c++ there too.

Paolo

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Bootstrap failure configuring in-tree gmp in mainline
  2009-07-25 16:54 ` Paolo Bonzini
  2009-07-25 18:16   ` Bradley Lucier
@ 2009-08-06  8:42   ` Bradley Lucier
  1 sibling, 0 replies; 8+ messages in thread
From: Bradley Lucier @ 2009-08-06  8:42 UTC (permalink / raw)
  To: Paolo Bonzini; +Cc: Bradley Lucier, GCC Mailing List, Ian Lance Taylor


On Jul 25, 2009, at 12:54 PM, Paolo Bonzini wrote:

>
>
>> Am i missing something?
>
> No, it is a bug due to the build-with-C++ patches.  Please file a  
> PR and, in the meanwhile, try --enable-stage1-languages=c,c++ or -- 
> enable-build-with-cxx.

I filed PR40950 for this.

I also filed PR40968 for an ICE on bootstrap when configured with -- 
enable-gather-detailed-mem-stats.

Brad

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2009-08-05 22:28 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-07-15 20:38 Bootstrap failure configuring in-tree gmp in mainline Bradley Lucier
2009-07-25 11:18 ` Ralf Wildenhues
2009-07-25 16:47   ` Bradley Lucier
2009-07-25 16:54 ` Paolo Bonzini
2009-07-25 18:16   ` Bradley Lucier
2009-07-25 18:18     ` Bradley Lucier
2009-07-25 18:26       ` Paolo Bonzini
2009-08-06  8:42   ` Bradley Lucier

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).