This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: gcc-4.6.2 fails to build on fedora 17
- From: Markus Trippelsdorf <markus at trippelsdorf dot de>
- To: Ralf Corsepius <ralf dot corsepius at rtems dot org>
- Cc: "gcc at gcc dot gnu dot org" <gcc at gcc dot gnu dot org>, Joel Sherrill <joel dot sherrill at OARcorp dot com>, Jakub Jelinek <jakub at redhat dot com>
- Date: Mon, 23 Jan 2012 18:02:46 +0100
- Subject: Re: gcc-4.6.2 fails to build on fedora 17
- References: <4F1D807F.1080106@rtems.org>
On 2012.01.23 at 16:45 +0100, Ralf Corsepius wrote:
> Hi,
>
> Crossbuilding gcc-4.6.2 for rtems targets succeeds on Fedora 15, 16,
> openSUSE-11.4 and 12.1, but fails with this error on Fedora rawhide
> (aka. Fedora 17):
>
> ...
> # gcc -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions
> -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -c -g
> -O2 -DIN_GCC -DCROSS_DIRECTORY_STRUCTURE -W -Wall -Wwrite-strings
> -Wcast-qual -Wstrict-prototypes -Wmissing-prototypes
> -Wmissing-format-attribute -pedantic -Wno-long-long -Wno-variadic-macros
> -Wno-overlength-strings -Wold-style-definition -Wc++-compat
> -DHAVE_CONFIG_H -I. -I. -I../../gcc-4.6.2/gcc -I../../gcc-4.6.2/gcc/.
> -I../../gcc-4.6.2/gcc/../include -I../../gcc-4.6.2/gcc/../libcpp/include
> -I../../gcc-4.6.2/gcc/../libdecnumber
> -I../../gcc-4.6.2/gcc/../libdecnumber/dpd -I../libdecnumber
> gtype-desc.c -o gtype-desc.o
> gtype-desc.c:8735:18: error: subscripted value is neither array nor
> pointer nor vector
> gtype-desc.c:8854:36: error: subscripted value is neither array nor
> pointer nor vector
> gtype-desc.c:8938:31: error: subscripted value is neither array nor
> pointer nor vector
> gtype-desc.c:8959:31: error: subscripted value is neither array nor
> pointer nor vector
> gtype-desc.c:8966:31: error: subscripted value is neither array nor
> pointer nor vector
> gtype-desc.c:8973:31: error: subscripted value is neither array nor
> pointer nor vector
> make[2]: *** [gtype-desc.o] Error 1
>
>
>
> Poking around inside of the build-trees, I found this difference in the
> GCC-generated sources between Fedora 16 and rawhide, which I am inclined
> to believe to be related to this breakdown:
>
> diff -u
> /var/lib/mock/fedora-16-x86_64-rtems/root/builddir/build/BUILD/rtems-4.11-sparc-rtems4.11-gcc-4.6.2/build/gcc/gt-cp-mangle.h
> /var/lib/mock/fedora-17-x86_64-rtems/root/builddir/build/BUILD/rtems-4.11-sparc-rtems4.11-gcc
> ---
> /var/lib/mock/fedora-16-x86_64-rtems/root/builddir/build/BUILD/rtems-4.11-sparc-rtems4.11-gcc-4.6.2/build/gcc/gt-cp-mangle.h
> 2012-01-23 08:26:19.056369396 +0100
> +++
> /var/lib/mock/fedora-17-x86_64-rtems/root/builddir/build/BUILD/rtems-4.11-sparc-rtems4.11-gcc-4.6.2/build/gcc/gt-cp-mangle.h
> 2012-01-23 08:26:38.648665206 +0100
> @@ -39,7 +39,7 @@
> {
> &G.substitutions,
> 1,
> - sizeof (G.substitutions),
> + sizeof (G),
> >_ggc_mx_VEC_tree_gc,
> >_pch_nx_VEC_tree_gc
> },
> diff -u
> /var/lib/mock/fedora-16-x86_64-rtems/root/builddir/build/BUILD/rtems-4.11-sparc-rtems4.11-gcc-4.6.2/build/gcc/gtype-desc.c
> /var/lib/mock/fedora-17-x86_64-rtems/root/builddir/build/BUILD/rtems-4.11-sparc-rtems4.11-gcc-4
> ---
> /var/lib/mock/fedora-16-x86_64-rtems/root/builddir/build/BUILD/rtems-4.11-sparc-rtems4.11-gcc-4.6.2/build/gcc/gtype-desc.c
> 2012-01-23 08:26:19.058369427 +0100
> +++
> /var/lib/mock/fedora-17-x86_64-rtems/root/builddir/build/BUILD/rtems-4.11-sparc-rtems4.11-gcc-4.6.2/build/gcc/gtype-desc.c
> 2012-01-23 08:26:38.652665266 +0100
> @@ -8375,7 +8375,7 @@
> {
> &ipa_escaped_pt.vars,
> 1,
> - sizeof (ipa_escaped_pt.vars),
> + sizeof (ipa_escaped_pt),
> >_ggc_mx_bitmap_head_def,
> >_pch_nx_bitmap_head_def
> },
> ...
>
>
> Any ideas about the cause?
I've opened a bug for this issue:
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51969
It only happens if you try to build gcc-4.6 with gcc-4.7 on my machine.
--
Markus