int compiler error bootstrapping on openserver [also onm68k-next-nextstep3]
Toon Moene
toon@moene.indiv.nluug.nl
Sat Apr 11 06:15:00 GMT 1998
Robert wrote:
> host==target==i486-pc-sco3.2v5.0.4
> The make proceeds OK until we get to:
> include/typeinfo: At top level:
> include/typeinfo:64: Internal compiler error.
> include/typeinfo:64: Please submit a full bug report to
> `egcs-bugs@cygnus.com'.
Same over here, after updating this morning (ca. 10:00 UTC), on
m68k-next-nextstep3, so it's probably pretty generic:
(gdb) run tinfo.ii -quiet -dumpbase tinfo.cc -g -g1 -O2 -O2 -O2 -W
-Wall -version -fexceptions -o /usr/tmp/cc027905.s
Starting program:
/Users/toon/Unix/compilers/snapshots/obj/gcc/cc1plus tinfo.ii
-quiet -dumpbase tinfo.cc -g -g1 -O2 -O2 -O2 -W -Wall -version
-fexceptions -o /usr/tmp/cc027905.s
GNU C++ version egcs-2.91.22 980404 (gcc2 ss-980401 experimental)
(m68k-next-nextstep3) compiled by GNU C version egcs-2.91.22 980404
(gcc2 ss-980401 experimental).
.../../egcs/gcc/cp/tinfo.cc: In method `void *
__class_type_info::dcast(const class type_info &, int, void *, const
class type_info * = 0, void * = 0) const':
.../../egcs/gcc/cp/tinfo.cc:80: warning: comparison between signed
and unsigned
Program generated(1): Memory access exception on address 0x10
(protection failure).
Reading in symbols for ../../../egcs/gcc/cp/decl2.c...done.
0x2a0f2 in mark_vtable_entries (decl=void) at
.../../../egcs/gcc/cp/decl2.c:2359
2359 tree fnaddr = (flag_vtable_thunks ? TREE_VALUE
(TREE_CHAIN (entries))
(gdb) p flag_vtable_thunks
$1 = 0
(gdb) list
2354 {
2355 tree entries = CONSTRUCTOR_ELTS (DECL_INITIAL (decl));
2356
2357 if (flag_rtti)
2358 {
2359 tree fnaddr = (flag_vtable_thunks ? TREE_VALUE
(TREE_CHAIN (entries))
2360 : FNADDR_FROM_VTABLE_ENTRY (TREE_VALUE
(entries)));
2361 tree fn = TREE_OPERAND (fnaddr, 0);
2362 TREE_ADDRESSABLE (fn) = 1;
2363 mark_used (fn);
(gdb) p *entries
Attempt to take contents of a non-pointer value.
(gdb) p entries
$2 = void
(gdb) bt
Reading in symbols for ../../../egcs/gcc/cp/parse.c...done.
Reading in symbols for ../../egcs/gcc/toplev.c...done.
#0 0x2a0f2 in mark_vtable_entries (decl=void) at
.../../../egcs/gcc/cp/decl2.c:2359
#1 0x2a46e in finish_vtable_vardecl (prev=void, vars=void) at
.../../../egcs/gcc/cp/decl2.c:2534
#2 0x2a51e in walk_vtables (typedecl_fn=0, vardecl_fn=0x2a3fc
<finish_vtable_vardecl>) at ../../../egcs/gcc/cp/decl2.c:2600
#3 0x2afa2 in finish_file () at ../../../egcs/gcc/cp/decl2.c:3138
#4 0x37a3e in yyparse () at parse.y:336
#5 0x5d026 in compile_file (name=0x3fffbe5 "tinfo.ii") at
.../../egcs/gcc/toplev.c:2519
#6 0x5ef96 in main (argc=16, argv=0x1, envp=0x3fffb80) at
.../../egcs/gcc/toplev.c:4340
(gdb)
Hope someone can make something out of this - it's C++, so my NIH
alarm immediately closed down all relevant brain capacity ...
Regards,
Toon.
More information about the Gcc
mailing list