19991122 snapshot build fails compiling libio/isscan.cc on alpha-dec-osf4.0e

Brown, Rodney rodneybrown@pmsc.com
Thu Dec 2 23:45:00 GMT 1999


Title: RE: 19991122 snapshot build fails compiling libio/isscan.cc on alpha-dec-osf4.0e





libio/isscan.cc failed to compile on alpha-dec-osf4.0e
starting at the 19991122 snapshot.
The isscan.ii compiled without complain on UnixWare 7.1 (Intel).


sh-2.03$ /user/rand/rdb/src/egcs-19991201.obj/gcc/cc1plus isscan.ii -quiet \
    -dumpbase isscan.cc -g -O2 -version -fno-implicit-templates -o isscan.s
GNU C++ version 2.96 19991201 (experimental) (alpha-dec-osf4.0e) compiled by GNU C version 2.96 19991201 (experimental).

../../../egcs-19991201/libio/isscan.cc: In method `istream &istream::scan (const char *, ...)':
../../../egcs-19991201/libio/isscan.cc:36: could not convert `ap' to `__va_list_tag'
../../../egcs-19991201/libio/isscan.cc: In method `istream &istream::vscan (const char *, __va_list_tag)':
../../../egcs-19991201/libio/isscan.cc:50: could not convert `args' to `__va_list_tag'
sh-2.03$ /user/rand/rdb/src/egcs-19991122.obj/gcc/cc1plus isscan.ii -quiet \
    -dumpbase isscan.cc -g -O2 -version -fno-implicit-templates -o isscan.s
GNU C++ version 2.96 19991122 (experimental) (alpha-dec-osf4.0e) compiled by GNU C version 2.96 19991122 (experimental).

../../../egcs-19991201/libio/isscan.cc: In method `istream &istream::scan (const char *, ...)':
../../../egcs-19991201/libio/isscan.cc:36: could not convert `ap' to `__va_list_tag'
../../../egcs-19991201/libio/isscan.cc: In method `istream &istream::vscan (const char *, __va_list_tag)':
../../../egcs-19991201/libio/isscan.cc:50: could not convert `args' to `__va_list_tag'
sh-2.03$ /user/rand/rdb/src/egcs-19991110.obj/gcc/cc1plus isscan.ii -quiet \
    -dumpbase isscan.cc -g -O2 -version -fno-implicit-templates -o isscan.s
GNU C++ version 2.96 19991110 (experimental) (alpha-dec-osf4.0e) compiled by GNU C version 2.96 19991110 (experimental).

sh-2.03$ gdb /user/rand/rdb/src/egcs-19991201.obj/gcc/cc1plus
GNU gdb 4.18
Copyright 1998 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 "alpha-dec-osf4.0e"...
(gdb) b cp_error
Breakpoint 1 at 0x120204fb0: file ../../../egcs-19991201/gcc/cp/errfn.c, line 206.
(gdb) b convert_like
Breakpoint 2 at 0x1201e3b3c: file ../../../egcs-19991201/gcc/cp/call.c, line 3612.
(gdb) ign 2 10000
Will ignore next 10000 crossings of breakpoint 2.
(gdb) b *0x1201e4064
Breakpoint 3 at 0x1201e4064: file ../../../egcs-19991201/gcc/cp/call.c, line 3742.
(gdb) r isscan.ii -quiet -dumpbase isscan.cc -g -O2 -version -fno-implicit-templates -o isscan.s
Starting program: /user/rand/rdb/src/egcs-19991201.obj/gcc/cc1plus isscan.ii -quiet -dumpbase isscan.cc -g -O2 -version -fno-implicit-templates -o isscan.s

GNU C++ version 2.96 19991201 (experimental) (alpha-dec-osf4.0e) compiled by GNU C version 2.96 19991201 (experimental).

Breakpoint 1, cp_error (format=0x3ffc0085e30 "\200")
    at ../../../egcs-19991201/gcc/cp/errfn.c:206
206       if (! cp_silent)
(gdb) bt
#0  cp_error (format=0x3ffc0085e30 "\200")
    at ../../../egcs-19991201/gcc/cp/errfn.c:206
