Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 28 Aug 2006 07:57:03 +0900
From:      Norikatsu Shigemura <nork@FreeBSD.org>
To:        Alexander Kabaev <kan@FreeBSD.org>
Cc:        current@FreeBSD.org
Subject:   Re: HEADS UP: GCC 3.4.6 update complete
Message-ID:  <20060828075703.d1c81021.nork@FreeBSD.org>
In-Reply-To: <20060826223608.GA5436@hub.freebsd.org>
References:  <20060826212120.GA66604@freefall.freebsd.org> <20060826223608.GA5436@hub.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sat, 26 Aug 2006 22:36:08 +0000
Alexander Kabaev <kan@freebsd.org> wrote:
> All is clear. This update should be pretty uneventful and nothing should
> break because of it. I am very interested in being notified of anything
> that contradicts with an above statement.

	I couldn't compile gcc, because of following error message.

===> gnu/usr.bin/cc/cc1plus (all)
cc -O2 -fno-strict-aliasing -pipe -DIN_GCC -DHAVE_CONFIG_H -DPREFIX=\"/usr/obj/usr/src/tmp/usr\" -I/usr/obj/usr/src/tmp/usr/src/gnu/usr.bin/cc/cc1plus/../cc_tools -I/usr/src/gnu/usr.bin/cc/cc1plus/../cc_tools -I/usr/src/gnu/usr.bin/cc/cc1plus/../../../../contrib/gcc -I/usr/src/gnu/usr.bin/cc/cc1plus/../../../../contrib/gcc/config -I/usr/src/gnu/usr.bin/cc/cc1plus/../../../../contrib/gcc/cp -I.  -I/usr/obj/usr/src/tmp/legacy/usr/include -c /usr/src/gnu/usr.bin/cc/cc1plus/../../../../contrib/gcc/cp/decl.c
/usr/src/gnu/usr.bin/cc/cc1plus/../../../../contrib/gcc/cp/decl.c: In function `grokfndecl':
/usr/src/gnu/usr.bin/cc/cc1plus/../../../../contrib/gcc/cp/decl.c:5721: error: too many arguments to function `grok_op_properties'
/usr/src/gnu/usr.bin/cc/cc1plus/../../../../contrib/gcc/cp/decl.c: At top level:
/usr/src/gnu/usr.bin/cc/cc1plus/../../../../contrib/gcc/cp/decl.c:9008: error: conflicting types for 'grok_op_properties'
/usr/src/gnu/usr.bin/cc/cc1plus/../../../../contrib/gcc/cp/cp-tree.h:3686: error: previous declaration of 'grok_op_properties' was here
/usr/src/gnu/usr.bin/cc/cc1plus/../../../../contrib/gcc/cp/decl.c:9008: error: conflicting types for 'grok_op_properties'
/usr/src/gnu/usr.bin/cc/cc1plus/../../../../contrib/gcc/cp/cp-tree.h:3686: error: previous declaration of 'grok_op_properties' was here

	I can fix it such as following patch.

--- contrib/gcc/cp/cp-tree.h.orig	Sun Aug 27 06:29:09 2006
+++ contrib/gcc/cp/cp-tree.h	Mon Aug 28 07:42:35 2006
@@ -3683,7 +3683,7 @@
 extern tree get_scope_of_declarator             (tree);
 extern void grok_special_member_properties	(tree);
 extern int grok_ctor_properties			(tree, tree);
-extern bool grok_op_properties			(tree, bool);
+extern bool grok_op_properties			(tree, int, bool);
 extern tree xref_tag				(enum tag_types, tree, bool, bool);
 extern tree xref_tag_from_type			(tree, tree, int);
 extern void xref_basetypes			(tree, tree);


	But....

cc -I/usr/src/gnu/usr.bin/cc/cc1plus/../../../../contrib/gcc/config -I/usr/src/gnu/usr.bin/cc/cc1plus/../../../../contrib/gcc/cp -I.  -I/usr/obj/usr/src/tmp/legacy/usr/include -c /usr/src/gnu/usr.bin/cc/cc1plus/../../../../contrib/gcc/cp/pt.c
/usr/src/gnu/usr.bin/cc/cc1plus/../../../../contrib/gcc/cp/pt.c: In function `tsubst_decl':
/usr/src/gnu/usr.bin/cc/cc1plus/../../../../contrib/gcc/cp/pt.c:6315: error: too few arguments to function `grok_op_properties'

	Sorry, I don't know how to fix:-(.  I have no idea.
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
          }
        else if (IDENTIFIER_OPNAME_P (DECL_NAME (r)))
          grok_op_properties (r, (complain & tf_error) != 0);

        if (DECL_FRIEND_P (t) && DECL_FRIEND_CONTEXT (t))
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20060828075703.d1c81021.nork>