From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 18995 invoked by alias); 6 Sep 2010 14:52:15 -0000 Received: (qmail 18983 invoked by uid 22791); 6 Sep 2010 14:52:14 -0000 X-SWARE-Spam-Status: No, hits=-1.6 required=5.0 tests=AWL,BAYES_00 X-Spam-Check-By: sourceware.org Received: from wmh1.mail.saunalahti.fi (HELO wmh1.mail.saunalahti.fi) (62.142.5.133) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 06 Sep 2010 14:52:09 +0000 Received: from [192.168.0.19] (dsl-olubrasgw1-fe0af900-147.dhcp.inet.fi [84.249.10.147]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: kai.ruottu@wippies.com) by wmh1.mail.saunalahti.fi (Postfix) with ESMTPSA id BD2761FC063; Mon, 6 Sep 2010 17:52:03 +0300 (EEST) Message-ID: <4C850008.1050106@wippies.com> Date: Mon, 06 Sep 2010 14:52:00 -0000 From: Kai Ruottu User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; fi; rv:1.9.2.8) Gecko/20100802 Thunderbird/3.1.2 MIME-Version: 1.0 To: gcc@gcc.gnu.org CC: crquan@fedoraproject.org Subject: Re: on how to compile gcc-4.6 correctly? References: <20100906031709.04CF5E8583@people1.fedoraproject.org> In-Reply-To: <20100906031709.04CF5E8583@people1.fedoraproject.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes Mailing-List: contact gcc-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-owner@gcc.gnu.org X-SW-Source: 2010-09/txt/msg00059.txt.bz2 6.9.2010 6:17, Dennis kirjoitti: > I'm using gentoo distribution (including gmp/mpfr/mpc) that could compile > gcc-4.5.0, 4.5.1, and many snapshots correctly, including the recent one gcc-4.5-20100902, > but when I tried to compile gcc-4.6, any snapshot version, even recent gcc-4.6-20100904, > it always failed, the recent one failure compiling is: > > ../../gcc-4.6-20100904/gcc/c-decl.c: In function 'grokdeclarator': > ../../gcc-4.6-20100904/gcc/c-decl.c:5533: warning: format not a string literal and no format arguments > ../../gcc-4.6-20100904/gcc/c-decl.c: In function 'grokparms': > ../../gcc-4.6-20100904/gcc/c-decl.c:6194: warning: format not a string literal and no format arguments > ../../gcc-4.6-20100904/gcc/c-decl.c:7025:64: error: macro "ggc_alloc_cleared_lang_type" passed 1 arguments, but takes just 0 > ../../gcc-4.6-20100904/gcc/c-decl.c: In function 'finish_struct': > ../../gcc-4.6-20100904/gcc/c-decl.c:7025: error: 'ggc_alloc_cleared_lang_type' undeclared (first use in this function) > ../../gcc-4.6-20100904/gcc/c-decl.c:7025: error: (Each undeclared identifier is reported only once > ../../gcc-4.6-20100904/gcc/c-decl.c:7025: error: for each function it appears in.) > ../../gcc-4.6-20100904/gcc/c-decl.c:7308:62: error: macro "ggc_alloc_cleared_lang_type" passed 1 arguments, but takes just 0 > ../../gcc-4.6-20100904/gcc/c-decl.c: In function 'finish_enum': > ../../gcc-4.6-20100904/gcc/c-decl.c:7308: error: 'ggc_alloc_cleared_lang_type' undeclared (first use in this function) > make: *** [c-decl.o] Error 1 > > I don't know what happened with that? When I search the 'ggc_alloc_cleared_lang_type' macro, > it really doesn't exist in the gcc-4.6-20100904 source, nor under /usr/include, so what is > that macro real dependency? > > Who have successfully build gcc-4.6 please help me, or have any clue, > I have searched that ggc_alloc_cleared_lang_type > through google, but didn't find out any meaningful results, This seems to be defined in a header generated during the build into the $BUILD/gcc : [root@localhost gcc]# grep ggc_alloc_cleared_lang_type *.h gtype-desc.h:#define ggc_alloc_cleared_lang_type_u() ((union lang_type_u *)(ggc_internal_cleared_alloc_stat (sizeof (union lang_type_u) MEM_STAT_INFO))) On CentOS 5.5/ia32 the build seemed to succeed for the 'x86_64-linux-gnu' target, using gcc-4.1.2 as the host and build compiler. Must check the Fedora 13/x86_64 host with its gcc-4.4.4 too but I wouldn't expect any change with it... So maybe the Gentoo distro has some problem...