#1  0x1201e4040 in convert_like (convs=0x1e8080, expr=0x1a8d00)
    at ../../../egcs-19991201/gcc/cp/call.c:3727
#2  0x1201e48cc in build_over_call (cand=0x1e8080, args=0x1e7f00, flags=3)
    at ../../../egcs-19991201/gcc/cp/call.c:3986
#3  0x1201e57f4 in build_new_method_call (instance=0x1e7d00, name=0x23a680, 
    args=0x1e7dc0, basetype_path=0x1400966d0, flags=3)
    at ../../../egcs-19991201/gcc/cp/call.c:4347
#4  0x1201dc460 in build_method_call (instance=0x1e7d00, name=0x23a680, 
    parms=0x1e7dc0, basetype_path=0xffffffffffffffff, flags=536865424)
    at ../../../egcs-19991201/gcc/cp/call.c:502
#5  0x120283b70 in finish_object_call_expr (fn=0x3ffc00861b0, 
    object=0x1400321f0, args=0x24400)
    at ../../../egcs-19991201/gcc/cp/semantics.c:1539
#6  0x120248f00 in yyparse () at parse.y:1501
#7  0x1200370b0 in compile_file (name=0x0)
    at ../../egcs-19991201/gcc/toplev.c:3217
#8  0x12003bb14 in main (argc=11, argv=0x11ffffca8)
    at ../../egcs-19991201/gcc/toplev.c:5570
(gdb) up 1
#1  0x1201e4040 in convert_like (convs=0x1e8080, expr=0x1a8d00)
    at ../../../egcs-19991201/gcc/cp/call.c:3727
