From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 14158 invoked by alias); 6 Sep 2010 09:54:58 -0000 Received: (qmail 14142 invoked by uid 22791); 6 Sep 2010 09:54:57 -0000 X-SWARE-Spam-Status: No, hits=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM X-Spam-Check-By: sourceware.org Received: from web77013.mail.sg1.yahoo.com (HELO web77013.mail.sg1.yahoo.com) (124.108.123.165) by sourceware.org (qpsmtpd/0.43rc1) with SMTP; Mon, 06 Sep 2010 09:54:33 +0000 Received: (qmail 9907 invoked by uid 60001); 6 Sep 2010 09:54:30 -0000 Message-ID: <501025.9515.qm@web77013.mail.sg1.yahoo.com> Received: from [202.161.43.231] by web77013.mail.sg1.yahoo.com via HTTP; Mon, 06 Sep 2010 17:54:30 SGT Date: Mon, 06 Sep 2010 09:54:00 -0000 From: Cheng Rk Subject: Re: on how to compile gcc-4.6 correctly? To: Dennis , "Justin P. Mattock" Cc: gcc@gcc.gnu.org In-Reply-To: <4C84B1E3.7020502@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable 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/msg00054.txt.bz2 --- On Mon, 6/9/10, Justin P. Mattock wrote: > From: Justin P. Mattock > Subject: Re: on how to compile gcc-4.6 correctly? > To: "Dennis" > Cc: gcc@gcc.gnu.org, crquan@ymail.com > Date: Monday, 6 September, 2010, 9:18 AM > On 09/05/2010 08:17 PM, Dennis [...] > hm... an obvious question would be if you have your > toolchain correct? Yes, I think the binutils/gmp/mpfr/mpc all dependencies are correct, otherw= ise why I can compile all gcc-4.5.x version correctly? On the same system, gcc-4.5.x (4.5.0 and 4.5.1 and 4.5-20100902/... multipl= e snapshots) all can compile correctly, I install them into separate direct= ories, and have verified those compilers can compile many source packages c= orrectly; > (but you probably do..(I used this to build=20 > 4.6.0..:http://cross-lfs.org/view/svn/x86_64-64/)) but this still didn't explain what's the "ggc_alloc_cleared_lang_type" macr= o? all through gcc source it's only used by gcc/c-decl.c file, but it has n= o definition under gcc source header files, nor under /usr/include; >=20 > in your case I see something with lang... maybe your CFLAGS > are set=20 > wrong to the wrong machine?! over here my CFLAGS look like > this: > CFLAGS=3D"-m64 -mtune=3Dcore2 -march=3Dcore2 -O2 -pipe > -fomit-frame-pointer=20 > -fstack-protector -w" CXXFLAGS=3D"${CFLAGS}" > MAKEOPTS=3D"{-j3}" I didn't use any special CFLAGS, when I try to compile gcc-4.5.x or this gc= c-4.6 snapshot, I just use "../gcc-4.6-20100905/configure --with-arch-64=3D= athlon64 --with-arch-32=3Di386", I tried to get a multilib compiler that co= uld generate default athlon64 optimized code for 64bit and i386 code for 32= bit; The same "--with-arch-64=3Dathlon64 --with-arch-32=3Di386" works well durin= g compiling gcc-4.5.x but why not work on gcc-4.6 ??? >=20 > keep in mind this is for a intel iMac... your system could > be diff.. >=20 > Justin P. Mattock >=20 Thanks a lot~