This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

bootstrap failure with current CVS (G++ broken)



I just got in i686-linux-gnu with current CVS version a bootstrap
failure, it seems that G++ is broken.

make bootstrap failed in libstdc++ with:

checking for GNU make... make
checking for g++ that will successfully compile libstdc++-v3... configure: error: please upgrade to GCC 3.0 or above
make[1]: *** [configure-target-libstdc++-v3] Error 1
make[1]: Leaving directory `/builds/gcc/gcc-3.1-devel'
make: *** [bootstrap] Error 2

Looking at config.log I noticed:

configure:2577: checking for g++ that will successfully compile libstdc++-v3
configure:2598: /builds/gcc/gcc-3.1-devel/gcc/xgcc -B/builds/gcc/gcc-3.1-devel/gcc/ -nostdinc++  -L/builds/gcc/gcc-3.1-devel/i686-pc-linux-gnu/libstdc++-v3/src -L/builds/gcc/gcc-3.1-devel/i686-pc-linux-gnu/libstdc++-v3/src/.libs -B/opt/gcc-3.1-devel/i686-pc-linux-gnu/bin/ -B/opt/gcc-3.1-devel/i686-pc-linux-gnu/lib/ -isystem /opt/gcc-3.1-devel/i686-pc-linux-gnu/include -c -g -O2 -D_GNU_SOURCE  conftest.C 1>&5
configure:2595: Internal error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://www.gnu.org/software/gcc/bugs.html> for instructions.
configure: failed program was:
#line 2587 "configure"
#include "confdefs.h"

int main() {

  #if __GNUC__ < 3
    not_ok
  #endif
  
; return 0; }


Running this by hand with -v -save-temps gives:
gromit:/builds/gcc/gcc-3.1-devel/i686-pc-linux-gnu/libstdc++-v3:[1]$ /builds/gcc/gcc-3.1-devel/gcc/xgcc -B/builds/gcc/gcc-3.1-devel/gcc/ -nostdinc++  -L/builds/gcc/gcc-3.1-devel/i686-pc-linux-gnu/libstdc++-v3/src -L/builds/gcc/gcc-3.1-devel/i686-pc-linux-gnu/libstdc++-v3/src/.libs -B/opt/gcc-3.1-devel/i686-pc-linux-gnu/bin/ -B/opt/gcc-3.1-devel/i686-pc-linux-gnu/lib/ -isystem /opt/gcc-3.1-devel/i686-pc-linux-gnu/include -c -g -O2 -D_GNU_SOURCE  conftest.C -v -save-temps
Reading specs from /builds/gcc/gcc-3.1-devel/gcc/specs
Configured with: /cvs/gcc/configure --prefix=/opt/gcc-3.1-devel --enable-shared --enable-threads=posix --enable-clocale=gnu --with-gnu-as --with-gnu-ld --disable-nls --with-system-zlib --enable-languages=c,objc,c++,f77,java
Thread model: posix
gcc version 3.1 20010722 (experimental)
 /builds/gcc/gcc-3.1-devel/gcc/cpp0 -lang-c++ -D__GNUG__=3 -D__DEPRECATED -D__EXCEPTIONS -D__GXX_ABI_VERSION=100 -nostdinc++ -v -iprefix /builds/gcc/gcc-3.1-devel/gcc/../lib/gcc-lib/i686-pc-linux-gnu/3.1/ -isystem /builds/gcc/gcc-3.1-devel/gcc/include -isystem /opt/gcc-3.1-devel/i686-pc-linux-gnu/bin/include -isystem /opt/gcc-3.1-devel/i686-pc-linux-gnu/lib/include -D__GNUC__=3 -D__GNUC_MINOR__=1 -D__GNUC_PATCHLEVEL__=0 -D__ELF__ -Dunix -Dlinux -D__ELF__ -D__unix__ -D__linux__ -D__unix -D__linux -Asystem=posix -D__OPTIMIZE__ -D__STDC_HOSTED__=1 -D_GNU_SOURCE -Acpu=i386 -Amachine=i386 -Di386 -D__i386 -D__i386__ -D__tune_i686__ -D__tune_pentiumpro__ -D_GNU_SOURCE -isystem /opt/gcc-3.1-devel/i686-pc-linux-gnu/include conftest.C conftest.ii
ignoring nonexistent directory "/opt/gcc-3.1-devel/i686-pc-linux-gnu/bin/include"
ignoring nonexistent directory "/opt/gcc-3.1-devel/i686-pc-linux-gnu/lib/include"
ignoring nonexistent directory "/opt/gcc-3.1-devel/i686-pc-linux-gnu/include"
GNU CPP version 3.1 20010722 (experimental) (cpplib) (i386 Linux/ELF)
ignoring nonexistent directory "/builds/gcc/gcc-3.1-devel/lib/gcc-lib/i686-pc-linux-gnu/3.1/include"
ignoring nonexistent directory "/builds/gcc/gcc-3.1-devel/lib/gcc-lib/i686-pc-linux-gnu/3.1/../../../../i686-pc-linux-gnu/include"
ignoring nonexistent directory "/opt/gcc-3.1-devel/i686-pc-linux-gnu/include"
#include "..." search starts here:
#include <...> search starts here:
 /builds/gcc/gcc-3.1-devel/gcc/include
 /usr/local/include
 /opt/gcc-3.1-devel/lib/gcc-lib/i686-pc-linux-gnu/3.1/include
 /usr/include
End of search list.
 /builds/gcc/gcc-3.1-devel/gcc/cc1plus -fpreprocessed conftest.ii -quiet -dumpbase conftest.C -g -O2 -version -o conftest.s
GNU CPP version 3.1 20010722 (experimental) (cpplib) (i386 Linux/ELF)
GNU C++ version 3.1 20010722 (experimental) (i686-pc-linux-gnu)
        compiled by GNU C version 3.1 20010722 (experimental).
configure:2595: Internal error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://www.gnu.org/software/gcc/bugs.html> for instructions.

And gdb shows:

gromit:/builds/gcc/gcc-3.1-devel/i686-pc-linux-gnu/libstdc++-v3:[1]$ gdb  /builds/gcc/gcc-3.1-devel/gcc/cc1plus
GNU gdb 5.0
Copyright 2000 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "i686-pc-linux-gnu"...
(gdb) r -fpreprocessed conftest.ii -quiet -dumpbase conftest.C -g -O2 -version -o conftest.s
GNU CPP version 3.1 20010722 (experimental) (cpplib) (i386 Linux/ELF)
GNU C++ version 3.1 20010722 (experimental) (i686-pc-linux-gnu)
        compiled by GNU C version 3.1 20010722 (experimental).

Program received signal SIGSEGV, Segmentation fault.
0x83434bb in host_integerp (t=0x0, pos=1) at /cvs/gcc/gcc/tree.c:3509
3509      return (TREE_CODE (t) == INTEGER_CST
(gdb) bt
#0  0x83434bb in host_integerp (t=0x0, pos=1) at /cvs/gcc/gcc/tree.c:3509
#1  0x838dc65 in dbxout_symbol (decl=0x4016fca8, local=0)
    at /cvs/gcc/gcc/dbxout.c:1840
#2  0x83899d9 in dbxout_global_decl (decl=0x4016fca8)
    at /cvs/gcc/gcc/dbxout.c:633
#3  0x8334a87 in check_global_declarations (vec=0xbfffe8c8, len=1)
    at /cvs/gcc/gcc/toplev.c:2054
#4  0x805dcaa in wrapup_globals_for_namespace (namespace=0x4016cec4, 
    data=0xbfffe98c) at /cvs/gcc/gcc/cp/decl.c:1914
#5  0x805da2f in walk_namespaces_r (namespace=0x4016cec4, 
    f=0x805dc30 <wrapup_globals_for_namespace>, data=0xbfffe98c)
    at /cvs/gcc/gcc/cp/decl.c:1794
#6  0x805da8a in walk_namespaces_r (namespace=0x4001e000, 
    f=0x805dc30 <wrapup_globals_for_namespace>, data=0xbfffe98c)
    at /cvs/gcc/gcc/cp/decl.c:1811
#7  0x805db21 in walk_namespaces (f=0x805dc30 <wrapup_globals_for_namespace>, 
    data=0xbfffe98c) at /cvs/gcc/gcc/cp/decl.c:1825
#8  0x80dfbdd in finish_file () at /cvs/gcc/gcc/cp/decl2.c:3691
#9  0x80f7505 in yyparse_1 () at /usr/share/bison.simple:445
#10 0x817816a in yyparse () at /cvs/gcc/gcc/c-lex.c:155
#11 0x833509b in compile_file (name=0xbffff7ef "conftest.ii")
    at /cvs/gcc/gcc/toplev.c:2311
#12 0x8339ab7 in toplev_main (argc=11, argv=0xbffff634)
    at /cvs/gcc/gcc/toplev.c:4893
#13 0x40047c6f in __libc_start_main () from /lib/libc.so.6

Andreas
-- 
 Andreas Jaeger
  SuSE Labs aj@suse.de
   private aj@arthur.inka.de
    http://www.suse.de/~aj


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]