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 :
[r...@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...