A bootstrap of the trunk failed at stage 2 with the following: gcc/gcc/../include -I../../gcc/gcc/../libcpp/include -I/usr/local/include -I/usr/local/include -I../../gcc/gcc/../libdecnumber -I../../gcc/gcc/../libdecnumber/bid -I../libdecnumber ../../gcc/gcc/objc/objc-act.c -o objcp/objcp-act.o ../../gcc/gcc/objc/objc-act.c: In function ‘build_typed_selector_reference’: ../../gcc/gcc/objc/objc-act.c:2634: error: too many arguments to function ‘build_array_ref’ ../../gcc/gcc/objc/objc-act.c: In function ‘build_selector_reference’: ../../gcc/gcc/objc/objc-act.c:2653: error: too many arguments to function ‘build_array_ref’ ../../gcc/gcc/objc/objc-act.c:2667: error: too many arguments to function ‘build_array_ref’ ../../gcc/gcc/objc/objc-act.c: In function ‘objc_substitute_decl’: ../../gcc/gcc/objc/objc-act.c:3053: error: too many arguments to function ‘build_array_ref’ make[3]: *** [objcp/objcp-act.o] Error 1 make[3]: Leaving directory `/home/ed/obj/gcc' make[2]: *** [all-stage2-gcc] Error 2 make[2]: Leaving directory `/home/ed/obj' make[1]: *** [stage2-bubble] Error 2 make[1]: Leaving directory `/home/ed/obj' make: *** [bootstrap] Error 2 Revision 139866 introduced a new argument in objc_substitute_decl in objc-act.c
Graphite just went it. I might just wait till the turbulence dies down and try again.
Subject: Re: Boostrap failed on obj-c++ "too many arguments to function 'build_array_ref'" On Tue, Sep 2, 2008 at 12:22 PM, 3dw4rd at verizon dot net <gcc-bugzilla@gcc.gnu.org> wrote: > Graphite just went it. > > I might just wait till the turbulence dies down and try again. This should be another problem: graphite has not touched the code of build_array_ref, nor the code of gcc/objc/objc-act.c Sebastian
See http://gcc.gnu.org/ml/gcc-patches/2008-09/msg00042.html .
Fixed by: * diagnostic.c (error_at): New. * toplev.h (error_at): New prototype. * c-typeck.c (build_array_ref): Call error_at instead of error. Pass location to pedwarn. cp/ * typeck.c (build_array_ref): Use new location argument. * class.c (build_vtbl_ref_1): Pass location to build_array_ref. * call.c (build_new_op): Same. * decl2.c (grok_array_decl): Same. * cp-tree.h (build_array_ref): Add location argument to prototype. http://gcc.gnu.org/ml/gcc-cvs/2008-09/msg00082.html