3727                  cp_error ("could not convert `%E' to `%T'",
(gdb) l
3722                    else
3723                      cp_error ("could not convert `%E' (with incomplete type `%T') to `%T'",
3724                                expr, TREE_TYPE (expr), TREE_TYPE (convs));
3725                  }
3726                else
3727                  cp_error ("could not convert `%E' to `%T'",
3728                            expr, TREE_TYPE (convs));
3729                return error_mark_node;
3730              }
3731            return cvt_expr;
(gdb) l
3732          }
3733    
3734        case REF_BIND:
3735          {
3736            tree ref_type = TREE_TYPE (convs);
3737    
3738            /* If necessary, create a temporary.  */
3739            if (NEED_TEMPORARY_P (convs))
3740              {
3741                tree type = TREE_TYPE (TREE_OPERAND (convs, 0));
(gdb) l
3742                expr = build_target_expr_with_type (expr, type);
3743              }
3744    
3745            /* Take the address of the thing to which we will bind the
3746               reference.  */
3747            expr = build_unary_op (ADDR_EXPR, expr, 1);
3748            if (expr == error_mark_node)
3749              return error_mark_node;
3750    
3751            /* Convert it to a pointer to the type referred to by the
(gdb) p debug_tree(convs)
 <rvalue_conv 1e8080
    type <record_type 24400 __va_list_tag
        permanent type_5 TI
        size <integer_cst 21140 constant permanent 128>
        align 64 symtab 23 alias set -1
        fields <field_decl 24800 __base type <pointer_type 23a00>
           
            unsigned permanent DI file <internal> line 0
            size <integer_cst 20ac0 constant permanent 64>
            align 64
            bitpos <integer_cst 20fc0 constant permanent 0> context <record_type 24400 __va_list_tag> arguments <integer_cst 20fc0 0> chain <field_decl 24700 __offset>>

        n_parents 0 use_template=0 interface-unknown
        pointer_to_this <pointer_type 24500> chain <type_decl 24600 __va_list_tag>>
   
   
    arg 0 <identity_conv 1e8040 type <record_type 24400 __va_list_tag>
       
       
        arg 0 <var_decl 1a8d00 ap type <record_type 51f00 _G_va_list>
           
            addressable used common TI file ../../../egcs-19991201/libio/isscan.cc line 30 size <integer_cst 21140 128>
            align 64 context <function_decl 4cd500 scan> chain <var_decl 1a8900 __func__>>>>
$1 = void
(gdb) p debug_tree(expr)
 <var_decl 1a8d00 ap
    type <record_type 51f00 _G_va_list
        permanent type_5 TI
        size <integer_cst 21140 constant permanent 128>
        align 64 symtab 54 alias set -1
        fields <field_decl 24800 __base type <pointer_type 23a00>
           
            unsigned permanent DI file <internal> line 0
            size <integer_cst 20ac0 constant permanent 64>
            align 64
            bitpos <integer_cst 20fc0 constant permanent 0> context <record_type 24400 __va_list_tag> arguments <integer_cst 20fc0 0> chain <field_decl 24700 __offset>>

        n_parents 0 use_template=0 interface-unknown
        pointer_to_this <pointer_type 1a9300> chain <type_decl 24600 __va_list_tag>>
   
    addressable used common TI file ../../../egcs-19991201/libio/isscan.cc line 30 size <integer_cst 21140 128>
    align 64 context <function_decl 4cd500 scan> chain <var_decl 1a8900 __func__>>
$2 = void
(gdb) c
Continuing.
../../../egcs-19991201/libio/isscan.cc: In method `istream &istream::scan (const char *, ...)':
../../../egcs-19991201/libio/isscan.cc:36: could not convert `ap' to `__va_list_tag'


Breakpoint 1, cp_error (format=0x3ffc0085e30 "\200")
    at ../../../egcs-19991201/gcc/cp/errfn.c:206
206       if (! cp_silent)
(gdb) bt
#0  cp_error (format=0x3ffc0085e30 "\200")
    at ../../../egcs-19991201/gcc/cp/errfn.c:206
#1  0x1201e4040 in convert_like (convs=0x201300, expr=0x1fe000)
    at ../../../egcs-19991201/gcc/cp/call.c:3727
#2  0x1201e48cc in build_over_call (cand=0x201300, args=0x201140, flags=3)
    at ../../../egcs-19991201/gcc/cp/call.c:3986
#3  0x1201e57f4 in build_new_method_call (instance=0x200f40, name=0x23a680, 
    args=0x201000, basetype_path=0x140096790, flags=3)
    at ../../../egcs-19991201/gcc/cp/call.c:4347
#4  0x1201dc460 in build_method_call (instance=0x200f40, name=0x23a680, 
    parms=0x201000, basetype_path=0xffffffffffffffff, flags=536865424)
    at ../../../egcs-19991201/gcc/cp/call.c:502
#5  0x120283b70 in finish_object_call_expr (fn=0x3ffc00861b0, 
    object=0x1400321f0, args=0x24400)
    at ../../../egcs-19991201/gcc/cp/semantics.c:1539
#6  0x120248f00 in yyparse () at parse.y:1501
#7  0x1200370b0 in compile_file (name=0x0)
    at ../../egcs-19991201/gcc/toplev.c:3217
#8  0x12003bb14 in main (argc=11, argv=0x11ffffca8)
    at ../../egcs-19991201/gcc/toplev.c:5570
(gdb) up 1
#1  0x1201e4040 in convert_like (convs=0x201300, expr=0x1fe000)
    at ../../../egcs-19991201/gcc/cp/call.c:3727
3727                  cp_error ("could not convert `%E' to `%T'",
(gdb) p debug_tree(convs)
 <rvalue_conv 201300
    type <record_type 24400 __va_list_tag
        permanent type_5 TI
        size <integer_cst 21140 constant permanent 128>
        align 64 symtab 23 alias set 0
        fields <field_decl 24800 __base type <pointer_type 23a00>
           
            unsigned permanent DI file <internal> line 0
            size <integer_cst 20ac0 constant permanent 64>
            align 64
            bitpos <integer_cst 20fc0 constant permanent 0> context <record_type 24400 __va_list_tag> arguments <integer_cst 20fc0 0> chain <field_decl 24700 __offset>>

        n_parents 0 use_template=0 interface-unknown
        pointer_to_this <pointer_type 24500> chain <type_decl 24600 __va_list_tag>>
   
   
    arg 0 <identity_conv 2012c0 type <record_type 24400 __va_list_tag>
       
       
        arg 0 <parm_decl 1fe000 args type <record_type 51f00 _G_va_list>
           
            used TI file ../../../egcs-19991201/libio/isscan.cc line 45 size <integer_cst 21140 128>
            align 64 context <function_decl 4cdb00 vscan> initial <record_type 51f00 _G_va_list>>>>
$3 = void
(gdb) p debug_tree(expr)
 <parm_decl 1fe000 args
    type <record_type 51f00 _G_va_list
        permanent type_5 TI
        size <integer_cst 21140 constant permanent 128>
        align 64 symtab 54 alias set 0
        fields <field_decl 24800 __base type <pointer_type 23a00>
           
            unsigned permanent DI file <internal> line 0
            size <integer_cst 20ac0 constant permanent 64>
            align 64
            bitpos <integer_cst 20fc0 constant permanent 0> context <record_type 24400 __va_list_tag> arguments <integer_cst 20fc0 0> chain <field_decl 24700 __offset>>

        n_parents 0 use_template=0 interface-unknown
        pointer_to_this <pointer_type 1a9300> chain <type_decl 24600 __va_list_tag>>
   
    used TI file ../../../egcs-19991201/libio/isscan.cc line 45 size <integer_cst 21140 128>
    align 64 context <function_decl 4cdb00 vscan> initial <record_type 51f00 _G_va_list>>
$4 = void
(gdb) c
Continuing.
../../../egcs-19991201/libio/isscan.cc: In method `istream &istream::vscan (const char *, __va_list_tag)':
../../../egcs-19991201/libio/isscan.cc:50: could not convert `args' to `__va_list_tag'


Program exited with code 041.
(gdb) q


sh-2.03$ bzip2 -d -c isscan.ii.bz2 | fgrep typedef | fgrep va_list
typedef __builtin_va_list _G_va_list;
typedef __builtin_va_list __gnuc_va_list;
typedef __gnuc_va_list va_list;
sh-2.03$ 




-----Original Message-----
test x"no" != xyes || \
  /user/rand/rdb/src/egcs-19991122.obj/gcc/xgcc \
    -B/user/rand/rdb/src/egcs-19991122.obj/gcc/ \
    -B/usr/local/alpha-dec-osf4.0e/bin/ -c -g -O2 -fno-implicit-templates \
    -I. -I../../../egcs-19991122/libio \
    -nostdinc++ ../../../egcs-19991122/libio/isscan.cc -o pic/isscan.o
/user/rand/rdb/src/egcs-19991122.obj/gcc/xgcc \
    -B/user/rand/rdb/src/egcs-19991122.obj/gcc/ \
    -B/usr/local/alpha-dec-osf4.0e/bin/ -c -g -O2 -fno-implicit-templates \
    -I. -I../../../egcs-19991122/libio \
    -nostdinc++ ../../../egcs-19991122/libio/isscan.cc
../../../egcs-19991122/libio/isscan.cc: In method `istream &istream::scan (const char *, ...)':
../../../egcs-19991122/libio/isscan.cc:36: could not convert `ap' to `__va_list_tag'
../../../egcs-19991122/libio/isscan.cc: In method `istream &istream::vscan (const char *, __va_list_tag)':
../../../egcs-19991122/libio/isscan.cc:50: could not convert `args' to `__va_list_tag'
make[2]: *** [isscan.o] Error 1
make[2]: Leaving directory `/user/rand/rdb/src/egcs-19991122.obj/alpha-dec-osf4.0e/libio'
make[1]: *** [all-target-libio] Error 2
make[1]: Leaving directory `/user/rand/rdb/src/egcs-19991122.obj'
make: *** [bootstrap-lean] Error 2


 


isscan.ii.bz2

-------------- next part --------------
A non-text attachment was scrubbed...
Name: isscan.ii.bz2
Type: application/x-bzip2
Size: 6823 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-bugs/attachments/19991202/29459980/attachment.bz2>


More information about the Gcc-bugs mailing list