gcc-4.6.2 fails to build on fedora 17

Ralf Corsepius ralf.corsepius@rtems.org
Mon Jan 23 17:23:00 GMT 2012


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),
      &gt_ggc_mx_VEC_tree_gc,
      &gt_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),
      &gt_ggc_mx_bitmap_head_def,
      &gt_pch_nx_bitmap_head_def
    },
...


Any ideas about the cause?

I am inclined to believe some tool (The native gcc, make, bash, sed, 
awk?) being involved into generating these files could be misbehaving in 
rawhide.

Ralf



More information about the Gcc mailing list