From: "Justin P. Mattock" <justinmattock@gmail.com>
To: Dennis <crquan@fedoraproject.org>
Cc: gcc@gcc.gnu.org, crquan@ymail.com
Subject: Re: on how to compile gcc-4.6 correctly?
Date: Mon, 06 Sep 2010 09:18:00 -0000 [thread overview]
Message-ID: <4C84B1E3.7020502@gmail.com> (raw)
In-Reply-To: <20100906031709.04CF5E8583@people1.fedoraproject.org>
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
next prev parent reply other threads:[~2010-09-06 9:18 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-09-06 3:17 Dennis
2010-09-06 9:18 ` Justin P. Mattock [this message]
2010-09-06 9:54 ` Cheng Rk
2010-09-06 10:32 ` Justin Mattock
2010-09-06 14:52 ` Kai Ruottu
2010-09-13 14:19 ` Dennis, CHENG Renquan
2010-09-13 20:04 ` Kai Ruottu
2010-09-13 20:15 ` Laurynas Biveinis
2010-09-13 20:31 ` Dennis, CHENG Renquan
2010-09-13 21:37 ` Laurynas Biveinis
2010-09-13 21:42 ` Dennis, CHENG Renquan
2010-09-14 14:01 ` Dennis, CHENG Renquan
2010-09-14 14:23 ` Kai Ruottu
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4C84B1E3.7020502@gmail.com \
--to=justinmattock@gmail.com \
--cc=crquan@fedoraproject.org \
--cc=crquan@ymail.com \
--cc=gcc@gcc.gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).