public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug bootstrap/40950] New: Bootstrap fails with in-tree gmp and without system C++ compiler
@ 2009-08-03 17:13 lucier at math dot purdue dot edu
2009-08-03 17:15 ` [Bug bootstrap/40950] " lucier at math dot purdue dot edu
` (8 more replies)
0 siblings, 9 replies; 10+ messages in thread
From: lucier at math dot purdue dot edu @ 2009-08-03 17:13 UTC (permalink / raw)
To: gcc-bugs
With this build script
#!/bin/tcsh
/bin/rm -rf *; ../../mainline/configure --enable-checking=release
--prefix=/pkgs/gcc-mainline-mem-stats --enable-languages=c
--enable-gather-detailed-mem-stats ; make -j 6 bootstrap >& build.log
on this OS:
heine:~/programs/gcc/objdirs/mainline> uname -a
Linux heine.math.purdue.edu 2.6.28-14-generic #47-Ubuntu SMP Sat Jul 25
01:19:55 UTC 2009 x86_64 GNU/Linux
with gmp 4.2.4 and mpfr-2.3.2 added to the mainline tree with revision
Mon Aug 3 12:57:15 EDT 2009
Mon Aug 3 16:57:15 UTC 2009 (revision 150373)
bootstrap fails when configuring gmp with the stage1 compiler with the message
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
I'll attach build.log and gmp/config.log
and without a
--
Summary: Bootstrap fails with in-tree gmp and without system C++
compiler
Product: gcc
Version: 4.5.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: bootstrap
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: lucier at math dot purdue dot edu
GCC build triplet: x86_64-unknown-linux-gnu
GCC host triplet: x86_64-unknown-linux-gnu
GCC target triplet: x86_64-unknown-linux-gnu
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40950
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug bootstrap/40950] Bootstrap fails with in-tree gmp and without system C++ compiler
2009-08-03 17:13 [Bug bootstrap/40950] New: Bootstrap fails with in-tree gmp and without system C++ compiler lucier at math dot purdue dot edu
@ 2009-08-03 17:15 ` lucier at math dot purdue dot edu
2009-08-03 17:17 ` lucier at math dot purdue dot edu
` (7 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: lucier at math dot purdue dot edu @ 2009-08-03 17:15 UTC (permalink / raw)
To: gcc-bugs
------- Comment #1 from lucier at math dot purdue dot edu 2009-08-03 17:15 -------
Created an attachment (id=18291)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=18291&action=view)
Build log of failed bootstrap
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40950
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug bootstrap/40950] Bootstrap fails with in-tree gmp and without system C++ compiler
2009-08-03 17:13 [Bug bootstrap/40950] New: Bootstrap fails with in-tree gmp and without system C++ compiler lucier at math dot purdue dot edu
2009-08-03 17:15 ` [Bug bootstrap/40950] " lucier at math dot purdue dot edu
@ 2009-08-03 17:17 ` lucier at math dot purdue dot edu
2009-08-03 17:18 ` lucier at math dot purdue dot edu
` (6 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: lucier at math dot purdue dot edu @ 2009-08-03 17:17 UTC (permalink / raw)
To: gcc-bugs
------- Comment #2 from lucier at math dot purdue dot edu 2009-08-03 17:16 -------
Created an attachment (id=18292)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=18292&action=view)
log of failed gmp configuration
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40950
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug bootstrap/40950] Bootstrap fails with in-tree gmp and without system C++ compiler
2009-08-03 17:13 [Bug bootstrap/40950] New: Bootstrap fails with in-tree gmp and without system C++ compiler lucier at math dot purdue dot edu
2009-08-03 17:15 ` [Bug bootstrap/40950] " lucier at math dot purdue dot edu
2009-08-03 17:17 ` lucier at math dot purdue dot edu
@ 2009-08-03 17:18 ` lucier at math dot purdue dot edu
2009-08-14 11:30 ` redi at gcc dot gnu dot org
` (5 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: lucier at math dot purdue dot edu @ 2009-08-03 17:18 UTC (permalink / raw)
To: gcc-bugs
------- Comment #3 from lucier at math dot purdue dot edu 2009-08-03 17:17 -------
Created an attachment (id=18293)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=18293&action=view)
build log with right content type
--
lucier at math dot purdue dot edu changed:
What |Removed |Added
----------------------------------------------------------------------------
Attachment #18291|0 |1
is obsolete| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40950
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug bootstrap/40950] Bootstrap fails with in-tree gmp and without system C++ compiler
2009-08-03 17:13 [Bug bootstrap/40950] New: Bootstrap fails with in-tree gmp and without system C++ compiler lucier at math dot purdue dot edu
` (2 preceding siblings ...)
2009-08-03 17:18 ` lucier at math dot purdue dot edu
@ 2009-08-14 11:30 ` redi at gcc dot gnu dot org
2009-08-14 12:44 ` rwild at gcc dot gnu dot org
` (4 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: redi at gcc dot gnu dot org @ 2009-08-14 11:30 UTC (permalink / raw)
To: gcc-bugs
------- Comment #4 from redi at gcc dot gnu dot org 2009-08-14 11:30 -------
I'm seeing this on RHEL5 with the gcc-4.5-20090813 snapshot, GMP 4.3.1 and MPFR
2.4.1
I have /lib/cpp present (from the cpp package) but no system compilers
installed. Instead I have GCC 4.3.4 elsewhere in my path, but in-tree gmp build
tries to use /lib/cpp instead of the cpp in my path.
configure:11168: /lib/cpp -DNO_ASM conftest.cc
cpp: error trying to exec 'cc1plus': execvp: No such file or directory
GMP should not be trying to use /lib/cpp as a C++ preprocessor during
bootstrap.
I configure with --disable-bootstrap to avoid the error.
--
redi at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |redi at gcc dot gnu dot org
Status|UNCONFIRMED |NEW
Ever Confirmed|0 |1
Last reconfirmed|0000-00-00 00:00:00 |2009-08-14 11:30:42
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40950
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug bootstrap/40950] Bootstrap fails with in-tree gmp and without system C++ compiler
2009-08-03 17:13 [Bug bootstrap/40950] New: Bootstrap fails with in-tree gmp and without system C++ compiler lucier at math dot purdue dot edu
` (3 preceding siblings ...)
2009-08-14 11:30 ` redi at gcc dot gnu dot org
@ 2009-08-14 12:44 ` rwild at gcc dot gnu dot org
2009-08-14 12:58 ` redi at gcc dot gnu dot org
` (3 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: rwild at gcc dot gnu dot org @ 2009-08-14 12:44 UTC (permalink / raw)
To: gcc-bugs
------- Comment #5 from rwild at gcc dot gnu dot org 2009-08-14 12:43 -------
Well in this case it has nothing to do with cpp, if you look at the respective
config.log file you see that earlier some in-tree g++ from an earlier stage,
/home/lucier/programs/gcc/objdirs/mainline/./prev-gcc/g++
is not found because it has not been built, thus the build chooses an
installed g++. The real error is that the toplevel fails to enable building
this g++ with your --enable-languages=c being set. All the rest is followup
failure.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40950
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug bootstrap/40950] Bootstrap fails with in-tree gmp and without system C++ compiler
2009-08-03 17:13 [Bug bootstrap/40950] New: Bootstrap fails with in-tree gmp and without system C++ compiler lucier at math dot purdue dot edu
` (4 preceding siblings ...)
2009-08-14 12:44 ` rwild at gcc dot gnu dot org
@ 2009-08-14 12:58 ` redi at gcc dot gnu dot org
2009-08-14 13:02 ` rguenth at gcc dot gnu dot org
` (2 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: redi at gcc dot gnu dot org @ 2009-08-14 12:58 UTC (permalink / raw)
To: gcc-bugs
------- Comment #6 from redi at gcc dot gnu dot org 2009-08-14 12:58 -------
I'm configuring with --enable-languages=c,c++ and still don't have a
prev-gcc/g++ (is g++ ever built in stage1?)
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40950
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug bootstrap/40950] Bootstrap fails with in-tree gmp and without system C++ compiler
2009-08-03 17:13 [Bug bootstrap/40950] New: Bootstrap fails with in-tree gmp and without system C++ compiler lucier at math dot purdue dot edu
` (5 preceding siblings ...)
2009-08-14 12:58 ` redi at gcc dot gnu dot org
@ 2009-08-14 13:02 ` rguenth at gcc dot gnu dot org
2009-08-14 13:13 ` redi at gcc dot gnu dot org
2009-08-25 12:06 ` developer at sandoe-acoustics dot co dot uk
8 siblings, 0 replies; 10+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2009-08-14 13:02 UTC (permalink / raw)
To: gcc-bugs
------- Comment #7 from rguenth at gcc dot gnu dot org 2009-08-14 13:02 -------
Use --enable-stage1-languages=c,c++
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40950
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug bootstrap/40950] Bootstrap fails with in-tree gmp and without system C++ compiler
2009-08-03 17:13 [Bug bootstrap/40950] New: Bootstrap fails with in-tree gmp and without system C++ compiler lucier at math dot purdue dot edu
` (6 preceding siblings ...)
2009-08-14 13:02 ` rguenth at gcc dot gnu dot org
@ 2009-08-14 13:13 ` redi at gcc dot gnu dot org
2009-08-25 12:06 ` developer at sandoe-acoustics dot co dot uk
8 siblings, 0 replies; 10+ messages in thread
From: redi at gcc dot gnu dot org @ 2009-08-14 13:13 UTC (permalink / raw)
To: gcc-bugs
------- Comment #8 from redi at gcc dot gnu dot org 2009-08-14 13:13 -------
Thanks, Richard.
If in-tree gmp is going to use --enable-cxx (which it seems to, even though I'm
not building with ppl and cloog-ppl) then should the c++ compiler be built in
stage1 automatically?
Alternatively, gmp's configure should look in PATH instead of assuming either
stage1 or /lib/cpp will support C++, because that assumption isn't valid.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40950
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug bootstrap/40950] Bootstrap fails with in-tree gmp and without system C++ compiler
2009-08-03 17:13 [Bug bootstrap/40950] New: Bootstrap fails with in-tree gmp and without system C++ compiler lucier at math dot purdue dot edu
` (7 preceding siblings ...)
2009-08-14 13:13 ` redi at gcc dot gnu dot org
@ 2009-08-25 12:06 ` developer at sandoe-acoustics dot co dot uk
8 siblings, 0 replies; 10+ messages in thread
From: developer at sandoe-acoustics dot co dot uk @ 2009-08-25 12:06 UTC (permalink / raw)
To: gcc-bugs
------- Comment #9 from developer at sandoe-acoustics dot co dot uk 2009-08-25 12:06 -------
(In reply to comment #7)
> Use --enable-stage1-languages=c,c++
I believe that this bug also applies to powerpc-apple-darwin8 and
i686-apple-darwin9.
the suggested remedy also works.
This was introduced between 148251 and 151057 (OK a big gap .. but) during
which time I didn't update GMP - so the change is at least in part down to gcc
build process changing.
if it's any clue /lib/cpp is not a fallback compiler install location for
Darwin - which perhaps implies that the build process has lost its idea of the
target.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40950
^ permalink raw reply [flat|nested] 10+ messages in thread
end of thread, other threads:[~2009-08-25 12:06 UTC | newest]
Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-08-03 17:13 [Bug bootstrap/40950] New: Bootstrap fails with in-tree gmp and without system C++ compiler lucier at math dot purdue dot edu
2009-08-03 17:15 ` [Bug bootstrap/40950] " lucier at math dot purdue dot edu
2009-08-03 17:17 ` lucier at math dot purdue dot edu
2009-08-03 17:18 ` lucier at math dot purdue dot edu
2009-08-14 11:30 ` redi at gcc dot gnu dot org
2009-08-14 12:44 ` rwild at gcc dot gnu dot org
2009-08-14 12:58 ` redi at gcc dot gnu dot org
2009-08-14 13:02 ` rguenth at gcc dot gnu dot org
2009-08-14 13:13 ` redi at gcc dot gnu dot org
2009-08-25 12:06 ` developer at sandoe-acoustics dot co dot uk
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).