From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8171 invoked by alias); 6 Sep 2010 09:18:36 -0000 Received: (qmail 8157 invoked by uid 22791); 6 Sep 2010 09:18:35 -0000 X-SWARE-Spam-Status: No, hits=-1.9 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE X-Spam-Check-By: sourceware.org Received: from mail-px0-f175.google.com (HELO mail-px0-f175.google.com) (209.85.212.175) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 06 Sep 2010 09:18:01 +0000 Received: by pxi11 with SMTP id 11so981971pxi.20 for ; Mon, 06 Sep 2010 02:17:59 -0700 (PDT) Received: by 10.114.120.4 with SMTP id s4mr3580445wac.212.1283764679519; Mon, 06 Sep 2010 02:17:59 -0700 (PDT) Received: from [10.0.0.98] ([76.91.45.220]) by mx.google.com with ESMTPS id d38sm10847055wam.20.2010.09.06.02.17.54 (version=SSLv3 cipher=RC4-MD5); Mon, 06 Sep 2010 02:17:58 -0700 (PDT) Message-ID: <4C84B1E3.7020502@gmail.com> Date: Mon, 06 Sep 2010 09:18:00 -0000 From: "Justin P. Mattock" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:2.0b5pre) Gecko/20100827 Thunderbird/3.2a1pre MIME-Version: 1.0 To: Dennis CC: gcc@gcc.gnu.org, crquan@ymail.com 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/msg00052.txt.bz2 On 09/05/2010 08:17 PM, Dennis wrote: > Hi, all, > 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? the prerequisites page seems not help me, > http://gcc.gnu.org/install/prerequisites.html > > 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, > > please make sure have my email address on cc-list that I can receive your email, because I didn't subscribe such > high volume mailing list, > > Thank you very much, > > -- > Dennis, from Singapore > hm... an obvious question would be if you have your toolchain correct? (but you probably do..(I used this to build 4.6.0..:http://cross-lfs.org/view/svn/x86_64-64/)) in your case I see something with lang... maybe your CFLAGS are set wrong to the wrong machine?! over here my CFLAGS look like this: CFLAGS="-m64 -mtune=core2 -march=core2 -O2 -pipe -fomit-frame-pointer -fstack-protector -w" CXXFLAGS="${CFLAGS}" MAKEOPTS="{-j3}" keep in mind this is for a intel iMac... your system could be diff.. Justin P. Mattock