public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug bootstrap/46810] New: [4.6 regression] sparc64-linux bootstrap fails with "C++ preprocessor "/lib/cpp" fails sanity check"
@ 2010-12-05 16:36 mikpe at it dot uu.se
  2010-12-05 22:09 ` [Bug bootstrap/46810] " rguenth at gcc dot gnu.org
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: mikpe at it dot uu.se @ 2010-12-05 16:36 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46810

           Summary: [4.6 regression] sparc64-linux bootstrap fails with
                    "C++ preprocessor "/lib/cpp" fails sanity check"
           Product: gcc
           Version: 4.6.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: bootstrap
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: mikpe@it.uu.se


Attempting to bootstrap 4.6-20101204 with C++ enabled on sparc64-linux fails
with:

checking how to run the C++ preprocessor... /lib/cpp
configure: error: in `/mnt/scratch/objdir46/gcc':
configure: error: C++ preprocessor "/lib/cpp" fails sanity check
See `config.log' for more details.
make[2]: *** [configure-stage1-gcc] Error 1
make[2]: Leaving directory `/mnt/scratch/objdir46'
make[1]: *** [stage1-bubble] Error 2
make[1]: Leaving directory `/mnt/scratch/objdir46'
make: *** [bootstrap] Error 2

gcc/config.log shows:

...
configure:8444: checking how to run the C++ preprocessor
configure:8471: g++ -E  conftest.cpp
/mnt/scratch/gcc-4.6-20101204/gcc/configure: line 2478: g++: command not found
...
configure:8471: g++ -E  conftest.cpp
/mnt/scratch/gcc-4.6-20101204/gcc/configure: line 2478: g++: command not found
...
configure:8471: /lib/cpp  conftest.cpp
cpp: error trying to exec 'cc1plus': execvp: No such file or directory
...

For the record, my bootstrap compiler only supports C and Ada, not C++.  (C++
should not require C++ for bootstrap, right?)

The previous weekly snapshot gcc-4.6-20101127 did not have this problem.

Configuration:
/mnt/scratch/gcc-4.6-20101204/configure --prefix=/mnt/scratch/install
--with-gmp=/home/mikpe/pkgs/linux-sparc64/gmp-4.3.2
--with-mpfr=/home/mikpe/pkgs/linux-sparc64/mpfr-2.4.2
--with-mpc=/home/mikpe/pkgs/linux-sparc64/mpc-0.8.2 --with-cpu=v8
--enable-multilib --disable-plugin --disable-lto --disable-nls
--enable-threads=posix --enable-checking=release --disable-libmudflap
--enable-languages=c,c++,objc,obj-c++,java,fortran


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

* [Bug bootstrap/46810] [4.6 regression] sparc64-linux bootstrap fails with "C++ preprocessor "/lib/cpp" fails sanity check"
  2010-12-05 16:36 [Bug bootstrap/46810] New: [4.6 regression] sparc64-linux bootstrap fails with "C++ preprocessor "/lib/cpp" fails sanity check" mikpe at it dot uu.se
@ 2010-12-05 22:09 ` rguenth at gcc dot gnu.org
  2010-12-06 11:37 ` jakub at gcc dot gnu.org
                   ` (5 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: rguenth at gcc dot gnu.org @ 2010-12-05 22:09 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46810

Richard Guenther <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |build
   Target Milestone|---                         |4.6.0

--- Comment #1 from Richard Guenther <rguenth at gcc dot gnu.org> 2010-12-05 22:08:37 UTC ---
Correct.  A C++ host compiler is not required.


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

* [Bug bootstrap/46810] [4.6 regression] sparc64-linux bootstrap fails with "C++ preprocessor "/lib/cpp" fails sanity check"
  2010-12-05 16:36 [Bug bootstrap/46810] New: [4.6 regression] sparc64-linux bootstrap fails with "C++ preprocessor "/lib/cpp" fails sanity check" mikpe at it dot uu.se
  2010-12-05 22:09 ` [Bug bootstrap/46810] " rguenth at gcc dot gnu.org
@ 2010-12-06 11:37 ` jakub at gcc dot gnu.org
  2010-12-06 11:59 ` redi at gcc dot gnu.org
                   ` (4 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: jakub at gcc dot gnu.org @ 2010-12-06 11:37 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46810

--- Comment #2 from Jakub Jelinek <jakub at gcc dot gnu.org> 2010-12-06 11:37:29 UTC ---
Created attachment 22652
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=22652
gcc46-pr46810.patch

Wouldn't something like this fix this?  If neither --enable-build-with-cxx is
given, nor --enable-languages contains go, then we shouldn't require C++
compiler and in that case AC_LANG_PUSH(C++) is wrong.


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

* [Bug bootstrap/46810] [4.6 regression] sparc64-linux bootstrap fails with "C++ preprocessor "/lib/cpp" fails sanity check"
  2010-12-05 16:36 [Bug bootstrap/46810] New: [4.6 regression] sparc64-linux bootstrap fails with "C++ preprocessor "/lib/cpp" fails sanity check" mikpe at it dot uu.se
  2010-12-05 22:09 ` [Bug bootstrap/46810] " rguenth at gcc dot gnu.org
  2010-12-06 11:37 ` jakub at gcc dot gnu.org
@ 2010-12-06 11:59 ` redi at gcc dot gnu.org
  2010-12-06 18:11 ` pinskia at gcc dot gnu.org
                   ` (3 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: redi at gcc dot gnu.org @ 2010-12-06 11:59 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46810

--- Comment #3 from Jonathan Wakely <redi at gcc dot gnu.org> 2010-12-06 11:59:26 UTC ---
would that also address PR 40950 ?


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

* [Bug bootstrap/46810] [4.6 regression] sparc64-linux bootstrap fails with "C++ preprocessor "/lib/cpp" fails sanity check"
  2010-12-05 16:36 [Bug bootstrap/46810] New: [4.6 regression] sparc64-linux bootstrap fails with "C++ preprocessor "/lib/cpp" fails sanity check" mikpe at it dot uu.se
                   ` (2 preceding siblings ...)
  2010-12-06 11:59 ` redi at gcc dot gnu.org
@ 2010-12-06 18:11 ` pinskia at gcc dot gnu.org
  2010-12-06 20:12 ` ian at airs dot com
                   ` (2 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: pinskia at gcc dot gnu.org @ 2010-12-06 18:11 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46810

--- Comment #4 from Andrew Pinski <pinskia at gcc dot gnu.org> 2010-12-06 18:11:49 UTC ---
(In reply to comment #2)
> Created attachment 22652 [details]
> gcc46-pr46810.patch
> 
> Wouldn't something like this fix this?  If neither --enable-build-with-cxx is
> given, nor --enable-languages contains go, then we shouldn't require C++
> compiler and in that case AC_LANG_PUSH(C++) is wrong.

Go should not require a C++ compiler for the first stage either ....


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

* [Bug bootstrap/46810] [4.6 regression] sparc64-linux bootstrap fails with "C++ preprocessor "/lib/cpp" fails sanity check"
  2010-12-05 16:36 [Bug bootstrap/46810] New: [4.6 regression] sparc64-linux bootstrap fails with "C++ preprocessor "/lib/cpp" fails sanity check" mikpe at it dot uu.se
                   ` (3 preceding siblings ...)
  2010-12-06 18:11 ` pinskia at gcc dot gnu.org
@ 2010-12-06 20:12 ` ian at airs dot com
  2010-12-07 21:04 ` ian at gcc dot gnu.org
  2010-12-07 21:09 ` ian at airs dot com
  6 siblings, 0 replies; 8+ messages in thread
From: ian at airs dot com @ 2010-12-06 20:12 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46810

Ian Lance Taylor <ian at airs dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |ian at airs dot com

--- Comment #5 from Ian Lance Taylor <ian at airs dot com> 2010-12-06 20:12:27 UTC ---
I must say it's exceptionally lame that autoconf doesn't handle this correctly.
 It should just fail the tests if there is no C++ compiler.  I will see if
there is a simple way to make the configure script do that.


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

* [Bug bootstrap/46810] [4.6 regression] sparc64-linux bootstrap fails with "C++ preprocessor "/lib/cpp" fails sanity check"
  2010-12-05 16:36 [Bug bootstrap/46810] New: [4.6 regression] sparc64-linux bootstrap fails with "C++ preprocessor "/lib/cpp" fails sanity check" mikpe at it dot uu.se
                   ` (4 preceding siblings ...)
  2010-12-06 20:12 ` ian at airs dot com
@ 2010-12-07 21:04 ` ian at gcc dot gnu.org
  2010-12-07 21:09 ` ian at airs dot com
  6 siblings, 0 replies; 8+ messages in thread
From: ian at gcc dot gnu.org @ 2010-12-07 21:04 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46810

--- Comment #6 from ian at gcc dot gnu.org <ian at gcc dot gnu.org> 2010-12-07 21:04:36 UTC ---
Author: ian
Date: Tue Dec  7 21:04:33 2010
New Revision: 167572

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=167572
Log:
    PR bootstrap/46810
    * configure.ac: Disable AC_MSG_ERROR while looking for the C++
    preprocessor.
    * configure: Rebuild.

Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/configure
    trunk/gcc/configure.ac


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

* [Bug bootstrap/46810] [4.6 regression] sparc64-linux bootstrap fails with "C++ preprocessor "/lib/cpp" fails sanity check"
  2010-12-05 16:36 [Bug bootstrap/46810] New: [4.6 regression] sparc64-linux bootstrap fails with "C++ preprocessor "/lib/cpp" fails sanity check" mikpe at it dot uu.se
                   ` (5 preceding siblings ...)
  2010-12-07 21:04 ` ian at gcc dot gnu.org
@ 2010-12-07 21:09 ` ian at airs dot com
  6 siblings, 0 replies; 8+ messages in thread
From: ian at airs dot com @ 2010-12-07 21:09 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46810

Ian Lance Taylor <ian at airs dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |FIXED

--- Comment #7 from Ian Lance Taylor <ian at airs dot com> 2010-12-07 21:08:43 UTC ---
This should be fixed now.  Thanks for reporting it.

Note that we are considering shifting gcc to be built using C++ by default,
which will fail on your system until you install a C++ compiler (e.g., by
installing an earlier version of gcc).

This does not fix PR 40950, which must be fixed in some other way.


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

end of thread, other threads:[~2010-12-07 21:09 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-12-05 16:36 [Bug bootstrap/46810] New: [4.6 regression] sparc64-linux bootstrap fails with "C++ preprocessor "/lib/cpp" fails sanity check" mikpe at it dot uu.se
2010-12-05 22:09 ` [Bug bootstrap/46810] " rguenth at gcc dot gnu.org
2010-12-06 11:37 ` jakub at gcc dot gnu.org
2010-12-06 11:59 ` redi at gcc dot gnu.org
2010-12-06 18:11 ` pinskia at gcc dot gnu.org
2010-12-06 20:12 ` ian at airs dot com
2010-12-07 21:04 ` ian at gcc dot gnu.org
2010-12-07 21:09 ` ian at airs dot com

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).